@lokalise/content-type-app-engine-contracts 5.22.0 → 5.24.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.
@@ -289,6 +289,23 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
289
289
  enabled: z.ZodBoolean;
290
290
  defaultValue: z.ZodOptional<z.ZodBoolean>;
291
291
  }, z.core.$strip>>;
292
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
293
+ id: z.ZodString;
294
+ name: z.ZodString;
295
+ type: z.ZodLiteral<"async-select">;
296
+ dependsOn: z.ZodOptional<z.ZodString>;
297
+ dataSource: z.ZodObject<{
298
+ type: z.ZodEnum<{
299
+ contentEngine: "contentEngine";
300
+ connector: "connector";
301
+ }>;
302
+ query: z.ZodString;
303
+ search: z.ZodOptional<z.ZodObject<{
304
+ query: z.ZodString;
305
+ }, z.core.$strip>>;
306
+ }, z.core.$strip>;
307
+ defaultValue: z.ZodOptional<z.ZodString>;
308
+ }, z.core.$strip>>>;
292
309
  }, z.core.$strip>>;
293
310
  }, z.core.$strip>;
294
311
  }, z.core.$strip>, z.ZodObject<{
@@ -520,6 +537,23 @@ export declare const getConnectorManifest: import("@lokalise/api-contracts").Get
520
537
  enabled: z.ZodBoolean;
521
538
  defaultValue: z.ZodOptional<z.ZodBoolean>;
522
539
  }, z.core.$strip>>;
540
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
+ id: z.ZodString;
542
+ name: z.ZodString;
543
+ type: z.ZodLiteral<"async-select">;
544
+ dependsOn: z.ZodOptional<z.ZodString>;
545
+ dataSource: z.ZodObject<{
546
+ type: z.ZodEnum<{
547
+ contentEngine: "contentEngine";
548
+ connector: "connector";
549
+ }>;
550
+ query: z.ZodString;
551
+ search: z.ZodOptional<z.ZodObject<{
552
+ query: z.ZodString;
553
+ }, z.core.$strip>>;
554
+ }, z.core.$strip>;
555
+ defaultValue: z.ZodOptional<z.ZodString>;
556
+ }, z.core.$strip>>>;
523
557
  }, z.core.$strip>>;
524
558
  }, z.core.$strip>;
525
559
  }, z.core.$strip>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod/v4';
2
- export { type AsyncMultiselectFilter, type AsyncSelectFilter, type Authentication, type AuthField, type Capability, type DaterangeFilter, type DatetimeColumn, type Filter as ManifestFilter, ListLocationEnum, type ListLocationEnumType, type Manifest, type ManifestColumn, type ManifestFilterOption, type MultiselectFilter, type PasswordAuthField, type PrimaryColumn, type SearchFilter, type SelectAuthField, type SelectEntry, type SelectFilter, type TextColumn, type UrlAuthField, } from '@lokalise/connector-api-contracts';
2
+ export { type AsyncMultiselectFilter, type AsyncSelectFilter, type Authentication, type AuthField, type Capability, type DaterangeFilter, type DatetimeColumn, type Filter as ManifestFilter, type ItemGroupSetup, type ItemGroupSetupField, type ItemGroupSetupFieldDataSource, ListLocationEnum, type ListLocationEnumType, type Manifest, type ManifestColumn, type ManifestFilterOption, type MultiselectFilter, type PasswordAuthField, type PrimaryColumn, type SearchFilter, type SelectAuthField, type SelectEntry, type SelectFilter, type TextColumn, type UrlAuthField, } from '@lokalise/connector-api-contracts';
3
3
  export declare const CONNECTOR_ID_PARAM: z.ZodString;
4
4
  export declare const CONNECTOR_PLATFORM: z.ZodEnum<{
5
5
  expert: "expert";
@@ -259,6 +259,23 @@ export declare const GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
259
259
  enabled: z.ZodBoolean;
260
260
  defaultValue: z.ZodOptional<z.ZodBoolean>;
261
261
  }, z.core.$strip>>;
262
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
263
+ id: z.ZodString;
264
+ name: z.ZodString;
265
+ type: z.ZodLiteral<"async-select">;
266
+ dependsOn: z.ZodOptional<z.ZodString>;
267
+ dataSource: z.ZodObject<{
268
+ type: z.ZodEnum<{
269
+ contentEngine: "contentEngine";
270
+ connector: "connector";
271
+ }>;
272
+ query: z.ZodString;
273
+ search: z.ZodOptional<z.ZodObject<{
274
+ query: z.ZodString;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>;
277
+ defaultValue: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strip>>>;
262
279
  }, z.core.$strip>>;
263
280
  }, z.core.$strip>;
