@aws-sdk/client-amplifyuibuilder 3.52.0 → 3.54.1
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 +27 -27
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var AmplifyUIBuilderServiceException = (function (_super) {
|
|
4
|
+
__extends(AmplifyUIBuilderServiceException, _super);
|
|
5
|
+
function AmplifyUIBuilderServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, AmplifyUIBuilderServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return AmplifyUIBuilderServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { AmplifyUIBuilderServiceException };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { AmplifyUIBuilderServiceException as __BaseException } from "./AmplifyUIBuilderServiceException";
|
|
3
4
|
export var ComponentPropertyBindingProperties;
|
|
4
5
|
(function (ComponentPropertyBindingProperties) {
|
|
5
6
|
ComponentPropertyBindingProperties.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -16,10 +17,70 @@ export var ComponentVariant;
|
|
|
16
17
|
(function (ComponentVariant) {
|
|
17
18
|
ComponentVariant.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
18
19
|
})(ComponentVariant || (ComponentVariant = {}));
|
|
20
|
+
var InternalServerException = (function (_super) {
|
|
21
|
+
__extends(InternalServerException, _super);
|
|
22
|
+
function InternalServerException(opts) {
|
|
23
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
24
|
+
_this.name = "InternalServerException";
|
|
25
|
+
_this.$fault = "server";
|
|
26
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return InternalServerException;
|
|
30
|
+
}(__BaseException));
|
|
31
|
+
export { InternalServerException };
|
|
32
|
+
var InvalidParameterException = (function (_super) {
|
|
33
|
+
__extends(InvalidParameterException, _super);
|
|
34
|
+
function InvalidParameterException(opts) {
|
|
35
|
+
var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
|
|
36
|
+
_this.name = "InvalidParameterException";
|
|
37
|
+
_this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(_this, InvalidParameterException.prototype);
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
return InvalidParameterException;
|
|
42
|
+
}(__BaseException));
|
|
43
|
+
export { InvalidParameterException };
|
|
44
|
+
var ResourceConflictException = (function (_super) {
|
|
45
|
+
__extends(ResourceConflictException, _super);
|
|
46
|
+
function ResourceConflictException(opts) {
|
|
47
|
+
var _this = _super.call(this, __assign({ name: "ResourceConflictException", $fault: "client" }, opts)) || this;
|
|
48
|
+
_this.name = "ResourceConflictException";
|
|
49
|
+
_this.$fault = "client";
|
|
50
|
+
Object.setPrototypeOf(_this, ResourceConflictException.prototype);
|
|
51
|
+
return _this;
|
|
52
|
+
}
|
|
53
|
+
return ResourceConflictException;
|
|
54
|
+
}(__BaseException));
|
|
55
|
+
export { ResourceConflictException };
|
|
56
|
+
var ServiceQuotaExceededException = (function (_super) {
|
|
57
|
+
__extends(ServiceQuotaExceededException, _super);
|
|
58
|
+
function ServiceQuotaExceededException(opts) {
|
|
59
|
+
var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
60
|
+
_this.name = "ServiceQuotaExceededException";
|
|
61
|
+
_this.$fault = "client";
|
|
62
|
+
Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
return ServiceQuotaExceededException;
|
|
66
|
+
}(__BaseException));
|
|
67
|
+
export { ServiceQuotaExceededException };
|
|
19
68
|
export var DeleteComponentRequest;
|
|
20
69
|
(function (DeleteComponentRequest) {
|
|
21
70
|
DeleteComponentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
71
|
})(DeleteComponentRequest || (DeleteComponentRequest = {}));
|
|
72
|
+
var ResourceNotFoundException = (function (_super) {
|
|
73
|
+
__extends(ResourceNotFoundException, _super);
|
|
74
|
+
function ResourceNotFoundException(opts) {
|
|
75
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
76
|
+
_this.name = "ResourceNotFoundException";
|
|
77
|
+
_this.$fault = "client";
|
|
78
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
return ResourceNotFoundException;
|
|
82
|
+
}(__BaseException));
|
|
83
|
+
export { ResourceNotFoundException };
|
|
23
84
|
export var ExportComponentsRequest;
|
|
24
85
|
(function (ExportComponentsRequest) {
|
|
25
86
|
ExportComponentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -132,6 +193,10 @@ export var UpdateThemeData;
|
|
|
132
193
|
(function (UpdateThemeData) {
|
|
133
194
|
UpdateThemeData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
134
195
|
})(UpdateThemeData || (UpdateThemeData = {}));
|
|
196
|
+
export var MutationActionSetStateParameter;
|
|
197
|
+
(function (MutationActionSetStateParameter) {
|
|
198
|
+
MutationActionSetStateParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
199
|
+
})(MutationActionSetStateParameter || (MutationActionSetStateParameter = {}));
|
|
135
200
|
export var ComponentConditionProperty;
|
|
136
201
|
(function (ComponentConditionProperty) {
|
|
137
202
|
ComponentConditionProperty.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -160,6 +225,14 @@ export var ExportThemesResponse;
|
|
|
160
225
|
(function (ExportThemesResponse) {
|
|
161
226
|
ExportThemesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
227
|
})(ExportThemesResponse || (ExportThemesResponse = {}));
|
|
228
|
+
export var ActionParameters;
|
|
229
|
+
(function (ActionParameters) {
|
|
230
|
+
ActionParameters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
|
+
})(ActionParameters || (ActionParameters = {}));
|
|
232
|
+
export var ComponentEvent;
|
|
233
|
+
(function (ComponentEvent) {
|
|
234
|
+
ComponentEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
235
|
+
})(ComponentEvent || (ComponentEvent = {}));
|
|
163
236
|
export var ComponentChild;
|
|
164
237
|
(function (ComponentChild) {
|
|
165
238
|
ComponentChild.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AmplifyUIBuilder } from "../AmplifyUIBuilder";
|
|
3
|
+
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { ExportComponentsCommand, } from "../commands/ExportComponentsCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ExportComponentsCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.exportComponents.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateExportComponents(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateExportComponents_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
if (!(config.client instanceof AmplifyUIBuilder)) return [3, 3];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
case 2:
|
|
52
|
+
page = _a.sent();
|
|
53
|
+
return [3, 6];
|
|
54
|
+
case 3:
|
|
55
|
+
if (!(config.client instanceof AmplifyUIBuilderClient)) return [3, 5];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
case 4:
|
|
58
|
+
page = _a.sent();
|
|
59
|
+
return [3, 6];
|
|
60
|
+
case 5: throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
61
|
+
case 6: return [4, __await(page)];
|
|
62
|
+
case 7: return [4, _a.sent()];
|
|
63
|
+
case 8:
|
|
64
|
+
_a.sent();
|
|
65
|
+
token = page.nextToken;
|
|
66
|
+
hasNext = !!token;
|
|
67
|
+
return [3, 1];
|
|
68
|
+
case 9: return [4, __await(undefined)];
|
|
69
|
+
case 10: return [2, _a.sent()];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { AmplifyUIBuilder } from "../AmplifyUIBuilder";
|
|
3
|
+
import { AmplifyUIBuilderClient } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { ExportThemesCommand, } from "../commands/ExportThemesCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ExportThemesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.exportThemes.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateExportThemes(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateExportThemes_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
if (!(config.client instanceof AmplifyUIBuilder)) return [3, 3];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
case 2:
|
|
52
|
+
page = _a.sent();
|
|
53
|
+
return [3, 6];
|
|
54
|
+
case 3:
|
|
55
|
+
if (!(config.client instanceof AmplifyUIBuilderClient)) return [3, 5];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
case 4:
|
|
58
|
+
page = _a.sent();
|
|
59
|
+
return [3, 6];
|
|
60
|
+
case 5: throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
|
|
61
|
+
case 6: return [4, __await(page)];
|
|
62
|
+
case 7: return [4, _a.sent()];
|
|
63
|
+
case 8:
|
|
64
|
+
_a.sent();
|
|
65
|
+
token = page.nextToken;
|
|
66
|
+
hasNext = !!token;
|
|
67
|
+
return [3, 1];
|
|
68
|
+
case 9: return [4, __await(undefined)];
|
|
69
|
+
case 10: return [2, _a.sent()];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}
|