@droz-js/sdk 0.5.11 → 0.5.13
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/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 +9 -14
- package/src/sdks/casasbahia.js +3 -7
- package/src/sdks/nucleus.d.ts +3 -0
- 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.13",
|
|
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/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
|
@@ -107,23 +107,18 @@ export type ApplySolutionPayloadInput = {
|
|
|
107
107
|
solutionId: Scalars['Int']['input'];
|
|
108
108
|
};
|
|
109
109
|
export type CasasBahiaInstance = {
|
|
110
|
+
createdAt: Scalars['DateTime']['output'];
|
|
110
111
|
credentialId?: Maybe<Scalars['ID']['output']>;
|
|
111
112
|
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
112
113
|
id: Scalars['ID']['output'];
|
|
113
114
|
isTest?: Maybe<Scalars['Boolean']['output']>;
|
|
114
115
|
name: Scalars['String']['output'];
|
|
115
|
-
|
|
116
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
116
117
|
};
|
|
117
|
-
export declare enum CasasBahiaInstanceType {
|
|
118
|
-
PosVenda = "POS_VENDA",
|
|
119
|
-
PreVenda = "PRE_VENDA",
|
|
120
|
-
Reclamacao = "RECLAMACAO"
|
|
121
|
-
}
|
|
122
118
|
export type CreateCasasBahiaInstanceInput = {
|
|
123
119
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
124
120
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
125
121
|
name: Scalars['String']['input'];
|
|
126
|
-
type: CasasBahiaInstanceType;
|
|
127
122
|
};
|
|
128
123
|
export type Mutation = {
|
|
129
124
|
applySolution?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -194,7 +189,7 @@ export type UpdateCasasBahiaInstanceInput = {
|
|
|
194
189
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
195
190
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
196
191
|
};
|
|
197
|
-
export type CasasbahiaInstanceFragment = Pick<CasasBahiaInstance, 'id' | 'name' | 'credentialId' | 'cronJobId'>;
|
|
192
|
+
export type CasasbahiaInstanceFragment = Pick<CasasBahiaInstance, 'id' | 'name' | 'credentialId' | 'cronJobId' | 'createdAt' | 'updatedAt'>;
|
|
198
193
|
export type SolutionsFragment = (Pick<Solutions, 'id' | 'name' | 'description'> & {
|
|
199
194
|
fields: Array<Pick<SolutionField, 'name' | 'type' | 'required' | 'minLength' | 'format'>>;
|
|
200
195
|
});
|
|
@@ -238,14 +233,14 @@ export type ApplySolutionMutationVariables = Exact<{
|
|
|
238
233
|
input: ApplySolutionInput;
|
|
239
234
|
}>;
|
|
240
235
|
export type ApplySolutionMutation = Pick<Mutation, 'applySolution'>;
|
|
241
|
-
export declare const CasasbahiaInstanceFragmentDoc = "\n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n}\n ";
|
|
236
|
+
export declare const CasasbahiaInstanceFragmentDoc = "\n fragment casasbahiaInstance on CasasBahiaInstance {\n id\n name\n credentialId\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
242
237
|
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 ";
|
|
243
|
-
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}\n ";
|
|
244
|
-
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}\n ";
|
|
238
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
239
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
245
240
|
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 ";
|
|
246
|
-
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}\n ";
|
|
247
|
-
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}\n ";
|
|
248
|
-
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}\n ";
|
|
241
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
242
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
243
|
+
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 createdAt\n updatedAt\n}\n ";
|
|
249
244
|
export declare const ApplySolutionDocument = "\n mutation applySolution($input: ApplySolutionInput!) {\n applySolution(input: $input)\n}\n ";
|
|
250
245
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
251
246
|
export declare function getSdk<C>(requester: Requester<C>): {
|
package/src/sdks/casasbahia.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
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.ListAvailableSolutionsDocument = exports.ListCasasBahiaInstancesDocument = exports.GetCasasBahiaInstanceDocument = exports.SolutionsFragmentDoc = exports.CasasbahiaInstanceFragmentDoc = exports.Typenames = exports.SolutionFieldType = exports.
|
|
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.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
8
8
|
AppInstanceStatus["Failing"] = "Failing";
|
|
9
9
|
AppInstanceStatus["Inactive"] = "Inactive";
|
|
10
10
|
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
11
|
-
var CasasBahiaInstanceType;
|
|
12
|
-
(function (CasasBahiaInstanceType) {
|
|
13
|
-
CasasBahiaInstanceType["PosVenda"] = "POS_VENDA";
|
|
14
|
-
CasasBahiaInstanceType["PreVenda"] = "PRE_VENDA";
|
|
15
|
-
CasasBahiaInstanceType["Reclamacao"] = "RECLAMACAO";
|
|
16
|
-
})(CasasBahiaInstanceType || (exports.CasasBahiaInstanceType = CasasBahiaInstanceType = {}));
|
|
17
11
|
var SolutionFieldType;
|
|
18
12
|
(function (SolutionFieldType) {
|
|
19
13
|
SolutionFieldType["Date"] = "date";
|
|
@@ -32,6 +26,8 @@ exports.CasasbahiaInstanceFragmentDoc = `
|
|
|
32
26
|
name
|
|
33
27
|
credentialId
|
|
34
28
|
cronJobId
|
|
29
|
+
createdAt
|
|
30
|
+
updatedAt
|
|
35
31
|
}
|
|
36
32
|
`;
|
|
37
33
|
exports.SolutionsFragmentDoc = `
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -196,6 +196,7 @@ export type CognitoConfig = {
|
|
|
196
196
|
export type CreateAgentInput = {
|
|
197
197
|
email: Scalars['EmailAddress']['input'];
|
|
198
198
|
name: Scalars['String']['input'];
|
|
199
|
+
picture?: InputMaybe<Scalars['String']['input']>;
|
|
199
200
|
};
|
|
200
201
|
export type CreateApiKeyAgentInput = {
|
|
201
202
|
name: Scalars['String']['input'];
|
|
@@ -722,6 +723,7 @@ export type UpdateAgentInput = {
|
|
|
722
723
|
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
723
724
|
id: Scalars['ID']['input'];
|
|
724
725
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
726
|
+
picture?: InputMaybe<Scalars['String']['input']>;
|
|
725
727
|
};
|
|
726
728
|
export type UpdateCredentialsInput = {
|
|
727
729
|
credentials: Scalars['JSON']['input'];
|
|
@@ -739,6 +741,7 @@ export type UpdateCronJobInput = {
|
|
|
739
741
|
export type UpdateMyProfileInput = {
|
|
740
742
|
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
741
743
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
744
|
+
picture?: InputMaybe<Scalars['String']['input']>;
|
|
742
745
|
};
|
|
743
746
|
export type UpdateStateMachineConfigInput = {
|
|
744
747
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -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';
|