@wildix/xbees-kite-client 1.5.0 → 3.1.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 +3 -3
- package/dist-cjs/KiteClient.js +34 -28
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-cjs/commands/CancelCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/CreateOrUpdateWidgetPreviewCommand.js +10 -11
- package/dist-cjs/commands/CreateWidgetCommand.js +10 -11
- package/dist-cjs/commands/DeleteWidgetCommand.js +10 -11
- package/dist-cjs/commands/GetCalendarSlotsCommand.js +10 -11
- package/dist-cjs/commands/GetConfigCommand.js +10 -11
- package/dist-cjs/commands/GetSmsNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/GetWhatsAppNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/GetWidgetCommand.js +10 -11
- package/dist-cjs/commands/ListAgentsCommand.js +10 -11
- package/dist-cjs/commands/ListServicesCommand.js +10 -11
- package/dist-cjs/commands/ListSmsConfigurationsCommand.js +10 -11
- package/dist-cjs/commands/ListSmsNumbersCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppConfigurationsCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppNumbersCommand.js +10 -11
- package/dist-cjs/commands/ListWhatsAppTemplatesCommand.js +10 -11
- package/dist-cjs/commands/ListWidgetsCommand.js +10 -11
- package/dist-cjs/commands/PutSmsNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/PutWhatsAppNumberConfigurationCommand.js +10 -11
- package/dist-cjs/commands/RescheduleCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/ScheduleCalendarEventCommand.js +10 -11
- package/dist-cjs/commands/UpdateWidgetCommand.js +10 -11
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +7 -4
- package/dist-cjs/models/KiteSyntheticServiceException.js +12 -0
- package/dist-cjs/models/enums.js +80 -0
- package/dist-cjs/models/errors.js +116 -0
- package/dist-cjs/models/models_0.js +0 -303
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +1160 -0
- package/dist-es/Kite.js +4 -4
- package/dist-es/KiteClient.js +30 -24
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +34 -0
- package/dist-es/commands/CancelCalendarEventCommand.js +9 -10
- package/dist-es/commands/CreateOrUpdateWidgetPreviewCommand.js +9 -10
- package/dist-es/commands/CreateWidgetCommand.js +9 -10
- package/dist-es/commands/DeleteWidgetCommand.js +9 -10
- package/dist-es/commands/GetCalendarSlotsCommand.js +9 -10
- package/dist-es/commands/GetConfigCommand.js +9 -10
- package/dist-es/commands/GetSmsNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/GetWhatsAppNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/GetWidgetCommand.js +9 -10
- package/dist-es/commands/ListAgentsCommand.js +9 -10
- package/dist-es/commands/ListServicesCommand.js +9 -10
- package/dist-es/commands/ListSmsConfigurationsCommand.js +9 -10
- package/dist-es/commands/ListSmsNumbersCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppConfigurationsCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppNumbersCommand.js +9 -10
- package/dist-es/commands/ListWhatsAppTemplatesCommand.js +9 -10
- package/dist-es/commands/ListWidgetsCommand.js +9 -10
- package/dist-es/commands/PutSmsNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/PutWhatsAppNumberConfigurationCommand.js +9 -10
- package/dist-es/commands/RescheduleCalendarEventCommand.js +9 -10
- package/dist-es/commands/ScheduleCalendarEventCommand.js +9 -10
- package/dist-es/commands/UpdateWidgetCommand.js +9 -10
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +5 -2
- package/dist-es/models/KiteSyntheticServiceException.js +8 -0
- package/dist-es/models/enums.js +77 -0
- package/dist-es/models/errors.js +105 -0
- package/dist-es/models/models_0.js +1 -294
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +1155 -0
- package/dist-types/Kite.d.ts +23 -23
- package/dist-types/KiteClient.d.ts +52 -34
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +12 -8
- package/dist-types/commands/CreateWidgetCommand.d.ts +12 -8
- package/dist-types/commands/DeleteWidgetCommand.d.ts +12 -8
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +12 -8
- package/dist-types/commands/GetConfigCommand.d.ts +12 -8
- package/dist-types/commands/GetSmsNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/GetWhatsAppNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/GetWidgetCommand.d.ts +12 -8
- package/dist-types/commands/ListAgentsCommand.d.ts +12 -8
- package/dist-types/commands/ListServicesCommand.d.ts +12 -8
- package/dist-types/commands/ListSmsConfigurationsCommand.d.ts +12 -8
- package/dist-types/commands/ListSmsNumbersCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppConfigurationsCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppNumbersCommand.d.ts +12 -8
- package/dist-types/commands/ListWhatsAppTemplatesCommand.d.ts +12 -8
- package/dist-types/commands/ListWidgetsCommand.d.ts +12 -8
- package/dist-types/commands/PutSmsNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/PutWhatsAppNumberConfigurationCommand.d.ts +12 -8
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +12 -8
- package/dist-types/commands/UpdateWidgetCommand.d.ts +12 -8
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +6 -2
- package/dist-types/models/{KiteServiceException.d.ts → KiteSyntheticServiceException.d.ts} +2 -2
- package/dist-types/models/enums.d.ts +197 -0
- package/dist-types/models/errors.d.ts +110 -0
- package/dist-types/models/models_0.d.ts +105 -381
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +153 -0
- package/package.json +14 -40
- package/dist-cjs/models/KiteServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -963
- package/dist-es/models/KiteServiceException.js +0 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -916
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -200
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListWidgets$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class ListWidgetsCommand extends $Command
|
|
6
|
+
export class ListWidgetsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "ListWidgets", {})
|
|
12
13
|
.n("KiteClient", "ListWidgetsCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_ListWidgetsCommand)
|
|
15
|
-
.de(de_ListWidgetsCommand)
|
|
14
|
+
.sc(ListWidgets$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { PutSmsNumberConfiguration$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class PutSmsNumberConfigurationCommand extends $Command
|
|
6
|
+
export class PutSmsNumberConfigurationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "PutSmsNumberConfiguration", {})
|
|
12
13
|
.n("KiteClient", "PutSmsNumberConfigurationCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_PutSmsNumberConfigurationCommand)
|
|
15
|
-
.de(de_PutSmsNumberConfigurationCommand)
|
|
14
|
+
.sc(PutSmsNumberConfiguration$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { PutWhatsAppNumberConfiguration$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class PutWhatsAppNumberConfigurationCommand extends $Command
|
|
6
|
+
export class PutWhatsAppNumberConfigurationCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "PutWhatsAppNumberConfiguration", {})
|
|
12
13
|
.n("KiteClient", "PutWhatsAppNumberConfigurationCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_PutWhatsAppNumberConfigurationCommand)
|
|
15
|
-
.de(de_PutWhatsAppNumberConfigurationCommand)
|
|
14
|
+
.sc(PutWhatsAppNumberConfiguration$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { RescheduleCalendarEvent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class RescheduleCalendarEventCommand extends $Command
|
|
6
|
+
export class RescheduleCalendarEventCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "RescheduleCalendarEvent", {})
|
|
12
13
|
.n("KiteClient", "RescheduleCalendarEventCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_RescheduleCalendarEventCommand)
|
|
15
|
-
.de(de_RescheduleCalendarEventCommand)
|
|
14
|
+
.sc(RescheduleCalendarEvent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ScheduleCalendarEvent$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class ScheduleCalendarEventCommand extends $Command
|
|
6
|
+
export class ScheduleCalendarEventCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "ScheduleCalendarEvent", {})
|
|
12
13
|
.n("KiteClient", "ScheduleCalendarEventCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_ScheduleCalendarEventCommand)
|
|
15
|
-
.de(de_ScheduleCalendarEventCommand)
|
|
14
|
+
.sc(ScheduleCalendarEvent$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateWidget$ } from "../schemas/schemas_0";
|
|
4
5
|
export { $Command };
|
|
5
|
-
export class UpdateWidgetCommand extends $Command
|
|
6
|
+
export class UpdateWidgetCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
6
9
|
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
10
11
|
})
|
|
11
12
|
.s("Kite", "UpdateWidget", {})
|
|
12
13
|
.n("KiteClient", "UpdateWidgetCommand")
|
|
13
|
-
.
|
|
14
|
-
.ser(se_UpdateWidgetCommand)
|
|
15
|
-
.de(de_UpdateWidgetCommand)
|
|
14
|
+
.sc(UpdateWidget$)
|
|
16
15
|
.build() {
|
|
17
16
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const clientContextParamDefaults = {};
|
|
2
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
3
|
+
return Object.assign(options, {
|
|
4
|
+
env: options.env ?? "prod",
|
|
5
|
+
defaultSigningName: "",
|
|
6
|
+
clientContextParams: Object.assign(clientContextParamDefaults, options.clientContextParams),
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
env: { type: "clientContextParams", name: "env" },
|
|
11
|
+
endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
+
const a = "stringEquals", b = { "ref": "endpoint" }, c = { "ref": "env" };
|
|
3
|
+
const _data = {
|
|
4
|
+
conditions: [
|
|
5
|
+
["isSet", [b]],
|
|
6
|
+
[a, [c, "stable"]],
|
|
7
|
+
[a, [c, "stage"]]
|
|
8
|
+
],
|
|
9
|
+
results: [
|
|
10
|
+
[-1],
|
|
11
|
+
[b, {}],
|
|
12
|
+
["https://api-stable.x-bees.com", {}],
|
|
13
|
+
["https://api-stage.x-bees.com", {}],
|
|
14
|
+
["https://api.x-bees.com", {}]
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
const root = 2;
|
|
18
|
+
const r = 100_000_000;
|
|
19
|
+
const nodes = new Int32Array([
|
|
20
|
+
-1, 1, -1,
|
|
21
|
+
0, r + 1, 3,
|
|
22
|
+
1, r + 2, 4,
|
|
23
|
+
2, r + 3, r + 4,
|
|
24
|
+
]);
|
|
25
|
+
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
|
|
2
|
+
import { bdd } from "./bdd";
|
|
3
|
+
const cache = new EndpointCache({
|
|
4
|
+
size: 50,
|
|
5
|
+
params: ["endpoint", "env"],
|
|
6
|
+
});
|
|
7
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
9
|
+
endpointParams: endpointParams,
|
|
10
|
+
logger: context.logger,
|
|
11
|
+
}));
|
|
12
|
+
};
|
package/dist-es/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./KiteClient";
|
|
2
2
|
export * from "./Kite";
|
|
3
3
|
export * from "./commands";
|
|
4
|
-
export * from "./
|
|
5
|
-
export
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
7
|
+
export * from "./models/models_0";
|
|
8
|
+
export { KiteSyntheticServiceException } from "./models/KiteSyntheticServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/core/client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class KiteSyntheticServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, KiteSyntheticServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export const ButtonType = {
|
|
2
|
+
APP: "APP",
|
|
3
|
+
CATALOG: "CATALOG",
|
|
4
|
+
FLOW: "FLOW",
|
|
5
|
+
MPM: "MPM",
|
|
6
|
+
OTP: "OTP",
|
|
7
|
+
PHONE_NUMBER: "PHONE_NUMBER",
|
|
8
|
+
QUICK_REPLY: "QUICK_REPLY",
|
|
9
|
+
URL: "URL",
|
|
10
|
+
VOICE_CALL: "VOICE_CALL",
|
|
11
|
+
};
|
|
12
|
+
export const TemplateCategory = {
|
|
13
|
+
AUTHENTICATION: "AUTHENTICATION",
|
|
14
|
+
MARKETING: "MARKETING",
|
|
15
|
+
UTILITY: "UTILITY",
|
|
16
|
+
};
|
|
17
|
+
export const ComponentFormat = {
|
|
18
|
+
IMAGE: "IMAGE",
|
|
19
|
+
TEXT: "TEXT",
|
|
20
|
+
};
|
|
21
|
+
export const ComponentType = {
|
|
22
|
+
BODY: "BODY",
|
|
23
|
+
BUTTONS: "BUTTONS",
|
|
24
|
+
FOOTER: "FOOTER",
|
|
25
|
+
HEADER: "HEADER",
|
|
26
|
+
};
|
|
27
|
+
export const ParameterFormat = {
|
|
28
|
+
NAMED: "NAMED",
|
|
29
|
+
};
|
|
30
|
+
export const TemplateStatus = {
|
|
31
|
+
APPROVED: "APPROVED",
|
|
32
|
+
PAUSED: "PAUSED",
|
|
33
|
+
REJECTED: "REJECTED",
|
|
34
|
+
};
|
|
35
|
+
export const ChannelAccess = {
|
|
36
|
+
PRIVATE: "private",
|
|
37
|
+
PUBLIC: "public",
|
|
38
|
+
};
|
|
39
|
+
export const ChannelType = {
|
|
40
|
+
DIRECT: "direct",
|
|
41
|
+
GROUP: "group",
|
|
42
|
+
};
|
|
43
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
44
|
+
ACCEPTED: "accepted",
|
|
45
|
+
DECLINED: "declined",
|
|
46
|
+
NONE: "none",
|
|
47
|
+
TENTATIVE: "tentative",
|
|
48
|
+
};
|
|
49
|
+
export const ChannelContextSource = {
|
|
50
|
+
KITE: "kite",
|
|
51
|
+
};
|
|
52
|
+
export const ChannelWhatsAppStatus = {
|
|
53
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
54
|
+
};
|
|
55
|
+
export const ButtonVariant = {
|
|
56
|
+
CONTAINED: "contained",
|
|
57
|
+
OUTLINED: "outlined",
|
|
58
|
+
};
|
|
59
|
+
export const RouteTimeFrameDay = {
|
|
60
|
+
EVERY_DAY: "EVERY_DAY",
|
|
61
|
+
FRIDAY: "FRIDAY",
|
|
62
|
+
MONDAY: "MONDAY",
|
|
63
|
+
SATURDAY: "SATURDAY",
|
|
64
|
+
SUNDAY: "SUNDAY",
|
|
65
|
+
THURSDAY: "THURSDAY",
|
|
66
|
+
TUESDAY: "TUESDAY",
|
|
67
|
+
WEDNESDAY: "WEDNESDAY",
|
|
68
|
+
WEEKDAYS: "WEEKDAYS",
|
|
69
|
+
WEEKENDS: "WEEKENDS",
|
|
70
|
+
};
|
|
71
|
+
export const KiteFeatures = {
|
|
72
|
+
SCHEDULING: "scheduling",
|
|
73
|
+
};
|
|
74
|
+
export const KiteVariant = {
|
|
75
|
+
DIRECT: "direct",
|
|
76
|
+
GROUP: "group",
|
|
77
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { KiteSyntheticServiceException as __BaseException } from "./KiteSyntheticServiceException";
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
name = "ForbiddenException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "ForbiddenException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class NotFoundException extends __BaseException {
|
|
15
|
+
name = "NotFoundException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "NotFoundException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class RateLimitExceededException extends __BaseException {
|
|
27
|
+
name = "RateLimitExceededException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
rateLimit;
|
|
30
|
+
rateLimitRemaining;
|
|
31
|
+
rateLimitReset;
|
|
32
|
+
retryAfter;
|
|
33
|
+
constructor(opts) {
|
|
34
|
+
super({
|
|
35
|
+
name: "RateLimitExceededException",
|
|
36
|
+
$fault: "client",
|
|
37
|
+
...opts,
|
|
38
|
+
});
|
|
39
|
+
Object.setPrototypeOf(this, RateLimitExceededException.prototype);
|
|
40
|
+
this.rateLimit = opts.rateLimit;
|
|
41
|
+
this.rateLimitRemaining = opts.rateLimitRemaining;
|
|
42
|
+
this.rateLimitReset = opts.rateLimitReset;
|
|
43
|
+
this.retryAfter = opts.retryAfter;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class ValidationException extends __BaseException {
|
|
47
|
+
name = "ValidationException";
|
|
48
|
+
$fault = "client";
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "ValidationException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class TargetNotFoundException extends __BaseException {
|
|
59
|
+
name = "TargetNotFoundException";
|
|
60
|
+
$fault = "client";
|
|
61
|
+
constructor(opts) {
|
|
62
|
+
super({
|
|
63
|
+
name: "TargetNotFoundException",
|
|
64
|
+
$fault: "client",
|
|
65
|
+
...opts,
|
|
66
|
+
});
|
|
67
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export class ChannelNotFoundException extends __BaseException {
|
|
71
|
+
name = "ChannelNotFoundException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "ChannelNotFoundException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export class EventNotFoundException extends __BaseException {
|
|
83
|
+
name = "EventNotFoundException";
|
|
84
|
+
$fault = "client";
|
|
85
|
+
constructor(opts) {
|
|
86
|
+
super({
|
|
87
|
+
name: "EventNotFoundException",
|
|
88
|
+
$fault: "client",
|
|
89
|
+
...opts,
|
|
90
|
+
});
|
|
91
|
+
Object.setPrototypeOf(this, EventNotFoundException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export class WidgetNotFoundException extends __BaseException {
|
|
95
|
+
name = "WidgetNotFoundException";
|
|
96
|
+
$fault = "client";
|
|
97
|
+
constructor(opts) {
|
|
98
|
+
super({
|
|
99
|
+
name: "WidgetNotFoundException",
|
|
100
|
+
$fault: "client",
|
|
101
|
+
...opts,
|
|
102
|
+
});
|
|
103
|
+
Object.setPrototypeOf(this, WidgetNotFoundException.prototype);
|
|
104
|
+
}
|
|
105
|
+
}
|