@droz-js/sdk 0.6.10 → 0.6.11
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/sdks/mercadolivre.d.ts +308 -0
- package/src/sdks/mercadolivre.js +91 -0
- package/src/sdks/nucleus.d.ts +11 -6
- package/src/sdks/nucleus.js +11 -7
- package/src/sdks/whatsapp.d.ts +34 -20
- package/src/sdks/whatsapp.js +19 -7
- package/src/whatsapp.d.ts +6 -3
package/package.json
CHANGED
|
@@ -0,0 +1,308 @@
|
|
|
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
|
+
Timezone: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
108
|
+
URL: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
112
|
+
VariableName: {
|
|
113
|
+
input: string;
|
|
114
|
+
output: string;
|
|
115
|
+
};
|
|
116
|
+
Void: {
|
|
117
|
+
input: void;
|
|
118
|
+
output: void;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export declare enum AppInstanceStatus {
|
|
122
|
+
Active = "Active",
|
|
123
|
+
Failing = "Failing",
|
|
124
|
+
Inactive = "Inactive"
|
|
125
|
+
}
|
|
126
|
+
export declare enum Can {
|
|
127
|
+
Manage = "manage",
|
|
128
|
+
Read = "read",
|
|
129
|
+
Remove = "remove",
|
|
130
|
+
Write = "write"
|
|
131
|
+
}
|
|
132
|
+
export type CreateMercadoLivreInstanceInput = {
|
|
133
|
+
credentialsId: Scalars['ID']['input'];
|
|
134
|
+
name: Scalars['String']['input'];
|
|
135
|
+
sellerId: Scalars['String']['input'];
|
|
136
|
+
};
|
|
137
|
+
export type I18nText = {
|
|
138
|
+
lang: Scalars['Locale']['output'];
|
|
139
|
+
value: Scalars['String']['output'];
|
|
140
|
+
};
|
|
141
|
+
export type I18nTextInput = {
|
|
142
|
+
lang: Scalars['Locale']['input'];
|
|
143
|
+
value: Scalars['String']['input'];
|
|
144
|
+
};
|
|
145
|
+
export type MercadoLivreInstance = {
|
|
146
|
+
createdAt: Scalars['DateTime']['output'];
|
|
147
|
+
credentialsId: Scalars['ID']['output'];
|
|
148
|
+
id: Scalars['ID']['output'];
|
|
149
|
+
name: Scalars['String']['output'];
|
|
150
|
+
sellerId: Scalars['String']['output'];
|
|
151
|
+
status?: Maybe<AppInstanceStatus>;
|
|
152
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
153
|
+
};
|
|
154
|
+
export type Mutation = {
|
|
155
|
+
createMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
156
|
+
removeMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
157
|
+
updateMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
158
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
159
|
+
};
|
|
160
|
+
export type MutationCreateMercadoLivreInstanceArgs = {
|
|
161
|
+
input: CreateMercadoLivreInstanceInput;
|
|
162
|
+
};
|
|
163
|
+
export type MutationRemoveMercadoLivreInstanceArgs = {
|
|
164
|
+
input: RemoveMercadoLivreInstanceInput;
|
|
165
|
+
};
|
|
166
|
+
export type MutationUpdateMercadoLivreInstanceArgs = {
|
|
167
|
+
input: UpdateMercadoLivreInstanceInput;
|
|
168
|
+
};
|
|
169
|
+
export type NumberMatcher = {
|
|
170
|
+
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
171
|
+
eq?: Maybe<Scalars['Number']['output']>;
|
|
172
|
+
gt?: Maybe<Scalars['Number']['output']>;
|
|
173
|
+
gte?: Maybe<Scalars['Number']['output']>;
|
|
174
|
+
lt?: Maybe<Scalars['Number']['output']>;
|
|
175
|
+
lte?: Maybe<Scalars['Number']['output']>;
|
|
176
|
+
ne?: Maybe<Scalars['Number']['output']>;
|
|
177
|
+
};
|
|
178
|
+
export type NumberMatcherInput = {
|
|
179
|
+
btw?: InputMaybe<Array<Scalars['Number']['input']>>;
|
|
180
|
+
eq?: InputMaybe<Scalars['Number']['input']>;
|
|
181
|
+
gt?: InputMaybe<Scalars['Number']['input']>;
|
|
182
|
+
gte?: InputMaybe<Scalars['Number']['input']>;
|
|
183
|
+
lt?: InputMaybe<Scalars['Number']['input']>;
|
|
184
|
+
lte?: InputMaybe<Scalars['Number']['input']>;
|
|
185
|
+
ne?: InputMaybe<Scalars['Number']['input']>;
|
|
186
|
+
};
|
|
187
|
+
export type PageInfo = {
|
|
188
|
+
hasNext: Scalars['Boolean']['output'];
|
|
189
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
190
|
+
};
|
|
191
|
+
export type Query = {
|
|
192
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
193
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
194
|
+
getMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
195
|
+
listMercadoLivreInstances?: Maybe<Array<Maybe<MercadoLivreInstance>>>;
|
|
196
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
197
|
+
};
|
|
198
|
+
export type QueryGetMercadoLivreInstanceArgs = {
|
|
199
|
+
id: Scalars['ID']['input'];
|
|
200
|
+
};
|
|
201
|
+
export type RemoveMercadoLivreInstanceInput = {
|
|
202
|
+
id: Scalars['ID']['input'];
|
|
203
|
+
};
|
|
204
|
+
export type SearchResultsFacet = {
|
|
205
|
+
name: Scalars['String']['output'];
|
|
206
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
207
|
+
values?: Maybe<Array<SearchResultsFacetValue>>;
|
|
208
|
+
};
|
|
209
|
+
export type SearchResultsFacetStats = {
|
|
210
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
211
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
212
|
+
};
|
|
213
|
+
export type SearchResultsFacetValue = {
|
|
214
|
+
count: Scalars['Float']['output'];
|
|
215
|
+
value: Scalars['String']['output'];
|
|
216
|
+
};
|
|
217
|
+
export type SearchResultsStats = {
|
|
218
|
+
found: Scalars['Float']['output'];
|
|
219
|
+
outOf: Scalars['Float']['output'];
|
|
220
|
+
page: Scalars['Float']['output'];
|
|
221
|
+
perPage: Scalars['Float']['output'];
|
|
222
|
+
searchTime: Scalars['Float']['output'];
|
|
223
|
+
totalPages: Scalars['Float']['output'];
|
|
224
|
+
};
|
|
225
|
+
export type StringMatcher = {
|
|
226
|
+
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
227
|
+
ct?: Maybe<Scalars['String']['output']>;
|
|
228
|
+
cti?: Maybe<Scalars['String']['output']>;
|
|
229
|
+
eq?: Maybe<Scalars['String']['output']>;
|
|
230
|
+
eqi?: Maybe<Scalars['String']['output']>;
|
|
231
|
+
gt?: Maybe<Scalars['String']['output']>;
|
|
232
|
+
gte?: Maybe<Scalars['String']['output']>;
|
|
233
|
+
in?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
234
|
+
lt?: Maybe<Scalars['String']['output']>;
|
|
235
|
+
lte?: Maybe<Scalars['String']['output']>;
|
|
236
|
+
ne?: Maybe<Scalars['String']['output']>;
|
|
237
|
+
};
|
|
238
|
+
export type StringMatcherInput = {
|
|
239
|
+
btw?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
240
|
+
ct?: InputMaybe<Scalars['String']['input']>;
|
|
241
|
+
cti?: InputMaybe<Scalars['String']['input']>;
|
|
242
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
243
|
+
eqi?: InputMaybe<Scalars['String']['input']>;
|
|
244
|
+
gt?: InputMaybe<Scalars['String']['input']>;
|
|
245
|
+
gte?: InputMaybe<Scalars['String']['input']>;
|
|
246
|
+
in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
247
|
+
lt?: InputMaybe<Scalars['String']['input']>;
|
|
248
|
+
lte?: InputMaybe<Scalars['String']['input']>;
|
|
249
|
+
ne?: InputMaybe<Scalars['String']['input']>;
|
|
250
|
+
};
|
|
251
|
+
export declare enum Typenames {
|
|
252
|
+
Any = "Any",
|
|
253
|
+
GraphqlConnections = "GraphqlConnections",
|
|
254
|
+
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
255
|
+
MercadoLivreInstance = "MercadoLivreInstance"
|
|
256
|
+
}
|
|
257
|
+
export type UpdateMercadoLivreInstanceInput = {
|
|
258
|
+
credentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
259
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
260
|
+
sellerId?: InputMaybe<Scalars['String']['input']>;
|
|
261
|
+
};
|
|
262
|
+
export type MercadoLivreInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'sellerId' | 'credentialsId' | 'status' | 'createdAt' | 'updatedAt'>;
|
|
263
|
+
export type GetMercadoLivreInstanceQueryVariables = Exact<{
|
|
264
|
+
id: Scalars['ID']['input'];
|
|
265
|
+
}>;
|
|
266
|
+
export type GetMercadoLivreInstanceQuery = {
|
|
267
|
+
getMercadoLivreInstance?: Maybe<MercadoLivreInstanceFragment>;
|
|
268
|
+
};
|
|
269
|
+
export type ListMercadoLivreInstancesQueryVariables = Exact<{
|
|
270
|
+
[key: string]: never;
|
|
271
|
+
}>;
|
|
272
|
+
export type ListMercadoLivreInstancesQuery = {
|
|
273
|
+
listMercadoLivreInstances?: Maybe<Array<Maybe<MercadoLivreInstanceFragment>>>;
|
|
274
|
+
};
|
|
275
|
+
export type CreateMercadoLivreInstanceMutationVariables = Exact<{
|
|
276
|
+
input: CreateMercadoLivreInstanceInput;
|
|
277
|
+
}>;
|
|
278
|
+
export type CreateMercadoLivreInstanceMutation = {
|
|
279
|
+
createMercadoLivreInstance?: Maybe<MercadoLivreInstanceFragment>;
|
|
280
|
+
};
|
|
281
|
+
export type UpdateMercadoLivreInstanceMutationVariables = Exact<{
|
|
282
|
+
input: UpdateMercadoLivreInstanceInput;
|
|
283
|
+
}>;
|
|
284
|
+
export type UpdateMercadoLivreInstanceMutation = {
|
|
285
|
+
updateMercadoLivreInstance?: Maybe<MercadoLivreInstanceFragment>;
|
|
286
|
+
};
|
|
287
|
+
export type RemoveMercadoLivreInstanceMutationVariables = Exact<{
|
|
288
|
+
input: RemoveMercadoLivreInstanceInput;
|
|
289
|
+
}>;
|
|
290
|
+
export type RemoveMercadoLivreInstanceMutation = {
|
|
291
|
+
removeMercadoLivreInstance?: Maybe<MercadoLivreInstanceFragment>;
|
|
292
|
+
};
|
|
293
|
+
export declare const MercadoLivreInstanceFragmentDoc = "\n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
294
|
+
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...mercadoLivreInstance\n }\n}\n \n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
295
|
+
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...mercadoLivreInstance\n }\n}\n \n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
296
|
+
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...mercadoLivreInstance\n }\n}\n \n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
297
|
+
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...mercadoLivreInstance\n }\n}\n \n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
298
|
+
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...mercadoLivreInstance\n }\n}\n \n fragment mercadoLivreInstance on MercadoLivreInstance {\n id\n name\n sellerId\n credentialsId\n status\n createdAt\n updatedAt\n}\n ";
|
|
299
|
+
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
300
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
301
|
+
getMercadoLivreInstance(variables: GetMercadoLivreInstanceQueryVariables, options?: C): Promise<GetMercadoLivreInstanceQuery>;
|
|
302
|
+
listMercadoLivreInstances(variables?: ListMercadoLivreInstancesQueryVariables, options?: C): Promise<ListMercadoLivreInstancesQuery>;
|
|
303
|
+
createMercadoLivreInstance(variables: CreateMercadoLivreInstanceMutationVariables, options?: C): Promise<CreateMercadoLivreInstanceMutation>;
|
|
304
|
+
updateMercadoLivreInstance(variables: UpdateMercadoLivreInstanceMutationVariables, options?: C): Promise<UpdateMercadoLivreInstanceMutation>;
|
|
305
|
+
removeMercadoLivreInstance(variables: RemoveMercadoLivreInstanceMutationVariables, options?: C): Promise<RemoveMercadoLivreInstanceMutation>;
|
|
306
|
+
};
|
|
307
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
308
|
+
export declare const serviceName = "@droz/mercadolivre";
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveMercadoLivreInstanceDocument = exports.UpdateMercadoLivreInstanceDocument = exports.CreateMercadoLivreInstanceDocument = exports.ListMercadoLivreInstancesDocument = exports.GetMercadoLivreInstanceDocument = exports.MercadoLivreInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
var AppInstanceStatus;
|
|
6
|
+
(function (AppInstanceStatus) {
|
|
7
|
+
AppInstanceStatus["Active"] = "Active";
|
|
8
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
9
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
10
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
11
|
+
var Can;
|
|
12
|
+
(function (Can) {
|
|
13
|
+
Can["Manage"] = "manage";
|
|
14
|
+
Can["Read"] = "read";
|
|
15
|
+
Can["Remove"] = "remove";
|
|
16
|
+
Can["Write"] = "write";
|
|
17
|
+
})(Can || (exports.Can = Can = {}));
|
|
18
|
+
var Typenames;
|
|
19
|
+
(function (Typenames) {
|
|
20
|
+
Typenames["Any"] = "Any";
|
|
21
|
+
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
22
|
+
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
23
|
+
Typenames["MercadoLivreInstance"] = "MercadoLivreInstance";
|
|
24
|
+
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
25
|
+
exports.MercadoLivreInstanceFragmentDoc = `
|
|
26
|
+
fragment mercadoLivreInstance on MercadoLivreInstance {
|
|
27
|
+
id
|
|
28
|
+
name
|
|
29
|
+
sellerId
|
|
30
|
+
credentialsId
|
|
31
|
+
status
|
|
32
|
+
createdAt
|
|
33
|
+
updatedAt
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
exports.GetMercadoLivreInstanceDocument = `
|
|
37
|
+
query getMercadoLivreInstance($id: ID!) {
|
|
38
|
+
getMercadoLivreInstance(id: $id) {
|
|
39
|
+
...mercadoLivreInstance
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
${exports.MercadoLivreInstanceFragmentDoc}`;
|
|
43
|
+
exports.ListMercadoLivreInstancesDocument = `
|
|
44
|
+
query listMercadoLivreInstances {
|
|
45
|
+
listMercadoLivreInstances {
|
|
46
|
+
...mercadoLivreInstance
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
${exports.MercadoLivreInstanceFragmentDoc}`;
|
|
50
|
+
exports.CreateMercadoLivreInstanceDocument = `
|
|
51
|
+
mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {
|
|
52
|
+
createMercadoLivreInstance(input: $input) {
|
|
53
|
+
...mercadoLivreInstance
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
${exports.MercadoLivreInstanceFragmentDoc}`;
|
|
57
|
+
exports.UpdateMercadoLivreInstanceDocument = `
|
|
58
|
+
mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {
|
|
59
|
+
updateMercadoLivreInstance(input: $input) {
|
|
60
|
+
...mercadoLivreInstance
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
${exports.MercadoLivreInstanceFragmentDoc}`;
|
|
64
|
+
exports.RemoveMercadoLivreInstanceDocument = `
|
|
65
|
+
mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {
|
|
66
|
+
removeMercadoLivreInstance(input: $input) {
|
|
67
|
+
...mercadoLivreInstance
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
${exports.MercadoLivreInstanceFragmentDoc}`;
|
|
71
|
+
function getSdk(requester) {
|
|
72
|
+
return {
|
|
73
|
+
getMercadoLivreInstance(variables, options) {
|
|
74
|
+
return requester(exports.GetMercadoLivreInstanceDocument, variables, options);
|
|
75
|
+
},
|
|
76
|
+
listMercadoLivreInstances(variables, options) {
|
|
77
|
+
return requester(exports.ListMercadoLivreInstancesDocument, variables, options);
|
|
78
|
+
},
|
|
79
|
+
createMercadoLivreInstance(variables, options) {
|
|
80
|
+
return requester(exports.CreateMercadoLivreInstanceDocument, variables, options);
|
|
81
|
+
},
|
|
82
|
+
updateMercadoLivreInstance(variables, options) {
|
|
83
|
+
return requester(exports.UpdateMercadoLivreInstanceDocument, variables, options);
|
|
84
|
+
},
|
|
85
|
+
removeMercadoLivreInstance(variables, options) {
|
|
86
|
+
return requester(exports.RemoveMercadoLivreInstanceDocument, variables, options);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
exports.getSdk = getSdk;
|
|
91
|
+
exports.serviceName = '@droz/mercadolivre';
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -797,6 +797,7 @@ export type Session = {
|
|
|
797
797
|
customerId: Scalars['ID']['output'];
|
|
798
798
|
sessionId: Scalars['ID']['output'];
|
|
799
799
|
stateMachineId: Scalars['ID']['output'];
|
|
800
|
+
status: SessionStatus;
|
|
800
801
|
triggerDrn: Scalars['ID']['output'];
|
|
801
802
|
};
|
|
802
803
|
export type SessionContext = {
|
|
@@ -817,6 +818,10 @@ export type SessionContextInput = {
|
|
|
817
818
|
timezone?: InputMaybe<Scalars['Timezone']['input']>;
|
|
818
819
|
userAgent?: InputMaybe<Scalars['String']['input']>;
|
|
819
820
|
};
|
|
821
|
+
export declare enum SessionStatus {
|
|
822
|
+
Active = "active",
|
|
823
|
+
Inactive = "inactive"
|
|
824
|
+
}
|
|
820
825
|
export type SetSessionAttributeInput = {
|
|
821
826
|
attribute: Scalars['ID']['input'];
|
|
822
827
|
sessionId: Scalars['ID']['input'];
|
|
@@ -1281,7 +1286,7 @@ export type CheckPermissionsQueryVariables = Exact<{
|
|
|
1281
1286
|
resources: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
1282
1287
|
}>;
|
|
1283
1288
|
export type CheckPermissionsQuery = Pick<Query, 'checkPermissions'>;
|
|
1284
|
-
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn'>;
|
|
1289
|
+
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn' | 'status'>;
|
|
1285
1290
|
export type SessionSchemaFragment = (Pick<AppSessionSchemaFields, 'name'> & {
|
|
1286
1291
|
fields: Array<Pick<AppSessionSchemaFieldDescription, 'name' | 'description'>>;
|
|
1287
1292
|
});
|
|
@@ -1290,9 +1295,9 @@ export type StartSessionMutationVariables = Exact<{
|
|
|
1290
1295
|
withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1291
1296
|
}>;
|
|
1292
1297
|
export type StartSessionMutation = {
|
|
1293
|
-
startSession?: Maybe<(
|
|
1298
|
+
startSession?: Maybe<({
|
|
1294
1299
|
customer?: CustomerFragment;
|
|
1295
|
-
})>;
|
|
1300
|
+
} & SessionFragment)>;
|
|
1296
1301
|
};
|
|
1297
1302
|
export type GetSessionQueryVariables = Exact<{
|
|
1298
1303
|
sessionId: Scalars['ID']['input'];
|
|
@@ -1456,7 +1461,7 @@ export declare const CustomerFragmentDoc = "\n fragment customer on Customer
|
|
|
1456
1461
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1457
1462
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1458
1463
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
|
|
1459
|
-
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n ";
|
|
1464
|
+
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
|
|
1460
1465
|
export declare const SessionSchemaFragmentDoc = "\n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1461
1466
|
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1462
1467
|
export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n ";
|
|
@@ -1507,8 +1512,8 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
|
|
|
1507
1512
|
export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1508
1513
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1509
1514
|
export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
|
|
1510
|
-
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n
|
|
1511
|
-
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1515
|
+
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1516
|
+
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1512
1517
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1513
1518
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1514
1519
|
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = void 0;
|
|
4
|
+
exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -45,6 +45,11 @@ var PatchOperation;
|
|
|
45
45
|
PatchOperation["Replace"] = "replace";
|
|
46
46
|
PatchOperation["Test"] = "test";
|
|
47
47
|
})(PatchOperation || (exports.PatchOperation = PatchOperation = {}));
|
|
48
|
+
var SessionStatus;
|
|
49
|
+
(function (SessionStatus) {
|
|
50
|
+
SessionStatus["Active"] = "active";
|
|
51
|
+
SessionStatus["Inactive"] = "inactive";
|
|
52
|
+
})(SessionStatus || (exports.SessionStatus = SessionStatus = {}));
|
|
48
53
|
var StateMachineConfigStatus;
|
|
49
54
|
(function (StateMachineConfigStatus) {
|
|
50
55
|
StateMachineConfigStatus["Draft"] = "Draft";
|
|
@@ -234,6 +239,7 @@ exports.SessionFragmentDoc = `
|
|
|
234
239
|
customerId
|
|
235
240
|
stateMachineId
|
|
236
241
|
triggerDrn
|
|
242
|
+
status
|
|
237
243
|
}
|
|
238
244
|
`;
|
|
239
245
|
exports.SessionSchemaFragmentDoc = `
|
|
@@ -654,16 +660,14 @@ exports.CheckPermissionsDocument = `
|
|
|
654
660
|
exports.StartSessionDocument = `
|
|
655
661
|
mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {
|
|
656
662
|
startSession(input: $input) {
|
|
657
|
-
|
|
658
|
-
customerId
|
|
659
|
-
stateMachineId
|
|
660
|
-
triggerDrn
|
|
663
|
+
...session
|
|
661
664
|
customer @include(if: $withCustomer) {
|
|
662
665
|
...customer
|
|
663
666
|
}
|
|
664
667
|
}
|
|
665
668
|
}
|
|
666
|
-
${exports.
|
|
669
|
+
${exports.SessionFragmentDoc}
|
|
670
|
+
${exports.CustomerFragmentDoc}`;
|
|
667
671
|
exports.GetSessionDocument = `
|
|
668
672
|
query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {
|
|
669
673
|
getSession(sessionId: $sessionId) {
|
package/src/sdks/whatsapp.d.ts
CHANGED
|
@@ -130,8 +130,10 @@ export declare enum Can {
|
|
|
130
130
|
Write = "write"
|
|
131
131
|
}
|
|
132
132
|
export type CreateWhatsAppInstanceInput = {
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
credentialsId: Scalars['ID']['input'];
|
|
134
|
+
name: Scalars['String']['input'];
|
|
135
|
+
phoneNumberId: Scalars['String']['input'];
|
|
136
|
+
wabaId: Scalars['String']['input'];
|
|
135
137
|
};
|
|
136
138
|
export type I18nText = {
|
|
137
139
|
lang: Scalars['Locale']['output'];
|
|
@@ -141,22 +143,20 @@ export type I18nTextInput = {
|
|
|
141
143
|
lang: Scalars['Locale']['input'];
|
|
142
144
|
value: Scalars['String']['input'];
|
|
143
145
|
};
|
|
144
|
-
export type InstanceInput = {
|
|
145
|
-
credentialsId: Scalars['ID']['input'];
|
|
146
|
-
name: Scalars['String']['input'];
|
|
147
|
-
phoneNumberId: Scalars['String']['input'];
|
|
148
|
-
wabaId: Scalars['String']['input'];
|
|
149
|
-
};
|
|
150
146
|
export type Mutation = {
|
|
151
147
|
createWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
152
|
-
|
|
148
|
+
removeWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
149
|
+
updateWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
153
150
|
version?: Maybe<Scalars['String']['output']>;
|
|
154
151
|
};
|
|
155
152
|
export type MutationCreateWhatsAppInstanceArgs = {
|
|
156
153
|
input: CreateWhatsAppInstanceInput;
|
|
157
154
|
};
|
|
158
|
-
export type
|
|
159
|
-
input:
|
|
155
|
+
export type MutationRemoveWhatsAppInstanceArgs = {
|
|
156
|
+
input: RemoveWhatsAppInstanceInput;
|
|
157
|
+
};
|
|
158
|
+
export type MutationUpdateWhatsAppInstanceArgs = {
|
|
159
|
+
input: UpdateWhatsAppInstanceInput;
|
|
160
160
|
};
|
|
161
161
|
export type NumberMatcher = {
|
|
162
162
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
@@ -190,10 +190,8 @@ export type Query = {
|
|
|
190
190
|
export type QueryGetWhatsAppInstanceArgs = {
|
|
191
191
|
id: Scalars['ID']['input'];
|
|
192
192
|
};
|
|
193
|
-
export type
|
|
194
|
-
|
|
195
|
-
whatsAppBusinessApiId: Scalars['ID']['input'];
|
|
196
|
-
whatsAppPhoneNumberId: Scalars['ID']['input'];
|
|
193
|
+
export type RemoveWhatsAppInstanceInput = {
|
|
194
|
+
id: Scalars['ID']['input'];
|
|
197
195
|
};
|
|
198
196
|
export type SearchResultsFacet = {
|
|
199
197
|
name: Scalars['String']['output'];
|
|
@@ -248,6 +246,12 @@ export declare enum Typenames {
|
|
|
248
246
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
249
247
|
WhatsApp = "WhatsApp"
|
|
250
248
|
}
|
|
249
|
+
export type UpdateWhatsAppInstanceInput = {
|
|
250
|
+
credentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
251
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
252
|
+
phoneNumberId?: InputMaybe<Scalars['String']['input']>;
|
|
253
|
+
wabaId?: InputMaybe<Scalars['String']['input']>;
|
|
254
|
+
};
|
|
251
255
|
export type WhatsAppInstance = {
|
|
252
256
|
createdAt: Scalars['DateTime']['output'];
|
|
253
257
|
credentialsId: Scalars['ID']['output'];
|
|
@@ -276,21 +280,31 @@ export type CreateWhatsAppInstanceMutationVariables = Exact<{
|
|
|
276
280
|
export type CreateWhatsAppInstanceMutation = {
|
|
277
281
|
createWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
278
282
|
};
|
|
279
|
-
export type
|
|
280
|
-
input:
|
|
283
|
+
export type UpdateWhatsAppInstanceMutationVariables = Exact<{
|
|
284
|
+
input: UpdateWhatsAppInstanceInput;
|
|
281
285
|
}>;
|
|
282
|
-
export type
|
|
286
|
+
export type UpdateWhatsAppInstanceMutation = {
|
|
287
|
+
updateWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
288
|
+
};
|
|
289
|
+
export type RemoveWhatsAppInstanceMutationVariables = Exact<{
|
|
290
|
+
input: RemoveWhatsAppInstanceInput;
|
|
291
|
+
}>;
|
|
292
|
+
export type RemoveWhatsAppInstanceMutation = {
|
|
293
|
+
removeWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
294
|
+
};
|
|
283
295
|
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
284
296
|
export declare const GetWhatsAppInstanceDocument = "\n query getWhatsAppInstance($id: ID!) {\n getWhatsAppInstance(id: $id) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
285
297
|
export declare const ListWhatsAppInstancesDocument = "\n query listWhatsAppInstances {\n listWhatsAppInstances {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
286
298
|
export declare const CreateWhatsAppInstanceDocument = "\n mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {\n createWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
287
|
-
export declare const
|
|
299
|
+
export declare const UpdateWhatsAppInstanceDocument = "\n mutation updateWhatsAppInstance($input: UpdateWhatsAppInstanceInput!) {\n updateWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
300
|
+
export declare const RemoveWhatsAppInstanceDocument = "\n mutation removeWhatsAppInstance($input: RemoveWhatsAppInstanceInput!) {\n removeWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
288
301
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
289
302
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
290
303
|
getWhatsAppInstance(variables: GetWhatsAppInstanceQueryVariables, options?: C): Promise<GetWhatsAppInstanceQuery>;
|
|
291
304
|
listWhatsAppInstances(variables?: ListWhatsAppInstancesQueryVariables, options?: C): Promise<ListWhatsAppInstancesQuery>;
|
|
292
305
|
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>;
|
|
293
|
-
|
|
306
|
+
updateWhatsAppInstance(variables: UpdateWhatsAppInstanceMutationVariables, options?: C): Promise<UpdateWhatsAppInstanceMutation>;
|
|
307
|
+
removeWhatsAppInstance(variables: RemoveWhatsAppInstanceMutationVariables, options?: C): Promise<RemoveWhatsAppInstanceMutation>;
|
|
294
308
|
};
|
|
295
309
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
296
310
|
export declare const serviceName = "@droz/whatsapp";
|
package/src/sdks/whatsapp.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.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -54,11 +54,20 @@ exports.CreateWhatsAppInstanceDocument = `
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
${exports.WhatsappInstanceFragmentDoc}`;
|
|
57
|
-
exports.
|
|
58
|
-
mutation
|
|
59
|
-
|
|
57
|
+
exports.UpdateWhatsAppInstanceDocument = `
|
|
58
|
+
mutation updateWhatsAppInstance($input: UpdateWhatsAppInstanceInput!) {
|
|
59
|
+
updateWhatsAppInstance(input: $input) {
|
|
60
|
+
...whatsappInstance
|
|
61
|
+
}
|
|
60
62
|
}
|
|
61
|
-
`;
|
|
63
|
+
${exports.WhatsappInstanceFragmentDoc}`;
|
|
64
|
+
exports.RemoveWhatsAppInstanceDocument = `
|
|
65
|
+
mutation removeWhatsAppInstance($input: RemoveWhatsAppInstanceInput!) {
|
|
66
|
+
removeWhatsAppInstance(input: $input) {
|
|
67
|
+
...whatsappInstance
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
${exports.WhatsappInstanceFragmentDoc}`;
|
|
62
71
|
function getSdk(requester) {
|
|
63
72
|
return {
|
|
64
73
|
getWhatsAppInstance(variables, options) {
|
|
@@ -70,8 +79,11 @@ function getSdk(requester) {
|
|
|
70
79
|
createWhatsAppInstance(variables, options) {
|
|
71
80
|
return requester(exports.CreateWhatsAppInstanceDocument, variables, options);
|
|
72
81
|
},
|
|
73
|
-
|
|
74
|
-
return requester(exports.
|
|
82
|
+
updateWhatsAppInstance(variables, options) {
|
|
83
|
+
return requester(exports.UpdateWhatsAppInstanceDocument, variables, options);
|
|
84
|
+
},
|
|
85
|
+
removeWhatsAppInstance(variables, options) {
|
|
86
|
+
return requester(exports.RemoveWhatsAppInstanceDocument, variables, options);
|
|
75
87
|
}
|
|
76
88
|
};
|
|
77
89
|
}
|
package/src/whatsapp.d.ts
CHANGED
|
@@ -15,7 +15,10 @@ export declare const WhatsApp: new (options?: import("./client/http").HttpClient
|
|
|
15
15
|
createWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
16
16
|
input: import("./sdks/whatsapp").CreateWhatsAppInstanceInput;
|
|
17
17
|
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppInstanceMutation>;
|
|
18
|
-
|
|
19
|
-
input: import("./sdks/whatsapp").
|
|
20
|
-
}>, options?: unknown): Promise<import("./sdks/whatsapp").
|
|
18
|
+
updateWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
19
|
+
input: import("./sdks/whatsapp").UpdateWhatsAppInstanceInput;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").UpdateWhatsAppInstanceMutation>;
|
|
21
|
+
removeWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
22
|
+
input: import("./sdks/whatsapp").RemoveWhatsAppInstanceInput;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").RemoveWhatsAppInstanceMutation>;
|
|
21
24
|
};
|