@wildix/xbees-kite-client 1.0.14 → 1.0.17
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 +20 -0
- package/dist-cjs/KiteClient.js +4 -5
- package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +21 -0
- package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/ListSmsConfigurationsCommand.js +21 -0
- package/dist-cjs/commands/ListSmsNumbersCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +21 -0
- package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +21 -0
- package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +21 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +113 -22
- package/dist-cjs/protocols/Aws_restJson1.js +380 -74
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeExtensions.js +2 -10
- package/dist-es/Kite.js +20 -0
- package/dist-es/KiteClient.js +4 -5
- package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +17 -0
- package/dist-es/commands/GetSmsNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/ListSmsConfigurationsCommand.js +17 -0
- package/dist-es/commands/ListSmsNumbersCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppNumbersCommand.js +17 -0
- package/dist-es/commands/ListWhatsAppTemplatesCommand.js +17 -0
- package/dist-es/commands/PutSmsNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +17 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +105 -15
- package/dist-es/protocols/Aws_restJson1.js +334 -48
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +5 -4
- package/dist-es/runtimeExtensions.js +2 -10
- package/dist-types/Kite.d.ts +74 -0
- package/dist-types/KiteClient.d.ts +12 -2
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +414 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +118 -0
- package/dist-types/commands/DeleteWidgetCommand.d.ts +14 -0
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +14 -0
- package/dist-types/commands/GetConfigCommand.d.ts +14 -0
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +178 -0
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +178 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +66 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +14 -0
- package/dist-types/commands/ListServicesCommand.d.ts +14 -0
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +179 -0
- package/dist-types/commands/ListSmsNumbersCommand.d.ts +82 -0
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +179 -0
- package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +82 -0
- package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +118 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +66 -0
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +270 -0
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +270 -0
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +17 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +900 -154
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/dist-types/runtimeConfig.d.ts +2 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/package.json +37 -33
package/dist-cjs/Kite.js
CHANGED
|
@@ -3,28 +3,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Kite = void 0;
|
|
4
4
|
const KiteClient_1 = require("./KiteClient");
|
|
5
5
|
const CancelCalendarEventCommand_1 = require("./commands/CancelCalendarEventCommand");
|
|
6
|
+
const CreateOrUpdateWidgetPreviewCommand_1 = require("./commands/CreateOrUpdateWidgetPreviewCommand");
|
|
6
7
|
const CreateWidgetCommand_1 = require("./commands/CreateWidgetCommand");
|
|
7
8
|
const DeleteWidgetCommand_1 = require("./commands/DeleteWidgetCommand");
|
|
8
9
|
const GetCalendarSlotsCommand_1 = require("./commands/GetCalendarSlotsCommand");
|
|
9
10
|
const GetConfigCommand_1 = require("./commands/GetConfigCommand");
|
|
11
|
+
const GetSmsNumberConfigurationCommand_1 = require("./commands/GetSmsNumberConfigurationCommand");
|
|
12
|
+
const GetWhatsAppNumberConfigurationCommand_1 = require("./commands/GetWhatsAppNumberConfigurationCommand");
|
|
10
13
|
const GetWidgetCommand_1 = require("./commands/GetWidgetCommand");
|
|
11
14
|
const ListAgentsCommand_1 = require("./commands/ListAgentsCommand");
|
|
12
15
|
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
16
|
+
const ListSmsConfigurationsCommand_1 = require("./commands/ListSmsConfigurationsCommand");
|
|
17
|
+
const ListSmsNumbersCommand_1 = require("./commands/ListSmsNumbersCommand");
|
|
18
|
+
const ListWhatsAppConfigurationsCommand_1 = require("./commands/ListWhatsAppConfigurationsCommand");
|
|
19
|
+
const ListWhatsAppNumbersCommand_1 = require("./commands/ListWhatsAppNumbersCommand");
|
|
20
|
+
const ListWhatsAppTemplatesCommand_1 = require("./commands/ListWhatsAppTemplatesCommand");
|
|
13
21
|
const ListWidgetsCommand_1 = require("./commands/ListWidgetsCommand");
|
|
22
|
+
const PutSmsNumberConfigurationCommand_1 = require("./commands/PutSmsNumberConfigurationCommand");
|
|
23
|
+
const PutWhatsAppNumberConfigurationCommand_1 = require("./commands/PutWhatsAppNumberConfigurationCommand");
|
|
14
24
|
const RescheduleCalendarEventCommand_1 = require("./commands/RescheduleCalendarEventCommand");
|
|
15
25
|
const ScheduleCalendarEventCommand_1 = require("./commands/ScheduleCalendarEventCommand");
|
|
16
26
|
const UpdateWidgetCommand_1 = require("./commands/UpdateWidgetCommand");
|
|
17
27
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
28
|
const commands = {
|
|
19
29
|
CancelCalendarEventCommand: CancelCalendarEventCommand_1.CancelCalendarEventCommand,
|
|
30
|
+
CreateOrUpdateWidgetPreviewCommand: CreateOrUpdateWidgetPreviewCommand_1.CreateOrUpdateWidgetPreviewCommand,
|
|
20
31
|
CreateWidgetCommand: CreateWidgetCommand_1.CreateWidgetCommand,
|
|
21
32
|
DeleteWidgetCommand: DeleteWidgetCommand_1.DeleteWidgetCommand,
|
|
22
33
|
GetCalendarSlotsCommand: GetCalendarSlotsCommand_1.GetCalendarSlotsCommand,
|
|
23
34
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
35
|
+
GetSmsNumberConfigurationCommand: GetSmsNumberConfigurationCommand_1.GetSmsNumberConfigurationCommand,
|
|
36
|
+
GetWhatsAppNumberConfigurationCommand: GetWhatsAppNumberConfigurationCommand_1.GetWhatsAppNumberConfigurationCommand,
|
|
24
37
|
GetWidgetCommand: GetWidgetCommand_1.GetWidgetCommand,
|
|
25
38
|
ListAgentsCommand: ListAgentsCommand_1.ListAgentsCommand,
|
|
26
39
|
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
40
|
+
ListSmsConfigurationsCommand: ListSmsConfigurationsCommand_1.ListSmsConfigurationsCommand,
|
|
41
|
+
ListSmsNumbersCommand: ListSmsNumbersCommand_1.ListSmsNumbersCommand,
|
|
42
|
+
ListWhatsAppConfigurationsCommand: ListWhatsAppConfigurationsCommand_1.ListWhatsAppConfigurationsCommand,
|
|
43
|
+
ListWhatsAppNumbersCommand: ListWhatsAppNumbersCommand_1.ListWhatsAppNumbersCommand,
|
|
44
|
+
ListWhatsAppTemplatesCommand: ListWhatsAppTemplatesCommand_1.ListWhatsAppTemplatesCommand,
|
|
27
45
|
ListWidgetsCommand: ListWidgetsCommand_1.ListWidgetsCommand,
|
|
46
|
+
PutSmsNumberConfigurationCommand: PutSmsNumberConfigurationCommand_1.PutSmsNumberConfigurationCommand,
|
|
47
|
+
PutWhatsAppNumberConfigurationCommand: PutWhatsAppNumberConfigurationCommand_1.PutWhatsAppNumberConfigurationCommand,
|
|
28
48
|
RescheduleCalendarEventCommand: RescheduleCalendarEventCommand_1.RescheduleCalendarEventCommand,
|
|
29
49
|
ScheduleCalendarEventCommand: ScheduleCalendarEventCommand_1.ScheduleCalendarEventCommand,
|
|
30
50
|
UpdateWidgetCommand: UpdateWidgetCommand_1.UpdateWidgetCommand,
|
package/dist-cjs/KiteClient.js
CHANGED
|
@@ -10,8 +10,11 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
10
10
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
11
11
|
const smithy_utils_1 = require("@wildix/smithy-utils");
|
|
12
12
|
class KiteClient extends smithy_client_1.Client {
|
|
13
|
+
config;
|
|
13
14
|
constructor(...[configuration]) {
|
|
14
15
|
let _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
16
|
+
super(_config_0);
|
|
17
|
+
this.initConfig = _config_0;
|
|
15
18
|
let _config_1 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_0);
|
|
16
19
|
let _config_2 = (0, middleware_retry_1.resolveRetryConfig)(_config_1);
|
|
17
20
|
let _config_3 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_2, configuration?.extensions || []);
|
|
@@ -24,11 +27,7 @@ class KiteClient extends smithy_client_1.Client {
|
|
|
24
27
|
path: ''
|
|
25
28
|
};
|
|
26
29
|
};
|
|
27
|
-
const config = {
|
|
28
|
-
..._config_3,
|
|
29
|
-
endpoint,
|
|
30
|
-
};
|
|
31
|
-
super(config);
|
|
30
|
+
const config = { ..._config_3, endpoint };
|
|
32
31
|
this.config = config;
|
|
33
32
|
if (configuration?.token) {
|
|
34
33
|
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateOrUpdateWidgetPreviewCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class CreateOrUpdateWidgetPreviewCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "CreateOrUpdateWidgetPreview", {})
|
|
15
|
+
.n("KiteClient", "CreateOrUpdateWidgetPreviewCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateOrUpdateWidgetPreviewCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateOrUpdateWidgetPreviewCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateOrUpdateWidgetPreviewCommand = CreateOrUpdateWidgetPreviewCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSmsNumberConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetSmsNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "GetSmsNumberConfiguration", {})
|
|
15
|
+
.n("KiteClient", "GetSmsNumberConfigurationCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetSmsNumberConfigurationCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetSmsNumberConfigurationCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetSmsNumberConfigurationCommand = GetSmsNumberConfigurationCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWhatsAppNumberConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetWhatsAppNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "GetWhatsAppNumberConfiguration", {})
|
|
15
|
+
.n("KiteClient", "GetWhatsAppNumberConfigurationCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetWhatsAppNumberConfigurationCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetWhatsAppNumberConfigurationCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetWhatsAppNumberConfigurationCommand = GetWhatsAppNumberConfigurationCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSmsConfigurationsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListSmsConfigurationsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListSmsConfigurations", {})
|
|
15
|
+
.n("KiteClient", "ListSmsConfigurationsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListSmsConfigurationsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListSmsConfigurationsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListSmsConfigurationsCommand = ListSmsConfigurationsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSmsNumbersCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListSmsNumbersCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListSmsNumbers", {})
|
|
15
|
+
.n("KiteClient", "ListSmsNumbersCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListSmsNumbersCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListSmsNumbersCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListSmsNumbersCommand = ListSmsNumbersCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWhatsAppConfigurationsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListWhatsAppConfigurationsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListWhatsAppConfigurations", {})
|
|
15
|
+
.n("KiteClient", "ListWhatsAppConfigurationsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListWhatsAppConfigurationsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListWhatsAppConfigurationsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListWhatsAppConfigurationsCommand = ListWhatsAppConfigurationsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWhatsAppNumbersCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListWhatsAppNumbersCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListWhatsAppNumbers", {})
|
|
15
|
+
.n("KiteClient", "ListWhatsAppNumbersCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListWhatsAppNumbersCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListWhatsAppNumbersCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListWhatsAppNumbersCommand = ListWhatsAppNumbersCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListWhatsAppTemplatesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListWhatsAppTemplatesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "ListWhatsAppTemplates", {})
|
|
15
|
+
.n("KiteClient", "ListWhatsAppTemplatesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListWhatsAppTemplatesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListWhatsAppTemplatesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListWhatsAppTemplatesCommand = ListWhatsAppTemplatesCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutSmsNumberConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class PutSmsNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "PutSmsNumberConfiguration", {})
|
|
15
|
+
.n("KiteClient", "PutSmsNumberConfigurationCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_PutSmsNumberConfigurationCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_PutSmsNumberConfigurationCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.PutSmsNumberConfigurationCommand = PutSmsNumberConfigurationCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutWhatsAppNumberConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class PutWhatsAppNumberConfigurationCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Kite", "PutWhatsAppNumberConfiguration", {})
|
|
15
|
+
.n("KiteClient", "PutWhatsAppNumberConfigurationCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_PutWhatsAppNumberConfigurationCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_PutWhatsAppNumberConfigurationCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.PutWhatsAppNumberConfigurationCommand = PutWhatsAppNumberConfigurationCommand;
|
|
@@ -2,14 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CancelCalendarEventCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateOrUpdateWidgetPreviewCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateWidgetCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteWidgetCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./GetCalendarSlotsCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./GetConfigCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./GetSmsNumberConfigurationCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./GetWhatsAppNumberConfigurationCommand"), exports);
|
|
9
12
|
tslib_1.__exportStar(require("./GetWidgetCommand"), exports);
|
|
10
13
|
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
11
14
|
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListSmsConfigurationsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListSmsNumbersCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./ListWhatsAppConfigurationsCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListWhatsAppNumbersCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListWhatsAppTemplatesCommand"), exports);
|
|
12
20
|
tslib_1.__exportStar(require("./ListWidgetsCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./PutSmsNumberConfigurationCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./PutWhatsAppNumberConfigurationCommand"), exports);
|
|
13
23
|
tslib_1.__exportStar(require("./RescheduleCalendarEventCommand"), exports);
|
|
14
24
|
tslib_1.__exportStar(require("./ScheduleCalendarEventCommand"), exports);
|
|
15
25
|
tslib_1.__exportStar(require("./UpdateWidgetCommand"), exports);
|
|
@@ -1,42 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.RouteTarget = exports.RouteRule = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.RouteTimeFrameDay = exports.RouteActionTask = exports.RouteActionCondition = exports.TargetNotFoundException = exports.Element = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.ChannelNotFoundException = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.TemplateStatus = exports.ParameterFormat = exports.ComponentType = exports.ComponentFormat = exports.TemplateCategory = exports.ButtonType = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = exports.NotFoundException = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("./KiteServiceException");
|
|
5
|
+
class NotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
6
|
+
name = "NotFoundException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "NotFoundException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.NotFoundException = NotFoundException;
|
|
5
18
|
class ValidationException extends KiteServiceException_1.KiteServiceException {
|
|
19
|
+
name = "ValidationException";
|
|
20
|
+
$fault = "client";
|
|
6
21
|
constructor(opts) {
|
|
7
22
|
super({
|
|
8
23
|
name: "ValidationException",
|
|
9
24
|
$fault: "client",
|
|
10
25
|
...opts
|
|
11
26
|
});
|
|
12
|
-
this.name = "ValidationException";
|
|
13
|
-
this.$fault = "client";
|
|
14
27
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
30
|
exports.ValidationException = ValidationException;
|
|
18
31
|
class ForbiddenException extends KiteServiceException_1.KiteServiceException {
|
|
32
|
+
name = "ForbiddenException";
|
|
33
|
+
$fault = "client";
|
|
19
34
|
constructor(opts) {
|
|
20
35
|
super({
|
|
21
36
|
name: "ForbiddenException",
|
|
22
37
|
$fault: "client",
|
|
23
38
|
...opts
|
|
24
39
|
});
|
|
25
|
-
this.name = "ForbiddenException";
|
|
26
|
-
this.$fault = "client";
|
|
27
40
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
exports.ForbiddenException = ForbiddenException;
|
|
31
44
|
class RateLimitExceededException extends KiteServiceException_1.KiteServiceException {
|
|
45
|
+
name = "RateLimitExceededException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
rateLimit;
|
|
48
|
+
rateLimitRemaining;
|
|
49
|
+
rateLimitReset;
|
|
50
|
+
retryAfter;
|
|
32
51
|
constructor(opts) {
|
|
33
52
|
super({
|
|
34
53
|
name: "RateLimitExceededException",
|
|
35
54
|
$fault: "client",
|
|
36
55
|
...opts
|
|
37
56
|
});
|
|
38
|
-
this.name = "RateLimitExceededException";
|
|
39
|
-
this.$fault = "client";
|
|
40
57
|
Object.setPrototypeOf(this, RateLimitExceededException.prototype);
|
|
41
58
|
this.rateLimit = opts.rateLimit;
|
|
42
59
|
this.rateLimitRemaining = opts.rateLimitRemaining;
|
|
@@ -45,6 +62,40 @@ class RateLimitExceededException extends KiteServiceException_1.KiteServiceExcep
|
|
|
45
62
|
}
|
|
46
63
|
}
|
|
47
64
|
exports.RateLimitExceededException = RateLimitExceededException;
|
|
65
|
+
exports.ButtonType = {
|
|
66
|
+
APP: "APP",
|
|
67
|
+
CATALOG: "CATALOG",
|
|
68
|
+
FLOW: "FLOW",
|
|
69
|
+
MPM: "MPM",
|
|
70
|
+
OTP: "OTP",
|
|
71
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
72
|
+
QUICK_REPLY: "QUICK_REPLY",
|
|
73
|
+
URL: "URL",
|
|
74
|
+
VOICE_CALL: "VOICE_CALL",
|
|
75
|
+
};
|
|
76
|
+
exports.TemplateCategory = {
|
|
77
|
+
AUTHENTICATION: "AUTHENTICATION",
|
|
78
|
+
MARKETING: "MARKETING",
|
|
79
|
+
UTILITY: "UTILITY",
|
|
80
|
+
};
|
|
81
|
+
exports.ComponentFormat = {
|
|
82
|
+
IMAGE: "IMAGE",
|
|
83
|
+
TEXT: "TEXT",
|
|
84
|
+
};
|
|
85
|
+
exports.ComponentType = {
|
|
86
|
+
BODY: "BODY",
|
|
87
|
+
BUTTONS: "BUTTONS",
|
|
88
|
+
FOOTER: "FOOTER",
|
|
89
|
+
HEADER: "HEADER",
|
|
90
|
+
};
|
|
91
|
+
exports.ParameterFormat = {
|
|
92
|
+
NAMED: "NAMED",
|
|
93
|
+
};
|
|
94
|
+
exports.TemplateStatus = {
|
|
95
|
+
APPROVED: "APPROVED",
|
|
96
|
+
PAUSED: "PAUSED",
|
|
97
|
+
REJECTED: "REJECTED",
|
|
98
|
+
};
|
|
48
99
|
exports.ChannelType = {
|
|
49
100
|
DIRECT: "direct",
|
|
50
101
|
GROUP: "group",
|
|
@@ -60,7 +111,7 @@ var ButtonHandler;
|
|
|
60
111
|
return visitor.action(value.action);
|
|
61
112
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
62
113
|
};
|
|
63
|
-
})(ButtonHandler
|
|
114
|
+
})(ButtonHandler || (exports.ButtonHandler = ButtonHandler = {}));
|
|
64
115
|
exports.ButtonVariant = {
|
|
65
116
|
CONTAINED: "contained",
|
|
66
117
|
OUTLINED: "outlined",
|
|
@@ -72,16 +123,16 @@ var ActionElement;
|
|
|
72
123
|
return visitor.button(value.button);
|
|
73
124
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
74
125
|
};
|
|
75
|
-
})(ActionElement
|
|
126
|
+
})(ActionElement || (exports.ActionElement = ActionElement = {}));
|
|
76
127
|
class ChannelNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
128
|
+
name = "ChannelNotFoundException";
|
|
129
|
+
$fault = "client";
|
|
77
130
|
constructor(opts) {
|
|
78
131
|
super({
|
|
79
132
|
name: "ChannelNotFoundException",
|
|
80
133
|
$fault: "client",
|
|
81
134
|
...opts
|
|
82
135
|
});
|
|
83
|
-
this.name = "ChannelNotFoundException";
|
|
84
|
-
this.$fault = "client";
|
|
85
136
|
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
86
137
|
}
|
|
87
138
|
}
|
|
@@ -109,21 +160,41 @@ var Element;
|
|
|
109
160
|
return visitor.actions(value.actions);
|
|
110
161
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
111
162
|
};
|
|
112
|
-
})(Element
|
|
163
|
+
})(Element || (exports.Element = Element = {}));
|
|
113
164
|
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
165
|
+
name = "TargetNotFoundException";
|
|
166
|
+
$fault = "client";
|
|
114
167
|
constructor(opts) {
|
|
115
168
|
super({
|
|
116
169
|
name: "TargetNotFoundException",
|
|
117
170
|
$fault: "client",
|
|
118
171
|
...opts
|
|
119
172
|
});
|
|
120
|
-
this.name = "TargetNotFoundException";
|
|
121
|
-
this.$fault = "client";
|
|
122
173
|
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
123
174
|
}
|
|
124
175
|
}
|
|
125
176
|
exports.TargetNotFoundException = TargetNotFoundException;
|
|
126
|
-
|
|
177
|
+
var RouteActionCondition;
|
|
178
|
+
(function (RouteActionCondition) {
|
|
179
|
+
RouteActionCondition.visit = (value, visitor) => {
|
|
180
|
+
if (value.replyTimeout !== undefined)
|
|
181
|
+
return visitor.replyTimeout(value.replyTimeout);
|
|
182
|
+
if (value.readTimeout !== undefined)
|
|
183
|
+
return visitor.readTimeout(value.readTimeout);
|
|
184
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
185
|
+
};
|
|
186
|
+
})(RouteActionCondition || (exports.RouteActionCondition = RouteActionCondition = {}));
|
|
187
|
+
var RouteActionTask;
|
|
188
|
+
(function (RouteActionTask) {
|
|
189
|
+
RouteActionTask.visit = (value, visitor) => {
|
|
190
|
+
if (value.sendMessage !== undefined)
|
|
191
|
+
return visitor.sendMessage(value.sendMessage);
|
|
192
|
+
if (value.addMembers !== undefined)
|
|
193
|
+
return visitor.addMembers(value.addMembers);
|
|
194
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
195
|
+
};
|
|
196
|
+
})(RouteActionTask || (exports.RouteActionTask = RouteActionTask = {}));
|
|
197
|
+
exports.RouteTimeFrameDay = {
|
|
127
198
|
EVERY_DAY: "EVERY_DAY",
|
|
128
199
|
FRIDAY: "FRIDAY",
|
|
129
200
|
MONDAY: "MONDAY",
|
|
@@ -142,7 +213,7 @@ var WidgetRouteRule;
|
|
|
142
213
|
return visitor.timeFrame(value.timeFrame);
|
|
143
214
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
144
215
|
};
|
|
145
|
-
})(WidgetRouteRule
|
|
216
|
+
})(WidgetRouteRule || (exports.WidgetRouteRule = WidgetRouteRule = {}));
|
|
146
217
|
var WidgetTarget;
|
|
147
218
|
(function (WidgetTarget) {
|
|
148
219
|
WidgetTarget.visit = (value, visitor) => {
|
|
@@ -154,16 +225,16 @@ var WidgetTarget;
|
|
|
154
225
|
return visitor.bot(value.bot);
|
|
155
226
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
156
227
|
};
|
|
157
|
-
})(WidgetTarget
|
|
228
|
+
})(WidgetTarget || (exports.WidgetTarget = WidgetTarget = {}));
|
|
158
229
|
class EventNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
230
|
+
name = "EventNotFoundException";
|
|
231
|
+
$fault = "client";
|
|
159
232
|
constructor(opts) {
|
|
160
233
|
super({
|
|
161
234
|
name: "EventNotFoundException",
|
|
162
235
|
$fault: "client",
|
|
163
236
|
...opts
|
|
164
237
|
});
|
|
165
|
-
this.name = "EventNotFoundException";
|
|
166
|
-
this.$fault = "client";
|
|
167
238
|
Object.setPrototypeOf(this, EventNotFoundException.prototype);
|
|
168
239
|
}
|
|
169
240
|
}
|
|
@@ -175,15 +246,35 @@ exports.KiteVariant = {
|
|
|
175
246
|
DIRECT: "direct",
|
|
176
247
|
GROUP: "group",
|
|
177
248
|
};
|
|
249
|
+
var RouteRule;
|
|
250
|
+
(function (RouteRule) {
|
|
251
|
+
RouteRule.visit = (value, visitor) => {
|
|
252
|
+
if (value.timeFrame !== undefined)
|
|
253
|
+
return visitor.timeFrame(value.timeFrame);
|
|
254
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
255
|
+
};
|
|
256
|
+
})(RouteRule || (exports.RouteRule = RouteRule = {}));
|
|
257
|
+
var RouteTarget;
|
|
258
|
+
(function (RouteTarget) {
|
|
259
|
+
RouteTarget.visit = (value, visitor) => {
|
|
260
|
+
if (value.service !== undefined)
|
|
261
|
+
return visitor.service(value.service);
|
|
262
|
+
if (value.agent !== undefined)
|
|
263
|
+
return visitor.agent(value.agent);
|
|
264
|
+
if (value.bot !== undefined)
|
|
265
|
+
return visitor.bot(value.bot);
|
|
266
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
267
|
+
};
|
|
268
|
+
})(RouteTarget || (exports.RouteTarget = RouteTarget = {}));
|
|
178
269
|
class WidgetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
270
|
+
name = "WidgetNotFoundException";
|
|
271
|
+
$fault = "client";
|
|
179
272
|
constructor(opts) {
|
|
180
273
|
super({
|
|
181
274
|
name: "WidgetNotFoundException",
|
|
182
275
|
$fault: "client",
|
|
183
276
|
...opts
|
|
184
277
|
});
|
|
185
|
-
this.name = "WidgetNotFoundException";
|
|
186
|
-
this.$fault = "client";
|
|
187
278
|
Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
|
|
188
279
|
}
|
|
189
280
|
}
|
|
@@ -199,4 +290,4 @@ var ListAgentsFilter;
|
|
|
199
290
|
return visitor.emails(value.emails);
|
|
200
291
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
201
292
|
};
|
|
202
|
-
})(ListAgentsFilter
|
|
293
|
+
})(ListAgentsFilter || (exports.ListAgentsFilter = ListAgentsFilter = {}));
|