@lokalise/content-type-app-engine-contracts 5.10.0 → 5.12.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/dist/schemas/connector/connectorApiSchemas.d.ts +360 -0
- package/dist/schemas/connector/connectorApiSchemas.js +18 -2
- package/dist/schemas/connector/connectorApiSchemas.js.map +1 -1
- package/dist/schemas/connector/connectorSchemas.d.ts +172 -0
- package/dist/schemas/connector/connectorSchemas.js +7 -0
- package/dist/schemas/connector/connectorSchemas.js.map +1 -1
- package/dist/schemas/content/contentApiSchemas.d.ts +3 -0
- package/dist/schemas/content/contentSchemas.d.ts +3 -0
- package/dist/schemas/content/contentSchemas.js +8 -0
- package/dist/schemas/content/contentSchemas.js.map +1 -1
- package/dist/schemas/env/envApiSchemas.d.ts +4 -0
- package/dist/schemas/env/envSchemas.d.ts +3 -0
- package/dist/schemas/env/envSchemas.js +4 -0
- package/dist/schemas/env/envSchemas.js.map +1 -1
- package/dist/schemas/schedule/scheduleApiSchemas.d.ts +12 -0
- package/dist/schemas/schedule/scheduleSchemas.d.ts +14 -0
- package/dist/schemas/schedule/scheduleSchemas.js +2 -0
- package/dist/schemas/schedule/scheduleSchemas.js.map +1 -1
- package/dist/schemas/settings/settingsApiSchemas.d.ts +20 -0
- package/dist/schemas/settings/settingsSchemas.d.ts +16 -0
- package/dist/schemas/settings/settingsSchemas.js +6 -0
- package/dist/schemas/settings/settingsSchemas.js.map +1 -1
- package/package.json +2 -2
|
@@ -65,3 +65,363 @@ export declare const getConnectorManifestModes: import("@lokalise/api-contracts"
|
|
|
65
65
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
66
|
}, z.core.$strip>;
|
|
67
67
|
}>;
|
|
68
|
+
export declare const getConnectorManifest: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
69
|
+
manifest: z.ZodObject<{
|
|
70
|
+
defaultModeId: z.ZodString;
|
|
71
|
+
modes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"oauth">;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"credentials">;
|
|
77
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
name: z.ZodString;
|
|
80
|
+
type: z.ZodLiteral<"password">;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
type: z.ZodLiteral<"select">;
|
|
85
|
+
options: z.ZodArray<z.ZodObject<{
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
label: z.ZodString;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
type: z.ZodLiteral<"url">;
|
|
93
|
+
}, z.core.$strip>], "type">>;
|
|
94
|
+
}, z.core.$strip>], "type">;
|
|
95
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
query: z.ZodString;
|
|
99
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
type: z.ZodEnum<{
|
|
101
|
+
equals: "equals";
|
|
102
|
+
notEquals: "notEquals";
|
|
103
|
+
contains: "contains";
|
|
104
|
+
}>;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
type: z.ZodLiteral<"search">;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
query: z.ZodString;
|
|
112
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
|
+
type: z.ZodEnum<{
|
|
114
|
+
equals: "equals";
|
|
115
|
+
notEquals: "notEquals";
|
|
116
|
+
contains: "contains";
|
|
117
|
+
}>;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>>;
|
|
120
|
+
type: z.ZodLiteral<"multiselect">;
|
|
121
|
+
options: z.ZodArray<z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
name: z.ZodString;
|
|
129
|
+
query: z.ZodString;
|
|
130
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
type: z.ZodEnum<{
|
|
132
|
+
equals: "equals";
|
|
133
|
+
notEquals: "notEquals";
|
|
134
|
+
contains: "contains";
|
|
135
|
+
}>;
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
type: z.ZodLiteral<"text">;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
query: z.ZodString;
|
|
143
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
144
|
+
type: z.ZodEnum<{
|
|
145
|
+
equals: "equals";
|
|
146
|
+
notEquals: "notEquals";
|
|
147
|
+
contains: "contains";
|
|
148
|
+
}>;
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
152
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
153
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
id: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
query: z.ZodString;
|
|
159
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
type: z.ZodEnum<{
|
|
161
|
+
equals: "equals";
|
|
162
|
+
notEquals: "notEquals";
|
|
163
|
+
contains: "contains";
|
|
164
|
+
}>;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
}, z.core.$strip>>>;
|
|
167
|
+
type: z.ZodLiteral<"select">;
|
|
168
|
+
options: z.ZodArray<z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
+
id: z.ZodString;
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
query: z.ZodString;
|
|
177
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
|
+
type: z.ZodEnum<{
|
|
179
|
+
equals: "equals";
|
|
180
|
+
notEquals: "notEquals";
|
|
181
|
+
contains: "contains";
|
|
182
|
+
}>;
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
}, z.core.$strip>>>;
|
|
185
|
+
type: z.ZodLiteral<"async-select">;
|
|
186
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
187
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
query: z.ZodString;
|
|
192
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
type: z.ZodEnum<{
|
|
194
|
+
equals: "equals";
|
|
195
|
+
notEquals: "notEquals";
|
|
196
|
+
contains: "contains";
|
|
197
|
+
}>;
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
200
|
+
type: z.ZodLiteral<"daterange">;
|
|
201
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
from: z.ZodString;
|
|
203
|
+
to: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
}, z.core.$strip>], "type">>;
|
|
206
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
207
|
+
version: z.ZodNumber;
|
|
208
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
columns: z.ZodRecord<z.ZodEnum<{
|
|
211
|
+
projectSetupList: "projectSetupList";
|
|
212
|
+
importModalList: "importModalList";
|
|
213
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
type: z.ZodLiteral<"primary">;
|
|
216
|
+
paths: z.ZodObject<{
|
|
217
|
+
title: z.ZodString;
|
|
218
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
219
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
id: z.ZodString;
|
|
223
|
+
type: z.ZodLiteral<"text">;
|
|
224
|
+
paths: z.ZodObject<{
|
|
225
|
+
text: z.ZodString;
|
|
226
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
type: z.ZodLiteral<"datetime">;
|
|
231
|
+
paths: z.ZodObject<{
|
|
232
|
+
datetime: z.ZodString;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
}, z.core.$strip>], "type">>>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
238
|
+
connectorId: z.ZodString;
|
|
239
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
240
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>, undefined, false, false, {
|
|
242
|
+
200: z.ZodObject<{
|
|
243
|
+
manifest: z.ZodObject<{
|
|
244
|
+
defaultModeId: z.ZodString;
|
|
245
|
+
modes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
246
|
+
name: z.ZodString;
|
|
247
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
248
|
+
type: z.ZodLiteral<"oauth">;
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
+
type: z.ZodLiteral<"credentials">;
|
|
251
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
252
|
+
id: z.ZodString;
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
type: z.ZodLiteral<"password">;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
type: z.ZodLiteral<"select">;
|
|
259
|
+
options: z.ZodArray<z.ZodObject<{
|
|
260
|
+
value: z.ZodString;
|
|
261
|
+
label: z.ZodString;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
type: z.ZodLiteral<"url">;
|
|
267
|
+
}, z.core.$strip>], "type">>;
|
|
268
|
+
}, z.core.$strip>], "type">;
|
|
269
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
query: z.ZodString;
|
|
273
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
274
|
+
type: z.ZodEnum<{
|
|
275
|
+
equals: "equals";
|
|
276
|
+
notEquals: "notEquals";
|
|
277
|
+
contains: "contains";
|
|
278
|
+
}>;
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
}, z.core.$strip>>>;
|
|
281
|
+
type: z.ZodLiteral<"search">;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
id: z.ZodString;
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
query: z.ZodString;
|
|
286
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
287
|
+
type: z.ZodEnum<{
|
|
288
|
+
equals: "equals";
|
|
289
|
+
notEquals: "notEquals";
|
|
290
|
+
contains: "contains";
|
|
291
|
+
}>;
|
|
292
|
+
name: z.ZodString;
|
|
293
|
+
}, z.core.$strip>>>;
|
|
294
|
+
type: z.ZodLiteral<"multiselect">;
|
|
295
|
+
options: z.ZodArray<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
name: z.ZodString;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
query: z.ZodString;
|
|
304
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
305
|
+
type: z.ZodEnum<{
|
|
306
|
+
equals: "equals";
|
|
307
|
+
notEquals: "notEquals";
|
|
308
|
+
contains: "contains";
|
|
309
|
+
}>;
|
|
310
|
+
name: z.ZodString;
|
|
311
|
+
}, z.core.$strip>>>;
|
|
312
|
+
type: z.ZodLiteral<"text">;
|
|
313
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
query: z.ZodString;
|
|
317
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
type: z.ZodEnum<{
|
|
319
|
+
equals: "equals";
|
|
320
|
+
notEquals: "notEquals";
|
|
321
|
+
contains: "contains";
|
|
322
|
+
}>;
|
|
323
|
+
name: z.ZodString;
|
|
324
|
+
}, z.core.$strip>>>;
|
|
325
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
326
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
327
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
name: z.ZodString;
|
|
332
|
+
query: z.ZodString;
|
|
333
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
+
type: z.ZodEnum<{
|
|
335
|
+
equals: "equals";
|
|
336
|
+
notEquals: "notEquals";
|
|
337
|
+
contains: "contains";
|
|
338
|
+
}>;
|
|
339
|
+
name: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
341
|
+
type: z.ZodLiteral<"select">;
|
|
342
|
+
options: z.ZodArray<z.ZodObject<{
|
|
343
|
+
id: z.ZodString;
|
|
344
|
+
name: z.ZodString;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
348
|
+
id: z.ZodString;
|
|
349
|
+
name: z.ZodString;
|
|
350
|
+
query: z.ZodString;
|
|
351
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
352
|
+
type: z.ZodEnum<{
|
|
353
|
+
equals: "equals";
|
|
354
|
+
notEquals: "notEquals";
|
|
355
|
+
contains: "contains";
|
|
356
|
+
}>;
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
}, z.core.$strip>>>;
|
|
359
|
+
type: z.ZodLiteral<"async-select">;
|
|
360
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
361
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
name: z.ZodString;
|
|
365
|
+
query: z.ZodString;
|
|
366
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
type: z.ZodEnum<{
|
|
368
|
+
equals: "equals";
|
|
369
|
+
notEquals: "notEquals";
|
|
370
|
+
contains: "contains";
|
|
371
|
+
}>;
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
374
|
+
type: z.ZodLiteral<"daterange">;
|
|
375
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
376
|
+
from: z.ZodString;
|
|
377
|
+
to: z.ZodString;
|
|
378
|
+
}, z.core.$strip>>;
|
|
379
|
+
}, z.core.$strip>], "type">>;
|
|
380
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
381
|
+
version: z.ZodNumber;
|
|
382
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
columns: z.ZodRecord<z.ZodEnum<{
|
|
385
|
+
projectSetupList: "projectSetupList";
|
|
386
|
+
importModalList: "importModalList";
|
|
387
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
type: z.ZodLiteral<"primary">;
|
|
390
|
+
paths: z.ZodObject<{
|
|
391
|
+
title: z.ZodString;
|
|
392
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
393
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
396
|
+
id: z.ZodString;
|
|
397
|
+
type: z.ZodLiteral<"text">;
|
|
398
|
+
paths: z.ZodObject<{
|
|
399
|
+
text: z.ZodString;
|
|
400
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
403
|
+
id: z.ZodString;
|
|
404
|
+
type: z.ZodLiteral<"datetime">;
|
|
405
|
+
paths: z.ZodObject<{
|
|
406
|
+
datetime: z.ZodString;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
}, z.core.$strip>], "type">>>;
|
|
409
|
+
}, z.core.$strip>>;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
401: z.ZodObject<{
|
|
413
|
+
message: z.ZodString;
|
|
414
|
+
errorCode: z.ZodString;
|
|
415
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
404: z.ZodObject<{
|
|
418
|
+
message: z.ZodString;
|
|
419
|
+
errorCode: z.ZodString;
|
|
420
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
500: z.ZodObject<{
|
|
423
|
+
message: z.ZodString;
|
|
424
|
+
errorCode: z.ZodString;
|
|
425
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildRestContract } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from "../commonRequestSchemas.js";
|
|
4
|
-
import { GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA, } from "./connectorSchemas.js";
|
|
4
|
+
import { CONNECTOR_ID_PARAM, GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA, } from "./connectorSchemas.js";
|
|
5
5
|
export const getConnectorListForPlatformContract = buildRestContract({
|
|
6
6
|
method: 'get',
|
|
7
7
|
pathResolver: (params) => `/v1/connectors/platform/${params.platform}`,
|
|
@@ -22,7 +22,7 @@ export const getConnectorManifestModes = buildGetRoute({
|
|
|
22
22
|
pathResolver: (params) => `/v1/connector/${params.connectorId}/manifest/modes`,
|
|
23
23
|
description: 'Get the list of modes supported by the connector',
|
|
24
24
|
requestPathParamsSchema: z.object({
|
|
25
|
-
connectorId:
|
|
25
|
+
connectorId: CONNECTOR_ID_PARAM,
|
|
26
26
|
}),
|
|
27
27
|
successResponseBodySchema: GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA,
|
|
28
28
|
responseSchemasByStatusCode: {
|
|
@@ -34,4 +34,20 @@ export const getConnectorManifestModes = buildGetRoute({
|
|
|
34
34
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
35
35
|
tags: ['Manifest'],
|
|
36
36
|
});
|
|
37
|
+
export const getConnectorManifest = buildGetRoute({
|
|
38
|
+
pathResolver: (params) => `/v1/connector/${params.connectorId}/manifest`,
|
|
39
|
+
description: 'Get the manifest configuration for the connector',
|
|
40
|
+
requestPathParamsSchema: z.object({
|
|
41
|
+
connectorId: CONNECTOR_ID_PARAM,
|
|
42
|
+
}),
|
|
43
|
+
successResponseBodySchema: GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA,
|
|
44
|
+
responseSchemasByStatusCode: {
|
|
45
|
+
200: GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA,
|
|
46
|
+
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
47
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
48
|
+
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
49
|
+
},
|
|
50
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
51
|
+
tags: ['Manifest'],
|
|
52
|
+
});
|
|
37
53
|
//# sourceMappingURL=connectorApiSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,6CAA6C,EAC7C,+CAA+C,EAC/C,4CAA4C,
|
|
1
|
+
{"version":3,"file":"connectorApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,kBAAkB,EAClB,6CAA6C,EAC7C,+CAA+C,EAC/C,4CAA4C,EAC5C,sCAAsC,GACvC,MAAM,uBAAuB,CAAA;AAE9B,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;IACnE,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,2BAA2B,MAAM,CAAC,QAAQ,EAAE;IACtE,WAAW,EAAE,uCAAuC;IACpD,uBAAuB,EAAE,6CAA6C;IACtE,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC;QACjC,+CAA+C;QAC/C,+BAA+B;KAChC,CAAC;IACF,2BAA2B,EAAE;QAC3B,GAAG,EAAE,+CAA+C;QACpD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC;IACrD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,MAAM,CAAC,WAAW,iBAAiB;IAC9E,WAAW,EAAE,kDAAkD;IAC/D,uBAAuB,EAAE,CAAC,CAAC,MAAM,CAAC;QAChC,WAAW,EAAE,kBAAkB;KAChC,CAAC;IACF,yBAAyB,EAAE,4CAA4C;IACvE,2BAA2B,EAAE;QAC3B,GAAG,EAAE,4CAA4C;QACjD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;IAChD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC;IAChD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,MAAM,CAAC,WAAW,WAAW;IACxE,WAAW,EAAE,kDAAkD;IAC/D,uBAAuB,EAAE,CAAC,CAAC,MAAM,CAAC;QAChC,WAAW,EAAE,kBAAkB;KAChC,CAAC;IACF,yBAAyB,EAAE,sCAAsC;IACjE,2BAA2B,EAAE;QAC3B,GAAG,EAAE,sCAAsC;QAC3C,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;IAChD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
export declare const CONNECTOR_ID_PARAM: z.ZodString;
|
|
2
3
|
export declare const CONNECTOR_PLATFORM: z.ZodEnum<{
|
|
3
4
|
vantage: "vantage";
|
|
4
5
|
expert: "expert";
|
|
@@ -29,3 +30,174 @@ export declare const GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
29
30
|
}, z.core.$strip>>;
|
|
30
31
|
}, z.core.$strip>;
|
|
31
32
|
export type GetConnectorManifestModesResponse = z.infer<typeof GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA>;
|
|
33
|
+
export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
34
|
+
manifest: z.ZodObject<{
|
|
35
|
+
defaultModeId: z.ZodString;
|
|
36
|
+
modes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
type: z.ZodLiteral<"oauth">;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"credentials">;
|
|
42
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
type: z.ZodLiteral<"password">;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
type: z.ZodLiteral<"select">;
|
|
50
|
+
options: z.ZodArray<z.ZodObject<{
|
|
51
|
+
value: z.ZodString;
|
|
52
|
+
label: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
type: z.ZodLiteral<"url">;
|
|
58
|
+
}, z.core.$strip>], "type">>;
|
|
59
|
+
}, z.core.$strip>], "type">;
|
|
60
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
query: z.ZodString;
|
|
64
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
type: z.ZodEnum<{
|
|
66
|
+
equals: "equals";
|
|
67
|
+
notEquals: "notEquals";
|
|
68
|
+
contains: "contains";
|
|
69
|
+
}>;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
type: z.ZodLiteral<"search">;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
id: z.ZodString;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
query: z.ZodString;
|
|
77
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
type: z.ZodEnum<{
|
|
79
|
+
equals: "equals";
|
|
80
|
+
notEquals: "notEquals";
|
|
81
|
+
contains: "contains";
|
|
82
|
+
}>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
type: z.ZodLiteral<"multiselect">;
|
|
86
|
+
options: z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
query: z.ZodString;
|
|
95
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
type: z.ZodEnum<{
|
|
97
|
+
equals: "equals";
|
|
98
|
+
notEquals: "notEquals";
|
|
99
|
+
contains: "contains";
|
|
100
|
+
}>;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
type: z.ZodLiteral<"text">;
|
|
104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
query: z.ZodString;
|
|
108
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
type: z.ZodEnum<{
|
|
110
|
+
equals: "equals";
|
|
111
|
+
notEquals: "notEquals";
|
|
112
|
+
contains: "contains";
|
|
113
|
+
}>;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
117
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
118
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
query: z.ZodString;
|
|
124
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
type: z.ZodEnum<{
|
|
126
|
+
equals: "equals";
|
|
127
|
+
notEquals: "notEquals";
|
|
128
|
+
contains: "contains";
|
|
129
|
+
}>;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
}, z.core.$strip>>>;
|
|
132
|
+
type: z.ZodLiteral<"select">;
|
|
133
|
+
options: z.ZodArray<z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
name: z.ZodString;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
query: z.ZodString;
|
|
142
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
143
|
+
type: z.ZodEnum<{
|
|
144
|
+
equals: "equals";
|
|
145
|
+
notEquals: "notEquals";
|
|
146
|
+
contains: "contains";
|
|
147
|
+
}>;
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
type: z.ZodLiteral<"async-select">;
|
|
151
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
152
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
id: z.ZodString;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
query: z.ZodString;
|
|
157
|
+
clauses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
158
|
+
type: z.ZodEnum<{
|
|
159
|
+
equals: "equals";
|
|
160
|
+
notEquals: "notEquals";
|
|
161
|
+
contains: "contains";
|
|
162
|
+
}>;
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
}, z.core.$strip>>>;
|
|
165
|
+
type: z.ZodLiteral<"daterange">;
|
|
166
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
from: z.ZodString;
|
|
168
|
+
to: z.ZodString;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
}, z.core.$strip>], "type">>;
|
|
171
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
172
|
+
version: z.ZodNumber;
|
|
173
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
columns: z.ZodRecord<z.ZodEnum<{
|
|
176
|
+
projectSetupList: "projectSetupList";
|
|
177
|
+
importModalList: "importModalList";
|
|
178
|
+
}> & z.core.$partial, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
type: z.ZodLiteral<"primary">;
|
|
181
|
+
paths: z.ZodObject<{
|
|
182
|
+
title: z.ZodString;
|
|
183
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
184
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
type: z.ZodLiteral<"text">;
|
|
189
|
+
paths: z.ZodObject<{
|
|
190
|
+
text: z.ZodString;
|
|
191
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
type: z.ZodLiteral<"datetime">;
|
|
196
|
+
paths: z.ZodObject<{
|
|
197
|
+
datetime: z.ZodString;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>], "type">>>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export type GetConnectorManifestResponse = z.infer<typeof GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { MANIFEST_MODES_CONFIG } from '@lokalise/connector-api-contracts';
|
|
1
2
|
import { z } from 'zod/v4';
|
|
3
|
+
export const CONNECTOR_ID_PARAM = z
|
|
4
|
+
.string()
|
|
5
|
+
.describe('Identifier of a connector, like `storyblok-ce`');
|
|
2
6
|
export const CONNECTOR_PLATFORM = z.enum(['vantage', 'expert']);
|
|
3
7
|
export const CONNECTOR_LIST_ITEM = z.object({
|
|
4
8
|
id: z.string().min(1),
|
|
@@ -14,4 +18,7 @@ export const GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA = z.object({
|
|
|
14
18
|
export const GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA = z.object({
|
|
15
19
|
modes: z.array(z.object({ id: z.string() })).min(1),
|
|
16
20
|
});
|
|
21
|
+
export const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA = z.object({
|
|
22
|
+
manifest: MANIFEST_MODES_CONFIG,
|
|
23
|
+
});
|
|
17
24
|
//# sourceMappingURL=connectorSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAA;AAI/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,CAAC,MAAM,CAAC;IACpE,QAAQ,EAAE,kBAAkB;CAC7B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IACtE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACzC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,MAAM,CAAC;IACnE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACpD,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"connectorSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,EAAE;KACR,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAA;AAI/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,6CAA6C,GAAG,CAAC,CAAC,MAAM,CAAC;IACpE,QAAQ,EAAE,kBAAkB;CAC7B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IACtE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACzC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,MAAM,CAAC;IACnE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACpD,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,QAAQ,EAAE,qBAAqB;CAChC,CAAC,CAAA"}
|
|
@@ -258,6 +258,7 @@ export declare const postTranslateContentContract: import("@lokalise/api-contrac
|
|
|
258
258
|
convertPlaceholders: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
overrideUpdatedTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
260
260
|
skipEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
261
262
|
importTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
263
|
}, z.core.$strip>>;
|
|
263
264
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -304,6 +305,7 @@ export declare const postTranslateSingleContentContract: import("@lokalise/api-c
|
|
|
304
305
|
convertPlaceholders: z.ZodOptional<z.ZodBoolean>;
|
|
305
306
|
overrideUpdatedTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
306
307
|
skipEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
307
309
|
importTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
308
310
|
}, z.core.$strip>>;
|
|
309
311
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -352,6 +354,7 @@ export declare const postPublishContentContract: import("@lokalise/api-contracts
|
|
|
352
354
|
languages: z.ZodArray<z.ZodString>;
|
|
353
355
|
groupIds: z.ZodArray<z.ZodString>;
|
|
354
356
|
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
355
358
|
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
356
359
|
statusCode: z.ZodNumber;
|
|
357
360
|
message: z.ZodString;
|
|
@@ -260,6 +260,7 @@ export declare const POST_CONTENT_TRANSLATE_BODY_SCHEMA: z.ZodObject<{
|
|
|
260
260
|
convertPlaceholders: z.ZodOptional<z.ZodBoolean>;
|
|
261
261
|
overrideUpdatedTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
262
262
|
skipEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
263
264
|
importTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
265
|
}, z.core.$strip>>;
|
|
265
266
|
}, z.core.$strip>;
|
|
@@ -279,6 +280,7 @@ export declare const POST_CONTENT_TRANSLATE_SINGLE_BODY_SCHEMA: z.ZodObject<{
|
|
|
279
280
|
convertPlaceholders: z.ZodOptional<z.ZodBoolean>;
|
|
280
281
|
overrideUpdatedTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
281
282
|
skipEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
282
284
|
importTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
285
|
}, z.core.$strip>>;
|
|
284
286
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -293,6 +295,7 @@ export declare const POST_CONTENT_PUBLISH_BODY: z.ZodObject<{
|
|
|
293
295
|
languages: z.ZodArray<z.ZodString>;
|
|
294
296
|
groupIds: z.ZodArray<z.ZodString>;
|
|
295
297
|
fieldIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
298
|
+
includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
|
|
296
299
|
}, z.core.$strip>;
|
|
297
300
|
export type PostContentPublishBody = z.infer<typeof POST_CONTENT_PUBLISH_BODY>;
|
|
298
301
|
export declare const IMPORT_UPLOAD_COMPLETED_RESPONSE_SCHEMA: z.ZodObject<{
|