@droz-js/sdk 0.2.9 → 0.2.10
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/client/helpers.js +1 -1
- package/src/client/http.d.ts +2 -2
- package/src/client/http.js +2 -0
- package/src/drozbot.d.ts +8 -2
- package/src/drozchat-ws.d.ts +9 -0
- package/src/drozchat.d.ts +11 -2
- package/src/droznexo.d.ts +14 -14
- package/src/mercadolivre.d.ts +2 -2
- package/src/nucleus.d.ts +23 -2
- package/src/reclameaqui.d.ts +2 -2
- package/src/sdks/drozbot.d.ts +42 -0
- package/src/sdks/drozbot.js +23 -1
- package/src/sdks/drozchat.d.ts +79 -23
- package/src/sdks/drozchat.js +47 -6
- package/src/sdks/droznexo.d.ts +70 -63
- package/src/sdks/droznexo.js +48 -46
- package/src/sdks/nucleus.d.ts +106 -0
- package/src/sdks/nucleus.js +93 -1
- package/src/zendesk.d.ts +2 -2
package/package.json
CHANGED
package/src/client/helpers.js
CHANGED
|
@@ -35,7 +35,7 @@ function mapGraphqlResponse(response) {
|
|
|
35
35
|
if (response && 'stack' in response && 'message' in response)
|
|
36
36
|
throw response;
|
|
37
37
|
if ('errors' in response)
|
|
38
|
-
|
|
38
|
+
throw new Error(response.errors.map(e => e.message).join('\n'));
|
|
39
39
|
if ('data' in response)
|
|
40
40
|
return response.data;
|
|
41
41
|
}
|
package/src/client/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthorizationProvider, GetSdk } from './helpers';
|
|
2
2
|
export declare function HttpClientBuilder<Sdk>(serviceName: string, getSdk: GetSdk<Sdk>): new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: AuthorizationProvider): any;
|
|
6
6
|
} & Sdk;
|
package/src/client/http.js
CHANGED
|
@@ -95,9 +95,11 @@ function HttpClientBuilder(serviceName, getSdk) {
|
|
|
95
95
|
}
|
|
96
96
|
forTenant(tenant) {
|
|
97
97
|
this.http.forTenant(tenant);
|
|
98
|
+
return this;
|
|
98
99
|
}
|
|
99
100
|
withAuthorization(authorization) {
|
|
100
101
|
this.http.withAuthorization(authorization);
|
|
102
|
+
return this;
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
return Client;
|
package/src/drozbot.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './sdks/drozbot';
|
|
2
2
|
export declare const DrozBot: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
7
|
getDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
|
|
8
8
|
id: string;
|
|
@@ -19,4 +19,10 @@ export declare const DrozBot: new () => {
|
|
|
19
19
|
removeDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
|
|
20
20
|
input: import("./sdks/drozbot").RemoveDrozBotInstanceInput;
|
|
21
21
|
}>, options?: unknown): Promise<import("./sdks/drozbot").RemoveDrozBotInstanceMutation>;
|
|
22
|
+
createDrozBotTicket(variables: import("./sdks/drozbot").Exact<{
|
|
23
|
+
input: import("./sdks/drozbot").CreateDrozBotTicketInput;
|
|
24
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").CreateDrozBotTicketMutation>;
|
|
25
|
+
createDrozBotTicketComment(variables: import("./sdks/drozbot").Exact<{
|
|
26
|
+
input: import("./sdks/drozbot").CreateDrozBotTicketCommentInput;
|
|
27
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").CreateDrozBotTicketCommentMutation>;
|
|
22
28
|
};
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -3,6 +3,15 @@ export declare const DrozChatWs: new () => {
|
|
|
3
3
|
readonly ws: any;
|
|
4
4
|
connect(): Promise<void>;
|
|
5
5
|
} & {
|
|
6
|
+
createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
7
|
+
input: import("./sdks/drozchat").CreateDrozChatAgentInput;
|
|
8
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
|
|
9
|
+
listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
|
|
10
|
+
next?: object;
|
|
11
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
|
|
12
|
+
getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
13
|
+
id: string;
|
|
14
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
|
|
6
15
|
createCustomer(variables: import("./sdks/drozchat").Exact<{
|
|
7
16
|
input: import("./sdks/drozchat").CreateCustomerInput;
|
|
8
17
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomerMutation>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export * from './sdks/drozchat';
|
|
2
2
|
export declare const DrozChat: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
|
+
createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
8
|
+
input: import("./sdks/drozchat").CreateDrozChatAgentInput;
|
|
9
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
|
|
10
|
+
listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
|
|
11
|
+
next?: object;
|
|
12
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
|
|
13
|
+
getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
14
|
+
id: string;
|
|
15
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
|
|
7
16
|
createCustomer(variables: import("./sdks/drozchat").Exact<{
|
|
8
17
|
input: import("./sdks/drozchat").CreateCustomerInput;
|
|
9
18
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateCustomerMutation>;
|
package/src/droznexo.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export * from './sdks/droznexo';
|
|
2
2
|
export declare const DrozNexo: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
8
|
-
input: import("./sdks/droznexo").
|
|
9
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").
|
|
10
|
-
|
|
7
|
+
createDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
|
|
8
|
+
input: import("./sdks/droznexo").CreateDrozNexoAgentInput;
|
|
9
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentMutation>;
|
|
10
|
+
listDrozNexoAgents(variables?: import("./sdks/droznexo").Exact<{
|
|
11
11
|
next?: object;
|
|
12
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").
|
|
13
|
-
|
|
12
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentsQuery>;
|
|
13
|
+
getDrozNexoAgent(variables: import("./sdks/droznexo").Exact<{
|
|
14
14
|
id: string;
|
|
15
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").
|
|
16
|
-
|
|
17
|
-
input: import("./sdks/droznexo").
|
|
18
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").
|
|
19
|
-
|
|
15
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").GetDrozNexoAgentQuery>;
|
|
16
|
+
createDrozNexoAgentGroup(variables: import("./sdks/droznexo").Exact<{
|
|
17
|
+
input: import("./sdks/droznexo").CreateDrozNexoAgentGroupInput;
|
|
18
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoAgentGroupMutation>;
|
|
19
|
+
listDrozNexoAgentGroups(variables?: import("./sdks/droznexo").Exact<{
|
|
20
20
|
next?: object;
|
|
21
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").
|
|
21
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentGroupsQuery>;
|
|
22
22
|
};
|
package/src/mercadolivre.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './sdks/mercadolivre';
|
|
2
2
|
export declare const MercadoLivre: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
7
|
getMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
8
8
|
id: string;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
export * from './sdks/nucleus';
|
|
2
2
|
export declare const Nucleus: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
|
+
getAgent(variables: import("./sdks/nucleus").Exact<{
|
|
8
|
+
id: string;
|
|
9
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>;
|
|
10
|
+
listAgents(variables?: import("./sdks/nucleus").Exact<{
|
|
11
|
+
next?: object;
|
|
12
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListAgentsQuery>;
|
|
13
|
+
createAgent(variables: import("./sdks/nucleus").Exact<{
|
|
14
|
+
input: import("./sdks/nucleus").CreateAgentInput;
|
|
15
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateAgentMutation>;
|
|
16
|
+
updateAgent(variables: import("./sdks/nucleus").Exact<{
|
|
17
|
+
input: import("./sdks/nucleus").UpdateAgentInput;
|
|
18
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateAgentMutation>;
|
|
19
|
+
removeAgent(variables: import("./sdks/nucleus").Exact<{
|
|
20
|
+
input: import("./sdks/nucleus").RemoveAgentInput;
|
|
21
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveAgentMutation>;
|
|
7
22
|
getApp(variables: import("./sdks/nucleus").Exact<{
|
|
8
23
|
appId: string;
|
|
9
24
|
withInstances?: boolean;
|
|
@@ -17,6 +32,12 @@ export declare const Nucleus: new () => {
|
|
|
17
32
|
appType?: import("./sdks/nucleus").AppType;
|
|
18
33
|
withApp?: boolean;
|
|
19
34
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListAppInstancesQuery>;
|
|
35
|
+
getAmplifyConfig(variables?: import("./sdks/nucleus").Exact<{
|
|
36
|
+
[key: string]: never;
|
|
37
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAmplifyConfigQuery>;
|
|
38
|
+
getAuthInfo(variables?: import("./sdks/nucleus").Exact<{
|
|
39
|
+
[key: string]: never;
|
|
40
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAuthInfoQuery>;
|
|
20
41
|
getCredentials(variables: import("./sdks/nucleus").Exact<{
|
|
21
42
|
id: string;
|
|
22
43
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetCredentialsQuery>;
|
package/src/reclameaqui.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './sdks/reclameaqui';
|
|
2
2
|
export declare const Reclameaqui: new () => {
|
|
3
3
|
readonly http: any;
|
|
4
|
-
forTenant(tenant: string):
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider):
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
} & {
|
|
7
7
|
getReclameAquiInstance(variables: import("./sdks/reclameaqui").Exact<{
|
|
8
8
|
id: string;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -87,14 +87,34 @@ export type CreateDrozBotInstanceInput = {
|
|
|
87
87
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
88
88
|
name: Scalars['String']['input'];
|
|
89
89
|
};
|
|
90
|
+
export type CreateDrozBotTicketCommentInput = {
|
|
91
|
+
comment: Scalars['String']['input'];
|
|
92
|
+
ticketId: Scalars['ID']['input'];
|
|
93
|
+
};
|
|
94
|
+
export type CreateDrozBotTicketInput = {
|
|
95
|
+
comment: Scalars['String']['input'];
|
|
96
|
+
instanceId: Scalars['ID']['input'];
|
|
97
|
+
subject: Scalars['String']['input'];
|
|
98
|
+
tags: Array<InputMaybe<Scalars['String']['input']>>;
|
|
99
|
+
};
|
|
90
100
|
export type DrozBotInstance = {
|
|
91
101
|
credentialsId: Scalars['ID']['output'];
|
|
92
102
|
id: Scalars['ID']['output'];
|
|
93
103
|
isTest?: Maybe<Scalars['Boolean']['output']>;
|
|
94
104
|
name: Scalars['String']['output'];
|
|
95
105
|
};
|
|
106
|
+
export type DrozBotTicket = {
|
|
107
|
+
id: Scalars['ID']['output'];
|
|
108
|
+
instanceId: Scalars['ID']['output'];
|
|
109
|
+
};
|
|
110
|
+
export type DrozBotTicketComment = {
|
|
111
|
+
id: Scalars['ID']['output'];
|
|
112
|
+
ticketId: Scalars['ID']['output'];
|
|
113
|
+
};
|
|
96
114
|
export type Mutation = {
|
|
97
115
|
createDrozBotInstance: DrozBotInstance;
|
|
116
|
+
createDrozBotTicket: DrozBotTicket;
|
|
117
|
+
createDrozBotTicketComment: DrozBotTicketComment;
|
|
98
118
|
removeDrozBotInstance: DrozBotInstance;
|
|
99
119
|
updateDrozBotInstance: DrozBotInstance;
|
|
100
120
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -102,6 +122,12 @@ export type Mutation = {
|
|
|
102
122
|
export type MutationCreateDrozBotInstanceArgs = {
|
|
103
123
|
input: CreateDrozBotInstanceInput;
|
|
104
124
|
};
|
|
125
|
+
export type MutationCreateDrozBotTicketArgs = {
|
|
126
|
+
input: CreateDrozBotTicketInput;
|
|
127
|
+
};
|
|
128
|
+
export type MutationCreateDrozBotTicketCommentArgs = {
|
|
129
|
+
input: CreateDrozBotTicketCommentInput;
|
|
130
|
+
};
|
|
105
131
|
export type MutationRemoveDrozBotInstanceArgs = {
|
|
106
132
|
input: RemoveDrozBotInstanceInput;
|
|
107
133
|
};
|
|
@@ -169,12 +195,26 @@ export type RemoveDrozBotInstanceMutationVariables = Exact<{
|
|
|
169
195
|
export type RemoveDrozBotInstanceMutation = {
|
|
170
196
|
removeDrozBotInstance: DrozbotFragment;
|
|
171
197
|
};
|
|
198
|
+
export type CreateDrozBotTicketMutationVariables = Exact<{
|
|
199
|
+
input: CreateDrozBotTicketInput;
|
|
200
|
+
}>;
|
|
201
|
+
export type CreateDrozBotTicketMutation = {
|
|
202
|
+
createDrozBotTicket: Pick<DrozBotTicket, 'id' | 'instanceId'>;
|
|
203
|
+
};
|
|
204
|
+
export type CreateDrozBotTicketCommentMutationVariables = Exact<{
|
|
205
|
+
input: CreateDrozBotTicketCommentInput;
|
|
206
|
+
}>;
|
|
207
|
+
export type CreateDrozBotTicketCommentMutation = {
|
|
208
|
+
createDrozBotTicketComment: Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
209
|
+
};
|
|
172
210
|
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
173
211
|
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 credentialsId\n isTest\n}\n ";
|
|
174
212
|
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
175
213
|
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
176
214
|
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
177
215
|
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n credentialsId\n isTest\n}\n ";
|
|
216
|
+
export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";
|
|
217
|
+
export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
|
|
178
218
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
179
219
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
180
220
|
getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
|
|
@@ -182,6 +222,8 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
182
222
|
createDrozBotInstance(variables: CreateDrozBotInstanceMutationVariables, options?: C): Promise<CreateDrozBotInstanceMutation>;
|
|
183
223
|
updateDrozBotInstance(variables: UpdateDrozBotInstanceMutationVariables, options?: C): Promise<UpdateDrozBotInstanceMutation>;
|
|
184
224
|
removeDrozBotInstance(variables: RemoveDrozBotInstanceMutationVariables, options?: C): Promise<RemoveDrozBotInstanceMutation>;
|
|
225
|
+
createDrozBotTicket(variables: CreateDrozBotTicketMutationVariables, options?: C): Promise<CreateDrozBotTicketMutation>;
|
|
226
|
+
createDrozBotTicketComment(variables: CreateDrozBotTicketCommentMutationVariables, options?: C): Promise<CreateDrozBotTicketCommentMutation>;
|
|
185
227
|
};
|
|
186
228
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
187
229
|
export declare const serviceName = "@droz/drozbot";
|
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.getSdk = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozbotFragmentDoc = exports.Typenames = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozbotFragmentDoc = exports.Typenames = void 0;
|
|
5
5
|
var Typenames;
|
|
6
6
|
(function (Typenames) {
|
|
7
7
|
Typenames["Any"] = "Any";
|
|
@@ -53,6 +53,22 @@ exports.RemoveDrozBotInstanceDocument = `
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
${exports.DrozbotFragmentDoc}`;
|
|
56
|
+
exports.CreateDrozBotTicketDocument = `
|
|
57
|
+
mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {
|
|
58
|
+
createDrozBotTicket(input: $input) {
|
|
59
|
+
id
|
|
60
|
+
instanceId
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`;
|
|
64
|
+
exports.CreateDrozBotTicketCommentDocument = `
|
|
65
|
+
mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {
|
|
66
|
+
createDrozBotTicketComment(input: $input) {
|
|
67
|
+
id
|
|
68
|
+
ticketId
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
56
72
|
function getSdk(requester) {
|
|
57
73
|
return {
|
|
58
74
|
getDrozBotInstance(variables, options) {
|
|
@@ -69,6 +85,12 @@ function getSdk(requester) {
|
|
|
69
85
|
},
|
|
70
86
|
removeDrozBotInstance(variables, options) {
|
|
71
87
|
return requester(exports.RemoveDrozBotInstanceDocument, variables, options);
|
|
88
|
+
},
|
|
89
|
+
createDrozBotTicket(variables, options) {
|
|
90
|
+
return requester(exports.CreateDrozBotTicketDocument, variables, options);
|
|
91
|
+
},
|
|
92
|
+
createDrozBotTicketComment(variables, options) {
|
|
93
|
+
return requester(exports.CreateDrozBotTicketCommentDocument, variables, options);
|
|
72
94
|
}
|
|
73
95
|
};
|
|
74
96
|
}
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -82,11 +82,6 @@ export type Scalars = {
|
|
|
82
82
|
output: void;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
export type Agent = {
|
|
86
|
-
email: Scalars['EmailAddress']['output'];
|
|
87
|
-
id: Scalars['ID']['output'];
|
|
88
|
-
name: Scalars['String']['output'];
|
|
89
|
-
};
|
|
90
85
|
export type AssignTicketInput = {
|
|
91
86
|
assigneeId: Scalars['ID']['input'];
|
|
92
87
|
ticketId: Scalars['ID']['input'];
|
|
@@ -101,6 +96,10 @@ export type CreateCustomerInput = {
|
|
|
101
96
|
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
102
97
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
103
98
|
};
|
|
99
|
+
export type CreateDrozChatAgentInput = {
|
|
100
|
+
email: Scalars['EmailAddress']['input'];
|
|
101
|
+
name: Scalars['String']['input'];
|
|
102
|
+
};
|
|
104
103
|
export type CreateTicketInput = {
|
|
105
104
|
customerId: Scalars['ID']['input'];
|
|
106
105
|
subject: Scalars['String']['input'];
|
|
@@ -122,6 +121,21 @@ export type CustomersConnection = {
|
|
|
122
121
|
nodes: Array<Customer>;
|
|
123
122
|
pageInfo: PageInfo;
|
|
124
123
|
};
|
|
124
|
+
export type DrozChatAgent = {
|
|
125
|
+
createdAt: Scalars['DateTime']['output'];
|
|
126
|
+
email: Scalars['EmailAddress']['output'];
|
|
127
|
+
extension?: Maybe<DrozChatAgentExtension>;
|
|
128
|
+
id: Scalars['ID']['output'];
|
|
129
|
+
name: Scalars['String']['output'];
|
|
130
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
131
|
+
};
|
|
132
|
+
export type DrozChatAgentExtension = {
|
|
133
|
+
id: Scalars['ID']['output'];
|
|
134
|
+
};
|
|
135
|
+
export type DrozChatAgentsConnection = {
|
|
136
|
+
nodes: Array<DrozChatAgent>;
|
|
137
|
+
pageInfo: PageInfo;
|
|
138
|
+
};
|
|
125
139
|
export type MarkTicketMessagesAsReadInput = {
|
|
126
140
|
ticketId: Scalars['ID']['input'];
|
|
127
141
|
};
|
|
@@ -130,6 +144,7 @@ export type Mutation = {
|
|
|
130
144
|
assignTicketMyself: Ticket;
|
|
131
145
|
closeTicket: Ticket;
|
|
132
146
|
createCustomer: Customer;
|
|
147
|
+
createDrozChatAgent: DrozChatAgent;
|
|
133
148
|
createTicket: Ticket;
|
|
134
149
|
createTicketMessage: TicketMessage;
|
|
135
150
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
@@ -149,6 +164,9 @@ export type MutationCloseTicketArgs = {
|
|
|
149
164
|
export type MutationCreateCustomerArgs = {
|
|
150
165
|
input: CreateCustomerInput;
|
|
151
166
|
};
|
|
167
|
+
export type MutationCreateDrozChatAgentArgs = {
|
|
168
|
+
input: CreateDrozChatAgentInput;
|
|
169
|
+
};
|
|
152
170
|
export type MutationCreateTicketArgs = {
|
|
153
171
|
input: CreateTicketInput;
|
|
154
172
|
};
|
|
@@ -171,10 +189,12 @@ export type PageInfo = {
|
|
|
171
189
|
export type Query = {
|
|
172
190
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
173
191
|
getCustomer?: Maybe<Customer>;
|
|
192
|
+
getDrozChatAgent?: Maybe<DrozChatAgent>;
|
|
174
193
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
175
194
|
getTicket?: Maybe<Ticket>;
|
|
176
195
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
177
196
|
listCustomers: CustomersConnection;
|
|
197
|
+
listDrozChatAgents: DrozChatAgentsConnection;
|
|
178
198
|
listTicketMessages: TicketMessagesConnection;
|
|
179
199
|
listTickets: TicketsConnection;
|
|
180
200
|
listTicketsClosed: TicketsConnection;
|
|
@@ -186,12 +206,18 @@ export type Query = {
|
|
|
186
206
|
export type QueryGetCustomerArgs = {
|
|
187
207
|
id: Scalars['ID']['input'];
|
|
188
208
|
};
|
|
209
|
+
export type QueryGetDrozChatAgentArgs = {
|
|
210
|
+
id: Scalars['ID']['input'];
|
|
211
|
+
};
|
|
189
212
|
export type QueryGetTicketArgs = {
|
|
190
213
|
id: Scalars['ID']['input'];
|
|
191
214
|
};
|
|
192
215
|
export type QueryListCustomersArgs = {
|
|
193
216
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
194
217
|
};
|
|
218
|
+
export type QueryListDrozChatAgentsArgs = {
|
|
219
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
220
|
+
};
|
|
195
221
|
export type QueryListTicketMessagesArgs = {
|
|
196
222
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
197
223
|
ticketId: Scalars['ID']['input'];
|
|
@@ -229,7 +255,7 @@ export declare enum SubscriptionAction {
|
|
|
229
255
|
Updated = "UPDATED"
|
|
230
256
|
}
|
|
231
257
|
export type Ticket = {
|
|
232
|
-
assignee?: Maybe<
|
|
258
|
+
assignee?: Maybe<DrozChatAgent>;
|
|
233
259
|
assigneeId?: Maybe<Scalars['ID']['output']>;
|
|
234
260
|
createdAt: Scalars['DateTime']['output'];
|
|
235
261
|
customer: Customer;
|
|
@@ -297,6 +323,7 @@ export type TicketsConnection = {
|
|
|
297
323
|
export declare enum Typenames {
|
|
298
324
|
Any = "Any",
|
|
299
325
|
Customers = "Customers",
|
|
326
|
+
DrozChatAgentExtension = "DrozChatAgentExtension",
|
|
300
327
|
GraphqlConnections = "GraphqlConnections",
|
|
301
328
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
302
329
|
TicketMappings = "TicketMappings",
|
|
@@ -311,7 +338,30 @@ export type UpdateCustomerInput = {
|
|
|
311
338
|
id: Scalars['ID']['input'];
|
|
312
339
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
313
340
|
};
|
|
314
|
-
export type
|
|
341
|
+
export type DrozChatAgentFragment = (Pick<DrozChatAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
|
|
342
|
+
extension?: Maybe<Pick<DrozChatAgentExtension, 'id'>>;
|
|
343
|
+
});
|
|
344
|
+
export type CreateDrozChatAgentMutationVariables = Exact<{
|
|
345
|
+
input: CreateDrozChatAgentInput;
|
|
346
|
+
}>;
|
|
347
|
+
export type CreateDrozChatAgentMutation = {
|
|
348
|
+
createDrozChatAgent: DrozChatAgentFragment;
|
|
349
|
+
};
|
|
350
|
+
export type ListDrozChatAgentsQueryVariables = Exact<{
|
|
351
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
352
|
+
}>;
|
|
353
|
+
export type ListDrozChatAgentsQuery = {
|
|
354
|
+
listDrozChatAgents: {
|
|
355
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
356
|
+
nodes: Array<DrozChatAgentFragment>;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
export type GetDrozChatAgentQueryVariables = Exact<{
|
|
360
|
+
id: Scalars['ID']['input'];
|
|
361
|
+
}>;
|
|
362
|
+
export type GetDrozChatAgentQuery = {
|
|
363
|
+
getDrozChatAgent?: Maybe<DrozChatAgentFragment>;
|
|
364
|
+
};
|
|
315
365
|
export type CustomerFragment = Pick<Customer, 'id' | 'name' | 'email' | 'createdAt' | 'updatedAt'>;
|
|
316
366
|
export type CreateCustomerMutationVariables = Exact<{
|
|
317
367
|
input: CreateCustomerInput;
|
|
@@ -341,7 +391,7 @@ export type GetCustomerQuery = {
|
|
|
341
391
|
getCustomer?: Maybe<CustomerFragment>;
|
|
342
392
|
};
|
|
343
393
|
export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
|
|
344
|
-
assignee?: Maybe<
|
|
394
|
+
assignee?: Maybe<DrozChatAgentFragment>;
|
|
345
395
|
customer: CustomerFragment;
|
|
346
396
|
});
|
|
347
397
|
export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | 'body' | 'createdAt' | 'updatedAt'>;
|
|
@@ -471,33 +521,39 @@ export type OnTicketMessageSubscription = {
|
|
|
471
521
|
message: TicketMessageFragment;
|
|
472
522
|
});
|
|
473
523
|
};
|
|
474
|
-
export declare const
|
|
524
|
+
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
|
|
475
525
|
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
476
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
526
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
477
527
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
528
|
+
export declare const CreateDrozChatAgentDocument = "\n mutation createDrozChatAgent($input: CreateDrozChatAgentInput!) {\n createDrozChatAgent(input: $input) {\n ...drozChatAgent\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
|
|
529
|
+
export declare const ListDrozChatAgentsDocument = "\n query listDrozChatAgents($next: Base64) {\n listDrozChatAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozChatAgent\n }\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
|
|
530
|
+
export declare const GetDrozChatAgentDocument = "\n query getDrozChatAgent($id: ID!) {\n getDrozChatAgent(id: $id) {\n ...drozChatAgent\n }\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n ";
|
|
478
531
|
export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
479
532
|
export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
480
533
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
481
534
|
export declare const GetCustomerDocument = "\n query getCustomer($id: ID!) {\n getCustomer(id: $id) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
482
|
-
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
483
|
-
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
484
|
-
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
485
|
-
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 id\n state\n status\n priority\n assignee {\n ...
|
|
486
|
-
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
535
|
+
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
536
|
+
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
537
|
+
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
538
|
+
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 id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
539
|
+
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
487
540
|
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
488
|
-
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
541
|
+
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
489
542
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
490
543
|
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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
491
|
-
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
492
|
-
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
493
|
-
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
494
|
-
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
495
|
-
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
496
|
-
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
497
|
-
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...
|
|
544
|
+
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
545
|
+
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
546
|
+
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
547
|
+
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
548
|
+
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
549
|
+
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
550
|
+
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
498
551
|
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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
499
552
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
500
553
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
554
|
+
createDrozChatAgent(variables: CreateDrozChatAgentMutationVariables, options?: C): Promise<CreateDrozChatAgentMutation>;
|
|
555
|
+
listDrozChatAgents(variables?: ListDrozChatAgentsQueryVariables, options?: C): Promise<ListDrozChatAgentsQuery>;
|
|
556
|
+
getDrozChatAgent(variables: GetDrozChatAgentQueryVariables, options?: C): Promise<GetDrozChatAgentQuery>;
|
|
501
557
|
createCustomer(variables: CreateCustomerMutationVariables, options?: C): Promise<CreateCustomerMutation>;
|
|
502
558
|
updateCustomer(variables: UpdateCustomerMutationVariables, options?: C): Promise<UpdateCustomerMutation>;
|
|
503
559
|
listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
|