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

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.18",
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.18",
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": "676c51d42cfb2332eb189ce7cfbc7e7dc08659b8"
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,99 @@
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 a list of the acronym objects and their properties.
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
+ * @see {@link https://learn.microsoft.com/graph/api/search-searchentity-list-acronyms?view=graph-rest-1.0|Find more info here}
25
+ */
26
+ get(requestConfiguration?: RequestConfiguration<AcronymsRequestBuilderGetQueryParameters> | undefined): Promise<AcronymCollectionResponse | undefined>;
27
+ /**
28
+ * Create a new acronym object.
29
+ * @param body The request body
30
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
+ * @returns {Promise<Acronym>}
32
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
+ * @see {@link https://learn.microsoft.com/graph/api/search-searchentity-post-acronyms?view=graph-rest-1.0|Find more info here}
34
+ */
35
+ post(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Acronym | undefined>;
36
+ /**
37
+ * Get a list of the acronym objects and their properties.
38
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
+ * @returns {RequestInformation}
40
+ */
41
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AcronymsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
+ /**
43
+ * Create a new acronym object.
44
+ * @param body The request body
45
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
+ * @returns {RequestInformation}
47
+ */
48
+ toPostRequestInformation(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
+ }
50
+ /**
51
+ * Get a list of the acronym objects and their properties.
52
+ */
53
+ export interface AcronymsRequestBuilderGetQueryParameters {
54
+ /**
55
+ * Include count of items
56
+ */
57
+ count?: boolean;
58
+ /**
59
+ * Expand related entities
60
+ */
61
+ expand?: string[];
62
+ /**
63
+ * Filter items by property values
64
+ */
65
+ filter?: string;
66
+ /**
67
+ * Order items by property values
68
+ */
69
+ orderby?: string[];
70
+ /**
71
+ * Search items by search phrases
72
+ */
73
+ search?: string;
74
+ /**
75
+ * Select properties to be returned
76
+ */
77
+ select?: string[];
78
+ /**
79
+ * Skip the first n items
80
+ */
81
+ skip?: number;
82
+ /**
83
+ * Show only the first n items
84
+ */
85
+ top?: number;
86
+ }
87
+ /**
88
+ * Uri template for the request builder.
89
+ */
90
+ export declare const AcronymsRequestBuilderUriTemplate = "{+baseurl}/search/acronyms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
91
+ /**
92
+ * Metadata for all the navigation properties in the request builder.
93
+ */
94
+ export declare const AcronymsRequestBuilderNavigationMetadata: Record<Exclude<keyof AcronymsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
95
+ /**
96
+ * Metadata for all the requests in the request builder.
97
+ */
98
+ export declare const AcronymsRequestBuilderRequestsMetadata: RequestsMetadata;
99
+ //# 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,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;;GAEG;AACH,eAAO,MAAM,iCAAiC,4GAA4G,CAAC;AAc3J;;GAEG;AACH,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,sBAAsB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,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,72 @@
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 an acronym object.
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
+ * @see {@link https://learn.microsoft.com/graph/api/search-acronym-delete?view=graph-rest-1.0|Find more info here}
12
+ */
13
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
14
+ /**
15
+ * Read the properties and relationships of an acronym object.
16
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
17
+ * @returns {Promise<Acronym>}
18
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
19
+ * @see {@link https://learn.microsoft.com/graph/api/search-acronym-get?view=graph-rest-1.0|Find more info here}
20
+ */
21
+ get(requestConfiguration?: RequestConfiguration<AcronymItemRequestBuilderGetQueryParameters> | undefined): Promise<Acronym | undefined>;
22
+ /**
23
+ * Update the properties of an acronym object.
24
+ * @param body The request body
25
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
26
+ * @returns {Promise<Acronym>}
27
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
28
+ * @see {@link https://learn.microsoft.com/graph/api/search-acronym-update?view=graph-rest-1.0|Find more info here}
29
+ */
30
+ patch(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Acronym | undefined>;
31
+ /**
32
+ * Delete an acronym object.
33
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
34
+ * @returns {RequestInformation}
35
+ */
36
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
37
+ /**
38
+ * Read the properties and relationships of an acronym object.
39
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
+ * @returns {RequestInformation}
41
+ */
42
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AcronymItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
43
+ /**
44
+ * Update the properties of an acronym object.
45
+ * @param body The request body
46
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47
+ * @returns {RequestInformation}
48
+ */
49
+ toPatchRequestInformation(body: Acronym, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
50
+ }
51
+ /**
52
+ * Read the properties and relationships of an acronym object.
53
+ */
54
+ export interface AcronymItemRequestBuilderGetQueryParameters {
55
+ /**
56
+ * Expand related entities
57
+ */
58
+ expand?: string[];
59
+ /**
60
+ * Select properties to be returned
61
+ */
62
+ select?: string[];
63
+ }
64
+ /**
65
+ * Uri template for the request builder.
66
+ */
67
+ export declare const AcronymItemRequestBuilderUriTemplate = "{+baseurl}/search/acronyms/{acronym%2Did}{?%24expand,%24select}";
68
+ /**
69
+ * Metadata for all the requests in the request builder.
70
+ */
71
+ export declare const AcronymItemRequestBuilderRequestsMetadata: RequestsMetadata;
72
+ //# 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,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;;;;OAKG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;;OAMG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC1I;;;;;;;OAOG;IACF,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IACtH;;;;OAIG;IACF,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACpJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnI;AACD;;GAEG;AACH,MAAM,WAAW,2CAA2C;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AACD;;GAEG;AACH,eAAO,MAAM,oCAAoC,oEAAoE,CAAC;AAQtH;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBA+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,99 @@
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 a list of bookmark objects and their properties.
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
+ * @see {@link https://learn.microsoft.com/graph/api/search-searchentity-list-bookmarks?view=graph-rest-1.0|Find more info here}
25
+ */
26
+ get(requestConfiguration?: RequestConfiguration<BookmarksRequestBuilderGetQueryParameters> | undefined): Promise<BookmarkCollectionResponse | undefined>;
27
+ /**
28
+ * Create a new bookmark object.
29
+ * @param body The request body
30
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
31
+ * @returns {Promise<Bookmark>}
32
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
33
+ * @see {@link https://learn.microsoft.com/graph/api/search-searchentity-post-bookmarks?view=graph-rest-1.0|Find more info here}
34
+ */
35
+ post(body: Bookmark, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Bookmark | undefined>;
36
+ /**
37
+ * Get a list of bookmark objects and their properties.
38
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
39
+ * @returns {RequestInformation}
40
+ */
41
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<BookmarksRequestBuilderGetQueryParameters> | undefined): RequestInformation;
42
+ /**
43
+ * Create a new bookmark object.
44
+ * @param body The request body
45
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
46
+ * @returns {RequestInformation}
47
+ */
48
+ toPostRequestInformation(body: Bookmark, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
49
+ }
50
+ /**
51
+ * Get a list of bookmark objects and their properties.
52
+ */
53
+ export interface BookmarksRequestBuilderGetQueryParameters {
54
+ /**
55
+ * Include count of items
56
+ */
57
+ count?: boolean;
58
+ /**
59
+ * Expand related entities
60
+ */
61
+ expand?: string[];
62
+ /**
63
+ * Filter items by property values
64
+ */
65
+ filter?: string;
66
+ /**
67
+ * Order items by property values
68
+ */
69
+ orderby?: string[];
70
+ /**
71
+ * Search items by search phrases
72
+ */
73
+ search?: string;
74
+ /**
75
+ * Select properties to be returned
76
+ */
77
+ select?: string[];
78
+ /**
79
+ * Skip the first n items
80
+ */
81
+ skip?: number;
82
+ /**
83
+ * Show only the first n items
84
+ */
85
+ top?: number;
86
+ }
87
+ /**
88
+ * Uri template for the request builder.
89
+ */
90
+ export declare const BookmarksRequestBuilderUriTemplate = "{+baseurl}/search/bookmarks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
91
+ /**
92
+ * Metadata for all the navigation properties in the request builder.
93
+ */
94
+ export declare const BookmarksRequestBuilderNavigationMetadata: Record<Exclude<keyof BookmarksRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
95
+ /**
96
+ * Metadata for all the requests in the request builder.
97
+ */
98
+ export declare const BookmarksRequestBuilderRequestsMetadata: RequestsMetadata;
99
+ //# 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,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