264
281
  }, z.core.$strip>;
@@ -1 +1 @@
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,OAAO,EASL,gBAAgB,GAcjB,MAAM,mCAAmC,CAAA;AAE1C,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,4C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M,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,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,QAAQ,EAAE,qBAAqB;CAChC,CAAC,CAAA"}
@@ -292,6 +292,23 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
292
292
  enabled: z.ZodBoolean;
293
293
  defaultValue: z.ZodOptional<z.ZodBoolean>;
294
294
  }, z.core.$strip>>;
295
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
296
+ id: z.ZodString;
297
+ name: z.ZodString;
298
+ type: z.ZodLiteral<"async-select">;
299
+ dependsOn: z.ZodOptional<z.ZodString>;
300
+ dataSource: z.ZodObject<{
301
+ type: z.ZodEnum<{
302
+ contentEngine: "contentEngine";
303
+ connector: "connector";
304
+ }>;
305
+ query: z.ZodString;
306
+ search: z.ZodOptional<z.ZodObject<{
307
+ query: z.ZodString;
308
+ }, z.core.$strip>>;
309
+ }, z.core.$strip>;
310
+ defaultValue: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strip>>>;
295
312
  }, z.core.$strip>;
296
313
  }, z.core.$strip>, z.ZodObject<{
297
314
  integrationId: z.ZodGUID;
@@ -520,6 +537,23 @@ export declare const getIntegrationManifestContract: import("@lokalise/api-contr
520
537
  enabled: z.ZodBoolean;
521
538
  defaultValue: z.ZodOptional<z.ZodBoolean>;
522
539
  }, z.core.$strip>>;
540
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
+ id: z.ZodString;
542
+ name: z.ZodString;
543
+ type: z.ZodLiteral<"async-select">;
544
+ dependsOn: z.ZodOptional<z.ZodString>;
545
+ dataSource: z.ZodObject<{
546
+ type: z.ZodEnum<{
547
+ contentEngine: "contentEngine";
548
+ connector: "connector";
549
+ }>;
550
+ query: z.ZodString;
551
+ search: z.ZodOptional<z.ZodObject<{
552
+ query: z.ZodString;
553
+ }, z.core.$strip>>;
554
+ }, z.core.$strip>;
555
+ defaultValue: z.ZodOptional<z.ZodString>;
556
+ }, z.core.$strip>>>;
523
557
  }, z.core.$strip>;
524
558
  }, z.core.$strip>;
525
559
  401: z.ZodObject<{
@@ -295,6 +295,23 @@ export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
295
295
  enabled: z.ZodBoolean;
296
296
  defaultValue: z.ZodOptional<z.ZodBoolean>;
297
297
  }, z.core.$strip>>;
298
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ id: z.ZodString;
300
+ name: z.ZodString;
301
+ type: z.ZodLiteral<"async-select">;
302
+ dependsOn: z.ZodOptional<z.ZodString>;
303
+ dataSource: z.ZodObject<{
304
+ type: z.ZodEnum<{
305
+ contentEngine: "contentEngine";
306
+ connector: "connector";
307
+ }>;
308
+ query: z.ZodString;
309
+ search: z.ZodOptional<z.ZodObject<{
310
+ query: z.ZodString;
311
+ }, z.core.$strip>>;
312
+ }, z.core.$strip>;
313
+ defaultValue: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>>>;
298
315
  }, z.core.$strip>;
299
316
  }, z.core.$strip>;
300
317
  export type GetIntegrationManifestResponse = z.infer<typeof GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA>;
@@ -12,9 +12,13 @@
12
12
  * **Path Parameters:**
13
13
  * - `integrationId`: UUID of the integration to connect
14
14
  *
15
- * **Body:**
15
+ * **Body** (discriminated union on `type`, `projectId` required in both):
16
16
  * - `projectId`: UUID of the target Lokalise project
17
- * - `selectedItems`: Array of item uniqueIds from the itemList endpoint
17
+ * - Selection (`type: 'selection'`, or omitted for backwards compatibility):
18
+ * - `selectedItems`: Array of item uniqueIds from the itemList endpoint
19
+ * - Filters (`type: 'filters'`):
20
+ * - `$filter`: OData filter expression (same language as the itemList
21
+ * endpoint); imports every item matching the expression
18
22
  *
