@wildix/xbees-kite-client 1.0.10 → 1.0.12
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 -2
- package/dist-cjs/commands/{GetCalendarAvailabilityCommand.js → GetCalendarSlotsCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -1
- package/dist-cjs/models/models_0.js +34 -8
- package/dist-cjs/protocols/Aws_restJson1.js +69 -13
- package/dist-es/Kite.js +2 -2
- package/dist-es/commands/GetCalendarSlotsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -1
- package/dist-es/models/models_0.js +31 -7
- package/dist-es/protocols/Aws_restJson1.js +68 -12
- package/dist-types/Kite.d.ts +5 -5
- package/dist-types/KiteClient.d.ts +3 -3
- package/dist-types/commands/CancelCalendarEventCommand.d.ts +2 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +82 -22
- package/dist-types/commands/{GetCalendarAvailabilityCommand.d.ts → GetCalendarSlotsCommand.d.ts} +21 -19
- package/dist-types/commands/GetWidgetCommand.d.ts +41 -11
- package/dist-types/commands/ListWidgetsCommand.d.ts +41 -11
- package/dist-types/commands/RescheduleCalendarEventCommand.d.ts +4 -0
- package/dist-types/commands/ScheduleCalendarEventCommand.d.ts +4 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +82 -22
- package/dist-types/commands/index.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +51 -24
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -5
- package/package.json +1 -1
- package/dist-es/commands/GetCalendarAvailabilityCommand.js +0 -17
|
@@ -225,6 +225,17 @@ export declare namespace ActionElement {
|
|
|
225
225
|
}
|
|
226
226
|
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
export declare class ChannelNotFoundException extends __BaseException {
|
|
232
|
+
readonly name: "ChannelNotFoundException";
|
|
233
|
+
readonly $fault: "client";
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
238
|
+
}
|
|
228
239
|
/**
|
|
229
240
|
* @public
|
|
230
241
|
* @enum
|
|
@@ -679,26 +690,31 @@ export declare namespace WidgetTarget {
|
|
|
679
690
|
/**
|
|
680
691
|
* @public
|
|
681
692
|
*/
|
|
682
|
-
export interface
|
|
683
|
-
|
|
684
|
-
|
|
693
|
+
export interface WidgetWelcomeMessage {
|
|
694
|
+
text?: string;
|
|
695
|
+
elements?: (Element)[];
|
|
685
696
|
/**
|
|
686
|
-
* The
|
|
697
|
+
* The time in milliseconds until the message will be visible to the end user.
|
|
687
698
|
* @public
|
|
688
699
|
*/
|
|
689
|
-
|
|
700
|
+
delay?: number;
|
|
690
701
|
}
|
|
691
702
|
/**
|
|
692
703
|
* @public
|
|
693
704
|
*/
|
|
694
|
-
export interface
|
|
695
|
-
|
|
696
|
-
|
|
705
|
+
export interface WidgetRoute {
|
|
706
|
+
id: string;
|
|
707
|
+
rules: (WidgetRouteRule)[];
|
|
697
708
|
/**
|
|
698
|
-
*
|
|
709
|
+
* A list of welcome messages that will be sent to the user when they first interact with the widget.
|
|
699
710
|
* @public
|
|
700
711
|
*/
|
|
701
|
-
|
|
712
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
713
|
+
/**
|
|
714
|
+
* The target will be used if the specified route matches the specified rules. If no rules are matched, the default target of the widget will be used.
|
|
715
|
+
* @public
|
|
716
|
+
*/
|
|
717
|
+
target: WidgetTarget;
|
|
702
718
|
}
|
|
703
719
|
/**
|
|
704
720
|
* @public
|
|
@@ -785,7 +801,18 @@ export interface DeleteWidgetOutput {
|
|
|
785
801
|
/**
|
|
786
802
|
* @public
|
|
787
803
|
*/
|
|
788
|
-
export
|
|
804
|
+
export declare class EventNotFoundException extends __BaseException {
|
|
805
|
+
readonly name: "EventNotFoundException";
|
|
806
|
+
readonly $fault: "client";
|
|
807
|
+
/**
|
|
808
|
+
* @internal
|
|
809
|
+
*/
|
|
810
|
+
constructor(opts: __ExceptionOptionType<EventNotFoundException, __BaseException>);
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* @public
|
|
814
|
+
*/
|
|
815
|
+
export interface GetCalendarSlotsInput {
|
|
789
816
|
/**
|
|
790
817
|
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or john.doe@example.com).
|
|
791
818
|
* @public
|
|
@@ -800,8 +827,19 @@ export interface GetCalendarAvailabilityInput {
|
|
|
800
827
|
/**
|
|
801
828
|
* @public
|
|
802
829
|
*/
|
|
803
|
-
export interface
|
|
804
|
-
|
|
830
|
+
export interface GetCalendarSlotsOutput {
|
|
831
|
+
calendar: CalendarAvailability;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* @public
|
|
835
|
+
*/
|
|
836
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
837
|
+
readonly name: "TargetNotFoundException";
|
|
838
|
+
readonly $fault: "client";
|
|
839
|
+
/**
|
|
840
|
+
* @internal
|
|
841
|
+
*/
|
|
842
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
805
843
|
}
|
|
806
844
|
/**
|
|
807
845
|
* @public
|
|
@@ -887,17 +925,6 @@ export interface KiteConfig {
|
|
|
887
925
|
export interface GetConfigOutput {
|
|
888
926
|
config: KiteConfig;
|
|
889
927
|
}
|
|
890
|
-
/**
|
|
891
|
-
* @public
|
|
892
|
-
*/
|
|
893
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
894
|
-
readonly name: "TargetNotFoundException";
|
|
895
|
-
readonly $fault: "client";
|
|
896
|
-
/**
|
|
897
|
-
* @internal
|
|
898
|
-
*/
|
|
899
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
900
|
-
}
|
|
901
928
|
/**
|
|
902
929
|
* @public
|
|
903
930
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CancelCalendarEventCommandInput, CancelCalendarEventCommandOutput } from "../commands/CancelCalendarEventCommand";
|
|
2
2
|
import { CreateWidgetCommandInput, CreateWidgetCommandOutput } from "../commands/CreateWidgetCommand";
|
|
3
3
|
import { DeleteWidgetCommandInput, DeleteWidgetCommandOutput } from "../commands/DeleteWidgetCommand";
|
|
4
|
-
import {
|
|
4
|
+
import { GetCalendarSlotsCommandInput, GetCalendarSlotsCommandOutput } from "../commands/GetCalendarSlotsCommand";
|
|
5
5
|
import { GetConfigCommandInput, GetConfigCommandOutput } from "../commands/GetConfigCommand";
|
|
6
6
|
import { GetWidgetCommandInput, GetWidgetCommandOutput } from "../commands/GetWidgetCommand";
|
|
7
7
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
|
|
@@ -25,9 +25,9 @@ export declare const se_CreateWidgetCommand: (input: CreateWidgetCommandInput, c
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const se_DeleteWidgetCommand: (input: DeleteWidgetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* serializeAws_restJson1GetCalendarSlotsCommand
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const se_GetCalendarSlotsCommand: (input: GetCalendarSlotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
31
31
|
/**
|
|
32
32
|
* serializeAws_restJson1GetConfigCommand
|
|
33
33
|
*/
|
|
@@ -73,9 +73,9 @@ export declare const de_CreateWidgetCommand: (output: __HttpResponse, context: _
|
|
|
73
73
|
*/
|
|
74
74
|
export declare const de_DeleteWidgetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteWidgetCommandOutput>;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* deserializeAws_restJson1GetCalendarSlotsCommand
|
|
77
77
|
*/
|
|
78
|
-
export declare const
|
|
78
|
+
export declare const de_GetCalendarSlotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCalendarSlotsCommandOutput>;
|
|
79
79
|
/**
|
|
80
80
|
* deserializeAws_restJson1GetConfigCommand
|
|
81
81
|
*/
|
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.12",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { de_GetCalendarAvailabilityCommand, se_GetCalendarAvailabilityCommand, } 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 GetCalendarAvailabilityCommand extends $Command.classBuilder()
|
|
6
|
-
.m(function (Command, cs, config, o) {
|
|
7
|
-
return [
|
|
8
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
-
];
|
|
10
|
-
})
|
|
11
|
-
.s("Kite", "GetCalendarAvailability", {})
|
|
12
|
-
.n("KiteClient", "GetCalendarAvailabilityCommand")
|
|
13
|
-
.f(void 0, void 0)
|
|
14
|
-
.ser(se_GetCalendarAvailabilityCommand)
|
|
15
|
-
.de(de_GetCalendarAvailabilityCommand)
|
|
16
|
-
.build() {
|
|
17
|
-
}
|