@microsoft/msgraph-sdk-search 1.0.0-preview.16 → 1.0.0-preview.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/msgraph-sdk-search",
3
- "version": "1.0.0-preview.16",
3
+ "version": "1.0.0-preview.17",
4
4
  "description": "Search fluent API for Microsoft Graph",
5
5
  "keywords": [
6
6
  "Microsoft",
@@ -37,12 +37,12 @@
37
37
  "@microsoft/kiota-serialization-json": "^1.0.0-preview.39",
38
38
  "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.18",
39
39
  "@microsoft/kiota-serialization-text": "^1.0.0-preview.36",
40
- "@microsoft/msgraph-sdk": "^1.0.0-preview.16",
40
+ "@microsoft/msgraph-sdk": "^1.0.0-preview.17",
41
41
  "guid-typescript": "^1.0.9",
42
42
  "tslib": "^2.6.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "^5.3.3"
46
46
  },
47
- "gitHead": "7d5a0cf29cc99c7e7f8b58504df4c47070cefa79"
47
+ "gitHead": "cf9344aac51247cf524bc8163ff07531d51c9b6c"
48
48
  }
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Get the number of the resource
22
+ */
23
+ export interface CountRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Filter items by property values
26
+ */
27
+ filter?: string;
28
+ /**
29
+ * Search items by search phrases
30
+ */
31
+ search?: string;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/search/acronyms/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,4DAA4D,CAAC;AAQxG;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/search/acronyms/$count{?%24filter,%24search}";
12
+ /**
13
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
14
+ */
15
+ const CountRequestBuilderGetQueryParametersMapper = {
16
+ "filter": "%24filter",
17
+ "search": "%24search",
18
+ };
19
+ /**
20
+ * Metadata for all the requests in the request builder.
21
+ */
22
+ exports.CountRequestBuilderRequestsMetadata = {
23
+ get: {
24
+ uriTemplate: exports.CountRequestBuilderUriTemplate,
25
+ responseBodyContentType: "text/plain;q=0.9",
26
+ errorMappings: {
27
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
28
+ },
29
+ adapterMethodName: "sendPrimitive",
30
+ responseBodyFactory: "number",
31
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
32
+ },
33
+ };
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,97 @@
1
+ import { type Acronym, type AcronymCollectionResponse } from '@microsoft/msgraph-sdk/models/search/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type AcronymItemRequestBuilder } from './item/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity.
7
+ */
8
+ export interface AcronymsRequestBuilder extends BaseRequestBuilder<AcronymsRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity.
15
+ * @param acronymId The unique identifier of acronym
16
+ * @returns {AcronymItemRequestBuilder}
17
+ */
18
+ byAcronymId(acronymId: string): AcronymItemRequestBuilder;
19
+ /**
20
+ * Get acronyms from search
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns {Promise<AcronymCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
+ */
25
+ get(requestConfiguration?: RequestConfiguration<AcronymsRequestBuilderGetQueryParameters> | undefined): Promise<AcronymCollectionResponse | undefined>;
26
+ /**
27
+ * Create new navigation property to acronyms for search
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {Promise<Acronym>}
31
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
32
+ */
33
+ post(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Acronym | undefined>;
34
+ /**
35
+ * Get acronyms from search
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AcronymsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
+ /**
41
+ * Create new navigation property to acronyms for search
42
+ * @param body The request body
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns {RequestInformation}
45
+ */
46
+ toPostRequestInformation(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
+ }
48
+ /**
49
+ * Get acronyms from search
50
+ */
51
+ export interface AcronymsRequestBuilderGetQueryParameters {
52
+ /**
53
+ * Include count of items
54
+ */
55
+ count?: boolean;
56
+ /**
57
+ * Expand related entities
58
+ */
59
+ expand?: string[];
60
+ /**
61
+ * Filter items by property values
62
+ */
63
+ filter?: string;
64
+ /**
65
+ * Order items by property values
66
+ */
67
+ orderby?: string[];
68
+ /**
69
+ * Search items by search phrases
70
+ */
71
+ search?: string;
72
+ /**
73
+ * Select properties to be returned
74
+ */
75
+ select?: string[];
76
+ /**
77
+ * Skip the first n items
78
+ */
79
+ skip?: number;
80
+ /**
81
+ * Show only the first n items
82
+ */
83
+ top?: number;
84
+ }
85
+ /**
86
+ * Uri template for the request builder.
87
+ */
88
+ export declare const AcronymsRequestBuilderUriTemplate = "{+baseurl}/search/acronyms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
89
+ /**
90
+ * Metadata for all the navigation properties in the request builder.
91
+ */
92
+ export declare const AcronymsRequestBuilderNavigationMetadata: Record<Exclude<keyof AcronymsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export declare const AcronymsRequestBuilderRequestsMetadata: RequestsMetadata;
97
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgH,KAAK,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AACnN,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzF,OAAO,EAA6C,KAAK,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC;IACtF;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,WAAW,CAAC,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CAQ1J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,sCAAsC,EAAE,gBAuBpD,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcronymsRequestBuilderRequestsMetadata = exports.AcronymsRequestBuilderNavigationMetadata = exports.AcronymsRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const search_1 = require("@microsoft/msgraph-sdk/models/search/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.AcronymsRequestBuilderUriTemplate = "{+baseurl}/search/acronyms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
15
+ /**
16
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
17
+ */
18
+ const AcronymsRequestBuilderGetQueryParametersMapper = {
19
+ "count": "%24count",
20
+ "expand": "%24expand",
21
+ "filter": "%24filter",
22
+ "orderby": "%24orderby",
23
+ "search": "%24search",
24
+ "select": "%24select",
25
+ "skip": "%24skip",
26
+ "top": "%24top",
27
+ };
28
+ /**
29
+ * Metadata for all the navigation properties in the request builder.
30
+ */
31
+ exports.AcronymsRequestBuilderNavigationMetadata = {
32
+ byAcronymId: {
33
+ requestsMetadata: item_1.AcronymItemRequestBuilderRequestsMetadata,
34
+ pathParametersMappings: ["acronym%2Did"],
35
+ },
36
+ count: {
37
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
38
+ },
39
+ };
40
+ /**
41
+ * Metadata for all the requests in the request builder.
42
+ */
43
+ exports.AcronymsRequestBuilderRequestsMetadata = {
44
+ get: {
45
+ uriTemplate: exports.AcronymsRequestBuilderUriTemplate,
46
+ responseBodyContentType: "application/json",
47
+ errorMappings: {
48
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ },
50
+ adapterMethodName: "send",
51
+ responseBodyFactory: search_1.createAcronymCollectionResponseFromDiscriminatorValue,
52
+ queryParametersMapper: AcronymsRequestBuilderGetQueryParametersMapper,
53
+ },
54
+ post: {
55
+ uriTemplate: exports.AcronymsRequestBuilderUriTemplate,
56
+ responseBodyContentType: "application/json",
57
+ errorMappings: {
58
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
59
+ },
60
+ adapterMethodName: "send",
61
+ responseBodyFactory: search_1.createAcronymFromDiscriminatorValue,
62
+ requestBodyContentType: "application/json",
63
+ requestBodySerializer: search_1.serializeAcronym,
64
+ requestInformationContentSetMethod: "setContentFromParsable",
65
+ },
66
+ };
67
+ /* tslint:enable */
68
+ /* eslint-enable */
@@ -0,0 +1,69 @@
1
+ import { type Acronym } from '@microsoft/msgraph-sdk/models/search/';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Provides operations to manage the acronyms property of the microsoft.graph.searchEntity entity.
5
+ */
6
+ export interface AcronymItemRequestBuilder extends BaseRequestBuilder<AcronymItemRequestBuilder> {
7
+ /**
8
+ * Delete navigation property acronyms for search
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
13
+ /**
14
+ * Get acronyms from search
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {Promise<Acronym>}
17
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
18
+ */
19
+ get(requestConfiguration?: RequestConfiguration<AcronymItemRequestBuilderGetQueryParameters> | undefined): Promise<Acronym | undefined>;
20
+ /**
21
+ * Update the navigation property acronyms in search
22
+ * @param body The request body
23
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24
+ * @returns {Promise<Acronym>}
25
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
26
+ */
27
+ patch(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Acronym | undefined>;
28
+ /**
29
+ * Delete navigation property acronyms for search
30
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
+ * @returns {RequestInformation}
32
+ */
33
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
34
+ /**
35
+ * Get acronyms from search
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AcronymItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
+ /**
41
+ * Update the navigation property acronyms in search
42
+ * @param body The request body
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns {RequestInformation}
45
+ */
46
+ toPatchRequestInformation(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
+ }
48
+ /**
49
+ * Get acronyms from search
50
+ */
51
+ export interface AcronymItemRequestBuilderGetQueryParameters {
52
+ /**
53
+ * Expand related entities
54
+ */
55
+ expand?: string[];
56
+ /**
57
+ * Select properties to be returned
58
+ */
59
+ select?: string[];
60
+ }
61
+ /**
62
+ * Uri template for the request builder.
63
+ */
64
+ export declare const AcronymItemRequestBuilderUriTemplate = "{+baseurl}/search/acronyms/{acronym%2Did}{?%24expand,%24select}";
65
+ /**
66
+ * Metadata for all the requests in the request builder.
67
+ */
68
+ export declare const AcronymItemRequestBuilderRequestsMetadata: RequestsMetadata;
69
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAC5H,OAAO,EAAE,KAAK,kBAAkB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BA+BvD,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AcronymItemRequestBuilderRequestsMetadata = exports.AcronymItemRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const search_1 = require("@microsoft/msgraph-sdk/models/search/");
9
+ /**
10
+ * Uri template for the request builder.
11
+ */
12
+ exports.AcronymItemRequestBuilderUriTemplate = "{+baseurl}/search/acronyms/{acronym%2Did}{?%24expand,%24select}";
13
+ /**
14
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
15
+ */
16
+ const AcronymItemRequestBuilderGetQueryParametersMapper = {
17
+ "expand": "%24expand",
18
+ "select": "%24select",
19
+ };
20
+ /**
21
+ * Metadata for all the requests in the request builder.
22
+ */
23
+ exports.AcronymItemRequestBuilderRequestsMetadata = {
24
+ delete: {
25
+ uriTemplate: exports.AcronymItemRequestBuilderUriTemplate,
26
+ responseBodyContentType: "application/json",
27
+ errorMappings: {
28
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
29
+ },
30
+ adapterMethodName: "sendNoResponseContent",
31
+ },
32
+ get: {
33
+ uriTemplate: exports.AcronymItemRequestBuilderUriTemplate,
34
+ responseBodyContentType: "application/json",
35
+ errorMappings: {
36
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
37
+ },
38
+ adapterMethodName: "send",
39
+ responseBodyFactory: search_1.createAcronymFromDiscriminatorValue,
40
+ queryParametersMapper: AcronymItemRequestBuilderGetQueryParametersMapper,
41
+ },
42
+ patch: {
43
+ uriTemplate: exports.AcronymItemRequestBuilderUriTemplate,
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ },
48
+ adapterMethodName: "send",
49
+ responseBodyFactory: search_1.createAcronymFromDiscriminatorValue,
50
+ requestBodyContentType: "application/json",
51
+ requestBodySerializer: search_1.serializeAcronym,
52
+ requestInformationContentSetMethod: "setContentFromParsable",
53
+ },
54
+ };
55
+ /* tslint:enable */
56
+ /* eslint-enable */
@@ -0,0 +1,41 @@
1
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Provides operations to count the resources in the collection.
4
+ */
5
+ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
6
+ /**
7
+ * Get the number of the resource
8
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
11
+ */
12
+ get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
13
+ /**
14
+ * Get the number of the resource
15
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16
+ * @returns {RequestInformation}
17
+ */
18
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
19
+ }
20
+ /**
21
+ * Get the number of the resource
22
+ */
23
+ export interface CountRequestBuilderGetQueryParameters {
24
+ /**
25
+ * Filter items by property values
26
+ */
27
+ filter?: string;
28
+ /**
29
+ * Search items by search phrases
30
+ */
31
+ search?: string;
32
+ }
33
+ /**
34
+ * Uri template for the request builder.
35
+ */
36
+ export declare const CountRequestBuilderUriTemplate = "{+baseurl}/search/bookmarks/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,CAAC,mBAAmB,CAAC;IAChF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnI;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,qCAAqC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACjJ;AACD;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,6DAA6D,CAAC;AAQzG;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/search/bookmarks/$count{?%24filter,%24search}";
12
+ /**
13
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
14
+ */
15
+ const CountRequestBuilderGetQueryParametersMapper = {
16
+ "filter": "%24filter",
17
+ "search": "%24search",
18
+ };
19
+ /**
20
+ * Metadata for all the requests in the request builder.
21
+ */
22
+ exports.CountRequestBuilderRequestsMetadata = {
23
+ get: {
24
+ uriTemplate: exports.CountRequestBuilderUriTemplate,
25
+ responseBodyContentType: "text/plain;q=0.9",
26
+ errorMappings: {
27
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
28
+ },
29
+ adapterMethodName: "sendPrimitive",
30
+ responseBodyFactory: "number",
31
+ queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
32
+ },
33
+ };
34
+ /* tslint:enable */
35
+ /* eslint-enable */
@@ -0,0 +1,97 @@
1
+ import { type Bookmark, type BookmarkCollectionResponse } from '@microsoft/msgraph-sdk/models/search/';
2
+ import { type CountRequestBuilder } from './count/';
3
+ import { type BookmarkItemRequestBuilder } from './item/';
4
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
5
+ /**
6
+ * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity.
7
+ */
8
+ export interface BookmarksRequestBuilder extends BaseRequestBuilder<BookmarksRequestBuilder> {
9
+ /**
10
+ * Provides operations to count the resources in the collection.
11
+ */
12
+ get count(): CountRequestBuilder;
13
+ /**
14
+ * Provides operations to manage the bookmarks property of the microsoft.graph.searchEntity entity.
15
+ * @param bookmarkId The unique identifier of bookmark
16
+ * @returns {BookmarkItemRequestBuilder}
17
+ */
18
+ byBookmarkId(bookmarkId: string): BookmarkItemRequestBuilder;
19
+ /**
20
+ * Get bookmarks from search
21
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
+ * @returns {Promise<BookmarkCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
+ */
25
+ get(requestConfiguration?: RequestConfiguration<BookmarksRequestBuilderGetQueryParameters> | undefined): Promise<BookmarkCollectionResponse | undefined>;
26
+ /**
27
+ * Create new navigation property to bookmarks for search
28
+ * @param body The request body
29
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
+ * @returns {Promise<Bookmark>}
31
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
32
+ */
33
+ post(body: Bookmark, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Bookmark | undefined>;
34
+ /**
35
+ * Get bookmarks from search
36
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
+ * @returns {RequestInformation}
38
+ */
39
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<BookmarksRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
+ /**
41
+ * Create new navigation property to bookmarks for search
42
+ * @param body The request body
43
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
+ * @returns {RequestInformation}
45
+ */
46
+ toPostRequestInformation(body: Bookmark, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
+ }
48
+ /**
49
+ * Get bookmarks from search
50
+ */
51
+ export interface BookmarksRequestBuilderGetQueryParameters {
52
+ /**
53
+ * Include count of items
54
+ */
55
+ count?: boolean;
56
+ /**
57
+ * Expand related entities
58
+ */
59
+ expand?: string[];
60
+ /**
61
+ * Filter items by property values
62
+ */
63
+ filter?: string;
64
+ /**
65
+ * Order items by property values
66
+ */
67
+ orderby?: string[];
68
+ /**
69
+ * Search items by search phrases
70
+ */
71
+ search?: string;
72
+ /**
73
+ * Select properties to be returned
74
+ */
75
+ select?: string[];
76
+ /**
77
+ * Skip the first n items
78
+ */
79
+ skip?: number;
80
+ /**
81
+ * Show only the first n items
82
+ */
83
+ top?: number;
84
+ }
85
+ /**
86
+ * Uri template for the request builder.
87
+ */
88
+ export declare const BookmarksRequestBuilderUriTemplate = "{+baseurl}/search/bookmarks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
89
+ /**
90
+ * Metadata for all the navigation properties in the request builder.
91
+ */
92
+ export declare const BookmarksRequestBuilderNavigationMetadata: Record<Exclude<keyof BookmarksRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
93
+ /**
94
+ * Metadata for all the requests in the request builder.
95
+ */
96
+ export declare const BookmarksRequestBuilderRequestsMetadata: RequestsMetadata;
97
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmH,KAAK,QAAQ,EAAE,KAAK,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACxN,OAAO,EAAuC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzF,OAAO,EAA8C,KAAK,0BAA0B,EAAE,MAAM,SAAS,CAAC;AACtG,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB,CAAC,uBAAuB,CAAC;IACxF;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,YAAY,CAAC,UAAU,EAAE,MAAM,GAAI,0BAA0B,CAAC;IAC/D;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,yCAAyC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IAC3J;;;;;;OAMG;IACF,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IACvH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,yCAAyC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClJ;;;;;OAKG;IACF,wBAAwB,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnI;AACD;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACtD;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,6GAA6G,CAAC;AAc7J;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAQ5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAuBrD,CAAC"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookmarksRequestBuilderRequestsMetadata = exports.BookmarksRequestBuilderNavigationMetadata = exports.BookmarksRequestBuilderUriTemplate = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ const search_1 = require("@microsoft/msgraph-sdk/models/search/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.BookmarksRequestBuilderUriTemplate = "{+baseurl}/search/bookmarks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
15
+ /**
16
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
17
+ */
18
+ const BookmarksRequestBuilderGetQueryParametersMapper = {
19
+ "count": "%24count",
20
+ "expand": "%24expand",
21
+ "filter": "%24filter",
22
+ "orderby": "%24orderby",
23
+ "search": "%24search",
24
+ "select": "%24select",
25
+ "skip": "%24skip",
26
+ "top": "%24top",
27
+ };
28
+ /**
29
+ * Metadata for all the navigation properties in the request builder.
30
+ */
31
+ exports.BookmarksRequestBuilderNavigationMetadata = {
32
+ byBookmarkId: {
33
+ requestsMetadata: item_1.BookmarkItemRequestBuilderRequestsMetadata,
34
+ pathParametersMappings: ["bookmark%2Did"],
35
+ },
36
+ count: {
37
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
38
+ },
39
+ };
40
+ /**
41
+ * Metadata for all the requests in the request builder.
42
+ */
43
+ exports.BookmarksRequestBuilderRequestsMetadata = {
44
+ get: {
45
+ uriTemplate: exports.BookmarksRequestBuilderUriTemplate,
46
+ responseBodyContentType: "application/json",
47
+ errorMappings: {
48
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ },
50
+ adapterMethodName: "send",
51
+ responseBodyFactory: search_1.createBookmarkCollectionResponseFromDiscriminatorValue,
52
+ queryParametersMapper: BookmarksRequestBuilderGetQueryParametersMapper,
53
+ },
54
+ post: {
55
+ uriTemplate: exports.BookmarksRequestBuilderUriTemplate,
56
+ responseBodyContentType: "application/json",
57
+ errorMappings: {
58
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
59
+ },
60
+ adapterMethodName: "send",
61
+ responseBodyFactory: search_1.createBookmarkFromDiscriminatorValue,
62
+ requestBodyContentType: "application/json",
63
+ requestBodySerializer: search_1.serializeBookmark,
64
+ requestInformationContentSetMethod: "setContentFromParsable",
65
+ },
66
+ };
67
+ /* tslint:enable */
68
+ /* eslint-enable */