@microsoft/msgraph-sdk-appcatalogs 1.0.0-preview.13 → 1.0.0-preview.14

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.
Files changed (28) hide show
  1. package/appCatalogs/index.d.ts +10 -8
  2. package/appCatalogs/index.d.ts.map +1 -1
  3. package/appCatalogs/index.js +9 -10
  4. package/appCatalogs/teamsApps/count/index.d.ts +7 -6
  5. package/appCatalogs/teamsApps/count/index.d.ts.map +1 -1
  6. package/appCatalogs/teamsApps/count/index.js +7 -7
  7. package/appCatalogs/teamsApps/index.d.ts +11 -9
  8. package/appCatalogs/teamsApps/index.d.ts.map +1 -1
  9. package/appCatalogs/teamsApps/index.js +9 -11
  10. package/appCatalogs/teamsApps/item/appDefinitions/count/index.d.ts +7 -6
  11. package/appCatalogs/teamsApps/item/appDefinitions/count/index.d.ts.map +1 -1
  12. package/appCatalogs/teamsApps/item/appDefinitions/count/index.js +7 -7
  13. package/appCatalogs/teamsApps/item/appDefinitions/index.d.ts +11 -9
  14. package/appCatalogs/teamsApps/item/appDefinitions/index.d.ts.map +1 -1
  15. package/appCatalogs/teamsApps/item/appDefinitions/index.js +9 -11
  16. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.d.ts +12 -9
  17. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.d.ts.map +1 -1
  18. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.js +11 -11
  19. package/appCatalogs/teamsApps/item/appDefinitions/item/index.d.ts +12 -9
  20. package/appCatalogs/teamsApps/item/appDefinitions/item/index.d.ts.map +1 -1
  21. package/appCatalogs/teamsApps/item/appDefinitions/item/index.js +11 -12
  22. package/appCatalogs/teamsApps/item/index.d.ts +12 -9
  23. package/appCatalogs/teamsApps/item/index.d.ts.map +1 -1
  24. package/appCatalogs/teamsApps/item/index.js +11 -12
  25. package/appCatalogsServiceClient.d.ts.map +1 -1
  26. package/appCatalogsServiceClient.js +1 -2
  27. package/package.json +3 -3
  28. package/tsconfig.tsbuildinfo +1 -1
@@ -12,27 +12,29 @@ export interface AppCatalogsRequestBuilder extends BaseRequestBuilder<AppCatalog
12
12
  /**
13
13
  * Get appCatalogs
14
14
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a Promise of AppCatalogs
15
+ * @returns {Promise<AppCatalogs>}
16
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
17
  */
17
18
  get(requestConfiguration?: RequestConfiguration<AppCatalogsRequestBuilderGetQueryParameters> | undefined): Promise<AppCatalogs | undefined>;
18
19
  /**
19
20
  * Update appCatalogs
20
21
  * @param body The request body
21
22
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
- * @returns a Promise of AppCatalogs
23
+ * @returns {Promise<AppCatalogs>}
24
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
25
  */
