@wildix/xbees-kite-client 1.0.9 → 1.0.11
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 +8 -2
- package/dist-cjs/commands/CancelCalendarEventCommand.js +21 -0
- package/dist-cjs/commands/{ListCalendarSlotsCommand.js → GetCalendarSlotsCommand.js} +7 -7
- package/dist-cjs/commands/RescheduleCalendarEventCommand.js +21 -0
- package/dist-cjs/commands/ScheduleCalendarEventCommand.js +21 -0
- package/dist-cjs/commands/index.js +4 -1
- package/dist-cjs/models/models_0.js +22 -2
- package/dist-cjs/protocols/Aws_restJson1.js +155 -24
- package/dist-es/Kite.js +8 -2
- package/dist-es/commands/CancelCalendarEventCommand.js +17 -0
- package/dist-es/commands/GetCalendarSlotsCommand.js +17 -0
- package/dist-es/commands/RescheduleCalendarEventCommand.js +17 -0
- package/dist-es/commands/ScheduleCalendarEventCommand.js +17 -0
- package/dist-es/commands/index.js +4 -1
- package/dist-es/models/models_0.js +21 -1
- package/dist-es/protocols/Aws_restJson1.js +144 -19
- package/dist-types/Kite.d.ts +28 -7
- package/dist-types/KiteClient.d.ts +6 -3
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +146 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +2 -2
- package/dist-types/commands/GetCalendarSlotsCommand.d.ts +89 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +1 -1
- package/dist-types/commands/ListWidgetsCommand.d.ts +1 -1
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +155 -0
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +152 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +272 -16
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -9
- package/package.json +1 -1
- package/dist-es/commands/ListCalendarSlotsCommand.js +0 -17
- package/dist-types/commands/ListCalendarSlotsCommand.d.ts +0 -64
|
@@ -2,6 +2,23 @@ import { KiteServiceException as __BaseException } from "../models/KiteServiceEx
|
|
|
2
2
|
import { ForbiddenException, RateLimitExceededException, TargetNotFoundException, ValidationException, WidgetNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
export const se_CancelCalendarEventCommand = async (input, context) => {
|
|
6
|
+
const b = rb(input, context);
|
|
7
|
+
const headers = {};
|
|
8
|
+
b.bp("/v2/kite/calendar/channels/{channelId}/events/{eventOwner}/{eventId}");
|
|
9
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
10
|
+
b.p('eventId', () => input.eventId, '{eventId}', false);
|
|
11
|
+
b.p('eventOwner', () => input.eventOwner, '{eventOwner}', false);
|
|
12
|
+
const query = map({
|
|
13
|
+
[_r]: [, input[_r]],
|
|
14
|
+
});
|
|
15
|
+
let body;
|
|
16
|
+
b.m("DELETE")
|
|
17
|
+
.h(headers)
|
|
18
|
+
.q(query)
|
|
19
|
+
.b(body);
|
|
20
|
+
return b.build();
|
|
21
|
+
};
|
|
5
22
|
export const se_CreateWidgetCommand = async (input, context) => {
|
|
6
23
|
const b = rb(input, context);
|
|
7
24
|
const headers = {
|
|
@@ -36,13 +53,32 @@ export const se_DeleteWidgetCommand = async (input, context) => {
|
|
|
36
53
|
.b(body);
|
|
37
54
|
return b.build();
|
|
38
55
|
};
|
|
56
|
+
export const se_GetCalendarSlotsCommand = async (input, context) => {
|
|
57
|
+
const b = rb(input, context);
|
|
58
|
+
const headers = {};
|
|
59
|
+
b.bp("/v2/kite/calendar/widgets/{targetId}/slots");
|
|
60
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
61
|
+
const query = map({
|
|
62
|
+
[_f]: [, __expectNonNull(input[_f], `from`)],
|
|
63
|
+
[_t]: [, __expectNonNull(input[_t], `till`)],
|
|
64
|
+
[_d]: [, input[_d]],
|
|
65
|
+
[_tZ]: [, __expectNonNull(input[_tZ], `timeZone`)],
|
|
66
|
+
[_e]: [, input[_e]],
|
|
67
|
+
});
|
|
68
|
+
let body;
|
|
69
|
+
b.m("GET")
|
|
70
|
+
.h(headers)
|
|
71
|
+
.q(query)
|
|
72
|
+
.b(body);
|
|
73
|
+
return b.build();
|
|
74
|
+
};
|
|
39
75
|
export const se_GetConfigCommand = async (input, context) => {
|
|
40
76
|
const b = rb(input, context);
|
|
41
77
|
const headers = {};
|
|
42
78
|
b.bp("/v2/kite/config/{targetId}");
|
|
43
79
|
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
44
80
|
const query = map({
|
|
45
|
-
[
|
|
81
|
+
[_ro]: [, input[_tRI]],
|
|
46
82
|
});
|
|
47
83
|
let body;
|
|
48
84
|
b.m("GET")
|
|
@@ -81,17 +117,6 @@ export const se_ListAgentsCommand = async (input, context) => {
|
|
|
81
117
|
.b(body);
|
|
82
118
|
return b.build();
|
|
83
119
|
};
|
|
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
|
-
};
|
|
95
120
|
export const se_ListServicesCommand = async (input, context) => {
|
|
96
121
|
const b = rb(input, context);
|
|
97
122
|
const headers = {};
|
|
@@ -120,6 +145,51 @@ export const se_ListWidgetsCommand = async (input, context) => {
|
|
|
120
145
|
.b(body);
|
|
121
146
|
return b.build();
|
|
122
147
|
};
|
|
148
|
+
export const se_RescheduleCalendarEventCommand = async (input, context) => {
|
|
149
|
+
const b = rb(input, context);
|
|
150
|
+
const headers = {
|
|
151
|
+
'content-type': 'application/json',
|
|
152
|
+
};
|
|
153
|
+
b.bp("/v2/kite/calendar/channels/{channelId}/events/{eventOwner}/{eventId}");
|
|
154
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
155
|
+
b.p('eventId', () => input.eventId, '{eventId}', false);
|
|
156
|
+
b.p('eventOwner', () => input.eventOwner, '{eventOwner}', false);
|
|
157
|
+
let body;
|
|
158
|
+
body = JSON.stringify(take(input, {
|
|
159
|
+
'attendees': _ => _json(_),
|
|
160
|
+
'changed': _ => _json(_),
|
|
161
|
+
'duration': [],
|
|
162
|
+
'reason': [],
|
|
163
|
+
'start': [],
|
|
164
|
+
'summary': [],
|
|
165
|
+
}));
|
|
166
|
+
b.m("PATCH")
|
|
167
|
+
.h(headers)
|
|
168
|
+
.b(body);
|
|
169
|
+
return b.build();
|
|
170
|
+
};
|
|
171
|
+
export const se_ScheduleCalendarEventCommand = async (input, context) => {
|
|
172
|
+
const b = rb(input, context);
|
|
173
|
+
const headers = {
|
|
174
|
+
'content-type': 'application/json',
|
|
175
|
+
};
|
|
176
|
+
b.bp("/v2/kite/calendar/widgets/{targetId}");
|
|
177
|
+
b.p('targetId', () => input.targetId, '{targetId}', false);
|
|
178
|
+
let body;
|
|
179
|
+
body = JSON.stringify(take(input, {
|
|
180
|
+
'attendees': _ => _json(_),
|
|
181
|
+
'channelId': [],
|
|
182
|
+
'duration': [],
|
|
183
|
+
'language': [],
|
|
184
|
+
'start': [],
|
|
185
|
+
'summary': [],
|
|
186
|
+
'timeZone': [],
|
|
187
|
+
}));
|
|
188
|
+
b.m("POST")
|
|
189
|
+
.h(headers)
|
|
190
|
+
.b(body);
|
|
191
|
+
return b.build();
|
|
192
|
+
};
|
|
123
193
|
export const se_UpdateWidgetCommand = async (input, context) => {
|
|
124
194
|
const b = rb(input, context);
|
|
125
195
|
const headers = {
|
|
@@ -144,6 +214,21 @@ export const se_UpdateWidgetCommand = async (input, context) => {
|
|
|
144
214
|
.b(body);
|
|
145
215
|
return b.build();
|
|
146
216
|
};
|
|
217
|
+
export const de_CancelCalendarEventCommand = async (output, context) => {
|
|
218
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
219
|
+
return de_CommandError(output, context);
|
|
220
|
+
}
|
|
221
|
+
const contents = map({
|
|
222
|
+
$metadata: deserializeMetadata(output),
|
|
223
|
+
});
|
|
224
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
225
|
+
const doc = take(data, {
|
|
226
|
+
'channel': _json,
|
|
227
|
+
'event': _json,
|
|
228
|
+
});
|
|
229
|
+
Object.assign(contents, doc);
|
|
230
|
+
return contents;
|
|
231
|
+
};
|
|
147
232
|
export const de_CreateWidgetCommand = async (output, context) => {
|
|
148
233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
149
234
|
return de_CommandError(output, context);
|
|
@@ -168,6 +253,20 @@ export const de_DeleteWidgetCommand = async (output, context) => {
|
|
|
168
253
|
await collectBody(output.body, context);
|
|
169
254
|
return contents;
|
|
170
255
|
};
|
|
256
|
+
export const de_GetCalendarSlotsCommand = async (output, context) => {
|
|
257
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
258
|
+
return de_CommandError(output, context);
|
|
259
|
+
}
|
|
260
|
+
const contents = map({
|
|
261
|
+
$metadata: deserializeMetadata(output),
|
|
262
|
+
});
|
|
263
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
264
|
+
const doc = take(data, {
|
|
265
|
+
'calendar': _json,
|
|
266
|
+
});
|
|
267
|
+
Object.assign(contents, doc);
|
|
268
|
+
return contents;
|
|
269
|
+
};
|
|
171
270
|
export const de_GetConfigCommand = async (output, context) => {
|
|
172
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
173
272
|
return de_CommandError(output, context);
|
|
@@ -210,17 +309,21 @@ export const de_ListAgentsCommand = async (output, context) => {
|
|
|
210
309
|
Object.assign(contents, doc);
|
|
211
310
|
return contents;
|
|
212
311
|
};
|
|
213
|
-
export const
|
|
312
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
214
313
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
215
314
|
return de_CommandError(output, context);
|
|
216
315
|
}
|
|
217
316
|
const contents = map({
|
|
218
317
|
$metadata: deserializeMetadata(output),
|
|
219
318
|
});
|
|
220
|
-
await
|
|
319
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
320
|
+
const doc = take(data, {
|
|
321
|
+
'services': _json,
|
|
322
|
+
});
|
|
323
|
+
Object.assign(contents, doc);
|
|
221
324
|
return contents;
|
|
222
325
|
};
|
|
223
|
-
export const
|
|
326
|
+
export const de_ListWidgetsCommand = async (output, context) => {
|
|
224
327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
225
328
|
return de_CommandError(output, context);
|
|
226
329
|
}
|
|
@@ -229,12 +332,12 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
229
332
|
});
|
|
230
333
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
231
334
|
const doc = take(data, {
|
|
232
|
-
'
|
|
335
|
+
'widgets': _ => de_WidgetsList(_, context),
|
|
233
336
|
});
|
|
234
337
|
Object.assign(contents, doc);
|
|
235
338
|
return contents;
|
|
236
339
|
};
|
|
237
|
-
export const
|
|
340
|
+
export const de_RescheduleCalendarEventCommand = async (output, context) => {
|
|
238
341
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
239
342
|
return de_CommandError(output, context);
|
|
240
343
|
}
|
|
@@ -243,7 +346,23 @@ export const de_ListWidgetsCommand = async (output, context) => {
|
|
|
243
346
|
});
|
|
244
347
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
245
348
|
const doc = take(data, {
|
|
246
|
-
'
|
|
349
|
+
'channel': _json,
|
|
350
|
+
'event': _json,
|
|
351
|
+
});
|
|
352
|
+
Object.assign(contents, doc);
|
|
353
|
+
return contents;
|
|
354
|
+
};
|
|
355
|
+
export const de_ScheduleCalendarEventCommand = async (output, context) => {
|
|
356
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
357
|
+
return de_CommandError(output, context);
|
|
358
|
+
}
|
|
359
|
+
const contents = map({
|
|
360
|
+
$metadata: deserializeMetadata(output),
|
|
361
|
+
});
|
|
362
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
363
|
+
const doc = take(data, {
|
|
364
|
+
'channel': _json,
|
|
365
|
+
'event': _json,
|
|
247
366
|
});
|
|
248
367
|
Object.assign(contents, doc);
|
|
249
368
|
return contents;
|
|
@@ -385,13 +504,19 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
385
504
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
386
505
|
const _c = "company";
|
|
387
506
|
const _cI = "companyId";
|
|
388
|
-
const
|
|
507
|
+
const _d = "duration";
|
|
508
|
+
const _e = "excluded";
|
|
509
|
+
const _f = "from";
|
|
510
|
+
const _r = "reason";
|
|
389
511
|
const _rA = "retryAfter";
|
|
390
512
|
const _rL = "rateLimit";
|
|
391
513
|
const _rLR = "rateLimitRemaining";
|
|
392
514
|
const _rLRa = "rateLimitReset";
|
|
393
515
|
const _ra = "retry-after";
|
|
516
|
+
const _ro = "route";
|
|
517
|
+
const _t = "till";
|
|
394
518
|
const _tRI = "targetRouteId";
|
|
519
|
+
const _tZ = "timeZone";
|
|
395
520
|
const _xrl = "x-ratelimit-limit";
|
|
396
521
|
const _xrr = "x-ratelimit-remaining";
|
|
397
522
|
const _xrr_ = "x-ratelimit-reset";
|
package/dist-types/Kite.d.ts
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { KiteClient } from "./KiteClient";
|
|
2
|
+
import { CancelCalendarEventCommandInput, CancelCalendarEventCommandOutput } from "./commands/CancelCalendarEventCommand";
|
|
2
3
|
import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "./commands/CreateWidgetCommand";
|
|
3
4
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/DeleteWidgetCommand";
|
|
5
|
+
import { GetCalendarSlotsCommandInput, GetCalendarSlotsCommandOutput } from "./commands/GetCalendarSlotsCommand";
|
|
4
6
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
5
7
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
6
8
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
7
|
-
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
8
9
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
9
10
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
11
|
+
import { RescheduleCalendarEventCommandInput, RescheduleCalendarEventCommandOutput } from "./commands/RescheduleCalendarEventCommand";
|
|
12
|
+
import { ScheduleCalendarEventCommandInput, ScheduleCalendarEventCommandOutput } from "./commands/ScheduleCalendarEventCommand";
|
|
10
13
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
11
14
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
12
15
|
export interface Kite {
|
|
16
|
+
/**
|
|
17
|
+
* @see {@link CancelCalendarEventCommand}
|
|
18
|
+
*/
|
|
19
|
+
cancelCalendarEvent(args: CancelCalendarEventCommandInput, options?: __HttpHandlerOptions): Promise<CancelCalendarEventCommandOutput>;
|
|
20
|
+
cancelCalendarEvent(args: CancelCalendarEventCommandInput, cb: (err: any, data?: CancelCalendarEventCommandOutput) => void): void;
|
|
21
|
+
cancelCalendarEvent(args: CancelCalendarEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelCalendarEventCommandOutput) => void): void;
|
|
13
22
|
/**
|
|
14
23
|
* @see {@link CreateWidgetCommand}
|
|
15
24
|
*/
|
|
@@ -22,6 +31,12 @@ export interface Kite {
|
|
|
22
31
|
deleteWidget(args: DeleteWidgetCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWidgetCommandOutput>;
|
|
23
32
|
deleteWidget(args: DeleteWidgetCommandInput, cb: (err: any, data?: DeleteWidgetCommandOutput) => void): void;
|
|
24
33
|
deleteWidget(args: DeleteWidgetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWidgetCommandOutput) => void): void;
|
|
34
|
+
/**
|
|
35
|
+
* @see {@link GetCalendarSlotsCommand}
|
|
36
|
+
*/
|
|
37
|
+
getCalendarSlots(args: GetCalendarSlotsCommandInput, options?: __HttpHandlerOptions): Promise<GetCalendarSlotsCommandOutput>;
|
|
38
|
+
getCalendarSlots(args: GetCalendarSlotsCommandInput, cb: (err: any, data?: GetCalendarSlotsCommandOutput) => void): void;
|
|
39
|
+
getCalendarSlots(args: GetCalendarSlotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCalendarSlotsCommandOutput) => void): void;
|
|
25
40
|
/**
|
|
26
41
|
* @see {@link GetConfigCommand}
|
|
27
42
|
*/
|
|
@@ -40,12 +55,6 @@ export interface Kite {
|
|
|
40
55
|
listAgents(args: ListAgentsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentsCommandOutput>;
|
|
41
56
|
listAgents(args: ListAgentsCommandInput, cb: (err: any, data?: ListAgentsCommandOutput) => void): void;
|
|
42
57
|
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;
|
|
49
58
|
/**
|
|
50
59
|
* @see {@link ListServicesCommand}
|
|
51
60
|
*/
|
|
@@ -60,6 +69,18 @@ export interface Kite {
|
|
|
60
69
|
listWidgets(args: ListWidgetsCommandInput, options?: __HttpHandlerOptions): Promise<ListWidgetsCommandOutput>;
|
|
61
70
|
listWidgets(args: ListWidgetsCommandInput, cb: (err: any, data?: ListWidgetsCommandOutput) => void): void;
|
|
62
71
|
listWidgets(args: ListWidgetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWidgetsCommandOutput) => void): void;
|
|
72
|
+
/**
|
|
73
|
+
* @see {@link RescheduleCalendarEventCommand}
|
|
74
|
+
*/
|
|
75
|
+
rescheduleCalendarEvent(args: RescheduleCalendarEventCommandInput, options?: __HttpHandlerOptions): Promise<RescheduleCalendarEventCommandOutput>;
|
|
76
|
+
rescheduleCalendarEvent(args: RescheduleCalendarEventCommandInput, cb: (err: any, data?: RescheduleCalendarEventCommandOutput) => void): void;
|
|
77
|
+
rescheduleCalendarEvent(args: RescheduleCalendarEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RescheduleCalendarEventCommandOutput) => void): void;
|
|
78
|
+
/**
|
|
79
|
+
* @see {@link ScheduleCalendarEventCommand}
|
|
80
|
+
*/
|
|
81
|
+
scheduleCalendarEvent(args: ScheduleCalendarEventCommandInput, options?: __HttpHandlerOptions): Promise<ScheduleCalendarEventCommandOutput>;
|
|
82
|
+
scheduleCalendarEvent(args: ScheduleCalendarEventCommandInput, cb: (err: any, data?: ScheduleCalendarEventCommandOutput) => void): void;
|
|
83
|
+
scheduleCalendarEvent(args: ScheduleCalendarEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScheduleCalendarEventCommandOutput) => void): void;
|
|
63
84
|
/**
|
|
64
85
|
* @see {@link UpdateWidgetCommand}
|
|
65
86
|
*/
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { CancelCalendarEventCommandInput, CancelCalendarEventCommandOutput } from "./commands/CancelCalendarEventCommand";
|
|
1
2
|
import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "./commands/CreateWidgetCommand";
|
|
2
3
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "./commands/DeleteWidgetCommand";
|
|
4
|
+
import { GetCalendarSlotsCommandInput, GetCalendarSlotsCommandOutput } from "./commands/GetCalendarSlotsCommand";
|
|
3
5
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
|
|
4
6
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "./commands/GetWidgetCommand";
|
|
5
7
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
6
|
-
import { ListCalendarSlotsCommandInput, ListCalendarSlotsCommandOutput } from "./commands/ListCalendarSlotsCommand";
|
|
7
8
|
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
8
9
|
import { ListWidgetsCommandInput, ListWidgetsCommandOutput } from "./commands/ListWidgetsCommand";
|
|
10
|
+
import { RescheduleCalendarEventCommandInput, RescheduleCalendarEventCommandOutput } from "./commands/RescheduleCalendarEventCommand";
|
|
11
|
+
import { ScheduleCalendarEventCommandInput, ScheduleCalendarEventCommandOutput } from "./commands/ScheduleCalendarEventCommand";
|
|
9
12
|
import { UpdateWidgetCommandInput, UpdateWidgetCommandOutput } from "./commands/UpdateWidgetCommand";
|
|
10
13
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
11
14
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
@@ -18,11 +21,11 @@ export { __Client };
|
|
|
18
21
|
/**
|
|
19
22
|
* @public
|
|
20
23
|
*/
|
|
21
|
-
export type ServiceInputTypes = CreateWidgetCommandInput | DeleteWidgetCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput |
|
|
24
|
+
export type ServiceInputTypes = CancelCalendarEventCommandInput | CreateWidgetCommandInput | DeleteWidgetCommandInput | GetCalendarSlotsCommandInput | GetConfigCommandInput | GetWidgetCommandInput | ListAgentsCommandInput | ListServicesCommandInput | ListWidgetsCommandInput | RescheduleCalendarEventCommandInput | ScheduleCalendarEventCommandInput | UpdateWidgetCommandInput;
|
|
22
25
|
/**
|
|
23
26
|
* @public
|
|
24
27
|
*/
|
|
25
|
-
export type ServiceOutputTypes = CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput |
|
|
28
|
+
export type ServiceOutputTypes = CancelCalendarEventCommandOutput | CreateWidgetCommandOutput | DeleteWidgetCommandOutput | GetCalendarSlotsCommandOutput | GetConfigCommandOutput | GetWidgetCommandOutput | ListAgentsCommandOutput | ListServicesCommandOutput | ListWidgetsCommandOutput | RescheduleCalendarEventCommandOutput | ScheduleCalendarEventCommandOutput | UpdateWidgetCommandOutput;
|
|
26
29
|
/**
|
|
27
30
|
* @public
|
|
28
31
|
*/
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { CancelCalendarEventInput, CancelCalendarEventOutput } 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 CancelCalendarEventCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CancelCalendarEventCommandInput extends CancelCalendarEventInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CancelCalendarEventCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CancelCalendarEventCommandOutput extends CancelCalendarEventOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CancelCalendarEventCommand_base: {
|
|
25
|
+
new (input: CancelCalendarEventCommandInput): import("@smithy/smithy-client").CommandImpl<CancelCalendarEventCommandInput, CancelCalendarEventCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CancelCalendarEventCommandInput): import("@smithy/smithy-client").CommandImpl<CancelCalendarEventCommandInput, CancelCalendarEventCommandOutput, 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, CancelCalendarEventCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, CancelCalendarEventCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // CancelCalendarEventInput
|
|
39
|
+
* channelId: "STRING_VALUE", // required
|
|
40
|
+
* eventId: "STRING_VALUE", // required
|
|
41
|
+
* eventOwner: "STRING_VALUE", // required
|
|
42
|
+
* reason: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new CancelCalendarEventCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // CancelCalendarEventOutput
|
|
47
|
+
* // channel: { // Channel
|
|
48
|
+
* // subject: "STRING_VALUE",
|
|
49
|
+
* // description: "STRING_VALUE",
|
|
50
|
+
* // picture: "STRING_VALUE",
|
|
51
|
+
* // pictureColor: "STRING_VALUE",
|
|
52
|
+
* // access: "private" || "public",
|
|
53
|
+
* // company: "STRING_VALUE",
|
|
54
|
+
* // context: { // ChannelContext
|
|
55
|
+
* // source: "kite",
|
|
56
|
+
* // target: "STRING_VALUE",
|
|
57
|
+
* // events: [ // ChannelContextEventList
|
|
58
|
+
* // { // ChannelContextEvent
|
|
59
|
+
* // id: "STRING_VALUE",
|
|
60
|
+
* // owner: "STRING_VALUE",
|
|
61
|
+
* // start: "STRING_VALUE",
|
|
62
|
+
* // end: "STRING_VALUE",
|
|
63
|
+
* // summary: "STRING_VALUE",
|
|
64
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
65
|
+
* // { // ChannelContextEventAttendee
|
|
66
|
+
* // email: "STRING_VALUE", // required
|
|
67
|
+
* // name: "STRING_VALUE",
|
|
68
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // },
|
|
74
|
+
* // kite: true || false,
|
|
75
|
+
* // kiteTarget: "STRING_VALUE",
|
|
76
|
+
* // kiteVariant: "STRING_VALUE",
|
|
77
|
+
* // kiteAssign: "STRING_VALUE",
|
|
78
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
79
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
80
|
+
* // service: "STRING_VALUE",
|
|
81
|
+
* // serviceTitle: "STRING_VALUE",
|
|
82
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
83
|
+
* // assignee: { // User
|
|
84
|
+
* // id: "STRING_VALUE", // required
|
|
85
|
+
* // name: "STRING_VALUE",
|
|
86
|
+
* // email: "STRING_VALUE",
|
|
87
|
+
* // phone: "STRING_VALUE",
|
|
88
|
+
* // picture: "STRING_VALUE",
|
|
89
|
+
* // locale: "STRING_VALUE",
|
|
90
|
+
* // timeZone: "STRING_VALUE",
|
|
91
|
+
* // company: "STRING_VALUE",
|
|
92
|
+
* // bot: true || false,
|
|
93
|
+
* // pbxDomain: "STRING_VALUE",
|
|
94
|
+
* // pbxPort: "STRING_VALUE",
|
|
95
|
+
* // pbxExtension: "STRING_VALUE",
|
|
96
|
+
* // pbxSerial: "STRING_VALUE",
|
|
97
|
+
* // pbxUserId: "STRING_VALUE",
|
|
98
|
+
* // createdAt: "STRING_VALUE",
|
|
99
|
+
* // updatedAt: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // telephony: true || false,
|
|
102
|
+
* // sms: true || false,
|
|
103
|
+
* // mms: true || false,
|
|
104
|
+
* // whatsapp: true || false,
|
|
105
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
106
|
+
* // broadcast: true || false,
|
|
107
|
+
* // external: true || false,
|
|
108
|
+
* // channelId: "STRING_VALUE", // required
|
|
109
|
+
* // channelType: "direct" || "group", // required
|
|
110
|
+
* // memberCount: Number("int"), // required
|
|
111
|
+
* // createdAt: "STRING_VALUE", // required
|
|
112
|
+
* // createdBy: "STRING_VALUE", // required
|
|
113
|
+
* // updatedAt: "STRING_VALUE",
|
|
114
|
+
* // },
|
|
115
|
+
* // event: { // CalendarEvent
|
|
116
|
+
* // id: "STRING_VALUE",
|
|
117
|
+
* // owner: "STRING_VALUE",
|
|
118
|
+
* // start: "STRING_VALUE",
|
|
119
|
+
* // end: "STRING_VALUE",
|
|
120
|
+
* // summary: "STRING_VALUE",
|
|
121
|
+
* // attendees: [ // CalendarEventAttendeesList
|
|
122
|
+
* // "STRING_VALUE",
|
|
123
|
+
* // ],
|
|
124
|
+
* // },
|
|
125
|
+
* // };
|
|
126
|
+
*
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* @param CancelCalendarEventCommandInput - {@link CancelCalendarEventCommandInput}
|
|
130
|
+
* @returns {@link CancelCalendarEventCommandOutput}
|
|
131
|
+
* @see {@link CancelCalendarEventCommandInput} for command's `input` shape.
|
|
132
|
+
* @see {@link CancelCalendarEventCommandOutput} for command's `response` shape.
|
|
133
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ValidationException} (client fault)
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link KiteServiceException}
|
|
142
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
export declare class CancelCalendarEventCommand extends CancelCalendarEventCommand_base {
|
|
146
|
+
}
|
|
@@ -54,7 +54,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
54
54
|
* { // WidgetRouteRule Union: only one key present
|
|
55
55
|
* timeFrame: { // WidgetRouteTimeFrameRule
|
|
56
56
|
* timeZone: "STRING_VALUE", // required
|
|
57
|
-
* day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "
|
|
57
|
+
* day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
58
58
|
* startMinute: Number("int"), // required
|
|
59
59
|
* endMinute: Number("int"), // required
|
|
60
60
|
* },
|
|
@@ -142,7 +142,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
142
142
|
* // { // WidgetRouteRule Union: only one key present
|
|
143
143
|
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
144
144
|
* // timeZone: "STRING_VALUE", // required
|
|
145
|
-
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "
|
|
145
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
146
146
|
* // startMinute: Number("int"), // required
|
|
147
147
|
* // endMinute: Number("int"), // required
|
|
148
148
|
* // },
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KiteClient";
|
|
2
|
+
import { GetCalendarSlotsInput, GetCalendarSlotsOutput } 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 GetCalendarSlotsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetCalendarSlotsCommandInput extends GetCalendarSlotsInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetCalendarSlotsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetCalendarSlotsCommandOutput extends GetCalendarSlotsOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetCalendarSlotsCommand_base: {
|
|
25
|
+
new (input: GetCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<GetCalendarSlotsCommandInput, GetCalendarSlotsCommandOutput, KiteClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetCalendarSlotsCommandInput): import("@smithy/smithy-client").CommandImpl<GetCalendarSlotsCommandInput, GetCalendarSlotsCommandOutput, 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, GetCalendarSlotsCommand } from "@wildix/xbees-kite-client"; // ES Modules import
|
|
36
|
+
* // const { KiteClient, GetCalendarSlotsCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
|
|
37
|
+
* const client = new KiteClient(config);
|
|
38
|
+
* const input = { // GetCalendarSlotsInput
|
|
39
|
+
* targetId: "STRING_VALUE", // required
|
|
40
|
+
* from: "STRING_VALUE", // required
|
|
41
|
+
* till: "STRING_VALUE", // required
|
|
42
|
+
* duration: "STRING_VALUE",
|
|
43
|
+
* timeZone: "STRING_VALUE", // required
|
|
44
|
+
* excluded: "STRING_VALUE",
|
|
45
|
+
* };
|
|
46
|
+
* const command = new GetCalendarSlotsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // GetCalendarSlotsOutput
|
|
49
|
+
* // calendar: { // CalendarAvailability
|
|
50
|
+
* // days: [ // CalendarDaySlotsList
|
|
51
|
+
* // { // CalendarDaySlots
|
|
52
|
+
* // date: "STRING_VALUE",
|
|
53
|
+
* // slots: [ // CalendarSlotsList
|
|
54
|
+
* // { // CalendarSlot
|
|
55
|
+
* // startTime: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // duration: "STRING_VALUE",
|
|
61
|
+
* // timeZone: "STRING_VALUE",
|
|
62
|
+
* // settings: { // CalendarAvailabilitySettings
|
|
63
|
+
* // duration: [ // CalendarEventDurationList
|
|
64
|
+
* // "STRING_VALUE",
|
|
65
|
+
* // ],
|
|
66
|
+
* // },
|
|
67
|
+
* // },
|
|
68
|
+
* // };
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param GetCalendarSlotsCommandInput - {@link GetCalendarSlotsCommandInput}
|
|
73
|
+
* @returns {@link GetCalendarSlotsCommandOutput}
|
|
74
|
+
* @see {@link GetCalendarSlotsCommandInput} for command's `input` shape.
|
|
75
|
+
* @see {@link GetCalendarSlotsCommandOutput} for command's `response` shape.
|
|
76
|
+
* @see {@link KiteClientResolvedConfig | config} for KiteClient's `config` shape.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link KiteServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Kite service.</p>
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
export declare class GetCalendarSlotsCommand extends GetCalendarSlotsCommand_base {
|
|
89
|
+
}
|
|
@@ -60,7 +60,7 @@ declare const GetWidgetCommand_base: {
|
|
|
60
60
|
* // { // WidgetRouteRule Union: only one key present
|
|
61
61
|
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
62
62
|
* // timeZone: "STRING_VALUE", // required
|
|
63
|
-
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "
|
|
63
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
64
64
|
* // startMinute: Number("int"), // required
|
|
65
65
|
* // endMinute: Number("int"), // required
|
|
66
66
|
* // },
|
|
@@ -62,7 +62,7 @@ declare const ListWidgetsCommand_base: {
|
|
|
62
62
|
* // { // WidgetRouteRule Union: only one key present
|
|
63
63
|
* // timeFrame: { // WidgetRouteTimeFrameRule
|
|
64
64
|
* // timeZone: "STRING_VALUE", // required
|
|
65
|
-
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "
|
|
65
|
+
* // day: "EVERY_DAY" || "WEEKDAYS" || "WEEKENDS" || "MONDAY" || "TUESDAY" || "WEDNESDAY" || "THURSDAY" || "FRIDAY" || "SATURDAY" || "SUNDAY", // required
|
|
66
66
|
* // startMinute: Number("int"), // required
|
|
67
67
|
* // endMinute: Number("int"), // required
|
|
68
68
|
* // },
|