@aws-sdk/client-amplifyuibuilder 3.51.0 → 3.54.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.
- package/CHANGELOG.md +30 -0
- package/README.md +8 -9
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AmplifyUIBuilderServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +86 -1
- package/dist-cjs/pagination/ExportComponentsPaginator.js +34 -0
- package/dist-cjs/pagination/ExportThemesPaginator.js +34 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +287 -402
- package/dist-es/index.js +1 -0
- package/dist-es/models/AmplifyUIBuilderServiceException.js +12 -0
- package/dist-es/models/models_0.js +74 -1
- package/dist-es/pagination/ExportComponentsPaginator.js +73 -0
- package/dist-es/pagination/ExportThemesPaginator.js +73 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +410 -479
- package/dist-types/AmplifyUIBuilder.d.ts +14 -15
- package/dist-types/AmplifyUIBuilderClient.d.ts +10 -11
- package/dist-types/commands/ExportComponentsCommand.d.ts +1 -2
- package/dist-types/commands/ExportThemesCommand.d.ts +1 -2
- package/dist-types/commands/ListComponentsCommand.d.ts +2 -1
- package/dist-types/commands/ListThemesCommand.d.ts +2 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AmplifyUIBuilderServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +270 -63
- package/dist-types/pagination/ExportComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ExportThemesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AmplifyUIBuilderServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -21
- package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
package/README.md
CHANGED
|
@@ -7,16 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript AmplifyUIBuilder Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
11
|
-
user interface (UI) component libraries and themes for use in your Amplify applications. You
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
10
|
+
<p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
11
|
+
and configuring user interface (UI) component libraries and themes for use in your Amplify applications. You can then connect these UI components to an application's
|
|
12
|
+
backend Amazon Web Services resources.</p>
|
|
13
|
+
<p>You can also use the Amplify Studio visual designer to create UI components
|
|
14
|
+
and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
16
15
|
<i>Amplify Docs</i>.</p>
|
|
17
|
-
<p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
18
|
-
for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
19
|
-
deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
|
|
16
|
+
<p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
17
|
+
documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
18
|
+
deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify User Guide</a>.</p>
|
|
20
19
|
|
|
21
20
|
## Installing
|
|
22
21
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmplifyUIBuilderServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./AmplifyUIBuilder"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AmplifyUIBuilderClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var AmplifyUIBuilderServiceException_1 = require("./models/AmplifyUIBuilderServiceException");
|
|
11
|
+
Object.defineProperty(exports, "AmplifyUIBuilderServiceException", { enumerable: true, get: function () { return AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmplifyUIBuilderServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class AmplifyUIBuilderServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, AmplifyUIBuilderServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AmplifyUIBuilderServiceException = AmplifyUIBuilderServiceException;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Component = exports.ComponentChild = exports.ComponentEvent = exports.ActionParameters = exports.ExportThemesResponse = exports.UpdateThemeResponse = exports.UpdateThemeRequest = exports.GetThemeResponse = exports.CreateThemeResponse = exports.CreateThemeRequest = exports.ComponentConditionProperty = exports.MutationActionSetStateParameter = exports.UpdateThemeData = exports.Theme = exports.CreateThemeData = exports.ComponentBindingPropertiesValue = exports.ComponentProperty = exports.ComponentDataConfiguration = exports.ComponentBindingPropertiesValueProperties = exports.Predicate = exports.ThemeValues = exports.ThemeValue = exports.ListThemesResponse = exports.ThemeSummary = exports.ListThemesRequest = exports.GetThemeRequest = exports.ExportThemesRequest = exports.DeleteThemeRequest = exports.RefreshTokenResponse = exports.RefreshTokenRequest = exports.RefreshTokenRequestBody = exports.ExchangeCodeForTokenResponse = exports.ExchangeCodeForTokenRequest = exports.ExchangeCodeForTokenRequestBody = exports.TokenProviders = exports.ListComponentsResponse = exports.ComponentSummary = exports.ListComponentsRequest = exports.GetComponentRequest = exports.ExportComponentsRequest = exports.ResourceNotFoundException = exports.DeleteComponentRequest = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = exports.ComponentVariant = exports.SortProperty = exports.FormBindingElement = exports.ComponentPropertyBindingProperties = void 0;
|
|
4
|
+
exports.ExportComponentsResponse = exports.UpdateComponentResponse = exports.UpdateComponentRequest = exports.GetComponentResponse = exports.CreateComponentResponse = exports.CreateComponentRequest = exports.UpdateComponentData = exports.CreateComponentData = void 0;
|
|
4
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
|
|
5
7
|
var ComponentPropertyBindingProperties;
|
|
6
8
|
(function (ComponentPropertyBindingProperties) {
|
|
7
9
|
ComponentPropertyBindingProperties.filterSensitiveLog = (obj) => ({
|
|
@@ -26,12 +28,77 @@ var ComponentVariant;
|
|
|
26
28
|
...obj,
|
|
27
29
|
});
|
|
28
30
|
})(ComponentVariant = exports.ComponentVariant || (exports.ComponentVariant = {}));
|
|
31
|
+
class InternalServerException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "InternalServerException",
|
|
35
|
+
$fault: "server",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "InternalServerException";
|
|
39
|
+
this.$fault = "server";
|
|
40
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.InternalServerException = InternalServerException;
|
|
44
|
+
class InvalidParameterException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
45
|
+
constructor(opts) {
|
|
46
|
+
super({
|
|
47
|
+
name: "InvalidParameterException",
|
|
48
|
+
$fault: "client",
|
|
49
|
+
...opts,
|
|
50
|
+
});
|
|
51
|
+
this.name = "InvalidParameterException";
|
|
52
|
+
this.$fault = "client";
|
|
53
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
57
|
+
class ResourceConflictException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
58
|
+
constructor(opts) {
|
|
59
|
+
super({
|
|
60
|
+
name: "ResourceConflictException",
|
|
61
|
+
$fault: "client",
|
|
62
|
+
...opts,
|
|
63
|
+
});
|
|
64
|
+
this.name = "ResourceConflictException";
|
|
65
|
+
this.$fault = "client";
|
|
66
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
70
|
+
class ServiceQuotaExceededException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
71
|
+
constructor(opts) {
|
|
72
|
+
super({
|
|
73
|
+
name: "ServiceQuotaExceededException",
|
|
74
|
+
$fault: "client",
|
|
75
|
+
...opts,
|
|
76
|
+
});
|
|
77
|
+
this.name = "ServiceQuotaExceededException";
|
|
78
|
+
this.$fault = "client";
|
|
79
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
29
83
|
var DeleteComponentRequest;
|
|
30
84
|
(function (DeleteComponentRequest) {
|
|
31
85
|
DeleteComponentRequest.filterSensitiveLog = (obj) => ({
|
|
32
86
|
...obj,
|
|
33
87
|
});
|
|
34
88
|
})(DeleteComponentRequest = exports.DeleteComponentRequest || (exports.DeleteComponentRequest = {}));
|
|
89
|
+
class ResourceNotFoundException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "ResourceNotFoundException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
this.name = "ResourceNotFoundException";
|
|
97
|
+
this.$fault = "client";
|
|
98
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
35
102
|
var ExportComponentsRequest;
|
|
36
103
|
(function (ExportComponentsRequest) {
|
|
37
104
|
ExportComponentsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -205,6 +272,12 @@ var UpdateThemeData;
|
|
|
205
272
|
...obj,
|
|
206
273
|
});
|
|
207
274
|
})(UpdateThemeData = exports.UpdateThemeData || (exports.UpdateThemeData = {}));
|
|
275
|
+
var MutationActionSetStateParameter;
|
|
276
|
+
(function (MutationActionSetStateParameter) {
|
|
277
|
+
MutationActionSetStateParameter.filterSensitiveLog = (obj) => ({
|
|
278
|
+
...obj,
|
|
279
|
+
});
|
|
280
|
+
})(MutationActionSetStateParameter = exports.MutationActionSetStateParameter || (exports.MutationActionSetStateParameter = {}));
|
|
208
281
|
var ComponentConditionProperty;
|
|
209
282
|
(function (ComponentConditionProperty) {
|
|
210
283
|
ComponentConditionProperty.filterSensitiveLog = (obj) => ({
|
|
@@ -247,6 +320,18 @@ var ExportThemesResponse;
|
|
|
247
320
|
...obj,
|
|
248
321
|
});
|
|
249
322
|
})(ExportThemesResponse = exports.ExportThemesResponse || (exports.ExportThemesResponse = {}));
|
|
323
|
+
var ActionParameters;
|
|
324
|
+
(function (ActionParameters) {
|
|
325
|
+
ActionParameters.filterSensitiveLog = (obj) => ({
|
|
326
|
+
...obj,
|
|
327
|
+
});
|
|
328
|
+
})(ActionParameters = exports.ActionParameters || (exports.ActionParameters = {}));
|
|
329
|
+
var ComponentEvent;
|
|
330
|
+
(function (ComponentEvent) {
|
|
331
|
+
ComponentEvent.filterSensitiveLog = (obj) => ({
|
|
332
|
+
...obj,
|
|
333
|
+
});
|
|
334
|
+
})(ComponentEvent = exports.ComponentEvent || (exports.ComponentEvent = {}));
|
|
250
335
|
var ComponentChild;
|
|
251
336
|
(function (ComponentChild) {
|
|
252
337
|
ComponentChild.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateExportComponents = void 0;
|
|
4
|
+
const AmplifyUIBuilder_1 = require("../AmplifyUIBuilder");
|
|
5
|
+
const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
|
|
6
|
+
const ExportComponentsCommand_1 = require("../commands/ExportComponentsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ExportComponentsCommand_1.ExportComponentsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.exportComponents(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateExportComponents(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
if (config.client instanceof AmplifyUIBuilder_1.AmplifyUIBuilder) {
|
|
20
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
21
|
+
}
|
|
22
|
+
else if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
|
|
23
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
27
|
+
}
|
|
28
|
+
yield page;
|
|
29
|
+
token = page.nextToken;
|
|
30
|
+
hasNext = !!token;
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
exports.paginateExportComponents = paginateExportComponents;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateExportThemes = void 0;
|
|
4
|
+
const AmplifyUIBuilder_1 = require("../AmplifyUIBuilder");
|
|
5
|
+
const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
|
|
6
|
+
const ExportThemesCommand_1 = require("../commands/ExportThemesCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ExportThemesCommand_1.ExportThemesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.exportThemes(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateExportThemes(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
if (config.client instanceof AmplifyUIBuilder_1.AmplifyUIBuilder) {
|
|
20
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
21
|
+
}
|
|
22
|
+
else if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
|
|
23
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
27
|
+
}
|
|
28
|
+
yield page;
|
|
29
|
+
token = page.nextToken;
|
|
30
|
+
hasNext = !!token;
|
|
31
|
+
}
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
exports.paginateExportThemes = paginateExportThemes;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ExportComponentsPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ExportThemesPaginator"), exports);
|
|
4
6
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./ListComponentsPaginator"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./ListThemesPaginator"), exports);
|