@droz-js/sdk 0.2.8 → 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 +13 -4
- package/src/drozchat.d.ts +15 -6
- 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 +43 -1
- package/src/sdks/drozbot.js +23 -1
- package/src/sdks/drozchat.d.ts +84 -28
- package/src/sdks/drozchat.js +47 -6
- package/src/sdks/droznexo.d.ts +71 -64
- package/src/sdks/droznexo.js +48 -46
- package/src/sdks/mercadolivre.d.ts +1 -1
- package/src/sdks/nucleus.d.ts +107 -1
- package/src/sdks/nucleus.js +93 -1
- package/src/sdks/reclameaqui.d.ts +1 -1
- package/src/sdks/zendesk.d.ts +1 -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>;
|
|
@@ -59,14 +68,14 @@ export declare const DrozChatWs: new () => {
|
|
|
59
68
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
|
|
60
69
|
onTicketInQueue(variables?: import("./sdks/drozchat").Exact<{
|
|
61
70
|
[key: string]: never;
|
|
62
|
-
}>, options?: unknown):
|
|
71
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInQueueSubscription>;
|
|
63
72
|
onTicketInProgressMine(variables?: import("./sdks/drozchat").Exact<{
|
|
64
73
|
[key: string]: never;
|
|
65
|
-
}>, options?: unknown):
|
|
74
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInProgressMineSubscription>;
|
|
66
75
|
onTicketClosed(variables?: import("./sdks/drozchat").Exact<{
|
|
67
76
|
[key: string]: never;
|
|
68
|
-
}>, options?: unknown):
|
|
77
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketClosedSubscription>;
|
|
69
78
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
70
79
|
ticketId: string;
|
|
71
|
-
}>, options?: unknown):
|
|
80
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
72
81
|
};
|
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>;
|
|
@@ -60,14 +69,14 @@ export declare const DrozChat: new () => {
|
|
|
60
69
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CloseTicketMutation>;
|
|
61
70
|
onTicketInQueue(variables?: import("./sdks/drozchat").Exact<{
|
|
62
71
|
[key: string]: never;
|
|
63
|
-
}>, options?: unknown):
|
|
72
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInQueueSubscription>;
|
|
64
73
|
onTicketInProgressMine(variables?: import("./sdks/drozchat").Exact<{
|
|
65
74
|
[key: string]: never;
|
|
66
|
-
}>, options?: unknown):
|
|
75
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketInProgressMineSubscription>;
|
|
67
76
|
onTicketClosed(variables?: import("./sdks/drozchat").Exact<{
|
|
68
77
|
[key: string]: never;
|
|
69
|
-
}>, options?: unknown):
|
|
78
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketClosedSubscription>;
|
|
70
79
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
71
80
|
ticketId: string;
|
|
72
|
-
}>, options?: unknown):
|
|
81
|
+
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
73
82
|
};
|
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,19 +195,35 @@ 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 ";
|
|
178
|
-
export
|
|
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 ";
|
|
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>;
|
|
181
221
|
listDrozBotInstances(variables?: ListDrozBotInstancesQueryVariables, options?: C): Promise<ListDrozBotInstancesQuery>;
|
|
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
|
}
|