@lokalise/content-type-app-engine-contracts 5.16.0 → 5.18.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 +40 -8
- package/dist/schemas/connector/connectorSchemas.d.ts +20 -4
- package/dist/schemas/integration/integrationApiSchemas.d.ts +40 -8
- package/dist/schemas/integration/integrationSchemas.d.ts +20 -4
- package/dist/schemas/link/linkApiSchemas.d.ts +40 -8
- package/dist/schemas/link/linkSchemas.d.ts +20 -4
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.d.ts +142 -0
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.js +35 -1
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.js.map +1 -1
- package/dist/schemas/processResult/integrationProcessResultsSchemas.d.ts +31 -0
- package/dist/schemas/processResult/integrationProcessResultsSchemas.js +47 -0
- package/dist/schemas/processResult/integrationProcessResultsSchemas.js.map +1 -1
- package/package.json +2 -2
|
@@ -168,10 +168,18 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
168
168
|
}>;
|
|
169
169
|
name: z.ZodString;
|
|
170
170
|
}, z.core.$strip>>>;
|
|
171
|
+
dataSource: z.ZodObject<{
|
|
172
|
+
query: z.ZodString;
|
|
173
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"local">;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
+
type: z.ZodLiteral<"external">;
|
|
177
|
+
query: z.ZodString;
|
|
178
|
+
}, z.core.$strip>], "type">;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
171
181
|
type: z.ZodLiteral<"async-multiselect">;
|
|
172
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
173
182
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
175
183
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
184
|
id: z.ZodString;
|
|
177
185
|
name: z.ZodString;
|
|
@@ -212,9 +220,17 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
212
220
|
}>;
|
|
213
221
|
name: z.ZodString;
|
|
214
222
|
}, z.core.$strip>>>;
|
|
215
|
-
|
|
216
|
-
|
|
223
|
+
dataSource: z.ZodObject<{
|
|
224
|
+
query: z.ZodString;
|
|
225
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"local">;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
type: z.ZodLiteral<"external">;
|
|
229
|
+
query: z.ZodString;
|
|
230
|
+
}, z.core.$strip>], "type">;
|
|
231
|
+
}, z.core.$strip>;
|
|
217
232
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
233
|
+
type: z.ZodLiteral<"async-select">;
|
|
218
234
|
}, z.core.$strip>, z.ZodObject<{
|
|
219
235
|
id: z.ZodString;
|
|
220
236
|
name: z.ZodString;
|
|
@@ -377,10 +393,18 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
377
393
|
}>;
|
|
378
394
|
name: z.ZodString;
|
|
379
395
|
}, z.core.$strip>>>;
|
|
396
|
+
dataSource: z.ZodObject<{
|
|
397
|
+
query: z.ZodString;
|
|
398
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"local">;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"external">;
|
|
402
|
+
query: z.ZodString;
|
|
403
|
+
}, z.core.$strip>], "type">;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
380
406
|
type: z.ZodLiteral<"async-multiselect">;
|
|
381
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
382
407
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
384
408
|
}, z.core.$strip>, z.ZodObject<{
|
|
385
409
|
id: z.ZodString;
|
|
386
410
|
name: z.ZodString;
|
|
@@ -421,9 +445,17 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
421
445
|
}>;
|
|
422
446
|
name: z.ZodString;
|
|
423
447
|
}, z.core.$strip>>>;
|
|
424
|
-
|
|
425
|
-
|
|
448
|
+
dataSource: z.ZodObject<{
|
|
449
|
+
query: z.ZodString;
|
|
450
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
451
|
+
type: z.ZodLiteral<"local">;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
+
type: z.ZodLiteral<"external">;
|
|
454
|
+
query: z.ZodString;
|
|
455
|
+
}, z.core.$strip>], "type">;
|
|
456
|
+
}, z.core.$strip>;
|
|
426
457
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
458
|
+
type: z.ZodLiteral<"async-select">;
|
|
427
459
|
}, z.core.$strip>, z.ZodObject<{
|
|
428
460
|
id: z.ZodString;
|
|
429
461
|
name: z.ZodString;
|
|
@@ -138,10 +138,18 @@ export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
138
138
|
}>;
|
|
139
139
|
name: z.ZodString;
|
|
140
140
|
}, z.core.$strip>>>;
|
|
141
|
+
dataSource: z.ZodObject<{
|
|
142
|
+
query: z.ZodString;
|
|
143
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"local">;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
type: z.ZodLiteral<"external">;
|
|
147
|
+
query: z.ZodString;
|
|
148
|
+
}, z.core.$strip>], "type">;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
141
151
|
type: z.ZodLiteral<"async-multiselect">;
|
|
142
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
143
152
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
145
153
|
}, z.core.$strip>, z.ZodObject<{
|
|
146
154
|
id: z.ZodString;
|
|
147
155
|
name: z.ZodString;
|
|
@@ -182,9 +190,17 @@ export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
182
190
|
}>;
|
|
183
191
|
name: z.ZodString;
|
|
184
192
|
}, z.core.$strip>>>;
|
|
185
|
-
|
|
186
|
-
|
|
193
|
+
dataSource: z.ZodObject<{
|
|
194
|
+
query: z.ZodString;
|
|
195
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
196
|
+
type: z.ZodLiteral<"local">;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<"external">;
|
|
199
|
+
query: z.ZodString;
|
|
200
|
+
}, z.core.$strip>], "type">;
|
|
201
|
+
}, z.core.$strip>;
|
|
187
202
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
203
|
+
type: z.ZodLiteral<"async-select">;
|
|
188
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
189
205
|
id: z.ZodString;
|
|
190
206
|
name: z.ZodString;
|
|
@@ -171,10 +171,18 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
171
171
|
}>;
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
}, z.core.$strip>>>;
|
|
174
|
+
dataSource: z.ZodObject<{
|
|
175
|
+
query: z.ZodString;
|
|
176
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
177
|
+
type: z.ZodLiteral<"local">;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<"external">;
|
|
180
|
+
query: z.ZodString;
|
|
181
|
+
}, z.core.$strip>], "type">;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
174
184
|
type: z.ZodLiteral<"async-multiselect">;
|
|
175
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
176
185
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
178
186
|
}, z.core.$strip>, z.ZodObject<{
|
|
179
187
|
id: z.ZodString;
|
|
180
188
|
name: z.ZodString;
|
|
@@ -215,9 +223,17 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
215
223
|
}>;
|
|
216
224
|
name: z.ZodString;
|
|
217
225
|
}, z.core.$strip>>>;
|
|
218
|
-
|
|
219
|
-
|
|
226
|
+
dataSource: z.ZodObject<{
|
|
227
|
+
query: z.ZodString;
|
|
228
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
229
|
+
type: z.ZodLiteral<"local">;
|
|
230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
+
type: z.ZodLiteral<"external">;
|
|
232
|
+
query: z.ZodString;
|
|
233
|
+
}, z.core.$strip>], "type">;
|
|
234
|
+
}, z.core.$strip>;
|
|
220
235
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
236
|
+
type: z.ZodLiteral<"async-select">;
|
|
221
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
238
|
id: z.ZodString;
|
|
223
239
|
name: z.ZodString;
|
|
@@ -377,10 +393,18 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
377
393
|
}>;
|
|
378
394
|
name: z.ZodString;
|
|
379
395
|
}, z.core.$strip>>>;
|
|
396
|
+
dataSource: z.ZodObject<{
|
|
397
|
+
query: z.ZodString;
|
|
398
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"local">;
|
|
400
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
+
type: z.ZodLiteral<"external">;
|
|
402
|
+
query: z.ZodString;
|
|
403
|
+
}, z.core.$strip>], "type">;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
380
406
|
type: z.ZodLiteral<"async-multiselect">;
|
|
381
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
382
407
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
383
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
384
408
|
}, z.core.$strip>, z.ZodObject<{
|
|
385
409
|
id: z.ZodString;
|
|
386
410
|
name: z.ZodString;
|
|
@@ -421,9 +445,17 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
421
445
|
}>;
|
|
422
446
|
name: z.ZodString;
|
|
423
447
|
}, z.core.$strip>>>;
|
|
424
|
-
|
|
425
|
-
|
|
448
|
+
dataSource: z.ZodObject<{
|
|
449
|
+
query: z.ZodString;
|
|
450
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
451
|
+
type: z.ZodLiteral<"local">;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
+
type: z.ZodLiteral<"external">;
|
|
454
|
+
query: z.ZodString;
|
|
455
|
+
}, z.core.$strip>], "type">;
|
|
456
|
+
}, z.core.$strip>;
|
|
426
457
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
458
|
+
type: z.ZodLiteral<"async-select">;
|
|
427
459
|
}, z.core.$strip>, z.ZodObject<{
|
|
428
460
|
id: z.ZodString;
|
|
429
461
|
name: z.ZodString;
|
|
@@ -174,10 +174,18 @@ export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
174
174
|
}>;
|
|
175
175
|
name: z.ZodString;
|
|
176
176
|
}, z.core.$strip>>>;
|
|
177
|
+
dataSource: z.ZodObject<{
|
|
178
|
+
query: z.ZodString;
|
|
179
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"local">;
|
|
181
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"external">;
|
|
183
|
+
query: z.ZodString;
|
|
184
|
+
}, z.core.$strip>], "type">;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
177
187
|
type: z.ZodLiteral<"async-multiselect">;
|
|
178
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
179
188
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
181
189
|
}, z.core.$strip>, z.ZodObject<{
|
|
182
190
|
id: z.ZodString;
|
|
183
191
|
name: z.ZodString;
|
|
@@ -218,9 +226,17 @@ export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
218
226
|
}>;
|
|
219
227
|
name: z.ZodString;
|
|
220
228
|
}, z.core.$strip>>>;
|
|
221
|
-
|
|
222
|
-
|
|
229
|
+
dataSource: z.ZodObject<{
|
|
230
|
+
query: z.ZodString;
|
|
231
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"local">;
|
|
233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
+
type: z.ZodLiteral<"external">;
|
|
235
|
+
query: z.ZodString;
|
|
236
|
+
}, z.core.$strip>], "type">;
|
|
237
|
+
}, z.core.$strip>;
|
|
223
238
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
239
|
+
type: z.ZodLiteral<"async-select">;
|
|
224
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
225
241
|
id: z.ZodString;
|
|
226
242
|
name: z.ZodString;
|
|
@@ -99,10 +99,18 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
99
99
|
}>;
|
|
100
100
|
name: import("zod").ZodString;
|
|
101
101
|
}, import("zod/v4/core").$strip>>>;
|
|
102
|
+
dataSource: import("zod").ZodObject<{
|
|
103
|
+
query: import("zod").ZodString;
|
|
104
|
+
search: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
105
|
+
type: import("zod").ZodLiteral<"local">;
|
|
106
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
107
|
+
type: import("zod").ZodLiteral<"external">;
|
|
108
|
+
query: import("zod").ZodString;
|
|
109
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
110
|
+
}, import("zod/v4/core").$strip>;
|
|
111
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
112
|
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
103
|
-
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
113
|
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
105
|
-
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
114
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
107
115
|
id: import("zod").ZodString;
|
|
108
116
|
name: import("zod").ZodString;
|
|
@@ -143,9 +151,17 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
143
151
|
}>;
|
|
144
152
|
name: import("zod").ZodString;
|
|
145
153
|
}, import("zod/v4/core").$strip>>>;
|
|
146
|
-
|
|
147
|
-
|
|
154
|
+
dataSource: import("zod").ZodObject<{
|
|
155
|
+
query: import("zod").ZodString;
|
|
156
|
+
search: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
157
|
+
type: import("zod").ZodLiteral<"local">;
|
|
158
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
159
|
+
type: import("zod").ZodLiteral<"external">;
|
|
160
|
+
query: import("zod").ZodString;
|
|
161
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
162
|
+
}, import("zod/v4/core").$strip>;
|
|
148
163
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
164
|
+
type: import("zod").ZodLiteral<"async-select">;
|
|
149
165
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
150
166
|
id: import("zod").ZodString;
|
|
151
167
|
name: import("zod").ZodString;
|
|
@@ -303,10 +319,18 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
303
319
|
}>;
|
|
304
320
|
name: import("zod").ZodString;
|
|
305
321
|
}, import("zod/v4/core").$strip>>>;
|
|
322
|
+
dataSource: import("zod").ZodObject<{
|
|
323
|
+
query: import("zod").ZodString;
|
|
324
|
+
search: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
325
|
+
type: import("zod").ZodLiteral<"local">;
|
|
326
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
327
|
+
type: import("zod").ZodLiteral<"external">;
|
|
328
|
+
query: import("zod").ZodString;
|
|
329
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
330
|
+
}, import("zod/v4/core").$strip>;
|
|
331
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
332
|
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
307
|
-
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
308
333
|
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
309
|
-
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
310
334
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
311
335
|
id: import("zod").ZodString;
|
|
312
336
|
name: import("zod").ZodString;
|
|
@@ -347,9 +371,17 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
347
371
|
}>;
|
|
348
372
|
name: import("zod").ZodString;
|
|
349
373
|
}, import("zod/v4/core").$strip>>>;
|
|
350
|
-
|
|
351
|
-
|
|
374
|
+
dataSource: import("zod").ZodObject<{
|
|
375
|
+
query: import("zod").ZodString;
|
|
376
|
+
search: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
377
|
+
type: import("zod").ZodLiteral<"local">;
|
|
378
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
379
|
+
type: import("zod").ZodLiteral<"external">;
|
|
380
|
+
query: import("zod").ZodString;
|
|
381
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
382
|
+
}, import("zod/v4/core").$strip>;
|
|
352
383
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
384
|
+
type: import("zod").ZodLiteral<"async-select">;
|
|
353
385
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
354
386
|
id: import("zod").ZodString;
|
|
355
387
|
name: import("zod").ZodString;
|
|
@@ -100,10 +100,18 @@ export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
100
100
|
}>;
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
}, z.core.$strip>>>;
|
|
103
|
+
dataSource: z.ZodObject<{
|
|
104
|
+
query: z.ZodString;
|
|
105
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<"local">;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"external">;
|
|
109
|
+
query: z.ZodString;
|
|
110
|
+
}, z.core.$strip>], "type">;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
103
113
|
type: z.ZodLiteral<"async-multiselect">;
|
|
104
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
105
114
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
107
115
|
}, z.core.$strip>, z.ZodObject<{
|
|
108
116
|
id: z.ZodString;
|
|
109
117
|
name: z.ZodString;
|
|
@@ -144,9 +152,17 @@ export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
144
152
|
}>;
|
|
145
153
|
name: z.ZodString;
|
|
146
154
|
}, z.core.$strip>>>;
|
|
147
|
-
|
|
148
|
-
|
|
155
|
+
dataSource: z.ZodObject<{
|
|
156
|
+
query: z.ZodString;
|
|
157
|
+
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"local">;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
type: z.ZodLiteral<"external">;
|
|
161
|
+
query: z.ZodString;
|
|
162
|
+
}, z.core.$strip>], "type">;
|
|
163
|
+
}, z.core.$strip>;
|
|
149
164
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
165
|
+
type: z.ZodLiteral<"async-select">;
|
|
150
166
|
}, z.core.$strip>, z.ZodObject<{
|
|
151
167
|
id: z.ZodString;
|
|
152
168
|
name: z.ZodString;
|
|
@@ -108,3 +108,145 @@ export declare const getIntegrationProcessesContract: import("@lokalise/api-cont
|
|
|
108
108
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
109
109
|
}, z.core.$strip>;
|
|
110
110
|
}>;
|
|
111
|
+
export declare const GET_INTEGRATION_PROCESS_ITEMS_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
112
|
+
integrationId: z.ZodString;
|
|
113
|
+
projectId: z.ZodString;
|
|
114
|
+
processId: z.ZodString;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export declare const GET_INTEGRATION_PROCESS_ITEMS_QUERY_SCHEMA: z.ZodObject<{
|
|
117
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
118
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
119
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
FAILED: "FAILED";
|
|
121
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
122
|
+
SUCCEEDED: "SUCCEEDED";
|
|
123
|
+
}>>;
|
|
124
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export declare const GET_INTEGRATION_PROCESS_ITEMS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
127
|
+
data: z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
itemId: z.ZodString;
|
|
130
|
+
locale: z.ZodString;
|
|
131
|
+
status: z.ZodEnum<{
|
|
132
|
+
FAILED: "FAILED";
|
|
133
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
134
|
+
SUCCEEDED: "SUCCEEDED";
|
|
135
|
+
}>;
|
|
136
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
137
|
+
errorDetails: z.ZodNullable<z.ZodObject<{
|
|
138
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
139
|
+
message: z.ZodOptional<z.ZodString>;
|
|
140
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
142
|
+
userMessage: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
code: z.ZodOptional<z.ZodString>;
|
|
144
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
145
|
+
defaultMessage: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$loose>>;
|
|
147
|
+
}, z.core.$loose>>;
|
|
148
|
+
}, z.core.$loose>>;
|
|
149
|
+
updatedAt: z.ZodISODateTime;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
meta: z.ZodObject<{
|
|
152
|
+
count: z.ZodNumber;
|
|
153
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
154
|
+
hasMore: z.ZodBoolean;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type GetIntegrationProcessItemsPathParams = z.infer<typeof GET_INTEGRATION_PROCESS_ITEMS_PATH_PARAMS_SCHEMA>;
|
|
158
|
+
export type GetIntegrationProcessItemsQuery = z.infer<typeof GET_INTEGRATION_PROCESS_ITEMS_QUERY_SCHEMA>;
|
|
159
|
+
export type GetIntegrationProcessItemsResponse = z.infer<typeof GET_INTEGRATION_PROCESS_ITEMS_RESPONSE_SCHEMA>;
|
|
160
|
+
export declare const getIntegrationProcessItemsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
161
|
+
data: z.ZodArray<z.ZodObject<{
|
|
162
|
+
id: z.ZodString;
|
|
163
|
+
itemId: z.ZodString;
|
|
164
|
+
locale: z.ZodString;
|
|
165
|
+
status: z.ZodEnum<{
|
|
166
|
+
FAILED: "FAILED";
|
|
167
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
168
|
+
SUCCEEDED: "SUCCEEDED";
|
|
169
|
+
}>;
|
|
170
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
171
|
+
errorDetails: z.ZodNullable<z.ZodObject<{
|
|
172
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
173
|
+
message: z.ZodOptional<z.ZodString>;
|
|
174
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
176
|
+
userMessage: z.ZodOptional<z.ZodObject<{
|
|
177
|
+
code: z.ZodOptional<z.ZodString>;
|
|
178
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
179
|
+
defaultMessage: z.ZodOptional<z.ZodString>;
|
|
180
|
+
}, z.core.$loose>>;
|
|
181
|
+
}, z.core.$loose>>;
|
|
182
|
+
}, z.core.$loose>>;
|
|
183
|
+
updatedAt: z.ZodISODateTime;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
meta: z.ZodObject<{
|
|
186
|
+
count: z.ZodNumber;
|
|
187
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
188
|
+
hasMore: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
integrationId: z.ZodString;
|
|
192
|
+
projectId: z.ZodString;
|
|
193
|
+
processId: z.ZodString;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
196
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
197
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
198
|
+
FAILED: "FAILED";
|
|
199
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
200
|
+
SUCCEEDED: "SUCCEEDED";
|
|
201
|
+
}>>;
|
|
202
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>, undefined, false, false, {
|
|
206
|
+
200: z.ZodObject<{
|
|
207
|
+
data: z.ZodArray<z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
itemId: z.ZodString;
|
|
210
|
+
locale: z.ZodString;
|
|
211
|
+
status: z.ZodEnum<{
|
|
212
|
+
FAILED: "FAILED";
|
|
213
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
214
|
+
SUCCEEDED: "SUCCEEDED";
|
|
215
|
+
}>;
|
|
216
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
217
|
+
errorDetails: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
219
|
+
message: z.ZodOptional<z.ZodString>;
|
|
220
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
222
|
+
userMessage: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
code: z.ZodOptional<z.ZodString>;
|
|
224
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
225
|
+
defaultMessage: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$loose>>;
|
|
227
|
+
}, z.core.$loose>>;
|
|
228
|
+
}, z.core.$loose>>;
|
|
229
|
+
updatedAt: z.ZodISODateTime;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
meta: z.ZodObject<{
|
|
232
|
+
count: z.ZodNumber;
|
|
233
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
234
|
+
hasMore: z.ZodBoolean;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
400: z.ZodObject<{
|
|
238
|
+
message: z.ZodString;
|
|
239
|
+
errorCode: z.ZodString;
|
|
240
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
401: z.ZodObject<{
|
|
243
|
+
message: z.ZodString;
|
|
244
|
+
errorCode: z.ZodString;
|
|
245
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
404: z.ZodObject<{
|
|
248
|
+
message: z.ZodString;
|
|
249
|
+
errorCode: z.ZodString;
|
|
250
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}>;
|
|
@@ -2,7 +2,7 @@ import { paginatedResponseSchema } from '@lokalise/api-common';
|
|
|
2
2
|
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
5
|
-
import { INTEGRATION_PROCESS_SCHEMA, PROCESS_RESULT_TYPE_SCHEMA, } from './integrationProcessResultsSchemas.js';
|
|
5
|
+
import { INTEGRATION_PROCESS_ITEM_SCHEMA, INTEGRATION_PROCESS_SCHEMA, PROCESS_ITEM_RESULT_STATUS_SCHEMA, PROCESS_RESULT_TYPE_SCHEMA, } from './integrationProcessResultsSchemas.js';
|
|
6
6
|
export const GET_INTEGRATION_PROCESSES_PATH_PARAMS_SCHEMA = z.object({
|
|
7
7
|
integrationId: z.string(),
|
|
8
8
|
projectId: z.string(),
|
|
@@ -37,4 +37,38 @@ export const getIntegrationProcessesContract = buildGetRoute({
|
|
|
37
37
|
},
|
|
38
38
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
39
39
|
});
|
|
40
|
+
export const GET_INTEGRATION_PROCESS_ITEMS_PATH_PARAMS_SCHEMA = GET_INTEGRATION_PROCESSES_PATH_PARAMS_SCHEMA.extend({
|
|
41
|
+
processId: z.string(),
|
|
42
|
+
});
|
|
43
|
+
export const GET_INTEGRATION_PROCESS_ITEMS_QUERY_SCHEMA = z.object({
|
|
44
|
+
limit: z.coerce
|
|
45
|
+
.number()
|
|
46
|
+
.int()
|
|
47
|
+
.min(1)
|
|
48
|
+
.max(100)
|
|
49
|
+
.optional()
|
|
50
|
+
.default(25)
|
|
51
|
+
.describe('Maximum number of entries to return'),
|
|
52
|
+
cursor: z
|
|
53
|
+
.string()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe('Opaque cursor from `meta.cursor` of the previous response'),
|
|
56
|
+
status: PROCESS_ITEM_RESULT_STATUS_SCHEMA.optional().describe('Only entries with this status'),
|
|
57
|
+
locale: z.string().optional().describe('Only entries for this connector locale, BCP47'),
|
|
58
|
+
});
|
|
59
|
+
export const GET_INTEGRATION_PROCESS_ITEMS_RESPONSE_SCHEMA = paginatedResponseSchema(INTEGRATION_PROCESS_ITEM_SCHEMA);
|
|
60
|
+
export const getIntegrationProcessItemsContract = buildGetRoute({
|
|
61
|
+
pathResolver: (params) => `/v1/integrations/${params.integrationId}/projects/${params.projectId}/processes/${params.processId}/items`,
|
|
62
|
+
description: 'List per-item results of an import/export process, one entry per item and locale',
|
|
63
|
+
requestPathParamsSchema: GET_INTEGRATION_PROCESS_ITEMS_PATH_PARAMS_SCHEMA,
|
|
64
|
+
requestQuerySchema: GET_INTEGRATION_PROCESS_ITEMS_QUERY_SCHEMA,
|
|
65
|
+
successResponseBodySchema: GET_INTEGRATION_PROCESS_ITEMS_RESPONSE_SCHEMA,
|
|
66
|
+
responseSchemasByStatusCode: {
|
|
67
|
+
200: GET_INTEGRATION_PROCESS_ITEMS_RESPONSE_SCHEMA,
|
|
68
|
+
400: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
69
|
+
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
70
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
71
|
+
},
|
|
72
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
73
|
+
});
|
|
40
74
|
//# sourceMappingURL=integrationProcessResultsApiSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationProcessResultsApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/processResult/integrationProcessResultsApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uCAAuC,CAAA;AAE9C,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,MAAM,CAAC;IACnE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE,CAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,qCAAqC,CAAC;IAClD,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2DAA2D,CAAC;IACxE,IAAI,EAAE,0BAA0B,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;CACpF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAAG,uBAAuB,CAC9E,0BAA0B,CAC3B,CAAA;AAUD,MAAM,CAAC,MAAM,+BAA+B,GAAG,aAAa,CAAC;IAC3D,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,oBAAoB,MAAM,CAAC,aAAa,aAAa,MAAM,CAAC,SAAS,YAAY;IACnF,WAAW,EAAE,wDAAwD;IACrE,uBAAuB,EAAE,4CAA4C;IACrE,kBAAkB,EAAE,sCAAsC;IAC1D,yBAAyB,EAAE,yCAAyC;IACpE,2BAA2B,EAAE;QAC3B,GAAG,EAAE,yCAAyC;QAC9C,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"integrationProcessResultsApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/processResult/integrationProcessResultsApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAA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C;IACxE,2BAA2B,EAAE;QAC3B,GAAG,EAAE,6CAA6C;QAClD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
|
|
@@ -24,6 +24,37 @@ export declare const INTEGRATION_PROCESS_SCHEMA: z.ZodObject<{
|
|
|
24
24
|
initializedAt: z.ZodISODateTime;
|
|
25
25
|
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
+
export declare const PROCESS_ITEM_RESULT_STATUS_SCHEMA: z.ZodEnum<{
|
|
28
|
+
FAILED: "FAILED";
|
|
29
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
30
|
+
SUCCEEDED: "SUCCEEDED";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const INTEGRATION_PROCESS_ITEM_SCHEMA: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
itemId: z.ZodString;
|
|
35
|
+
locale: z.ZodString;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
FAILED: "FAILED";
|
|
38
|
+
NOT_PROCESSED: "NOT_PROCESSED";
|
|
39
|
+
SUCCEEDED: "SUCCEEDED";
|
|
40
|
+
}>;
|
|
41
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
42
|
+
errorDetails: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
44
|
+
message: z.ZodOptional<z.ZodString>;
|
|
45
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
47
|
+
userMessage: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
code: z.ZodOptional<z.ZodString>;
|
|
49
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
|
+
defaultMessage: z.ZodOptional<z.ZodString>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
updatedAt: z.ZodISODateTime;
|
|
55
|
+
}, z.core.$strip>;
|
|
27
56
|
export type IntegrationProcess = z.infer<typeof INTEGRATION_PROCESS_SCHEMA>;
|
|
28
57
|
export type IntegrationProcessType = z.infer<typeof PROCESS_RESULT_TYPE_SCHEMA>;
|
|
29
58
|
export type IntegrationProcessStatus = z.infer<typeof PROCESS_RESULT_STATUS_SCHEMA>;
|
|
59
|
+
export type IntegrationProcessItem = z.infer<typeof INTEGRATION_PROCESS_ITEM_SCHEMA>;
|
|
60
|
+
export type IntegrationProcessItemStatus = z.infer<typeof PROCESS_ITEM_RESULT_STATUS_SCHEMA>;
|
|
@@ -10,4 +10,51 @@ export const INTEGRATION_PROCESS_SCHEMA = z.object({
|
|
|
10
10
|
.describe('When the process was initialized (it may still be queued at that point)'),
|
|
11
11
|
completedAt: z.iso.datetime().nullable().describe('When the process reached a terminal status'),
|
|
12
12
|
});
|
|
13
|
+
export const PROCESS_ITEM_RESULT_STATUS_SCHEMA = z.enum(['SUCCEEDED', 'FAILED', 'NOT_PROCESSED']);
|
|
14
|
+
export const INTEGRATION_PROCESS_ITEM_SCHEMA = z.object({
|
|
15
|
+
id: z.string().describe('Stable row reference (uuidv7), usable as an error id for support'),
|
|
16
|
+
itemId: z
|
|
17
|
+
.string()
|
|
18
|
+
.describe('Connector item id at the item-listing granularity (e.g. `campaign:{id}`)'),
|
|
19
|
+
locale: z.string().describe('Connector locale the outcome applies to, BCP47'),
|
|
20
|
+
status: PROCESS_ITEM_RESULT_STATUS_SCHEMA,
|
|
21
|
+
errorCode: z
|
|
22
|
+
.string()
|
|
23
|
+
.nullable()
|
|
24
|
+
.describe('Connector error classification of the recorded failure, null unless FAILED'),
|
|
25
|
+
errorDetails: z
|
|
26
|
+
.looseObject({
|
|
27
|
+
errorCode: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Connector error classification (e.g. NON_TRANSIENT_ERROR, TRANSIENT_ERROR)'),
|
|
31
|
+
message: z.string().optional().describe('Technical error message from the connector'),
|
|
32
|
+
details: z
|
|
33
|
+
.looseObject({
|
|
34
|
+
reason: z
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('Failure classification (e.g. THIRD_PARTY_MISCONFIGURED)'),
|
|
38
|
+
userMessage: z
|
|
39
|
+
.looseObject({
|
|
40
|
+
code: z.string().optional().describe('Translation key for the user-facing message'),
|
|
41
|
+
params: z
|
|
42
|
+
.record(z.string(), z.unknown())
|
|
43
|
+
.optional()
|
|
44
|
+
.describe('Interpolation parameters for the translated message'),
|
|
45
|
+
defaultMessage: z
|
|
46
|
+
.string()
|
|
47
|
+
.optional()
|
|
48
|
+
.describe('English fallback when the code has no translation'),
|
|
49
|
+
})
|
|
50
|
+
.optional()
|
|
51
|
+
.describe('User-facing message the FE should render for this failure'),
|
|
52
|
+
})
|
|
53
|
+
.optional()
|
|
54
|
+
.describe('Connector-specific context'),
|
|
55
|
+
})
|
|
56
|
+
.nullable()
|
|
57
|
+
.describe('Connector error object stored verbatim, null unless FAILED'),
|
|
58
|
+
updatedAt: z.iso.datetime().describe('When the outcome was last recorded'),
|
|
59
|
+
});
|
|
13
60
|
//# sourceMappingURL=integrationProcessResultsSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationProcessResultsSchemas.js","sourceRoot":"","sources":["../../../src/schemas/processResult/integrationProcessResultsSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAA;AAEtE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ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,CAAC,mDAAmD,CAAC;aACjE,CAAC;iBACD,QAAQ,EAAE;iBACV,QAAQ,CAAC,2DAA2D,CAAC;SACzE,CAAC;aACD,QAAQ,EAAE;aACV,QAAQ,CAAC,4BAA4B,CAAC;KAC1C,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,4DAA4D,CAAC;IACzE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CAC3E,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/content-type-app-engine-contracts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.0",
|
|
4
4
|
"description": "Content Type App Engine service contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@lokalise/api-contracts": "^6.0.0",
|
|
20
|
-
"@lokalise/connector-api-contracts": "^
|
|
20
|
+
"@lokalise/connector-api-contracts": "^8.0.0",
|
|
21
21
|
"@lokalise/content-conversion-api-schemas": "^1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|