@lokalise/connector-api-contracts 2.9.1 → 3.0.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.
|
@@ -3,7 +3,6 @@ export declare const itemListRequestQueryString: z.ZodObject<{
|
|
|
3
3
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4
4
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5
5
|
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
6
|
-
contentTypes: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
7
6
|
$filter: z.ZodOptional<z.ZodString>;
|
|
8
7
|
}, z.core.$strip>;
|
|
9
8
|
export type ItemListRequestQueryString = z.infer<typeof itemListRequestQueryString>;
|
|
@@ -52,7 +51,6 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
52
51
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53
52
|
cursor: z.ZodOptional<z.ZodString>;
|
|
54
53
|
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
55
|
-
contentTypes: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
56
54
|
$filter: z.ZodOptional<z.ZodString>;
|
|
57
55
|
}, z.core.$strip>, z.ZodObject<{
|
|
58
56
|
'ce-config': z.ZodString;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { paginatedResponseSchema } from '@lokalise/api-common';
|
|
2
2
|
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
3
|
-
import { toArrayPreprocessor } from '@lokalise/zod-extras';
|
|
4
3
|
import { z } from 'zod/v4';
|
|
5
4
|
import { MAX_TITLE_LENGTH } from "./cacheContracts.js";
|
|
6
5
|
import { COMMON_ERROR_RESPONSE_SCHEMA_UNION, CONNECTOR_REQUEST_HEADERS_SCHEMA, DEFAULT_LOCALE_SCHEMA, ITEM_IDENTIFIER_SCHEMA, RATE_LIMIT_RESPONSE_HEADERS_SCHEMA, } from "./commonSchemas.js";
|
|
@@ -24,15 +23,6 @@ export const itemListRequestQueryString = z.object({
|
|
|
24
23
|
* resolving it from third-party configuration, for more reliable locale matching.
|
|
25
24
|
*/
|
|
26
25
|
defaultLocale: DEFAULT_LOCALE_SCHEMA.optional(),
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `$filter=contentType in ('article', 'page')` instead.
|
|
29
|
-
*
|
|
30
|
-
* Domain content type to filter by, e.g. "newsletters", "campaigns", "emails".
|
|
31
|
-
* In case more than one value is provided, cursor is expected to keep track of
|
|
32
|
-
* what content type it is fetching now. If not set, all supported content types
|
|
33
|
-
* will be iterated through.
|
|
34
|
-
*/
|
|
35
|
-
contentTypes: z.preprocess(toArrayPreprocessor, z.array(z.string())).optional(),
|
|
36
26
|
/**
|
|
37
27
|
* OData $filter expression for filtering items.
|
|
38
28
|
* Parsed and validated by the connector adapter.
|
|
@@ -64,7 +54,7 @@ export const itemListRequestQueryString = z.object({
|
|
|
64
54
|
* $filter=parentGroup in ('folder-a', 'folder-b')
|
|
65
55
|
* ```
|
|
66
56
|
*
|
|
67
|
-
* Filter by content types
|
|
57
|
+
* Filter by content types:
|
|
68
58
|
* ```
|
|
69
59
|
* $filter=contentType in ('article', 'page')
|
|
70
60
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemListContracts.js","sourceRoot":"","sources":["../../src/contracts/itemListContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"itemListContracts.js","sourceRoot":"","sources":["../../src/contracts/itemListContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;A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