@aws-sdk/client-amplifyuibuilder 3.45.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +212 -0
- package/dist-cjs/AmplifyUIBuilder.js +217 -0
- package/dist-cjs/AmplifyUIBuilderClient.js +35 -0
- package/dist-cjs/commands/CreateComponentCommand.js +36 -0
- package/dist-cjs/commands/CreateThemeCommand.js +36 -0
- package/dist-cjs/commands/DeleteComponentCommand.js +36 -0
- package/dist-cjs/commands/DeleteThemeCommand.js +36 -0
- package/dist-cjs/commands/ExchangeCodeForTokenCommand.js +36 -0
- package/dist-cjs/commands/ExportComponentsCommand.js +36 -0
- package/dist-cjs/commands/ExportThemesCommand.js +36 -0
- package/dist-cjs/commands/GetComponentCommand.js +36 -0
- package/dist-cjs/commands/GetThemeCommand.js +36 -0
- package/dist-cjs/commands/ListComponentsCommand.js +36 -0
- package/dist-cjs/commands/ListThemesCommand.js +36 -0
- package/dist-cjs/commands/RefreshTokenCommand.js +36 -0
- package/dist-cjs/commands/UpdateComponentCommand.js +36 -0
- package/dist-cjs/commands/UpdateThemeCommand.js +36 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +340 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListComponentsPaginator.js +35 -0
- package/dist-cjs/pagination/ListThemesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2404 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/AmplifyUIBuilder.js +220 -0
- package/dist-es/AmplifyUIBuilderClient.js +37 -0
- package/dist-es/commands/CreateComponentCommand.js +39 -0
- package/dist-es/commands/CreateThemeCommand.js +39 -0
- package/dist-es/commands/DeleteComponentCommand.js +39 -0
- package/dist-es/commands/DeleteThemeCommand.js +39 -0
- package/dist-es/commands/ExchangeCodeForTokenCommand.js +39 -0
- package/dist-es/commands/ExportComponentsCommand.js +39 -0
- package/dist-es/commands/ExportThemesCommand.js +39 -0
- package/dist-es/commands/GetComponentCommand.js +39 -0
- package/dist-es/commands/GetThemeCommand.js +39 -0
- package/dist-es/commands/ListComponentsCommand.js +39 -0
- package/dist-es/commands/ListThemesCommand.js +39 -0
- package/dist-es/commands/RefreshTokenCommand.js +39 -0
- package/dist-es/commands/UpdateComponentCommand.js +39 -0
- package/dist-es/commands/UpdateThemeCommand.js +39 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +222 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListComponentsPaginator.js +74 -0
- package/dist-es/pagination/ListThemesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +2546 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/AmplifyUIBuilder.d.ts +116 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +163 -0
- package/dist-types/commands/CreateComponentCommand.d.ts +35 -0
- package/dist-types/commands/CreateThemeCommand.d.ts +35 -0
- package/dist-types/commands/DeleteComponentCommand.d.ts +35 -0
- package/dist-types/commands/DeleteThemeCommand.d.ts +35 -0
- package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +35 -0
- package/dist-types/commands/ExportComponentsCommand.d.ts +36 -0
- package/dist-types/commands/ExportThemesCommand.d.ts +36 -0
- package/dist-types/commands/GetComponentCommand.d.ts +35 -0
- package/dist-types/commands/GetThemeCommand.d.ts +35 -0
- package/dist-types/commands/ListComponentsCommand.d.ts +35 -0
- package/dist-types/commands/ListThemesCommand.d.ts +35 -0
- package/dist-types/commands/RefreshTokenCommand.d.ts +35 -0
- package/dist-types/commands/UpdateComponentCommand.d.ts +35 -0
- package/dist-types/commands/UpdateThemeCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1342 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListThemesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +75 -0
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +85 -0
- package/dist-types/ts3.4/commands/CreateComponentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateThemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteThemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExchangeCodeForTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExportComponentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExportThemesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetThemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListThemesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RefreshTokenCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateComponentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateThemeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +783 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +96 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
export var getRuntimeConfig = function (config) {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
15
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
+
export var getRuntimeConfig = function (config) {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2021-08-11",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "AmplifyUIBuilder",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { AmplifyUIBuilderClient } from "./AmplifyUIBuilderClient";
|
|
3
|
+
import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
|
|
4
|
+
import { CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand";
|
|
5
|
+
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
|
|
6
|
+
import { DeleteThemeCommandInput, DeleteThemeCommandOutput } from "./commands/DeleteThemeCommand";
|
|
7
|
+
import { ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput } from "./commands/ExchangeCodeForTokenCommand";
|
|
8
|
+
import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "./commands/ExportComponentsCommand";
|
|
9
|
+
import { ExportThemesCommandInput, ExportThemesCommandOutput } from "./commands/ExportThemesCommand";
|
|
10
|
+
import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
|
|
11
|
+
import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetThemeCommand";
|
|
12
|
+
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
|
|
13
|
+
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
|
|
14
|
+
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
|
|
15
|
+
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
16
|
+
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
17
|
+
/**
|
|
18
|
+
* <p>The Amplify UI Builder API provides a programmatic interface for creating and configuring
|
|
19
|
+
* user interface (UI) component libraries and themes for use in your Amplify applications. You
|
|
20
|
+
* can then connect these UI components to an application's backend Amazon Web Services
|
|
21
|
+
* resources.</p>
|
|
22
|
+
* <p>You can also use the Amplify Studio visual designer to create UI components and model data
|
|
23
|
+
* for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
24
|
+
* <i>Amplify Docs</i>.</p>
|
|
25
|
+
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
|
|
26
|
+
* for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
27
|
+
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify Console User Guide</a>.</p>
|
|
28
|
+
*/
|
|
29
|
+
export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
30
|
+
/**
|
|
31
|
+
* <p>Creates a new component for an Amplify app.</p>
|
|
32
|
+
*/
|
|
33
|
+
createComponent(args: CreateComponentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComponentCommandOutput>;
|
|
34
|
+
createComponent(args: CreateComponentCommandInput, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
|
|
35
|
+
createComponent(args: CreateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
|
|
36
|
+
/**
|
|
37
|
+
* <p>Creates a theme to apply to the components in an Amplify app.</p>
|
|
38
|
+
*/
|
|
39
|
+
createTheme(args: CreateThemeCommandInput, options?: __HttpHandlerOptions): Promise<CreateThemeCommandOutput>;
|
|
40
|
+
createTheme(args: CreateThemeCommandInput, cb: (err: any, data?: CreateThemeCommandOutput) => void): void;
|
|
41
|
+
createTheme(args: CreateThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateThemeCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* <p>Deletes a component from an Amplify app.</p>
|
|
44
|
+
*/
|
|
45
|
+
deleteComponent(args: DeleteComponentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComponentCommandOutput>;
|
|
46
|
+
deleteComponent(args: DeleteComponentCommandInput, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
|
|
47
|
+
deleteComponent(args: DeleteComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
|
|
48
|
+
/**
|
|
49
|
+
* <p>Deletes a theme from an Amplify app.</p>
|
|
50
|
+
*/
|
|
51
|
+
deleteTheme(args: DeleteThemeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteThemeCommandOutput>;
|
|
52
|
+
deleteTheme(args: DeleteThemeCommandInput, cb: (err: any, data?: DeleteThemeCommandOutput) => void): void;
|
|
53
|
+
deleteTheme(args: DeleteThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThemeCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Exchanges an access code for a token.</p>
|
|
56
|
+
*/
|
|
57
|
+
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, options?: __HttpHandlerOptions): Promise<ExchangeCodeForTokenCommandOutput>;
|
|
58
|
+
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
59
|
+
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
60
|
+
/**
|
|
61
|
+
* <p>Exports component configurations to code that is ready to integrate into an Amplify
|
|
62
|
+
* app.</p>
|
|
63
|
+
*/
|
|
64
|
+
exportComponents(args: ExportComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ExportComponentsCommandOutput>;
|
|
65
|
+
exportComponents(args: ExportComponentsCommandInput, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
66
|
+
exportComponents(args: ExportComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
67
|
+
/**
|
|
68
|
+
* <p>Exports theme configurations to code that is ready to integrate into an Amplify
|
|
69
|
+
* app.</p>
|
|
70
|
+
*/
|
|
71
|
+
exportThemes(args: ExportThemesCommandInput, options?: __HttpHandlerOptions): Promise<ExportThemesCommandOutput>;
|
|
72
|
+
exportThemes(args: ExportThemesCommandInput, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
73
|
+
exportThemes(args: ExportThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* <p>Returns an existing component for an Amplify app.</p>
|
|
76
|
+
*/
|
|
77
|
+
getComponent(args: GetComponentCommandInput, options?: __HttpHandlerOptions): Promise<GetComponentCommandOutput>;
|
|
78
|
+
getComponent(args: GetComponentCommandInput, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
|
|
79
|
+
getComponent(args: GetComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Returns an existing theme for an Amplify app.</p>
|
|
82
|
+
*/
|
|
83
|
+
getTheme(args: GetThemeCommandInput, options?: __HttpHandlerOptions): Promise<GetThemeCommandOutput>;
|
|
84
|
+
getTheme(args: GetThemeCommandInput, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
85
|
+
getTheme(args: GetThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* <p>Retrieves a list of components for a specified Amplify app and backend environment.</p>
|
|
88
|
+
*/
|
|
89
|
+
listComponents(args: ListComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentsCommandOutput>;
|
|
90
|
+
listComponents(args: ListComponentsCommandInput, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
91
|
+
listComponents(args: ListComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Retrieves a list of themes for a specified Amplify app and backend environment.</p>
|
|
94
|
+
*/
|
|
95
|
+
listThemes(args: ListThemesCommandInput, options?: __HttpHandlerOptions): Promise<ListThemesCommandOutput>;
|
|
96
|
+
listThemes(args: ListThemesCommandInput, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
97
|
+
listThemes(args: ListThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
98
|
+
/**
|
|
99
|
+
* <p>Refreshes a previously issued access token that might have expired.</p>
|
|
100
|
+
*/
|
|
101
|
+
refreshToken(args: RefreshTokenCommandInput, options?: __HttpHandlerOptions): Promise<RefreshTokenCommandOutput>;
|
|
102
|
+
refreshToken(args: RefreshTokenCommandInput, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
103
|
+
refreshToken(args: RefreshTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Updates an existing component.</p>
|
|
106
|
+
*/
|
|
107
|
+
updateComponent(args: UpdateComponentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComponentCommandOutput>;
|
|
108
|
+
updateComponent(args: UpdateComponentCommandInput, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
|
|
109
|
+
updateComponent(args: UpdateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* <p>Updates an existing theme.</p>
|
|
112
|
+
*/
|
|
113
|
+
updateTheme(args: UpdateThemeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThemeCommandOutput>;
|
|
114
|
+
updateTheme(args: UpdateThemeCommandInput, cb: (err: any, data?: UpdateThemeCommandOutput) => void): void;
|
|
115
|
+
updateTheme(args: UpdateThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThemeCommandOutput) => void): void;
|
|
116
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
|
|
10
|
+
import { CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand";
|
|
11
|
+
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
|
|
12
|
+
import { DeleteThemeCommandInput, DeleteThemeCommandOutput } from "./commands/DeleteThemeCommand";
|
|
13
|
+
import { ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput } from "./commands/ExchangeCodeForTokenCommand";
|
|
14
|
+
import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "./commands/ExportComponentsCommand";
|
|
15
|
+
import { ExportThemesCommandInput, ExportThemesCommandOutput } from "./commands/ExportThemesCommand";
|
|
16
|
+
import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
|
|
17
|
+
import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetThemeCommand";
|
|
18
|
+
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
|
|
19
|
+
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
|
|
20
|
+
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
|
|
21
|
+
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
22
|
+
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
23
|
+
export declare type ServiceInputTypes = CreateComponentCommandInput | CreateThemeCommandInput | DeleteComponentCommandInput | DeleteThemeCommandInput | ExchangeCodeForTokenCommandInput | ExportComponentsCommandInput | ExportThemesCommandInput | GetComponentCommandInput | GetThemeCommandInput | ListComponentsCommandInput | ListThemesCommandInput | RefreshTokenCommandInput | UpdateComponentCommandInput | UpdateThemeCommandInput;
|
|
24
|
+
export declare type ServiceOutputTypes = CreateComponentCommandOutput | CreateThemeCommandOutput | DeleteComponentCommandOutput | DeleteThemeCommandOutput | ExchangeCodeForTokenCommandOutput | ExportComponentsCommandOutput | ExportThemesCommandOutput | GetComponentCommandOutput | GetThemeCommandOutput | ListComponentsCommandOutput | ListThemesCommandOutput | RefreshTokenCommandOutput | UpdateComponentCommandOutput | UpdateThemeCommandOutput;
|
|
25
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
26
|
+
/**
|
|
27
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
28
|
+
*/
|
|
29
|
+
requestHandler?: __HttpHandler;
|
|
30
|
+
/**
|
|
31
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
32
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
sha256?: __HashConstructor;
|
|
36
|
+
/**
|
|
37
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
urlParser?: __UrlParser;
|
|
41
|
+
/**
|
|
42
|
+
* A function that can calculate the length of a request body.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* A function that converts a stream into an array of bytes.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
streamCollector?: __StreamCollector;
|
|
51
|
+
/**
|
|
52
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
base64Decoder?: __Decoder;
|
|
56
|
+
/**
|
|
57
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
base64Encoder?: __Encoder;
|
|
61
|
+
/**
|
|
62
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
utf8Decoder?: __Decoder;
|
|
66
|
+
/**
|
|
67
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
utf8Encoder?: __Encoder;
|
|
71
|
+
/**
|
|
72
|
+
* The runtime environment.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
runtime?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
78
|
+
* trait of an operation.
|
|
79
|
+
*/
|
|
80
|
+
disableHostPrefix?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
83
|
+
*/
|
|
84
|
+
maxAttempts?: number | __Provider<number>;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies which retry algorithm to use.
|
|
87
|
+
*/
|
|
88
|
+
retryMode?: string | __Provider<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Optional logger for logging debug/info/warn/error.
|
|
91
|
+
*/
|
|
92
|
+
logger?: __Logger;
|
|
93
|
+
/**
|
|
94
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
95
|
+
*/
|
|
96
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Enables FIPS compatible endpoints.
|
|
99
|
+
*/
|
|
100
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
101
|
+
/**
|
|
102
|
+
* Unique service identifier.
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
serviceId?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The AWS region to which this client will send requests
|
|
108
|
+
*/
|
|
109
|
+
region?: string | __Provider<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Default credentials provider; Not available in browser runtime.
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
115
|
+
/**
|
|
116
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
120
|
+
/**
|
|
121
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
125
|
+
}
|
|
126
|
+
declare type AmplifyUIBuilderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
127
|
+
/**
|
|
128
|
+
* The configuration interface of AmplifyUIBuilderClient class constructor that set the region, credentials and other options.
|
|
129
|
+
*/
|
|
130
|
+
export interface AmplifyUIBuilderClientConfig extends AmplifyUIBuilderClientConfigType {
|
|
131
|
+
}
|
|
132
|
+
declare type AmplifyUIBuilderClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
133
|
+
/**
|
|
134
|
+
* The resolved configuration interface of AmplifyUIBuilderClient class. This is resolved and normalized from the {@link AmplifyUIBuilderClientConfig | constructor configuration interface}.
|
|
135
|
+
*/
|
|
136
|
+
export interface AmplifyUIBuilderClientResolvedConfig extends AmplifyUIBuilderClientResolvedConfigType {
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* <p>The Amplify UI Builder API provides a programmatic interface for creating and configuring
|
|
140
|
+
* user interface (UI) component libraries and themes for use in your Amplify applications. You
|
|
141
|
+
* can then connect these UI components to an application's backend Amazon Web Services
|
|
142
|
+
* resources.</p>
|
|
143
|
+
* <p>You can also use the Amplify Studio visual designer to create UI components and model data
|
|
144
|
+
* for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
145
|
+
* <i>Amplify Docs</i>.</p>
|
|
146
|
+
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
|
|
147
|
+
* for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
148
|
+
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify Console User Guide</a>.</p>
|
|
149
|
+
*/
|
|
150
|
+
export declare class AmplifyUIBuilderClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AmplifyUIBuilderClientResolvedConfig> {
|
|
151
|
+
/**
|
|
152
|
+
* The resolved configuration of AmplifyUIBuilderClient class. This is resolved and normalized from the {@link AmplifyUIBuilderClientConfig | constructor configuration interface}.
|
|
153
|
+
*/
|
|
154
|
+
readonly config: AmplifyUIBuilderClientResolvedConfig;
|
|
155
|
+
constructor(configuration: AmplifyUIBuilderClientConfig);
|
|
156
|
+
/**
|
|
157
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
158
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
159
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
160
|
+
*/
|
|
161
|
+
destroy(): void;
|
|
162
|
+
}
|
|
163
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { CreateComponentRequest, CreateComponentResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateComponentCommandInput extends CreateComponentRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateComponentCommandOutput extends CreateComponentResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a new component for an Amplify app.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmplifyUIBuilderClient, CreateComponentCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
15
|
+
* // const { AmplifyUIBuilderClient, CreateComponentCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
16
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
17
|
+
* const command = new CreateComponentCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link CreateComponentCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link CreateComponentCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class CreateComponentCommand extends $Command<CreateComponentCommandInput, CreateComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
27
|
+
readonly input: CreateComponentCommandInput;
|
|
28
|
+
constructor(input: CreateComponentCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateComponentCommandInput, CreateComponentCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { CreateThemeRequest, CreateThemeResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateThemeCommandInput extends CreateThemeRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateThemeCommandOutput extends CreateThemeResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a theme to apply to the components in an Amplify app.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmplifyUIBuilderClient, CreateThemeCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
15
|
+
* // const { AmplifyUIBuilderClient, CreateThemeCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
16
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
17
|
+
* const command = new CreateThemeCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link CreateThemeCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link CreateThemeCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class CreateThemeCommand extends $Command<CreateThemeCommandInput, CreateThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
27
|
+
readonly input: CreateThemeCommandInput;
|
|
28
|
+
constructor(input: CreateThemeCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateThemeCommandInput, CreateThemeCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { DeleteComponentRequest } from "../models/models_0";
|
|
5
|
+
export interface DeleteComponentCommandInput extends DeleteComponentRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteComponentCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Deletes a component from an Amplify app.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmplifyUIBuilderClient, DeleteComponentCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
15
|
+
* // const { AmplifyUIBuilderClient, DeleteComponentCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
16
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
17
|
+
* const command = new DeleteComponentCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DeleteComponentCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DeleteComponentCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeleteComponentCommand extends $Command<DeleteComponentCommandInput, DeleteComponentCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
27
|
+
readonly input: DeleteComponentCommandInput;
|
|
28
|
+
constructor(input: DeleteComponentCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteComponentCommandInput, DeleteComponentCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { DeleteThemeRequest } from "../models/models_0";
|
|
5
|
+
export interface DeleteThemeCommandInput extends DeleteThemeRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteThemeCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Deletes a theme from an Amplify app.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmplifyUIBuilderClient, DeleteThemeCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
15
|
+
* // const { AmplifyUIBuilderClient, DeleteThemeCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
16
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
17
|
+
* const command = new DeleteThemeCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link DeleteThemeCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link DeleteThemeCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeleteThemeCommand extends $Command<DeleteThemeCommandInput, DeleteThemeCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
27
|
+
readonly input: DeleteThemeCommandInput;
|
|
28
|
+
constructor(input: DeleteThemeCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteThemeCommandInput, DeleteThemeCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { ExchangeCodeForTokenRequest, ExchangeCodeForTokenResponse } from "../models/models_0";
|
|
5
|
+
export interface ExchangeCodeForTokenCommandInput extends ExchangeCodeForTokenRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ExchangeCodeForTokenCommandOutput extends ExchangeCodeForTokenResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Exchanges an access code for a token.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { AmplifyUIBuilderClient, ExchangeCodeForTokenCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
15
|
+
* // const { AmplifyUIBuilderClient, ExchangeCodeForTokenCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
16
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
17
|
+
* const command = new ExchangeCodeForTokenCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link ExchangeCodeForTokenCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link ExchangeCodeForTokenCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class ExchangeCodeForTokenCommand extends $Command<ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
27
|
+
readonly input: ExchangeCodeForTokenCommandInput;
|
|
28
|
+
constructor(input: ExchangeCodeForTokenCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { ExportComponentsRequest, ExportComponentsResponse } from "../models/models_0";
|
|
5
|
+
export interface ExportComponentsCommandInput extends ExportComponentsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ExportComponentsCommandOutput extends ExportComponentsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Exports component configurations to code that is ready to integrate into an Amplify
|
|
11
|
+
* app.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { AmplifyUIBuilderClient, ExportComponentsCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
16
|
+
* // const { AmplifyUIBuilderClient, ExportComponentsCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
17
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
18
|
+
* const command = new ExportComponentsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ExportComponentsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ExportComponentsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ExportComponentsCommand extends $Command<ExportComponentsCommandInput, ExportComponentsCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
28
|
+
readonly input: ExportComponentsCommandInput;
|
|
29
|
+
constructor(input: ExportComponentsCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportComponentsCommandInput, ExportComponentsCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
4
|
+
import { ExportThemesRequest, ExportThemesResponse } from "../models/models_0";
|
|
5
|
+
export interface ExportThemesCommandInput extends ExportThemesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ExportThemesCommandOutput extends ExportThemesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Exports theme configurations to code that is ready to integrate into an Amplify
|
|
11
|
+
* app.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { AmplifyUIBuilderClient, ExportThemesCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
16
|
+
* // const { AmplifyUIBuilderClient, ExportThemesCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
17
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
18
|
+
* const command = new ExportThemesCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ExportThemesCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ExportThemesCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ExportThemesCommand extends $Command<ExportThemesCommandInput, ExportThemesCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
28
|
+
readonly input: ExportThemesCommandInput;
|
|
29
|
+
constructor(input: ExportThemesCommandInput);
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExportThemesCommandInput, ExportThemesCommandOutput>;
|
|
34
|
+
private serialize;
|
|
35
|
+
private deserialize;
|
|
36
|
+
}
|