@wildix/xbees-kite-client 1.0.5 → 1.0.8
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 +2 -0
- package/dist-cjs/KiteClient.js +1 -3
- package/dist-cjs/commands/ListCalendarSlotsCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +33 -1
- package/dist-cjs/protocols/Aws_restJson1.js +31 -2
- package/dist-es/Kite.js +2 -0
- package/dist-es/KiteClient.js +1 -3
- package/dist-es/commands/ListCalendarSlotsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -1
- package/dist-types/Kite.d.ts +7 -0
- package/dist-types/KiteClient.d.ts +4 -3
- package/dist-types/commands/CreateWidgetCommand.d.ts +48 -12
- package/dist-types/commands/GetConfigCommand.d.ts +102 -5
- package/dist-types/commands/GetWidgetCommand.d.ts +24 -6
- package/dist-types/commands/ListCalendarSlotsCommand.d.ts +64 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +24 -6
- package/dist-types/commands/UpdateWidgetCommand.d.ts +48 -12
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +219 -17
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -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 +3 -2
package/dist-cjs/Kite.js
CHANGED
|
@@ -7,6 +7,7 @@ const DeleteWidgetCommand_1 = require("./commands/DeleteWidgetCommand");
|
|
|
7
7
|
const GetConfigCommand_1 = require("./commands/GetConfigCommand");
|
|
8
8
|
const GetWidgetCommand_1 = require("./commands/GetWidgetCommand");
|
|
9
9
|
const ListAgentsCommand_1 = require("./commands/ListAgentsCommand");
|
|
10
|
+
const ListCalendarSlotsCommand_1 = require("./commands/ListCalendarSlotsCommand");
|
|
10
11
|
const ListServicesCommand_1 = require("./commands/ListServicesCommand");
|
|
11
12
|
const ListWidgetsCommand_1 = require("./commands/ListWidgetsCommand");
|
|
12
13
|
const UpdateWidgetCommand_1 = require("./commands/UpdateWidgetCommand");
|
|
@@ -17,6 +18,7 @@ const commands = {
|
|
|
17
18
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
18
19
|
GetWidgetCommand: GetWidgetCommand_1.GetWidgetCommand,
|
|
19
20
|
ListAgentsCommand: ListAgentsCommand_1.ListAgentsCommand,
|
|
21
|
+
ListCalendarSlotsCommand: ListCalendarSlotsCommand_1.ListCalendarSlotsCommand,
|
|
20
22
|
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
21
23
|
ListWidgetsCommand: ListWidgetsCommand_1.ListWidgetsCommand,
|
|
22
24
|
UpdateWidgetCommand: UpdateWidgetCommand_1.UpdateWidgetCommand,
|
package/dist-cjs/KiteClient.js
CHANGED
|
@@ -30,9 +30,7 @@ class KiteClient extends smithy_client_1.Client {
|
|
|
30
30
|
};
|
|
31
31
|
super(config);
|
|
32
32
|
this.config = config;
|
|
33
|
-
|
|
34
|
-
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
35
|
-
}
|
|
33
|
+
this.middlewareStack.add(smithy_utils_1.authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
36
34
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
37
35
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
38
36
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCalendarSlotsCommand = 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 ListCalendarSlotsCommand 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", "ListCalendarSlots", {})
|
|
15
|
+
.n("KiteClient", "ListCalendarSlotsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListCalendarSlotsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListCalendarSlotsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListCalendarSlotsCommand = ListCalendarSlotsCommand;
|
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./DeleteWidgetCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./GetConfigCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./GetWidgetCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./ListAgentsCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListCalendarSlotsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListServicesCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListWidgetsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./UpdateWidgetCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.TargetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.TargetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("./KiteServiceException");
|
|
5
5
|
class ValidationException extends KiteServiceException_1.KiteServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -45,6 +45,38 @@ class RateLimitExceededException extends KiteServiceException_1.KiteServiceExcep
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.RateLimitExceededException = RateLimitExceededException;
|
|
48
|
+
var ButtonHandler;
|
|
49
|
+
(function (ButtonHandler) {
|
|
50
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
51
|
+
if (value.link !== undefined)
|
|
52
|
+
return visitor.link(value.link);
|
|
53
|
+
if (value.reply !== undefined)
|
|
54
|
+
return visitor.reply(value.reply);
|
|
55
|
+
if (value.action !== undefined)
|
|
56
|
+
return visitor.action(value.action);
|
|
57
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
58
|
+
};
|
|
59
|
+
})(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
|
|
60
|
+
exports.ButtonVariant = {
|
|
61
|
+
CONTAINED: "contained",
|
|
62
|
+
OUTLINED: "outlined",
|
|
63
|
+
};
|
|
64
|
+
var ActionElement;
|
|
65
|
+
(function (ActionElement) {
|
|
66
|
+
ActionElement.visit = (value, visitor) => {
|
|
67
|
+
if (value.button !== undefined)
|
|
68
|
+
return visitor.button(value.button);
|
|
69
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
70
|
+
};
|
|
71
|
+
})(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
|
|
72
|
+
var Element;
|
|
73
|
+
(function (Element) {
|
|
74
|
+
Element.visit = (value, visitor) => {
|
|
75
|
+
if (value.actions !== undefined)
|
|
76
|
+
return visitor.actions(value.actions);
|
|
77
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
+
};
|
|
79
|
+
})(Element = exports.Element || (exports.Element = {}));
|
|
48
80
|
exports.WidgetRouteTimeFrameDay = {
|
|
49
81
|
EVERY_DAY: "EVERY_DAY",
|
|
50
82
|
FRIDAY: "FRIDAY",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateWidgetCommand = exports.de_ListWidgetsCommand = exports.de_ListServicesCommand = exports.de_ListAgentsCommand = exports.de_GetWidgetCommand = exports.de_GetConfigCommand = exports.de_DeleteWidgetCommand = exports.de_CreateWidgetCommand = exports.se_UpdateWidgetCommand = exports.se_ListWidgetsCommand = exports.se_ListServicesCommand = exports.se_ListAgentsCommand = exports.se_GetWidgetCommand = exports.se_GetConfigCommand = exports.se_DeleteWidgetCommand = exports.se_CreateWidgetCommand = void 0;
|
|
3
|
+
exports.de_UpdateWidgetCommand = exports.de_ListWidgetsCommand = exports.de_ListServicesCommand = exports.de_ListCalendarSlotsCommand = exports.de_ListAgentsCommand = exports.de_GetWidgetCommand = exports.de_GetConfigCommand = exports.de_DeleteWidgetCommand = exports.de_CreateWidgetCommand = exports.se_UpdateWidgetCommand = exports.se_ListWidgetsCommand = exports.se_ListServicesCommand = exports.se_ListCalendarSlotsCommand = exports.se_ListAgentsCommand = exports.se_GetWidgetCommand = exports.se_GetConfigCommand = exports.se_DeleteWidgetCommand = exports.se_CreateWidgetCommand = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("../models/KiteServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@smithy/core");
|
|
@@ -89,6 +89,18 @@ const se_ListAgentsCommand = async (input, context) => {
|
|
|
89
89
|
return b.build();
|
|
90
90
|
};
|
|
91
91
|
exports.se_ListAgentsCommand = se_ListAgentsCommand;
|
|
92
|
+
const se_ListCalendarSlotsCommand = async (input, context) => {
|
|
93
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
|
+
const headers = {};
|
|
95
|
+
b.bp("/v2/kite/calendar/slots/{targetId}");
|
|
96
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
97
|
+
let body;
|
|
98
|
+
b.m("POST")
|
|
99
|
+
.h(headers)
|
|
100
|
+
.b(body);
|
|
101
|
+
return b.build();
|
|
102
|
+
};
|
|
103
|
+
exports.se_ListCalendarSlotsCommand = se_ListCalendarSlotsCommand;
|
|
92
104
|
const se_ListServicesCommand = async (input, context) => {
|
|
93
105
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
94
106
|
const headers = {};
|
|
@@ -215,6 +227,17 @@ const de_ListAgentsCommand = async (output, context) => {
|
|
|
215
227
|
return contents;
|
|
216
228
|
};
|
|
217
229
|
exports.de_ListAgentsCommand = de_ListAgentsCommand;
|
|
230
|
+
const de_ListCalendarSlotsCommand = async (output, context) => {
|
|
231
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
232
|
+
return de_CommandError(output, context);
|
|
233
|
+
}
|
|
234
|
+
const contents = (0, smithy_client_1.map)({
|
|
235
|
+
$metadata: deserializeMetadata(output),
|
|
236
|
+
});
|
|
237
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
238
|
+
return contents;
|
|
239
|
+
};
|
|
240
|
+
exports.de_ListCalendarSlotsCommand = de_ListCalendarSlotsCommand;
|
|
218
241
|
const de_ListServicesCommand = async (output, context) => {
|
|
219
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
220
243
|
return de_CommandError(output, context);
|
|
@@ -239,7 +262,7 @@ const de_ListWidgetsCommand = async (output, context) => {
|
|
|
239
262
|
});
|
|
240
263
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
241
264
|
const doc = (0, smithy_client_1.take)(data, {
|
|
242
|
-
'widgets':
|
|
265
|
+
'widgets': _ => de_WidgetsList(_, context),
|
|
243
266
|
});
|
|
244
267
|
Object.assign(contents, doc);
|
|
245
268
|
return contents;
|
|
@@ -362,6 +385,12 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
362
385
|
});
|
|
363
386
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
364
387
|
};
|
|
388
|
+
const de_WidgetsList = (output, context) => {
|
|
389
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
390
|
+
return (0, smithy_client_1._json)(entry);
|
|
391
|
+
});
|
|
392
|
+
return retVal;
|
|
393
|
+
};
|
|
365
394
|
const deserializeMetadata = (output) => ({
|
|
366
395
|
httpStatusCode: output.statusCode,
|
|
367
396
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Kite.js
CHANGED
|
@@ -4,6 +4,7 @@ import { DeleteWidgetCommand, } from "./commands/DeleteWidgetCommand";
|
|
|
4
4
|
import { GetConfigCommand, } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommand, } from "./commands/GetWidgetCommand";
|
|
6
6
|
import { ListAgentsCommand, } from "./commands/ListAgentsCommand";
|
|
7
|
+
import { ListCalendarSlotsCommand, } from "./commands/ListCalendarSlotsCommand";
|
|
7
8
|
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
8
9
|
import { ListWidgetsCommand, } from "./commands/ListWidgetsCommand";
|
|
9
10
|
import { UpdateWidgetCommand, } from "./commands/UpdateWidgetCommand";
|
|
@@ -14,6 +15,7 @@ const commands = {
|
|
|
14
15
|
GetConfigCommand,
|
|
15
16
|
GetWidgetCommand,
|
|
16
17
|
ListAgentsCommand,
|
|
18
|
+
ListCalendarSlotsCommand,
|
|
17
19
|
ListServicesCommand,
|
|
18
20
|
ListWidgetsCommand,
|
|
19
21
|
UpdateWidgetCommand,
|
package/dist-es/KiteClient.js
CHANGED
|
@@ -27,9 +27,7 @@ export class KiteClient extends __Client {
|
|
|
27
27
|
};
|
|
28
28
|
super(config);
|
|
29
29
|
this.config = config;
|
|
30
|
-
|
|
31
|
-
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
32
|
-
}
|
|
30
|
+
this.middlewareStack.add(authorizationMiddleware.bind(this, configuration.token), { step: "build" });
|
|
33
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
35
33
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListCalendarSlotsCommand, se_ListCalendarSlotsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListCalendarSlotsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Kite", "ListCalendarSlots", {})
|
|
12
|
+
.n("KiteClient", "ListCalendarSlotsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListCalendarSlotsCommand)
|
|
15
|
+
.de(de_ListCalendarSlotsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./DeleteWidgetCommand";
|
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
5
|
export * from "./ListAgentsCommand";
|
|
6
|
+
export * from "./ListCalendarSlotsCommand";
|
|
6
7
|
export * from "./ListServicesCommand";
|
|
7
8
|
export * from "./ListWidgetsCommand";
|
|
8
9
|
export * from "./UpdateWidgetCommand";
|
|
@@ -39,6 +39,38 @@ export class RateLimitExceededException extends __BaseException {
|
|
|
39
39
|
this.retryAfter = opts.retryAfter;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
export var ButtonHandler;
|
|
43
|
+
(function (ButtonHandler) {
|
|
44
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
45
|
+
if (value.link !== undefined)
|
|
46
|
+
return visitor.link(value.link);
|
|
47
|
+
if (value.reply !== undefined)
|
|
48
|
+
return visitor.reply(value.reply);
|
|
49
|
+
if (value.action !== undefined)
|
|
50
|
+
return visitor.action(value.action);
|
|
51
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
52
|
+
};
|
|
53
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
54
|
+
export const ButtonVariant = {
|
|
55
|
+
CONTAINED: "contained",
|
|
56
|
+
OUTLINED: "outlined",
|
|
57
|
+
};
|
|
58
|
+
export var ActionElement;
|
|
59
|
+
(function (ActionElement) {
|
|
60
|
+
ActionElement.visit = (value, visitor) => {
|
|
61
|
+
if (value.button !== undefined)
|
|
62
|
+
return visitor.button(value.button);
|
|
63
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
64
|
+
};
|
|
65
|
+
})(ActionElement || (ActionElement = {}));
|
|
66
|
+
export var Element;
|
|
67
|
+
(function (Element) {
|
|
68
|
+
Element.visit = (value, visitor) => {
|
|
69
|
+
if (value.actions !== undefined)
|
|
70
|
+
return visitor.actions(value.actions);
|
|
71
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
72
|
+
};
|
|
73
|
+
})(Element || (Element = {}));
|
|
42
74
|
export const WidgetRouteTimeFrameDay = {
|
|
43
75
|
EVERY_DAY: "EVERY_DAY",
|
|
44
76
|
FRIDAY: "FRIDAY",
|
|
@@ -81,6 +81,17 @@ export const se_ListAgentsCommand = async (input, context) => {
|
|
|
81
81
|
.b(body);
|
|
82
82
|
return b.build();
|
|
83
83
|
};
|
|
84
|
+
export const se_ListCalendarSlotsCommand = async (input, context) => {
|
|
85
|
+
const b = rb(input, context);
|
|
86
|
+
const headers = {};
|
|
87
|
+
b.bp("/v2/kite/calendar/slots/{targetId}");
|
|
88
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
89
|
+
let body;
|
|
90
|
+
b.m("POST")
|
|
91
|
+
.h(headers)
|
|
92
|
+
.b(body);
|
|
93
|
+
return b.build();
|
|
94
|
+
};
|
|
84
95
|
export const se_ListServicesCommand = async (input, context) => {
|
|
85
96
|
const b = rb(input, context);
|
|
86
97
|
const headers = {};
|
|
@@ -199,6 +210,16 @@ export const de_ListAgentsCommand = async (output, context) => {
|
|
|
199
210
|
Object.assign(contents, doc);
|
|
200
211
|
return contents;
|
|
201
212
|
};
|
|
213
|
+
export const de_ListCalendarSlotsCommand = async (output, context) => {
|
|
214
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
|
+
return de_CommandError(output, context);
|
|
216
|
+
}
|
|
217
|
+
const contents = map({
|
|
218
|
+
$metadata: deserializeMetadata(output),
|
|
219
|
+
});
|
|
220
|
+
await collectBody(output.body, context);
|
|
221
|
+
return contents;
|
|
222
|
+
};
|
|
202
223
|
export const de_ListServicesCommand = async (output, context) => {
|
|
203
224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
225
|
return de_CommandError(output, context);
|
|
@@ -222,7 +243,7 @@ export const de_ListWidgetsCommand = async (output, context) => {
|
|
|
222
243
|
});
|
|
223
244
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
224
245
|
const doc = take(data, {
|
|
225
|
-
'widgets':
|
|
246
|
+
'widgets': _ => de_WidgetsList(_, context),
|
|
226
247
|
});
|
|
227
248
|
Object.assign(contents, doc);
|
|
228
249
|
return contents;
|
|
@@ -343,6 +364,12 @@ const de_WidgetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
343
364
|
});
|
|
344
365
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
345
366
|
};
|
|
367
|
+
const de_WidgetsList = (output, context) => {
|
|
368
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
369
|
+
return _json(entry);
|
|
370
|
+
});
|
|
371
|
+
return retVal;
|
|
372
|
+
};
|
|
346
373
|
const deserializeMetadata = (output) => ({
|
|
347
374
|
httpStatusCode: output.statusCode,
|
|
348
375
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-types/Kite.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/
|
|
|
4
4
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
5
5
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
6
6
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
7
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
7
8
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
8
9
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
9
10
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -39,6 +40,12 @@ export interface Kite {
|
|
|
39
40
|
listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
|
|
40
41
|
listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
41
42
|
listAgents(args: ListAgentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link ListCalendarSlotsCommand}
|
|
45
|
+
*/
|
|
46
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, options?: __HttpHandlerOptions): Promise<ListCalendarSlotsCommandOutput>;
|
|
47
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, cb: (err: any, data?: ListCalendarSlotsCommandOutput) => void): void;
|
|
48
|
+
listCalendarSlots(args: ListCalendarSlotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCalendarSlotsCommandOutput) => void): void;
|
|
42
49
|
/**
|
|
43
50
|
* @see {@link ListServicesCommand}
|
|
44
51
|
*/
|
|
@@ -3,6 +3,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/
|
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
5
5
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
6
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
6
7
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
@@ -17,11 +18,11 @@ export { __Client };
|
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
21
|
+
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListCalendarSlotsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | UpdateWidgetCommandInput;
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
25
|
+
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListCalendarSlotsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | UpdateWidgetCommandOutput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
@@ -120,7 +121,7 @@ export type KiteClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOp
|
|
|
120
121
|
*/
|
|
121
122
|
export interface KiteClientConfig extends KiteClientConfigType {
|
|
122
123
|
env: 'stage' | 'stable' | 'prod';
|
|
123
|
-
token
|
|
124
|
+
token: TokenProvider;
|
|
124
125
|
}
|
|
125
126
|
/**
|
|
126
127
|
* @public
|
|
@@ -74,13 +74,31 @@ declare const CreateWidgetCommand_base: {
|
|
|
74
74
|
* },
|
|
75
75
|
* },
|
|
76
76
|
* ],
|
|
77
|
-
* welcomeMessages: [ //
|
|
78
|
-
* { //
|
|
77
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
78
|
+
* { // WidgetWelcomeMessage
|
|
79
79
|
* text: "STRING_VALUE",
|
|
80
|
-
*
|
|
81
|
-
* { //
|
|
82
|
-
*
|
|
83
|
-
*
|
|
80
|
+
* elements: [ // ElementsList
|
|
81
|
+
* { // Element Union: only one key present
|
|
82
|
+
* actions: [ // ActionsElementsList
|
|
83
|
+
* { // ActionElement Union: only one key present
|
|
84
|
+
* button: { // ButtonElement
|
|
85
|
+
* text: "STRING_VALUE", // required
|
|
86
|
+
* variant: "contained" || "outlined",
|
|
87
|
+
* disabled: true || false,
|
|
88
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
89
|
+
* link: { // ButtonLinkHandler
|
|
90
|
+
* url: "STRING_VALUE", // required
|
|
91
|
+
* },
|
|
92
|
+
* reply: { // ButtonReplyHandler
|
|
93
|
+
* text: "STRING_VALUE",
|
|
94
|
+
* },
|
|
95
|
+
* action: { // ButtonActionHandler
|
|
96
|
+
* id: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
84
102
|
* },
|
|
85
103
|
* ],
|
|
86
104
|
* delay: Number("int"),
|
|
@@ -144,13 +162,31 @@ declare const CreateWidgetCommand_base: {
|
|
|
144
162
|
* // },
|
|
145
163
|
* // },
|
|
146
164
|
* // ],
|
|
147
|
-
* // welcomeMessages: [ //
|
|
148
|
-
* // { //
|
|
165
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
166
|
+
* // { // WidgetWelcomeMessage
|
|
149
167
|
* // text: "STRING_VALUE",
|
|
150
|
-
* //
|
|
151
|
-
* // { //
|
|
152
|
-
* //
|
|
153
|
-
* //
|
|
168
|
+
* // elements: [ // ElementsList
|
|
169
|
+
* // { // Element Union: only one key present
|
|
170
|
+
* // actions: [ // ActionsElementsList
|
|
171
|
+
* // { // ActionElement Union: only one key present
|
|
172
|
+
* // button: { // ButtonElement
|
|
173
|
+
* // text: "STRING_VALUE", // required
|
|
174
|
+
* // variant: "contained" || "outlined",
|
|
175
|
+
* // disabled: true || false,
|
|
176
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
177
|
+
* // link: { // ButtonLinkHandler
|
|
178
|
+
* // url: "STRING_VALUE", // required
|
|
179
|
+
* // },
|
|
180
|
+
* // reply: { // ButtonReplyHandler
|
|
181
|
+
* // text: "STRING_VALUE",
|
|
182
|
+
* // },
|
|
183
|
+
* // action: { // ButtonActionHandler
|
|
184
|
+
* // id: "STRING_VALUE", // required
|
|
185
|
+
* // },
|
|
186
|
+
* // },
|
|
187
|
+
* // },
|
|
188
|
+
* // },
|
|
189
|
+
* // ],
|
|
154
190
|
* // },
|
|
155
191
|
* // ],
|
|
156
192
|
* // delay: Number("int"),
|
|
@@ -85,13 +85,110 @@ declare const GetConfigCommand_base: {
|
|
|
85
85
|
* // welcomeMessages: [ // WelcomeMessagesList
|
|
86
86
|
* // { // WelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
|
-
* //
|
|
89
|
-
* // { //
|
|
90
|
-
* //
|
|
91
|
-
* //
|
|
88
|
+
* // elements: [ // ElementsList
|
|
89
|
+
* // { // Element Union: only one key present
|
|
90
|
+
* // actions: [ // ActionsElementsList
|
|
91
|
+
* // { // ActionElement Union: only one key present
|
|
92
|
+
* // button: { // ButtonElement
|
|
93
|
+
* // text: "STRING_VALUE", // required
|
|
94
|
+
* // variant: "contained" || "outlined",
|
|
95
|
+
* // disabled: true || false,
|
|
96
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
97
|
+
* // link: { // ButtonLinkHandler
|
|
98
|
+
* // url: "STRING_VALUE", // required
|
|
99
|
+
* // },
|
|
100
|
+
* // reply: { // ButtonReplyHandler
|
|
101
|
+
* // text: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // action: { // ButtonActionHandler
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
92
110
|
* // },
|
|
93
111
|
* // ],
|
|
94
|
-
* //
|
|
112
|
+
* // attachments: [ // MessageAttachmentList
|
|
113
|
+
* // { // MessageAttachment
|
|
114
|
+
* // id: "STRING_VALUE", // required
|
|
115
|
+
* // fsId: "STRING_VALUE", // required
|
|
116
|
+
* // mime: "STRING_VALUE",
|
|
117
|
+
* // name: "STRING_VALUE", // required
|
|
118
|
+
* // size: Number("int"), // required
|
|
119
|
+
* // width: Number("int"),
|
|
120
|
+
* // height: Number("int"),
|
|
121
|
+
* // thumbnail: "STRING_VALUE",
|
|
122
|
+
* // },
|
|
123
|
+
* // ],
|
|
124
|
+
* // quote: { // MessageQuote
|
|
125
|
+
* // messageId: "STRING_VALUE", // required
|
|
126
|
+
* // channelId: "STRING_VALUE", // required
|
|
127
|
+
* // user: {
|
|
128
|
+
* // id: "STRING_VALUE", // required
|
|
129
|
+
* // name: "STRING_VALUE",
|
|
130
|
+
* // email: "STRING_VALUE",
|
|
131
|
+
* // phone: "STRING_VALUE",
|
|
132
|
+
* // picture: "STRING_VALUE",
|
|
133
|
+
* // locale: "STRING_VALUE",
|
|
134
|
+
* // timeZone: "STRING_VALUE",
|
|
135
|
+
* // company: "STRING_VALUE",
|
|
136
|
+
* // bot: true || false,
|
|
137
|
+
* // pbxDomain: "STRING_VALUE",
|
|
138
|
+
* // pbxPort: "STRING_VALUE",
|
|
139
|
+
* // pbxExtension: "STRING_VALUE",
|
|
140
|
+
* // pbxSerial: "STRING_VALUE",
|
|
141
|
+
* // pbxUserId: "STRING_VALUE",
|
|
142
|
+
* // createdAt: "STRING_VALUE",
|
|
143
|
+
* // updatedAt: "STRING_VALUE",
|
|
144
|
+
* // },
|
|
145
|
+
* // text: "STRING_VALUE",
|
|
146
|
+
* // attachments: [
|
|
147
|
+
* // {
|
|
148
|
+
* // id: "STRING_VALUE", // required
|
|
149
|
+
* // fsId: "STRING_VALUE", // required
|
|
150
|
+
* // mime: "STRING_VALUE",
|
|
151
|
+
* // name: "STRING_VALUE", // required
|
|
152
|
+
* // size: Number("int"), // required
|
|
153
|
+
* // width: Number("int"),
|
|
154
|
+
* // height: Number("int"),
|
|
155
|
+
* // thumbnail: "STRING_VALUE",
|
|
156
|
+
* // },
|
|
157
|
+
* // ],
|
|
158
|
+
* // forward: { // MessageForward
|
|
159
|
+
* // forwardCompany: "STRING_VALUE",
|
|
160
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
161
|
+
* // forwardEmail: "STRING_VALUE",
|
|
162
|
+
* // forwardName: "STRING_VALUE",
|
|
163
|
+
* // messageId: "STRING_VALUE", // required
|
|
164
|
+
* // channelId: "STRING_VALUE", // required
|
|
165
|
+
* // },
|
|
166
|
+
* // mentions: [
|
|
167
|
+
* // "<User>",
|
|
168
|
+
* // ],
|
|
169
|
+
* // giphy: { // MessageGiphy
|
|
170
|
+
* // id: "STRING_VALUE", // required
|
|
171
|
+
* // size: "STRING_VALUE", // required
|
|
172
|
+
* // url: "STRING_VALUE", // required
|
|
173
|
+
* // height: "STRING_VALUE", // required
|
|
174
|
+
* // width: "STRING_VALUE", // required
|
|
175
|
+
* // },
|
|
176
|
+
* // createdAt: "STRING_VALUE", // required
|
|
177
|
+
* // updatedAt: "STRING_VALUE",
|
|
178
|
+
* // },
|
|
179
|
+
* // forward: {
|
|
180
|
+
* // forwardCompany: "STRING_VALUE",
|
|
181
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
182
|
+
* // forwardEmail: "STRING_VALUE",
|
|
183
|
+
* // forwardName: "STRING_VALUE",
|
|
184
|
+
* // messageId: "STRING_VALUE", // required
|
|
185
|
+
* // channelId: "STRING_VALUE", // required
|
|
186
|
+
* // },
|
|
187
|
+
* // messageId: "STRING_VALUE", // required
|
|
188
|
+
* // mentions: [ // UsersIdList
|
|
189
|
+
* // "STRING_VALUE",
|
|
190
|
+
* // ],
|
|
191
|
+
* // user: "<User>", // required
|
|
95
192
|
* // },
|
|
96
193
|
* // ],
|
|
97
194
|
* // features: [ // KiteFeaturesList
|
|
@@ -80,13 +80,31 @@ declare const GetWidgetCommand_base: {
|
|
|
80
80
|
* // },
|
|
81
81
|
* // },
|
|
82
82
|
* // ],
|
|
83
|
-
* // welcomeMessages: [ //
|
|
84
|
-
* // { //
|
|
83
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
84
|
+
* // { // WidgetWelcomeMessage
|
|
85
85
|
* // text: "STRING_VALUE",
|
|
86
|
-
* //
|
|
87
|
-
* // { //
|
|
88
|
-
* //
|
|
89
|
-
* //
|
|
86
|
+
* // elements: [ // ElementsList
|
|
87
|
+
* // { // Element Union: only one key present
|
|
88
|
+
* // actions: [ // ActionsElementsList
|
|
89
|
+
* // { // ActionElement Union: only one key present
|
|
90
|
+
* // button: { // ButtonElement
|
|
91
|
+
* // text: "STRING_VALUE", // required
|
|
92
|
+
* // variant: "contained" || "outlined",
|
|
93
|
+
* // disabled: true || false,
|
|
94
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
95
|
+
* // link: { // ButtonLinkHandler
|
|
96
|
+
* // url: "STRING_VALUE", // required
|
|
97
|
+
* // },
|
|
98
|
+
* // reply: { // ButtonReplyHandler
|
|
99
|
+
* // text: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // action: { // ButtonActionHandler
|
|
102
|
+
* // id: "STRING_VALUE", // required
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // ],
|
|
90
108
|
* // },
|
|
91
109
|
* // ],
|
|
92
110
|
* // delay: Number("int"),
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { ListCalendarSlotsInput, ListCalendarSlotsOutput } 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 ListCalendarSlotsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListCalendarSlotsCommandInput extends ListCalendarSlotsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListCalendarSlotsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListCalendarSlotsCommandOutput extends ListCalendarSlotsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListCalendarSlotsCommand_base: {
|
|
25
|
+
new (input: ListCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput, 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, ListCalendarSlotsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, ListCalendarSlotsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // ListCalendarSlotsInput
|
|
39
|
+
* targetId: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListCalendarSlotsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param ListCalendarSlotsCommandInput - {@link ListCalendarSlotsCommandInput}
|
|
48
|
+
* @returns {@link ListCalendarSlotsCommandOutput}
|
|
49
|
+
* @see {@link ListCalendarSlotsCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link ListCalendarSlotsCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link KiteServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class ListCalendarSlotsCommand extends ListCalendarSlotsCommand_base {
|
|
64
|
+
}
|
|
@@ -82,13 +82,31 @@ declare const ListWidgetsCommand_base: {
|
|
|
82
82
|
* // },
|
|
83
83
|
* // },
|
|
84
84
|
* // ],
|
|
85
|
-
* // welcomeMessages: [ //
|
|
86
|
-
* // { //
|
|
85
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
86
|
+
* // { // WidgetWelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
|
-
* //
|
|
89
|
-
* // { //
|
|
90
|
-
* //
|
|
91
|
-
* //
|
|
88
|
+
* // elements: [ // ElementsList
|
|
89
|
+
* // { // Element Union: only one key present
|
|
90
|
+
* // actions: [ // ActionsElementsList
|
|
91
|
+
* // { // ActionElement Union: only one key present
|
|
92
|
+
* // button: { // ButtonElement
|
|
93
|
+
* // text: "STRING_VALUE", // required
|
|
94
|
+
* // variant: "contained" || "outlined",
|
|
95
|
+
* // disabled: true || false,
|
|
96
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
97
|
+
* // link: { // ButtonLinkHandler
|
|
98
|
+
* // url: "STRING_VALUE", // required
|
|
99
|
+
* // },
|
|
100
|
+
* // reply: { // ButtonReplyHandler
|
|
101
|
+
* // text: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // action: { // ButtonActionHandler
|
|
104
|
+
* // id: "STRING_VALUE", // required
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
92
110
|
* // },
|
|
93
111
|
* // ],
|
|
94
112
|
* // delay: Number("int"),
|
|
@@ -74,13 +74,31 @@ declare const UpdateWidgetCommand_base: {
|
|
|
74
74
|
* },
|
|
75
75
|
* },
|
|
76
76
|
* ],
|
|
77
|
-
* welcomeMessages: [ //
|
|
78
|
-
* { //
|
|
77
|
+
* welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
78
|
+
* { // WidgetWelcomeMessage
|
|
79
79
|
* text: "STRING_VALUE",
|
|
80
|
-
*
|
|
81
|
-
* { //
|
|
82
|
-
*
|
|
83
|
-
*
|
|
80
|
+
* elements: [ // ElementsList
|
|
81
|
+
* { // Element Union: only one key present
|
|
82
|
+
* actions: [ // ActionsElementsList
|
|
83
|
+
* { // ActionElement Union: only one key present
|
|
84
|
+
* button: { // ButtonElement
|
|
85
|
+
* text: "STRING_VALUE", // required
|
|
86
|
+
* variant: "contained" || "outlined",
|
|
87
|
+
* disabled: true || false,
|
|
88
|
+
* handler: { // ButtonHandler Union: only one key present
|
|
89
|
+
* link: { // ButtonLinkHandler
|
|
90
|
+
* url: "STRING_VALUE", // required
|
|
91
|
+
* },
|
|
92
|
+
* reply: { // ButtonReplyHandler
|
|
93
|
+
* text: "STRING_VALUE",
|
|
94
|
+
* },
|
|
95
|
+
* action: { // ButtonActionHandler
|
|
96
|
+
* id: "STRING_VALUE", // required
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* ],
|
|
84
102
|
* },
|
|
85
103
|
* ],
|
|
86
104
|
* delay: Number("int"),
|
|
@@ -145,13 +163,31 @@ declare const UpdateWidgetCommand_base: {
|
|
|
145
163
|
* // },
|
|
146
164
|
* // },
|
|
147
165
|
* // ],
|
|
148
|
-
* // welcomeMessages: [ //
|
|
149
|
-
* // { //
|
|
166
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
167
|
+
* // { // WidgetWelcomeMessage
|
|
150
168
|
* // text: "STRING_VALUE",
|
|
151
|
-
* //
|
|
152
|
-
* // { //
|
|
153
|
-
* //
|
|
154
|
-
* //
|
|
169
|
+
* // elements: [ // ElementsList
|
|
170
|
+
* // { // Element Union: only one key present
|
|
171
|
+
* // actions: [ // ActionsElementsList
|
|
172
|
+
* // { // ActionElement Union: only one key present
|
|
173
|
+
* // button: { // ButtonElement
|
|
174
|
+
* // text: "STRING_VALUE", // required
|
|
175
|
+
* // variant: "contained" || "outlined",
|
|
176
|
+
* // disabled: true || false,
|
|
177
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
178
|
+
* // link: { // ButtonLinkHandler
|
|
179
|
+
* // url: "STRING_VALUE", // required
|
|
180
|
+
* // },
|
|
181
|
+
* // reply: { // ButtonReplyHandler
|
|
182
|
+
* // text: "STRING_VALUE",
|
|
183
|
+
* // },
|
|
184
|
+
* // action: { // ButtonActionHandler
|
|
185
|
+
* // id: "STRING_VALUE", // required
|
|
186
|
+
* // },
|
|
187
|
+
* // },
|
|
188
|
+
* // },
|
|
189
|
+
* // },
|
|
190
|
+
* // ],
|
|
155
191
|
* // },
|
|
156
192
|
* // ],
|
|
157
193
|
* // delay: Number("int"),
|
|
@@ -3,6 +3,7 @@ export * from "./DeleteWidgetCommand";
|
|
|
3
3
|
export * from "./GetConfigCommand";
|
|
4
4
|
export * from "./GetWidgetCommand";
|
|
5
5
|
export * from "./ListAgentsCommand";
|
|
6
|
+
export * from "./ListCalendarSlotsCommand";
|
|
6
7
|
export * from "./ListServicesCommand";
|
|
7
8
|
export * from "./ListWidgetsCommand";
|
|
8
9
|
export * from "./UpdateWidgetCommand";
|
|
@@ -77,17 +77,212 @@ export interface User {
|
|
|
77
77
|
/**
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
|
-
export interface
|
|
80
|
+
export interface ButtonActionHandler {
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* A unique ID of the action within the message.
|
|
83
83
|
* @public
|
|
84
84
|
*/
|
|
85
|
+
id: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export interface ButtonLinkHandler {
|
|
91
|
+
url: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export interface ButtonReplyHandler {
|
|
97
|
+
text?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type ButtonHandler = ButtonHandler.ActionMember | ButtonHandler.LinkMember | ButtonHandler.ReplyMember | ButtonHandler.$UnknownMember;
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare namespace ButtonHandler {
|
|
107
|
+
interface LinkMember {
|
|
108
|
+
link: ButtonLinkHandler;
|
|
109
|
+
reply?: never;
|
|
110
|
+
action?: never;
|
|
111
|
+
$unknown?: never;
|
|
112
|
+
}
|
|
113
|
+
interface ReplyMember {
|
|
114
|
+
link?: never;
|
|
115
|
+
reply: ButtonReplyHandler;
|
|
116
|
+
action?: never;
|
|
117
|
+
$unknown?: never;
|
|
118
|
+
}
|
|
119
|
+
interface ActionMember {
|
|
120
|
+
link?: never;
|
|
121
|
+
reply?: never;
|
|
122
|
+
action: ButtonActionHandler;
|
|
123
|
+
$unknown?: never;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
interface $UnknownMember {
|
|
129
|
+
link?: never;
|
|
130
|
+
reply?: never;
|
|
131
|
+
action?: never;
|
|
132
|
+
$unknown: [string, any];
|
|
133
|
+
}
|
|
134
|
+
interface Visitor<T> {
|
|
135
|
+
link: (value: ButtonLinkHandler) => T;
|
|
136
|
+
reply: (value: ButtonReplyHandler) => T;
|
|
137
|
+
action: (value: ButtonActionHandler) => T;
|
|
138
|
+
_: (name: string, value: any) => T;
|
|
139
|
+
}
|
|
140
|
+
const visit: <T>(value: ButtonHandler, visitor: Visitor<T>) => T;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
* @enum
|
|
145
|
+
*/
|
|
146
|
+
export declare const ButtonVariant: {
|
|
147
|
+
readonly CONTAINED: "contained";
|
|
148
|
+
readonly OUTLINED: "outlined";
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
export interface ButtonElement {
|
|
85
158
|
text: string;
|
|
159
|
+
variant?: ButtonVariant;
|
|
160
|
+
disabled?: boolean;
|
|
161
|
+
handler?: ButtonHandler;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
export type ActionElement = ActionElement.ButtonMember | ActionElement.$UnknownMember;
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
export declare namespace ActionElement {
|
|
171
|
+
interface ButtonMember {
|
|
172
|
+
button: ButtonElement;
|
|
173
|
+
$unknown?: never;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
interface $UnknownMember {
|
|
179
|
+
button?: never;
|
|
180
|
+
$unknown: [string, any];
|
|
181
|
+
}
|
|
182
|
+
interface Visitor<T> {
|
|
183
|
+
button: (value: ButtonElement) => T;
|
|
184
|
+
_: (name: string, value: any) => T;
|
|
185
|
+
}
|
|
186
|
+
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
*/
|
|
191
|
+
export interface MessageAttachment {
|
|
192
|
+
id: string;
|
|
193
|
+
/**
|
|
194
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
fsId: string;
|
|
198
|
+
mime?: string;
|
|
199
|
+
name: string;
|
|
200
|
+
size: number;
|
|
201
|
+
width?: number;
|
|
202
|
+
height?: number;
|
|
203
|
+
thumbnail?: string;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
export type Element = Element.ActionsMember | Element.$UnknownMember;
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export declare namespace Element {
|
|
213
|
+
interface ActionsMember {
|
|
214
|
+
actions: (ActionElement)[];
|
|
215
|
+
$unknown?: never;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
interface $UnknownMember {
|
|
221
|
+
actions?: never;
|
|
222
|
+
$unknown: [string, any];
|
|
223
|
+
}
|
|
224
|
+
interface Visitor<T> {
|
|
225
|
+
actions: (value: (ActionElement)[]) => T;
|
|
226
|
+
_: (name: string, value: any) => T;
|
|
227
|
+
}
|
|
228
|
+
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface MessageForward {
|
|
234
|
+
forwardCompany?: string;
|
|
235
|
+
forwardDate: string;
|
|
236
|
+
forwardEmail?: string;
|
|
237
|
+
forwardName?: string;
|
|
238
|
+
messageId: string;
|
|
239
|
+
channelId: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
export interface MessageGiphy {
|
|
245
|
+
id: string;
|
|
246
|
+
size: string;
|
|
247
|
+
url: string;
|
|
248
|
+
height: string;
|
|
249
|
+
width: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
export interface MessageQuote {
|
|
255
|
+
messageId: string;
|
|
256
|
+
channelId: string;
|
|
257
|
+
user: User;
|
|
258
|
+
text?: string;
|
|
259
|
+
attachments?: (MessageAttachment)[];
|
|
260
|
+
forward?: MessageForward;
|
|
261
|
+
mentions?: (User)[];
|
|
262
|
+
giphy?: MessageGiphy;
|
|
263
|
+
createdAt: string;
|
|
264
|
+
updatedAt?: string;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
export interface WelcomeMessage {
|
|
270
|
+
text?: string;
|
|
271
|
+
elements?: (Element)[];
|
|
272
|
+
attachments?: (MessageAttachment)[];
|
|
273
|
+
quote?: MessageQuote;
|
|
274
|
+
forward?: MessageForward;
|
|
86
275
|
/**
|
|
87
|
-
*
|
|
276
|
+
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
88
277
|
* @public
|
|
89
278
|
*/
|
|
90
|
-
|
|
279
|
+
messageId: string;
|
|
280
|
+
/**
|
|
281
|
+
* A list of user IDs mentioned in the message.
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
mentions?: (string)[];
|
|
285
|
+
user: User;
|
|
91
286
|
}
|
|
92
287
|
/**
|
|
93
288
|
* @public
|
|
@@ -307,17 +502,9 @@ export interface WidgetRoute {
|
|
|
307
502
|
/**
|
|
308
503
|
* @public
|
|
309
504
|
*/
|
|
310
|
-
export interface
|
|
311
|
-
/**
|
|
312
|
-
* Welcome message text.
|
|
313
|
-
* @public
|
|
314
|
-
*/
|
|
505
|
+
export interface WidgetWelcomeMessage {
|
|
315
506
|
text?: string;
|
|
316
|
-
|
|
317
|
-
* A list of predefined replies will be visible to the user receiving the message. Once the user clicks on a reply, the system will automatically send the specified message to the conversation. You can specify up to 10 replies, which will only be visible if the message is the last one in the conversation.
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
predefinedReplies?: (MessagePredefinedReply)[];
|
|
507
|
+
elements?: (Element)[];
|
|
321
508
|
/**
|
|
322
509
|
* The time in milliseconds until the message will be visible to the end user.
|
|
323
510
|
* @public
|
|
@@ -342,7 +529,7 @@ export interface CreateWidgetInput {
|
|
|
342
529
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
343
530
|
* @public
|
|
344
531
|
*/
|
|
345
|
-
welcomeMessages?: (
|
|
532
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
346
533
|
name: string;
|
|
347
534
|
/**
|
|
348
535
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -373,7 +560,7 @@ export interface Widget {
|
|
|
373
560
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
374
561
|
* @public
|
|
375
562
|
*/
|
|
376
|
-
welcomeMessages?: (
|
|
563
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
377
564
|
name: string;
|
|
378
565
|
/**
|
|
379
566
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -604,6 +791,21 @@ export interface ListAgentsInput {
|
|
|
604
791
|
export interface ListAgentsOutput {
|
|
605
792
|
users: (User)[];
|
|
606
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* @public
|
|
796
|
+
*/
|
|
797
|
+
export interface ListCalendarSlotsInput {
|
|
798
|
+
/**
|
|
799
|
+
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or john.doe@example.com).
|
|
800
|
+
* @public
|
|
801
|
+
*/
|
|
802
|
+
targetId: string;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* @public
|
|
806
|
+
*/
|
|
807
|
+
export interface ListCalendarSlotsOutput {
|
|
808
|
+
}
|
|
607
809
|
/**
|
|
608
810
|
* @public
|
|
609
811
|
*/
|
|
@@ -677,7 +879,7 @@ export interface UpdateWidgetInput {
|
|
|
677
879
|
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
678
880
|
* @public
|
|
679
881
|
*/
|
|
680
|
-
welcomeMessages?: (
|
|
882
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
681
883
|
name: string;
|
|
682
884
|
/**
|
|
683
885
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -3,6 +3,7 @@ import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "../commands
|
|
|
3
3
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "../commands/GetConfigCommand";
|
|
4
4
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "../commands/GetWidgetCommand";
|
|
5
5
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
|
|
6
|
+
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "../commands/ListCalendarSlotsCommand";
|
|
6
7
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "../commands/ListServicesCommand";
|
|
7
8
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "../commands/ListWidgetsCommand";
|
|
8
9
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "../commands/UpdateWidgetCommand";
|
|
@@ -28,6 +29,10 @@ export declare const se_GetWidgetCommand: (input: GetWidgetCommandInput, context
|
|
|
28
29
|
* serializeAws_restJson1ListAgentsCommand
|
|
29
30
|
*/
|
|
30
31
|
export declare const se_ListAgentsCommand: (input: ListAgentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
+
/**
|
|
33
|
+
* serializeAws_restJson1ListCalendarSlotsCommand
|
|
34
|
+
*/
|
|
35
|
+
export declare const se_ListCalendarSlotsCommand: (input: ListCalendarSlotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
36
|
/**
|
|
32
37
|
* serializeAws_restJson1ListServicesCommand
|
|
33
38
|
*/
|
|
@@ -60,6 +65,10 @@ export declare const de_GetWidgetCommand: (output: __HttpResponse, context: __Se
|
|
|
60
65
|
* deserializeAws_restJson1ListAgentsCommand
|
|
61
66
|
*/
|
|
62
67
|
export declare const de_ListAgentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentsCommandOutput>;
|
|
68
|
+
/**
|
|
69
|
+
* deserializeAws_restJson1ListCalendarSlotsCommand
|
|
70
|
+
*/
|
|
71
|
+
export declare const de_ListCalendarSlotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListCalendarSlotsCommandOutput>;
|
|
63
72
|
/**
|
|
64
73
|
* deserializeAws_restJson1ListServicesCommand
|
|
65
74
|
*/
|
|
@@ -14,8 +14,9 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
|
-
token
|
|
17
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -14,8 +14,9 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
14
14
|
sha256: import("@smithy/types").HashConstructor;
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env: "stage" | "stable" | "prod";
|
|
17
|
-
token
|
|
17
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
18
|
apiVersion: string;
|
|
19
|
+
cacheMiddleware?: boolean | undefined;
|
|
19
20
|
urlParser: import("@smithy/types").UrlParser;
|
|
20
21
|
base64Decoder: import("@smithy/types").Decoder;
|
|
21
22
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -6,9 +6,10 @@ export declare const getRuntimeConfig: (config: KiteClientConfig) => {
|
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
8
|
env: "stage" | "stable" | "prod";
|
|
9
|
-
token
|
|
9
|
+
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
11
|
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
12
13
|
urlParser: import("@smithy/types").UrlParser;
|
|
13
14
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
14
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"build:types": "tsc -p tsconfig.types.json",
|
|
10
10
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
11
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
|
|
12
|
-
"prepack": "yarn run clean && yarn run build"
|
|
12
|
+
"prepack": "yarn run clean && yarn run build",
|
|
13
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
13
14
|
},
|
|
14
15
|
"main": "./dist-cjs/index.js",
|
|
15
16
|
"types": "./dist-types/index.d.ts",
|