19
23
  * ## Response
20
24
  *
@@ -31,11 +35,17 @@
31
35
  * - 404: Integration or Project not found
32
36
  * - 409: IntegrationProject already exists for this combination
33
37
  */
34
- export declare const postConnectIntegrationProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
38
+ export declare const postConnectIntegrationProjectContract: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
39
+ type: import("zod").ZodOptional<import("zod").ZodLiteral<"selection">>;
35
40
  projectId: import("zod").ZodGUID;
36
41
  selectedItems: import("zod").ZodArray<import("zod").ZodString>;
37
42
  includeReferencedEntries: import("zod").ZodOptional<import("zod").ZodBoolean>;
38
43
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
44
+ type: import("zod").ZodLiteral<"filters">;
45
+ projectId: import("zod").ZodGUID;
46
+ $filter: import("zod").ZodString;
47
+ includeReferencedEntries: import("zod").ZodOptional<import("zod").ZodBoolean>;
48
+ }, import("zod/v4/core").$strip>], "type">, import("zod").ZodObject<{
39
49
  jobId: import("zod").ZodString;
40
50
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
41
51
  integrationId: import("zod").ZodGUID;
@@ -15,9 +15,13 @@ import { INTEGRATION_PROJECT_ALREADY_EXISTS_ERROR_RESPONSE_SCHEMA, POST_CONNECT_
15
15
  * **Path Parameters:**
16
16
  * - `integrationId`: UUID of the integration to connect
17
17
  *
18
- * **Body:**
18
+ * **Body** (discriminated union on `type`, `projectId` required in both):
19
19
  * - `projectId`: UUID of the target Lokalise project
20
- * - `selectedItems`: Array of item uniqueIds from the itemList endpoint
20
+ * - Selection (`type: 'selection'`, or omitted for backwards compatibility):
21
+ * - `selectedItems`: Array of item uniqueIds from the itemList endpoint
22
+ * - Filters (`type: 'filters'`):
23
+ * - `$filter`: OData filter expression (same language as the itemList
24
+ * endpoint); imports every item matching the expression
21
25
  *
22
26
  * ## Response
23
27
  *
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,oBAAoB,MAAM,CAAC,aAAa,aAAa,MAAM,CAAC,SAAS,iBAAiB;IACxF,WAAW,EAAE,iEAAiE;IAC9E,uBAAuB,EAAE,sCAAsC;IAC/D,iBAAiB,EAAE,+BAA+B;IAClD,yBAAyB,EAAE,mCAAmC;IAC9D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,mCAAmC;QACxC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACrE,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,yCAAyC;IAC7D,WAAW,EAAE,uEAAuE;IACpF,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;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
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,2BAA2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+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,iBAAiB,CAAC;IACrE,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,yCAAyC;IAC7D,WAAW,EAAE,uEAAuE;IACpF,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;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
@@ -7,13 +7,50 @@ export declare const POST_CONNECT_INTEGRATION_PROJECT_PATH_PARAMS_SCHEMA: z.ZodO
7
7
  }, z.core.$strip>;
8
8
  export type PostConnectIntegrationProjectPathParams = z.infer<typeof POST_CONNECT_INTEGRATION_PROJECT_PATH_PARAMS_SCHEMA>;
9
9
  /**
10
- * Request body for connecting an integration with a project
10
+ * Request body for connecting an integration and importing an explicitly
11
+ * selected list of items.
12
+ *
13
+ * `type` is optional for backwards compatibility: bodies sent before the
14
+ * filter-based variant existed carry no `type` and are treated as a selection.
11
15
  */
12
- export declare const POST_CONNECT_INTEGRATION_PROJECT_BODY_SCHEMA: z.ZodObject<{
16
+ export declare const POST_CONNECT_INTEGRATION_PROJECT_SELECTION_BODY_SCHEMA: z.ZodObject<{
17
+ type: z.ZodOptional<z.ZodLiteral<"selection">>;
13
18
  projectId: z.ZodGUID;
14
19
  selectedItems: z.ZodArray<z.ZodString>;
15
20
  includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
16
21
  }, z.core.$strip>;
22
+ export type PostConnectIntegrationProjectSelectionBody = z.infer<typeof POST_CONNECT_INTEGRATION_PROJECT_SELECTION_BODY_SCHEMA>;
23
+ /**
24
+ * Request body for connecting an integration and importing every item matching
25
+ * an OData `$filter` expression. Used by "select all items matching filters"
26
+ * flows, where enumerating item ids client-side is impractical.
27
+ */
28
+ export declare const POST_CONNECT_INTEGRATION_PROJECT_FILTERS_BODY_SCHEMA: z.ZodObject<{
29
+ type: z.ZodLiteral<"filters">;
30
+ projectId: z.ZodGUID;
31
+ $filter: z.ZodString;
32
+ includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
33
+ }, z.core.$strip>;
34
+ export type PostConnectIntegrationProjectFiltersBody = z.infer<typeof POST_CONNECT_INTEGRATION_PROJECT_FILTERS_BODY_SCHEMA>;
35
+ /**
36
+ * Request body for connecting an integration with a project.
37
+ *
38
+ * Discriminated union on `type`:
39
+ * - `'selection'` (or omitted, for backwards compatibility): import the given
40
+ * `selectedItems`
41
+ * - `'filters'`: import everything matching the given `$filter` expression
42
+ */
43
+ export declare const POST_CONNECT_INTEGRATION_PROJECT_BODY_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ type: z.ZodOptional<z.ZodLiteral<"selection">>;
45
+ projectId: z.ZodGUID;
46
+ selectedItems: z.ZodArray<z.ZodString>;
47
+ includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ type: z.ZodLiteral<"filters">;
50
+ projectId: z.ZodGUID;
51
+ $filter: z.ZodString;
52
+ includeReferencedEntries: z.ZodOptional<z.ZodBoolean>;
53
+ }, z.core.$strip>], "type">;
17
54
  export type PostConnectIntegrationProjectBody = z.infer<typeof POST_CONNECT_INTEGRATION_PROJECT_BODY_SCHEMA>;
