@wildix/wda-history-client 1.2.7 → 1.2.9

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.
@@ -1,7 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ForbiddenException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = void 0;
3
+ exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
5
+ class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
6
+ name = "ForbiddenException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ForbiddenException",
11
+ $fault: "client",
12
+ ...opts
13
+ });
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
15
+ }
16
+ }
17
+ exports.ForbiddenException = ForbiddenException;
5
18
  class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
6
19
  name = "ValidationException";
7
20
  $fault = "client";
@@ -25,19 +38,6 @@ exports.ConversationStatus = {
25
38
  COMPLETED: "COMPLETED",
26
39
  MISSED: "MISSED",
27
40
  };
28
- class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
29
- name = "ForbiddenException";
30
- $fault = "client";
31
- constructor(opts) {
32
- super({
33
- name: "ForbiddenException",
34
- $fault: "client",
35
- ...opts
36
- });
37
- Object.setPrototypeOf(this, ForbiddenException.prototype);
38
- }
39
- }
40
- exports.ForbiddenException = ForbiddenException;
41
41
  class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
42
42
  name = "CallNotFoundException";
43
43
  $fault = "client";
@@ -1,4 +1,16 @@
1
1
  import { WdaHistoryServiceException as __BaseException } from "./WdaHistoryServiceException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ForbiddenException",
