@lokalise/connector-api-contracts 1.7.1 → 1.8.1
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/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const itemListRequestQueryString: z.ZodObject<{
|
|
3
|
-
limit: z.ZodOptional<z.
|
|
3
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4
4
|
cursor: z.ZodOptional<z.ZodString>;
|
|
5
|
-
contentTypes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString
|
|
5
|
+
contentTypes: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString>>>;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export declare const itemListEntry: z.ZodObject<{
|
|
8
8
|
uniqueId: z.ZodString;
|
|
@@ -42,9 +42,9 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
42
42
|
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
45
|
-
limit: z.ZodOptional<z.
|
|
45
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
46
46
|
cursor: z.ZodOptional<z.ZodString>;
|
|
47
|
-
contentTypes: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString
|
|
47
|
+
contentTypes: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString>>>;
|
|
48
48
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
49
|
'ce-config': z.ZodString;
|
|
50
50
|
'ce-auth': z.ZodString;
|
|
@@ -9,7 +9,7 @@ export const itemListRequestQueryString = z.object({
|
|
|
9
9
|
* If not specified, connector-specific default will be used
|
|
10
10
|
* If specified value exceeds connector-specific default, the default value will be used instead
|
|
11
11
|
*/
|
|
12
|
-
limit: z.
|
|
12
|
+
limit: z.coerce.number().optional(),
|
|
13
13
|
/**
|
|
14
14
|
* Opaque connector-specific string that can be used to retrieve the next page of items.
|
|
15
15
|
* If not specified, the first page of items will be returned.
|
|
@@ -17,9 +17,9 @@ export const itemListRequestQueryString = z.object({
|
|
|
17
17
|
*/
|
|
18
18
|
cursor: z.string().optional(),
|
|
19
19
|
/**
|
|
20
|
-
* Domain content type to filter by, e. g. "newsletters", "campaigns", "emails". In case more than one value is provided, cursor is expected to keep track of what content type it is fetching now.
|
|
20
|
+
* Domain content type to filter by, e. g. "newsletters", "campaigns", "emails". In case more than one value is provided, cursor is expected to keep track of what content type it is fetching now. If not set, all supported content types will iterated through.
|
|
21
21
|
*/
|
|
22
|
-
contentTypes: z.preprocess(toArrayPreprocessor, z.array(z.string())),
|
|
22
|
+
contentTypes: z.preprocess(toArrayPreprocessor, z.array(z.string())).optional(),
|
|
23
23
|
});
|
|
24
24
|
export const itemListEntry = ITEM_IDENTIFIER_SCHEMA.extend({
|
|
25
25
|
fields: z.looseObject({}),
|
|
@@ -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,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD;;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