18
55
  /**
19
56
  * Success response after connecting integration with project
@@ -57,9 +94,8 @@ export declare const POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA: z.ZodObject<{
57
94
  export type PostTriggerImportSelectionBody = z.infer<typeof POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA>;
58
95
  /**
59
96
  * Request body for triggering import of every item matching an OData `$filter`
60
- * expression — the same expression language the itemList endpoint accepts.
61
- * Used by "select all items matching filters" flows, where enumerating item
62
- * ids client-side is impractical.
97
+ * expression. Used by "select all items matching filters" flows, where
98
+ * enumerating item ids client-side is impractical.
63
99
  */
64
100
  export declare const POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA: z.ZodObject<{
65
101
  type: z.ZodLiteral<"filters">;
@@ -10,6 +10,21 @@ const INCLUDE_REFERENCED_ENTRIES_FIELD = z
10
10
  .boolean()
11
11
  .optional()
12
12
  .describe('When true, referenced (linked/nested) entries are pulled in with the selected items. Absent keeps connector-side legacy behaviour.');
13
+ /**
14
+ * Array of item uniqueIds (file IDs) selected from the itemList endpoint.
15
+ * These are the files/items that will be processed in the background import job.
16
+ */
17
+ const SELECTED_ITEMS_FIELD = z
18
+ .array(z.string().min(1))
19
+ .min(1, { message: 'At least one item must be selected' });
20
+ /**
21
+ * OData filter expression selecting the items to import — the same expression
22
+ * language the itemList endpoint accepts.
23
+ * Required: importing every item must be requested explicitly via a matching
24
+ * expression, so an accidentally omitted filter cannot silently import the
25
+ * whole space.
26
+ */
27
+ const IMPORT_FILTER_FIELD = z.string().min(1, { message: 'A filter expression must be provided' });
13
28
  // ============================================================================
14
29
  // Connect Integration Project Schemas
15
30
  // POST /v1/integrations/{integrationId}/projects/actions/connect
@@ -24,22 +39,47 @@ export const POST_CONNECT_INTEGRATION_PROJECT_PATH_PARAMS_SCHEMA = z.object({
24
39
  integrationId: z.guid(),
25
40
  });
26
41
  /**
27
- * Request body for connecting an integration with a project
42
+ * Request body for connecting an integration and importing an explicitly
43
+ * selected list of items.
44
+ *
45
+ * `type` is optional for backwards compatibility: bodies sent before the
46
+ * filter-based variant existed carry no `type` and are treated as a selection.
28
47
  */
29
- export const POST_CONNECT_INTEGRATION_PROJECT_BODY_SCHEMA = z.object({
48
+ export const POST_CONNECT_INTEGRATION_PROJECT_SELECTION_BODY_SCHEMA = z.object({
49
+ type: z.literal('selection').optional(),
30
50
  /**
31
51
  * The target Lokalise project UUID to connect with the integration
32
52
  */
33
53
  projectId: z.guid(),
54
+ selectedItems: SELECTED_ITEMS_FIELD,
55
+ includeReferencedEntries: INCLUDE_REFERENCED_ENTRIES_FIELD,
56
+ });
57
+ /**
58
+ * Request body for connecting an integration and importing every item matching
59
+ * an OData `$filter` expression. Used by "select all items matching filters"
60
+ * flows, where enumerating item ids client-side is impractical.
61
+ */
62
+ export const POST_CONNECT_INTEGRATION_PROJECT_FILTERS_BODY_SCHEMA = z.object({
63
+ type: z.literal('filters'),
34
64
  /**
35
- * Array of item uniqueIds selected from the itemList endpoint
36
- * These are the files/items that will be processed in the background import job
65
+ * The target Lokalise project UUID to connect with the integration
37
66
  */
38
- selectedItems: z
39
- .array(z.string().min(1))
40
- .min(1, { message: 'At least one item must be selected' }),
67
+ projectId: z.guid(),
68
+ $filter: IMPORT_FILTER_FIELD,
41
69
  includeReferencedEntries: INCLUDE_REFERENCED_ENTRIES_FIELD,
42
70
  });
71
+ /**
72
+ * Request body for connecting an integration with a project.
73
+ *
74
+ * Discriminated union on `type`:
75
+ * - `'selection'` (or omitted, for backwards compatibility): import the given
76
+ * `selectedItems`
77
+ * - `'filters'`: import everything matching the given `$filter` expression
78
+ */
79
+ export const POST_CONNECT_INTEGRATION_PROJECT_BODY_SCHEMA = z.discriminatedUnion('type', [
80
+ POST_CONNECT_INTEGRATION_PROJECT_SELECTION_BODY_SCHEMA,
81
+ POST_CONNECT_INTEGRATION_PROJECT_FILTERS_BODY_SCHEMA,
82
+ ]);
43
83
  /**
44
84
  * Success response after connecting integration with project
45
85
  */
@@ -84,30 +124,17 @@ export const POST_TRIGGER_IMPORT_PATH_PARAMS_SCHEMA = z.object({
84
124
  */
85
125
  export const POST_TRIGGER_IMPORT_SELECTION_BODY_SCHEMA = z.object({
86
126
  type: z.literal('selection').optional(),
87
- /**
88
- * Array of item uniqueIds (file IDs) selected from the itemList endpoint.
89
- * These are the files/items that will be processed in the background import job.
90
- */
91
- selectedItems: z
92
- .array(z.string().min(1))
93
- .min(1, { message: 'At least one item must be selected' }),
127
+ selectedItems: SELECTED_ITEMS_FIELD,
94
128
  includeReferencedEntries: INCLUDE_REFERENCED_ENTRIES_FIELD,
95
129
  });
96
130
  /**
97
131
  * Request body for triggering import of every item matching an OData `$filter`
98
- * expression — the same expression language the itemList endpoint accepts.
99
- * Used by "select all items matching filters" flows, where enumerating item
100
- * ids client-side is impractical.
132
+ * expression. Used by "select all items matching filters" flows, where
133
+ * enumerating item ids client-side is impractical.
101
134
  */
102
135
  export const POST_TRIGGER_IMPORT_FILTERS_BODY_SCHEMA = z.object({
103
136
  type: z.literal('filters'),
104
- /**
105
- * OData filter expression selecting the items to import.
106
- * Required: importing every item must be requested explicitly via a
107
- * matching expression, so an accidentally omitted filter cannot silently
108
- * import the whole space.
109
- */
110
- $filter: z.string().min(1, { message: 'A filter expression must be provided' }),
137
+ $filter: IMPORT_FILTER_FIELD,
111
138
  includeReferencedEntries: INCLUDE_REFERENCED_ENTRIES_FIELD,
112
139
  });
113
140
  /**
@@ -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,4BAA4B,CAAA;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAA;AAE5E;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,CAAC;KACvC,OAAO,EAAE;KACT,QAAQ,EAAE;KACV,QAAQ,CACP,oIAAoI,CACrI,CAAA;AAEH,+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;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AC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,qBAAqB,CAAC;CAChE,CAAC,CAAA;AAMF,sEAAsE;AACtE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,6BAA6B;IAChC,sBAAsB,EAAE,0BAA0B;CAC1C,CAAA;AAMV,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACZ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,KAAK,CACX,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;QACnB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACrE,CAAC,CACH;CACF,CAAC,CAAA"}
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;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,CAAC;KACvC,OAAO,EAAE;KACT,QAAQ,EAAE;KACV,QAAQ,CACP,oIAAoI,CACrI,CAAA;AAEH;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC;KAC3B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CA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CAAC,CACH;CACF,CAAC,CAAA"}
@@ -220,6 +220,23 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
220
220
  enabled: import("zod").ZodBoolean;
221
221
  defaultValue: import("zod").ZodOptional<import("zod").ZodBoolean>;
222
222
  }, import("zod/v4/core").$strip>>;
223
+ itemGroupSetup: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
224
+ id: import("zod").ZodString;
225
+ name: import("zod").ZodString;
226
+ type: import("zod").ZodLiteral<"async-select">;
227
+ dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
228
+ dataSource: import("zod").ZodObject<{
229
+ type: import("zod").ZodEnum<{
230
+ contentEngine: "contentEngine";
231
+ connector: "connector";
232
+ }>;
233
+ query: import("zod").ZodString;
234
+ search: import("zod").ZodOptional<import("zod").ZodObject<{
235
+ query: import("zod").ZodString;
236
+ }, import("zod/v4/core").$strip>>;
237
+ }, import("zod/v4/core").$strip>;
238
+ defaultValue: import("zod").ZodOptional<import("zod").ZodString>;
239
+ }, import("zod/v4/core").$strip>>>;
223
240
  }, import("zod/v4/core").$strip>;
224
241
  }, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
225
242
  authorization: import("zod").ZodOptional<import("zod").ZodString>;
@@ -446,6 +463,23 @@ export declare const getLinkManifest: import("@lokalise/api-contracts").GetRoute
446
463
  enabled: import("zod").ZodBoolean;
447
464
  defaultValue: import("zod").ZodOptional<import("zod").ZodBoolean>;
448
465
  }, import("zod/v4/core").$strip>>;
466
+ itemGroupSetup: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
467
+ id: import("zod").ZodString;
468
+ name: import("zod").ZodString;
469
+ type: import("zod").ZodLiteral<"async-select">;
470
+ dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
471
+ dataSource: import("zod").ZodObject<{
472
+ type: import("zod").ZodEnum<{
473
+ contentEngine: "contentEngine";
474
+ connector: "connector";
475
+ }>;
476
+ query: import("zod").ZodString;
477
+ search: import("zod").ZodOptional<import("zod").ZodObject<{
478
+ query: import("zod").ZodString;
479
+ }, import("zod/v4/core").$strip>>;
480
+ }, import("zod/v4/core").$strip>;
481
+ defaultValue: import("zod").ZodOptional<import("zod").ZodString>;
482
+ }, import("zod/v4/core").$strip>>>;
449
483
  }, import("zod/v4/core").$strip>;
450
484
  }, import("zod/v4/core").$strip>;
451
485
  401: import("zod").ZodObject<{
@@ -221,6 +221,23 @@ export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
221
221
  enabled: z.ZodBoolean;
222
222
  defaultValue: z.ZodOptional<z.ZodBoolean>;
223
223
  }, z.core.$strip>>;
224
+ itemGroupSetup: z.ZodOptional<z.ZodArray<z.ZodObject<{
225
+ id: z.ZodString;
226
+ name: z.ZodString;
227
+ type: z.ZodLiteral<"async-select">;
228
+ dependsOn: z.ZodOptional<z.ZodString>;
229
+ dataSource: z.ZodObject<{
230
+ type: z.ZodEnum<{
231
+ contentEngine: "contentEngine";
232
+ connector: "connector";
233
+ }>;
234
+ query: z.ZodString;
235
+ search: z.ZodOptional<z.ZodObject<{
236
+ query: z.ZodString;
237
+ }, z.core.$strip>>;
238
+ }, z.core.$strip>;
239
+ defaultValue: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strip>>>;
224
241
  }, z.core.$strip>;
225
242
  }, z.core.$strip>;
226
243
  export type GetLinkManifestResponse = z.infer<typeof GET_LINK_MANIFEST_RESPONSE_SCHEMA>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/content-type-app-engine-contracts",
3
- "version": "5.22.0",
3
+ "version": "5.24.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": "^10.4.0",
20
+ "@lokalise/connector-api-contracts": "^10.5.0",
21
21
  "@lokalise/content-conversion-api-schemas": "^1.1.0"
22
22
  },
23
23
  "devDependencies": {