8
+ $fault: "client",
9
+ ...opts
10
+ });
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
+ }
13
+ }
2
14
  export class ValidationException extends __BaseException {
3
15
  name = "ValidationException";
4
16
  $fault = "client";
@@ -21,18 +33,6 @@ export const ConversationStatus = {
21
33
  COMPLETED: "COMPLETED",
22
34
  MISSED: "MISSED",
23
35
  };
24
- export class ForbiddenException extends __BaseException {
25
- name = "ForbiddenException";
26
- $fault = "client";
27
- constructor(opts) {
28
- super({
29
- name: "ForbiddenException",
30
- $fault: "client",
31
- ...opts
32
- });
33
- Object.setPrototypeOf(this, ForbiddenException.prototype);
34
- }
35
- }
36
36
  export class CallNotFoundException extends __BaseException {
37
37
  name = "CallNotFoundException";
38
38
  $fault = "client";
@@ -47,11 +47,11 @@ declare const GetChatCommand_base: {
47
47
  * // time: Number("long"), // required
48
48
  * // company: "STRING_VALUE", // required
49
49
  * // pbx: "STRING_VALUE",
50
- * // startTime: Number("long"),
51
- * // endTime: Number("long"),
50
+ * // startTime: Number("long"), // required
51
+ * // endTime: Number("long"), // required
52
52
  * // waitTime: Number("int"),
53
- * // duration: Number("long"),
54
- * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND",
53
+ * // duration: Number("long"), // required
54
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
55
55
  * // subject: "STRING_VALUE",
56
56
  * // service: "STRING_VALUE",
57
57
  * // serviceTitle: "STRING_VALUE",
@@ -112,6 +112,7 @@ declare const GetChatCommand_base: {
112
112
  * // pbxExtension: "STRING_VALUE",
113
113
  * // pbxSerial: "STRING_VALUE",
114
114
  * // pbxUserId: "STRING_VALUE",
115
+ * // pbxGroupId: "STRING_VALUE",
115
116
  * // createdAt: "STRING_VALUE",
116
117
  * // updatedAt: "STRING_VALUE",
117
118
  * // },
@@ -124,6 +125,7 @@ declare const GetChatCommand_base: {
124
125
  * // external: true || false,
125
126
  * // autoRecord: true || false,
126
127
  * // transcriptionLanguage: "STRING_VALUE",
128
+ * // wizyGuestViewOnly: true || false,
127
129
  * // channelId: "STRING_VALUE", // required
128
130
  * // channelType: "direct" || "group", // required
129
131
  * // memberCount: Number("int"), // required
@@ -132,7 +134,7 @@ declare const GetChatCommand_base: {
132
134
  * // updatedAt: "STRING_VALUE",
133
135
  * // },
134
136
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED",
135
- * // participants: [ // ChatParticipantsList
137
+ * // participants: [ // ChatParticipantsList // required
136
138
  * // { // ChatParticipant
137
139
  * // id: "STRING_VALUE", // required
138
140
  * // info: { // ChatParticipantInfo
@@ -150,6 +152,7 @@ declare const GetChatCommand_base: {
150
152
  * // pbxExtension: "STRING_VALUE",
151
153
  * // pbxSerial: "STRING_VALUE",
152
154
  * // pbxUserId: "STRING_VALUE",
155
+ * // pbxGroupId: "STRING_VALUE",
153
156
  * // createdAt: "STRING_VALUE",
154
157
  * // updatedAt: "STRING_VALUE",
155
158
  * // type: "REMOTE" || "LOCAL", // required
@@ -115,6 +115,7 @@ declare const GetChatTranscriptionCommand_base: {
115
115
  * // pbxExtension: "STRING_VALUE",
116
116
  * // pbxSerial: "STRING_VALUE",
117
117
  * // pbxUserId: "STRING_VALUE",
118
+ * // pbxGroupId: "STRING_VALUE",
118
119
  * // createdAt: "STRING_VALUE",
119
120
  * // updatedAt: "STRING_VALUE",
120
121
  * // },
@@ -155,6 +156,7 @@ declare const GetChatTranscriptionCommand_base: {
155
156
  * // pbxExtension: "STRING_VALUE",
156
157
  * // pbxSerial: "STRING_VALUE",
157
158
  * // pbxUserId: "STRING_VALUE",
159
+ * // pbxGroupId: "STRING_VALUE",
158
160
  * // createdAt: "STRING_VALUE",
159
161
  * // updatedAt: "STRING_VALUE",
160
162
  * // },
@@ -111,6 +111,7 @@ declare const GetChatTranscriptionTextCommand_base: {
111
111
  * // pbxExtension: "STRING_VALUE",
112
112
  * // pbxSerial: "STRING_VALUE",
113
113
  * // pbxUserId: "STRING_VALUE",
114
+ * // pbxGroupId: "STRING_VALUE",
114
115
  * // createdAt: "STRING_VALUE",
115
116
  * // updatedAt: "STRING_VALUE",
116
117
  * // },
@@ -151,6 +152,7 @@ declare const GetChatTranscriptionTextCommand_base: {
151
152
  * // pbxExtension: "STRING_VALUE",
152
153
  * // pbxSerial: "STRING_VALUE",
153
154
  * // pbxUserId: "STRING_VALUE",
155
+ * // pbxGroupId: "STRING_VALUE",
154
156
  * // createdAt: "STRING_VALUE",
155
157
  * // updatedAt: "STRING_VALUE",
156
158
  * // },
@@ -1,5 +1,16 @@
1
1
  import { WdaHistoryServiceException as __BaseException } from "./WdaHistoryServiceException";
2
2
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
3
+ /**
4
+ * @public
5
+ */
6
+ export declare class ForbiddenException extends __BaseException {
7
+ readonly name: "ForbiddenException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
13
+ }
3
14
  /**
4
15
  * @public
5
16
  */
@@ -37,17 +48,6 @@ export declare const ConversationStatus: {
37
48
  * @public
38
49
  */
39
50
  export type ConversationStatus = typeof ConversationStatus[keyof typeof ConversationStatus];
40
- /**
41
- * @public
42
- */
43
- export declare class ForbiddenException extends __BaseException {
44
- readonly name: "ForbiddenException";
45
- readonly $fault: "client";
46
- /**
47
- * @internal
48
- */
49
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
50
- }
51
51
  /**
52
52
  * @public
53
53
  */
@@ -606,6 +606,7 @@ export interface User {
606
606
  pbxExtension?: string | undefined;
607
607
  pbxSerial?: string | undefined;
608
608
  pbxUserId?: string | undefined;
609
+ pbxGroupId?: string | undefined;
609
610
  createdAt?: string | undefined;
610
611
  updatedAt?: string | undefined;
611
612
  }
@@ -733,6 +734,7 @@ export interface Channel {
733
734
  external?: boolean | undefined;
734
735
  autoRecord?: boolean | undefined;
735
736
  transcriptionLanguage?: string | undefined;
737
+ wizyGuestViewOnly?: boolean | undefined;
736
738
  channelId: string;
737
739
  channelType: ChannelType;
738
740
  memberCount: number;
@@ -795,6 +797,7 @@ export interface ChatParticipantInfo {
795
797
  pbxExtension?: string | undefined;
796
798
  pbxSerial?: string | undefined;
797
799
  pbxUserId?: string | undefined;
800
+ pbxGroupId?: string | undefined;
798
801
  createdAt?: string | undefined;
799
802
  updatedAt?: string | undefined;
800
803
  type: ChatParticipantType;
@@ -852,18 +855,18 @@ export interface ChatRecord {
852
855
  time: number;
853
856
  company: string;
854
857
  pbx?: string | undefined;
855
- startTime?: number | undefined;
856
- endTime?: number | undefined;
858
+ startTime: number;
859
+ endTime: number;
857
860
  waitTime?: number | undefined;
858
- duration?: number | undefined;
859
- direction?: ChatDirection | undefined;
861
+ duration: number;
862
+ direction: ChatDirection;
860
863
  subject?: string | undefined;
861
864
  service?: string | undefined;
862
865
  serviceTitle?: string | undefined;
863
866
  tags?: (ChatTag)[] | undefined;
864
- channel?: Channel | undefined;
867
+ channel: Channel;
865
868
  status?: ChatStatus | undefined;
866
- participants?: (ChatParticipant)[] | undefined;
869
+ participants: (ChatParticipant)[];
867
870
  type: RecordType;
868
871
  }
869
872
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wda-history-client",
3
3
  "description": "@wildix/wda-history-client client",
4
- "version": "1.2.7",
4
+ "version": "1.2.9",
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",