Skip to content

Commit

Permalink
Added the search scope to the sp types.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Nov 14, 2024
1 parent b0cf406 commit 3a1c6b3
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 4 deletions.
17 changes: 17 additions & 0 deletions @types/sptypes/sptypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,23 @@ export type IRoleType = {
WebDesigner: number
};

/**
* Search Scope
*/
export interface ISearchScope {
/* Default behavior for the site */
Default: number,

/* Across all sites in the hub */
Hub: number,

/* The site */
Site: number,

/* Across all sites in the tenant */
Tenant: number
}

/**
* Status Pri Color
*/
Expand Down
13 changes: 13 additions & 0 deletions dist/gd-sprest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5952,6 +5952,19 @@ declare module 'gd-sprest/sptypes/sptypes' {
WebDesigner: number
};

/**
* Search Scope
*/
export interface ISearchScope {
Default: number,

Hub: number,

Site: number,

Tenant: number
}

/**
* Status Pri Color
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "8.3.6",
"version": "8.3.7",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <[email protected]> (https://gunjandatta.github.io)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 8.36,
__ver: 8.37,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down
10 changes: 10 additions & 0 deletions src/sptypes/sptypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,16 @@ export const RoleType: SPTypes.IRoleType = {
WebDesigner: 4
};

/**
* Search Scope
*/
export const SearchScope: SPTypes.ISearchScope = {
Default: 0,
Tenant: 1,
Hub: 2,
Site: 3
}

/**
* Status Pri Color
*/
Expand Down

0 comments on commit 3a1c6b3

Please sign in to comment.