@microsoft/msgraph-sdk-appcatalogs 1.0.0-preview.10

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 (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/appCatalogs/index.d.ts +64 -0
  4. package/appCatalogs/index.d.ts.map +1 -0
  5. package/appCatalogs/index.js +59 -0
  6. package/appCatalogs/teamsApps/count/index.d.ts +40 -0
  7. package/appCatalogs/teamsApps/count/index.d.ts.map +1 -0
  8. package/appCatalogs/teamsApps/count/index.js +35 -0
  9. package/appCatalogs/teamsApps/index.d.ts +97 -0
  10. package/appCatalogs/teamsApps/index.d.ts.map +1 -0
  11. package/appCatalogs/teamsApps/index.js +71 -0
  12. package/appCatalogs/teamsApps/item/appDefinitions/count/index.d.ts +40 -0
  13. package/appCatalogs/teamsApps/item/appDefinitions/count/index.d.ts.map +1 -0
  14. package/appCatalogs/teamsApps/item/appDefinitions/count/index.js +35 -0
  15. package/appCatalogs/teamsApps/item/appDefinitions/index.d.ts +96 -0
  16. package/appCatalogs/teamsApps/item/appDefinitions/index.d.ts.map +1 -0
  17. package/appCatalogs/teamsApps/item/appDefinitions/index.js +71 -0
  18. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.d.ts +67 -0
  19. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.d.ts.map +1 -0
  20. package/appCatalogs/teamsApps/item/appDefinitions/item/bot/index.js +56 -0
  21. package/appCatalogs/teamsApps/item/appDefinitions/item/index.d.ts +76 -0
  22. package/appCatalogs/teamsApps/item/appDefinitions/item/index.d.ts.map +1 -0
  23. package/appCatalogs/teamsApps/item/appDefinitions/item/index.js +66 -0
  24. package/appCatalogs/teamsApps/item/index.d.ts +76 -0
  25. package/appCatalogs/teamsApps/item/index.d.ts.map +1 -0
  26. package/appCatalogs/teamsApps/item/index.js +67 -0
  27. package/appCatalogsServiceClient.d.ts +25 -0
  28. package/appCatalogsServiceClient.d.ts.map +1 -0
  29. package/appCatalogsServiceClient.js +49 -0
  30. package/index.d.ts +11 -0
  31. package/index.d.ts.map +1 -0
  32. package/index.js +20 -0
  33. package/package.json +48 -0
  34. package/tsconfig.json +15 -0
  35. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppDefinitionsRequestBuilderUriTemplate = exports.AppDefinitionsRequestBuilderRequestsMetadata = exports.AppDefinitionsRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const count_1 = require("./count/");
10
+ const item_1 = require("./item/");
11
+ /**
12
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
13
+ */
14
+ const AppDefinitionsRequestBuilderGetQueryParametersMapper = {
15
+ "count": "%24count",
16
+ "expand": "%24expand",
17
+ "filter": "%24filter",
18
+ "orderby": "%24orderby",
19
+ "search": "%24search",
20
+ "select": "%24select",
21
+ "skip": "%24skip",
22
+ "top": "%24top",
23
+ };
24
+ /**
25
+ * Metadata for all the navigation properties in the request builder.
26
+ */
27
+ exports.AppDefinitionsRequestBuilderNavigationMetadata = {
28
+ byTeamsAppDefinitionId: {
29
+ uriTemplate: item_1.TeamsAppDefinitionItemRequestBuilderUriTemplate,
30
+ requestsMetadata: item_1.TeamsAppDefinitionItemRequestBuilderRequestsMetadata,
31
+ navigationMetadata: item_1.TeamsAppDefinitionItemRequestBuilderNavigationMetadata,
32
+ pathParametersMappings: ["teamsAppDefinition%2Did"],
33
+ },
34
+ count: {
35
+ uriTemplate: count_1.CountRequestBuilderUriTemplate,
36
+ requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
37
+ },
38
+ };
39
+ /**
40
+ * Metadata for all the requests in the request builder.
41
+ */
42
+ exports.AppDefinitionsRequestBuilderRequestsMetadata = {
43
+ get: {
44
+ responseBodyContentType: "application/json",
45
+ errorMappings: {
46
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
47
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
48
+ },
49
+ adapterMethodName: "sendAsync",
50
+ responseBodyFactory: models_1.createTeamsAppDefinitionCollectionResponseFromDiscriminatorValue,
51
+ queryParametersMapper: AppDefinitionsRequestBuilderGetQueryParametersMapper,
52
+ },
53
+ post: {
54
+ responseBodyContentType: "application/json",
55
+ errorMappings: {
56
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
57
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
58
+ },
59
+ adapterMethodName: "sendAsync",
60
+ responseBodyFactory: models_1.createTeamsAppDefinitionFromDiscriminatorValue,
61
+ requestBodyContentType: "application/json",
62
+ requestBodySerializer: models_1.serializeTeamsAppDefinition,
63
+ requestInformationContentSetMethod: "setContentFromParsable",
64
+ },
65
+ };
66
+ /**
67
+ * Uri template for the request builder.
68
+ */
69
+ exports.AppDefinitionsRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
70
+ /* tslint:enable */
71
+ /* eslint-enable */
@@ -0,0 +1,67 @@
1
+ import { type TeamworkBot } from '@microsoft/msgraph-sdk/models/';
2
+ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity.
5
+ */
6
+ export interface BotRequestBuilder extends BaseRequestBuilder<BotRequestBuilder> {
7
+ /**
8
+ * Delete navigation property bot for appCatalogs
9
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
10
+ */
11
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
12
+ /**
13
+ * Get the bot associated with a specific definition of the TeamsApp.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @returns a Promise of TeamworkBot
16
+ * @see {@link https://learn.microsoft.com/graph/api/teamworkbot-get?view=graph-rest-1.0|Find more info here}
17
+ */
18
+ get(requestConfiguration?: RequestConfiguration<BotRequestBuilderGetQueryParameters> | undefined): Promise<TeamworkBot | undefined>;
19
+ /**
20
+ * Update the navigation property bot in appCatalogs
21
+ * @param body The request body
22
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23
+ * @returns a Promise of TeamworkBot
24
+ */
25
+ patch(body: TeamworkBot, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamworkBot | undefined>;
26
+ /**
27
+ * Delete navigation property bot for appCatalogs
28
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
29
+ * @returns a RequestInformation
30
+ */
31
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
32
+ /**
33
+ * Get the bot associated with a specific definition of the TeamsApp.
34
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
35
+ * @returns a RequestInformation
36
+ */
37
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<BotRequestBuilderGetQueryParameters> | undefined): RequestInformation;
38
+ /**
39
+ * Update the navigation property bot in appCatalogs
40
+ * @param body The request body
41
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
42
+ * @returns a RequestInformation
43
+ */
44
+ toPatchRequestInformation(body: TeamworkBot, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
45
+ }
46
+ /**
47
+ * Get the bot associated with a specific definition of the TeamsApp.
48
+ */
49
+ export interface BotRequestBuilderGetQueryParameters {
50
+ /**
51
+ * Expand related entities
52
+ */
53
+ expand?: string[];
54
+ /**
55
+ * Select properties to be returned
56
+ */
57
+ select?: string[];
58
+ }
59
+ /**
60
+ * Metadata for all the requests in the request builder.
61
+ */
62
+ export declare const BotRequestBuilderRequestsMetadata: RequestsMetadata;
63
+ /**
64
+ * Uri template for the request builder.
65
+ */
66
+ export declare const BotRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24select,%24expand}";
67
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;;OAGG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;;OAKG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,mCAAmC,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IACtI;;;;;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,0BAA0B,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAClH;;;;OAIG;IACF,uBAAuB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,mCAAmC,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC5I;;;;;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,mCAAmC;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,gBA+B/C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4BAA4B,wHAAwH,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BotRequestBuilderUriTemplate = exports.BotRequestBuilderRequestsMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ /**
10
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
11
+ */
12
+ const BotRequestBuilderGetQueryParametersMapper = {
13
+ "expand": "%24expand",
14
+ "select": "%24select",
15
+ };
16
+ /**
17
+ * Metadata for all the requests in the request builder.
18
+ */
19
+ exports.BotRequestBuilderRequestsMetadata = {
20
+ delete: {
21
+ responseBodyContentType: "application/json",
22
+ errorMappings: {
23
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
24
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
25
+ },
26
+ adapterMethodName: "sendNoResponseContentAsync",
27
+ },
28
+ get: {
29
+ responseBodyContentType: "application/json",
30
+ errorMappings: {
31
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
32
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
33
+ },
34
+ adapterMethodName: "sendAsync",
35
+ responseBodyFactory: models_1.createTeamworkBotFromDiscriminatorValue,
36
+ queryParametersMapper: BotRequestBuilderGetQueryParametersMapper,
37
+ },
38
+ patch: {
39
+ responseBodyContentType: "application/json",
40
+ errorMappings: {
41
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ },
44
+ adapterMethodName: "sendAsync",
45
+ responseBodyFactory: models_1.createTeamworkBotFromDiscriminatorValue,
46
+ requestBodyContentType: "application/json",
47
+ requestBodySerializer: models_1.serializeTeamworkBot,
48
+ requestInformationContentSetMethod: "setContentFromParsable",
49
+ },
50
+ };
51
+ /**
52
+ * Uri template for the request builder.
53
+ */
54
+ exports.BotRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/bot{?%24select,%24expand}";
55
+ /* tslint:enable */
56
+ /* eslint-enable */
@@ -0,0 +1,76 @@
1
+ import { type TeamsAppDefinition } from '@microsoft/msgraph-sdk/models/';
2
+ import { type BotRequestBuilder } from './bot/';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
6
+ */
7
+ export interface TeamsAppDefinitionItemRequestBuilder extends BaseRequestBuilder<TeamsAppDefinitionItemRequestBuilder> {
8
+ /**
9
+ * Provides operations to manage the bot property of the microsoft.graph.teamsAppDefinition entity.
10
+ */
11
+ get bot(): BotRequestBuilder;
12
+ /**
13
+ * Delete navigation property appDefinitions for appCatalogs
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ */
16
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
17
+ /**
18
+ * The details for each version of the app.
19
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
20
+ * @returns a Promise of TeamsAppDefinition
21
+ */
22
+ get(requestConfiguration?: RequestConfiguration<TeamsAppDefinitionItemRequestBuilderGetQueryParameters> | undefined): Promise<TeamsAppDefinition | undefined>;
23
+ /**
24
+ * 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.
25
+ * @param body The request body
26
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
27
+ * @returns a Promise of TeamsAppDefinition
28
+ * @see {@link https://learn.microsoft.com/graph/api/teamsapp-publish?view=graph-rest-1.0|Find more info here}
29
+ */
30
+ patch(body: TeamsAppDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsAppDefinition | undefined>;
31
+ /**
32
+ * Delete navigation property appDefinitions for appCatalogs
33
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
34
+ * @returns a RequestInformation
35
+ */
36
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
37
+ /**
38
+ * The details for each version of the app.
39
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
+ * @returns a RequestInformation
41
+ */
42
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamsAppDefinitionItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
43
+ /**
44
+ * 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.
45
+ * @param body The request body
46
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47
+ * @returns a RequestInformation
48
+ */
49
+ toPatchRequestInformation(body: TeamsAppDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
50
+ }
51
+ /**
52
+ * The details for each version of the app.
53
+ */
54
+ export interface TeamsAppDefinitionItemRequestBuilderGetQueryParameters {
55
+ /**
56
+ * Expand related entities
57
+ */
58
+ expand?: string[];
59
+ /**
60
+ * Select properties to be returned
61
+ */
62
+ select?: string[];
63
+ }
64
+ /**
65
+ * Metadata for all the navigation properties in the request builder.
66
+ */
67
+ export declare const TeamsAppDefinitionItemRequestBuilderNavigationMetadata: Record<Exclude<keyof TeamsAppDefinitionItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
68
+ /**
69
+ * Metadata for all the requests in the request builder.
70
+ */
71
+ export declare const TeamsAppDefinitionItemRequestBuilderRequestsMetadata: RequestsMetadata;
72
+ /**
73
+ * Uri template for the request builder.
74
+ */
75
+ export declare const TeamsAppDefinitionItemRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}{?%24select,%24expand}";
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+E,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEtJ,OAAO,EAAmE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACjH,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,oCAAqC,SAAQ,kBAAkB,CAAC,oCAAoC,CAAC;IAClH;;OAEG;IACH,IAAI,GAAG,IAAI,iBAAiB,CAAC;IAC7B;;;OAGG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,sDAAsD,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAChK;;;;;;OAMG;IACF,KAAK,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAC5I;;;;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,sDAAsD,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IAC/J;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CAC9I;AACD;;GAEG;AACH,MAAM,WAAW,sDAAsD;IACnE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,sDAAsD,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,oCAAoC,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAKtL,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,oDAAoD,EAAE,gBA+BlE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+CAA+C,oHAAoH,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamsAppDefinitionItemRequestBuilderUriTemplate = exports.TeamsAppDefinitionItemRequestBuilderRequestsMetadata = exports.TeamsAppDefinitionItemRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const bot_1 = require("./bot/");
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const TeamsAppDefinitionItemRequestBuilderGetQueryParametersMapper = {
14
+ "expand": "%24expand",
15
+ "select": "%24select",
16
+ };
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ exports.TeamsAppDefinitionItemRequestBuilderNavigationMetadata = {
21
+ bot: {
22
+ uriTemplate: bot_1.BotRequestBuilderUriTemplate,
23
+ requestsMetadata: bot_1.BotRequestBuilderRequestsMetadata,
24
+ },
25
+ };
26
+ /**
27
+ * Metadata for all the requests in the request builder.
28
+ */
29
+ exports.TeamsAppDefinitionItemRequestBuilderRequestsMetadata = {
30
+ delete: {
31
+ responseBodyContentType: "application/json",
32
+ errorMappings: {
33
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
34
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
35
+ },
36
+ adapterMethodName: "sendNoResponseContentAsync",
37
+ },
38
+ get: {
39
+ responseBodyContentType: "application/json",
40
+ errorMappings: {
41
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
42
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ },
44
+ adapterMethodName: "sendAsync",
45
+ responseBodyFactory: models_1.createTeamsAppDefinitionFromDiscriminatorValue,
46
+ queryParametersMapper: TeamsAppDefinitionItemRequestBuilderGetQueryParametersMapper,
47
+ },
48
+ patch: {
49
+ responseBodyContentType: "application/json",
50
+ errorMappings: {
51
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
52
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
53
+ },
54
+ adapterMethodName: "sendAsync",
55
+ responseBodyFactory: models_1.createTeamsAppDefinitionFromDiscriminatorValue,
56
+ requestBodyContentType: "application/json",
57
+ requestBodySerializer: models_1.serializeTeamsAppDefinition,
58
+ requestInformationContentSetMethod: "setContentFromParsable",
59
+ },
60
+ };
61
+ /**
62
+ * Uri template for the request builder.
63
+ */
64
+ exports.TeamsAppDefinitionItemRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}{?%24select,%24expand}";
65
+ /* tslint:enable */
66
+ /* eslint-enable */
@@ -0,0 +1,76 @@
1
+ import { type TeamsApp } from '@microsoft/msgraph-sdk/models/';
2
+ import { type AppDefinitionsRequestBuilder } from './appDefinitions/';
3
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
4
+ /**
5
+ * Provides operations to manage the teamsApps property of the microsoft.graph.appCatalogs entity.
6
+ */
7
+ export interface TeamsAppItemRequestBuilder extends BaseRequestBuilder<TeamsAppItemRequestBuilder> {
8
+ /**
9
+ * Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
10
+ */
11
+ get appDefinitions(): AppDefinitionsRequestBuilder;
12
+ /**
13
+ * Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
14
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
15
+ * @see {@link https://learn.microsoft.com/graph/api/teamsapp-delete?view=graph-rest-1.0|Find more info here}
16
+ */
17
+ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
18
+ /**
19
+ * Get teamsApps from appCatalogs
20
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
21
+ * @returns a Promise of TeamsApp
22
+ */
23
+ get(requestConfiguration?: RequestConfiguration<TeamsAppItemRequestBuilderGetQueryParameters> | undefined): Promise<TeamsApp | undefined>;
24
+ /**
25
+ * Update the navigation property teamsApps in appCatalogs
26
+ * @param body The request body
27
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
28
+ * @returns a Promise of TeamsApp
29
+ */
30
+ patch(body: TeamsApp, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsApp | undefined>;
31
+ /**
32
+ * Delete an app from an organization's app catalog (the tenant app catalog). To delete an app, the distributionMethod property for the app must be set to organization. You can also use this API to remove a submitted app from the review process.
33
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
34
+ * @returns a RequestInformation
35
+ */
36
+ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
37
+ /**
38
+ * Get teamsApps from appCatalogs
39
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40
+ * @returns a RequestInformation
41
+ */
42
+ toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamsAppItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
43
+ /**
44
+ * Update the navigation property teamsApps in appCatalogs
45
+ * @param body The request body
46
+ * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
47
+ * @returns a RequestInformation
48
+ */
49
+ toPatchRequestInformation(body: TeamsApp, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
50
+ }
51
+ /**
52
+ * Get teamsApps from appCatalogs
53
+ */
54
+ export interface TeamsAppItemRequestBuilderGetQueryParameters {
55
+ /**
56
+ * Expand related entities
57
+ */
58
+ expand?: string[];
59
+ /**
60
+ * Select properties to be returned
61
+ */
62
+ select?: string[];
63
+ }
64
+ /**
65
+ * Metadata for all the navigation properties in the request builder.
66
+ */
67
+ export declare const TeamsAppItemRequestBuilderNavigationMetadata: Record<Exclude<keyof TeamsAppItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
68
+ /**
69
+ * Metadata for all the requests in the request builder.
70
+ */
71
+ export declare const TeamsAppItemRequestBuilderRequestsMetadata: RequestsMetadata;
72
+ /**
73
+ * Uri template for the request builder.
74
+ */
75
+ export declare const TeamsAppItemRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24select,%24expand}";
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2D,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAExH,OAAO,EAAyI,KAAK,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAC7M,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,0BAA2B,SAAQ,kBAAkB,CAAC,0BAA0B,CAAC;IAC9F;;OAEG;IACH,IAAI,cAAc,IAAI,4BAA4B,CAAC;IACnD;;;;OAIG;IACF,MAAM,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF;;;;OAIG;IACF,GAAG,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,4CAA4C,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IAC5I;;;;;OAKG;IACF,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IACxH;;;;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,4CAA4C,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;IACrJ;;;;;OAKG;IACF,yBAAyB,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpI;AACD;;GAEG;AACH,MAAM,WAAW,4CAA4C;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAMlK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,gBA+BxD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,qCAAqC,2EAA2E,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamsAppItemRequestBuilderUriTemplate = exports.TeamsAppItemRequestBuilderRequestsMetadata = exports.TeamsAppItemRequestBuilderNavigationMetadata = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const models_1 = require("@microsoft/msgraph-sdk/models/");
8
+ const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
9
+ const appDefinitions_1 = require("./appDefinitions/");
10
+ /**
11
+ * Mapper for query parameters from symbol name to serialization name represented as a constant.
12
+ */
13
+ const TeamsAppItemRequestBuilderGetQueryParametersMapper = {
14
+ "expand": "%24expand",
15
+ "select": "%24select",
16
+ };
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ exports.TeamsAppItemRequestBuilderNavigationMetadata = {
21
+ appDefinitions: {
22
+ uriTemplate: appDefinitions_1.AppDefinitionsRequestBuilderUriTemplate,
23
+ requestsMetadata: appDefinitions_1.AppDefinitionsRequestBuilderRequestsMetadata,
24
+ navigationMetadata: appDefinitions_1.AppDefinitionsRequestBuilderNavigationMetadata,
25
+ },
26
+ };
27
+ /**
28
+ * Metadata for all the requests in the request builder.
29
+ */
30
+ exports.TeamsAppItemRequestBuilderRequestsMetadata = {
31
+ delete: {
32
+ responseBodyContentType: "application/json",
33
+ errorMappings: {
34
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
35
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
36
+ },
37
+ adapterMethodName: "sendNoResponseContentAsync",
38
+ },
39
+ get: {
40
+ responseBodyContentType: "application/json",
41
+ errorMappings: {
42
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
43
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
44
+ },
45
+ adapterMethodName: "sendAsync",
46
+ responseBodyFactory: models_1.createTeamsAppFromDiscriminatorValue,
47
+ queryParametersMapper: TeamsAppItemRequestBuilderGetQueryParametersMapper,
48
+ },
49
+ patch: {
50
+ responseBodyContentType: "application/json",
51
+ errorMappings: {
52
+ _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
53
+ _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
54
+ },
55
+ adapterMethodName: "sendAsync",
56
+ responseBodyFactory: models_1.createTeamsAppFromDiscriminatorValue,
57
+ requestBodyContentType: "application/json",
58
+ requestBodySerializer: models_1.serializeTeamsApp,
59
+ requestInformationContentSetMethod: "setContentFromParsable",
60
+ },
61
+ };
62
+ /**
63
+ * Uri template for the request builder.
64
+ */
65
+ exports.TeamsAppItemRequestBuilderUriTemplate = "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}{?%24select,%24expand}";
66
+ /* tslint:enable */
67
+ /* eslint-enable */
@@ -0,0 +1,25 @@
1
+ import { type AppCatalogsRequestBuilder } from './appCatalogs/';
2
+ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
3
+ /**
4
+ * The main entry point of the SDK, exposes the configuration and the fluent API.
5
+ */
6
+ export interface AppCatalogsServiceClient extends BaseRequestBuilder<AppCatalogsServiceClient> {
7
+ /**
8
+ * Provides operations to manage the appCatalogs singleton.
9
+ */
10
+ get appCatalogs(): AppCatalogsRequestBuilder;
11
+ }
12
+ /**
13
+ * Instantiates a new AppCatalogsServiceClient and sets the default values.
14
+ * @param requestAdapter The request adapter to use to execute the requests.
15
+ */
16
+ export declare function createAppCatalogsServiceClient(requestAdapter: RequestAdapter): AppCatalogsServiceClient;
17
+ /**
18
+ * Metadata for all the navigation properties in the request builder.
19
+ */
20
+ export declare const AppCatalogsServiceClientNavigationMetadata: Record<Exclude<keyof AppCatalogsServiceClient, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
21
+ /**
22
+ * Uri template for the request builder.
23
+ */
24
+ export declare const AppCatalogsServiceClientUriTemplate = "{+baseurl}";
25
+ //# sourceMappingURL=appCatalogsServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appCatalogsServiceClient.d.ts","sourceRoot":"","sources":["appCatalogsServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgI,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC9L,OAAO,EAA8E,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM3O;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;IAC1F;;OAEG;IACH,IAAI,WAAW,IAAI,yBAAyB,CAAC;CAChD;AACD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,cAAc,EAAE,cAAc,4BAe5E;AACD;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,wBAAwB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAM9J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,mCAAmC,eAAe,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppCatalogsServiceClientUriTemplate = exports.AppCatalogsServiceClientNavigationMetadata = exports.createAppCatalogsServiceClient = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const appCatalogs_1 = require("./appCatalogs/");
8
+ const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
9
+ const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
10
+ const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
11
+ const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
12
+ const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
13
+ /**
14
+ * Instantiates a new AppCatalogsServiceClient and sets the default values.
15
+ * @param requestAdapter The request adapter to use to execute the requests.
16
+ */
17
+ function createAppCatalogsServiceClient(requestAdapter) {
18
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
19
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
20
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
21
+ (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
22
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
23
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
24
+ (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
25
+ if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
26
+ requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
27
+ }
28
+ const pathParameters = {
29
+ "baseurl": requestAdapter.baseUrl,
30
+ };
31
+ return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, exports.AppCatalogsServiceClientUriTemplate, exports.AppCatalogsServiceClientNavigationMetadata, undefined);
32
+ }
33
+ exports.createAppCatalogsServiceClient = createAppCatalogsServiceClient;
34
+ /**
35
+ * Metadata for all the navigation properties in the request builder.
36
+ */
37
+ exports.AppCatalogsServiceClientNavigationMetadata = {
38
+ appCatalogs: {
39
+ uriTemplate: appCatalogs_1.AppCatalogsRequestBuilderUriTemplate,
40
+ requestsMetadata: appCatalogs_1.AppCatalogsRequestBuilderRequestsMetadata,
41
+ navigationMetadata: appCatalogs_1.AppCatalogsRequestBuilderNavigationMetadata,
42
+ },
43
+ };
44
+ /**
45
+ * Uri template for the request builder.
46
+ */
47
+ exports.AppCatalogsServiceClientUriTemplate = "{+baseurl}";
48
+ /* tslint:enable */
49
+ /* eslint-enable */
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import type { AppCatalogsRequestBuilder } from "./appCatalogs";
2
+ declare module "@microsoft/msgraph-sdk" {
3
+ interface GraphServiceClient {
4
+ /**
5
+ * Provides operations to manage the appCatalogs singleton.
6
+ */
7
+ get appCatalogs(): AppCatalogsRequestBuilder;
8
+ }
9
+ }
10
+ export * from "./appCatalogsServiceClient";
11
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG/D,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,kBAAkB;QAC1B;;WAEG;QACH,IAAI,WAAW,IAAI,yBAAyB,CAAC;KAC9C;CACF;AAED,cAAc,4BAA4B,CAAC"}
package/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ const msgraph_sdk_1 = require("@microsoft/msgraph-sdk");
18
+ const appCatalogsServiceClient_1 = require("./appCatalogsServiceClient");
19
+ (0, msgraph_sdk_1.extendGraphServiceClient)(appCatalogsServiceClient_1.AppCatalogsServiceClientNavigationMetadata);
20
+ __exportStar(require("./appCatalogsServiceClient"), exports);