@opens/gateways 1.17.4 → 1.17.6
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/_identification-rule-C7mcbjha.d.mts +64 -0
- package/dist/_identification-rule-C7mcbjha.d.ts +64 -0
- package/dist/chat-config/builders/index.d.mts +107 -3
- package/dist/chat-config/builders/index.d.ts +107 -3
- package/dist/chat-config/builders/index.js +369 -4
- package/dist/chat-config/builders/index.js.map +1 -1
- package/dist/chat-config/builders/index.mjs +366 -3
- package/dist/chat-config/builders/index.mjs.map +1 -1
- package/dist/chat-config/contracts/index.d.mts +32 -4
- package/dist/chat-config/contracts/index.d.ts +32 -4
- package/dist/chat-config/contracts/index.js.map +1 -1
- package/dist/chat-config/value-objects/index.d.mts +46 -2
- package/dist/chat-config/value-objects/index.d.ts +46 -2
- package/dist/chat-config/value-objects/index.js +84 -2
- package/dist/chat-config/value-objects/index.js.map +1 -1
- package/dist/chat-config/value-objects/index.mjs +81 -1
- package/dist/chat-config/value-objects/index.mjs.map +1 -1
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/_screen-rule-FlIJzVXA.d.mts +0 -20
- package/dist/_screen-rule-FlIJzVXA.d.ts +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CreateScreenRuleDTO } from '../../
|
|
1
|
+
import { C as CreateScreenRuleDTO, b as CreateServiceRuleDTO, e as CreateIdentificationRuleDTO } from '../../_identification-rule-C7mcbjha.mjs';
|
|
2
2
|
|
|
3
3
|
/** Value object representing a complete screen-rule payload. */
|
|
4
4
|
declare class ScreenRuleVO {
|
|
@@ -22,4 +22,48 @@ declare class ScreenRuleVO {
|
|
|
22
22
|
static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
/** Value object representing a complete service-rule payload. */
|
|
26
|
+
declare class ServiceRuleVO {
|
|
27
|
+
readonly payload: CreateServiceRuleDTO;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a service-rule value object from a complete payload.
|
|
30
|
+
* @param payload - The service-rule payload to snapshot.
|
|
31
|
+
*/
|
|
32
|
+
constructor(payload: CreateServiceRuleDTO);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a value object from its JSON representation.
|
|
35
|
+
* @param payload - The service-rule JSON payload.
|
|
36
|
+
* @returns A service-rule value object containing a defensive snapshot.
|
|
37
|
+
*/
|
|
38
|
+
static fromJSON(payload: CreateServiceRuleDTO): ServiceRuleVO;
|
|
39
|
+
/**
|
|
40
|
+
* Converts a service-rule value object to JSON.
|
|
41
|
+
* @param serviceRuleVO - The service-rule value object to serialize.
|
|
42
|
+
* @returns A defensive copy of the service-rule payload.
|
|
43
|
+
*/
|
|
44
|
+
static toJSON(serviceRuleVO: ServiceRuleVO): CreateServiceRuleDTO;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Value object representing a complete identification-rule payload. */
|
|
48
|
+
declare class IdentificationRuleVO {
|
|
49
|
+
readonly payload: CreateIdentificationRuleDTO;
|
|
50
|
+
/**
|
|
51
|
+
* Creates an identification-rule value object from a complete payload.
|
|
52
|
+
* @param payload - The identification-rule payload to snapshot.
|
|
53
|
+
*/
|
|
54
|
+
constructor(payload: CreateIdentificationRuleDTO);
|
|
55
|
+
/**
|
|
56
|
+
* Creates a value object from its JSON representation.
|
|
57
|
+
* @param payload - The identification-rule JSON payload.
|
|
58
|
+
* @returns An identification-rule value object containing a defensive snapshot.
|
|
59
|
+
*/
|
|
60
|
+
static fromJSON(payload: CreateIdentificationRuleDTO): IdentificationRuleVO;
|
|
61
|
+
/**
|
|
62
|
+
* Converts an identification-rule value object to JSON.
|
|
63
|
+
* @param identificationRuleVO - The identification-rule value object to serialize.
|
|
64
|
+
* @returns A defensive copy of the identification-rule payload.
|
|
65
|
+
*/
|
|
66
|
+
static toJSON(identificationRuleVO: IdentificationRuleVO): CreateIdentificationRuleDTO;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { IdentificationRuleVO, ScreenRuleVO, ServiceRuleVO };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CreateScreenRuleDTO } from '../../
|
|
1
|
+
import { C as CreateScreenRuleDTO, b as CreateServiceRuleDTO, e as CreateIdentificationRuleDTO } from '../../_identification-rule-C7mcbjha.js';
|
|
2
2
|
|
|
3
3
|
/** Value object representing a complete screen-rule payload. */
|
|
4
4
|
declare class ScreenRuleVO {
|
|
@@ -22,4 +22,48 @@ declare class ScreenRuleVO {
|
|
|
22
22
|
static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
/** Value object representing a complete service-rule payload. */
|
|
26
|
+
declare class ServiceRuleVO {
|
|
27
|
+
readonly payload: CreateServiceRuleDTO;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a service-rule value object from a complete payload.
|
|
30
|
+
* @param payload - The service-rule payload to snapshot.
|
|
31
|
+
*/
|
|
32
|
+
constructor(payload: CreateServiceRuleDTO);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a value object from its JSON representation.
|
|
35
|
+
* @param payload - The service-rule JSON payload.
|
|
36
|
+
* @returns A service-rule value object containing a defensive snapshot.
|
|
37
|
+
*/
|
|
38
|
+
static fromJSON(payload: CreateServiceRuleDTO): ServiceRuleVO;
|
|
39
|
+
/**
|
|
40
|
+
* Converts a service-rule value object to JSON.
|
|
41
|
+
* @param serviceRuleVO - The service-rule value object to serialize.
|
|
42
|
+
* @returns A defensive copy of the service-rule payload.
|
|
43
|
+
*/
|
|
44
|
+
static toJSON(serviceRuleVO: ServiceRuleVO): CreateServiceRuleDTO;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Value object representing a complete identification-rule payload. */
|
|
48
|
+
declare class IdentificationRuleVO {
|
|
49
|
+
readonly payload: CreateIdentificationRuleDTO;
|
|
50
|
+
/**
|
|
51
|
+
* Creates an identification-rule value object from a complete payload.
|
|
52
|
+
* @param payload - The identification-rule payload to snapshot.
|
|
53
|
+
*/
|
|
54
|
+
constructor(payload: CreateIdentificationRuleDTO);
|
|
55
|
+
/**
|
|
56
|
+
* Creates a value object from its JSON representation.
|
|
57
|
+
* @param payload - The identification-rule JSON payload.
|
|
58
|
+
* @returns An identification-rule value object containing a defensive snapshot.
|
|
59
|
+
*/
|
|
60
|
+
static fromJSON(payload: CreateIdentificationRuleDTO): IdentificationRuleVO;
|
|
61
|
+
/**
|
|
62
|
+
* Converts an identification-rule value object to JSON.
|
|
63
|
+
* @param identificationRuleVO - The identification-rule value object to serialize.
|
|
64
|
+
* @returns A defensive copy of the identification-rule payload.
|
|
65
|
+
*/
|
|
66
|
+
static toJSON(identificationRuleVO: IdentificationRuleVO): CreateIdentificationRuleDTO;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { IdentificationRuleVO, ScreenRuleVO, ServiceRuleVO };
|
|
@@ -20,7 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/chat-config/value-objects/index.ts
|
|
21
21
|
var value_objects_exports = {};
|
|
22
22
|
__export(value_objects_exports, {
|
|
23
|
-
|
|
23
|
+
IdentificationRuleVO: () => IdentificationRuleVO,
|
|
24
|
+
ScreenRuleVO: () => ScreenRuleVO,
|
|
25
|
+
ServiceRuleVO: () => ServiceRuleVO
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(value_objects_exports);
|
|
26
28
|
|
|
@@ -59,8 +61,88 @@ var ScreenRuleVO = class _ScreenRuleVO {
|
|
|
59
61
|
return clonePayload(screenRuleVO.payload);
|
|
60
62
|
}
|
|
61
63
|
};
|
|
64
|
+
|
|
65
|
+
// src/chat-config/value-objects/_service-rule.ts
|
|
66
|
+
var clonePayload2 = (payload) => ({
|
|
67
|
+
name: payload.name,
|
|
68
|
+
action: "service",
|
|
69
|
+
settings: {
|
|
70
|
+
...payload.settings.header !== void 0 ? { header: { ...payload.settings.header } } : {},
|
|
71
|
+
...payload.settings.body !== void 0 ? { body: { ...payload.settings.body } } : {},
|
|
72
|
+
...payload.settings.features !== void 0 ? { features: { ...payload.settings.features } } : {},
|
|
73
|
+
...payload.settings.behavior !== void 0 ? { behavior: payload.settings.behavior } : {}
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
var ServiceRuleVO = class _ServiceRuleVO {
|
|
77
|
+
payload;
|
|
78
|
+
/**
|
|
79
|
+
* Creates a service-rule value object from a complete payload.
|
|
80
|
+
* @param payload - The service-rule payload to snapshot.
|
|
81
|
+
*/
|
|
82
|
+
constructor(payload) {
|
|
83
|
+
this.payload = clonePayload2(payload);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates a value object from its JSON representation.
|
|
87
|
+
* @param payload - The service-rule JSON payload.
|
|
88
|
+
* @returns A service-rule value object containing a defensive snapshot.
|
|
89
|
+
*/
|
|
90
|
+
static fromJSON(payload) {
|
|
91
|
+
return new _ServiceRuleVO(payload);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Converts a service-rule value object to JSON.
|
|
95
|
+
* @param serviceRuleVO - The service-rule value object to serialize.
|
|
96
|
+
* @returns A defensive copy of the service-rule payload.
|
|
97
|
+
*/
|
|
98
|
+
static toJSON(serviceRuleVO) {
|
|
99
|
+
return clonePayload2(serviceRuleVO.payload);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/chat-config/value-objects/_identification-rule.ts
|
|
104
|
+
var clonePayload3 = (payload) => ({
|
|
105
|
+
name: payload.name,
|
|
106
|
+
action: "identification",
|
|
107
|
+
settings: {
|
|
108
|
+
...payload.settings.header !== void 0 ? { header: { ...payload.settings.header } } : {},
|
|
109
|
+
...payload.settings.body !== void 0 ? { body: { ...payload.settings.body } } : {},
|
|
110
|
+
form: {
|
|
111
|
+
...payload.settings.form,
|
|
112
|
+
...payload.settings.form.fields !== void 0 ? { fields: payload.settings.form.fields.map((field) => ({ ...field })) } : {}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
var IdentificationRuleVO = class _IdentificationRuleVO {
|
|
117
|
+
payload;
|
|
118
|
+
/**
|
|
119
|
+
* Creates an identification-rule value object from a complete payload.
|
|
120
|
+
* @param payload - The identification-rule payload to snapshot.
|
|
121
|
+
*/
|
|
122
|
+
constructor(payload) {
|
|
123
|
+
this.payload = clonePayload3(payload);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Creates a value object from its JSON representation.
|
|
127
|
+
* @param payload - The identification-rule JSON payload.
|
|
128
|
+
* @returns An identification-rule value object containing a defensive snapshot.
|
|
129
|
+
*/
|
|
130
|
+
static fromJSON(payload) {
|
|
131
|
+
return new _IdentificationRuleVO(payload);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Converts an identification-rule value object to JSON.
|
|
135
|
+
* @param identificationRuleVO - The identification-rule value object to serialize.
|
|
136
|
+
* @returns A defensive copy of the identification-rule payload.
|
|
137
|
+
*/
|
|
138
|
+
static toJSON(identificationRuleVO) {
|
|
139
|
+
return clonePayload3(identificationRuleVO.payload);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
62
142
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
143
|
0 && (module.exports = {
|
|
64
|
-
|
|
144
|
+
IdentificationRuleVO,
|
|
145
|
+
ScreenRuleVO,
|
|
146
|
+
ServiceRuleVO
|
|
65
147
|
});
|
|
66
148
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/chat-config/value-objects/index.ts","../../../src/chat-config/value-objects/_screen-rule.ts"],"sourcesContent":["export * from './_screen-rule';\n","import type { CreateScreenRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateScreenRuleDTO): CreateScreenRuleDTO => ({\n name: payload.name,\n action: 'screen',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n },\n});\n\n/** Value object representing a complete screen-rule payload. */\nexport class ScreenRuleVO {\n readonly payload: CreateScreenRuleDTO;\n\n /**\n * Creates a screen-rule value object from a complete payload.\n * @param payload - The screen-rule payload to snapshot.\n */\n constructor(payload: CreateScreenRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The screen-rule JSON payload.\n * @returns A screen-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateScreenRuleDTO): ScreenRuleVO {\n return new ScreenRuleVO(payload);\n }\n\n /**\n * Converts a screen-rule value object to JSON.\n * @param screenRuleVO - The screen-rule value object to serialize.\n * @returns A defensive copy of the screen-rule payload.\n */\n static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO {\n return clonePayload(screenRuleVO.payload);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAM,eAAe,CAAC,aAAuD;AAAA,EAC3E,MAAM,QAAQ;AAAA,EACd,QAAQ;AAAA,EACR,UAAU;AAAA,IACR,GAAI,QAAQ,SAAS,WAAW,SAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,IAAI,CAAC;AAAA,IAC1F,GAAI,QAAQ,SAAS,SAAS,SAAY,EAAE,MAAM,EAAE,GAAG,QAAQ,SAAS,KAAK,EAAE,IAAI,CAAC;AAAA,EACtF;AACF;AAGO,IAAM,eAAN,MAAM,cAAa;AAAA,EACf;AAAA;AAAA;AAAA;AAAA;AAAA,EAMT,YAAY,SAA8B;AACxC,SAAK,UAAU,aAAa,OAAO;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,SAAS,SAA4C;AAC1D,WAAO,IAAI,cAAa,OAAO;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,OAAO,cAAiD;AAC7D,WAAO,aAAa,aAAa,OAAO;AAAA,EAC1C;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/chat-config/value-objects/index.ts","../../../src/chat-config/value-objects/_screen-rule.ts","../../../src/chat-config/value-objects/_service-rule.ts","../../../src/chat-config/value-objects/_identification-rule.ts"],"sourcesContent":["export * from './_screen-rule';\nexport * from './_service-rule';\nexport * from './_identification-rule';\n","import type { CreateScreenRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateScreenRuleDTO): CreateScreenRuleDTO => ({\n name: payload.name,\n action: 'screen',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n },\n});\n\n/** Value object representing a complete screen-rule payload. */\nexport class ScreenRuleVO {\n readonly payload: CreateScreenRuleDTO;\n\n /**\n * Creates a screen-rule value object from a complete payload.\n * @param payload - The screen-rule payload to snapshot.\n */\n constructor(payload: CreateScreenRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The screen-rule JSON payload.\n * @returns A screen-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateScreenRuleDTO): ScreenRuleVO {\n return new ScreenRuleVO(payload);\n }\n\n /**\n * Converts a screen-rule value object to JSON.\n * @param screenRuleVO - The screen-rule value object to serialize.\n * @returns A defensive copy of the screen-rule payload.\n */\n static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO {\n return clonePayload(screenRuleVO.payload);\n }\n}\n","import type { CreateServiceRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateServiceRuleDTO): CreateServiceRuleDTO => ({\n name: payload.name,\n action: 'service',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n ...(payload.settings.features !== undefined ? { features: { ...payload.settings.features } } : {}),\n ...(payload.settings.behavior !== undefined ? { behavior: payload.settings.behavior } : {}),\n },\n});\n\n/** Value object representing a complete service-rule payload. */\nexport class ServiceRuleVO {\n readonly payload: CreateServiceRuleDTO;\n\n /**\n * Creates a service-rule value object from a complete payload.\n * @param payload - The service-rule payload to snapshot.\n */\n constructor(payload: CreateServiceRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The service-rule JSON payload.\n * @returns A service-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateServiceRuleDTO): ServiceRuleVO {\n return new ServiceRuleVO(payload);\n }\n\n /**\n * Converts a service-rule value object to JSON.\n * @param serviceRuleVO - The service-rule value object to serialize.\n * @returns A defensive copy of the service-rule payload.\n */\n static toJSON(serviceRuleVO: ServiceRuleVO): CreateServiceRuleDTO {\n return clonePayload(serviceRuleVO.payload);\n }\n}\n","import type { CreateIdentificationRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateIdentificationRuleDTO): CreateIdentificationRuleDTO => ({\n name: payload.name,\n action: 'identification',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n form: {\n ...payload.settings.form,\n ...(payload.settings.form.fields !== undefined\n ? { fields: payload.settings.form.fields.map((field) => ({ ...field })) }\n : {}),\n },\n },\n});\n\n/** Value object representing a complete identification-rule payload. */\nexport class IdentificationRuleVO {\n readonly payload: CreateIdentificationRuleDTO;\n\n /**\n * Creates an identification-rule value object from a complete payload.\n * @param payload - The identification-rule payload to snapshot.\n */\n constructor(payload: CreateIdentificationRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The identification-rule JSON payload.\n * @returns An identification-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateIdentificationRuleDTO): IdentificationRuleVO {\n return new IdentificationRuleVO(payload);\n }\n\n /**\n * Converts an identification-rule value object to JSON.\n * @param identificationRuleVO - The identification-rule value object to serialize.\n * @returns A defensive copy of the identification-rule payload.\n */\n static toJSON(identificationRuleVO: IdentificationRuleVO): CreateIdentificationRuleDTO {\n return clonePayload(identificationRuleVO.payload);\n }\n}\n"],"mappings":"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","names":["clonePayload","clonePayload"]}
|
|
@@ -33,7 +33,87 @@ var ScreenRuleVO = class _ScreenRuleVO {
|
|
|
33
33
|
return clonePayload(screenRuleVO.payload);
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
+
|
|
37
|
+
// src/chat-config/value-objects/_service-rule.ts
|
|
38
|
+
var clonePayload2 = (payload) => ({
|
|
39
|
+
name: payload.name,
|
|
40
|
+
action: "service",
|
|
41
|
+
settings: {
|
|
42
|
+
...payload.settings.header !== void 0 ? { header: { ...payload.settings.header } } : {},
|
|
43
|
+
...payload.settings.body !== void 0 ? { body: { ...payload.settings.body } } : {},
|
|
44
|
+
...payload.settings.features !== void 0 ? { features: { ...payload.settings.features } } : {},
|
|
45
|
+
...payload.settings.behavior !== void 0 ? { behavior: payload.settings.behavior } : {}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
var ServiceRuleVO = class _ServiceRuleVO {
|
|
49
|
+
payload;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a service-rule value object from a complete payload.
|
|
52
|
+
* @param payload - The service-rule payload to snapshot.
|
|
53
|
+
*/
|
|
54
|
+
constructor(payload) {
|
|
55
|
+
this.payload = clonePayload2(payload);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates a value object from its JSON representation.
|
|
59
|
+
* @param payload - The service-rule JSON payload.
|
|
60
|
+
* @returns A service-rule value object containing a defensive snapshot.
|
|
61
|
+
*/
|
|
62
|
+
static fromJSON(payload) {
|
|
63
|
+
return new _ServiceRuleVO(payload);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Converts a service-rule value object to JSON.
|
|
67
|
+
* @param serviceRuleVO - The service-rule value object to serialize.
|
|
68
|
+
* @returns A defensive copy of the service-rule payload.
|
|
69
|
+
*/
|
|
70
|
+
static toJSON(serviceRuleVO) {
|
|
71
|
+
return clonePayload2(serviceRuleVO.payload);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/chat-config/value-objects/_identification-rule.ts
|
|
76
|
+
var clonePayload3 = (payload) => ({
|
|
77
|
+
name: payload.name,
|
|
78
|
+
action: "identification",
|
|
79
|
+
settings: {
|
|
80
|
+
...payload.settings.header !== void 0 ? { header: { ...payload.settings.header } } : {},
|
|
81
|
+
...payload.settings.body !== void 0 ? { body: { ...payload.settings.body } } : {},
|
|
82
|
+
form: {
|
|
83
|
+
...payload.settings.form,
|
|
84
|
+
...payload.settings.form.fields !== void 0 ? { fields: payload.settings.form.fields.map((field) => ({ ...field })) } : {}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
var IdentificationRuleVO = class _IdentificationRuleVO {
|
|
89
|
+
payload;
|
|
90
|
+
/**
|
|
91
|
+
* Creates an identification-rule value object from a complete payload.
|
|
92
|
+
* @param payload - The identification-rule payload to snapshot.
|
|
93
|
+
*/
|
|
94
|
+
constructor(payload) {
|
|
95
|
+
this.payload = clonePayload3(payload);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Creates a value object from its JSON representation.
|
|
99
|
+
* @param payload - The identification-rule JSON payload.
|
|
100
|
+
* @returns An identification-rule value object containing a defensive snapshot.
|
|
101
|
+
*/
|
|
102
|
+
static fromJSON(payload) {
|
|
103
|
+
return new _IdentificationRuleVO(payload);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Converts an identification-rule value object to JSON.
|
|
107
|
+
* @param identificationRuleVO - The identification-rule value object to serialize.
|
|
108
|
+
* @returns A defensive copy of the identification-rule payload.
|
|
109
|
+
*/
|
|
110
|
+
static toJSON(identificationRuleVO) {
|
|
111
|
+
return clonePayload3(identificationRuleVO.payload);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
36
114
|
export {
|
|
37
|
-
|
|
115
|
+
IdentificationRuleVO,
|
|
116
|
+
ScreenRuleVO,
|
|
117
|
+
ServiceRuleVO
|
|
38
118
|
};
|
|
39
119
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/chat-config/value-objects/_screen-rule.ts"],"sourcesContent":["import type { CreateScreenRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateScreenRuleDTO): CreateScreenRuleDTO => ({\n name: payload.name,\n action: 'screen',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n },\n});\n\n/** Value object representing a complete screen-rule payload. */\nexport class ScreenRuleVO {\n readonly payload: CreateScreenRuleDTO;\n\n /**\n * Creates a screen-rule value object from a complete payload.\n * @param payload - The screen-rule payload to snapshot.\n */\n constructor(payload: CreateScreenRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The screen-rule JSON payload.\n * @returns A screen-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateScreenRuleDTO): ScreenRuleVO {\n return new ScreenRuleVO(payload);\n }\n\n /**\n * Converts a screen-rule value object to JSON.\n * @param screenRuleVO - The screen-rule value object to serialize.\n * @returns A defensive copy of the screen-rule payload.\n */\n static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO {\n return clonePayload(screenRuleVO.payload);\n }\n}\n"],"mappings":";AAEA,IAAM,eAAe,CAAC,aAAuD;AAAA,EAC3E,MAAM,QAAQ;AAAA,EACd,QAAQ;AAAA,EACR,UAAU;AAAA,IACR,GAAI,QAAQ,SAAS,WAAW,SAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,SAAS,OAAO,EAAE,IAAI,CAAC;AAAA,IAC1F,GAAI,QAAQ,SAAS,SAAS,SAAY,EAAE,MAAM,EAAE,GAAG,QAAQ,SAAS,KAAK,EAAE,IAAI,CAAC;AAAA,EACtF;AACF;AAGO,IAAM,eAAN,MAAM,cAAa;AAAA,EACf;AAAA;AAAA;AAAA;AAAA;AAAA,EAMT,YAAY,SAA8B;AACxC,SAAK,UAAU,aAAa,OAAO;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,SAAS,SAA4C;AAC1D,WAAO,IAAI,cAAa,OAAO;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,OAAO,cAAiD;AAC7D,WAAO,aAAa,aAAa,OAAO;AAAA,EAC1C;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/chat-config/value-objects/_screen-rule.ts","../../../src/chat-config/value-objects/_service-rule.ts","../../../src/chat-config/value-objects/_identification-rule.ts"],"sourcesContent":["import type { CreateScreenRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateScreenRuleDTO): CreateScreenRuleDTO => ({\n name: payload.name,\n action: 'screen',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n },\n});\n\n/** Value object representing a complete screen-rule payload. */\nexport class ScreenRuleVO {\n readonly payload: CreateScreenRuleDTO;\n\n /**\n * Creates a screen-rule value object from a complete payload.\n * @param payload - The screen-rule payload to snapshot.\n */\n constructor(payload: CreateScreenRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The screen-rule JSON payload.\n * @returns A screen-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateScreenRuleDTO): ScreenRuleVO {\n return new ScreenRuleVO(payload);\n }\n\n /**\n * Converts a screen-rule value object to JSON.\n * @param screenRuleVO - The screen-rule value object to serialize.\n * @returns A defensive copy of the screen-rule payload.\n */\n static toJSON(screenRuleVO: ScreenRuleVO): CreateScreenRuleDTO {\n return clonePayload(screenRuleVO.payload);\n }\n}\n","import type { CreateServiceRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateServiceRuleDTO): CreateServiceRuleDTO => ({\n name: payload.name,\n action: 'service',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n ...(payload.settings.features !== undefined ? { features: { ...payload.settings.features } } : {}),\n ...(payload.settings.behavior !== undefined ? { behavior: payload.settings.behavior } : {}),\n },\n});\n\n/** Value object representing a complete service-rule payload. */\nexport class ServiceRuleVO {\n readonly payload: CreateServiceRuleDTO;\n\n /**\n * Creates a service-rule value object from a complete payload.\n * @param payload - The service-rule payload to snapshot.\n */\n constructor(payload: CreateServiceRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The service-rule JSON payload.\n * @returns A service-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateServiceRuleDTO): ServiceRuleVO {\n return new ServiceRuleVO(payload);\n }\n\n /**\n * Converts a service-rule value object to JSON.\n * @param serviceRuleVO - The service-rule value object to serialize.\n * @returns A defensive copy of the service-rule payload.\n */\n static toJSON(serviceRuleVO: ServiceRuleVO): CreateServiceRuleDTO {\n return clonePayload(serviceRuleVO.payload);\n }\n}\n","import type { CreateIdentificationRuleDTO } from '../contracts';\n\nconst clonePayload = (payload: CreateIdentificationRuleDTO): CreateIdentificationRuleDTO => ({\n name: payload.name,\n action: 'identification',\n settings: {\n ...(payload.settings.header !== undefined ? { header: { ...payload.settings.header } } : {}),\n ...(payload.settings.body !== undefined ? { body: { ...payload.settings.body } } : {}),\n form: {\n ...payload.settings.form,\n ...(payload.settings.form.fields !== undefined\n ? { fields: payload.settings.form.fields.map((field) => ({ ...field })) }\n : {}),\n },\n },\n});\n\n/** Value object representing a complete identification-rule payload. */\nexport class IdentificationRuleVO {\n readonly payload: CreateIdentificationRuleDTO;\n\n /**\n * Creates an identification-rule value object from a complete payload.\n * @param payload - The identification-rule payload to snapshot.\n */\n constructor(payload: CreateIdentificationRuleDTO) {\n this.payload = clonePayload(payload);\n }\n\n /**\n * Creates a value object from its JSON representation.\n * @param payload - The identification-rule JSON payload.\n * @returns An identification-rule value object containing a defensive snapshot.\n */\n static fromJSON(payload: CreateIdentificationRuleDTO): IdentificationRuleVO {\n return new IdentificationRuleVO(payload);\n }\n\n /**\n * Converts an identification-rule value object to JSON.\n * @param identificationRuleVO - The identification-rule value object to serialize.\n * @returns A defensive copy of the identification-rule payload.\n */\n static toJSON(identificationRuleVO: IdentificationRuleVO): CreateIdentificationRuleDTO {\n return clonePayload(identificationRuleVO.payload);\n }\n}\n"],"mappings":"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","names":["clonePayload","clonePayload"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { CompanyResponse, UpdateCompanyRequest, GetSupportWidgetIdResponse, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, CompanyQueue, CompanyWithConfigsResponse, StrongPasswordOptionsResponse, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, UpdateCompanyJsonConfigRequest, CompanyBooleanConfigKey, UpdateCompanyBooleanConfigRequest, CompanyStringConfigKey, UpdateCompanyStringConfigRequest, User, ListUsersRequest, ListUsersResponse, WorkGroupListResponse, WorkGroupResponse, UserProfile, WorkGroupMembersResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UpdateCompanyUserAvatarResponse, CreateUserDeviceRequest, GetPeersResponse, CreatePeerRequest, UpdatePeerRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, AnnouncementListFilters, AnnouncementListResponse, Announcement, CreateAnnouncementRequest, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, AnnouncementType, ActiveAnnouncementQuery, ActiveAnnouncement, CreateSurveyResponseRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse } from './customer-service/contracts/index.mjs';
|
|
3
3
|
export { ActiveBannerAnnouncement, ActiveSurveyAnnouncement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementVisualStatus, BannerAnnouncementPayload, CompanyData, ListUsersInclude, ListUsersProfile, ListUsersStatus, ListUsersType, ManagedUser, Peer, StrongPasswordOptions, SurveyAnnouncementPayload, SurveyAnswer, SurveyAnswerValue, SurveyAppearance, SurveyCompletion, SurveyMultipleChoiceQuestion, SurveyMultipleChoiceQuestionConfig, SurveyPlacement, SurveyQuestion, SurveyQuestionOption, SurveyRatingQuestion, SurveyRatingQuestionConfig, SurveyReactionQuestion, SurveyReactionQuestionConfig, SurveyResponseAnswer, SurveyResponseAnswerOption, SurveySingleChoiceQuestion, SurveySingleChoiceQuestionConfig, SurveyTextQuestion, SurveyTextQuestionConfig, UserBond, UserDeviceType, WorkGroup, WorkGroupMember } from './customer-service/contracts/index.mjs';
|
|
4
|
-
import { ProviderListResponse, Config, GetProviderConfigurationsParams, ProviderConfigurationsResponse, GetProviderDisplayInfoParams, ProviderDisplayInfoResponse, GetConfigsByProviderParams, ConfigListByProviderResponse, Queue, GetMemberQueuesRequest, QueueMember, GetServiceGroupsParams, ServiceGroupsResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, FindOrCreateQueueRuleRequest, QueueRule, GetRuleByIdRequest, RuleResponse, GetRootRulesRequest, RootRulesResponse, GetRulesRequest, RulesResponse, GetRulesCountRequest, RulesCountResponse } from './chat-config/contracts/index.mjs';
|
|
5
|
-
export { ConfigProvider, DistributionType, MetaTemplateButton, Provider, ProviderConfiguration, ProviderName, QueueListResponse, Rule, RuleAction, RuleArchiveStatus, RuleAssociation, RuleAutomaticMessage, RuleCallOnQueue, RuleFlowSettings, RuleFlowTextResponse, RuleHttpMethod, RuleInteractiveType, RuleQuestionnaire, RuleQuestionnaireBodyField, RuleQuestionnaireHeader, RuleQuestionnaireInteractiveOption, RuleQuestionnaireQuestion, RuleQuestionnaireQuestionType, RuleQuestionnaireValidationAction, RuleQuestionnaireValidationRegexType, RuleSettings, RuleWebhook, RuleWebhookHeader, RuleWebhookResponseMapping, ServiceGroup, WhatsAppProviderSettings, WidgetProviderSettings } from './chat-config/contracts/index.mjs';
|
|
4
|
+
import { ProviderListResponse, Config, GetProviderConfigurationsParams, ProviderConfigurationsResponse, GetProviderDisplayInfoParams, ProviderDisplayInfoResponse, GetConfigsByProviderParams, ConfigListByProviderResponse, Queue, GetMemberQueuesRequest, QueueMember, GetServiceGroupsParams, ServiceGroupsResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, FindOrCreateQueueRuleRequest, QueueRule, GetRuleByIdRequest, RuleResponse, GetRootRulesRequest, RootRulesResponse, GetRulesRequest, RulesResponse, GetRulesCountRequest, RulesCountResponse, WorkflowDataResponse } from './chat-config/contracts/index.mjs';
|
|
5
|
+
export { ConfigProvider, DistributionType, MetaTemplateButton, Provider, ProviderConfiguration, ProviderName, QueueListResponse, Rule, RuleAction, RuleArchiveStatus, RuleAssociation, RuleAutomaticMessage, RuleCallOnQueue, RuleFlowSettings, RuleFlowTextResponse, RuleHttpMethod, RuleInteractiveType, RuleQuestionnaire, RuleQuestionnaireBodyField, RuleQuestionnaireHeader, RuleQuestionnaireInteractiveOption, RuleQuestionnaireQuestion, RuleQuestionnaireQuestionType, RuleQuestionnaireValidationAction, RuleQuestionnaireValidationRegexType, RuleSettings, RuleWebhook, RuleWebhookHeader, RuleWebhookResponseMapping, ServiceGroup, WhatsAppProviderSettings, WidgetProviderSettings, WorkflowData, WorkflowEdge } from './chat-config/contracts/index.mjs';
|
|
6
6
|
import { CampaignQueryParams, CampaignPaginatedResponse, Campaign, CreateCampaignRequest, PatchCampaignRequest, CampaignContactQueryParams, CampaignContactPaginatedResponse, CampaignContactResponse, CreateCampaignContactRequest, PatchCampaignContactRequest, CampaignContactsDashboardQueryParams, CampaignContactsDashboardData, CampaignUser, CampaignWorkGroupQueryParams, CampaignWorkGroupPaginatedResponse, CreateCampaignWorkGroupRequest, CampaignWorkGroup, CampaignCompanyQueryParams, CampaignCompanyPaginatedResponse, CampaignCompanyResponse, EnableCampaignCompanyRequest, CampaignAccessResponse } from './campaigns/contracts/index.mjs';
|
|
7
7
|
export { CampaignAccessReason, CampaignContactCampaignStatus, CampaignContactDispatchStatus, CampaignContactFilter, CampaignContactLikeQueryOperators, CampaignContactQueryOperators, CampaignContactQueryValue, CampaignContactSortDirection, CampaignContactSortParams, CampaignContactsDashboardChannelPerformance, CampaignContactsDashboardEvolutionItem, CampaignContactsDashboardExactQueryOperators, CampaignContactsDashboardFunnelItem, CampaignContactsDashboardInterval, CampaignContactsDashboardMetrics, CampaignContactsDashboardQueryValue, CampaignContactsDashboardRangeQueryOperators, CampaignContactsDashboardStatusDistribution, CampaignContactsDashboardStatusMetrics, CampaignContactsDashboardSummary, CampaignContactsDashboardTopCampaign, CampaignNameLikeQueryOperators, CampaignProvider, CampaignRetryConfig, CampaignSchedule, CampaignStatus, WhatsAppPayload, WhatsAppTemplateComponent } from './campaigns/contracts/index.mjs';
|
|
8
8
|
import { GetConfigTemplatesParams, GetConfigTemplatesResponse, FlowReadiness, FlowCatalogParams, FlowCatalogResponse, FlowDefinition } from './chat-adapter/contracts/index.mjs';
|
|
@@ -26,7 +26,7 @@ export { AccessGroup, AccessPackageGroup } from './access-hub/contracts/index.mj
|
|
|
26
26
|
import { GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserDevicesParams, GetUserDevicesResponse, RegisterUserDeviceRequest, RegisterUserDeviceResponse, DeleteUserDeviceResponse, GetUserPreferencesParams, UserPreference, CreateUserPreferenceRequest, DeleteUserPreferenceParams, DeleteUserPreferenceResponse } from './notifications/contracts/index.mjs';
|
|
27
27
|
export { DeviceType, SystemNotification, SystemNotificationType, UserDevice, UserPreferenceDevice, UserPreferenceSystemNotification } from './notifications/contracts/index.mjs';
|
|
28
28
|
export { Event } from './rh/contracts/index.mjs';
|
|
29
|
-
export { C as CreateScreenRuleDTO, a as ScreenRuleBodyComponent, S as ScreenRuleHeaderComponent } from './
|
|
29
|
+
export { e as CreateIdentificationRuleDTO, C as CreateScreenRuleDTO, b as CreateServiceRuleDTO, f as IdentificationRuleFieldComponent, I as IdentificationRuleFormComponent, a as ScreenRuleBodyComponent, S as ScreenRuleHeaderComponent, d as ServiceRuleBehavior, c as ServiceRuleFeatures } from './_identification-rule-C7mcbjha.mjs';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Gateway for interacting with the Customer Service API.
|
|
@@ -366,6 +366,12 @@ declare class ChatConfigGateway {
|
|
|
366
366
|
* @returns The total number of rules matching the filters.
|
|
367
367
|
*/
|
|
368
368
|
getRulesCount(params: GetRulesCountRequest): Promise<RulesCountResponse>;
|
|
369
|
+
/**
|
|
370
|
+
* Retrieves the rules and edges for a workflow.
|
|
371
|
+
* @param workflowId - The unique identifier of the workflow.
|
|
372
|
+
* @returns The workflow data.
|
|
373
|
+
*/
|
|
374
|
+
getWorkflowData(workflowId: string): Promise<WorkflowDataResponse>;
|
|
369
375
|
}
|
|
370
376
|
|
|
371
377
|
/**
|
|
@@ -1091,4 +1097,4 @@ declare const configure: (params: GatewayClientParams) => void;
|
|
|
1091
1097
|
*/
|
|
1092
1098
|
declare function gateway<T extends keyof GatewayMap>(service: T): GatewayMap[T];
|
|
1093
1099
|
|
|
1094
|
-
export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AppDetails, AppListResponse, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, CallEndpoint, CallReportCompanyUsageRequest, CallReportCompanyUsageResponse, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseStatus, CaseTimeEntry, ChatWebserviceCompanyUsageRequest, ChatWebserviceCompanyUsageResponse, CloneCaseRequest, ClonedCase, CommentHistoryPage, CompanyAccessPackageItem, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, CompanyQueue, CompanyResource, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCaseStatusRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreatePeerRequest, CreateSurveyResponseRequest, CreateTimeEntryRequest, CreateUserDeviceRequest, CreateUserPreferenceRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, DeleteUserDeviceResponse, DeleteUserPreferenceParams, DeleteUserPreferenceResponse, EnableCampaignCompanyRequest, FindContactByIdResponse, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAppRequest, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPeersResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetRuleByIdRequest, GetRulesCountRequest, GetRulesRequest, GetServiceGroupsParams, GetSupportWidgetIdResponse, GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserByIdResponse, GetUserDevicesParams, GetUserDevicesResponse, GetUserPreferencesParams, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCaseStatusesRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, ListUsersRequest, ListUsersResponse, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, RegisterUserDeviceRequest, RegisterUserDeviceResponse, ReplyInvitationRequest, ResolveAppDatasourceRequest, ResolveAppDatasourceResponse, RoomMemberResponse, RoomResponse, RootRulesResponse, RuleResponse, RulesCountResponse, RulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptionsResponse, SubmitAppRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCaseStatusRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyBooleanConfigRequest, UpdateCompanyJsonConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdatePeerRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, UserPreference, UserProfile, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, configure, gateway };
|
|
1100
|
+
export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AppDetails, AppListResponse, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, CallEndpoint, CallReportCompanyUsageRequest, CallReportCompanyUsageResponse, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseStatus, CaseTimeEntry, ChatWebserviceCompanyUsageRequest, ChatWebserviceCompanyUsageResponse, CloneCaseRequest, ClonedCase, CommentHistoryPage, CompanyAccessPackageItem, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, CompanyQueue, CompanyResource, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCaseStatusRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreatePeerRequest, CreateSurveyResponseRequest, CreateTimeEntryRequest, CreateUserDeviceRequest, CreateUserPreferenceRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, DeleteUserDeviceResponse, DeleteUserPreferenceParams, DeleteUserPreferenceResponse, EnableCampaignCompanyRequest, FindContactByIdResponse, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAppRequest, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPeersResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetRuleByIdRequest, GetRulesCountRequest, GetRulesRequest, GetServiceGroupsParams, GetSupportWidgetIdResponse, GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserByIdResponse, GetUserDevicesParams, GetUserDevicesResponse, GetUserPreferencesParams, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCaseStatusesRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, ListUsersRequest, ListUsersResponse, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, RegisterUserDeviceRequest, RegisterUserDeviceResponse, ReplyInvitationRequest, ResolveAppDatasourceRequest, ResolveAppDatasourceResponse, RoomMemberResponse, RoomResponse, RootRulesResponse, RuleResponse, RulesCountResponse, RulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptionsResponse, SubmitAppRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCaseStatusRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyBooleanConfigRequest, UpdateCompanyJsonConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdatePeerRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, UserPreference, UserProfile, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, WorkflowDataResponse, configure, gateway };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { CompanyResponse, UpdateCompanyRequest, GetSupportWidgetIdResponse, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, CompanyQueue, CompanyWithConfigsResponse, StrongPasswordOptionsResponse, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, UpdateCompanyJsonConfigRequest, CompanyBooleanConfigKey, UpdateCompanyBooleanConfigRequest, CompanyStringConfigKey, UpdateCompanyStringConfigRequest, User, ListUsersRequest, ListUsersResponse, WorkGroupListResponse, WorkGroupResponse, UserProfile, WorkGroupMembersResponse, GetAllUsersParams, GetAllUsersResponse, GetManagedUsersResponse, GetUserByIdResponse, UpdateCompanyUserRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UpdateCompanyUserAvatarResponse, CreateUserDeviceRequest, GetPeersResponse, CreatePeerRequest, UpdatePeerRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, AnnouncementListFilters, AnnouncementListResponse, Announcement, CreateAnnouncementRequest, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, AnnouncementType, ActiveAnnouncementQuery, ActiveAnnouncement, CreateSurveyResponseRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse } from './customer-service/contracts/index.js';
|
|
3
3
|
export { ActiveBannerAnnouncement, ActiveSurveyAnnouncement, AnnouncementAppearance, AnnouncementButton, AnnouncementCompany, AnnouncementPayload, AnnouncementTargetingRuleUrl, AnnouncementTargetingRules, AnnouncementVisualStatus, BannerAnnouncementPayload, CompanyData, ListUsersInclude, ListUsersProfile, ListUsersStatus, ListUsersType, ManagedUser, Peer, StrongPasswordOptions, SurveyAnnouncementPayload, SurveyAnswer, SurveyAnswerValue, SurveyAppearance, SurveyCompletion, SurveyMultipleChoiceQuestion, SurveyMultipleChoiceQuestionConfig, SurveyPlacement, SurveyQuestion, SurveyQuestionOption, SurveyRatingQuestion, SurveyRatingQuestionConfig, SurveyReactionQuestion, SurveyReactionQuestionConfig, SurveyResponseAnswer, SurveyResponseAnswerOption, SurveySingleChoiceQuestion, SurveySingleChoiceQuestionConfig, SurveyTextQuestion, SurveyTextQuestionConfig, UserBond, UserDeviceType, WorkGroup, WorkGroupMember } from './customer-service/contracts/index.js';
|
|
4
|
-
import { ProviderListResponse, Config, GetProviderConfigurationsParams, ProviderConfigurationsResponse, GetProviderDisplayInfoParams, ProviderDisplayInfoResponse, GetConfigsByProviderParams, ConfigListByProviderResponse, Queue, GetMemberQueuesRequest, QueueMember, GetServiceGroupsParams, ServiceGroupsResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, FindOrCreateQueueRuleRequest, QueueRule, GetRuleByIdRequest, RuleResponse, GetRootRulesRequest, RootRulesResponse, GetRulesRequest, RulesResponse, GetRulesCountRequest, RulesCountResponse } from './chat-config/contracts/index.js';
|
|
5
|
-
export { ConfigProvider, DistributionType, MetaTemplateButton, Provider, ProviderConfiguration, ProviderName, QueueListResponse, Rule, RuleAction, RuleArchiveStatus, RuleAssociation, RuleAutomaticMessage, RuleCallOnQueue, RuleFlowSettings, RuleFlowTextResponse, RuleHttpMethod, RuleInteractiveType, RuleQuestionnaire, RuleQuestionnaireBodyField, RuleQuestionnaireHeader, RuleQuestionnaireInteractiveOption, RuleQuestionnaireQuestion, RuleQuestionnaireQuestionType, RuleQuestionnaireValidationAction, RuleQuestionnaireValidationRegexType, RuleSettings, RuleWebhook, RuleWebhookHeader, RuleWebhookResponseMapping, ServiceGroup, WhatsAppProviderSettings, WidgetProviderSettings } from './chat-config/contracts/index.js';
|
|
4
|
+
import { ProviderListResponse, Config, GetProviderConfigurationsParams, ProviderConfigurationsResponse, GetProviderDisplayInfoParams, ProviderDisplayInfoResponse, GetConfigsByProviderParams, ConfigListByProviderResponse, Queue, GetMemberQueuesRequest, QueueMember, GetServiceGroupsParams, ServiceGroupsResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, FindOrCreateQueueRuleRequest, QueueRule, GetRuleByIdRequest, RuleResponse, GetRootRulesRequest, RootRulesResponse, GetRulesRequest, RulesResponse, GetRulesCountRequest, RulesCountResponse, WorkflowDataResponse } from './chat-config/contracts/index.js';
|
|
5
|
+
export { ConfigProvider, DistributionType, MetaTemplateButton, Provider, ProviderConfiguration, ProviderName, QueueListResponse, Rule, RuleAction, RuleArchiveStatus, RuleAssociation, RuleAutomaticMessage, RuleCallOnQueue, RuleFlowSettings, RuleFlowTextResponse, RuleHttpMethod, RuleInteractiveType, RuleQuestionnaire, RuleQuestionnaireBodyField, RuleQuestionnaireHeader, RuleQuestionnaireInteractiveOption, RuleQuestionnaireQuestion, RuleQuestionnaireQuestionType, RuleQuestionnaireValidationAction, RuleQuestionnaireValidationRegexType, RuleSettings, RuleWebhook, RuleWebhookHeader, RuleWebhookResponseMapping, ServiceGroup, WhatsAppProviderSettings, WidgetProviderSettings, WorkflowData, WorkflowEdge } from './chat-config/contracts/index.js';
|
|
6
6
|
import { CampaignQueryParams, CampaignPaginatedResponse, Campaign, CreateCampaignRequest, PatchCampaignRequest, CampaignContactQueryParams, CampaignContactPaginatedResponse, CampaignContactResponse, CreateCampaignContactRequest, PatchCampaignContactRequest, CampaignContactsDashboardQueryParams, CampaignContactsDashboardData, CampaignUser, CampaignWorkGroupQueryParams, CampaignWorkGroupPaginatedResponse, CreateCampaignWorkGroupRequest, CampaignWorkGroup, CampaignCompanyQueryParams, CampaignCompanyPaginatedResponse, CampaignCompanyResponse, EnableCampaignCompanyRequest, CampaignAccessResponse } from './campaigns/contracts/index.js';
|
|
7
7
|
export { CampaignAccessReason, CampaignContactCampaignStatus, CampaignContactDispatchStatus, CampaignContactFilter, CampaignContactLikeQueryOperators, CampaignContactQueryOperators, CampaignContactQueryValue, CampaignContactSortDirection, CampaignContactSortParams, CampaignContactsDashboardChannelPerformance, CampaignContactsDashboardEvolutionItem, CampaignContactsDashboardExactQueryOperators, CampaignContactsDashboardFunnelItem, CampaignContactsDashboardInterval, CampaignContactsDashboardMetrics, CampaignContactsDashboardQueryValue, CampaignContactsDashboardRangeQueryOperators, CampaignContactsDashboardStatusDistribution, CampaignContactsDashboardStatusMetrics, CampaignContactsDashboardSummary, CampaignContactsDashboardTopCampaign, CampaignNameLikeQueryOperators, CampaignProvider, CampaignRetryConfig, CampaignSchedule, CampaignStatus, WhatsAppPayload, WhatsAppTemplateComponent } from './campaigns/contracts/index.js';
|
|
8
8
|
import { GetConfigTemplatesParams, GetConfigTemplatesResponse, FlowReadiness, FlowCatalogParams, FlowCatalogResponse, FlowDefinition } from './chat-adapter/contracts/index.js';
|
|
@@ -26,7 +26,7 @@ export { AccessGroup, AccessPackageGroup } from './access-hub/contracts/index.js
|
|
|
26
26
|
import { GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserDevicesParams, GetUserDevicesResponse, RegisterUserDeviceRequest, RegisterUserDeviceResponse, DeleteUserDeviceResponse, GetUserPreferencesParams, UserPreference, CreateUserPreferenceRequest, DeleteUserPreferenceParams, DeleteUserPreferenceResponse } from './notifications/contracts/index.js';
|
|
27
27
|
export { DeviceType, SystemNotification, SystemNotificationType, UserDevice, UserPreferenceDevice, UserPreferenceSystemNotification } from './notifications/contracts/index.js';
|
|
28
28
|
export { Event } from './rh/contracts/index.js';
|
|
29
|
-
export { C as CreateScreenRuleDTO, a as ScreenRuleBodyComponent, S as ScreenRuleHeaderComponent } from './
|
|
29
|
+
export { e as CreateIdentificationRuleDTO, C as CreateScreenRuleDTO, b as CreateServiceRuleDTO, f as IdentificationRuleFieldComponent, I as IdentificationRuleFormComponent, a as ScreenRuleBodyComponent, S as ScreenRuleHeaderComponent, d as ServiceRuleBehavior, c as ServiceRuleFeatures } from './_identification-rule-C7mcbjha.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Gateway for interacting with the Customer Service API.
|
|
@@ -366,6 +366,12 @@ declare class ChatConfigGateway {
|
|
|
366
366
|
* @returns The total number of rules matching the filters.
|
|
367
367
|
*/
|
|
368
368
|
getRulesCount(params: GetRulesCountRequest): Promise<RulesCountResponse>;
|
|
369
|
+
/**
|
|
370
|
+
* Retrieves the rules and edges for a workflow.
|
|
371
|
+
* @param workflowId - The unique identifier of the workflow.
|
|
372
|
+
* @returns The workflow data.
|
|
373
|
+
*/
|
|
374
|
+
getWorkflowData(workflowId: string): Promise<WorkflowDataResponse>;
|
|
369
375
|
}
|
|
370
376
|
|
|
371
377
|
/**
|
|
@@ -1091,4 +1097,4 @@ declare const configure: (params: GatewayClientParams) => void;
|
|
|
1091
1097
|
*/
|
|
1092
1098
|
declare function gateway<T extends keyof GatewayMap>(service: T): GatewayMap[T];
|
|
1093
1099
|
|
|
1094
|
-
export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AppDetails, AppListResponse, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, CallEndpoint, CallReportCompanyUsageRequest, CallReportCompanyUsageResponse, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseStatus, CaseTimeEntry, ChatWebserviceCompanyUsageRequest, ChatWebserviceCompanyUsageResponse, CloneCaseRequest, ClonedCase, CommentHistoryPage, CompanyAccessPackageItem, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, CompanyQueue, CompanyResource, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCaseStatusRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreatePeerRequest, CreateSurveyResponseRequest, CreateTimeEntryRequest, CreateUserDeviceRequest, CreateUserPreferenceRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, DeleteUserDeviceResponse, DeleteUserPreferenceParams, DeleteUserPreferenceResponse, EnableCampaignCompanyRequest, FindContactByIdResponse, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAppRequest, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPeersResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetRuleByIdRequest, GetRulesCountRequest, GetRulesRequest, GetServiceGroupsParams, GetSupportWidgetIdResponse, GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserByIdResponse, GetUserDevicesParams, GetUserDevicesResponse, GetUserPreferencesParams, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCaseStatusesRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, ListUsersRequest, ListUsersResponse, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, RegisterUserDeviceRequest, RegisterUserDeviceResponse, ReplyInvitationRequest, ResolveAppDatasourceRequest, ResolveAppDatasourceResponse, RoomMemberResponse, RoomResponse, RootRulesResponse, RuleResponse, RulesCountResponse, RulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptionsResponse, SubmitAppRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCaseStatusRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyBooleanConfigRequest, UpdateCompanyJsonConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdatePeerRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, UserPreference, UserProfile, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, configure, gateway };
|
|
1100
|
+
export { AccessPackage, ActiveAnnouncement, ActiveAnnouncementQuery, Announcement, AnnouncementListFilters, AnnouncementListResponse, AnnouncementType, AppDetails, AppListResponse, AttachmentByIdResponse, AudioConvertResponse, AutomationPartner, AutomationPartnerAction, CallEndpoint, CallReportCompanyUsageRequest, CallReportCompanyUsageResponse, Campaign, CampaignAccessResponse, CampaignCompanyPaginatedResponse, CampaignCompanyQueryParams, CampaignCompanyResponse, CampaignContactPaginatedResponse, CampaignContactQueryParams, CampaignContactResponse, CampaignContactsDashboardData, CampaignContactsDashboardQueryParams, CampaignPaginatedResponse, CampaignQueryParams, CampaignUser, CampaignWorkGroup, CampaignWorkGroupPaginatedResponse, CampaignWorkGroupQueryParams, CancelInvitationRequest, CaseFeedByActionItem, CasePermissions, CaseStatus, CaseTimeEntry, ChatWebserviceCompanyUsageRequest, ChatWebserviceCompanyUsageResponse, CloneCaseRequest, ClonedCase, CommentHistoryPage, CompanyAccessPackageItem, CompanyBooleanConfigKey, CompanyConfigKey, CompanyConfigResponse, CompanyJsonConfigKey, CompanyQueue, CompanyResource, CompanyResponse, CompanyStringConfigKey, CompanyWithConfigsResponse, Config, ConfigListByProviderResponse, ContactCategoryResponse, ContactHistoryResponse, ContactPhoneSearchResponse, ContactResponse, CreateAnnouncementRequest, CreateAutomationPartnerRequest, CreateCampaignContactRequest, CreateCampaignRequest, CreateCampaignWorkGroupRequest, CreateCaseStatusRequest, CreateCompanyAccessPackagePayload, CreateIntegrationActionRequest, CreateIntegrationFieldRequest, CreateIntegrationPartnerRequest, CreatePeerRequest, CreateSurveyResponseRequest, CreateTimeEntryRequest, CreateUserDeviceRequest, CreateUserPreferenceRequest, CreateWebhookRequest$1 as CreateWebhookRequest, DeleteIntegrationActionParams, DeleteIntegrationFieldParams, DeleteIntegrationPartnerParams, DeleteTimeEntryRequest, DeleteUserDeviceResponse, DeleteUserPreferenceParams, DeleteUserPreferenceResponse, EnableCampaignCompanyRequest, FindContactByIdResponse, FindOrCreateContactRequest, FindOrCreateQueueRuleRequest, FlowCatalogParams, FlowCatalogResponse, FlowDefinition, FlowReadiness, ForwardMessageRequest, GenerateTwoFactorOtpRequest, GenerateTwoFactorOtpResponse, GetAccessPackagesParams, GetAllUsersParams, GetAllUsersResponse, GetAppRequest, GetAttachmentByIdRequest, GetAutomationPartnerRequest, GetCaseFeedByActionsRequest, GetCommentHistoryRequest, GetCompanyAccessPackagesParams, GetCompanyResourcesParams, GetConfigTemplatesParams, GetConfigTemplatesResponse, GetConfigsByProviderParams, GetContactPhonesParams, GetInitialContextRequest, GetInitialContextResponse, GetIntegrationHooksCatalogRequest, GetIntegrationPartnersByCompanyRequest, GetManagedUsersResponse, GetMemberQueuesRequest, GetMessagesByCursorRequest, GetMessagesByCursorResponse, GetPeersResponse, GetPresignedUrlRequest, GetProviderConfigurationsParams, GetProviderDisplayInfoParams, GetRoomByIdRequest, GetRootRulesRequest, GetRuleByIdRequest, GetRulesCountRequest, GetRulesRequest, GetServiceGroupsParams, GetSupportWidgetIdResponse, GetSystemNotificationsParams, GetSystemNotificationsResponse, GetUserByIdResponse, GetUserDevicesParams, GetUserDevicesResponse, GetUserPreferencesParams, GetWebhooksByCompanyRequest$1 as GetWebhooksByCompanyRequest, HookCatalogItem, IntegrationAction, IntegrationField, IntegrationPartner, InvitationResponse, ListAutomationActionsRequest, ListAutomationPartnersRequest, ListCaseStatusesRequest, ListCasesRequest, ListCasesResponse, ListContactHistoryRequest, ListInvitationsRequest, ListLiveUserRoomsRequest, ListTimeEntriesPage, ListTimeEntriesRequest, ListUsersRequest, ListUsersResponse, LiveUserRoomResponse, MarkMessagesAsReadRequest, MarkMessagesAsReadResponse, MessageResponse, MetaTemplateConfigResponse, MetaTemplateConfigsResponse, PaginatedResult, PatchCampaignContactRequest, PatchCampaignRequest, ProviderConfigurationsResponse, ProviderDisplayInfoResponse, ProviderListResponse, Queue, QueueMember, QueueRule, RegisterUserDeviceRequest, RegisterUserDeviceResponse, ReplyInvitationRequest, ResolveAppDatasourceRequest, ResolveAppDatasourceResponse, RoomMemberResponse, RoomResponse, RootRulesResponse, RuleResponse, RulesCountResponse, RulesResponse, SERVICE_GATEWAYS, SERVICE_GATEWAYS as SERVICE_GATEWAYS_TYPE, SendAttachmentMessageResponse, SendMessageRequest, ServiceGroupsResponse, StrongPasswordOptionsResponse, SubmitAppRequest, SurveyResponse, SurveyResponseListFilters, SurveyResponseListResponse, UpdateAnnouncementRequest, UpdateAnnouncementStatusRequest, UpdateCasePermissionsRequest, UpdateCaseStatusRequest, UpdateCompanyAccessPackagePayload, UpdateCompanyBooleanConfigRequest, UpdateCompanyJsonConfigRequest, UpdateCompanyRequest, UpdateCompanyStringConfigRequest, UpdateCompanyUserAvatarResponse, UpdateCompanyUserRequest, UpdateIntegrationActionParams, UpdateIntegrationFieldParams, UpdateMemberInRoomRequest, UpdatePeerRequest, UpdateSupportWidgetIdRequest, UpdateSupportWidgetIdResponse, UpdateTimeEntryRequest, UpdateUserPasswordRequest, UpdateUserPasswordResponse, UploadPresignedUrlResponse, User, UserPreference, UserProfile, ValidateTwoFactorOtpRequest, ValidateTwoFactorOtpResponse, WorkGroupListResponse, WorkGroupMembersResponse, WorkGroupResponse, WorkflowDataResponse, configure, gateway };
|
package/dist/index.js
CHANGED
|
@@ -625,6 +625,15 @@ var ChatConfigGateway = class {
|
|
|
625
625
|
});
|
|
626
626
|
return data;
|
|
627
627
|
}
|
|
628
|
+
/**
|
|
629
|
+
* Retrieves the rules and edges for a workflow.
|
|
630
|
+
* @param workflowId - The unique identifier of the workflow.
|
|
631
|
+
* @returns The workflow data.
|
|
632
|
+
*/
|
|
633
|
+
async getWorkflowData(workflowId) {
|
|
634
|
+
const { data } = await this.httpClient.get(`${this.baseUrl}/workflow/${workflowId}`);
|
|
635
|
+
return data;
|
|
636
|
+
}
|
|
628
637
|
};
|
|
629
638
|
|
|
630
639
|
// src/campaigns/index.ts
|