@aws-sdk/client-amplifyuibuilder 3.1076.0 → 3.1078.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 (104) hide show
  1. package/dist-cjs/index.js +39 -285
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateComponentCommand.js +2 -14
  4. package/dist-es/commands/CreateFormCommand.js +2 -14
  5. package/dist-es/commands/CreateThemeCommand.js +2 -14
  6. package/dist-es/commands/DeleteComponentCommand.js +2 -14
  7. package/dist-es/commands/DeleteFormCommand.js +2 -14
  8. package/dist-es/commands/DeleteThemeCommand.js +2 -14
  9. package/dist-es/commands/ExchangeCodeForTokenCommand.js +2 -14
  10. package/dist-es/commands/ExportComponentsCommand.js +2 -14
  11. package/dist-es/commands/ExportFormsCommand.js +2 -14
  12. package/dist-es/commands/ExportThemesCommand.js +2 -14
  13. package/dist-es/commands/GetCodegenJobCommand.js +2 -14
  14. package/dist-es/commands/GetComponentCommand.js +2 -14
  15. package/dist-es/commands/GetFormCommand.js +2 -14
  16. package/dist-es/commands/GetMetadataCommand.js +2 -14
  17. package/dist-es/commands/GetThemeCommand.js +2 -14
  18. package/dist-es/commands/ListCodegenJobsCommand.js +2 -14
  19. package/dist-es/commands/ListComponentsCommand.js +2 -14
  20. package/dist-es/commands/ListFormsCommand.js +2 -14
  21. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  22. package/dist-es/commands/ListThemesCommand.js +2 -14
  23. package/dist-es/commands/PutMetadataFlagCommand.js +2 -14
  24. package/dist-es/commands/RefreshTokenCommand.js +2 -14
  25. package/dist-es/commands/StartCodegenJobCommand.js +2 -14
  26. package/dist-es/commands/TagResourceCommand.js +2 -14
  27. package/dist-es/commands/UntagResourceCommand.js +2 -14
  28. package/dist-es/commands/UpdateComponentCommand.js +2 -14
  29. package/dist-es/commands/UpdateFormCommand.js +2 -14
  30. package/dist-es/commands/UpdateThemeCommand.js +2 -14
  31. package/dist-es/index.js +1 -0
  32. package/dist-es/runtimeConfig.browser.js +0 -2
  33. package/dist-es/runtimeConfig.js +1 -2
  34. package/dist-es/runtimeConfig.native.js +0 -2
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-types/commandBuilder.d.ts +18 -0
  37. package/dist-types/commands/CreateComponentCommand.d.ts +3 -8
  38. package/dist-types/commands/CreateFormCommand.d.ts +3 -8
  39. package/dist-types/commands/CreateThemeCommand.d.ts +3 -8
  40. package/dist-types/commands/DeleteComponentCommand.d.ts +3 -8
  41. package/dist-types/commands/DeleteFormCommand.d.ts +3 -8
  42. package/dist-types/commands/DeleteThemeCommand.d.ts +3 -8
  43. package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +3 -8
  44. package/dist-types/commands/ExportComponentsCommand.d.ts +3 -8
  45. package/dist-types/commands/ExportFormsCommand.d.ts +3 -8
  46. package/dist-types/commands/ExportThemesCommand.d.ts +3 -8
  47. package/dist-types/commands/GetCodegenJobCommand.d.ts +3 -8
  48. package/dist-types/commands/GetComponentCommand.d.ts +3 -8
  49. package/dist-types/commands/GetFormCommand.d.ts +3 -8
  50. package/dist-types/commands/GetMetadataCommand.d.ts +3 -8
  51. package/dist-types/commands/GetThemeCommand.d.ts +3 -8
  52. package/dist-types/commands/ListCodegenJobsCommand.d.ts +3 -8
  53. package/dist-types/commands/ListComponentsCommand.d.ts +3 -8
  54. package/dist-types/commands/ListFormsCommand.d.ts +3 -8
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  56. package/dist-types/commands/ListThemesCommand.d.ts +3 -8
  57. package/dist-types/commands/PutMetadataFlagCommand.d.ts +3 -8
  58. package/dist-types/commands/RefreshTokenCommand.d.ts +3 -8
  59. package/dist-types/commands/StartCodegenJobCommand.d.ts +3 -8
  60. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  61. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  62. package/dist-types/commands/UpdateComponentCommand.d.ts +3 -8
  63. package/dist-types/commands/UpdateFormCommand.d.ts +3 -8
  64. package/dist-types/commands/UpdateThemeCommand.d.ts +3 -8
  65. package/dist-types/index.d.ts +1 -0
  66. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  67. package/dist-types/runtimeConfig.d.ts +1 -1
  68. package/dist-types/runtimeConfig.native.d.ts +1 -1
  69. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  70. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  71. package/dist-types/ts3.4/commands/CreateComponentCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/CreateFormCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/CreateThemeCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/DeleteFormCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/DeleteThemeCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/ExchangeCodeForTokenCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/ExportComponentsCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/ExportFormsCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/ExportThemesCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/GetCodegenJobCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/GetFormCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/GetMetadataCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/GetThemeCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/ListCodegenJobsCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/ListFormsCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/ListThemesCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/PutMetadataFlagCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/RefreshTokenCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/StartCodegenJobCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/UpdateComponentCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/UpdateFormCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/UpdateThemeCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/index.d.ts +1 -0
  100. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  101. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  102. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  103. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  104. package/package.json +8 -10
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetComponent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetComponentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "GetComponent", {})
13
- .n("AmplifyUIBuilderClient", "GetComponentCommand")
14
- .sc(GetComponent$)
15
- .build() {
3
+ export class GetComponentCommand extends command(_ep0, _mw0, "GetComponent", GetComponent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetForm$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetFormCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "GetForm", {})
13
- .n("AmplifyUIBuilderClient", "GetFormCommand")
14
- .sc(GetForm$)
15
- .build() {
3
+ export class GetFormCommand extends command(_ep0, _mw0, "GetForm", GetForm$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetMetadata$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetMetadataCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "GetMetadata", {})
13
- .n("AmplifyUIBuilderClient", "GetMetadataCommand")
14
- .sc(GetMetadata$)
15
- .build() {
3
+ export class GetMetadataCommand extends command(_ep0, _mw0, "GetMetadata", GetMetadata$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetTheme$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetThemeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "GetTheme", {})
13
- .n("AmplifyUIBuilderClient", "GetThemeCommand")
14
- .sc(GetTheme$)
15
- .build() {
3
+ export class GetThemeCommand extends command(_ep0, _mw0, "GetTheme", GetTheme$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListCodegenJobs$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListCodegenJobsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "ListCodegenJobs", {})
13
- .n("AmplifyUIBuilderClient", "ListCodegenJobsCommand")
14
- .sc(ListCodegenJobs$)
15
- .build() {
3
+ export class ListCodegenJobsCommand extends command(_ep0, _mw0, "ListCodegenJobs", ListCodegenJobs$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListComponents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListComponentsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "ListComponents", {})
13
- .n("AmplifyUIBuilderClient", "ListComponentsCommand")
14
- .sc(ListComponents$)
15
- .build() {
3
+ export class ListComponentsCommand extends command(_ep0, _mw0, "ListComponents", ListComponents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListForms$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFormsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "ListForms", {})
13
- .n("AmplifyUIBuilderClient", "ListFormsCommand")
14
- .sc(ListForms$)
15
- .build() {
3
+ export class ListFormsCommand extends command(_ep0, _mw0, "ListForms", ListForms$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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("AmplifyUIBuilder", "ListTagsForResource", {})
13
- .n("AmplifyUIBuilderClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListThemes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListThemesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "ListThemes", {})
13
- .n("AmplifyUIBuilderClient", "ListThemesCommand")
14
- .sc(ListThemes$)
15
- .build() {
3
+ export class ListThemesCommand extends command(_ep0, _mw0, "ListThemes", ListThemes$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutMetadataFlag$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutMetadataFlagCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "PutMetadataFlag", {})
13
- .n("AmplifyUIBuilderClient", "PutMetadataFlagCommand")
14
- .sc(PutMetadataFlag$)
15
- .build() {
3
+ export class PutMetadataFlagCommand extends command(_ep0, _mw0, "PutMetadataFlag", PutMetadataFlag$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RefreshToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RefreshTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "RefreshToken", {})
13
- .n("AmplifyUIBuilderClient", "RefreshTokenCommand")
14
- .sc(RefreshToken$)
15
- .build() {
3
+ export class RefreshTokenCommand extends command(_ep0, _mw0, "RefreshToken", RefreshToken$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartCodegenJob$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartCodegenJobCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "StartCodegenJob", {})
13
- .n("AmplifyUIBuilderClient", "StartCodegenJobCommand")
14
- .sc(StartCodegenJob$)
15
- .build() {
3
+ export class StartCodegenJobCommand extends command(_ep0, _mw0, "StartCodegenJob", StartCodegenJob$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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("AmplifyUIBuilder", "TagResource", {})
13
- .n("AmplifyUIBuilderClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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("AmplifyUIBuilder", "UntagResource", {})
13
- .n("AmplifyUIBuilderClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateComponent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateComponentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "UpdateComponent", {})
13
- .n("AmplifyUIBuilderClient", "UpdateComponentCommand")
14
- .sc(UpdateComponent$)
15
- .build() {
3
+ export class UpdateComponentCommand extends command(_ep0, _mw0, "UpdateComponent", UpdateComponent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateForm$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateFormCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "UpdateForm", {})
13
- .n("AmplifyUIBuilderClient", "UpdateFormCommand")
14
- .sc(UpdateForm$)
15
- .build() {
3
+ export class UpdateFormCommand extends command(_ep0, _mw0, "UpdateForm", UpdateForm$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateTheme$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateThemeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyUIBuilder", "UpdateTheme", {})
13
- .n("AmplifyUIBuilderClient", "UpdateThemeCommand")
14
- .sc(UpdateTheme$)
15
- .build() {
3
+ export class UpdateThemeCommand extends command(_ep0, _mw0, "UpdateTheme", UpdateTheme$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./AmplifyUIBuilderClient";
2
2
  export * from "./AmplifyUIBuilder";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AmplifyUIBuilder",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "AmplifyUIBuilder",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AmplifyUIBuilderClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { CreateComponentRequest, CreateComponentResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateComponentCommandInput extends CreateComponentRequest {
22
19
  export interface CreateComponentCommandOutput extends CreateComponentResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateComponentCommand_base: {
25
- new (input: CreateComponentCommandInput): import("@smithy/core/client").CommandImpl<CreateComponentCommandInput, CreateComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateComponentCommandInput): import("@smithy/core/client").CommandImpl<CreateComponentCommandInput, CreateComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateComponentCommandInput): import("@smithy/core/client").CommandImpl<CreateComponentCommandInput, CreateComponentCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateComponentCommandInput): import("@smithy/core/client").CommandImpl<CreateComponentCommandInput, CreateComponentCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new component for an Amplify app.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { CreateFormRequest, CreateFormResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateFormCommandInput extends CreateFormRequest {
22
19
  export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateFormCommand_base: {
25
- new (input: CreateFormCommandInput): import("@smithy/core/client").CommandImpl<CreateFormCommandInput, CreateFormCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateFormCommandInput): import("@smithy/core/client").CommandImpl<CreateFormCommandInput, CreateFormCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateFormCommandInput): import("@smithy/core/client").CommandImpl<CreateFormCommandInput, CreateFormCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateFormCommandInput): import("@smithy/core/client").CommandImpl<CreateFormCommandInput, CreateFormCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new form for an Amplify app.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { CreateThemeRequest, CreateThemeResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateThemeCommandInput extends CreateThemeRequest {
22
19
  export interface CreateThemeCommandOutput extends CreateThemeResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateThemeCommand_base: {
25
- new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl<CreateThemeCommandInput, CreateThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl<CreateThemeCommandInput, CreateThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl<CreateThemeCommandInput, CreateThemeCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateThemeCommandInput): import("@smithy/core/client").CommandImpl<CreateThemeCommandInput, CreateThemeCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a theme to apply to the components in an Amplify app.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { DeleteComponentRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteComponentCommandInput extends DeleteComponentRequest {
22
19
  export interface DeleteComponentCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteComponentCommand_base: {
25
- new (input: DeleteComponentCommandInput): import("@smithy/core/client").CommandImpl<DeleteComponentCommandInput, DeleteComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteComponentCommandInput): import("@smithy/core/client").CommandImpl<DeleteComponentCommandInput, DeleteComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteComponentCommandInput): import("@smithy/core/client").CommandImpl<DeleteComponentCommandInput, DeleteComponentCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteComponentCommandInput): import("@smithy/core/client").CommandImpl<DeleteComponentCommandInput, DeleteComponentCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a component from an Amplify app.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { DeleteFormRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteFormCommandInput extends DeleteFormRequest {
22
19
  export interface DeleteFormCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteFormCommand_base: {
25
- new (input: DeleteFormCommandInput): import("@smithy/core/client").CommandImpl<DeleteFormCommandInput, DeleteFormCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteFormCommandInput): import("@smithy/core/client").CommandImpl<DeleteFormCommandInput, DeleteFormCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteFormCommandInput): import("@smithy/core/client").CommandImpl<DeleteFormCommandInput, DeleteFormCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteFormCommandInput): import("@smithy/core/client").CommandImpl<DeleteFormCommandInput, DeleteFormCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a form from an Amplify app.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
4
2
  import type { DeleteThemeRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteThemeCommandInput extends DeleteThemeRequest {
22
19
  export interface DeleteThemeCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteThemeCommand_base: {
25
- new (input: DeleteThemeCommandInput): import("@smithy/core/client").CommandImpl<DeleteThemeCommandInput, DeleteThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteThemeCommandInput): import("@smithy/core/client").CommandImpl<DeleteThemeCommandInput, DeleteThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteThemeCommandInput): import("@smithy/core/client").CommandImpl<DeleteThemeCommandInput, DeleteThemeCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteThemeCommandInput): import("@smithy/core/client").CommandImpl<DeleteThemeCommandInput, DeleteThemeCommandOutput, import("..").AmplifyUIBuilderClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a theme from an Amplify app.</p>