@wildix/wda-history-client 1.2.8 → 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",
@@ -125,6 +125,7 @@ declare const GetChatCommand_base: {
125
125
  * // external: true || false,
126
126
  * // autoRecord: true || false,
127
127
  * // transcriptionLanguage: "STRING_VALUE",
128
+ * // wizyGuestViewOnly: true || false,
128
129
  * // channelId: "STRING_VALUE", // required
129
130
  * // channelType: "direct" || "group", // required
130
131
  * // memberCount: Number("int"), // required
@@ -133,7 +134,7 @@ declare const GetChatCommand_base: {
133
134
  * // updatedAt: "STRING_VALUE",
134
135
  * // },
135
136
  * // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED",
136
- * // participants: [ // ChatParticipantsList
137
+ * // participants: [ // ChatParticipantsList // required
137
138
  * // { // ChatParticipant
138
139
  * // id: "STRING_VALUE", // required
139
140
  * // info: { // ChatParticipantInfo
@@ -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
  */
@@ -734,6 +734,7 @@ export interface Channel {
734
734
  external?: boolean | undefined;
735
735
  autoRecord?: boolean | undefined;
736
736
  transcriptionLanguage?: string | undefined;
737
+ wizyGuestViewOnly?: boolean | undefined;
737
738
  channelId: string;
738
739
  channelType: ChannelType;
739
740
  memberCount: number;
@@ -854,18 +855,18 @@ export interface ChatRecord {
854
855
  time: number;
855
856
  company: string;
856
857
  pbx?: string | undefined;
857
- startTime?: number | undefined;
858
- endTime?: number | undefined;
858
+ startTime: number;
859
+ endTime: number;
859
860
  waitTime?: number | undefined;
860
- duration?: number | undefined;
861
- direction?: ChatDirection | undefined;
861
+ duration: number;
862
+ direction: ChatDirection;
862
863
  subject?: string | undefined;
863
864
  service?: string | undefined;
864
865
  serviceTitle?: string | undefined;
865
866
  tags?: (ChatTag)[] | undefined;
866
- channel?: Channel | undefined;
867
+ channel: Channel;
867
868
  status?: ChatStatus | undefined;
868
- participants?: (ChatParticipant)[] | undefined;
869
+ participants: (ChatParticipant)[];
869
870
  type: RecordType;
870
871
  }
871
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.8",
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",