@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/src/sdks/drozchat.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.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.GetCustomerDocument = exports.ListCustomersDocument = exports.UpdateCustomerDocument = exports.CreateCustomerDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.GetCustomerDocument = exports.ListCustomersDocument = exports.UpdateCustomerDocument = exports.CreateCustomerDocument = exports.GetDrozChatAgentDocument = exports.ListDrozChatAgentsDocument = exports.CreateDrozChatAgentDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = void 0;
|
|
5
5
|
var SubscriptionAction;
|
|
6
6
|
(function (SubscriptionAction) {
|
|
7
7
|
SubscriptionAction["Created"] = "CREATED";
|
|
@@ -39,17 +39,22 @@ var Typenames;
|
|
|
39
39
|
(function (Typenames) {
|
|
40
40
|
Typenames["Any"] = "Any";
|
|
41
41
|
Typenames["Customers"] = "Customers";
|
|
42
|
+
Typenames["DrozChatAgentExtension"] = "DrozChatAgentExtension";
|
|
42
43
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
43
44
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
44
45
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
45
46
|
Typenames["TicketMessages"] = "TicketMessages";
|
|
46
47
|
Typenames["Tickets"] = "Tickets";
|
|
47
48
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
48
|
-
exports.
|
|
49
|
-
fragment
|
|
49
|
+
exports.DrozChatAgentFragmentDoc = `
|
|
50
|
+
fragment drozChatAgent on DrozChatAgent {
|
|
50
51
|
id
|
|
51
52
|
name
|
|
52
|
-
|
|
53
|
+
createdAt
|
|
54
|
+
updatedAt
|
|
55
|
+
extension {
|
|
56
|
+
id
|
|
57
|
+
}
|
|
53
58
|
}
|
|
54
59
|
`;
|
|
55
60
|
exports.CustomerFragmentDoc = `
|
|
@@ -68,7 +73,7 @@ exports.TicketFragmentDoc = `
|
|
|
68
73
|
status
|
|
69
74
|
priority
|
|
70
75
|
assignee {
|
|
71
|
-
...
|
|
76
|
+
...drozChatAgent
|
|
72
77
|
}
|
|
73
78
|
customer {
|
|
74
79
|
...customer
|
|
@@ -80,7 +85,7 @@ exports.TicketFragmentDoc = `
|
|
|
80
85
|
createdAt
|
|
81
86
|
updatedAt
|
|
82
87
|
}
|
|
83
|
-
${exports.
|
|
88
|
+
${exports.DrozChatAgentFragmentDoc}
|
|
84
89
|
${exports.CustomerFragmentDoc}`;
|
|
85
90
|
exports.TicketMessageFragmentDoc = `
|
|
86
91
|
fragment ticketMessage on TicketMessage {
|
|
@@ -94,6 +99,33 @@ exports.TicketMessageFragmentDoc = `
|
|
|
94
99
|
updatedAt
|
|
95
100
|
}
|
|
96
101
|
`;
|
|
102
|
+
exports.CreateDrozChatAgentDocument = `
|
|
103
|
+
mutation createDrozChatAgent($input: CreateDrozChatAgentInput!) {
|
|
104
|
+
createDrozChatAgent(input: $input) {
|
|
105
|
+
...drozChatAgent
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
109
|
+
exports.ListDrozChatAgentsDocument = `
|
|
110
|
+
query listDrozChatAgents($next: Base64) {
|
|
111
|
+
listDrozChatAgents(next: $next) {
|
|
112
|
+
pageInfo {
|
|
113
|
+
hasNext
|
|
114
|
+
next
|
|
115
|
+
}
|
|
116
|
+
nodes {
|
|
117
|
+
...drozChatAgent
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
122
|
+
exports.GetDrozChatAgentDocument = `
|
|
123
|
+
query getDrozChatAgent($id: ID!) {
|
|
124
|
+
getDrozChatAgent(id: $id) {
|
|
125
|
+
...drozChatAgent
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
${exports.DrozChatAgentFragmentDoc}`;
|
|
97
129
|
exports.CreateCustomerDocument = `
|
|
98
130
|
mutation createCustomer($input: CreateCustomerInput!) {
|
|
99
131
|
createCustomer(input: $input) {
|
|
@@ -289,6 +321,15 @@ exports.OnTicketMessageDocument = `
|
|
|
289
321
|
${exports.TicketMessageFragmentDoc}`;
|
|
290
322
|
function getSdk(requester) {
|
|
291
323
|
return {
|
|
324
|
+
createDrozChatAgent(variables, options) {
|
|
325
|
+
return requester(exports.CreateDrozChatAgentDocument, variables, options);
|
|
326
|
+
},
|
|
327
|
+
listDrozChatAgents(variables, options) {
|
|
328
|
+
return requester(exports.ListDrozChatAgentsDocument, variables, options);
|
|
329
|
+
},
|
|
330
|
+
getDrozChatAgent(variables, options) {
|
|
331
|
+
return requester(exports.GetDrozChatAgentDocument, variables, options);
|
|
332
|
+
},
|
|
292
333
|
createCustomer(variables, options) {
|
|
293
334
|
return requester(exports.CreateCustomerDocument, variables, options);
|
|
294
335
|
},
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -82,45 +82,50 @@ export type Scalars = {
|
|
|
82
82
|
output: void;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
export type
|
|
85
|
+
export type CreateDrozNexoAgentGroupInput = {
|
|
86
|
+
name: Scalars['ID']['input'];
|
|
87
|
+
};
|
|
88
|
+
export type CreateDrozNexoAgentInput = {
|
|
89
|
+
email: Scalars['EmailAddress']['input'];
|
|
90
|
+
groupIds: Scalars['Set']['input'];
|
|
91
|
+
name: Scalars['String']['input'];
|
|
92
|
+
};
|
|
93
|
+
export type DrozNexoAgent = {
|
|
86
94
|
createdAt: Scalars['DateTime']['output'];
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
email: Scalars['EmailAddress']['output'];
|
|
96
|
+
extension?: Maybe<DrozNexoAgentExtension>;
|
|
89
97
|
id: Scalars['ID']['output'];
|
|
90
98
|
name: Scalars['String']['output'];
|
|
91
99
|
updatedAt: Scalars['DateTime']['output'];
|
|
92
100
|
};
|
|
93
|
-
export type
|
|
101
|
+
export type DrozNexoAgentExtension = {
|
|
102
|
+
groupIds?: Maybe<Scalars['Set']['output']>;
|
|
103
|
+
groups?: Maybe<Array<DrozNexoAgentGroup>>;
|
|
104
|
+
};
|
|
105
|
+
export type DrozNexoAgentGroup = {
|
|
94
106
|
createdAt: Scalars['DateTime']['output'];
|
|
95
107
|
id: Scalars['ID']['output'];
|
|
96
108
|
name: Scalars['String']['output'];
|
|
97
109
|
updatedAt: Scalars['DateTime']['output'];
|
|
98
110
|
};
|
|
99
|
-
export type
|
|
100
|
-
nodes: Array<
|
|
111
|
+
export type DrozNexoAgentGroupsConnection = {
|
|
112
|
+
nodes: Array<DrozNexoAgentGroup>;
|
|
101
113
|
pageInfo: PageInfo;
|
|
102
114
|
};
|
|
103
|
-
export type
|
|
104
|
-
nodes: Array<
|
|
115
|
+
export type DrozNexoAgentsConnection = {
|
|
116
|
+
nodes: Array<DrozNexoAgent>;
|
|
105
117
|
pageInfo: PageInfo;
|
|
106
118
|
};
|
|
107
|
-
export type CreateAgentGroupInput = {
|
|
108
|
-
name: Scalars['ID']['input'];
|
|
109
|
-
};
|
|
110
|
-
export type CreateAgentInput = {
|
|
111
|
-
groupIds: Array<Scalars['String']['input']>;
|
|
112
|
-
name: Scalars['String']['input'];
|
|
113
|
-
};
|
|
114
119
|
export type Mutation = {
|
|
115
|
-
|
|
116
|
-
|
|
120
|
+
createDrozNexoAgent: DrozNexoAgent;
|
|
121
|
+
createDrozNexoAgentGroup: DrozNexoAgentGroup;
|
|
117
122
|
version?: Maybe<Scalars['String']['output']>;
|
|
118
123
|
};
|
|
119
|
-
export type
|
|
120
|
-
input:
|
|
124
|
+
export type MutationCreateDrozNexoAgentArgs = {
|
|
125
|
+
input: CreateDrozNexoAgentInput;
|
|
121
126
|
};
|
|
122
|
-
export type
|
|
123
|
-
input:
|
|
127
|
+
export type MutationCreateDrozNexoAgentGroupArgs = {
|
|
128
|
+
input: CreateDrozNexoAgentGroupInput;
|
|
124
129
|
};
|
|
125
130
|
export type PageInfo = {
|
|
126
131
|
hasNext: Scalars['Boolean']['output'];
|
|
@@ -128,20 +133,20 @@ export type PageInfo = {
|
|
|
128
133
|
};
|
|
129
134
|
export type Query = {
|
|
130
135
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
131
|
-
|
|
136
|
+
getDrozNexoAgent?: Maybe<DrozNexoAgent>;
|
|
132
137
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
133
138
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
listDrozNexoAgentGroups: DrozNexoAgentGroupsConnection;
|
|
140
|
+
listDrozNexoAgents: DrozNexoAgentsConnection;
|
|
136
141
|
version?: Maybe<Scalars['String']['output']>;
|
|
137
142
|
};
|
|
138
|
-
export type
|
|
143
|
+
export type QueryGetDrozNexoAgentArgs = {
|
|
139
144
|
id: Scalars['ID']['input'];
|
|
140
145
|
};
|
|
141
|
-
export type
|
|
146
|
+
export type QueryListDrozNexoAgentGroupsArgs = {
|
|
142
147
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
143
148
|
};
|
|
144
|
-
export type
|
|
149
|
+
export type QueryListDrozNexoAgentsArgs = {
|
|
145
150
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
146
151
|
};
|
|
147
152
|
export type Subscription = {
|
|
@@ -153,66 +158,68 @@ export declare enum SubscriptionAction {
|
|
|
153
158
|
Updated = "UPDATED"
|
|
154
159
|
}
|
|
155
160
|
export declare enum Typenames {
|
|
156
|
-
AgentGroups = "AgentGroups",
|
|
157
|
-
Agents = "Agents",
|
|
158
161
|
Any = "Any",
|
|
162
|
+
DrozNexoAgentExtension = "DrozNexoAgentExtension",
|
|
163
|
+
DrozNexoAgentGroups = "DrozNexoAgentGroups",
|
|
159
164
|
GraphqlConnections = "GraphqlConnections",
|
|
160
165
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
161
166
|
}
|
|
162
|
-
export type
|
|
163
|
-
|
|
167
|
+
export type DrozNexoAgentFragment = (Pick<DrozNexoAgent, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
|
|
168
|
+
extension?: Maybe<(Pick<DrozNexoAgentExtension, 'groupIds'> & {
|
|
169
|
+
groups?: Maybe<Array<DrozNexoAgentGroupFragment>>;
|
|
170
|
+
})>;
|
|
164
171
|
});
|
|
165
|
-
export type
|
|
166
|
-
export type
|
|
167
|
-
input:
|
|
172
|
+
export type DrozNexoAgentGroupFragment = Pick<DrozNexoAgentGroup, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
173
|
+
export type CreateDrozNexoAgentMutationVariables = Exact<{
|
|
174
|
+
input: CreateDrozNexoAgentInput;
|
|
168
175
|
}>;
|
|
169
|
-
export type
|
|
170
|
-
|
|
176
|
+
export type CreateDrozNexoAgentMutation = {
|
|
177
|
+
createDrozNexoAgent: DrozNexoAgentFragment;
|
|
171
178
|
};
|
|
172
|
-
export type
|
|
179
|
+
export type ListDrozNexoAgentsQueryVariables = Exact<{
|
|
173
180
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
174
181
|
}>;
|
|
175
|
-
export type
|
|
176
|
-
|
|
182
|
+
export type ListDrozNexoAgentsQuery = {
|
|
183
|
+
listDrozNexoAgents: {
|
|
177
184
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
178
|
-
nodes: Array<
|
|
185
|
+
nodes: Array<DrozNexoAgentFragment>;
|
|
179
186
|
};
|
|
180
187
|
};
|
|
181
|
-
export type
|
|
188
|
+
export type GetDrozNexoAgentQueryVariables = Exact<{
|
|
182
189
|
id: Scalars['ID']['input'];
|
|
183
190
|
}>;
|
|
184
|
-
export type
|
|
185
|
-
|
|
191
|
+
export type GetDrozNexoAgentQuery = {
|
|
192
|
+
getDrozNexoAgent?: Maybe<DrozNexoAgentFragment>;
|
|
186
193
|
};
|
|
187
|
-
export type
|
|
188
|
-
input:
|
|
194
|
+
export type CreateDrozNexoAgentGroupMutationVariables = Exact<{
|
|
195
|
+
input: CreateDrozNexoAgentGroupInput;
|
|
189
196
|
}>;
|
|
190
|
-
export type
|
|
191
|
-
|
|
197
|
+
export type CreateDrozNexoAgentGroupMutation = {
|
|
198
|
+
createDrozNexoAgentGroup: DrozNexoAgentGroupFragment;
|
|
192
199
|
};
|
|
193
|
-
export type
|
|
200
|
+
export type ListDrozNexoAgentGroupsQueryVariables = Exact<{
|
|
194
201
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
195
202
|
}>;
|
|
196
|
-
export type
|
|
197
|
-
|
|
203
|
+
export type ListDrozNexoAgentGroupsQuery = {
|
|
204
|
+
listDrozNexoAgentGroups: {
|
|
198
205
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
199
|
-
nodes: Array<
|
|
206
|
+
nodes: Array<DrozNexoAgentGroupFragment>;
|
|
200
207
|
};
|
|
201
208
|
};
|
|
202
|
-
export declare const
|
|
203
|
-
export declare const
|
|
204
|
-
export declare const
|
|
205
|
-
export declare const
|
|
206
|
-
export declare const
|
|
207
|
-
export declare const
|
|
208
|
-
export declare const
|
|
209
|
+
export declare const DrozNexoAgentGroupFragmentDoc = "\n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
210
|
+
export declare const DrozNexoAgentFragmentDoc = "\n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
211
|
+
export declare const CreateDrozNexoAgentDocument = "\n mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {\n createDrozNexoAgent(input: $input) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
212
|
+
export declare const ListDrozNexoAgentsDocument = "\n query listDrozNexoAgents($next: Base64) {\n listDrozNexoAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgent\n }\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
213
|
+
export declare const GetDrozNexoAgentDocument = "\n query getDrozNexoAgent($id: ID!) {\n getDrozNexoAgent(id: $id) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
214
|
+
export declare const CreateDrozNexoAgentGroupDocument = "\n mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {\n createDrozNexoAgentGroup(input: $input) {\n ...drozNexoAgentGroup\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
215
|
+
export declare const ListDrozNexoAgentGroupsDocument = "\n query listDrozNexoAgentGroups($next: Base64) {\n listDrozNexoAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
209
216
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
210
217
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
createDrozNexoAgent(variables: CreateDrozNexoAgentMutationVariables, options?: C): Promise<CreateDrozNexoAgentMutation>;
|
|
219
|
+
listDrozNexoAgents(variables?: ListDrozNexoAgentsQueryVariables, options?: C): Promise<ListDrozNexoAgentsQuery>;
|
|
220
|
+
getDrozNexoAgent(variables: GetDrozNexoAgentQueryVariables, options?: C): Promise<GetDrozNexoAgentQuery>;
|
|
221
|
+
createDrozNexoAgentGroup(variables: CreateDrozNexoAgentGroupMutationVariables, options?: C): Promise<CreateDrozNexoAgentGroupMutation>;
|
|
222
|
+
listDrozNexoAgentGroups(variables?: ListDrozNexoAgentGroupsQueryVariables, options?: C): Promise<ListDrozNexoAgentGroupsQuery>;
|
|
216
223
|
};
|
|
217
224
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
218
225
|
export declare const serviceName = "@droz/droznexo";
|
package/src/sdks/droznexo.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.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.SubscriptionAction = void 0;
|
|
5
5
|
var SubscriptionAction;
|
|
6
6
|
(function (SubscriptionAction) {
|
|
7
7
|
SubscriptionAction["Created"] = "CREATED";
|
|
@@ -10,95 +10,97 @@ var SubscriptionAction;
|
|
|
10
10
|
})(SubscriptionAction || (exports.SubscriptionAction = SubscriptionAction = {}));
|
|
11
11
|
var Typenames;
|
|
12
12
|
(function (Typenames) {
|
|
13
|
-
Typenames["AgentGroups"] = "AgentGroups";
|
|
14
|
-
Typenames["Agents"] = "Agents";
|
|
15
13
|
Typenames["Any"] = "Any";
|
|
14
|
+
Typenames["DrozNexoAgentExtension"] = "DrozNexoAgentExtension";
|
|
15
|
+
Typenames["DrozNexoAgentGroups"] = "DrozNexoAgentGroups";
|
|
16
16
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
17
17
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
18
18
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
19
|
-
exports.
|
|
20
|
-
fragment
|
|
19
|
+
exports.DrozNexoAgentGroupFragmentDoc = `
|
|
20
|
+
fragment drozNexoAgentGroup on DrozNexoAgentGroup {
|
|
21
21
|
id
|
|
22
22
|
name
|
|
23
23
|
createdAt
|
|
24
24
|
updatedAt
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
|
-
exports.
|
|
28
|
-
fragment
|
|
27
|
+
exports.DrozNexoAgentFragmentDoc = `
|
|
28
|
+
fragment drozNexoAgent on DrozNexoAgent {
|
|
29
29
|
id
|
|
30
30
|
name
|
|
31
|
-
groupIds
|
|
32
31
|
createdAt
|
|
33
32
|
updatedAt
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
extension {
|
|
34
|
+
groupIds
|
|
35
|
+
groups {
|
|
36
|
+
...drozNexoAgentGroup
|
|
37
|
+
}
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
${exports.
|
|
39
|
-
exports.
|
|
40
|
-
mutation
|
|
41
|
-
|
|
42
|
-
...
|
|
40
|
+
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
41
|
+
exports.CreateDrozNexoAgentDocument = `
|
|
42
|
+
mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {
|
|
43
|
+
createDrozNexoAgent(input: $input) {
|
|
44
|
+
...drozNexoAgent
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
|
-
${exports.
|
|
46
|
-
exports.
|
|
47
|
-
query
|
|
48
|
-
|
|
47
|
+
${exports.DrozNexoAgentFragmentDoc}`;
|
|
48
|
+
exports.ListDrozNexoAgentsDocument = `
|
|
49
|
+
query listDrozNexoAgents($next: Base64) {
|
|
50
|
+
listDrozNexoAgents(next: $next) {
|
|
49
51
|
pageInfo {
|
|
50
52
|
hasNext
|
|
51
53
|
next
|
|
52
54
|
}
|
|
53
55
|
nodes {
|
|
54
|
-
...
|
|
56
|
+
...drozNexoAgent
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
${exports.
|
|
59
|
-
exports.
|
|
60
|
-
query
|
|
61
|
-
|
|
62
|
-
...
|
|
60
|
+
${exports.DrozNexoAgentFragmentDoc}`;
|
|
61
|
+
exports.GetDrozNexoAgentDocument = `
|
|
62
|
+
query getDrozNexoAgent($id: ID!) {
|
|
63
|
+
getDrozNexoAgent(id: $id) {
|
|
64
|
+
...drozNexoAgent
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
|
-
${exports.
|
|
66
|
-
exports.
|
|
67
|
-
mutation
|
|
68
|
-
|
|
69
|
-
...
|
|
67
|
+
${exports.DrozNexoAgentFragmentDoc}`;
|
|
68
|
+
exports.CreateDrozNexoAgentGroupDocument = `
|
|
69
|
+
mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {
|
|
70
|
+
createDrozNexoAgentGroup(input: $input) {
|
|
71
|
+
...drozNexoAgentGroup
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
${exports.
|
|
73
|
-
exports.
|
|
74
|
-
query
|
|
75
|
-
|
|
74
|
+
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
75
|
+
exports.ListDrozNexoAgentGroupsDocument = `
|
|
76
|
+
query listDrozNexoAgentGroups($next: Base64) {
|
|
77
|
+
listDrozNexoAgentGroups(next: $next) {
|
|
76
78
|
pageInfo {
|
|
77
79
|
hasNext
|
|
78
80
|
next
|
|
79
81
|
}
|
|
80
82
|
nodes {
|
|
81
|
-
...
|
|
83
|
+
...drozNexoAgentGroup
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
${exports.
|
|
87
|
+
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
86
88
|
function getSdk(requester) {
|
|
87
89
|
return {
|
|
88
|
-
|
|
89
|
-
return requester(exports.
|
|
90
|
+
createDrozNexoAgent(variables, options) {
|
|
91
|
+
return requester(exports.CreateDrozNexoAgentDocument, variables, options);
|
|
90
92
|
},
|
|
91
|
-
|
|
92
|
-
return requester(exports.
|
|
93
|
+
listDrozNexoAgents(variables, options) {
|
|
94
|
+
return requester(exports.ListDrozNexoAgentsDocument, variables, options);
|
|
93
95
|
},
|
|
94
|
-
|
|
95
|
-
return requester(exports.
|
|
96
|
+
getDrozNexoAgent(variables, options) {
|
|
97
|
+
return requester(exports.GetDrozNexoAgentDocument, variables, options);
|
|
96
98
|
},
|
|
97
|
-
|
|
98
|
-
return requester(exports.
|
|
99
|
+
createDrozNexoAgentGroup(variables, options) {
|
|
100
|
+
return requester(exports.CreateDrozNexoAgentGroupDocument, variables, options);
|
|
99
101
|
},
|
|
100
|
-
|
|
101
|
-
return requester(exports.
|
|
102
|
+
listDrozNexoAgentGroups(variables, options) {
|
|
103
|
+
return requester(exports.ListDrozNexoAgentGroupsDocument, variables, options);
|
|
102
104
|
}
|
|
103
105
|
};
|
|
104
106
|
}
|