@droz-js/sdk 0.5.10 → 0.5.12
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 +3 -2
- package/src/casasbahia.d.ts +3 -0
- package/src/client/config.d.ts +0 -1
- package/src/client/config.js +0 -2
- package/src/client/ws.js +5 -0
- package/src/nucleus.d.ts +2 -2
- package/src/reclameaqui.d.ts +3 -0
- package/src/sdks/casasbahia.d.ts +43 -9
- package/src/sdks/casasbahia.js +33 -1
- package/src/sdks/reclameaqui.d.ts +15 -0
- package/src/sdks/reclameaqui.js +12 -1
- package/src/mercadolivre.d.ts +0 -24
- package/src/mercadolivre.js +0 -21
- package/src/sdks/mercadolivre.d.ts +0 -202
- package/src/sdks/mercadolivre.js +0 -89
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"graphql": "^16.8.1",
|
|
23
|
-
"graphql-ws": "^5.
|
|
23
|
+
"graphql-ws": "^5.16.0",
|
|
24
|
+
"isomorphic-ws": "^5.0.0",
|
|
24
25
|
"inbatches": "^0.0.10"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
package/src/casasbahia.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare const Casasbahia: new (options?: import("./client/http").HttpClie
|
|
|
12
12
|
listCasasBahiaInstances(variables?: import("./sdks/casasbahia").Exact<{
|
|
13
13
|
[key: string]: never;
|
|
14
14
|
}>, options?: unknown): Promise<import("./sdks/casasbahia").ListCasasBahiaInstancesQuery>;
|
|
15
|
+
listAvailableSolutions(variables: import("./sdks/casasbahia").Exact<{
|
|
16
|
+
sessionId: string;
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/casasbahia").ListAvailableSolutionsQuery>;
|
|
15
18
|
createCasasBahiaInstance(variables: import("./sdks/casasbahia").Exact<{
|
|
16
19
|
input: import("./sdks/casasbahia").CreateCasasBahiaInstanceInput;
|
|
17
20
|
}>, options?: unknown): Promise<import("./sdks/casasbahia").CreateCasasBahiaInstanceMutation>;
|
package/src/client/config.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ declare class TenantConfig {
|
|
|
17
17
|
export declare class DrozSdk {
|
|
18
18
|
private static defaultTenant?;
|
|
19
19
|
private static defaultAuthorizationProvider?;
|
|
20
|
-
private static readonly tenantConfigs;
|
|
21
20
|
private static readonly listeners;
|
|
22
21
|
static forTenant(tenant: string): typeof DrozSdk;
|
|
23
22
|
static withAuthorization(type?: string, ...values: string[]): void;
|
package/src/client/config.js
CHANGED
|
@@ -24,11 +24,9 @@ class TenantConfig {
|
|
|
24
24
|
class DrozSdk {
|
|
25
25
|
static defaultTenant;
|
|
26
26
|
static defaultAuthorizationProvider;
|
|
27
|
-
static tenantConfigs = new Map();
|
|
28
27
|
static listeners = new Map();
|
|
29
28
|
static forTenant(tenant) {
|
|
30
29
|
this.defaultTenant = tenant;
|
|
31
|
-
this.tenantConfigs.delete(tenant);
|
|
32
30
|
return this;
|
|
33
31
|
}
|
|
34
32
|
static withAuthorization(type, ...values) {
|
package/src/client/ws.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.WsClientBuilder = void 0;
|
|
4
7
|
const graphql_ws_1 = require("graphql-ws");
|
|
8
|
+
const isomorphic_ws_1 = __importDefault(require("isomorphic-ws"));
|
|
5
9
|
const config_1 = require("./config");
|
|
6
10
|
const helpers_1 = require("./helpers");
|
|
7
11
|
class WsRequester {
|
|
@@ -22,6 +26,7 @@ class WsRequester {
|
|
|
22
26
|
lazy: true,
|
|
23
27
|
retryAttempts: 128,
|
|
24
28
|
keepAlive: 10_000,
|
|
29
|
+
webSocketImpl: isomorphic_ws_1.default,
|
|
25
30
|
connectionParams
|
|
26
31
|
});
|
|
27
32
|
return this.client;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -205,8 +205,8 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
205
205
|
}>, options?: unknown): Promise<import("./sdks/nucleus").CreatePresignedUploadUrlMutation>;
|
|
206
206
|
};
|
|
207
207
|
export declare class Nucleus extends Nucleus_base {
|
|
208
|
-
uploadBlob(fileName: string, blob: Blob, onProgress
|
|
209
|
-
uploadFile(blob: File, onProgress
|
|
208
|
+
uploadBlob(fileName: string, blob: Blob, onProgress?: OnProgress): Promise<string>;
|
|
209
|
+
uploadFile(blob: File, onProgress?: OnProgress): Promise<string>;
|
|
210
210
|
private upload;
|
|
211
211
|
private post;
|
|
212
212
|
}
|
package/src/reclameaqui.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export declare const Reclameaqui: new (options?: import("./client/http").HttpCli
|
|
|
18
18
|
listReclameAquiModerationReasons(variables?: import("./sdks/reclameaqui").Exact<{
|
|
19
19
|
[key: string]: never;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/reclameaqui").ListReclameAquiModerationReasonsQuery>;
|
|
21
|
+
getReclameAquiBillingConfiguration(variables?: import("./sdks/reclameaqui").Exact<{
|
|
22
|
+
[key: string]: never;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/reclameaqui").GetReclameAquiBillingConfigurationQuery>;
|
|
21
24
|
createReclameAquiInstance(variables: import("./sdks/reclameaqui").Exact<{
|
|
22
25
|
input: import("./sdks/reclameaqui").CreateReclameAquiInstanceInput;
|
|
23
26
|
}>, options?: unknown): Promise<import("./sdks/reclameaqui").CreateReclameAquiInstanceMutation>;
|
package/src/sdks/casasbahia.d.ts
CHANGED
|
@@ -92,9 +92,8 @@ export declare enum AppInstanceStatus {
|
|
|
92
92
|
Inactive = "Inactive"
|
|
93
93
|
}
|
|
94
94
|
export type ApplySolutionInput = {
|
|
95
|
-
incidentId: Scalars['Int']['input'];
|
|
96
|
-
instanceId: Scalars['ID']['input'];
|
|
97
95
|
payload: ApplySolutionPayloadInput;
|
|
96
|
+
sessionId: Scalars['ID']['input'];
|
|
98
97
|
};
|
|
99
98
|
export type ApplySolutionPayloadFields = {
|
|
100
99
|
name: Scalars['String']['input'];
|
|
@@ -108,12 +107,14 @@ export type ApplySolutionPayloadInput = {
|
|
|
108
107
|
solutionId: Scalars['Int']['input'];
|
|
109
108
|
};
|
|
110
109
|
export type CasasBahiaInstance = {
|
|
110
|
+
createdAt: Scalars['DateTime']['output'];
|
|
111
111
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
112
112
|
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
113
113
|
id: Scalars['ID']['output'];
|
|
114
114
|
isTest?: Maybe<Scalars['Boolean']['output']>;
|
|
115
115
|
name: Scalars['String']['output'];
|
|
116
116
|
type: CasasBahiaInstanceType;
|
|
117
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
117
118
|
};
|
|
118
119
|
export declare enum CasasBahiaInstanceType {
|
|
119
120
|
PosVenda = "POS_VENDA",
|
|
@@ -153,15 +154,36 @@ export type Query = {
|
|
|
153
154
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
154
155
|
getCasasBahiaInstance?: Maybe<CasasBahiaInstance>;
|
|
155
156
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
157
|
+
listAvailableSolutions: Array<Solutions>;
|
|
156
158
|
listCasasBahiaInstances: Array<CasasBahiaInstance>;
|
|
157
159
|
version?: Maybe<Scalars['String']['output']>;
|
|
158
160
|
};
|
|
159
161
|
export type QueryGetCasasBahiaInstanceArgs = {
|
|
160
162
|
id: Scalars['ID']['input'];
|
|
161
163
|
};
|
|
164
|
+
export type QueryListAvailableSolutionsArgs = {
|
|
165
|
+
sessionId: Scalars['ID']['input'];
|
|
166
|
+
};
|
|
162
167
|
export type RemoveCasasBahiaInstanceInput = {
|
|
163
168
|
id: Scalars['ID']['input'];
|
|
164
169
|
};
|
|
170
|
+
export type SolutionField = {
|
|
171
|
+
format?: Maybe<Scalars['String']['output']>;
|
|
172
|
+
minLength?: Maybe<Scalars['Int']['output']>;
|
|
173
|
+
name: Scalars['String']['output'];
|
|
174
|
+
required: Scalars['Boolean']['output'];
|
|
175
|
+
type: SolutionFieldType;
|
|
176
|
+
};
|
|
177
|
+
export declare enum SolutionFieldType {
|
|
178
|
+
Date = "date",
|
|
179
|
+
String = "string"
|
|
180
|
+
}
|
|
181
|
+
export type Solutions = {
|
|
182
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
183
|
+
fields: Array<SolutionField>;
|
|
184
|
+
id: Scalars['Int']['output'];
|
|
185
|
+
name: Scalars['String']['output'];
|
|
186
|
+
};
|
|
165
187
|
export declare enum Typenames {
|
|
166
188
|
Any = "Any",
|
|
167
189
|
CasasBahiaInstance = "CasasBahiaInstance",
|
|
@@ -174,7 +196,10 @@ export type UpdateCasasBahiaInstanceInput = {
|
|
|
174
196
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
175
197
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
176
198
|
};
|
|
177
|
-
export type CasasbahiaInstanceFragment = Pick<CasasBahiaInstance, 'id' | 'name' | 'credentialId' | 'cronJobId'>;
|
|
199
|
+
export type CasasbahiaInstanceFragment = Pick<CasasBahiaInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'type' | 'createdAt' | 'updatedAt'>;
|
|
200
|
+
export type SolutionsFragment = (Pick<Solutions, 'id' | 'name' | 'description'> & {
|
|
201
|
+
fields: Array<Pick<SolutionField, 'name' | 'type' | 'required' | 'minLength' | 'format'>>;
|
|
202
|
+
});
|
|
178
203
|
export type GetCasasBahiaInstanceQueryVariables = Exact<{
|
|
179
204
|
id: Scalars['ID']['input'];
|
|
180
205
|
}>;
|
|
@@ -187,6 +212,12 @@ export type ListCasasBahiaInstancesQueryVariables = Exact<{
|
|
|
187
212
|
export type ListCasasBahiaInstancesQuery = {
|
|
188
213
|
listCasasBahiaInstances: Array<CasasbahiaInstanceFragment>;
|
|
189
214
|
};
|
|
215
|
+
export type ListAvailableSolutionsQueryVariables = Exact<{
|
|
216
|
+
sessionId: Scalars['ID']['input'];
|
|
217
|
+
}>;
|
|
218
|
+
export type ListAvailableSolutionsQuery = {
|
|
219
|
+
listAvailableSolutions: Array<SolutionsFragment>;
|
|
220
|
+
};
|
|
190
221
|
export type CreateCasasBahiaInstanceMutationVariables = Exact<{
|
|
191
222
|
input: CreateCasasBahiaInstanceInput;
|
|
192
223
|
}>;
|
|
@@ -209,17 +240,20 @@ export type ApplySolutionMutationVariables = Exact<{
|
|
|
209
240
|
input: ApplySolutionInput;
|
|
210
241
|
}>;
|
|
211
242
|
export type ApplySolutionMutation = Pick<Mutation, 'applySolution'>;
|
|
212
|
-
export declare const CasasbahiaInstanceFragmentDoc = "\n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
213
|
-
export declare const
|
|
214
|
-
export declare const
|
|
215
|
-
export declare const
|
|
216
|
-
export declare const
|
|
217
|
-
export declare const
|
|
243
|
+
export declare const CasasbahiaInstanceFragmentDoc = "\n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
244
|
+
export declare const SolutionsFragmentDoc = "\n fragment solutions on Solutions {\n id\n name\n description\n fields {\n name\n type\n required\n minLength\n format\n }\n}\n ";
|
|
245
|
+
export declare const GetCasasBahiaInstanceDocument = "\n query getCasasBahiaInstance($id: ID!) {\n getCasasBahiaInstance(id: $id) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
246
|
+
export declare const ListCasasBahiaInstancesDocument = "\n query listCasasBahiaInstances {\n listCasasBahiaInstances {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
247
|
+
export declare const ListAvailableSolutionsDocument = "\n query listAvailableSolutions($sessionId: ID!) {\n listAvailableSolutions(sessionId: $sessionId) {\n ...solutions\n }\n}\n \n fragment solutions on Solutions {\n id\n name\n description\n fields {\n name\n type\n required\n minLength\n format\n }\n}\n ";
|
|
248
|
+
export declare const CreateCasasBahiaInstanceDocument = "\n mutation createCasasBahiaInstance($input: CreateCasasBahiaInstanceInput!) {\n createCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
249
|
+
export declare const UpdateCasasBahiaInstanceDocument = "\n mutation updateCasasBahiaInstance($input: UpdateCasasBahiaInstanceInput!) {\n updateCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
250
|
+
export declare const RemoveCasasBahiaInstanceDocument = "\n mutation removeCasasBahiaInstance($input: RemoveCasasBahiaInstanceInput!) {\n removeCasasBahiaInstance(input: $input) {\n ...casasbahiaInstance\n }\n}\n \n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n type\n createdAt\n updatedAt\n}\n ";
|
|
218
251
|
export declare const ApplySolutionDocument = "\n mutation applySolution($input: ApplySolutionInput!) {\n applySolution(input: $input)\n}\n ";
|
|
219
252
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
220
253
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
221
254
|
getCasasBahiaInstance(variables: GetCasasBahiaInstanceQueryVariables, options?: C): Promise<GetCasasBahiaInstanceQuery>;
|
|
222
255
|
listCasasBahiaInstances(variables?: ListCasasBahiaInstancesQueryVariables, options?: C): Promise<ListCasasBahiaInstancesQuery>;
|
|
256
|
+
listAvailableSolutions(variables: ListAvailableSolutionsQueryVariables, options?: C): Promise<ListAvailableSolutionsQuery>;
|
|
223
257
|
createCasasBahiaInstance(variables: CreateCasasBahiaInstanceMutationVariables, options?: C): Promise<CreateCasasBahiaInstanceMutation>;
|
|
224
258
|
updateCasasBahiaInstance(variables: UpdateCasasBahiaInstanceMutationVariables, options?: C): Promise<UpdateCasasBahiaInstanceMutation>;
|
|
225
259
|
removeCasasBahiaInstance(variables: RemoveCasasBahiaInstanceMutationVariables, options?: C): Promise<RemoveCasasBahiaInstanceMutation>;
|
package/src/sdks/casasbahia.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.ApplySolutionDocument = exports.RemoveCasasBahiaInstanceDocument = exports.UpdateCasasBahiaInstanceDocument = exports.CreateCasasBahiaInstanceDocument = exports.ListCasasBahiaInstancesDocument = exports.GetCasasBahiaInstanceDocument = exports.CasasbahiaInstanceFragmentDoc = exports.Typenames = exports.CasasBahiaInstanceType = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ApplySolutionDocument = exports.RemoveCasasBahiaInstanceDocument = exports.UpdateCasasBahiaInstanceDocument = exports.CreateCasasBahiaInstanceDocument = exports.ListAvailableSolutionsDocument = exports.ListCasasBahiaInstancesDocument = exports.GetCasasBahiaInstanceDocument = exports.SolutionsFragmentDoc = exports.CasasbahiaInstanceFragmentDoc = exports.Typenames = exports.SolutionFieldType = exports.CasasBahiaInstanceType = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -14,6 +14,11 @@ var CasasBahiaInstanceType;
|
|
|
14
14
|
CasasBahiaInstanceType["PreVenda"] = "PRE_VENDA";
|
|
15
15
|
CasasBahiaInstanceType["Reclamacao"] = "RECLAMACAO";
|
|
16
16
|
})(CasasBahiaInstanceType || (exports.CasasBahiaInstanceType = CasasBahiaInstanceType = {}));
|
|
17
|
+
var SolutionFieldType;
|
|
18
|
+
(function (SolutionFieldType) {
|
|
19
|
+
SolutionFieldType["Date"] = "date";
|
|
20
|
+
SolutionFieldType["String"] = "string";
|
|
21
|
+
})(SolutionFieldType || (exports.SolutionFieldType = SolutionFieldType = {}));
|
|
17
22
|
var Typenames;
|
|
18
23
|
(function (Typenames) {
|
|
19
24
|
Typenames["Any"] = "Any";
|
|
@@ -27,6 +32,23 @@ exports.CasasbahiaInstanceFragmentDoc = `
|
|
|
27
32
|
name
|
|
28
33
|
credentialId
|
|
29
34
|
cronJobId
|
|
35
|
+
type
|
|
36
|
+
createdAt
|
|
37
|
+
updatedAt
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
exports.SolutionsFragmentDoc = `
|
|
41
|
+
fragment solutions on Solutions {
|
|
42
|
+
id
|
|
43
|
+
name
|
|
44
|
+
description
|
|
45
|
+
fields {
|
|
46
|
+
name
|
|
47
|
+
type
|
|
48
|
+
required
|
|
49
|
+
minLength
|
|
50
|
+
format
|
|
51
|
+
}
|
|
30
52
|
}
|
|
31
53
|
`;
|
|
32
54
|
exports.GetCasasBahiaInstanceDocument = `
|
|
@@ -43,6 +65,13 @@ exports.ListCasasBahiaInstancesDocument = `
|
|
|
43
65
|
}
|
|
44
66
|
}
|
|
45
67
|
${exports.CasasbahiaInstanceFragmentDoc}`;
|
|
68
|
+
exports.ListAvailableSolutionsDocument = `
|
|
69
|
+
query listAvailableSolutions($sessionId: ID!) {
|
|
70
|
+
listAvailableSolutions(sessionId: $sessionId) {
|
|
71
|
+
...solutions
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
${exports.SolutionsFragmentDoc}`;
|
|
46
75
|
exports.CreateCasasBahiaInstanceDocument = `
|
|
47
76
|
mutation createCasasBahiaInstance($input: CreateCasasBahiaInstanceInput!) {
|
|
48
77
|
createCasasBahiaInstance(input: $input) {
|
|
@@ -77,6 +106,9 @@ function getSdk(requester) {
|
|
|
77
106
|
listCasasBahiaInstances(variables, options) {
|
|
78
107
|
return requester(exports.ListCasasBahiaInstancesDocument, variables, options);
|
|
79
108
|
},
|
|
109
|
+
listAvailableSolutions(variables, options) {
|
|
110
|
+
return requester(exports.ListAvailableSolutionsDocument, variables, options);
|
|
111
|
+
},
|
|
80
112
|
createCasasBahiaInstance(variables, options) {
|
|
81
113
|
return requester(exports.CreateCasasBahiaInstanceDocument, variables, options);
|
|
82
114
|
},
|
|
@@ -94,6 +94,7 @@ export declare enum AppInstanceStatus {
|
|
|
94
94
|
export type CreateReclameAquiInstanceInput = {
|
|
95
95
|
companyId: Scalars['String']['input'];
|
|
96
96
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
97
|
+
cutoffSyncDate: Scalars['Date']['input'];
|
|
97
98
|
name: Scalars['String']['input'];
|
|
98
99
|
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
99
100
|
};
|
|
@@ -136,6 +137,7 @@ export type PageInfo = {
|
|
|
136
137
|
export type Query = {
|
|
137
138
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
138
139
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
140
|
+
getReclameAquiBillingConfiguration: ReclameAquiBillingConfiguration;
|
|
139
141
|
getReclameAquiInstance?: Maybe<ReclameAquiInstance>;
|
|
140
142
|
listReclameAquiCompanies: Array<ReclameAquiCompany>;
|
|
141
143
|
listReclameAquiInstances: Array<ReclameAquiInstance>;
|
|
@@ -148,6 +150,10 @@ export type QueryGetReclameAquiInstanceArgs = {
|
|
|
148
150
|
export type QueryListReclameAquiCompaniesArgs = {
|
|
149
151
|
credentialId: Scalars['ID']['input'];
|
|
150
152
|
};
|
|
153
|
+
export type ReclameAquiBillingConfiguration = {
|
|
154
|
+
billingCutoffSyncDays: Scalars['Int']['output'];
|
|
155
|
+
maxCutoffDate: Scalars['Date']['output'];
|
|
156
|
+
};
|
|
151
157
|
export type ReclameAquiCompany = {
|
|
152
158
|
companyId: Scalars['ID']['output'];
|
|
153
159
|
name: Scalars['String']['output'];
|
|
@@ -157,6 +163,7 @@ export type ReclameAquiInstance = {
|
|
|
157
163
|
createdAt: Scalars['DateTime']['output'];
|
|
158
164
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
159
165
|
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
166
|
+
cutoffSyncDate?: Maybe<Scalars['Date']['output']>;
|
|
160
167
|
failingReason?: Maybe<Scalars['String']['output']>;
|
|
161
168
|
id: Scalars['ID']['output'];
|
|
162
169
|
name: Scalars['String']['output'];
|
|
@@ -228,6 +235,12 @@ export type ListReclameAquiModerationReasonsQueryVariables = Exact<{
|
|
|
228
235
|
export type ListReclameAquiModerationReasonsQuery = {
|
|
229
236
|
listReclameAquiModerationReasons: Array<Pick<ReclameAquiModerationReason, 'code' | 'description'>>;
|
|
230
237
|
};
|
|
238
|
+
export type GetReclameAquiBillingConfigurationQueryVariables = Exact<{
|
|
239
|
+
[key: string]: never;
|
|
240
|
+
}>;
|
|
241
|
+
export type GetReclameAquiBillingConfigurationQuery = {
|
|
242
|
+
getReclameAquiBillingConfiguration: Pick<ReclameAquiBillingConfiguration, 'billingCutoffSyncDays' | 'maxCutoffDate'>;
|
|
243
|
+
};
|
|
231
244
|
export type CreateReclameAquiInstanceMutationVariables = Exact<{
|
|
232
245
|
input: CreateReclameAquiInstanceInput;
|
|
233
246
|
}>;
|
|
@@ -267,6 +280,7 @@ export declare const GetReclameAquiInstanceDocument = "\n query getReclameAqu
|
|
|
267
280
|
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances {\n listReclameAquiInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n createdAt\n updatedAt\n}\n ";
|
|
268
281
|
export declare const ListReclameAquiCompaniesDocument = "\n query listReclameAquiCompanies($credentialId: ID!) {\n listReclameAquiCompanies(credentialId: $credentialId) {\n companyId\n name\n }\n}\n ";
|
|
269
282
|
export declare const ListReclameAquiModerationReasonsDocument = "\n query listReclameAquiModerationReasons {\n listReclameAquiModerationReasons {\n code\n description\n }\n}\n ";
|
|
283
|
+
export declare const GetReclameAquiBillingConfigurationDocument = "\n query getReclameAquiBillingConfiguration {\n getReclameAquiBillingConfiguration {\n billingCutoffSyncDays\n maxCutoffDate\n }\n}\n ";
|
|
270
284
|
export declare const CreateReclameAquiInstanceDocument = "\n mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {\n createReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n createdAt\n updatedAt\n}\n ";
|
|
271
285
|
export declare const UpdateReclameAquiInstanceDocument = "\n mutation updateReclameAquiInstance($input: UpdateReclameAquiInstanceInput!) {\n updateReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n createdAt\n updatedAt\n}\n ";
|
|
272
286
|
export declare const RemoveReclameAquiInstanceDocument = "\n mutation removeReclameAquiInstance($input: RemoveReclameAquiInstanceInput!) {\n removeReclameAquiInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on ReclameAquiInstance {\n id\n name\n credentialId\n companyId\n cronJobId\n status\n failingReason\n tags\n createdAt\n updatedAt\n}\n ";
|
|
@@ -279,6 +293,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
279
293
|
listReclameAquiInstances(variables?: ListReclameAquiInstancesQueryVariables, options?: C): Promise<ListReclameAquiInstancesQuery>;
|
|
280
294
|
listReclameAquiCompanies(variables: ListReclameAquiCompaniesQueryVariables, options?: C): Promise<ListReclameAquiCompaniesQuery>;
|
|
281
295
|
listReclameAquiModerationReasons(variables?: ListReclameAquiModerationReasonsQueryVariables, options?: C): Promise<ListReclameAquiModerationReasonsQuery>;
|
|
296
|
+
getReclameAquiBillingConfiguration(variables?: GetReclameAquiBillingConfigurationQueryVariables, options?: C): Promise<GetReclameAquiBillingConfigurationQuery>;
|
|
282
297
|
createReclameAquiInstance(variables: CreateReclameAquiInstanceMutationVariables, options?: C): Promise<CreateReclameAquiInstanceMutation>;
|
|
283
298
|
updateReclameAquiInstance(variables: UpdateReclameAquiInstanceMutationVariables, options?: C): Promise<UpdateReclameAquiInstanceMutation>;
|
|
284
299
|
removeReclameAquiInstance(variables: RemoveReclameAquiInstanceMutationVariables, options?: C): Promise<RemoveReclameAquiInstanceMutation>;
|
package/src/sdks/reclameaqui.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.ForceReSyncReclameAquiTicketDocument = exports.RequestReclameAquiTicketEvaluationDocument = exports.SendReclameAquiModerationRequestDocument = exports.RemoveReclameAquiInstanceDocument = exports.UpdateReclameAquiInstanceDocument = exports.CreateReclameAquiInstanceDocument = exports.ListReclameAquiModerationReasonsDocument = exports.ListReclameAquiCompaniesDocument = exports.ListReclameAquiInstancesDocument = exports.GetReclameAquiInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.ReclameAquiTicketIdType = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ForceReSyncReclameAquiTicketDocument = exports.RequestReclameAquiTicketEvaluationDocument = exports.SendReclameAquiModerationRequestDocument = exports.RemoveReclameAquiInstanceDocument = exports.UpdateReclameAquiInstanceDocument = exports.CreateReclameAquiInstanceDocument = exports.GetReclameAquiBillingConfigurationDocument = exports.ListReclameAquiModerationReasonsDocument = exports.ListReclameAquiCompaniesDocument = exports.ListReclameAquiInstancesDocument = exports.GetReclameAquiInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.ReclameAquiTicketIdType = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -64,6 +64,14 @@ exports.ListReclameAquiModerationReasonsDocument = `
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
|
+
exports.GetReclameAquiBillingConfigurationDocument = `
|
|
68
|
+
query getReclameAquiBillingConfiguration {
|
|
69
|
+
getReclameAquiBillingConfiguration {
|
|
70
|
+
billingCutoffSyncDays
|
|
71
|
+
maxCutoffDate
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
67
75
|
exports.CreateReclameAquiInstanceDocument = `
|
|
68
76
|
mutation createReclameAquiInstance($input: CreateReclameAquiInstanceInput!) {
|
|
69
77
|
createReclameAquiInstance(input: $input) {
|
|
@@ -118,6 +126,9 @@ function getSdk(requester) {
|
|
|
118
126
|
listReclameAquiModerationReasons(variables, options) {
|
|
119
127
|
return requester(exports.ListReclameAquiModerationReasonsDocument, variables, options);
|
|
120
128
|
},
|
|
129
|
+
getReclameAquiBillingConfiguration(variables, options) {
|
|
130
|
+
return requester(exports.GetReclameAquiBillingConfigurationDocument, variables, options);
|
|
131
|
+
},
|
|
121
132
|
createReclameAquiInstance(variables, options) {
|
|
122
133
|
return requester(exports.CreateReclameAquiInstanceDocument, variables, options);
|
|
123
134
|
},
|
package/src/mercadolivre.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './sdks/mercadolivre';
|
|
2
|
-
export declare const MercadoLivre: new (options?: import("./client/http").HttpClientOptions) => {
|
|
3
|
-
readonly http: any;
|
|
4
|
-
forTenant(tenant: string): any;
|
|
5
|
-
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
|
-
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
|
-
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
|
-
} & {
|
|
9
|
-
getMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
10
|
-
id: string;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/mercadolivre").GetMercadoLivreInstanceQuery>;
|
|
12
|
-
listMercadoLivreInstances(variables?: import("./sdks/mercadolivre").Exact<{
|
|
13
|
-
[key: string]: never;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/mercadolivre").ListMercadoLivreInstancesQuery>;
|
|
15
|
-
createMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
16
|
-
input: import("./sdks/mercadolivre").CreateMercadoLivreInstanceInput;
|
|
17
|
-
}>, options?: unknown): Promise<import("./sdks/mercadolivre").CreateMercadoLivreInstanceMutation>;
|
|
18
|
-
updateMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
19
|
-
input: import("./sdks/mercadolivre").UpdateMercadoLivreInstanceInput;
|
|
20
|
-
}>, options?: unknown): Promise<import("./sdks/mercadolivre").UpdateMercadoLivreInstanceMutation>;
|
|
21
|
-
removeMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
22
|
-
input: import("./sdks/mercadolivre").RemoveMercadoLivreInstanceInput;
|
|
23
|
-
}>, options?: unknown): Promise<import("./sdks/mercadolivre").RemoveMercadoLivreInstanceMutation>;
|
|
24
|
-
};
|
package/src/mercadolivre.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.MercadoLivre = void 0;
|
|
18
|
-
const http_1 = require("./client/http");
|
|
19
|
-
const mercadolivre_1 = require("./sdks/mercadolivre");
|
|
20
|
-
__exportStar(require("./sdks/mercadolivre"), exports);
|
|
21
|
-
exports.MercadoLivre = (0, http_1.HttpClientBuilder)(mercadolivre_1.serviceName, mercadolivre_1.getSdk);
|
|
@@ -1,202 +0,0 @@
|
|
|
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
|
-
DRN: {
|
|
49
|
-
input: string;
|
|
50
|
-
output: string;
|
|
51
|
-
};
|
|
52
|
-
Date: {
|
|
53
|
-
input: Date;
|
|
54
|
-
output: Date;
|
|
55
|
-
};
|
|
56
|
-
DateTime: {
|
|
57
|
-
input: Date;
|
|
58
|
-
output: Date;
|
|
59
|
-
};
|
|
60
|
-
EmailAddress: {
|
|
61
|
-
input: string;
|
|
62
|
-
output: string;
|
|
63
|
-
};
|
|
64
|
-
JSON: {
|
|
65
|
-
input: any;
|
|
66
|
-
output: any;
|
|
67
|
-
};
|
|
68
|
-
JSONObject: {
|
|
69
|
-
input: any;
|
|
70
|
-
output: any;
|
|
71
|
-
};
|
|
72
|
-
PhoneNumber: {
|
|
73
|
-
input: string;
|
|
74
|
-
output: string;
|
|
75
|
-
};
|
|
76
|
-
Set: {
|
|
77
|
-
input: any;
|
|
78
|
-
output: any[];
|
|
79
|
-
};
|
|
80
|
-
URL: {
|
|
81
|
-
input: string;
|
|
82
|
-
output: string;
|
|
83
|
-
};
|
|
84
|
-
Void: {
|
|
85
|
-
input: void;
|
|
86
|
-
output: void;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export declare enum AppInstanceStatus {
|
|
90
|
-
Active = "Active",
|
|
91
|
-
Failing = "Failing",
|
|
92
|
-
Inactive = "Inactive"
|
|
93
|
-
}
|
|
94
|
-
export type CreateMercadoLivreInstanceInput = {
|
|
95
|
-
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
96
|
-
name: Scalars['String']['input'];
|
|
97
|
-
type: MercadoLivreInstanceType;
|
|
98
|
-
};
|
|
99
|
-
export type MercadoLivreInstance = {
|
|
100
|
-
createdAt: Scalars['DateTime']['output'];
|
|
101
|
-
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
102
|
-
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
103
|
-
id: Scalars['ID']['output'];
|
|
104
|
-
name: Scalars['String']['output'];
|
|
105
|
-
type: MercadoLivreInstanceType;
|
|
106
|
-
updatedAt: Scalars['DateTime']['output'];
|
|
107
|
-
};
|
|
108
|
-
export declare enum MercadoLivreInstanceType {
|
|
109
|
-
PosVenda = "POS_VENDA",
|
|
110
|
-
PreVenda = "PRE_VENDA",
|
|
111
|
-
Reclamacao = "RECLAMACAO"
|
|
112
|
-
}
|
|
113
|
-
export type Mutation = {
|
|
114
|
-
createMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
115
|
-
removeMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
116
|
-
updateMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
117
|
-
version?: Maybe<Scalars['String']['output']>;
|
|
118
|
-
};
|
|
119
|
-
export type MutationCreateMercadoLivreInstanceArgs = {
|
|
120
|
-
input: CreateMercadoLivreInstanceInput;
|
|
121
|
-
};
|
|
122
|
-
export type MutationRemoveMercadoLivreInstanceArgs = {
|
|
123
|
-
input: RemoveMercadoLivreInstanceInput;
|
|
124
|
-
};
|
|
125
|
-
export type MutationUpdateMercadoLivreInstanceArgs = {
|
|
126
|
-
input: UpdateMercadoLivreInstanceInput;
|
|
127
|
-
};
|
|
128
|
-
export type PageInfo = {
|
|
129
|
-
hasNext: Scalars['Boolean']['output'];
|
|
130
|
-
next?: Maybe<Scalars['Base64']['output']>;
|
|
131
|
-
};
|
|
132
|
-
export type Query = {
|
|
133
|
-
app?: Maybe<Scalars['DRN']['output']>;
|
|
134
|
-
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
135
|
-
getMercadoLivreInstance?: Maybe<MercadoLivreInstance>;
|
|
136
|
-
listMercadoLivreInstances: Array<MercadoLivreInstance>;
|
|
137
|
-
version?: Maybe<Scalars['String']['output']>;
|
|
138
|
-
};
|
|
139
|
-
export type QueryGetMercadoLivreInstanceArgs = {
|
|
140
|
-
id: Scalars['ID']['input'];
|
|
141
|
-
};
|
|
142
|
-
export type RemoveMercadoLivreInstanceInput = {
|
|
143
|
-
id: Scalars['ID']['input'];
|
|
144
|
-
};
|
|
145
|
-
export declare enum Typenames {
|
|
146
|
-
Any = "Any",
|
|
147
|
-
GraphqlConnections = "GraphqlConnections",
|
|
148
|
-
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
149
|
-
MercadoLivreInstance = "MercadoLivreInstance"
|
|
150
|
-
}
|
|
151
|
-
export type UpdateMercadoLivreInstanceInput = {
|
|
152
|
-
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
153
|
-
id: Scalars['ID']['input'];
|
|
154
|
-
name?: InputMaybe<Scalars['String']['input']>;
|
|
155
|
-
};
|
|
156
|
-
export type ReclameAquiInstanceFragment = Pick<MercadoLivreInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'createdAt' | 'updatedAt'>;
|
|
157
|
-
export type GetMercadoLivreInstanceQueryVariables = Exact<{
|
|
158
|
-
id: Scalars['ID']['input'];
|
|
159
|
-
}>;
|
|
160
|
-
export type GetMercadoLivreInstanceQuery = {
|
|
161
|
-
getMercadoLivreInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
162
|
-
};
|
|
163
|
-
export type ListMercadoLivreInstancesQueryVariables = Exact<{
|
|
164
|
-
[key: string]: never;
|
|
165
|
-
}>;
|
|
166
|
-
export type ListMercadoLivreInstancesQuery = {
|
|
167
|
-
listMercadoLivreInstances: Array<ReclameAquiInstanceFragment>;
|
|
168
|
-
};
|
|
169
|
-
export type CreateMercadoLivreInstanceMutationVariables = Exact<{
|
|
170
|
-
input: CreateMercadoLivreInstanceInput;
|
|
171
|
-
}>;
|
|
172
|
-
export type CreateMercadoLivreInstanceMutation = {
|
|
173
|
-
createMercadoLivreInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
174
|
-
};
|
|
175
|
-
export type UpdateMercadoLivreInstanceMutationVariables = Exact<{
|
|
176
|
-
input: UpdateMercadoLivreInstanceInput;
|
|
177
|
-
}>;
|
|
178
|
-
export type UpdateMercadoLivreInstanceMutation = {
|
|
179
|
-
updateMercadoLivreInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
180
|
-
};
|
|
181
|
-
export type RemoveMercadoLivreInstanceMutationVariables = Exact<{
|
|
182
|
-
input: RemoveMercadoLivreInstanceInput;
|
|
183
|
-
}>;
|
|
184
|
-
export type RemoveMercadoLivreInstanceMutation = {
|
|
185
|
-
removeMercadoLivreInstance?: Maybe<ReclameAquiInstanceFragment>;
|
|
186
|
-
};
|
|
187
|
-
export declare const ReclameAquiInstanceFragmentDoc = "\n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
188
|
-
export declare const GetMercadoLivreInstanceDocument = "\n query getMercadoLivreInstance($id: ID!) {\n getMercadoLivreInstance(id: $id) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
189
|
-
export declare const ListMercadoLivreInstancesDocument = "\n query listMercadoLivreInstances {\n listMercadoLivreInstances {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
190
|
-
export declare const CreateMercadoLivreInstanceDocument = "\n mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {\n createMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
191
|
-
export declare const UpdateMercadoLivreInstanceDocument = "\n mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {\n updateMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
192
|
-
export declare const RemoveMercadoLivreInstanceDocument = "\n mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {\n removeMercadoLivreInstance(input: $input) {\n ...reclameAquiInstance\n }\n}\n \n fragment reclameAquiInstance on MercadoLivreInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
193
|
-
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
194
|
-
export declare function getSdk<C>(requester: Requester<C>): {
|
|
195
|
-
getMercadoLivreInstance(variables: GetMercadoLivreInstanceQueryVariables, options?: C): Promise<GetMercadoLivreInstanceQuery>;
|
|
196
|
-
listMercadoLivreInstances(variables?: ListMercadoLivreInstancesQueryVariables, options?: C): Promise<ListMercadoLivreInstancesQuery>;
|
|
197
|
-
createMercadoLivreInstance(variables: CreateMercadoLivreInstanceMutationVariables, options?: C): Promise<CreateMercadoLivreInstanceMutation>;
|
|
198
|
-
updateMercadoLivreInstance(variables: UpdateMercadoLivreInstanceMutationVariables, options?: C): Promise<UpdateMercadoLivreInstanceMutation>;
|
|
199
|
-
removeMercadoLivreInstance(variables: RemoveMercadoLivreInstanceMutationVariables, options?: C): Promise<RemoveMercadoLivreInstanceMutation>;
|
|
200
|
-
};
|
|
201
|
-
export type Sdk = ReturnType<typeof getSdk>;
|
|
202
|
-
export declare const serviceName = "@droz/mercadolivre";
|
package/src/sdks/mercadolivre.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
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.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.MercadoLivreInstanceType = 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 MercadoLivreInstanceType;
|
|
12
|
-
(function (MercadoLivreInstanceType) {
|
|
13
|
-
MercadoLivreInstanceType["PosVenda"] = "POS_VENDA";
|
|
14
|
-
MercadoLivreInstanceType["PreVenda"] = "PRE_VENDA";
|
|
15
|
-
MercadoLivreInstanceType["Reclamacao"] = "RECLAMACAO";
|
|
16
|
-
})(MercadoLivreInstanceType || (exports.MercadoLivreInstanceType = MercadoLivreInstanceType = {}));
|
|
17
|
-
var Typenames;
|
|
18
|
-
(function (Typenames) {
|
|
19
|
-
Typenames["Any"] = "Any";
|
|
20
|
-
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
21
|
-
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
22
|
-
Typenames["MercadoLivreInstance"] = "MercadoLivreInstance";
|
|
23
|
-
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
24
|
-
exports.ReclameAquiInstanceFragmentDoc = `
|
|
25
|
-
fragment reclameAquiInstance on MercadoLivreInstance {
|
|
26
|
-
id
|
|
27
|
-
name
|
|
28
|
-
credentialId
|
|
29
|
-
cronJobId
|
|
30
|
-
createdAt
|
|
31
|
-
updatedAt
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
34
|
-
exports.GetMercadoLivreInstanceDocument = `
|
|
35
|
-
query getMercadoLivreInstance($id: ID!) {
|
|
36
|
-
getMercadoLivreInstance(id: $id) {
|
|
37
|
-
...reclameAquiInstance
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
${exports.ReclameAquiInstanceFragmentDoc}`;
|
|
41
|
-
exports.ListMercadoLivreInstancesDocument = `
|
|
42
|
-
query listMercadoLivreInstances {
|
|
43
|
-
listMercadoLivreInstances {
|
|
44
|
-
...reclameAquiInstance
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
${exports.ReclameAquiInstanceFragmentDoc}`;
|
|
48
|
-
exports.CreateMercadoLivreInstanceDocument = `
|
|
49
|
-
mutation createMercadoLivreInstance($input: CreateMercadoLivreInstanceInput!) {
|
|
50
|
-
createMercadoLivreInstance(input: $input) {
|
|
51
|
-
...reclameAquiInstance
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
${exports.ReclameAquiInstanceFragmentDoc}`;
|
|
55
|
-
exports.UpdateMercadoLivreInstanceDocument = `
|
|
56
|
-
mutation updateMercadoLivreInstance($input: UpdateMercadoLivreInstanceInput!) {
|
|
57
|
-
updateMercadoLivreInstance(input: $input) {
|
|
58
|
-
...reclameAquiInstance
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
${exports.ReclameAquiInstanceFragmentDoc}`;
|
|
62
|
-
exports.RemoveMercadoLivreInstanceDocument = `
|
|
63
|
-
mutation removeMercadoLivreInstance($input: RemoveMercadoLivreInstanceInput!) {
|
|
64
|
-
removeMercadoLivreInstance(input: $input) {
|
|
65
|
-
...reclameAquiInstance
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
${exports.ReclameAquiInstanceFragmentDoc}`;
|
|
69
|
-
function getSdk(requester) {
|
|
70
|
-
return {
|
|
71
|
-
getMercadoLivreInstance(variables, options) {
|
|
72
|
-
return requester(exports.GetMercadoLivreInstanceDocument, variables, options);
|
|
73
|
-
},
|
|
74
|
-
listMercadoLivreInstances(variables, options) {
|
|
75
|
-
return requester(exports.ListMercadoLivreInstancesDocument, variables, options);
|
|
76
|
-
},
|
|
77
|
-
createMercadoLivreInstance(variables, options) {
|
|
78
|
-
return requester(exports.CreateMercadoLivreInstanceDocument, variables, options);
|
|
79
|
-
},
|
|
80
|
-
updateMercadoLivreInstance(variables, options) {
|
|
81
|
-
return requester(exports.UpdateMercadoLivreInstanceDocument, variables, options);
|
|
82
|
-
},
|
|
83
|
-
removeMercadoLivreInstance(variables, options) {
|
|
84
|
-
return requester(exports.RemoveMercadoLivreInstanceDocument, variables, options);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
exports.getSdk = getSdk;
|
|
89
|
-
exports.serviceName = '@droz/mercadolivre';
|