24
26
  patch(body: AppCatalogs, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AppCatalogs | undefined>;
25
27
  /**
26
28
  * Get appCatalogs
27
29
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
28
- * @returns a RequestInformation
30
+ * @returns {RequestInformation}
29
31
  */
30
32
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<AppCatalogsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
31
33
  /**
32
34
  * Update appCatalogs
33
35
  * @param body The request body
34
36
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
- * @returns a RequestInformation
37
+ * @returns {RequestInformation}
36
38
  */
37
39
  toPatchRequestInformation(body: AppCatalogs, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
38
40
  }
@@ -49,6 +51,10 @@ export interface AppCatalogsRequestBuilderGetQueryParameters {
49
51
  */
50
52
  select?: string[];
51
53
  }
54
+ /**
55
+ * Uri template for the request builder.
56
+ */
57
+ export declare const AppCatalogsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs{?%24expand,%24select}";
52
58
  /**
53
59
  * Metadata for all the navigation properties in the request builder.
54
60
  */
@@ -57,8 +63,4 @@ export declare const AppCatalogsRequestBuilderNavigationMetadata: Record<Exclude
57
63
  * Metadata for all the requests in the request builder.
58
64
  */
59
65
  export declare const AppCatalogsRequestBuilderRequestsMetadata: RequestsMetadata;
60
- /**
61
- * Uri template for the request builder.
62
- */
63
- export declare const AppCatalogsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs{?%24expand,%24select}";
64
66
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAEjI,OAAO,EAA0H,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACpL,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,yBAA0B,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC;IAC5F;;OAEG;IACH,IAAI,SAAS,IAAI,uBAAuB,CAAC;IACzC;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC9I;;;;;OAKG;IACF,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC9H;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CA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,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC9H;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,2CAA2C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACpJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,WAAW,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACvI;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,iDAAiD,CAAC;AAQnG;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,yBAAyB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKhK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,gBAuBvD,CAAC"}
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppCatalogsRequestBuilderUriTemplate = exports.AppCatalogsRequestBuilderRequestsMetadata = exports.AppCatalogsRequestBuilderNavigationMetadata = void 0;
3
+ exports.AppCatalogsRequestBuilderRequestsMetadata = exports.AppCatalogsRequestBuilderNavigationMetadata = exports.AppCatalogsRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  const models_1 = require("@microsoft/msgraph-sdk/models/");
8
8
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
9
  const teamsApps_1 = require("./teamsApps/");
10
+ /**
11
+ * Uri template for the request builder.
12
+ */
13
+ exports.AppCatalogsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs{?%24expand,%24select}";
10
14
  /**
11
15
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
16
  */
@@ -19,7 +23,6 @@ const AppCatalogsRequestBuilderGetQueryParametersMapper = {
19
23
  */
20
24
  exports.AppCatalogsRequestBuilderNavigationMetadata = {
21
25
  teamsApps: {
22
- uriTemplate: teamsApps_1.TeamsAppsRequestBuilderUriTemplate,
23
26
  requestsMetadata: teamsApps_1.TeamsAppsRequestBuilderRequestsMetadata,
24
27
  navigationMetadata: teamsApps_1.TeamsAppsRequestBuilderNavigationMetadata,
25
28
  },
@@ -29,20 +32,20 @@ exports.AppCatalogsRequestBuilderNavigationMetadata = {
29
32
  */
30
33
  exports.AppCatalogsRequestBuilderRequestsMetadata = {
31
34
  get: {
35
+ uriTemplate: exports.AppCatalogsRequestBuilderUriTemplate,
32
36
  responseBodyContentType: "application/json",
33
37
  errorMappings: {
34
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
35
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
38
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
36
39
  },
37
40
  adapterMethodName: "sendAsync",
38
41
  responseBodyFactory: models_1.createAppCatalogsFromDiscriminatorValue,
39
42
  queryParametersMapper: AppCatalogsRequestBuilderGetQueryParametersMapper,
40
43
  },
41
44
  patch: {
45
+ uriTemplate: exports.AppCatalogsRequestBuilderUriTemplate,
42
46
  responseBodyContentType: "application/json",
43
47
  errorMappings: {
44
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
45
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
46
49
  },
47
50
  adapterMethodName: "sendAsync",
48
51
  responseBodyFactory: models_1.createAppCatalogsFromDiscriminatorValue,
@@ -51,9 +54,5 @@ exports.AppCatalogsRequestBuilderRequestsMetadata = {
51
54
  requestInformationContentSetMethod: "setContentFromParsable",
52
55
  },
53
56
  };
54
- /**
55
- * Uri template for the request builder.
56
- */
57
- exports.AppCatalogsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs{?%24expand,%24select}";
58
57
  /* tslint:enable */
59
58
  /* eslint-enable */
@@ -6,13 +6,14 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
6
6
  /**
7
7
  * Get the number of the resource
8
8
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
- * @returns a Promise of Integer
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
10
11
  */
11
12
  get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
13
  /**
13
14
  * Get the number of the resource
14
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a RequestInformation
16
+ * @returns {RequestInformation}
16
17
  */
17
18
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
19
  }
@@ -29,12 +30,12 @@ export interface CountRequestBuilderGetQueryParameters {
29
30
  */
30
31
  search?: string;
31
32
  }
32
- /**
33
- * Metadata for all the requests in the request builder.
34
- */
35
- export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
33
  /**
37
34
  * Uri template for the request builder.
38
35
  */
39
36
  export declare const CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
40
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,EAA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E,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,eAAO,MAAM,8BAA8B,kEAAkE,CAAC;AAQ9G;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
3
+ exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/$count{?%24filter,%24search}";
8
12
  /**
9
13
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
14
  */
@@ -17,19 +21,15 @@ const CountRequestBuilderGetQueryParametersMapper = {
17
21
  */
18
22
  exports.CountRequestBuilderRequestsMetadata = {
19
23
  get: {
24
+ uriTemplate: exports.CountRequestBuilderUriTemplate,
20
25
  responseBodyContentType: "text/plain;q=0.9",
21
26
  errorMappings: {
22
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
27
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
28
  },
25
29
  adapterMethodName: "sendPrimitiveAsync",
26
30
  responseBodyFactory: "number",
27
31
  queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
32
  },
29
33
  };
30
- /**
31
- * Uri template for the request builder.
32
- */
33
- exports.CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/$count{?%24filter,%24search}";
34
34
  /* tslint:enable */
35
35
  /* eslint-enable */
@@ -13,13 +13,14 @@ export interface TeamsAppsRequestBuilder extends BaseRequestBuilder<TeamsAppsReq
13
13
  /**
14
14
  * Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity.
15
15
  * @param teamsAppId The unique identifier of teamsApp
16
- * @returns a TeamsAppItemRequestBuilder
16
+ * @returns {TeamsAppItemRequestBuilder}
17
17
  */
18
18
  byTeamsAppId(teamsAppId: string): TeamsAppItemRequestBuilder;
19
19
  /**
20
20
  * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
- * @returns a Promise of TeamsAppCollectionResponse
22
+ * @returns {Promise<TeamsAppCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
24
  * @see {@link https://learn.microsoft.com/graph/api/appcatalogs-list-teamsapps?view=graph-rest-1.0|Find more info here}
24
25
  */
25
26
  get(requestConfiguration?: RequestConfiguration<TeamsAppsRequestBuilderGetQueryParameters> | undefined): Promise<TeamsAppCollectionResponse | undefined>;
@@ -27,21 +28,22 @@ export interface TeamsAppsRequestBuilder extends BaseRequestBuilder<TeamsAppsReq
27
28
  * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
28
29
  * @param body The request body
29
30
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
30
- * @returns a Promise of TeamsApp
31
+ * @returns {Promise<TeamsApp>}
32
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
31
33
  * @see {@link https://learn.microsoft.com/graph/api/teamsapp-publish?view=graph-rest-1.0|Find more info here}
32
34
  */
33
35
  post(body: TeamsApp, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsApp | undefined>;
34
36
  /**
35
37
  * List apps from the Microsoft Teams app catalog.This includes apps from the Microsoft Teams store, as well as apps from your organization's app catalog (the tenant app catalog). To get apps from your organization's app catalog only, specify organization as the distributionMethod in the request.
36
38
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
37
- * @returns a RequestInformation
39
+ * @returns {RequestInformation}
38
40
  */
39
41
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamsAppsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
40
42
  /**
41
43
  * Publish an app to the Microsoft Teams app catalog.Specifically, this API publishes the app to your organization's catalog (the tenant app catalog);the created resource has a distributionMethod property value of organization. The requiresReview property allows any user to submit an app for review by an administrator. Admins can approve or reject these apps via this API or the Microsoft Teams admin center.
42
44
  * @param body The request body
43
45
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
44
- * @returns a RequestInformation
46
+ * @returns {RequestInformation}
45
47
  */
46
48
  toPostRequestInformation(body: TeamsApp, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
47
49
  }
@@ -82,6 +84,10 @@ export interface TeamsAppsRequestBuilderGetQueryParameters {
82
84
  */
83
85
  top?: number;
84
86
  }
87
+ /**
88
+ * Uri template for the request builder.
89
+ */
90
+ export declare const TeamsAppsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
85
91
  /**
86
92
  * Metadata for all the navigation properties in the request builder.
87
93
  */
@@ -90,8 +96,4 @@ export declare const TeamsAppsRequestBuilderNavigationMetadata: Record<Exclude<k
90
96
  * Metadata for all the requests in the request builder.
91
97
  */
92
98
  export declare const TeamsAppsRequestBuilderRequestsMetadata: RequestsMetadata;
93
- /**
94
- * Uri template for the request builder.
95
- */
96
- export declare const TeamsAppsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
97
99
  //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M,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAS5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAuBrD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TeamsAppsRequestBuilderUriTemplate = exports.TeamsAppsRequestBuilderRequestsMetadata = exports.TeamsAppsRequestBuilderNavigationMetadata = void 0;
3
+ exports.TeamsAppsRequestBuilderRequestsMetadata = exports.TeamsAppsRequestBuilderNavigationMetadata = exports.TeamsAppsRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
@@ -8,6 +8,10 @@ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
8
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
9
  const count_1 = require("./count/");
10
10
  const item_1 = require("./item/");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.TeamsAppsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
11
15
  /**
12
16
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
17
  */
@@ -26,13 +30,11 @@ const TeamsAppsRequestBuilderGetQueryParametersMapper = {
26
30
  */
27
31
  exports.TeamsAppsRequestBuilderNavigationMetadata = {
28
32
  byTeamsAppId: {
29
- uriTemplate: item_1.TeamsAppItemRequestBuilderUriTemplate,
30
33
  requestsMetadata: item_1.TeamsAppItemRequestBuilderRequestsMetadata,
31
34
  navigationMetadata: item_1.TeamsAppItemRequestBuilderNavigationMetadata,
32
35
  pathParametersMappings: ["teamsApp%2Did"],
33
36
  },
34
37
  count: {
35
- uriTemplate: count_1.CountRequestBuilderUriTemplate,
36
38
  requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
37
39
  },
38
40
  };
@@ -41,20 +43,20 @@ exports.TeamsAppsRequestBuilderNavigationMetadata = {
41
43
  */
42
44
  exports.TeamsAppsRequestBuilderRequestsMetadata = {
43
45
  get: {
46
+ uriTemplate: exports.TeamsAppsRequestBuilderUriTemplate,
44
47
  responseBodyContentType: "application/json",
45
48
  errorMappings: {
46
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
50
  },
49
51
  adapterMethodName: "sendAsync",
50
52
  responseBodyFactory: models_1.createTeamsAppCollectionResponseFromDiscriminatorValue,
51
53
  queryParametersMapper: TeamsAppsRequestBuilderGetQueryParametersMapper,
52
54
  },
53
55
  post: {
56
+ uriTemplate: exports.TeamsAppsRequestBuilderUriTemplate,
54
57
  responseBodyContentType: "application/json",
55
58
  errorMappings: {
56
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
59
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
60
  },
59
61
  adapterMethodName: "sendAsync",
60
62
  responseBodyFactory: models_1.createTeamsAppFromDiscriminatorValue,
@@ -63,9 +65,5 @@ exports.TeamsAppsRequestBuilderRequestsMetadata = {
63
65
  requestInformationContentSetMethod: "setContentFromParsable",
64
66
  },
65
67
  };
66
- /**
67
- * Uri template for the request builder.
68
- */
69
- exports.TeamsAppsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
70
68
  /* tslint:enable */
71
69
  /* eslint-enable */
@@ -6,13 +6,14 @@ export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuil
6
6
  /**
7
7
  * Get the number of the resource
8
8
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
9
- * @returns a Promise of Integer
9
+ * @returns {Promise<number>}
10
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
10
11
  */
11
12
  get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): Promise<number | undefined>;
12
13
  /**
13
14
  * Get the number of the resource
14
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a RequestInformation
16
+ * @returns {RequestInformation}
16
17
  */
17
18
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined): RequestInformation;
18
19
  }
@@ -29,12 +30,12 @@ export interface CountRequestBuilderGetQueryParameters {
29
30
  */
30
31
  search?: string;
31
32
  }
32
- /**
33
- * Metadata for all the requests in the request builder.
34
- */
35
- export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
36
33
  /**
37
34
  * Uri template for the request builder.
38
35
  */
39
36
  export declare const CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24filter,%24search}";
37
+ /**
38
+ * Metadata for all the requests in the request builder.
39
+ */
40
+ export declare const CountRequestBuilderRequestsMetadata: RequestsMetadata;
40
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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;;;;OAIG;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;AAQD;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,8BAA8B,iGAAiG,CAAC"}
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,iGAAiG,CAAC;AAQ7I;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,gBAWjD,CAAC"}
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CountRequestBuilderUriTemplate = exports.CountRequestBuilderRequestsMetadata = void 0;
3
+ exports.CountRequestBuilderRequestsMetadata = exports.CountRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
7
7
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
8
+ /**
9
+ * Uri template for the request builder.
10
+ */
11
+ exports.CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24filter,%24search}";
8
12
  /**
9
13
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
10
14
  */
@@ -17,19 +21,15 @@ const CountRequestBuilderGetQueryParametersMapper = {
17
21
  */
18
22
  exports.CountRequestBuilderRequestsMetadata = {
19
23
  get: {
24
+ uriTemplate: exports.CountRequestBuilderUriTemplate,
20
25
  responseBodyContentType: "text/plain;q=0.9",
21
26
  errorMappings: {
22
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
23
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
27
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
28
  },
25
29
  adapterMethodName: "sendPrimitiveAsync",
26
30
  responseBodyFactory: "number",
27
31
  queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
28
32
  },
29
33
  };
30
- /**
31
- * Uri template for the request builder.
32
- */
33
- exports.CountRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/$count{?%24filter,%24search}";
34
34
  /* tslint:enable */
35
35
  /* eslint-enable */
@@ -13,34 +13,36 @@ export interface AppDefinitionsRequestBuilder extends BaseRequestBuilder<AppDefi
13
13
  /**
14
14
  * Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
15
15
  * @param teamsAppDefinitionId The unique identifier of teamsAppDefinition
16
- * @returns a TeamsAppDefinitionItemRequestBuilder
16
+ * @returns {TeamsAppDefinitionItemRequestBuilder}
17
17
  */
18
18
  byTeamsAppDefinitionId(teamsAppDefinitionId: string): TeamsAppDefinitionItemRequestBuilder;
19
19
  /**
20
20
  * The details for each version of the app.
21
21
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
22
- * @returns a Promise of TeamsAppDefinitionCollectionResponse
22
+ * @returns {Promise<TeamsAppDefinitionCollectionResponse>}
23
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
23
24
  */
24
25
  get(requestConfiguration?: RequestConfiguration<AppDefinitionsRequestBuilderGetQueryParameters> | undefined): Promise<TeamsAppDefinitionCollectionResponse | undefined>;
25
26
  /**
26
27
  * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
27
28
  * @param body The request body
28
29
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
- * @returns a Promise of TeamsAppDefinition
30
+ * @returns {Promise<TeamsAppDefinition>}
31
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
30
32
  * @see {@link https://learn.microsoft.com/graph/api/teamsapp-update?view=graph-rest-1.0|Find more info here}
31
33
  */
32
34
  post(body: TeamsAppDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsAppDefinition | undefined>;
33
35
  /**
34
36
  * The details for each version of the app.
35
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
36
- * @returns a RequestInformation
38
+ * @returns {RequestInformation}
37
39
  */
38
40
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<AppDefinitionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
39
41
  /**
40
42
  * Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
41
43
  * @param body The request body
42
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
43
- * @returns a RequestInformation
45
+ * @returns {RequestInformation}
44
46
  */
45
47
  toPostRequestInformation(body: TeamsAppDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
46
48
  }
@@ -81,6 +83,10 @@ export interface AppDefinitionsRequestBuilderGetQueryParameters {
81
83
  */
82
84
  top?: number;
83
85
  }
86
+ /**
87
+ * Uri template for the request builder.
88
+ */
89
+ export declare const AppDefinitionsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
84
90
  /**
85
91
  * Metadata for all the navigation properties in the request builder.
86
92
  */
@@ -89,8 +95,4 @@ export declare const AppDefinitionsRequestBuilderNavigationMetadata: Record<Excl
89
95
  * Metadata for all the requests in the request builder.
90
96
  */
91
97
  export declare const AppDefinitionsRequestBuilderRequestsMetadata: RequestsMetadata;
92
- /**
93
- * Uri template for the request builder.
94
- */
95
- export declare const AppDefinitionsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
96
98
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiJ,KAAK,kBAAkB,EAAE,KAAK,oCAAoC,EAAE,MAAM,gCAAgC,CAAC;AAEnQ,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAiK,KAAK,oCAAoC,EAAE,MAAM,SAAS,CAAC;AACnO,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,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAClG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;;;OAIG;IACF,sBAAsB,CAAC,oBAAoB,EA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CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC7I;AACD;;GAEG;AACH,MAAM,WAAW,8CAA8C;IAC3D;;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,uCAAuC,iJAAiJ,CAAC;AActM;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,4BAA4B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAStK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,gBAuB1D,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppDefinitionsRequestBuilderUriTemplate = exports.AppDefinitionsRequestBuilderRequestsMetadata = exports.AppDefinitionsRequestBuilderNavigationMetadata = void 0;
3
+ exports.AppDefinitionsRequestBuilderRequestsMetadata = exports.AppDefinitionsRequestBuilderNavigationMetadata = exports.AppDefinitionsRequestBuilderUriTemplate = void 0;
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
6
  // Generated by Microsoft Kiota
@@ -8,6 +8,10 @@ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
8
  const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
9
  const count_1 = require("./count/");
10
10
  const item_1 = require("./item/");
11
+ /**
12
+ * Uri template for the request builder.
13
+ */
14
+ exports.AppDefinitionsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
11
15
  /**
12
16
  * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
17
  */
@@ -26,13 +30,11 @@ const AppDefinitionsRequestBuilderGetQueryParametersMapper = {
26
30
  */
27
31
  exports.AppDefinitionsRequestBuilderNavigationMetadata = {
28
32
  byTeamsAppDefinitionId: {
29
- uriTemplate: item_1.TeamsAppDefinitionItemRequestBuilderUriTemplate,
30
33
  requestsMetadata: item_1.TeamsAppDefinitionItemRequestBuilderRequestsMetadata,
31
34
  navigationMetadata: item_1.TeamsAppDefinitionItemRequestBuilderNavigationMetadata,
32
35
  pathParametersMappings: ["teamsAppDefinition%2Did"],
33
36
  },
34
37
  count: {
35
- uriTemplate: count_1.CountRequestBuilderUriTemplate,
36
38
  requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
37
39
  },
38
40
  };
@@ -41,20 +43,20 @@ exports.AppDefinitionsRequestBuilderNavigationMetadata = {
41
43
  */
42
44
  exports.AppDefinitionsRequestBuilderRequestsMetadata = {
43
45
  get: {
46
+ uriTemplate: exports.AppDefinitionsRequestBuilderUriTemplate,
44
47
  responseBodyContentType: "application/json",
45
48
  errorMappings: {
46
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
49
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
50
  },
49
51
  adapterMethodName: "sendAsync",
50
52
  responseBodyFactory: models_1.createTeamsAppDefinitionCollectionResponseFromDiscriminatorValue,
51
53
  queryParametersMapper: AppDefinitionsRequestBuilderGetQueryParametersMapper,
52
54
  },
53
55
  post: {
56
+ uriTemplate: exports.AppDefinitionsRequestBuilderUriTemplate,
54
57
  responseBodyContentType: "application/json",
55
58
  errorMappings: {
56
- _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
- _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
59
+ XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
60
  },
59
61
  adapterMethodName: "sendAsync",
60
62
  responseBodyFactory: models_1.createTeamsAppDefinitionFromDiscriminatorValue,
@@ -63,9 +65,5 @@ exports.AppDefinitionsRequestBuilderRequestsMetadata = {
63
65
  requestInformationContentSetMethod: "setContentFromParsable",
64
66
  },
65
67
  };
66
- /**
67
- * Uri template for the request builder.
68
- */
69
- exports.AppDefinitionsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
70
68
  /* tslint:enable */
71
69
  /* eslint-enable */
@@ -7,12 +7,14 @@ export interface BotRequestBuilder extends BaseRequestBuilder<BotRequestBuilder>
7
7
  /**
8
8
  * Delete navigation property bot for appCatalogs
9
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
10
11
  */
11
12
  delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
12
13
  /**
13
14
  * Get the bot associated with a specific definition of the TeamsApp.
14
15
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
- * @returns a Promise of TeamworkBot
16
+ * @returns {Promise<TeamworkBot>}
17
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
16
18
  * @see {@link https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0|Find more info here}
17
19
  */
18
20
  get(requestConfiguration?: RequestConfiguration<BotRequestBuilderGetQueryParameters> | undefined): Promise<TeamworkBot | undefined>;
@@ -20,26 +22,27 @@ export interface BotRequestBuilder extends BaseRequestBuilder<BotRequestBuilder>
20
22
  * Update the navigation property bot in appCatalogs
21
23
  * @param body The request body
22
24
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
- * @returns a Promise of TeamworkBot
25
+ * @returns {Promise<TeamworkBot>}
26
+ * @throws {ODataError} error when the service returns a 4XX or 5XX status code
24
27
  */
25
28
  patch(body: TeamworkBot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamworkBot | undefined>;
26
29
  /**
27
30
  * Delete navigation property bot for appCatalogs
28
31
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
- * @returns a RequestInformation
32
+ * @returns {RequestInformation}
30
33
  */
31
34
  toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
35
  /**
33
36
  * Get the bot associated with a specific definition of the TeamsApp.
34
37
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
- * @returns a RequestInformation
38
+ * @returns {RequestInformation}
36
39
  */
37
40
  toGetRequestInformation(requestConfiguration?: RequestConfiguration<BotRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
41
  /**
39
42
  * Update the navigation property bot in appCatalogs
40
43
  * @param body The request body
41
44
  * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
- * @returns a RequestInformation
45
+ * @returns {RequestInformation}
43
46
  */
44
47
  toPatchRequestInformation(body: TeamworkBot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
48
  }
@@ -56,12 +59,12 @@ export interface BotRequestBuilderGetQueryParameters {
56
59
  */
57
60
  select?: string[];
58
61
  }
59
- /**
60
- * Metadata for all the requests in the request builder.
61
- */
62
- export declare const BotRequestBuilderRequestsMetadata: RequestsMetadata;
63
62
  /**
64
63
  * Uri template for the request builder.
65
64
  */
66
65
  export declare const BotRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24expand,%24select}";
66
+ /**
67
+ * Metadata for all the requests in the request builder.
68
+ */
69
+ export declare const BotRequestBuilderRequestsMetadata: RequestsMetadata;
67
70
  //# sourceMappingURL=index.d.ts.map