@droz-js/sdk 0.8.7 → 0.9.0
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/drozadmin.d.ts +42 -0
- package/src/drozadmin.js +4 -0
- package/src/sdks/drozanalytics.d.ts +274 -0
- package/src/sdks/drozanalytics.js +54 -0
- package/src/sdks/drozcommons.d.ts +220 -13
- package/src/sdks/drozcommons.js +151 -2
- package/src/sdks/droznexo.d.ts +3 -2
- package/src/sdks/droznexo.js +0 -1
- package/src/sdks/zendesk.d.ts +8 -0
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -49,6 +49,47 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
49
49
|
batchDeploy(variables: import("./sdks/drozcommons").Exact<{
|
|
50
50
|
input: import("./sdks/drozcommons").BatchDeployInput;
|
|
51
51
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").BatchDeployMutation>;
|
|
52
|
+
updateGlobalSecrets(variables: import("./sdks/drozcommons").Exact<{
|
|
53
|
+
input: import("./sdks/drozcommons").UpdateGlobalSecretsInput;
|
|
54
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateGlobalSecretsMutation>;
|
|
55
|
+
listTenantParameters(variables: import("./sdks/drozcommons").Exact<{
|
|
56
|
+
tenantId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantParametersQuery>;
|
|
58
|
+
getTenantParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
59
|
+
tenantId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
60
|
+
name: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
61
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantParameterQuery>;
|
|
62
|
+
listAccountParameters(variables: import("./sdks/drozcommons").Exact<{
|
|
63
|
+
accountId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
64
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountParametersQuery>;
|
|
65
|
+
getAccountParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
66
|
+
accountId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
67
|
+
name: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
68
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAccountParameterQuery>;
|
|
69
|
+
listGlobalParameters(variables?: import("./sdks/drozcommons").Exact<{
|
|
70
|
+
[key: string]: never;
|
|
71
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGlobalParametersQuery>;
|
|
72
|
+
getGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
73
|
+
name: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
74
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetGlobalParameterQuery>;
|
|
75
|
+
setTenantParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
76
|
+
input: import("./sdks/drozcommons").SetTenantParameterInput;
|
|
77
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetTenantParameterMutation>;
|
|
78
|
+
removeTenantParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
79
|
+
input: import("./sdks/drozcommons").RemoveTenantParameterInput;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantParameterMutation>;
|
|
81
|
+
setAccountParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
82
|
+
input: import("./sdks/drozcommons").SetAccountParameterInput;
|
|
83
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetAccountParameterMutation>;
|
|
84
|
+
removeAccountParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
85
|
+
input: import("./sdks/drozcommons").RemoveAccountParameterInput;
|
|
86
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveAccountParameterMutation>;
|
|
87
|
+
setGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
88
|
+
input: import("./sdks/drozcommons").SetGlobalParameterInput;
|
|
89
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetGlobalParameterMutation>;
|
|
90
|
+
removeGlobalParameter(variables: import("./sdks/drozcommons").Exact<{
|
|
91
|
+
input: import("./sdks/drozcommons").RemoveGlobalParameterInput;
|
|
92
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveGlobalParameterMutation>;
|
|
52
93
|
listServices(variables: import("./sdks/drozcommons").Exact<{
|
|
53
94
|
tenantId: import("./sdks/drozcommons").Scalars["ID"]["input"];
|
|
54
95
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListServicesQuery>;
|
|
@@ -79,4 +120,5 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
79
120
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").JoinTenantAsSuperAdminMutation>;
|
|
80
121
|
};
|
|
81
122
|
export declare class DrozAdmin extends DrozAdmin_base {
|
|
123
|
+
constructor();
|
|
82
124
|
}
|
package/src/drozadmin.js
CHANGED
|
@@ -19,5 +19,9 @@ const http_1 = require("./client/http");
|
|
|
19
19
|
const drozcommons_1 = require("./sdks/drozcommons");
|
|
20
20
|
__exportStar(require("./sdks/drozcommons"), exports);
|
|
21
21
|
class DrozAdmin extends (0, http_1.HttpClientBuilder)(drozcommons_1.serviceName, drozcommons_1.getSdk) {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.forTenant('core');
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
exports.DrozAdmin = DrozAdmin;
|
|
@@ -0,0 +1,274 @@
|
|
|
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
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
108
|
+
Timezone: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
112
|
+
URL: {
|
|
113
|
+
input: string;
|
|
114
|
+
output: string;
|
|
115
|
+
};
|
|
116
|
+
VariableName: {
|
|
117
|
+
input: string;
|
|
118
|
+
output: string;
|
|
119
|
+
};
|
|
120
|
+
Void: {
|
|
121
|
+
input: void;
|
|
122
|
+
output: void;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
130
|
+
export type AnalyticsAverage = {
|
|
131
|
+
current: Scalars['Float']['output'];
|
|
132
|
+
delta?: Maybe<Scalars['Float']['output']>;
|
|
133
|
+
previous: Scalars['Float']['output'];
|
|
134
|
+
};
|
|
135
|
+
export type AnalyticsChart = {
|
|
136
|
+
current: Scalars['Float']['output'];
|
|
137
|
+
delta?: Maybe<Scalars['Float']['output']>;
|
|
138
|
+
name: Scalars['String']['output'];
|
|
139
|
+
previous: Scalars['Float']['output'];
|
|
140
|
+
};
|
|
141
|
+
export declare enum AppInstanceStatus {
|
|
142
|
+
Active = "Active",
|
|
143
|
+
Failing = "Failing",
|
|
144
|
+
Inactive = "Inactive"
|
|
145
|
+
}
|
|
146
|
+
export declare enum Can {
|
|
147
|
+
Manage = "manage",
|
|
148
|
+
Read = "read",
|
|
149
|
+
Remove = "remove",
|
|
150
|
+
Write = "write"
|
|
151
|
+
}
|
|
152
|
+
export type I18nText = {
|
|
153
|
+
lang: Scalars['Locale']['output'];
|
|
154
|
+
value: Scalars['String']['output'];
|
|
155
|
+
};
|
|
156
|
+
export type I18nTextInput = {
|
|
157
|
+
lang: Scalars['Locale']['input'];
|
|
158
|
+
value: Scalars['String']['input'];
|
|
159
|
+
};
|
|
160
|
+
export type Mutation = {
|
|
161
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
162
|
+
};
|
|
163
|
+
export type NumberMatcher = {
|
|
164
|
+
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
165
|
+
eq?: Maybe<Scalars['Number']['output']>;
|
|
166
|
+
gt?: Maybe<Scalars['Number']['output']>;
|
|
167
|
+
gte?: Maybe<Scalars['Number']['output']>;
|
|
168
|
+
lt?: Maybe<Scalars['Number']['output']>;
|
|
169
|
+
lte?: Maybe<Scalars['Number']['output']>;
|
|
170
|
+
ne?: Maybe<Scalars['Number']['output']>;
|
|
171
|
+
};
|
|
172
|
+
export type NumberMatcherInput = {
|
|
173
|
+
btw?: InputMaybe<Array<Scalars['Number']['input']>>;
|
|
174
|
+
eq?: InputMaybe<Scalars['Number']['input']>;
|
|
175
|
+
gt?: InputMaybe<Scalars['Number']['input']>;
|
|
176
|
+
gte?: InputMaybe<Scalars['Number']['input']>;
|
|
177
|
+
lt?: InputMaybe<Scalars['Number']['input']>;
|
|
178
|
+
lte?: InputMaybe<Scalars['Number']['input']>;
|
|
179
|
+
ne?: InputMaybe<Scalars['Number']['input']>;
|
|
180
|
+
};
|
|
181
|
+
export type PageInfo = {
|
|
182
|
+
hasNext: Scalars['Boolean']['output'];
|
|
183
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
184
|
+
};
|
|
185
|
+
export type Query = {
|
|
186
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
187
|
+
getFirstResponseTime?: Maybe<AnalyticsAverage>;
|
|
188
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
getTicketsByStatus?: Maybe<Array<Maybe<AnalyticsChart>>>;
|
|
190
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
191
|
+
};
|
|
192
|
+
export type QueryGetFirstResponseTimeArgs = {
|
|
193
|
+
endDate: Scalars['Date']['input'];
|
|
194
|
+
startDate: Scalars['Date']['input'];
|
|
195
|
+
};
|
|
196
|
+
export type QueryGetTicketsByStatusArgs = {
|
|
197
|
+
endDate: Scalars['Date']['input'];
|
|
198
|
+
startDate: Scalars['Date']['input'];
|
|
199
|
+
};
|
|
200
|
+
export type SearchResultsFacet = {
|
|
201
|
+
name: Scalars['String']['output'];
|
|
202
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
203
|
+
values?: Maybe<Array<SearchResultsFacetValue>>;
|
|
204
|
+
};
|
|
205
|
+
export type SearchResultsFacetStats = {
|
|
206
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
207
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
208
|
+
};
|
|
209
|
+
export type SearchResultsFacetValue = {
|
|
210
|
+
count: Scalars['Float']['output'];
|
|
211
|
+
value: Scalars['String']['output'];
|
|
212
|
+
};
|
|
213
|
+
export type SearchResultsStats = {
|
|
214
|
+
found: Scalars['Float']['output'];
|
|
215
|
+
outOf: Scalars['Float']['output'];
|
|
216
|
+
page: Scalars['Float']['output'];
|
|
217
|
+
perPage: Scalars['Float']['output'];
|
|
218
|
+
searchTime: Scalars['Float']['output'];
|
|
219
|
+
totalPages: Scalars['Float']['output'];
|
|
220
|
+
};
|
|
221
|
+
export type StringMatcher = {
|
|
222
|
+
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
223
|
+
ct?: Maybe<Scalars['String']['output']>;
|
|
224
|
+
cti?: Maybe<Scalars['String']['output']>;
|
|
225
|
+
eq?: Maybe<Scalars['String']['output']>;
|
|
226
|
+
eqi?: Maybe<Scalars['String']['output']>;
|
|
227
|
+
gt?: Maybe<Scalars['String']['output']>;
|
|
228
|
+
gte?: Maybe<Scalars['String']['output']>;
|
|
229
|
+
in?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
230
|
+
lt?: Maybe<Scalars['String']['output']>;
|
|
231
|
+
lte?: Maybe<Scalars['String']['output']>;
|
|
232
|
+
ne?: Maybe<Scalars['String']['output']>;
|
|
233
|
+
};
|
|
234
|
+
export type StringMatcherInput = {
|
|
235
|
+
btw?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
236
|
+
ct?: InputMaybe<Scalars['String']['input']>;
|
|
237
|
+
cti?: InputMaybe<Scalars['String']['input']>;
|
|
238
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
239
|
+
eqi?: InputMaybe<Scalars['String']['input']>;
|
|
240
|
+
gt?: InputMaybe<Scalars['String']['input']>;
|
|
241
|
+
gte?: InputMaybe<Scalars['String']['input']>;
|
|
242
|
+
in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
243
|
+
lt?: InputMaybe<Scalars['String']['input']>;
|
|
244
|
+
lte?: InputMaybe<Scalars['String']['input']>;
|
|
245
|
+
ne?: InputMaybe<Scalars['String']['input']>;
|
|
246
|
+
};
|
|
247
|
+
export declare enum Typenames {
|
|
248
|
+
Any = "Any",
|
|
249
|
+
GraphqlConnections = "GraphqlConnections",
|
|
250
|
+
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
251
|
+
}
|
|
252
|
+
export type GetFirstResponseTimeQueryVariables = Exact<{
|
|
253
|
+
startDate: Scalars['Date']['input'];
|
|
254
|
+
endDate: Scalars['Date']['input'];
|
|
255
|
+
}>;
|
|
256
|
+
export type GetFirstResponseTimeQuery = {
|
|
257
|
+
getFirstResponseTime?: Maybe<Pick<AnalyticsAverage, 'current' | 'previous' | 'delta'>>;
|
|
258
|
+
};
|
|
259
|
+
export type GetTicketsByStatusQueryVariables = Exact<{
|
|
260
|
+
startDate: Scalars['Date']['input'];
|
|
261
|
+
endDate: Scalars['Date']['input'];
|
|
262
|
+
}>;
|
|
263
|
+
export type GetTicketsByStatusQuery = {
|
|
264
|
+
getTicketsByStatus?: Maybe<Array<Maybe<Pick<AnalyticsChart, 'name' | 'current' | 'previous' | 'delta'>>>>;
|
|
265
|
+
};
|
|
266
|
+
export declare const GetFirstResponseTimeDocument = "\n query getFirstResponseTime($startDate: Date!, $endDate: Date!) {\n getFirstResponseTime(startDate: $startDate, endDate: $endDate) {\n current\n previous\n delta\n }\n}\n ";
|
|
267
|
+
export declare const GetTicketsByStatusDocument = "\n query getTicketsByStatus($startDate: Date!, $endDate: Date!) {\n getTicketsByStatus(startDate: $startDate, endDate: $endDate) {\n name\n current\n previous\n delta\n }\n}\n ";
|
|
268
|
+
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
269
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
270
|
+
getFirstResponseTime(variables: GetFirstResponseTimeQueryVariables, options?: C): Promise<GetFirstResponseTimeQuery>;
|
|
271
|
+
getTicketsByStatus(variables: GetTicketsByStatusQueryVariables, options?: C): Promise<GetTicketsByStatusQuery>;
|
|
272
|
+
};
|
|
273
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
274
|
+
export declare const serviceName = "@droz/drozanalytics";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.serviceName = exports.GetTicketsByStatusDocument = exports.GetFirstResponseTimeDocument = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.getSdk = getSdk;
|
|
6
|
+
var AppInstanceStatus;
|
|
7
|
+
(function (AppInstanceStatus) {
|
|
8
|
+
AppInstanceStatus["Active"] = "Active";
|
|
9
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
10
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
11
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
12
|
+
var Can;
|
|
13
|
+
(function (Can) {
|
|
14
|
+
Can["Manage"] = "manage";
|
|
15
|
+
Can["Read"] = "read";
|
|
16
|
+
Can["Remove"] = "remove";
|
|
17
|
+
Can["Write"] = "write";
|
|
18
|
+
})(Can || (exports.Can = Can = {}));
|
|
19
|
+
var Typenames;
|
|
20
|
+
(function (Typenames) {
|
|
21
|
+
Typenames["Any"] = "Any";
|
|
22
|
+
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
23
|
+
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
24
|
+
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
25
|
+
exports.GetFirstResponseTimeDocument = `
|
|
26
|
+
query getFirstResponseTime($startDate: Date!, $endDate: Date!) {
|
|
27
|
+
getFirstResponseTime(startDate: $startDate, endDate: $endDate) {
|
|
28
|
+
current
|
|
29
|
+
previous
|
|
30
|
+
delta
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
exports.GetTicketsByStatusDocument = `
|
|
35
|
+
query getTicketsByStatus($startDate: Date!, $endDate: Date!) {
|
|
36
|
+
getTicketsByStatus(startDate: $startDate, endDate: $endDate) {
|
|
37
|
+
name
|
|
38
|
+
current
|
|
39
|
+
previous
|
|
40
|
+
delta
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
function getSdk(requester) {
|
|
45
|
+
return {
|
|
46
|
+
getFirstResponseTime(variables, options) {
|
|
47
|
+
return requester(exports.GetFirstResponseTimeDocument, variables, options);
|
|
48
|
+
},
|
|
49
|
+
getTicketsByStatus(variables, options) {
|
|
50
|
+
return requester(exports.GetTicketsByStatusDocument, variables, options);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.serviceName = '@droz/drozanalytics';
|
|
@@ -155,7 +155,6 @@ export type AwsAccount = {
|
|
|
155
155
|
};
|
|
156
156
|
export type AwsAccountParameters = {
|
|
157
157
|
administrativeApiSecret?: Maybe<Scalars['String']['output']>;
|
|
158
|
-
analyticsJwtSignKey?: Maybe<Scalars['String']['output']>;
|
|
159
158
|
mercadoLivreClientId?: Maybe<Scalars['String']['output']>;
|
|
160
159
|
mercadoLivreClientSecret?: Maybe<Scalars['String']['output']>;
|
|
161
160
|
metaAppId?: Maybe<Scalars['String']['output']>;
|
|
@@ -245,6 +244,9 @@ export type GitRepository = {
|
|
|
245
244
|
id: Scalars['ID']['output'];
|
|
246
245
|
name: Scalars['String']['output'];
|
|
247
246
|
};
|
|
247
|
+
export type GlobalSecrets = {
|
|
248
|
+
crossServiceJwtSignKey?: Maybe<Scalars['String']['output']>;
|
|
249
|
+
};
|
|
248
250
|
export type I18nText = {
|
|
249
251
|
lang: Scalars['Locale']['output'];
|
|
250
252
|
value: Scalars['String']['output'];
|
|
@@ -262,8 +264,15 @@ export type Mutation = {
|
|
|
262
264
|
deploy: Deployment;
|
|
263
265
|
destroy: Deployment;
|
|
264
266
|
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
267
|
+
removeAccountParameter?: Maybe<Parameter>;
|
|
268
|
+
removeGlobalParameter?: Maybe<Parameter>;
|
|
265
269
|
removeTenant: Tenant;
|
|
270
|
+
removeTenantParameter?: Maybe<Parameter>;
|
|
271
|
+
setAccountParameter: Parameter;
|
|
272
|
+
setGlobalParameter: Parameter;
|
|
273
|
+
setTenantParameter: Parameter;
|
|
266
274
|
updateAccountParameters: AwsAccount;
|
|
275
|
+
updateGlobalSecrets: GlobalSecrets;
|
|
267
276
|
updateTenant: Tenant;
|
|
268
277
|
version?: Maybe<Scalars['String']['output']>;
|
|
269
278
|
};
|
|
@@ -282,12 +291,33 @@ export type MutationDestroyArgs = {
|
|
|
282
291
|
export type MutationJoinTenantAsSuperAdminArgs = {
|
|
283
292
|
input: JoinTenantAsSuperAdminInput;
|
|
284
293
|
};
|
|
294
|
+
export type MutationRemoveAccountParameterArgs = {
|
|
295
|
+
input: RemoveAccountParameterInput;
|
|
296
|
+
};
|
|
297
|
+
export type MutationRemoveGlobalParameterArgs = {
|
|
298
|
+
input: RemoveGlobalParameterInput;
|
|
299
|
+
};
|
|
285
300
|
export type MutationRemoveTenantArgs = {
|
|
286
301
|
input: RemoveTenantInput;
|
|
287
302
|
};
|
|
303
|
+
export type MutationRemoveTenantParameterArgs = {
|
|
304
|
+
input: RemoveTenantParameterInput;
|
|
305
|
+
};
|
|
306
|
+
export type MutationSetAccountParameterArgs = {
|
|
307
|
+
input: SetAccountParameterInput;
|
|
308
|
+
};
|
|
309
|
+
export type MutationSetGlobalParameterArgs = {
|
|
310
|
+
input: SetGlobalParameterInput;
|
|
311
|
+
};
|
|
312
|
+
export type MutationSetTenantParameterArgs = {
|
|
313
|
+
input: SetTenantParameterInput;
|
|
314
|
+
};
|
|
288
315
|
export type MutationUpdateAccountParametersArgs = {
|
|
289
316
|
input: UpdateAccountParametersInput;
|
|
290
317
|
};
|
|
318
|
+
export type MutationUpdateGlobalSecretsArgs = {
|
|
319
|
+
input: UpdateGlobalSecretsInput;
|
|
320
|
+
};
|
|
291
321
|
export type MutationUpdateTenantArgs = {
|
|
292
322
|
input: UpdateTenantInput;
|
|
293
323
|
};
|
|
@@ -313,20 +343,38 @@ export type PageInfo = {
|
|
|
313
343
|
hasNext: Scalars['Boolean']['output'];
|
|
314
344
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
315
345
|
};
|
|
346
|
+
export type Parameter = {
|
|
347
|
+
name: Scalars['String']['output'];
|
|
348
|
+
namespace: Scalars['String']['output'];
|
|
349
|
+
type: ParameterType;
|
|
350
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
351
|
+
};
|
|
352
|
+
export declare enum ParameterType {
|
|
353
|
+
Array = "array",
|
|
354
|
+
Boolean = "boolean",
|
|
355
|
+
Number = "number",
|
|
356
|
+
String = "string"
|
|
357
|
+
}
|
|
316
358
|
export type Query = {
|
|
317
359
|
amplifyConfig?: Maybe<Scalars['JSON']['output']>;
|
|
318
360
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
319
361
|
authInfo?: Maybe<AuthInfo>;
|
|
320
362
|
deploymentLogs: DeploymentLogConnection;
|
|
363
|
+
getAccountParameter?: Maybe<Parameter>;
|
|
321
364
|
getDeployment: Deployment;
|
|
365
|
+
getGlobalParameter?: Maybe<Parameter>;
|
|
322
366
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
323
367
|
getTenant?: Maybe<Tenant>;
|
|
368
|
+
getTenantParameter?: Maybe<Parameter>;
|
|
369
|
+
listAccountParameters?: Maybe<Array<Parameter>>;
|
|
324
370
|
listAccounts: Array<AwsAccount>;
|
|
325
371
|
listDeployments: Array<Deployment>;
|
|
326
372
|
listGitBranches: Array<GitBranch>;
|
|
327
373
|
listGitRepositories: Array<GitRepository>;
|
|
374
|
+
listGlobalParameters?: Maybe<Array<Parameter>>;
|
|
328
375
|
listRegions: Array<Region>;
|
|
329
376
|
listServices: Array<Maybe<Service>>;
|
|
377
|
+
listTenantParameters?: Maybe<Array<Parameter>>;
|
|
330
378
|
listTenants: Array<Maybe<Tenant>>;
|
|
331
379
|
searchSessionsOnTenant: Array<Maybe<Scalars['JSON']['output']>>;
|
|
332
380
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -339,13 +387,27 @@ export type QueryDeploymentLogsArgs = {
|
|
|
339
387
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
340
388
|
tenantId: Scalars['ID']['input'];
|
|
341
389
|
};
|
|
390
|
+
export type QueryGetAccountParameterArgs = {
|
|
391
|
+
accountId: Scalars['String']['input'];
|
|
392
|
+
name: Scalars['String']['input'];
|
|
393
|
+
};
|
|
342
394
|
export type QueryGetDeploymentArgs = {
|
|
343
395
|
deploymentId: Scalars['ID']['input'];
|
|
344
396
|
tenantId: Scalars['ID']['input'];
|
|
345
397
|
};
|
|
398
|
+
export type QueryGetGlobalParameterArgs = {
|
|
399
|
+
name: Scalars['String']['input'];
|
|
400
|
+
};
|
|
346
401
|
export type QueryGetTenantArgs = {
|
|
347
402
|
tenantId: Scalars['TenantId']['input'];
|
|
348
403
|
};
|
|
404
|
+
export type QueryGetTenantParameterArgs = {
|
|
405
|
+
name: Scalars['String']['input'];
|
|
406
|
+
tenantId: Scalars['String']['input'];
|
|
407
|
+
};
|
|
408
|
+
export type QueryListAccountParametersArgs = {
|
|
409
|
+
accountId: Scalars['String']['input'];
|
|
410
|
+
};
|
|
349
411
|
export type QueryListDeploymentsArgs = {
|
|
350
412
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
351
413
|
tenantId: Scalars['ID']['input'];
|
|
@@ -356,6 +418,9 @@ export type QueryListGitBranchesArgs = {
|
|
|
356
418
|
export type QueryListServicesArgs = {
|
|
357
419
|
tenantId: Scalars['ID']['input'];
|
|
358
420
|
};
|
|
421
|
+
export type QueryListTenantParametersArgs = {
|
|
422
|
+
tenantId: Scalars['String']['input'];
|
|
423
|
+
};
|
|
359
424
|
export type QuerySearchSessionsOnTenantArgs = {
|
|
360
425
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
361
426
|
tenantId: Scalars['TenantId']['input'];
|
|
@@ -369,9 +434,20 @@ export type ReclameAquiBillingInput = {
|
|
|
369
434
|
export type Region = {
|
|
370
435
|
name: Scalars['String']['output'];
|
|
371
436
|
};
|
|
437
|
+
export type RemoveAccountParameterInput = {
|
|
438
|
+
accountId: Scalars['String']['input'];
|
|
439
|
+
name: Scalars['String']['input'];
|
|
440
|
+
};
|
|
441
|
+
export type RemoveGlobalParameterInput = {
|
|
442
|
+
name: Scalars['String']['input'];
|
|
443
|
+
};
|
|
372
444
|
export type RemoveTenantInput = {
|
|
373
445
|
tenantId: Scalars['TenantId']['input'];
|
|
374
446
|
};
|
|
447
|
+
export type RemoveTenantParameterInput = {
|
|
448
|
+
name: Scalars['String']['input'];
|
|
449
|
+
tenantId: Scalars['String']['input'];
|
|
450
|
+
};
|
|
375
451
|
export type SearchResultsFacet = {
|
|
376
452
|
name: Scalars['String']['output'];
|
|
377
453
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -400,6 +476,23 @@ export type Service = {
|
|
|
400
476
|
tenantId: Scalars['ID']['output'];
|
|
401
477
|
type: Scalars['String']['output'];
|
|
402
478
|
};
|
|
479
|
+
export type SetAccountParameterInput = {
|
|
480
|
+
accountId: Scalars['String']['input'];
|
|
481
|
+
name: Scalars['String']['input'];
|
|
482
|
+
type?: InputMaybe<ParameterType>;
|
|
483
|
+
value: Scalars['String']['input'];
|
|
484
|
+
};
|
|
485
|
+
export type SetGlobalParameterInput = {
|
|
486
|
+
name: Scalars['String']['input'];
|
|
487
|
+
type?: InputMaybe<ParameterType>;
|
|
488
|
+
value: Scalars['String']['input'];
|
|
489
|
+
};
|
|
490
|
+
export type SetTenantParameterInput = {
|
|
491
|
+
name: Scalars['String']['input'];
|
|
492
|
+
tenantId: Scalars['String']['input'];
|
|
493
|
+
type?: InputMaybe<ParameterType>;
|
|
494
|
+
value: Scalars['String']['input'];
|
|
495
|
+
};
|
|
403
496
|
export type StringMatcher = {
|
|
404
497
|
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
405
498
|
ct?: Maybe<Scalars['String']['output']>;
|
|
@@ -434,6 +527,7 @@ export type Tenant = {
|
|
|
434
527
|
deployedVersions?: Maybe<Scalars['JSON']['output']>;
|
|
435
528
|
deployments: Array<Deployment>;
|
|
436
529
|
disabled?: Maybe<Scalars['Boolean']['output']>;
|
|
530
|
+
globalSecrets?: Maybe<GlobalSecrets>;
|
|
437
531
|
name?: Maybe<Scalars['String']['output']>;
|
|
438
532
|
region: Scalars['String']['output'];
|
|
439
533
|
services: Array<Maybe<Service>>;
|
|
@@ -447,11 +541,12 @@ export type TenantBillingInput = {
|
|
|
447
541
|
export declare enum Typenames {
|
|
448
542
|
Any = "Any",
|
|
449
543
|
GraphqlConnections = "GraphqlConnections",
|
|
450
|
-
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
544
|
+
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
545
|
+
Parameters = "Parameters",
|
|
546
|
+
Tenants = "Tenants"
|
|
451
547
|
}
|
|
452
548
|
export type UpdateAccountParametersInput = {
|
|
453
549
|
administrativeApiSecret?: InputMaybe<Scalars['String']['input']>;
|
|
454
|
-
analyticsJwtSignKey?: InputMaybe<Scalars['String']['input']>;
|
|
455
550
|
id: Scalars['ID']['input'];
|
|
456
551
|
mercadoLivreClientId?: InputMaybe<Scalars['String']['input']>;
|
|
457
552
|
mercadoLivreClientSecret?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -465,6 +560,9 @@ export type UpdateAccountParametersInput = {
|
|
|
465
560
|
typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
466
561
|
typesenseNodes?: InputMaybe<Scalars['String']['input']>;
|
|
467
562
|
};
|
|
563
|
+
export type UpdateGlobalSecretsInput = {
|
|
564
|
+
crossServiceJwtSignKey?: InputMaybe<Scalars['String']['input']>;
|
|
565
|
+
};
|
|
468
566
|
export type UpdateTenantInput = {
|
|
469
567
|
billing?: InputMaybe<TenantBillingInput>;
|
|
470
568
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -472,7 +570,7 @@ export type UpdateTenantInput = {
|
|
|
472
570
|
};
|
|
473
571
|
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
474
572
|
availableRegions: Array<RegionFragment>;
|
|
475
|
-
parameters: Pick<AwsAccountParameters, 'administrativeApiSecret' | 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken' | 'metaSystemUserId' | 'metaSystemUserToken' | 'mercadoLivreClientId' | 'mercadoLivreClientSecret'
|
|
573
|
+
parameters: Pick<AwsAccountParameters, 'administrativeApiSecret' | 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken' | 'metaSystemUserId' | 'metaSystemUserToken' | 'mercadoLivreClientId' | 'mercadoLivreClientSecret'>;
|
|
476
574
|
});
|
|
477
575
|
export type RegionFragment = Pick<Region, 'name'>;
|
|
478
576
|
export type ListAccountsQueryVariables = Exact<{
|
|
@@ -565,6 +663,87 @@ export type BatchDeployMutationVariables = Exact<{
|
|
|
565
663
|
export type BatchDeployMutation = {
|
|
566
664
|
batchDeploy: Array<DeploymentFragment>;
|
|
567
665
|
};
|
|
666
|
+
export type UpdateGlobalSecretsMutationVariables = Exact<{
|
|
667
|
+
input: UpdateGlobalSecretsInput;
|
|
668
|
+
}>;
|
|
669
|
+
export type UpdateGlobalSecretsMutation = {
|
|
670
|
+
updateGlobalSecrets: Pick<GlobalSecrets, 'crossServiceJwtSignKey'>;
|
|
671
|
+
};
|
|
672
|
+
export type ParameterFragment = Pick<Parameter, 'namespace' | 'name' | 'value' | 'type'>;
|
|
673
|
+
export type ListTenantParametersQueryVariables = Exact<{
|
|
674
|
+
tenantId: Scalars['String']['input'];
|
|
675
|
+
}>;
|
|
676
|
+
export type ListTenantParametersQuery = {
|
|
677
|
+
listTenantParameters?: Maybe<Array<ParameterFragment>>;
|
|
678
|
+
};
|
|
679
|
+
export type GetTenantParameterQueryVariables = Exact<{
|
|
680
|
+
tenantId: Scalars['String']['input'];
|
|
681
|
+
name: Scalars['String']['input'];
|
|
682
|
+
}>;
|
|
683
|
+
export type GetTenantParameterQuery = {
|
|
684
|
+
getTenantParameter?: Maybe<ParameterFragment>;
|
|
685
|
+
};
|
|
686
|
+
export type ListAccountParametersQueryVariables = Exact<{
|
|
687
|
+
accountId: Scalars['String']['input'];
|
|
688
|
+
}>;
|
|
689
|
+
export type ListAccountParametersQuery = {
|
|
690
|
+
listAccountParameters?: Maybe<Array<ParameterFragment>>;
|
|
691
|
+
};
|
|
692
|
+
export type GetAccountParameterQueryVariables = Exact<{
|
|
693
|
+
accountId: Scalars['String']['input'];
|
|
694
|
+
name: Scalars['String']['input'];
|
|
695
|
+
}>;
|
|
696
|
+
export type GetAccountParameterQuery = {
|
|
697
|
+
getAccountParameter?: Maybe<ParameterFragment>;
|
|
698
|
+
};
|
|
699
|
+
export type ListGlobalParametersQueryVariables = Exact<{
|
|
700
|
+
[key: string]: never;
|
|
701
|
+
}>;
|
|
702
|
+
export type ListGlobalParametersQuery = {
|
|
703
|
+
listGlobalParameters?: Maybe<Array<ParameterFragment>>;
|
|
704
|
+
};
|
|
705
|
+
export type GetGlobalParameterQueryVariables = Exact<{
|
|
706
|
+
name: Scalars['String']['input'];
|
|
707
|
+
}>;
|
|
708
|
+
export type GetGlobalParameterQuery = {
|
|
709
|
+
getGlobalParameter?: Maybe<ParameterFragment>;
|
|
710
|
+
};
|
|
711
|
+
export type SetTenantParameterMutationVariables = Exact<{
|
|
712
|
+
input: SetTenantParameterInput;
|
|
713
|
+
}>;
|
|
714
|
+
export type SetTenantParameterMutation = {
|
|
715
|
+
setTenantParameter: ParameterFragment;
|
|
716
|
+
};
|
|
717
|
+
export type RemoveTenantParameterMutationVariables = Exact<{
|
|
718
|
+
input: RemoveTenantParameterInput;
|
|
719
|
+
}>;
|
|
720
|
+
export type RemoveTenantParameterMutation = {
|
|
721
|
+
removeTenantParameter?: Maybe<ParameterFragment>;
|
|
722
|
+
};
|
|
723
|
+
export type SetAccountParameterMutationVariables = Exact<{
|
|
724
|
+
input: SetAccountParameterInput;
|
|
725
|
+
}>;
|
|
726
|
+
export type SetAccountParameterMutation = {
|
|
727
|
+
setAccountParameter: ParameterFragment;
|
|
728
|
+
};
|
|
729
|
+
export type RemoveAccountParameterMutationVariables = Exact<{
|
|
730
|
+
input: RemoveAccountParameterInput;
|
|
731
|
+
}>;
|
|
732
|
+
export type RemoveAccountParameterMutation = {
|
|
733
|
+
removeAccountParameter?: Maybe<ParameterFragment>;
|
|
734
|
+
};
|
|
735
|
+
export type SetGlobalParameterMutationVariables = Exact<{
|
|
736
|
+
input: SetGlobalParameterInput;
|
|
737
|
+
}>;
|
|
738
|
+
export type SetGlobalParameterMutation = {
|
|
739
|
+
setGlobalParameter: ParameterFragment;
|
|
740
|
+
};
|
|
741
|
+
export type RemoveGlobalParameterMutationVariables = Exact<{
|
|
742
|
+
input: RemoveGlobalParameterInput;
|
|
743
|
+
}>;
|
|
744
|
+
export type RemoveGlobalParameterMutation = {
|
|
745
|
+
removeGlobalParameter?: Maybe<ParameterFragment>;
|
|
746
|
+
};
|
|
568
747
|
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>;
|
|
569
748
|
export type ListServicesQueryVariables = Exact<{
|
|
570
749
|
tenantId: Scalars['ID']['input'];
|
|
@@ -578,6 +757,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
|
|
|
578
757
|
automate?: Maybe<Pick<AutomateBilling, 'isEnabled'>>;
|
|
579
758
|
}>;
|
|
580
759
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
760
|
+
globalSecrets?: Maybe<Pick<GlobalSecrets, 'crossServiceJwtSignKey'>>;
|
|
581
761
|
});
|
|
582
762
|
export type GetTenantQueryVariables = Exact<{
|
|
583
763
|
tenantId: Scalars['TenantId']['input'];
|
|
@@ -628,15 +808,16 @@ export type JoinTenantAsSuperAdminMutationVariables = Exact<{
|
|
|
628
808
|
}>;
|
|
629
809
|
export type JoinTenantAsSuperAdminMutation = Pick<Mutation, 'joinTenantAsSuperAdmin'>;
|
|
630
810
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
631
|
-
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n
|
|
811
|
+
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n ";
|
|
632
812
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
633
813
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
634
814
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n ";
|
|
815
|
+
export declare const ParameterFragmentDoc = "\n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
635
816
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
636
|
-
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
637
|
-
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n
|
|
817
|
+
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
|
|
818
|
+
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
638
819
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
639
|
-
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n
|
|
820
|
+
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
640
821
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
641
822
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
642
823
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
@@ -647,13 +828,26 @@ export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenan
|
|
|
647
828
|
export declare const DeployDocument = "\n mutation deploy($input: DeployInput!) {\n deploy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
648
829
|
export declare const DestroyDocument = "\n mutation destroy($input: DestroyInput!) {\n destroy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
649
830
|
export declare const BatchDeployDocument = "\n mutation batchDeploy($input: BatchDeployInput!) {\n batchDeploy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
831
|
+
export declare const UpdateGlobalSecretsDocument = "\n mutation updateGlobalSecrets($input: UpdateGlobalSecretsInput!) {\n updateGlobalSecrets(input: $input) {\n crossServiceJwtSignKey\n }\n}\n ";
|
|
832
|
+
export declare const ListTenantParametersDocument = "\n query listTenantParameters($tenantId: String!) {\n listTenantParameters(tenantId: $tenantId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
833
|
+
export declare const GetTenantParameterDocument = "\n query getTenantParameter($tenantId: String!, $name: String!) {\n getTenantParameter(tenantId: $tenantId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
834
|
+
export declare const ListAccountParametersDocument = "\n query listAccountParameters($accountId: String!) {\n listAccountParameters(accountId: $accountId) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
835
|
+
export declare const GetAccountParameterDocument = "\n query getAccountParameter($accountId: String!, $name: String!) {\n getAccountParameter(accountId: $accountId, name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
836
|
+
export declare const ListGlobalParametersDocument = "\n query listGlobalParameters {\n listGlobalParameters {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
837
|
+
export declare const GetGlobalParameterDocument = "\n query getGlobalParameter($name: String!) {\n getGlobalParameter(name: $name) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
838
|
+
export declare const SetTenantParameterDocument = "\n mutation setTenantParameter($input: SetTenantParameterInput!) {\n setTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
839
|
+
export declare const RemoveTenantParameterDocument = "\n mutation removeTenantParameter($input: RemoveTenantParameterInput!) {\n removeTenantParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
840
|
+
export declare const SetAccountParameterDocument = "\n mutation setAccountParameter($input: SetAccountParameterInput!) {\n setAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
841
|
+
export declare const RemoveAccountParameterDocument = "\n mutation removeAccountParameter($input: RemoveAccountParameterInput!) {\n removeAccountParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
842
|
+
export declare const SetGlobalParameterDocument = "\n mutation setGlobalParameter($input: SetGlobalParameterInput!) {\n setGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
843
|
+
export declare const RemoveGlobalParameterDocument = "\n mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) {\n removeGlobalParameter(input: $input) {\n ...parameter\n }\n}\n \n fragment parameter on Parameter {\n namespace\n name\n value\n type\n}\n ";
|
|
650
844
|
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
651
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
652
|
-
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
845
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
846
|
+
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
653
847
|
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
|
|
654
|
-
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
655
|
-
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
656
|
-
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
848
|
+
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
|
|
849
|
+
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
|
|
850
|
+
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n globalSecrets {\n crossServiceJwtSignKey\n }\n}\n ";
|
|
657
851
|
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
|
|
658
852
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
659
853
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
@@ -670,6 +864,19 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
670
864
|
deploy(variables: DeployMutationVariables, options?: C): Promise<DeployMutation>;
|
|
671
865
|
destroy(variables: DestroyMutationVariables, options?: C): Promise<DestroyMutation>;
|
|
672
866
|
batchDeploy(variables: BatchDeployMutationVariables, options?: C): Promise<BatchDeployMutation>;
|
|
867
|
+
updateGlobalSecrets(variables: UpdateGlobalSecretsMutationVariables, options?: C): Promise<UpdateGlobalSecretsMutation>;
|
|
868
|
+
listTenantParameters(variables: ListTenantParametersQueryVariables, options?: C): Promise<ListTenantParametersQuery>;
|
|
869
|
+
getTenantParameter(variables: GetTenantParameterQueryVariables, options?: C): Promise<GetTenantParameterQuery>;
|
|
870
|
+
listAccountParameters(variables: ListAccountParametersQueryVariables, options?: C): Promise<ListAccountParametersQuery>;
|
|
871
|
+
getAccountParameter(variables: GetAccountParameterQueryVariables, options?: C): Promise<GetAccountParameterQuery>;
|
|
872
|
+
listGlobalParameters(variables?: ListGlobalParametersQueryVariables, options?: C): Promise<ListGlobalParametersQuery>;
|
|
873
|
+
getGlobalParameter(variables: GetGlobalParameterQueryVariables, options?: C): Promise<GetGlobalParameterQuery>;
|
|
874
|
+
setTenantParameter(variables: SetTenantParameterMutationVariables, options?: C): Promise<SetTenantParameterMutation>;
|
|
875
|
+
removeTenantParameter(variables: RemoveTenantParameterMutationVariables, options?: C): Promise<RemoveTenantParameterMutation>;
|
|
876
|
+
setAccountParameter(variables: SetAccountParameterMutationVariables, options?: C): Promise<SetAccountParameterMutation>;
|
|
877
|
+
removeAccountParameter(variables: RemoveAccountParameterMutationVariables, options?: C): Promise<RemoveAccountParameterMutation>;
|
|
878
|
+
setGlobalParameter(variables: SetGlobalParameterMutationVariables, options?: C): Promise<SetGlobalParameterMutation>;
|
|
879
|
+
removeGlobalParameter(variables: RemoveGlobalParameterMutationVariables, options?: C): Promise<RemoveGlobalParameterMutation>;
|
|
673
880
|
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>;
|
|
674
881
|
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>;
|
|
675
882
|
listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>;
|
package/src/sdks/drozcommons.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.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.UpdateGlobalSecretsDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -28,11 +28,20 @@ var DeploymentStatus;
|
|
|
28
28
|
DeploymentStatus["InQueue"] = "IN_QUEUE";
|
|
29
29
|
DeploymentStatus["Succeeded"] = "SUCCEEDED";
|
|
30
30
|
})(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
|
|
31
|
+
var ParameterType;
|
|
32
|
+
(function (ParameterType) {
|
|
33
|
+
ParameterType["Array"] = "array";
|
|
34
|
+
ParameterType["Boolean"] = "boolean";
|
|
35
|
+
ParameterType["Number"] = "number";
|
|
36
|
+
ParameterType["String"] = "string";
|
|
37
|
+
})(ParameterType || (exports.ParameterType = ParameterType = {}));
|
|
31
38
|
var Typenames;
|
|
32
39
|
(function (Typenames) {
|
|
33
40
|
Typenames["Any"] = "Any";
|
|
34
41
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
35
42
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
43
|
+
Typenames["Parameters"] = "Parameters";
|
|
44
|
+
Typenames["Tenants"] = "Tenants";
|
|
36
45
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
37
46
|
exports.RegionFragmentDoc = `
|
|
38
47
|
fragment region on Region {
|
|
@@ -60,7 +69,6 @@ exports.AwsAccountFragmentDoc = `
|
|
|
60
69
|
metaSystemUserToken
|
|
61
70
|
mercadoLivreClientId
|
|
62
71
|
mercadoLivreClientSecret
|
|
63
|
-
analyticsJwtSignKey
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
`;
|
|
@@ -92,6 +100,14 @@ exports.GitRepositoryFragmentDoc = `
|
|
|
92
100
|
}
|
|
93
101
|
}
|
|
94
102
|
`;
|
|
103
|
+
exports.ParameterFragmentDoc = `
|
|
104
|
+
fragment parameter on Parameter {
|
|
105
|
+
namespace
|
|
106
|
+
name
|
|
107
|
+
value
|
|
108
|
+
type
|
|
109
|
+
}
|
|
110
|
+
`;
|
|
95
111
|
exports.ServiceFragmentDoc = `
|
|
96
112
|
fragment service on Service {
|
|
97
113
|
accountId
|
|
@@ -122,6 +138,9 @@ exports.TenantFragmentDoc = `
|
|
|
122
138
|
id
|
|
123
139
|
name
|
|
124
140
|
}
|
|
141
|
+
globalSecrets {
|
|
142
|
+
crossServiceJwtSignKey
|
|
143
|
+
}
|
|
125
144
|
}
|
|
126
145
|
`;
|
|
127
146
|
exports.ListAccountsDocument = `
|
|
@@ -233,6 +252,97 @@ exports.BatchDeployDocument = `
|
|
|
233
252
|
}
|
|
234
253
|
}
|
|
235
254
|
${exports.DeploymentFragmentDoc}`;
|
|
255
|
+
exports.UpdateGlobalSecretsDocument = `
|
|
256
|
+
mutation updateGlobalSecrets($input: UpdateGlobalSecretsInput!) {
|
|
257
|
+
updateGlobalSecrets(input: $input) {
|
|
258
|
+
crossServiceJwtSignKey
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`;
|
|
262
|
+
exports.ListTenantParametersDocument = `
|
|
263
|
+
query listTenantParameters($tenantId: String!) {
|
|
264
|
+
listTenantParameters(tenantId: $tenantId) {
|
|
265
|
+
...parameter
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
${exports.ParameterFragmentDoc}`;
|
|
269
|
+
exports.GetTenantParameterDocument = `
|
|
270
|
+
query getTenantParameter($tenantId: String!, $name: String!) {
|
|
271
|
+
getTenantParameter(tenantId: $tenantId, name: $name) {
|
|
272
|
+
...parameter
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
${exports.ParameterFragmentDoc}`;
|
|
276
|
+
exports.ListAccountParametersDocument = `
|
|
277
|
+
query listAccountParameters($accountId: String!) {
|
|
278
|
+
listAccountParameters(accountId: $accountId) {
|
|
279
|
+
...parameter
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
${exports.ParameterFragmentDoc}`;
|
|
283
|
+
exports.GetAccountParameterDocument = `
|
|
284
|
+
query getAccountParameter($accountId: String!, $name: String!) {
|
|
285
|
+
getAccountParameter(accountId: $accountId, name: $name) {
|
|
286
|
+
...parameter
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
${exports.ParameterFragmentDoc}`;
|
|
290
|
+
exports.ListGlobalParametersDocument = `
|
|
291
|
+
query listGlobalParameters {
|
|
292
|
+
listGlobalParameters {
|
|
293
|
+
...parameter
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
${exports.ParameterFragmentDoc}`;
|
|
297
|
+
exports.GetGlobalParameterDocument = `
|
|
298
|
+
query getGlobalParameter($name: String!) {
|
|
299
|
+
getGlobalParameter(name: $name) {
|
|
300
|
+
...parameter
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
${exports.ParameterFragmentDoc}`;
|
|
304
|
+
exports.SetTenantParameterDocument = `
|
|
305
|
+
mutation setTenantParameter($input: SetTenantParameterInput!) {
|
|
306
|
+
setTenantParameter(input: $input) {
|
|
307
|
+
...parameter
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
${exports.ParameterFragmentDoc}`;
|
|
311
|
+
exports.RemoveTenantParameterDocument = `
|
|
312
|
+
mutation removeTenantParameter($input: RemoveTenantParameterInput!) {
|
|
313
|
+
removeTenantParameter(input: $input) {
|
|
314
|
+
...parameter
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
${exports.ParameterFragmentDoc}`;
|
|
318
|
+
exports.SetAccountParameterDocument = `
|
|
319
|
+
mutation setAccountParameter($input: SetAccountParameterInput!) {
|
|
320
|
+
setAccountParameter(input: $input) {
|
|
321
|
+
...parameter
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
${exports.ParameterFragmentDoc}`;
|
|
325
|
+
exports.RemoveAccountParameterDocument = `
|
|
326
|
+
mutation removeAccountParameter($input: RemoveAccountParameterInput!) {
|
|
327
|
+
removeAccountParameter(input: $input) {
|
|
328
|
+
...parameter
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
${exports.ParameterFragmentDoc}`;
|
|
332
|
+
exports.SetGlobalParameterDocument = `
|
|
333
|
+
mutation setGlobalParameter($input: SetGlobalParameterInput!) {
|
|
334
|
+
setGlobalParameter(input: $input) {
|
|
335
|
+
...parameter
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
${exports.ParameterFragmentDoc}`;
|
|
339
|
+
exports.RemoveGlobalParameterDocument = `
|
|
340
|
+
mutation removeGlobalParameter($input: RemoveGlobalParameterInput!) {
|
|
341
|
+
removeGlobalParameter(input: $input) {
|
|
342
|
+
...parameter
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
${exports.ParameterFragmentDoc}`;
|
|
236
346
|
exports.ListServicesDocument = `
|
|
237
347
|
query listServices($tenantId: ID!) {
|
|
238
348
|
listServices(tenantId: $tenantId) {
|
|
@@ -342,6 +452,45 @@ function getSdk(requester) {
|
|
|
342
452
|
batchDeploy(variables, options) {
|
|
343
453
|
return requester(exports.BatchDeployDocument, variables, options);
|
|
344
454
|
},
|
|
455
|
+
updateGlobalSecrets(variables, options) {
|
|
456
|
+
return requester(exports.UpdateGlobalSecretsDocument, variables, options);
|
|
457
|
+
},
|
|
458
|
+
listTenantParameters(variables, options) {
|
|
459
|
+
return requester(exports.ListTenantParametersDocument, variables, options);
|
|
460
|
+
},
|
|
461
|
+
getTenantParameter(variables, options) {
|
|
462
|
+
return requester(exports.GetTenantParameterDocument, variables, options);
|
|
463
|
+
},
|
|
464
|
+
listAccountParameters(variables, options) {
|
|
465
|
+
return requester(exports.ListAccountParametersDocument, variables, options);
|
|
466
|
+
},
|
|
467
|
+
getAccountParameter(variables, options) {
|
|
468
|
+
return requester(exports.GetAccountParameterDocument, variables, options);
|
|
469
|
+
},
|
|
470
|
+
listGlobalParameters(variables, options) {
|
|
471
|
+
return requester(exports.ListGlobalParametersDocument, variables, options);
|
|
472
|
+
},
|
|
473
|
+
getGlobalParameter(variables, options) {
|
|
474
|
+
return requester(exports.GetGlobalParameterDocument, variables, options);
|
|
475
|
+
},
|
|
476
|
+
setTenantParameter(variables, options) {
|
|
477
|
+
return requester(exports.SetTenantParameterDocument, variables, options);
|
|
478
|
+
},
|
|
479
|
+
removeTenantParameter(variables, options) {
|
|
480
|
+
return requester(exports.RemoveTenantParameterDocument, variables, options);
|
|
481
|
+
},
|
|
482
|
+
setAccountParameter(variables, options) {
|
|
483
|
+
return requester(exports.SetAccountParameterDocument, variables, options);
|
|
484
|
+
},
|
|
485
|
+
removeAccountParameter(variables, options) {
|
|
486
|
+
return requester(exports.RemoveAccountParameterDocument, variables, options);
|
|
487
|
+
},
|
|
488
|
+
setGlobalParameter(variables, options) {
|
|
489
|
+
return requester(exports.SetGlobalParameterDocument, variables, options);
|
|
490
|
+
},
|
|
491
|
+
removeGlobalParameter(variables, options) {
|
|
492
|
+
return requester(exports.RemoveGlobalParameterDocument, variables, options);
|
|
493
|
+
},
|
|
345
494
|
listServices(variables, options) {
|
|
346
495
|
return requester(exports.ListServicesDocument, variables, options);
|
|
347
496
|
},
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -175,6 +175,7 @@ export type DrozNexoBilling = {
|
|
|
175
175
|
};
|
|
176
176
|
export type DrozNexoLicence = {
|
|
177
177
|
billing: DrozNexoBilling;
|
|
178
|
+
/** @deprecated Use tenantId instead */
|
|
178
179
|
name: Scalars['String']['output'];
|
|
179
180
|
tenantId: Scalars['String']['output'];
|
|
180
181
|
};
|
|
@@ -544,7 +545,7 @@ export type GetLicenceQueryVariables = Exact<{
|
|
|
544
545
|
[key: string]: never;
|
|
545
546
|
}>;
|
|
546
547
|
export type GetLicenceQuery = {
|
|
547
|
-
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId'
|
|
548
|
+
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId'> & {
|
|
548
549
|
billing: {
|
|
549
550
|
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
550
551
|
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
@@ -570,7 +571,7 @@ export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlo
|
|
|
570
571
|
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n instanceId\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
571
572
|
export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
572
573
|
export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n createdByAppId\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n instanceId\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
573
|
-
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n
|
|
574
|
+
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
|
|
574
575
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
575
576
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
576
577
|
getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
|
package/src/sdks/droznexo.js
CHANGED
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export type I18nTextInput = {
|
|
|
156
156
|
};
|
|
157
157
|
export type Mutation = {
|
|
158
158
|
createZendeskInstance?: Maybe<ZendeskInstance>;
|
|
159
|
+
reSyncZendeskInstance?: Maybe<Scalars['Number']['output']>;
|
|
159
160
|
removeZendeskInstance?: Maybe<ZendeskInstance>;
|
|
160
161
|
updateZendeskInstance?: Maybe<ZendeskInstance>;
|
|
161
162
|
validateZendeskInstance: ValidateZendeskInstancePayload;
|
|
@@ -164,6 +165,9 @@ export type Mutation = {
|
|
|
164
165
|
export type MutationCreateZendeskInstanceArgs = {
|
|
165
166
|
input: CreateZendeskInstanceInput;
|
|
166
167
|
};
|
|
168
|
+
export type MutationReSyncZendeskInstanceArgs = {
|
|
169
|
+
input: ReSyncZendeskInstanceInput;
|
|
170
|
+
};
|
|
167
171
|
export type MutationRemoveZendeskInstanceArgs = {
|
|
168
172
|
input: RemoveZendeskInstanceInput;
|
|
169
173
|
};
|
|
@@ -224,6 +228,10 @@ export type QueryListZendeskTicketCustomFieldsArgs = {
|
|
|
224
228
|
credentialId: Scalars['ID']['input'];
|
|
225
229
|
domain: Scalars['String']['input'];
|
|
226
230
|
};
|
|
231
|
+
export type ReSyncZendeskInstanceInput = {
|
|
232
|
+
instanceId: Scalars['ID']['input'];
|
|
233
|
+
startAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
234
|
+
};
|
|
227
235
|
export type RemoveZendeskInstanceInput = {
|
|
228
236
|
id: Scalars['ID']['input'];
|
|
229
237
|
};
|