@lokalise/content-type-app-engine-contracts 5.18.0 → 5.20.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 +24 -20
- package/dist/schemas/connector/connectorSchemas.d.ts +12 -10
- package/dist/schemas/integration/integrationApiSchemas.d.ts +24 -20
- package/dist/schemas/integration/integrationSchemas.d.ts +12 -10
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.d.ts +11 -3
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.js +6 -2
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.js.map +1 -1
- package/dist/schemas/integrationProject/integrationProjectSchemas.d.ts +33 -2
- package/dist/schemas/integrationProject/integrationProjectSchemas.js +34 -2
- package/dist/schemas/integrationProject/integrationProjectSchemas.js.map +1 -1
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.d.ts +54 -37
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.js +5 -2
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.js.map +1 -1
- package/dist/schemas/itemList/integrationItemListApiSchemas.d.ts +2 -0
- package/dist/schemas/itemList/itemListContracts.d.ts +2 -0
- package/dist/schemas/link/linkApiSchemas.d.ts +24 -20
- package/dist/schemas/link/linkSchemas.d.ts +12 -10
- package/package.json +2 -2
|
@@ -169,13 +169,14 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
169
169
|
name: z.ZodString;
|
|
170
170
|
}, z.core.$strip>>>;
|
|
171
171
|
dataSource: z.ZodObject<{
|
|
172
|
+
type: z.ZodEnum<{
|
|
173
|
+
contentEngine: "contentEngine";
|
|
174
|
+
connector: "connector";
|
|
175
|
+
}>;
|
|
172
176
|
query: z.ZodString;
|
|
173
|
-
search: z.
|
|
174
|
-
type: z.ZodLiteral<"local">;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
type: z.ZodLiteral<"external">;
|
|
177
|
+
search: z.ZodObject<{
|
|
177
178
|
query: z.ZodString;
|
|
178
|
-
}, z.core.$strip
|
|
179
|
+
}, z.core.$strip>;
|
|
179
180
|
}, z.core.$strip>;
|
|
180
181
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
181
182
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -221,13 +222,14 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
221
222
|
name: z.ZodString;
|
|
222
223
|
}, z.core.$strip>>>;
|
|
223
224
|
dataSource: z.ZodObject<{
|
|
225
|
+
type: z.ZodEnum<{
|
|
226
|
+
contentEngine: "contentEngine";
|
|
227
|
+
connector: "connector";
|
|
228
|
+
}>;
|
|
224
229
|
query: z.ZodString;
|
|
225
|
-
search: z.
|
|
226
|
-
type: z.ZodLiteral<"local">;
|
|
227
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
-
type: z.ZodLiteral<"external">;
|
|
230
|
+
search: z.ZodObject<{
|
|
229
231
|
query: z.ZodString;
|
|
230
|
-
}, z.core.$strip
|
|
232
|
+
}, z.core.$strip>;
|
|
231
233
|
}, z.core.$strip>;
|
|
232
234
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
233
235
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -394,13 +396,14 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
394
396
|
name: z.ZodString;
|
|
395
397
|
}, z.core.$strip>>>;
|
|
396
398
|
dataSource: z.ZodObject<{
|
|
399
|
+
type: z.ZodEnum<{
|
|
400
|
+
contentEngine: "contentEngine";
|
|
401
|
+
connector: "connector";
|
|
402
|
+
}>;
|
|
397
403
|
query: z.ZodString;
|
|
398
|
-
search: z.
|
|
399
|
-
type: z.ZodLiteral<"local">;
|
|
400
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
-
type: z.ZodLiteral<"external">;
|
|
404
|
+
search: z.ZodObject<{
|
|
402
405
|
query: z.ZodString;
|
|
403
|
-
}, z.core.$strip
|
|
406
|
+
}, z.core.$strip>;
|
|
404
407
|
}, z.core.$strip>;
|
|
405
408
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
406
409
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -446,13 +449,14 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
|
|
|
446
449
|
name: z.ZodString;
|
|
447
450
|
}, z.core.$strip>>>;
|
|
448
451
|
dataSource: z.ZodObject<{
|
|
452
|
+
type: z.ZodEnum<{
|
|
453
|
+
contentEngine: "contentEngine";
|
|
454
|
+
connector: "connector";
|
|
455
|
+
}>;
|
|
449
456
|
query: z.ZodString;
|
|
450
|
-
search: z.
|
|
451
|
-
type: z.ZodLiteral<"local">;
|
|
452
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
-
type: z.ZodLiteral<"external">;
|
|
457
|
+
search: z.ZodObject<{
|
|
454
458
|
query: z.ZodString;
|
|
455
|
-
}, z.core.$strip
|
|
459
|
+
}, z.core.$strip>;
|
|
456
460
|
}, z.core.$strip>;
|
|
457
461
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
458
462
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -139,13 +139,14 @@ export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
139
139
|
name: z.ZodString;
|
|
140
140
|
}, z.core.$strip>>>;
|
|
141
141
|
dataSource: z.ZodObject<{
|
|
142
|
+
type: z.ZodEnum<{
|
|
143
|
+
contentEngine: "contentEngine";
|
|
144
|
+
connector: "connector";
|
|
145
|
+
}>;
|
|
142
146
|
query: z.ZodString;
|
|
143
|
-
search: z.
|
|
144
|
-
type: z.ZodLiteral<"local">;
|
|
145
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
-
type: z.ZodLiteral<"external">;
|
|
147
|
+
search: z.ZodObject<{
|
|
147
148
|
query: z.ZodString;
|
|
148
|
-
}, z.core.$strip
|
|
149
|
+
}, z.core.$strip>;
|
|
149
150
|
}, z.core.$strip>;
|
|
150
151
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
151
152
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -191,13 +192,14 @@ export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
191
192
|
name: z.ZodString;
|
|
192
193
|
}, z.core.$strip>>>;
|
|
193
194
|
dataSource: z.ZodObject<{
|
|
195
|
+
type: z.ZodEnum<{
|
|
196
|
+
contentEngine: "contentEngine";
|
|
197
|
+
connector: "connector";
|
|
198
|
+
}>;
|
|
194
199
|
query: z.ZodString;
|
|
195
|
-
search: z.
|
|
196
|
-
type: z.ZodLiteral<"local">;
|
|
197
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
-
type: z.ZodLiteral<"external">;
|
|
200
|
+
search: z.ZodObject<{
|
|
199
201
|
query: z.ZodString;
|
|
200
|
-
}, z.core.$strip
|
|
202
|
+
}, z.core.$strip>;
|
|
201
203
|
}, z.core.$strip>;
|
|
202
204
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
203
205
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -172,13 +172,14 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
172
172
|
name: z.ZodString;
|
|
173
173
|
}, z.core.$strip>>>;
|
|
174
174
|
dataSource: z.ZodObject<{
|
|
175
|
+
type: z.ZodEnum<{
|
|
176
|
+
contentEngine: "contentEngine";
|
|
177
|
+
connector: "connector";
|
|
178
|
+
}>;
|
|
175
179
|
query: z.ZodString;
|
|
176
|
-
search: z.
|
|
177
|
-
type: z.ZodLiteral<"local">;
|
|
178
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"external">;
|
|
180
|
+
search: z.ZodObject<{
|
|
180
181
|
query: z.ZodString;
|
|
181
|
-
}, z.core.$strip
|
|
182
|
+
}, z.core.$strip>;
|
|
182
183
|
}, z.core.$strip>;
|
|
183
184
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
184
185
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -224,13 +225,14 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
224
225
|
name: z.ZodString;
|
|
225
226
|
}, z.core.$strip>>>;
|
|
226
227
|
dataSource: z.ZodObject<{
|
|
228
|
+
type: z.ZodEnum<{
|
|
229
|
+
contentEngine: "contentEngine";
|
|
230
|
+
connector: "connector";
|
|
231
|
+
}>;
|
|
227
232
|
query: z.ZodString;
|
|
228
|
-
search: z.
|
|
229
|
-
type: z.ZodLiteral<"local">;
|
|
230
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
-
type: z.ZodLiteral<"external">;
|
|
233
|
+
search: z.ZodObject<{
|
|
232
234
|
query: z.ZodString;
|
|
233
|
-
}, z.core.$strip
|
|
235
|
+
}, z.core.$strip>;
|
|
234
236
|
}, z.core.$strip>;
|
|
235
237
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
236
238
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -394,13 +396,14 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
394
396
|
name: z.ZodString;
|
|
395
397
|
}, z.core.$strip>>>;
|
|
396
398
|
dataSource: z.ZodObject<{
|
|
399
|
+
type: z.ZodEnum<{
|
|
400
|
+
contentEngine: "contentEngine";
|
|
401
|
+
connector: "connector";
|
|
402
|
+
}>;
|
|
397
403
|
query: z.ZodString;
|
|
398
|
-
search: z.
|
|
399
|
-
type: z.ZodLiteral<"local">;
|
|
400
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
401
|
-
type: z.ZodLiteral<"external">;
|
|
404
|
+
search: z.ZodObject<{
|
|
402
405
|
query: z.ZodString;
|
|
403
|
-
}, z.core.$strip
|
|
406
|
+
}, z.core.$strip>;
|
|
404
407
|
}, z.core.$strip>;
|
|
405
408
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
406
409
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -446,13 +449,14 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
|
|
|
446
449
|
name: z.ZodString;
|
|
447
450
|
}, z.core.$strip>>>;
|
|
448
451
|
dataSource: z.ZodObject<{
|
|
452
|
+
type: z.ZodEnum<{
|
|
453
|
+
contentEngine: "contentEngine";
|
|
454
|
+
connector: "connector";
|
|
455
|
+
}>;
|
|
449
456
|
query: z.ZodString;
|
|
450
|
-
search: z.
|
|
451
|
-
type: z.ZodLiteral<"local">;
|
|
452
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
453
|
-
type: z.ZodLiteral<"external">;
|
|
457
|
+
search: z.ZodObject<{
|
|
454
458
|
query: z.ZodString;
|
|
455
|
-
}, z.core.$strip
|
|
459
|
+
}, z.core.$strip>;
|
|
456
460
|
}, z.core.$strip>;
|
|
457
461
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
458
462
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -175,13 +175,14 @@ export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
175
175
|
name: z.ZodString;
|
|
176
176
|
}, z.core.$strip>>>;
|
|
177
177
|
dataSource: z.ZodObject<{
|
|
178
|
+
type: z.ZodEnum<{
|
|
179
|
+
contentEngine: "contentEngine";
|
|
180
|
+
connector: "connector";
|
|
181
|
+
}>;
|
|
178
182
|
query: z.ZodString;
|
|
179
|
-
search: z.
|
|
180
|
-
type: z.ZodLiteral<"local">;
|
|
181
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
182
|
-
type: z.ZodLiteral<"external">;
|
|
183
|
+
search: z.ZodObject<{
|
|
183
184
|
query: z.ZodString;
|
|
184
|
-
}, z.core.$strip
|
|
185
|
+
}, z.core.$strip>;
|
|
185
186
|
}, z.core.$strip>;
|
|
186
187
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
187
188
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -227,13 +228,14 @@ export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
227
228
|
name: z.ZodString;
|
|
228
229
|
}, z.core.$strip>>>;
|
|
229
230
|
dataSource: z.ZodObject<{
|
|
231
|
+
type: z.ZodEnum<{
|
|
232
|
+
contentEngine: "contentEngine";
|
|
233
|
+
connector: "connector";
|
|
234
|
+
}>;
|
|
230
235
|
query: z.ZodString;
|
|
231
|
-
search: z.
|
|
232
|
-
type: z.ZodLiteral<"local">;
|
|
233
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
-
type: z.ZodLiteral<"external">;
|
|
236
|
+
search: z.ZodObject<{
|
|
235
237
|
query: z.ZodString;
|
|
236
|
-
}, z.core.$strip
|
|
238
|
+
}, z.core.$strip>;
|
|
237
239
|
}, z.core.$strip>;
|
|
238
240
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
239
241
|
type: z.ZodLiteral<"async-select">;
|
|
@@ -85,8 +85,12 @@ export declare const postConnectIntegrationProjectContract: import("@lokalise/ap
|
|
|
85
85
|
* - `integrationId`: UUID of the integration
|
|
86
86
|
* - `projectId`: UUID of the already-connected project
|
|
87
87
|
*
|
|
88
|
-
* **Body
|
|
89
|
-
* - `
|
|
88
|
+
* **Body** (discriminated union on `type`):
|
|
89
|
+
* - Selection (`type: 'selection'`, or omitted for backwards compatibility):
|
|
90
|
+
* - `selectedItems`: Array of item uniqueIds (file IDs) from the itemList endpoint
|
|
91
|
+
* - Filters (`type: 'filters'`):
|
|
92
|
+
* - `$filter`: OData filter expression (same language as the itemList
|
|
93
|
+
* endpoint); imports every item matching the expression
|
|
90
94
|
*
|
|
91
95
|
* ## Response
|
|
92
96
|
*
|
|
@@ -102,9 +106,13 @@ export declare const postConnectIntegrationProjectContract: import("@lokalise/ap
|
|
|
102
106
|
* - 401: Unauthorized (missing or invalid authentication)
|
|
103
107
|
* - 404: Integration, Project, or IntegrationProject connection not found
|
|
104
108
|
*/
|
|
105
|
-
export declare const postTriggerImportContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
109
|
+
export declare const postTriggerImportContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
110
|
+
type: import("zod").ZodOptional<import("zod").ZodLiteral<"selection">>;
|
|
106
111
|
selectedItems: import("zod").ZodArray<import("zod").ZodString>;
|
|
107
112
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
113
|
+
type: import("zod").ZodLiteral<"filters">;
|
|
114
|
+
$filter: import("zod").ZodString;
|
|
115
|
+
}, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
|
|
108
116
|
jobId: import("zod").ZodString;
|
|
109
117
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
110
118
|
integrationId: import("zod").ZodGUID;
|
|
@@ -70,8 +70,12 @@ export const postConnectIntegrationProjectContract = buildPayloadRoute({
|
|
|
70
70
|
* - `integrationId`: UUID of the integration
|
|
71
71
|
* - `projectId`: UUID of the already-connected project
|
|
72
72
|
*
|
|
73
|
-
* **Body
|
|
74
|
-
* - `
|
|
73
|
+
* **Body** (discriminated union on `type`):
|
|
74
|
+
* - Selection (`type: 'selection'`, or omitted for backwards compatibility):
|
|
75
|
+
* - `selectedItems`: Array of item uniqueIds (file IDs) from the itemList endpoint
|
|
76
|
+
* - Filters (`type: 'filters'`):
|
|
77
|
+
* - `$filter`: OData filter expression (same language as the itemList
|
|
78
|
+
* endpoint); imports every item matching the expression
|
|
75
79
|
*
|
|
76
80
|
* ## Response
|
|
77
81
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationProjectApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integrationProject/integrationProjectApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,wDAAwD,EACxD,4CAA4C,EAC5C,mDAAmD,EACnD,gDAAgD,EAChD,4CAA4C,EAC5C,gDAAgD,EAChD,+BAA+B,EAC/B,sCAAsC,EACtC,mCAAmC,GACpC,MAAM,gCAAgC,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACrE,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,oBAAoB,MAAM,CAAC,aAAa,2BAA2B;IAC7F,WAAW,EAAE,4DAA4D;IACzE,uBAAuB,EAAE,mDAAmD;IAC5E,iBAAiB,EAAE,4CAA4C;IAC/D,yBAAyB,EAAE,gDAAgD;IAC3E,2BAA2B,EAAE;QAC3B,GAAG,EAAE,gDAAgD;QACrD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,wDAAwD;KAC9D;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF
|
|
1
|
+
{"version":3,"file":"integrationProjectApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integrationProject/integrationProjectApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,wDAAwD,EACxD,4CAA4C,EAC5C,mDAAmD,EACnD,gDAAgD,EAChD,4CAA4C,EAC5C,gDAAgD,EAChD,+BAA+B,EAC/B,sCAAsC,EACtC,mCAAmC,GACpC,MAAM,gCAAgC,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,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,yBAAyB,EAAE,gDAAgD;IAC3E,2BAA2B,EAAE;QAC3B,GAAG,EAAE,gDAAgD;QACrD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
|
|
@@ -43,11 +43,42 @@ export declare const POST_TRIGGER_IMPORT_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
export type PostTriggerImportPathParams = z.infer<typeof POST_TRIGGER_IMPORT_PATH_PARAMS_SCHEMA>;
|
|
45
45
|
/**
|
|
46
|
-
* Request body for triggering import
|
|
46
|
+
* Request body for triggering import of an explicitly selected list of items.
|
|
47
|
+
*
|
|
48
|
+
* `type` is optional for backwards compatibility: bodies sent before the
|
|
49
|
+
* filter-based variant existed carry no `type` and are treated as a selection.
|
|
47
50
|
*/
|
|
48
|
-
export declare const
|
|
51
|
+
export declare const POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA: z.ZodObject<{
|
|
52
|
+
type: z.ZodOptional<z.ZodLiteral<"selection">>;
|
|
49
53
|
selectedItems: z.ZodArray<z.ZodString>;
|
|
50
54
|
}, z.core.$strip>;
|
|
55
|
+
export type PostTriggerImportSelectionBody = z.infer<typeof POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA>;
|
|
56
|
+
/**
|
|
57
|
+
* Request body for triggering import of every item matching an OData `$filter`
|
|
58
|
+
* expression — the same expression language the itemList endpoint accepts.
|
|
59
|
+
* Used by "select all items matching filters" flows, where enumerating item
|
|
60
|
+
* ids client-side is impractical.
|
|
61
|
+
*/
|
|
62
|
+
export declare const POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA: z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"filters">;
|
|
64
|
+
$filter: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type PostTriggerImportFiltersBody = z.infer<typeof POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA>;
|
|
67
|
+
/**
|
|
68
|
+
* Request body for triggering import on an already connected project.
|
|
69
|
+
*
|
|
70
|
+
* Discriminated union on `type`:
|
|
71
|
+
* - `'selection'` (or omitted, for backwards compatibility): import the given
|
|
72
|
+
* `selectedItems`
|
|
73
|
+
* - `'filters'`: import everything matching the given `$filter` expression
|
|
74
|
+
*/
|
|
75
|
+
export declare const POST_TRIGGER_IMPORT_BODY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
type: z.ZodOptional<z.ZodLiteral<"selection">>;
|
|
77
|
+
selectedItems: z.ZodArray<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"filters">;
|
|
80
|
+
$filter: z.ZodString;
|
|
81
|
+
}, z.core.$strip>], "type">;
|
|
51
82
|
export type PostTriggerImportBody = z.infer<typeof POST_TRIGGER_IMPORT_BODY_SCHEMA>;
|
|
52
83
|
/**
|
|
53
84
|
* Success response after triggering import
|
|
@@ -67,9 +67,13 @@ export const POST_TRIGGER_IMPORT_PATH_PARAMS_SCHEMA = z.object({
|
|
|
67
67
|
projectId: z.guid(),
|
|
68
68
|
});
|
|
69
69
|
/**
|
|
70
|
-
* Request body for triggering import
|
|
70
|
+
* Request body for triggering import of an explicitly selected list of items.
|
|
71
|
+
*
|
|
72
|
+
* `type` is optional for backwards compatibility: bodies sent before the
|
|
73
|
+
* filter-based variant existed carry no `type` and are treated as a selection.
|
|
71
74
|
*/
|
|
72
|
-
export const
|
|
75
|
+
export const POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA = z.object({
|
|
76
|
+
type: z.literal('selection').optional(),
|
|
73
77
|
/**
|
|
74
78
|
* Array of item uniqueIds (file IDs) selected from the itemList endpoint.
|
|
75
79
|
* These are the files/items that will be processed in the background import job.
|
|
@@ -78,6 +82,34 @@ export const POST_TRIGGER_IMPORT_BODY_SCHEMA = z.object({
|
|
|
78
82
|
.array(z.string().min(1))
|
|
79
83
|
.min(1, { message: 'At least one item must be selected' }),
|
|
80
84
|
});
|
|
85
|
+
/**
|
|
86
|
+
* Request body for triggering import of every item matching an OData `$filter`
|
|
87
|
+
* expression — the same expression language the itemList endpoint accepts.
|
|
88
|
+
* Used by "select all items matching filters" flows, where enumerating item
|
|
89
|
+
* ids client-side is impractical.
|
|
90
|
+
*/
|
|
91
|
+
export const POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA = z.object({
|
|
92
|
+
type: z.literal('filters'),
|
|
93
|
+
/**
|
|
94
|
+
* OData filter expression selecting the items to import.
|
|
95
|
+
* Required: importing every item must be requested explicitly via a
|
|
96
|
+
* matching expression, so an accidentally omitted filter cannot silently
|
|
97
|
+
* import the whole space.
|
|
98
|
+
*/
|
|
99
|
+
$filter: z.string().min(1, { message: 'A filter expression must be provided' }),
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* Request body for triggering import on an already connected project.
|
|
103
|
+
*
|
|
104
|
+
* Discriminated union on `type`:
|
|
105
|
+
* - `'selection'` (or omitted, for backwards compatibility): import the given
|
|
106
|
+
* `selectedItems`
|
|
107
|
+
* - `'filters'`: import everything matching the given `$filter` expression
|
|
108
|
+
*/
|
|
109
|
+
export const POST_TRIGGER_IMPORT_BODY_SCHEMA = z.discriminatedUnion('type', [
|
|
110
|
+
POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA,
|
|
111
|
+
POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA,
|
|
112
|
+
]);
|
|
81
113
|
/**
|
|
82
114
|
* Success response after triggering import
|
|
83
115
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationProjectSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integrationProject/integrationProjectSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,4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AAC,IAAI,EAAE;CACpB,CAAC,CAAA;AAIF
|
|
1
|
+
{"version":3,"file":"integrationProjectSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integrationProject/integrationProjectSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAA;AAE5E,+EAA+E;AAC/E,sCAAsC;AACtC,iEAAiE;AACjE,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1E;;OAEG;IACH,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE;CACxB,CAAC,CAAA;AAMF;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAAC,CAAC,MAAM,CAAC;IACnE;;OAEG;IACH,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB;;;OAGG;IACH,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;CAC7D,CAAC,CAAA;AAMF;;GAEG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CAAC;IACvE;;OAEG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAA;AAMF;;GAEG;AACH,MAAM,CAAC,MAAM,6CAA6C,GACxD,oCAA6C,CAAA;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,wDAAwD,GACnE,+BAA+B,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,6CAA6C,CAAC;CACpE,CAAC,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
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import type { z } from 'zod/v4';
|
|
2
|
+
declare const LINK_ITEM_GROUPS_QUERY_STRING: z.ZodObject<{
|
|
3
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5
|
+
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
6
|
+
$filter: z.ZodOptional<z.ZodString>;
|
|
7
|
+
dataSource: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
contentEngine: "contentEngine";
|
|
9
|
+
connector: "connector";
|
|
10
|
+
}>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type LinkItemGroupsQueryString = z.infer<typeof LINK_ITEM_GROUPS_QUERY_STRING>;
|
|
13
|
+
export declare const getLinkItemGroupsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
14
|
+
items: z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
parentItemGroupId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
23
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
24
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
25
|
+
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
26
|
+
$filter: z.ZodOptional<z.ZodString>;
|
|
27
|
+
dataSource: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
contentEngine: "contentEngine";
|
|
29
|
+
connector: "connector";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>, undefined, false, false, {
|
|
34
|
+
200: z.ZodObject<{
|
|
35
|
+
items: z.ZodArray<z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
parentItemGroupId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
39
|
+
details: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
401: z.ZodObject<{
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
errorCode: z.ZodString;
|
|
47
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
404: z.ZodObject<{
|
|
50
|
+
message: z.ZodString;
|
|
51
|
+
errorCode: z.ZodString;
|
|
52
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
38
54
|
}>;
|
|
55
|
+
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
2
|
-
import { itemGroupListRequestQueryString, itemGroupListResponseBody, } from '@lokalise/connector-api-contracts';
|
|
2
|
+
import { FILTER_DATA_SOURCE_TYPE, itemGroupListRequestQueryString, itemGroupListResponseBody, } from '@lokalise/connector-api-contracts';
|
|
3
3
|
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
4
|
+
const LINK_ITEM_GROUPS_QUERY_STRING = itemGroupListRequestQueryString.extend({
|
|
5
|
+
dataSource: FILTER_DATA_SOURCE_TYPE.optional(),
|
|
6
|
+
});
|
|
4
7
|
export const getLinkItemGroupsContract = buildGetRoute({
|
|
5
8
|
pathResolver: () => '/v1/link/item-groups',
|
|
6
9
|
description: 'Get list of item groups (e.g., stories) for current link',
|
|
7
|
-
requestQuerySchema:
|
|
10
|
+
requestQuerySchema: LINK_ITEM_GROUPS_QUERY_STRING,
|
|
8
11
|
successResponseBodySchema: itemGroupListResponseBody,
|
|
9
12
|
responseSchemasByStatusCode: {
|
|
10
13
|
200: itemGroupListResponseBody,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkItemGroupApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/itemGroup/linkItemGroupApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;
|
|
1
|
+
{"version":3,"file":"linkItemGroupApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/itemGroup/linkItemGroupApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AAEnC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,uBAAuB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC;IACrD,YAAY,EAAE,GAAG,EAAE,CAAC,sBAAsB;IAC1C,WAAW,EAAE,0DAA0D;IACvE,kBAAkB,EAAE,6BAA6B;IACjD,yBAAyB,EAAE,yBAAyB;IACpD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,yBAAyB;QAC9B,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
|
|
@@ -48,6 +48,7 @@ export declare const getIntegrationItemsContract: import("@lokalise/api-contract
|
|
|
48
48
|
count: import("zod").ZodNumber;
|
|
49
49
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
50
|
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
51
|
+
totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
51
52
|
}, import("zod/v4/core").$strip>;
|
|
52
53
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
53
54
|
integrationId: import("zod").ZodGUID;
|
|
@@ -73,6 +74,7 @@ export declare const getIntegrationItemsContract: import("@lokalise/api-contract
|
|
|
73
74
|
count: import("zod").ZodNumber;
|
|
74
75
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
75
76
|
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
77
|
+
totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
76
78
|
}, import("zod/v4/core").$strip>;
|
|
77
79
|
}, import("zod/v4/core").$strip>;
|
|
78
80
|
401: import("zod").ZodObject<{
|
|
@@ -23,6 +23,7 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
23
23
|
count: import("zod").ZodNumber;
|
|
24
24
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
25
|
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
26
|
+
totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
26
27
|
}, import("zod/v4/core").$strip>;
|
|
27
28
|
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
28
29
|
limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
@@ -46,6 +47,7 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
46
47
|
count: import("zod").ZodNumber;
|
|
47
48
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
48
49
|
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
50
|
+
totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
49
51
|
}, import("zod/v4/core").$strip>;
|
|
50
52
|
}, import("zod/v4/core").$strip>;
|
|
51
53
|
401: import("zod").ZodObject<{
|
|
@@ -100,13 +100,14 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
100
100
|
name: import("zod").ZodString;
|
|
101
101
|
}, import("zod/v4/core").$strip>>>;
|
|
102
102
|
dataSource: import("zod").ZodObject<{
|
|
103
|
+
type: import("zod").ZodEnum<{
|
|
104
|
+
contentEngine: "contentEngine";
|
|
105
|
+
connector: "connector";
|
|
106
|
+
}>;
|
|
103
107
|
query: import("zod").ZodString;
|
|
104
|
-
search: import("zod").
|
|
105
|
-
type: import("zod").ZodLiteral<"local">;
|
|
106
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
107
|
-
type: import("zod").ZodLiteral<"external">;
|
|
108
|
+
search: import("zod").ZodObject<{
|
|
108
109
|
query: import("zod").ZodString;
|
|
109
|
-
}, import("zod/v4/core").$strip
|
|
110
|
+
}, import("zod/v4/core").$strip>;
|
|
110
111
|
}, import("zod/v4/core").$strip>;
|
|
111
112
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
113
|
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
@@ -152,13 +153,14 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
152
153
|
name: import("zod").ZodString;
|
|
153
154
|
}, import("zod/v4/core").$strip>>>;
|
|
154
155
|
dataSource: import("zod").ZodObject<{
|
|
156
|
+
type: import("zod").ZodEnum<{
|
|
157
|
+
contentEngine: "contentEngine";
|
|
158
|
+
connector: "connector";
|
|
159
|
+
}>;
|
|
155
160
|
query: import("zod").ZodString;
|
|
156
|
-
search: import("zod").
|
|
157
|
-
type: import("zod").ZodLiteral<"local">;
|
|
158
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
159
|
-
type: import("zod").ZodLiteral<"external">;
|
|
161
|
+
search: import("zod").ZodObject<{
|
|
160
162
|
query: import("zod").ZodString;
|
|
161
|
-
}, import("zod/v4/core").$strip
|
|
163
|
+
}, import("zod/v4/core").$strip>;
|
|
162
164
|
}, import("zod/v4/core").$strip>;
|
|
163
165
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
164
166
|
type: import("zod").ZodLiteral<"async-select">;
|
|
@@ -320,13 +322,14 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
320
322
|
name: import("zod").ZodString;
|
|
321
323
|
}, import("zod/v4/core").$strip>>>;
|
|
322
324
|
dataSource: import("zod").ZodObject<{
|
|
325
|
+
type: import("zod").ZodEnum<{
|
|
326
|
+
contentEngine: "contentEngine";
|
|
327
|
+
connector: "connector";
|
|
328
|
+
}>;
|
|
323
329
|
query: import("zod").ZodString;
|
|
324
|
-
search: import("zod").
|
|
325
|
-
type: import("zod").ZodLiteral<"local">;
|
|
326
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
327
|
-
type: import("zod").ZodLiteral<"external">;
|
|
330
|
+
search: import("zod").ZodObject<{
|
|
328
331
|
query: import("zod").ZodString;
|
|
329
|
-
}, import("zod/v4/core").$strip
|
|
332
|
+
}, import("zod/v4/core").$strip>;
|
|
330
333
|
}, import("zod/v4/core").$strip>;
|
|
331
334
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
332
335
|
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
@@ -372,13 +375,14 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
|
|
|
372
375
|
name: import("zod").ZodString;
|
|
373
376
|
}, import("zod/v4/core").$strip>>>;
|
|
374
377
|
dataSource: import("zod").ZodObject<{
|
|
378
|
+
type: import("zod").ZodEnum<{
|
|
379
|
+
contentEngine: "contentEngine";
|
|
380
|
+
connector: "connector";
|
|
381
|
+
}>;
|
|
375
382
|
query: import("zod").ZodString;
|
|
376
|
-
search: import("zod").
|
|
377
|
-
type: import("zod").ZodLiteral<"local">;
|
|
378
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
379
|
-
type: import("zod").ZodLiteral<"external">;
|
|
383
|
+
search: import("zod").ZodObject<{
|
|
380
384
|
query: import("zod").ZodString;
|
|
381
|
-
}, import("zod/v4/core").$strip
|
|
385
|
+
}, import("zod/v4/core").$strip>;
|
|
382
386
|
}, import("zod/v4/core").$strip>;
|
|
383
387
|
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
384
388
|
type: import("zod").ZodLiteral<"async-select">;
|
|
@@ -101,13 +101,14 @@ export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
}, z.core.$strip>>>;
|
|
103
103
|
dataSource: z.ZodObject<{
|
|
104
|
+
type: z.ZodEnum<{
|
|
105
|
+
contentEngine: "contentEngine";
|
|
106
|
+
connector: "connector";
|
|
107
|
+
}>;
|
|
104
108
|
query: z.ZodString;
|
|
105
|
-
search: z.
|
|
106
|
-
type: z.ZodLiteral<"local">;
|
|
107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
-
type: z.ZodLiteral<"external">;
|
|
109
|
+
search: z.ZodObject<{
|
|
109
110
|
query: z.ZodString;
|
|
110
|
-
}, z.core.$strip
|
|
111
|
+
}, z.core.$strip>;
|
|
111
112
|
}, z.core.$strip>;
|
|
112
113
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
113
114
|
type: z.ZodLiteral<"async-multiselect">;
|
|
@@ -153,13 +154,14 @@ export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
153
154
|
name: z.ZodString;
|
|
154
155
|
}, z.core.$strip>>>;
|
|
155
156
|
dataSource: z.ZodObject<{
|
|
157
|
+
type: z.ZodEnum<{
|
|
158
|
+
contentEngine: "contentEngine";
|
|
159
|
+
connector: "connector";
|
|
160
|
+
}>;
|
|
156
161
|
query: z.ZodString;
|
|
157
|
-
search: z.
|
|
158
|
-
type: z.ZodLiteral<"local">;
|
|
159
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
-
type: z.ZodLiteral<"external">;
|
|
162
|
+
search: z.ZodObject<{
|
|
161
163
|
query: z.ZodString;
|
|
162
|
-
}, z.core.$strip
|
|
164
|
+
}, z.core.$strip>;
|
|
163
165
|
}, z.core.$strip>;
|
|
164
166
|
dependsOn: z.ZodOptional<z.ZodString>;
|
|
165
167
|
type: z.ZodLiteral<"async-select">;
|
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.20.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": "^10.3.0",
|
|
21
21
|
"@lokalise/content-conversion-api-schemas": "^1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|