@wildix/xbees-kite-client 1.0.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/dist-cjs/Kite.js +25 -0
- package/dist-cjs/KiteClient.js +37 -0
- package/dist-cjs/commands/CreateWidgetCommand.js +21 -0
- package/dist-cjs/commands/DeleteWidgetCommand.js +21 -0
- package/dist-cjs/commands/GetConfigCommand.js +21 -0
- package/dist-cjs/commands/GetWidgetCommand.js +21 -0
- package/dist-cjs/commands/ListServicesCommand.js +21 -0
- package/dist-cjs/commands/ListWidgetsCommand.js +21 -0
- package/dist-cjs/commands/UpdateWidgetCommand.js +21 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/KiteServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +112 -0
- package/dist-cjs/protocols/Aws_restJson1.js +387 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +36 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/Kite.js +21 -0
- package/dist-es/KiteClient.js +33 -0
- package/dist-es/commands/CreateWidgetCommand.js +17 -0
- package/dist-es/commands/DeleteWidgetCommand.js +17 -0
- package/dist-es/commands/GetConfigCommand.js +17 -0
- package/dist-es/commands/GetWidgetCommand.js +17 -0
- package/dist-es/commands/ListServicesCommand.js +17 -0
- package/dist-es/commands/ListWidgetsCommand.js +17 -0
- package/dist-es/commands/UpdateWidgetCommand.js +17 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/KiteServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +104 -0
- package/dist-es/protocols/Aws_restJson1.js +370 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +31 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/Kite.d.ts +60 -0
- package/dist-types/KiteClient.d.ts +149 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +199 -0
- package/dist-types/commands/DeleteWidgetCommand.d.ts +64 -0
- package/dist-types/commands/GetConfigCommand.d.ts +107 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +137 -0
- package/dist-types/commands/ListServicesCommand.d.ts +94 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +137 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +200 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/models/KiteServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +617 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +65 -0
- package/dist-types/runtimeConfig.browser.d.ts +28 -0
- package/dist-types/runtimeConfig.d.ts +28 -0
- package/dist-types/runtimeConfig.native.d.ts +27 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +78 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { GetWidgetInput, GetWidgetOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetWidgetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetWidgetCommandInput extends GetWidgetInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetWidgetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetWidgetCommandOutput extends GetWidgetOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetWidgetCommand_base: {
|
|
25
|
+
new (input: GetWidgetCommandInput): import("@smithy/smithy-client").CommandImpl<GetWidgetCommandInput, GetWidgetCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetWidgetCommandInput): import("@smithy/smithy-client").CommandImpl<GetWidgetCommandInput, GetWidgetCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves details of a specific widget by its unique identifier.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { KiteClient, GetWidgetCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
35
|
+
* // const { KiteClient, GetWidgetCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
36
|
+
* const client = new KiteClient(config);
|
|
37
|
+
* const input = { // GetWidgetInput
|
|
38
|
+
* widgetId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetWidgetCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetWidgetOutput
|
|
43
|
+
* // widget: { // Widget
|
|
44
|
+
* // appearance: { // WidgetAppearance
|
|
45
|
+
* // pallete: { // WidgetPalleteSettings
|
|
46
|
+
* // backgroundColor: "STRING_VALUE",
|
|
47
|
+
* // accentColor: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // text: { // WidgetTextSettings
|
|
50
|
+
* // button: "STRING_VALUE",
|
|
51
|
+
* // title: "STRING_VALUE",
|
|
52
|
+
* // topTitle: "STRING_VALUE",
|
|
53
|
+
* // topSubtitle: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // },
|
|
56
|
+
* // routes: [ // WidgetRoutesList
|
|
57
|
+
* // { // WidgetRoute
|
|
58
|
+
* // id: "STRING_VALUE", // required
|
|
59
|
+
* // rules: [ // WidgetRouteRulesList // required
|
|
60
|
+
* // { // WidgetRouteRule Union: only one key present
|
|
61
|
+
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
62
|
+
* // timeZone: "STRING_VALUE", // required
|
|
63
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "THUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
64
|
+
* // startMinute: Number("int"), // required
|
|
65
|
+
* // endMinute: Number("int"), // required
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // target: { // WidgetTarget Union: only one key present
|
|
70
|
+
* // service: { // WidgetServiceTarget
|
|
71
|
+
* // id: Number("int"), // required
|
|
72
|
+
* // uri: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // agent: { // WidgetAgentTarget
|
|
75
|
+
* // email: "STRING_VALUE", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // bot: { // WidgetBotTarget
|
|
78
|
+
* // id: "STRING_VALUE", // required
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // welcomeMessages: [ // WelcomeMessagesList
|
|
84
|
+
* // { // WelcomeMessage
|
|
85
|
+
* // text: "STRING_VALUE",
|
|
86
|
+
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
87
|
+
* // { // MessagePredefinedReply
|
|
88
|
+
* // text: "STRING_VALUE", // required
|
|
89
|
+
* // label: "STRING_VALUE",
|
|
90
|
+
* // },
|
|
91
|
+
* // ],
|
|
92
|
+
* // delay: Number("int"),
|
|
93
|
+
* // },
|
|
94
|
+
* // ],
|
|
95
|
+
* // name: "STRING_VALUE", // required
|
|
96
|
+
* // target: {// Union: only one key present
|
|
97
|
+
* // service: {
|
|
98
|
+
* // id: Number("int"), // required
|
|
99
|
+
* // uri: "STRING_VALUE", // required
|
|
100
|
+
* // },
|
|
101
|
+
* // agent: {
|
|
102
|
+
* // email: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // bot: {
|
|
105
|
+
* // id: "STRING_VALUE", // required
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // id: "STRING_VALUE", // required
|
|
109
|
+
* // company: "STRING_VALUE", // required
|
|
110
|
+
* // createdAt: "STRING_VALUE", // required
|
|
111
|
+
* // updatedAt: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param GetWidgetCommandInput - {@link GetWidgetCommandInput}
|
|
118
|
+
* @returns {@link GetWidgetCommandOutput}
|
|
119
|
+
* @see {@link GetWidgetCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link GetWidgetCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link WidgetNotFoundException} (client fault)
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ValidationException} (client fault)
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link KiteServiceException}
|
|
132
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
export declare class GetWidgetCommand extends GetWidgetCommand_base {
|
|
137
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListServicesInput, ListServicesOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListServicesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListServicesCommandInput extends ListServicesInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListServicesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListServicesCommandOutput extends ListServicesOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListServicesCommand_base: {
|
|
25
|
+
new (input: ListServicesCommandInput): import("@smithy/smithy-client").CommandImpl<ListServicesCommandInput, ListServicesCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListServicesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListServicesCommandInput, ListServicesCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListServicesCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListServicesCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = {};
|
|
39
|
+
* const command = new ListServicesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // ListServicesOutput
|
|
42
|
+
* // services: [ // ServicesList // required
|
|
43
|
+
* // { // Service
|
|
44
|
+
* // id: Number("int"), // required
|
|
45
|
+
* // title: "STRING_VALUE", // required
|
|
46
|
+
* // settings: {},
|
|
47
|
+
* // members: [ // UsersList // required
|
|
48
|
+
* // { // User
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // name: "STRING_VALUE",
|
|
51
|
+
* // email: "STRING_VALUE",
|
|
52
|
+
* // phone: "STRING_VALUE",
|
|
53
|
+
* // picture: "STRING_VALUE",
|
|
54
|
+
* // locale: "STRING_VALUE",
|
|
55
|
+
* // timeZone: "STRING_VALUE",
|
|
56
|
+
* // company: "STRING_VALUE",
|
|
57
|
+
* // bot: true || false,
|
|
58
|
+
* // pbxDomain: "STRING_VALUE",
|
|
59
|
+
* // pbxPort: "STRING_VALUE",
|
|
60
|
+
* // pbxExtension: "STRING_VALUE",
|
|
61
|
+
* // pbxSerial: "STRING_VALUE",
|
|
62
|
+
* // pbxUserId: "STRING_VALUE",
|
|
63
|
+
* // createdAt: "STRING_VALUE",
|
|
64
|
+
* // updatedAt: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // pbx: { // ServicePbx
|
|
68
|
+
* // domain: "STRING_VALUE", // required
|
|
69
|
+
* // port: Number("int"), // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param ListServicesCommandInput - {@link ListServicesCommandInput}
|
|
78
|
+
* @returns {@link ListServicesCommandOutput}
|
|
79
|
+
* @see {@link ListServicesCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link ListServicesCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link KiteServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
export declare class ListServicesCommand extends ListServicesCommand_base {
|
|
94
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListWidgetsInput, ListWidgetsOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListWidgetsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListWidgetsCommandInput extends ListWidgetsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListWidgetsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListWidgetsCommandOutput extends ListWidgetsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListWidgetsCommand_base: {
|
|
25
|
+
new (input: ListWidgetsCommandInput): import("@smithy/smithy-client").CommandImpl<ListWidgetsCommandInput, ListWidgetsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListWidgetsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListWidgetsCommandInput, ListWidgetsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { KiteClient, ListWidgetsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListWidgetsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListWidgetsInput
|
|
39
|
+
* companyId: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListWidgetsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListWidgetsOutput
|
|
44
|
+
* // widgets: [ // WidgetsList // required
|
|
45
|
+
* // { // Widget
|
|
46
|
+
* // appearance: { // WidgetAppearance
|
|
47
|
+
* // pallete: { // WidgetPalleteSettings
|
|
48
|
+
* // backgroundColor: "STRING_VALUE",
|
|
49
|
+
* // accentColor: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // text: { // WidgetTextSettings
|
|
52
|
+
* // button: "STRING_VALUE",
|
|
53
|
+
* // title: "STRING_VALUE",
|
|
54
|
+
* // topTitle: "STRING_VALUE",
|
|
55
|
+
* // topSubtitle: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // },
|
|
58
|
+
* // routes: [ // WidgetRoutesList
|
|
59
|
+
* // { // WidgetRoute
|
|
60
|
+
* // id: "STRING_VALUE", // required
|
|
61
|
+
* // rules: [ // WidgetRouteRulesList // required
|
|
62
|
+
* // { // WidgetRouteRule Union: only one key present
|
|
63
|
+
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
64
|
+
* // timeZone: "STRING_VALUE", // required
|
|
65
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "THUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
66
|
+
* // startMinute: Number("int"), // required
|
|
67
|
+
* // endMinute: Number("int"), // required
|
|
68
|
+
* // },
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // target: { // WidgetTarget Union: only one key present
|
|
72
|
+
* // service: { // WidgetServiceTarget
|
|
73
|
+
* // id: Number("int"), // required
|
|
74
|
+
* // uri: "STRING_VALUE", // required
|
|
75
|
+
* // },
|
|
76
|
+
* // agent: { // WidgetAgentTarget
|
|
77
|
+
* // email: "STRING_VALUE", // required
|
|
78
|
+
* // },
|
|
79
|
+
* // bot: { // WidgetBotTarget
|
|
80
|
+
* // id: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // welcomeMessages: [ // WelcomeMessagesList
|
|
86
|
+
* // { // WelcomeMessage
|
|
87
|
+
* // text: "STRING_VALUE",
|
|
88
|
+
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
89
|
+
* // { // MessagePredefinedReply
|
|
90
|
+
* // text: "STRING_VALUE", // required
|
|
91
|
+
* // label: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // ],
|
|
94
|
+
* // delay: Number("int"),
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
97
|
+
* // name: "STRING_VALUE", // required
|
|
98
|
+
* // target: {// Union: only one key present
|
|
99
|
+
* // service: {
|
|
100
|
+
* // id: Number("int"), // required
|
|
101
|
+
* // uri: "STRING_VALUE", // required
|
|
102
|
+
* // },
|
|
103
|
+
* // agent: {
|
|
104
|
+
* // email: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // bot: {
|
|
107
|
+
* // id: "STRING_VALUE", // required
|
|
108
|
+
* // },
|
|
109
|
+
* // },
|
|
110
|
+
* // id: "STRING_VALUE", // required
|
|
111
|
+
* // company: "STRING_VALUE", // required
|
|
112
|
+
* // createdAt: "STRING_VALUE", // required
|
|
113
|
+
* // updatedAt: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // };
|
|
117
|
+
*
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @param ListWidgetsCommandInput - {@link ListWidgetsCommandInput}
|
|
121
|
+
* @returns {@link ListWidgetsCommandOutput}
|
|
122
|
+
* @see {@link ListWidgetsCommandInput} for command's `input` shape.
|
|
123
|
+
* @see {@link ListWidgetsCommandOutput} for command's `response` shape.
|
|
124
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link ValidationException} (client fault)
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link KiteServiceException}
|
|
133
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
export declare class ListWidgetsCommand extends ListWidgetsCommand_base {
|
|
137
|
+
}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { UpdateWidgetInput, UpdateWidgetOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateWidgetCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateWidgetCommandInput extends UpdateWidgetInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateWidgetCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateWidgetCommandOutput extends UpdateWidgetOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateWidgetCommand_base: {
|
|
25
|
+
new (input: UpdateWidgetCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWidgetCommandInput, UpdateWidgetCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateWidgetCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateWidgetCommandInput, UpdateWidgetCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Updates the configuration of an existing widget.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { KiteClient, UpdateWidgetCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
35
|
+
* // const { KiteClient, UpdateWidgetCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
36
|
+
* const client = new KiteClient(config);
|
|
37
|
+
* const input = { // UpdateWidgetInput
|
|
38
|
+
* appearance: { // WidgetAppearance
|
|
39
|
+
* pallete: { // WidgetPalleteSettings
|
|
40
|
+
* backgroundColor: "STRING_VALUE",
|
|
41
|
+
* accentColor: "STRING_VALUE",
|
|
42
|
+
* },
|
|
43
|
+
* text: { // WidgetTextSettings
|
|
44
|
+
* button: "STRING_VALUE",
|
|
45
|
+
* title: "STRING_VALUE",
|
|
46
|
+
* topTitle: "STRING_VALUE",
|
|
47
|
+
* topSubtitle: "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* },
|
|
50
|
+
* routes: [ // WidgetRoutesList
|
|
51
|
+
* { // WidgetRoute
|
|
52
|
+
* id: "STRING_VALUE", // required
|
|
53
|
+
* rules: [ // WidgetRouteRulesList // required
|
|
54
|
+
* { // WidgetRouteRule Union: only one key present
|
|
55
|
+
* timeFrame: { // WidgetRouteTimeFrameRule
|
|
56
|
+
* timeZone: "STRING_VALUE", // required
|
|
57
|
+
* day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "THUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
58
|
+
* startMinute: Number("int"), // required
|
|
59
|
+
* endMinute: Number("int"), // required
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* target: { // WidgetTarget Union: only one key present
|
|
64
|
+
* service: { // WidgetServiceTarget
|
|
65
|
+
* id: Number("int"), // required
|
|
66
|
+
* uri: "STRING_VALUE", // required
|
|
67
|
+
* },
|
|
68
|
+
* agent: { // WidgetAgentTarget
|
|
69
|
+
* email: "STRING_VALUE", // required
|
|
70
|
+
* },
|
|
71
|
+
* bot: { // WidgetBotTarget
|
|
72
|
+
* id: "STRING_VALUE", // required
|
|
73
|
+
* },
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* welcomeMessages: [ // WelcomeMessagesList
|
|
78
|
+
* { // WelcomeMessage
|
|
79
|
+
* text: "STRING_VALUE",
|
|
80
|
+
* predefinedReplies: [ // MessagePredefinedRepliesList
|
|
81
|
+
* { // MessagePredefinedReply
|
|
82
|
+
* text: "STRING_VALUE", // required
|
|
83
|
+
* label: "STRING_VALUE",
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* delay: Number("int"),
|
|
87
|
+
* },
|
|
88
|
+
* ],
|
|
89
|
+
* name: "STRING_VALUE", // required
|
|
90
|
+
* target: {// Union: only one key present
|
|
91
|
+
* service: {
|
|
92
|
+
* id: Number("int"), // required
|
|
93
|
+
* uri: "STRING_VALUE", // required
|
|
94
|
+
* },
|
|
95
|
+
* agent: {
|
|
96
|
+
* email: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* bot: {
|
|
99
|
+
* id: "STRING_VALUE", // required
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* companyId: "STRING_VALUE",
|
|
103
|
+
* widgetId: "STRING_VALUE", // required
|
|
104
|
+
* };
|
|
105
|
+
* const command = new UpdateWidgetCommand(input);
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* // { // UpdateWidgetOutput
|
|
108
|
+
* // widget: { // Widget
|
|
109
|
+
* // appearance: { // WidgetAppearance
|
|
110
|
+
* // pallete: { // WidgetPalleteSettings
|
|
111
|
+
* // backgroundColor: "STRING_VALUE",
|
|
112
|
+
* // accentColor: "STRING_VALUE",
|
|
113
|
+
* // },
|
|
114
|
+
* // text: { // WidgetTextSettings
|
|
115
|
+
* // button: "STRING_VALUE",
|
|
116
|
+
* // title: "STRING_VALUE",
|
|
117
|
+
* // topTitle: "STRING_VALUE",
|
|
118
|
+
* // topSubtitle: "STRING_VALUE",
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // routes: [ // WidgetRoutesList
|
|
122
|
+
* // { // WidgetRoute
|
|
123
|
+
* // id: "STRING_VALUE", // required
|
|
124
|
+
* // rules: [ // WidgetRouteRulesList // required
|
|
125
|
+
* // { // WidgetRouteRule Union: only one key present
|
|
126
|
+
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
127
|
+
* // timeZone: "STRING_VALUE", // required
|
|
128
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "THUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
129
|
+
* // startMinute: Number("int"), // required
|
|
130
|
+
* // endMinute: Number("int"), // required
|
|
131
|
+
* // },
|
|
132
|
+
* // },
|
|
133
|
+
* // ],
|
|
134
|
+
* // target: { // WidgetTarget Union: only one key present
|
|
135
|
+
* // service: { // WidgetServiceTarget
|
|
136
|
+
* // id: Number("int"), // required
|
|
137
|
+
* // uri: "STRING_VALUE", // required
|
|
138
|
+
* // },
|
|
139
|
+
* // agent: { // WidgetAgentTarget
|
|
140
|
+
* // email: "STRING_VALUE", // required
|
|
141
|
+
* // },
|
|
142
|
+
* // bot: { // WidgetBotTarget
|
|
143
|
+
* // id: "STRING_VALUE", // required
|
|
144
|
+
* // },
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // welcomeMessages: [ // WelcomeMessagesList
|
|
149
|
+
* // { // WelcomeMessage
|
|
150
|
+
* // text: "STRING_VALUE",
|
|
151
|
+
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
152
|
+
* // { // MessagePredefinedReply
|
|
153
|
+
* // text: "STRING_VALUE", // required
|
|
154
|
+
* // label: "STRING_VALUE",
|
|
155
|
+
* // },
|
|
156
|
+
* // ],
|
|
157
|
+
* // delay: Number("int"),
|
|
158
|
+
* // },
|
|
159
|
+
* // ],
|
|
160
|
+
* // name: "STRING_VALUE", // required
|
|
161
|
+
* // target: {// Union: only one key present
|
|
162
|
+
* // service: {
|
|
163
|
+
* // id: Number("int"), // required
|
|
164
|
+
* // uri: "STRING_VALUE", // required
|
|
165
|
+
* // },
|
|
166
|
+
* // agent: {
|
|
167
|
+
* // email: "STRING_VALUE", // required
|
|
168
|
+
* // },
|
|
169
|
+
* // bot: {
|
|
170
|
+
* // id: "STRING_VALUE", // required
|
|
171
|
+
* // },
|
|
172
|
+
* // },
|
|
173
|
+
* // id: "STRING_VALUE", // required
|
|
174
|
+
* // company: "STRING_VALUE", // required
|
|
175
|
+
* // createdAt: "STRING_VALUE", // required
|
|
176
|
+
* // updatedAt: "STRING_VALUE",
|
|
177
|
+
* // },
|
|
178
|
+
* // };
|
|
179
|
+
*
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @param UpdateWidgetCommandInput - {@link UpdateWidgetCommandInput}
|
|
183
|
+
* @returns {@link UpdateWidgetCommandOutput}
|
|
184
|
+
* @see {@link UpdateWidgetCommandInput} for command's `input` shape.
|
|
185
|
+
* @see {@link UpdateWidgetCommandOutput} for command's `response` shape.
|
|
186
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
187
|
+
*
|
|
188
|
+
* @throws {@link ValidationException} (client fault)
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
193
|
+
*
|
|
194
|
+
* @throws {@link KiteServiceException}
|
|
195
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
196
|
+
*
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export declare class UpdateWidgetCommand extends UpdateWidgetCommand_base {
|
|
200
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./CreateWidgetCommand";
|
|
2
|
+
export * from "./DeleteWidgetCommand";
|
|
3
|
+
export * from "./GetConfigCommand";
|
|
4
|
+
export * from "./GetWidgetCommand";
|
|
5
|
+
export * from "./ListServicesCommand";
|
|
6
|
+
export * from "./ListWidgetsCommand";
|
|
7
|
+
export * from "./UpdateWidgetCommand";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface KiteExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./KiteClient";
|
|
2
|
+
export * from "./Kite";
|
|
3
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
4
|
+
export type { KiteExtensionConfiguration } from "./extensionConfiguration";
|
|
5
|
+
export * from "./commands";
|
|
6
|
+
export * from "./models";
|
|
7
|
+
export { KiteServiceException } from "./models/KiteServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from Kite service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class KiteServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|