@droz-js/sdk 0.15.0 → 0.15.1
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/package.json +1 -1
- package/src/drozbot.d.ts +3 -0
- package/src/sdks/callwe.d.ts +312 -0
- package/src/sdks/callwe.js +42 -0
- package/src/sdks/drozbot.d.ts +38 -0
- package/src/sdks/drozbot.js +13 -1
- package/src/sdks/drozchat.d.ts +13 -6
- package/src/sdks/drozchat.js +5 -0
package/package.json
CHANGED
package/src/drozbot.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
15
15
|
requestDrozBotAssess(variables: import("./sdks/drozbot").Exact<{
|
|
16
16
|
input: import("./sdks/drozbot").RequestDrozBotAssessInput;
|
|
17
17
|
}>, options?: unknown): Promise<import("./sdks/drozbot").RequestDrozBotAssessMutation>;
|
|
18
|
+
syncChatbotConversations(variables: import("./sdks/drozbot").Exact<{
|
|
19
|
+
input: import("./sdks/drozbot").SyncChatbotConversationsInput;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").SyncChatbotConversationsMutation>;
|
|
18
21
|
getDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
|
|
19
22
|
id: import("./sdks/drozbot").Scalars["ID"]["input"];
|
|
20
23
|
}>, options?: unknown): Promise<import("./sdks/drozbot").GetDrozBotInstanceQuery>;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
export type Maybe<T> = T;
|
|
2
|
+
export type InputMaybe<T> = T;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
Base64: {
|
|
45
|
+
input: object;
|
|
46
|
+
output: string;
|
|
47
|
+
};
|
|
48
|
+
CountryCode: {
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
|
+
};
|
|
52
|
+
Currency: {
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
|
+
};
|
|
56
|
+
DRN: {
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
|
+
};
|
|
60
|
+
Date: {
|
|
61
|
+
input: Date;
|
|
62
|
+
output: Date;
|
|
63
|
+
};
|
|
64
|
+
DateTime: {
|
|
65
|
+
input: Date;
|
|
66
|
+
output: Date;
|
|
67
|
+
};
|
|
68
|
+
EmailAddress: {
|
|
69
|
+
input: string;
|
|
70
|
+
output: string;
|
|
71
|
+
};
|
|
72
|
+
IPAddress: {
|
|
73
|
+
input: string;
|
|
74
|
+
output: string;
|
|
75
|
+
};
|
|
76
|
+
JSON: {
|
|
77
|
+
input: any;
|
|
78
|
+
output: any;
|
|
79
|
+
};
|
|
80
|
+
JSONObject: {
|
|
81
|
+
input: any;
|
|
82
|
+
output: any;
|
|
83
|
+
};
|
|
84
|
+
Locale: {
|
|
85
|
+
input: string;
|
|
86
|
+
output: string;
|
|
87
|
+
};
|
|
88
|
+
Number: {
|
|
89
|
+
input: string | number;
|
|
90
|
+
output: number;
|
|
91
|
+
};
|
|
92
|
+
PhoneNumber: {
|
|
93
|
+
input: string;
|
|
94
|
+
output: string;
|
|
95
|
+
};
|
|
96
|
+
Set: {
|
|
97
|
+
input: any;
|
|
98
|
+
output: any[];
|
|
99
|
+
};
|
|
100
|
+
Tag: {
|
|
101
|
+
input: string;
|
|
102
|
+
output: string;
|
|
103
|
+
};
|
|
104
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
108
|
+
Timezone: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
112
|
+
URL: {
|
|
113
|
+
input: string;
|
|
114
|
+
output: string;
|
|
115
|
+
};
|
|
116
|
+
VariableName: {
|
|
117
|
+
input: string;
|
|
118
|
+
output: string;
|
|
119
|
+
};
|
|
120
|
+
Void: {
|
|
121
|
+
input: void;
|
|
122
|
+
output: void;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
130
|
+
export declare enum AppInstanceStatus {
|
|
131
|
+
Active = "Active",
|
|
132
|
+
Failing = "Failing",
|
|
133
|
+
Inactive = "Inactive"
|
|
134
|
+
}
|
|
135
|
+
export type CallweCall = {
|
|
136
|
+
agentId?: Maybe<Scalars['String']['output']>;
|
|
137
|
+
channel?: Maybe<Scalars['String']['output']>;
|
|
138
|
+
createdAt: Scalars['DateTime']['output'];
|
|
139
|
+
csatScore?: Maybe<Scalars['Float']['output']>;
|
|
140
|
+
endedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
141
|
+
firstResponseSecs?: Maybe<Scalars['Int']['output']>;
|
|
142
|
+
id: Scalars['ID']['output'];
|
|
143
|
+
npsScore?: Maybe<Scalars['Int']['output']>;
|
|
144
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
145
|
+
resolutionSecs?: Maybe<Scalars['Int']['output']>;
|
|
146
|
+
startedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
147
|
+
status: Scalars['String']['output'];
|
|
148
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
149
|
+
};
|
|
150
|
+
export type CallweInstance = {
|
|
151
|
+
baseUrl: Scalars['String']['output'];
|
|
152
|
+
createdAt: Scalars['DateTime']['output'];
|
|
153
|
+
credentialId: Scalars['ID']['output'];
|
|
154
|
+
id: Scalars['ID']['output'];
|
|
155
|
+
name: Scalars['String']['output'];
|
|
156
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
157
|
+
};
|
|
158
|
+
export declare enum Can {
|
|
159
|
+
Manage = "manage",
|
|
160
|
+
Read = "read",
|
|
161
|
+
Remove = "remove",
|
|
162
|
+
Write = "write"
|
|
163
|
+
}
|
|
164
|
+
export type CreateCallweInstanceInput = {
|
|
165
|
+
baseUrl: Scalars['String']['input'];
|
|
166
|
+
credentialId: Scalars['ID']['input'];
|
|
167
|
+
name: Scalars['String']['input'];
|
|
168
|
+
};
|
|
169
|
+
export type I18nText = {
|
|
170
|
+
lang: Scalars['Locale']['output'];
|
|
171
|
+
value: Scalars['String']['output'];
|
|
172
|
+
};
|
|
173
|
+
export type I18nTextInput = {
|
|
174
|
+
lang: Scalars['Locale']['input'];
|
|
175
|
+
value: Scalars['String']['input'];
|
|
176
|
+
};
|
|
177
|
+
export type Mutation = {
|
|
178
|
+
createCallweInstance: CallweInstance;
|
|
179
|
+
removeCallweInstance: CallweInstance;
|
|
180
|
+
syncCallweCalls: SyncCallweCallsResult;
|
|
181
|
+
updateCallweInstance: CallweInstance;
|
|
182
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
183
|
+
};
|
|
184
|
+
export type MutationCreateCallweInstanceArgs = {
|
|
185
|
+
input: CreateCallweInstanceInput;
|
|
186
|
+
};
|
|
187
|
+
export type MutationRemoveCallweInstanceArgs = {
|
|
188
|
+
input: RemoveCallweInstanceInput;
|
|
189
|
+
};
|
|
190
|
+
export type MutationSyncCallweCallsArgs = {
|
|
191
|
+
input: SyncCallweCallsInput;
|
|
192
|
+
};
|
|
193
|
+
export type MutationUpdateCallweInstanceArgs = {
|
|
194
|
+
input: UpdateCallweInstanceInput;
|
|
195
|
+
};
|
|
196
|
+
export type NumberMatcher = {
|
|
197
|
+
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
198
|
+
eq?: Maybe<Scalars['Number']['output']>;
|
|
199
|
+
gt?: Maybe<Scalars['Number']['output']>;
|
|
200
|
+
gte?: Maybe<Scalars['Number']['output']>;
|
|
201
|
+
lt?: Maybe<Scalars['Number']['output']>;
|
|
202
|
+
lte?: Maybe<Scalars['Number']['output']>;
|
|
203
|
+
ne?: Maybe<Scalars['Number']['output']>;
|
|
204
|
+
};
|
|
205
|
+
export type NumberMatcherInput = {
|
|
206
|
+
btw?: InputMaybe<Array<Scalars['Number']['input']>>;
|
|
207
|
+
eq?: InputMaybe<Scalars['Number']['input']>;
|
|
208
|
+
gt?: InputMaybe<Scalars['Number']['input']>;
|
|
209
|
+
gte?: InputMaybe<Scalars['Number']['input']>;
|
|
210
|
+
lt?: InputMaybe<Scalars['Number']['input']>;
|
|
211
|
+
lte?: InputMaybe<Scalars['Number']['input']>;
|
|
212
|
+
ne?: InputMaybe<Scalars['Number']['input']>;
|
|
213
|
+
};
|
|
214
|
+
export type PageInfo = {
|
|
215
|
+
hasNext: Scalars['Boolean']['output'];
|
|
216
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
217
|
+
};
|
|
218
|
+
export type Query = {
|
|
219
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
220
|
+
getCallweInstance?: Maybe<CallweInstance>;
|
|
221
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
222
|
+
listCallweInstances: Array<CallweInstance>;
|
|
223
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
224
|
+
};
|
|
225
|
+
export type QueryGetCallweInstanceArgs = {
|
|
226
|
+
id: Scalars['ID']['input'];
|
|
227
|
+
};
|
|
228
|
+
export type RemoveCallweInstanceInput = {
|
|
229
|
+
id: Scalars['ID']['input'];
|
|
230
|
+
};
|
|
231
|
+
export type SearchResultsFacet = {
|
|
232
|
+
name: Scalars['String']['output'];
|
|
233
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
234
|
+
values?: Maybe<Array<SearchResultsFacetValue>>;
|
|
235
|
+
};
|
|
236
|
+
export type SearchResultsFacetStats = {
|
|
237
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
238
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
239
|
+
};
|
|
240
|
+
export type SearchResultsFacetValue = {
|
|
241
|
+
count: Scalars['Float']['output'];
|
|
242
|
+
value: Scalars['String']['output'];
|
|
243
|
+
};
|
|
244
|
+
export type SearchResultsStats = {
|
|
245
|
+
found: Scalars['Float']['output'];
|
|
246
|
+
outOf: Scalars['Float']['output'];
|
|
247
|
+
page: Scalars['Float']['output'];
|
|
248
|
+
perPage: Scalars['Float']['output'];
|
|
249
|
+
searchTime: Scalars['Float']['output'];
|
|
250
|
+
totalPages: Scalars['Float']['output'];
|
|
251
|
+
};
|
|
252
|
+
export type StringMatcher = {
|
|
253
|
+
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
254
|
+
ct?: Maybe<Scalars['String']['output']>;
|
|
255
|
+
cti?: Maybe<Scalars['String']['output']>;
|
|
256
|
+
eq?: Maybe<Scalars['String']['output']>;
|
|
257
|
+
eqi?: Maybe<Scalars['String']['output']>;
|
|
258
|
+
gt?: Maybe<Scalars['String']['output']>;
|
|
259
|
+
gte?: Maybe<Scalars['String']['output']>;
|
|
260
|
+
in?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
261
|
+
lt?: Maybe<Scalars['String']['output']>;
|
|
262
|
+
lte?: Maybe<Scalars['String']['output']>;
|
|
263
|
+
ne?: Maybe<Scalars['String']['output']>;
|
|
264
|
+
};
|
|
265
|
+
export type StringMatcherInput = {
|
|
266
|
+
btw?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
267
|
+
ct?: InputMaybe<Scalars['String']['input']>;
|
|
268
|
+
cti?: InputMaybe<Scalars['String']['input']>;
|
|
269
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
270
|
+
eqi?: InputMaybe<Scalars['String']['input']>;
|
|
271
|
+
gt?: InputMaybe<Scalars['String']['input']>;
|
|
272
|
+
gte?: InputMaybe<Scalars['String']['input']>;
|
|
273
|
+
in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
274
|
+
lt?: InputMaybe<Scalars['String']['input']>;
|
|
275
|
+
lte?: InputMaybe<Scalars['String']['input']>;
|
|
276
|
+
ne?: InputMaybe<Scalars['String']['input']>;
|
|
277
|
+
};
|
|
278
|
+
export type SyncCallweCallsInput = {
|
|
279
|
+
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
280
|
+
instanceId?: InputMaybe<Scalars['ID']['input']>;
|
|
281
|
+
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
282
|
+
};
|
|
283
|
+
export type SyncCallweCallsResult = {
|
|
284
|
+
synced: Scalars['Int']['output'];
|
|
285
|
+
};
|
|
286
|
+
export declare enum Typenames {
|
|
287
|
+
Any = "Any",
|
|
288
|
+
CallweCall = "CallweCall",
|
|
289
|
+
CallweInstance = "CallweInstance",
|
|
290
|
+
CallweSyncCursor = "CallweSyncCursor",
|
|
291
|
+
GraphqlConnections = "GraphqlConnections",
|
|
292
|
+
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
293
|
+
}
|
|
294
|
+
export type UpdateCallweInstanceInput = {
|
|
295
|
+
baseUrl?: InputMaybe<Scalars['String']['input']>;
|
|
296
|
+
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
297
|
+
id: Scalars['ID']['input'];
|
|
298
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
299
|
+
};
|
|
300
|
+
export type SyncCallweCallsMutationVariables = Exact<{
|
|
301
|
+
input: SyncCallweCallsInput;
|
|
302
|
+
}>;
|
|
303
|
+
export type SyncCallweCallsMutation = {
|
|
304
|
+
syncCallweCalls: Pick<SyncCallweCallsResult, 'synced'>;
|
|
305
|
+
};
|
|
306
|
+
export declare const SyncCallweCallsDocument = "\n mutation syncCallweCalls($input: SyncCallweCallsInput!) {\n syncCallweCalls(input: $input) {\n synced\n }\n}\n ";
|
|
307
|
+
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
308
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
309
|
+
syncCallweCalls(variables: SyncCallweCallsMutationVariables, options?: C): Promise<SyncCallweCallsMutation>;
|
|
310
|
+
};
|
|
311
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
312
|
+
export declare const serviceName = "@droz/callwe";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.serviceName = exports.SyncCallweCallsDocument = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.getSdk = getSdk;
|
|
6
|
+
var AppInstanceStatus;
|
|
7
|
+
(function (AppInstanceStatus) {
|
|
8
|
+
AppInstanceStatus["Active"] = "Active";
|
|
9
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
10
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
11
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
12
|
+
var Can;
|
|
13
|
+
(function (Can) {
|
|
14
|
+
Can["Manage"] = "manage";
|
|
15
|
+
Can["Read"] = "read";
|
|
16
|
+
Can["Remove"] = "remove";
|
|
17
|
+
Can["Write"] = "write";
|
|
18
|
+
})(Can || (exports.Can = Can = {}));
|
|
19
|
+
var Typenames;
|
|
20
|
+
(function (Typenames) {
|
|
21
|
+
Typenames["Any"] = "Any";
|
|
22
|
+
Typenames["CallweCall"] = "CallweCall";
|
|
23
|
+
Typenames["CallweInstance"] = "CallweInstance";
|
|
24
|
+
Typenames["CallweSyncCursor"] = "CallweSyncCursor";
|
|
25
|
+
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
26
|
+
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
27
|
+
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
28
|
+
exports.SyncCallweCallsDocument = `
|
|
29
|
+
mutation syncCallweCalls($input: SyncCallweCallsInput!) {
|
|
30
|
+
syncCallweCalls(input: $input) {
|
|
31
|
+
synced
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
function getSdk(requester) {
|
|
36
|
+
return {
|
|
37
|
+
syncCallweCalls(variables, options) {
|
|
38
|
+
return requester(exports.SyncCallweCallsDocument, variables, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.serviceName = '@droz/callwe';
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -160,6 +160,24 @@ export declare enum Can {
|
|
|
160
160
|
Remove = "remove",
|
|
161
161
|
Write = "write"
|
|
162
162
|
}
|
|
163
|
+
export type ChatbotConversation = {
|
|
164
|
+
channel?: Maybe<Scalars['String']['output']>;
|
|
165
|
+
contactName?: Maybe<Scalars['String']['output']>;
|
|
166
|
+
contactPhone?: Maybe<Scalars['String']['output']>;
|
|
167
|
+
createdAt: Scalars['DateTime']['output'];
|
|
168
|
+
csatScore?: Maybe<Scalars['Float']['output']>;
|
|
169
|
+
customerEmail?: Maybe<Scalars['String']['output']>;
|
|
170
|
+
endedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
171
|
+
externalUserId: Scalars['String']['output'];
|
|
172
|
+
id: Scalars['ID']['output'];
|
|
173
|
+
npsScore?: Maybe<Scalars['Int']['output']>;
|
|
174
|
+
resolutionSecs?: Maybe<Scalars['Int']['output']>;
|
|
175
|
+
startedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
176
|
+
status: Scalars['String']['output'];
|
|
177
|
+
tenantSlug: Scalars['String']['output'];
|
|
178
|
+
transferredTo?: Maybe<Scalars['String']['output']>;
|
|
179
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
180
|
+
};
|
|
163
181
|
export type CreateDrozBotInstanceInput = {
|
|
164
182
|
credentialId: Scalars['ID']['input'];
|
|
165
183
|
integrationType: DrozBotIntegrationType;
|
|
@@ -337,6 +355,7 @@ export type Mutation = {
|
|
|
337
355
|
requestDrozBotAssess: Scalars['Boolean']['output'];
|
|
338
356
|
runDrozbotAiAction: DrozbotAiActionResult;
|
|
339
357
|
runDrozbotAiActionHumanizedAnswer: DrozbotAiHumanizedAnswerResult;
|
|
358
|
+
syncChatbotConversations: SyncChatbotConversationsResult;
|
|
340
359
|
updateDrozBotInstance: DrozBotInstance;
|
|
341
360
|
upsertIntentDictionary?: Maybe<IntentDictionary>;
|
|
342
361
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -374,6 +393,9 @@ export type MutationRunDrozbotAiActionArgs = {
|
|
|
374
393
|
export type MutationRunDrozbotAiActionHumanizedAnswerArgs = {
|
|
375
394
|
input: RunAiActionHumanizedAnswerInput;
|
|
376
395
|
};
|
|
396
|
+
export type MutationSyncChatbotConversationsArgs = {
|
|
397
|
+
input: SyncChatbotConversationsInput;
|
|
398
|
+
};
|
|
377
399
|
export type MutationUpdateDrozBotInstanceArgs = {
|
|
378
400
|
input: UpdateDrozBotInstanceInput;
|
|
379
401
|
};
|
|
@@ -506,8 +528,16 @@ export type StringMatcherInput = {
|
|
|
506
528
|
lte?: InputMaybe<Scalars['String']['input']>;
|
|
507
529
|
ne?: InputMaybe<Scalars['String']['input']>;
|
|
508
530
|
};
|
|
531
|
+
export type SyncChatbotConversationsInput = {
|
|
532
|
+
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
533
|
+
};
|
|
534
|
+
export type SyncChatbotConversationsResult = {
|
|
535
|
+
synced: Scalars['Int']['output'];
|
|
536
|
+
};
|
|
509
537
|
export declare enum Typenames {
|
|
510
538
|
Any = "Any",
|
|
539
|
+
ChatbotConversation = "ChatbotConversation",
|
|
540
|
+
ChatbotSyncCursor = "ChatbotSyncCursor",
|
|
511
541
|
DrozBotAssess = "DrozBotAssess",
|
|
512
542
|
DrozBotInstance = "DrozBotInstance",
|
|
513
543
|
DrozBotRootAuth = "DrozBotRootAuth",
|
|
@@ -547,6 +577,12 @@ export type RequestDrozBotAssessMutationVariables = Exact<{
|
|
|
547
577
|
input: RequestDrozBotAssessInput;
|
|
548
578
|
}>;
|
|
549
579
|
export type RequestDrozBotAssessMutation = Pick<Mutation, 'requestDrozBotAssess'>;
|
|
580
|
+
export type SyncChatbotConversationsMutationVariables = Exact<{
|
|
581
|
+
input: SyncChatbotConversationsInput;
|
|
582
|
+
}>;
|
|
583
|
+
export type SyncChatbotConversationsMutation = {
|
|
584
|
+
syncChatbotConversations: Pick<SyncChatbotConversationsResult, 'synced'>;
|
|
585
|
+
};
|
|
550
586
|
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'isTest' | 'integrationType' | 'createdAt' | 'updatedAt'>;
|
|
551
587
|
export type DrozBotTicketCommentFragment = Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
552
588
|
export type DrozBotCustomerFragment = Pick<DrozBotCustomer, 'id' | 'name' | 'phones'>;
|
|
@@ -671,6 +707,7 @@ export declare const DrozBotWhatsAppTemplateFragmentDoc = "\n fragment drozBo
|
|
|
671
707
|
export declare const RunDrozbotAiActionDocument = "\n mutation runDrozbotAiAction($input: RunAiActionInput!) {\n runDrozbotAiAction(input: $input) {\n actions\n setVariables {\n ...aiActionVariableValue\n }\n missingVariables\n message_to_user\n context\n }\n}\n \n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
672
708
|
export declare const RunDrozbotAiActionHumanizedAnswerDocument = "\n mutation runDrozbotAiActionHumanizedAnswer($input: RunAiActionHumanizedAnswerInput!) {\n runDrozbotAiActionHumanizedAnswer(input: $input) {\n actions\n message_to_user\n }\n}\n ";
|
|
673
709
|
export declare const RequestDrozBotAssessDocument = "\n mutation requestDrozBotAssess($input: RequestDrozBotAssessInput!) {\n requestDrozBotAssess(input: $input)\n}\n ";
|
|
710
|
+
export declare const SyncChatbotConversationsDocument = "\n mutation syncChatbotConversations($input: SyncChatbotConversationsInput!) {\n syncChatbotConversations(input: $input) {\n synced\n }\n}\n ";
|
|
674
711
|
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
675
712
|
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
676
713
|
export declare const GetCustomerByPhoneDocument = "\n query getCustomerByPhone($phone: PhoneNumber!) {\n getCustomerByPhone(phone: $phone) {\n ...drozBotCustomer\n }\n}\n \n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
@@ -694,6 +731,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
694
731
|
runDrozbotAiAction(variables: RunDrozbotAiActionMutationVariables, options?: C): Promise<RunDrozbotAiActionMutation>;
|
|
695
732
|
runDrozbotAiActionHumanizedAnswer(variables: RunDrozbotAiActionHumanizedAnswerMutationVariables, options?: C): Promise<RunDrozbotAiActionHumanizedAnswerMutation>;
|
|
696
733
|
requestDrozBotAssess(variables: RequestDrozBotAssessMutationVariables, options?: C): Promise<RequestDrozBotAssessMutation>;
|
|
734
|
+
syncChatbotConversations(variables: SyncChatbotConversationsMutationVariables, options?: C): Promise<SyncChatbotConversationsMutation>;
|
|
697
735
|
getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
|
|
698
736
|
listDrozBotInstances(variables?: ListDrozBotInstancesQueryVariables, options?: C): Promise<ListDrozBotInstancesQuery>;
|
|
699
737
|
getCustomerByPhone(variables: GetCustomerByPhoneQueryVariables, options?: C): Promise<GetCustomerByPhoneQuery>;
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.GetCustomerByPhoneDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionHumanizedAnswerDocument = exports.RunDrozbotAiActionDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotCustomerFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariableValueFragmentDoc = exports.Typenames = exports.DrozbotAiAction = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.GetCustomerByPhoneDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.SyncChatbotConversationsDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionHumanizedAnswerDocument = exports.RunDrozbotAiActionDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotCustomerFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariableValueFragmentDoc = exports.Typenames = exports.DrozbotAiAction = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -60,6 +60,8 @@ var DrozbotAiAction;
|
|
|
60
60
|
var Typenames;
|
|
61
61
|
(function (Typenames) {
|
|
62
62
|
Typenames["Any"] = "Any";
|
|
63
|
+
Typenames["ChatbotConversation"] = "ChatbotConversation";
|
|
64
|
+
Typenames["ChatbotSyncCursor"] = "ChatbotSyncCursor";
|
|
63
65
|
Typenames["DrozBotAssess"] = "DrozBotAssess";
|
|
64
66
|
Typenames["DrozBotInstance"] = "DrozBotInstance";
|
|
65
67
|
Typenames["DrozBotRootAuth"] = "DrozBotRootAuth";
|
|
@@ -167,6 +169,13 @@ exports.RequestDrozBotAssessDocument = `
|
|
|
167
169
|
requestDrozBotAssess(input: $input)
|
|
168
170
|
}
|
|
169
171
|
`;
|
|
172
|
+
exports.SyncChatbotConversationsDocument = `
|
|
173
|
+
mutation syncChatbotConversations($input: SyncChatbotConversationsInput!) {
|
|
174
|
+
syncChatbotConversations(input: $input) {
|
|
175
|
+
synced
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
`;
|
|
170
179
|
exports.GetDrozBotInstanceDocument = `
|
|
171
180
|
query getDrozBotInstance($id: ID!) {
|
|
172
181
|
getDrozBotInstance(id: $id) {
|
|
@@ -302,6 +311,9 @@ function getSdk(requester) {
|
|
|
302
311
|
requestDrozBotAssess(variables, options) {
|
|
303
312
|
return requester(exports.RequestDrozBotAssessDocument, variables, options);
|
|
304
313
|
},
|
|
314
|
+
syncChatbotConversations(variables, options) {
|
|
315
|
+
return requester(exports.SyncChatbotConversationsDocument, variables, options);
|
|
316
|
+
},
|
|
305
317
|
getDrozBotInstance(variables, options) {
|
|
306
318
|
return requester(exports.GetDrozBotInstanceDocument, variables, options);
|
|
307
319
|
},
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -864,6 +864,7 @@ export type TicketMessage = {
|
|
|
864
864
|
contentType: Scalars['String']['output'];
|
|
865
865
|
createdAt: Scalars['DateTime']['output'];
|
|
866
866
|
filename?: Maybe<Scalars['String']['output']>;
|
|
867
|
+
fragments?: Maybe<TicketMessageFragments>;
|
|
867
868
|
from: TicketMessageRecipient;
|
|
868
869
|
id: Scalars['ID']['output'];
|
|
869
870
|
sender?: Maybe<DrozChatUser>;
|
|
@@ -874,6 +875,11 @@ export type TicketMessage = {
|
|
|
874
875
|
type: TicketMessageType;
|
|
875
876
|
updatedAt: Scalars['DateTime']['output'];
|
|
876
877
|
};
|
|
878
|
+
export type TicketMessageFragments = {
|
|
879
|
+
body?: Maybe<Scalars['String']['output']>;
|
|
880
|
+
quote?: Maybe<Scalars['String']['output']>;
|
|
881
|
+
signature?: Maybe<Scalars['String']['output']>;
|
|
882
|
+
};
|
|
877
883
|
export declare enum TicketMessageRecipient {
|
|
878
884
|
Agent = "AGENT",
|
|
879
885
|
Marketplace = "MARKETPLACE",
|
|
@@ -1517,6 +1523,7 @@ export type TicketWithSessionFragment = ({
|
|
|
1517
1523
|
} & TicketFragment);
|
|
1518
1524
|
export type TicketMessageFragment = (Pick<TicketMessage, 'id' | 'ticketId' | 'from' | 'to' | 'channelId' | 'contentType' | 'content' | 'filename' | 'size' | 'type' | 'createdAt' | 'updatedAt'> & {
|
|
1519
1525
|
sender?: Maybe<DrozChatUser_DrozChatAgent_Fragment | DrozChatUser_DrozChatCustomer_Fragment>;
|
|
1526
|
+
fragments?: Maybe<Pick<TicketMessageFragments, 'body' | 'quote' | 'signature'>>;
|
|
1520
1527
|
});
|
|
1521
1528
|
export type SessionAttributesFragment = Pick<TicketSessionAttributes, 'organization' | 'source' | 'order' | 'products' | 'reviewRequest' | 'review' | 'tags'>;
|
|
1522
1529
|
type Facets_AgentSearchResultsFacet_Fragment = (Pick<AgentSearchResultsFacet, 'name'> & {
|
|
@@ -1830,7 +1837,7 @@ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n c
|
|
|
1830
1837
|
export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1831
1838
|
export declare const TicketWithSessionFragmentDoc = "\n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n ";
|
|
1832
1839
|
export declare const DrozChatUserFragmentDoc = "\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1833
|
-
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n ";
|
|
1840
|
+
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n ";
|
|
1834
1841
|
export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on CustomerSearchResultsFacet {\n name\n values {\n value\n customer {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1835
1842
|
export declare const TriggerFragmentDoc = "\n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1836
1843
|
export declare const ViewFragmentDoc = "\n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1880,8 +1887,8 @@ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n g
|
|
|
1880
1887
|
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1881
1888
|
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1882
1889
|
export declare const ListTicketsInProgressMineWithoutCustomerDocument = "\n query listTicketsInProgressMineWithoutCustomer($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticketWithoutCustomer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticketWithoutCustomer on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
1883
|
-
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1884
|
-
export declare const ListTicketInternalNotesDocument = "\n query listTicketInternalNotes($ticketId: ID!, $next: Base64) {\n listTicketInternalNotes(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1890
|
+
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1891
|
+
export declare const ListTicketInternalNotesDocument = "\n query listTicketInternalNotes($ticketId: ID!, $next: Base64) {\n listTicketInternalNotes(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1885
1892
|
export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on CustomerSearchResultsFacet {\n name\n values {\n value\n customer {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1886
1893
|
export declare const SearchTicketsWithoutCustomerDocument = "\n query searchTicketsWithoutCustomer($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithoutCustomer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticketWithoutCustomer on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on CustomerSearchResultsFacet {\n name\n values {\n value\n customer {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
1887
1894
|
export declare const UnsafeSearchTicketsDocument = "\n query unsafeSearchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n unsafeSearchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n ...facets\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on CustomerSearchResultsFacet {\n name\n values {\n value\n customer {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
|
|
@@ -1889,8 +1896,8 @@ export declare const AssertChatActionsDocument = "\n query assertChatActions(
|
|
|
1889
1896
|
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1890
1897
|
export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1891
1898
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
1892
|
-
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1893
|
-
export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1899
|
+
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1900
|
+
export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1894
1901
|
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1895
1902
|
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1896
1903
|
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
@@ -1900,7 +1907,7 @@ export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFr
|
|
|
1900
1907
|
export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1901
1908
|
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1902
1909
|
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1903
|
-
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1910
|
+
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1904
1911
|
export declare const ListTriggersDocument = "\n query ListTriggers {\n listTriggers {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1905
1912
|
export declare const GetTriggerDocument = "\n query GetTrigger($id: ID!) {\n getTrigger(id: $id) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1906
1913
|
export declare const CreateTriggerDocument = "\n mutation CreateTrigger($input: CreateTriggerInput!) {\n createTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|