@aws-sdk/client-partnercentral-account 3.942.0

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 (167) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +421 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1701 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +41 -0
  11. package/dist-es/PartnerCentralAccount.js +61 -0
  12. package/dist-es/PartnerCentralAccountClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/AcceptConnectionInvitationCommand.js +16 -0
  16. package/dist-es/commands/AssociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
  17. package/dist-es/commands/CancelConnectionCommand.js +16 -0
  18. package/dist-es/commands/CancelConnectionInvitationCommand.js +16 -0
  19. package/dist-es/commands/CancelProfileUpdateTaskCommand.js +16 -0
  20. package/dist-es/commands/CreateConnectionInvitationCommand.js +16 -0
  21. package/dist-es/commands/CreatePartnerCommand.js +16 -0
  22. package/dist-es/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.js +16 -0
  23. package/dist-es/commands/GetAllianceLeadContactCommand.js +16 -0
  24. package/dist-es/commands/GetConnectionCommand.js +16 -0
  25. package/dist-es/commands/GetConnectionInvitationCommand.js +16 -0
  26. package/dist-es/commands/GetConnectionPreferencesCommand.js +16 -0
  27. package/dist-es/commands/GetPartnerCommand.js +16 -0
  28. package/dist-es/commands/GetProfileUpdateTaskCommand.js +16 -0
  29. package/dist-es/commands/GetProfileVisibilityCommand.js +16 -0
  30. package/dist-es/commands/ListConnectionInvitationsCommand.js +16 -0
  31. package/dist-es/commands/ListConnectionsCommand.js +16 -0
  32. package/dist-es/commands/ListPartnersCommand.js +16 -0
  33. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  34. package/dist-es/commands/PutAllianceLeadContactCommand.js +16 -0
  35. package/dist-es/commands/PutProfileVisibilityCommand.js +16 -0
  36. package/dist-es/commands/RejectConnectionInvitationCommand.js +16 -0
  37. package/dist-es/commands/SendEmailVerificationCodeCommand.js +16 -0
  38. package/dist-es/commands/StartProfileUpdateTaskCommand.js +16 -0
  39. package/dist-es/commands/TagResourceCommand.js +16 -0
  40. package/dist-es/commands/UntagResourceCommand.js +16 -0
  41. package/dist-es/commands/UpdateConnectionPreferencesCommand.js +16 -0
  42. package/dist-es/commands/index.js +27 -0
  43. package/dist-es/endpoint/EndpointParameters.js +11 -0
  44. package/dist-es/endpoint/endpointResolver.js +14 -0
  45. package/dist-es/endpoint/ruleset.js +4 -0
  46. package/dist-es/extensionConfiguration.js +1 -0
  47. package/dist-es/index.js +7 -0
  48. package/dist-es/models/PartnerCentralAccountServiceException.js +8 -0
  49. package/dist-es/models/enums.js +144 -0
  50. package/dist-es/models/errors.js +117 -0
  51. package/dist-es/models/models_0.js +1 -0
  52. package/dist-es/pagination/Interfaces.js +1 -0
  53. package/dist-es/pagination/ListConnectionInvitationsPaginator.js +4 -0
  54. package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
  55. package/dist-es/pagination/ListPartnersPaginator.js +4 -0
  56. package/dist-es/pagination/index.js +4 -0
  57. package/dist-es/runtimeConfig.browser.js +34 -0
  58. package/dist-es/runtimeConfig.js +51 -0
  59. package/dist-es/runtimeConfig.native.js +11 -0
  60. package/dist-es/runtimeConfig.shared.js +37 -0
  61. package/dist-es/runtimeExtensions.js +9 -0
  62. package/dist-es/schemas/schemas_0.js +900 -0
  63. package/dist-types/PartnerCentralAccount.d.ts +199 -0
  64. package/dist-types/PartnerCentralAccountClient.d.ts +223 -0
  65. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  66. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  67. package/dist-types/commands/AcceptConnectionInvitationCommand.d.ts +123 -0
  68. package/dist-types/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +94 -0
  69. package/dist-types/commands/CancelConnectionCommand.d.ts +123 -0
  70. package/dist-types/commands/CancelConnectionInvitationCommand.d.ts +107 -0
  71. package/dist-types/commands/CancelProfileUpdateTaskCommand.d.ts +128 -0
  72. package/dist-types/commands/CreateConnectionInvitationCommand.d.ts +111 -0
  73. package/dist-types/commands/CreatePartnerCommand.d.ts +142 -0
  74. package/dist-types/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +90 -0
  75. package/dist-types/commands/GetAllianceLeadContactCommand.d.ts +98 -0
  76. package/dist-types/commands/GetConnectionCommand.d.ts +117 -0
  77. package/dist-types/commands/GetConnectionInvitationCommand.d.ts +103 -0
  78. package/dist-types/commands/GetConnectionPreferencesCommand.d.ts +93 -0
  79. package/dist-types/commands/GetPartnerCommand.d.ts +121 -0
  80. package/dist-types/commands/GetProfileUpdateTaskCommand.d.ts +123 -0
  81. package/dist-types/commands/GetProfileVisibilityCommand.d.ts +94 -0
  82. package/dist-types/commands/ListConnectionInvitationsCommand.d.ts +109 -0
  83. package/dist-types/commands/ListConnectionsCommand.d.ts +119 -0
  84. package/dist-types/commands/ListPartnersCommand.d.ts +96 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +95 -0
  86. package/dist-types/commands/PutAllianceLeadContactCommand.d.ts +105 -0
  87. package/dist-types/commands/PutProfileVisibilityCommand.d.ts +95 -0
  88. package/dist-types/commands/RejectConnectionInvitationCommand.d.ts +108 -0
  89. package/dist-types/commands/SendEmailVerificationCodeCommand.d.ts +88 -0
  90. package/dist-types/commands/StartProfileUpdateTaskCommand.d.ts +147 -0
  91. package/dist-types/commands/TagResourceCommand.d.ts +96 -0
  92. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  93. package/dist-types/commands/UpdateConnectionPreferencesCommand.d.ts +101 -0
  94. package/dist-types/commands/index.d.ts +27 -0
  95. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  96. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  97. package/dist-types/endpoint/ruleset.d.ts +2 -0
  98. package/dist-types/extensionConfiguration.d.ts +9 -0
  99. package/dist-types/index.d.ts +16 -0
  100. package/dist-types/models/PartnerCentralAccountServiceException.d.ts +14 -0
  101. package/dist-types/models/enums.d.ts +280 -0
  102. package/dist-types/models/errors.d.ts +137 -0
  103. package/dist-types/models/models_0.d.ts +2083 -0
  104. package/dist-types/pagination/Interfaces.d.ts +8 -0
  105. package/dist-types/pagination/ListConnectionInvitationsPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListPartnersPaginator.d.ts +7 -0
  108. package/dist-types/pagination/index.d.ts +4 -0
  109. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  110. package/dist-types/runtimeConfig.d.ts +51 -0
  111. package/dist-types/runtimeConfig.native.d.ts +50 -0
  112. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  113. package/dist-types/runtimeExtensions.d.ts +17 -0
  114. package/dist-types/schemas/schemas_0.d.ts +126 -0
  115. package/dist-types/ts3.4/PartnerCentralAccount.d.ts +478 -0
  116. package/dist-types/ts3.4/PartnerCentralAccountClient.d.ts +288 -0
  117. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  118. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  119. package/dist-types/ts3.4/commands/AcceptConnectionInvitationCommand.d.ts +51 -0
  120. package/dist-types/ts3.4/commands/AssociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
  121. package/dist-types/ts3.4/commands/CancelConnectionCommand.d.ts +50 -0
  122. package/dist-types/ts3.4/commands/CancelConnectionInvitationCommand.d.ts +51 -0
  123. package/dist-types/ts3.4/commands/CancelProfileUpdateTaskCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/CreateConnectionInvitationCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/CreatePartnerCommand.d.ts +50 -0
  126. package/dist-types/ts3.4/commands/DisassociateAwsTrainingCertificationEmailDomainCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/GetAllianceLeadContactCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
  129. package/dist-types/ts3.4/commands/GetConnectionInvitationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/GetConnectionPreferencesCommand.d.ts +51 -0
  131. package/dist-types/ts3.4/commands/GetPartnerCommand.d.ts +47 -0
  132. package/dist-types/ts3.4/commands/GetProfileUpdateTaskCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/GetProfileVisibilityCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/ListConnectionInvitationsCommand.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
  136. package/dist-types/ts3.4/commands/ListPartnersCommand.d.ts +47 -0
  137. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/PutAllianceLeadContactCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/PutProfileVisibilityCommand.d.ts +51 -0
  140. package/dist-types/ts3.4/commands/RejectConnectionInvitationCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/SendEmailVerificationCodeCommand.d.ts +51 -0
  142. package/dist-types/ts3.4/commands/StartProfileUpdateTaskCommand.d.ts +51 -0
  143. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  144. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  145. package/dist-types/ts3.4/commands/UpdateConnectionPreferencesCommand.d.ts +51 -0
  146. package/dist-types/ts3.4/commands/index.d.ts +27 -0
  147. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  148. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  149. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  150. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  151. package/dist-types/ts3.4/index.d.ts +11 -0
  152. package/dist-types/ts3.4/models/PartnerCentralAccountServiceException.d.ts +9 -0
  153. package/dist-types/ts3.4/models/enums.d.ts +177 -0
  154. package/dist-types/ts3.4/models/errors.d.ts +74 -0
  155. package/dist-types/ts3.4/models/models_0.d.ts +544 -0
  156. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  157. package/dist-types/ts3.4/pagination/ListConnectionInvitationsPaginator.d.ts +11 -0
  158. package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
  159. package/dist-types/ts3.4/pagination/ListPartnersPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  161. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  162. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  163. package/dist-types/ts3.4/runtimeConfig.native.d.ts +101 -0
  164. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  165. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  166. package/dist-types/ts3.4/schemas/schemas_0.d.ts +133 -0
  167. package/package.json +99 -0
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListConnections } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListConnectionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "ListConnections", {})
13
+ .n("PartnerCentralAccountClient", "ListConnectionsCommand")
14
+ .sc(ListConnections)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListPartners } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListPartnersCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "ListPartners", {})
13
+ .n("PartnerCentralAccountClient", "ListPartnersCommand")
14
+ .sc(ListPartners)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "ListTagsForResource", {})
13
+ .n("PartnerCentralAccountClient", "ListTagsForResourceCommand")
14
+ .sc(ListTagsForResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutAllianceLeadContact } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutAllianceLeadContactCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "PutAllianceLeadContact", {})
13
+ .n("PartnerCentralAccountClient", "PutAllianceLeadContactCommand")
14
+ .sc(PutAllianceLeadContact)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutProfileVisibility } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutProfileVisibilityCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "PutProfileVisibility", {})
13
+ .n("PartnerCentralAccountClient", "PutProfileVisibilityCommand")
14
+ .sc(PutProfileVisibility)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { RejectConnectionInvitation } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class RejectConnectionInvitationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "RejectConnectionInvitation", {})
13
+ .n("PartnerCentralAccountClient", "RejectConnectionInvitationCommand")
14
+ .sc(RejectConnectionInvitation)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { SendEmailVerificationCode } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SendEmailVerificationCodeCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "SendEmailVerificationCode", {})
13
+ .n("PartnerCentralAccountClient", "SendEmailVerificationCodeCommand")
14
+ .sc(SendEmailVerificationCode)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { StartProfileUpdateTask } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StartProfileUpdateTaskCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "StartProfileUpdateTask", {})
13
+ .n("PartnerCentralAccountClient", "StartProfileUpdateTaskCommand")
14
+ .sc(StartProfileUpdateTask)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "TagResource", {})
13
+ .n("PartnerCentralAccountClient", "TagResourceCommand")
14
+ .sc(TagResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "UntagResource", {})
13
+ .n("PartnerCentralAccountClient", "UntagResourceCommand")
14
+ .sc(UntagResource)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateConnectionPreferences } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateConnectionPreferencesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("PartnerCentralAccount", "UpdateConnectionPreferences", {})
13
+ .n("PartnerCentralAccountClient", "UpdateConnectionPreferencesCommand")
14
+ .sc(UpdateConnectionPreferences)
15
+ .build() {
16
+ }
@@ -0,0 +1,27 @@
1
+ export * from "./AcceptConnectionInvitationCommand";
2
+ export * from "./AssociateAwsTrainingCertificationEmailDomainCommand";
3
+ export * from "./CancelConnectionCommand";
4
+ export * from "./CancelConnectionInvitationCommand";
5
+ export * from "./CancelProfileUpdateTaskCommand";
6
+ export * from "./CreateConnectionInvitationCommand";
7
+ export * from "./CreatePartnerCommand";
8
+ export * from "./DisassociateAwsTrainingCertificationEmailDomainCommand";
9
+ export * from "./GetAllianceLeadContactCommand";
10
+ export * from "./GetConnectionCommand";
11
+ export * from "./GetConnectionInvitationCommand";
12
+ export * from "./GetConnectionPreferencesCommand";
13
+ export * from "./GetPartnerCommand";
14
+ export * from "./GetProfileUpdateTaskCommand";
15
+ export * from "./GetProfileVisibilityCommand";
16
+ export * from "./ListConnectionInvitationsCommand";
17
+ export * from "./ListConnectionsCommand";
18
+ export * from "./ListPartnersCommand";
19
+ export * from "./ListTagsForResourceCommand";
20
+ export * from "./PutAllianceLeadContactCommand";
21
+ export * from "./PutProfileVisibilityCommand";
22
+ export * from "./RejectConnectionInvitationCommand";
23
+ export * from "./SendEmailVerificationCodeCommand";
24
+ export * from "./StartProfileUpdateTaskCommand";
25
+ export * from "./TagResourceCommand";
26
+ export * from "./UntagResourceCommand";
27
+ export * from "./UpdateConnectionPreferencesCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "partnercentral-account",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://partnercentral-account-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://partnercentral-account.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./PartnerCentralAccountClient";
2
+ export * from "./PartnerCentralAccount";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
7
+ export { PartnerCentralAccountServiceException } from "./models/PartnerCentralAccountServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class PartnerCentralAccountServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, PartnerCentralAccountServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,144 @@
1
+ export const ConnectionType = {
2
+ OPPORTUNITY_COLLABORATION: "OPPORTUNITY_COLLABORATION",
3
+ SUBSIDIARY: "SUBSIDIARY",
4
+ };
5
+ export const ConnectionTypeStatus = {
6
+ ACTIVE: "ACTIVE",
7
+ CANCELED: "CANCELED",
8
+ };
9
+ export const AccessDeniedExceptionReason = {
10
+ ACCESS_DENIED: "ACCESS_DENIED",
11
+ INCOMPATIBLE_BENEFIT_AWS_PARTNER_STATE: "INCOMPATIBLE_BENEFIT_AWS_PARTNER_STATE",
12
+ };
13
+ export const ConflictExceptionReason = {
14
+ CONFLICT_CLIENT_TOKEN: "CONFLICT_CLIENT_TOKEN",
15
+ DUPLICATE_CONNECTION: "DUPLICATE_CONNECTION",
16
+ DUPLICATE_CONNECTION_INVITATION: "DUPLICATE_CONNECTION_INVITATION",
17
+ DUPLICATE_PARTNER: "DUPLICATE_PARTNER",
18
+ INCOMPATIBLE_CONNECTION_INVITATION_RECEIVER: "INCOMPATIBLE_CONNECTION_INVITATION_RECEIVER",
19
+ INCOMPATIBLE_CONNECTION_INVITATION_STATE: "INCOMPATIBLE_CONNECTION_INVITATION_STATE",
20
+ INCOMPATIBLE_CONNECTION_PREFERENCES_REVISION: "INCOMPATIBLE_CONNECTION_PREFERENCES_REVISION",
21
+ INCOMPATIBLE_CONNECTION_STATE: "INCOMPATIBLE_CONNECTION_STATE",
22
+ INCOMPATIBLE_PARTNER_PROFILE_TASK_STATE: "INCOMPATIBLE_PARTNER_PROFILE_TASK_STATE",
23
+ INCOMPATIBLE_PROFILE_STATE: "INCOMPATIBLE_PROFILE_STATE",
24
+ };
25
+ export const ResourceNotFoundExceptionReason = {
26
+ CONNECTION_INVITATION_NOT_FOUND: "CONNECTION_INVITATION_NOT_FOUND",
27
+ CONNECTION_NOT_FOUND: "CONNECTION_NOT_FOUND",
28
+ PARTNER_DOMAIN_NOT_FOUND: "PARTNER_DOMAIN_NOT_FOUND",
29
+ PARTNER_NOT_FOUND: "PARTNER_NOT_FOUND",
30
+ PARTNER_PROFILE_NOT_FOUND: "PARTNER_PROFILE_NOT_FOUND",
31
+ PARTNER_PROFILE_TASK_NOT_FOUND: "PARTNER_PROFILE_TASK_NOT_FOUND",
32
+ RECEIVER_PROFILE_NOT_FOUND: "RECEIVER_PROFILE_NOT_FOUND",
33
+ SENDER_PROFILE_NOT_FOUND: "SENDER_PROFILE_NOT_FOUND",
34
+ };
35
+ export const BusinessValidationCode = {
36
+ INCOMPATIBLE_CONNECTION_INVITATION_REQUEST: "INCOMPATIBLE_CONNECTION_INVITATION_REQUEST",
37
+ INCOMPATIBLE_DOMAIN: "INCOMPATIBLE_DOMAIN",
38
+ INCOMPATIBLE_IDENTITY_VERIFICATION_STATUS: "INCOMPATIBLE_IDENTITY_VERIFICATION_STATUS",
39
+ INCOMPATIBLE_KNOW_YOUR_BUSINESS_STATUS: "INCOMPATIBLE_KNOW_YOUR_BUSINESS_STATUS",
40
+ INCOMPATIBLE_LEGAL_NAME: "INCOMPATIBLE_LEGAL_NAME",
41
+ INVALID_ACCOUNT_LINKING_STATUS: "INVALID_ACCOUNT_LINKING_STATUS",
42
+ INVALID_ACCOUNT_STATE: "INVALID_ACCOUNT_STATE",
43
+ };
44
+ export const FieldValidationCode = {
45
+ ACTION_NOT_PERMITTED: "ACTION_NOT_PERMITTED",
46
+ DUPLICATE_VALUE: "DUPLICATE_VALUE",
47
+ INVALID_ENUM_VALUE: "INVALID_ENUM_VALUE",
48
+ INVALID_STRING_FORMAT: "INVALID_STRING_FORMAT",
49
+ INVALID_VALUE: "INVALID_VALUE",
50
+ REQUIRED_FIELD_MISSING: "REQUIRED_FIELD_MISSING",
51
+ TOO_MANY_VALUES: "TOO_MANY_VALUES",
52
+ };
53
+ export const ValidationExceptionReason = {
54
+ BUSINESS_VALIDATION_FAILED: "BUSINESS_VALIDATION_FAILED",
55
+ REQUEST_VALIDATION_FAILED: "REQUEST_VALIDATION_FAILED",
56
+ };
57
+ export const AccessType = {
58
+ ALLOW_ALL: "ALLOW_ALL",
59
+ ALLOW_BY_DEFAULT_DENY_SOME: "ALLOW_BY_DEFAULT_DENY_SOME",
60
+ DENY_ALL: "DENY_ALL",
61
+ };
62
+ export const ServiceQuotaExceededExceptionReason = {
63
+ LIMIT_EXCEEDED_NUMBER_OF_DOMAIN: "LIMIT_EXCEEDED_NUMBER_OF_DOMAIN",
64
+ LIMIT_EXCEEDED_NUMBER_OF_EMAIL: "LIMIT_EXCEEDED_NUMBER_OF_EMAIL",
65
+ };
66
+ export const ParticipantType = {
67
+ RECEIVER: "RECEIVER",
68
+ SENDER: "SENDER",
69
+ };
70
+ export const InvitationStatus = {
71
+ ACCEPTED: "ACCEPTED",
72
+ CANCELED: "CANCELED",
73
+ EXPIRED: "EXPIRED",
74
+ PENDING: "PENDING",
75
+ REJECTED: "REJECTED",
76
+ };
77
+ export const ProfileValidationErrorReason = {
78
+ DUPLICATE_PROFILE: "DUPLICATE_PROFILE",
79
+ INVALID_CONTENT: "INVALID_CONTENT",
80
+ INVALID_LOGO: "INVALID_LOGO",
81
+ INVALID_LOGO_FILE: "INVALID_LOGO_FILE",
82
+ INVALID_LOGO_SIZE: "INVALID_LOGO_SIZE",
83
+ INVALID_LOGO_URL: "INVALID_LOGO_URL",
84
+ INVALID_WEBSITE_URL: "INVALID_WEBSITE_URL",
85
+ };
86
+ export const ProfileTaskStatus = {
87
+ CANCELED: "CANCELED",
88
+ FAILED: "FAILED",
89
+ IN_PROGRESS: "IN_PROGRESS",
90
+ SUCCEEDED: "SUCCEEDED",
91
+ };
92
+ export const IndustrySegment = {
93
+ AGRICULTURE_MINING: "AGRICULTURE_MINING",
94
+ BIOTECHNOLOGY: "BIOTECHNOLOGY",
95
+ BUSINESS_CONSUMER_SERVICES: "BUSINESS_CONSUMER_SERVICES",
96
+ BUSINESS_SERV: "BUSINESS_SERV",
97
+ COMMUNICATIONS: "COMMUNICATIONS",
98
+ COMPUTERS_ELECTRONICS: "COMPUTERS_ELECTRONICS",
99
+ COMPUTER_HARDWARE: "COMPUTER_HARDWARE",
100
+ COMPUTER_SOFTWARE: "COMPUTER_SOFTWARE",
101
+ CONSUMER_GOODS: "CONSUMER_GOODS",
102
+ CONSUMER_RELATED: "CONSUMER_RELATED",
103
+ EDUCATION: "EDUCATION",
104
+ ENERGY_UTILITIES: "ENERGY_UTILITIES",
105
+ FINANCIAL_SERVICES: "FINANCIAL_SERVICES",
106
+ GAMING: "GAMING",
107
+ GOVERNMENT: "GOVERNMENT",
108
+ GOVERNMENT_EDUCATION_PUBLIC_SERVICES: "GOVERNMENT_EDUCATION_PUBLIC_SERVICES",
109
+ HEALTHCARE: "HEALTHCARE",
110
+ HEALTHCARE_PHARMACEUTICALS_BIOTECH: "HEALTHCARE_PHARMACEUTICALS_BIOTECH",
111
+ INDUSTRIAL_ENERGY: "INDUSTRIAL_ENERGY",
112
+ INTERNET_SPECIFIC: "INTERNET_SPECIFIC",
113
+ LIFE_SCIENCES: "LIFE_SCIENCES",
114
+ MANUFACTURING: "MANUFACTURING",
115
+ MEDIA_ENTERTAINMENT: "MEDIA_ENTERTAINMENT",
116
+ MEDIA_ENTERTAINMENT_LEISURE: "MEDIA_ENTERTAINMENT_LEISURE",
117
+ MEDICAL_HEALTH: "MEDICAL_HEALTH",
118
+ NON_PROFIT_ORGANIZATION: "NON_PROFIT_ORGANIZATION",
119
+ OTHER: "OTHER",
120
+ PROFESSIONAL_SERVICES: "PROFESSIONAL_SERVICES",
121
+ REAL_ESTATE_CONSTRUCTION: "REAL_ESTATE_CONSTRUCTION",
122
+ RETAIL: "RETAIL",
123
+ RETAIL_WHOLESALE_DISTRIBUTION: "RETAIL_WHOLESALE_DISTRIBUTION",
124
+ SEMICONDUCTOR_ELECTR: "SEMICONDUCTOR_ELECTR",
125
+ SOFTWARE_INTERNET: "SOFTWARE_INTERNET",
126
+ TELECOMMUNICATIONS: "TELECOMMUNICATIONS",
127
+ TRANSPORTATION_LOGISTICS: "TRANSPORTATION_LOGISTICS",
128
+ TRAVEL_HOSPITALITY: "TRAVEL_HOSPITALITY",
129
+ WHOLESALE_DISTRIBUTION: "WHOLESALE_DISTRIBUTION",
130
+ };
131
+ export const PrimarySolutionType = {
132
+ COMMUNICATION_SERVICES: "COMMUNICATION_SERVICES",
133
+ CONSULTING_SERVICES: "CONSULTING_SERVICES",
134
+ HARDWARE_PRODUCTS: "HARDWARE_PRODUCTS",
135
+ MANAGED_SERVICES: "MANAGED_SERVICES",
136
+ PROFESSIONAL_SERVICES: "PROFESSIONAL_SERVICES",
137
+ SOFTWARE_PRODUCTS: "SOFTWARE_PRODUCTS",
138
+ TRAINING_SERVICES: "TRAINING_SERVICES",
139
+ VALUE_ADDED_RESALE_AWS_SERVICES: "VALUE_ADDED_RESALE_AWS_SERVICES",
140
+ };
141
+ export const ProfileVisibility = {
142
+ PRIVATE: "PRIVATE",
143
+ PUBLIC: "PUBLIC",
144
+ };
@@ -0,0 +1,117 @@
1
+ import { PartnerCentralAccountServiceException as __BaseException } from "./PartnerCentralAccountServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ Message;
6
+ Reason;
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
14
+ this.Message = opts.Message;
15
+ this.Reason = opts.Reason;
16
+ }
17
+ }
18
+ export class ConflictException extends __BaseException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ Message;
22
+ Reason;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.Message = opts.Message;
31
+ this.Reason = opts.Reason;
32
+ }
33
+ }
34
+ export class InternalServerException extends __BaseException {
35
+ name = "InternalServerException";
36
+ $fault = "server";
37
+ $retryable = {};
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServerException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ export class ResourceNotFoundException extends __BaseException {
50
+ name = "ResourceNotFoundException";
51
+ $fault = "client";
52
+ Message;
53
+ Reason;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
+ this.Message = opts.Message;
62
+ this.Reason = opts.Reason;
63
+ }
64
+ }
65
+ export class ThrottlingException extends __BaseException {
66
+ name = "ThrottlingException";
67
+ $fault = "client";
68
+ $retryable = {};
69
+ Message;
70
+ ServiceCode;
71
+ QuotaCode;
72
+ constructor(opts) {
73
+ super({
74
+ name: "ThrottlingException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
79
+ this.Message = opts.Message;
80
+ this.ServiceCode = opts.ServiceCode;
81
+ this.QuotaCode = opts.QuotaCode;
82
+ }
83
+ }
84
+ export class ValidationException extends __BaseException {
85
+ name = "ValidationException";
86
+ $fault = "client";
87
+ Message;
88
+ Reason;
89
+ ErrorDetails;
90
+ constructor(opts) {
91
+ super({
92
+ name: "ValidationException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, ValidationException.prototype);
97
+ this.Message = opts.Message;
98
+ this.Reason = opts.Reason;
99
+ this.ErrorDetails = opts.ErrorDetails;
100
+ }
101
+ }
102
+ export class ServiceQuotaExceededException extends __BaseException {
103
+ name = "ServiceQuotaExceededException";
104
+ $fault = "client";
105
+ Message;
106
+ Reason;
107
+ constructor(opts) {
108
+ super({
109
+ name: "ServiceQuotaExceededException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
114
+ this.Message = opts.Message;
115
+ this.Reason = opts.Reason;
116
+ }
117
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListConnectionInvitationsCommand, } from "../commands/ListConnectionInvitationsCommand";
3
+ import { PartnerCentralAccountClient } from "../PartnerCentralAccountClient";
4
+ export const paginateListConnectionInvitations = createPaginator(PartnerCentralAccountClient, ListConnectionInvitationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListConnectionsCommand, } from "../commands/ListConnectionsCommand";
3
+ import { PartnerCentralAccountClient } from "../PartnerCentralAccountClient";
4
+ export const paginateListConnections = createPaginator(PartnerCentralAccountClient, ListConnectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListPartnersCommand, } from "../commands/ListPartnersCommand";
3
+ import { PartnerCentralAccountClient } from "../PartnerCentralAccountClient";
4
+ export const paginateListPartners = createPaginator(PartnerCentralAccountClient, ListPartnersCommand, "NextToken", "NextToken", "");
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListConnectionInvitationsPaginator";
3
+ export * from "./ListConnectionsPaginator";
4
+ export * from "./ListPartnersPaginator";
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };