@lokalise/translation-storage-api-schemas 19.0.0 → 19.1.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/dist/api/contracts/content/get-items.d.ts +24 -0
- package/dist/api/contracts/content/get-items.d.ts.map +1 -1
- package/dist/api/contracts/content/post-items-actions-get-filtered.d.ts +24 -0
- package/dist/api/contracts/content/post-items-actions-get-filtered.d.ts.map +1 -1
- package/dist/api/objects/export.d.ts +12 -0
- package/dist/api/objects/export.d.ts.map +1 -1
- package/dist/api/objects/item.d.ts +42 -0
- package/dist/api/objects/item.d.ts.map +1 -1
- package/dist/api/objects/item.js +16 -0
- package/dist/api/objects/item.js.map +1 -1
- package/package.json +4 -4
|
@@ -39,6 +39,18 @@ export declare const GET_ITEMS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
39
39
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
40
40
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
41
41
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
42
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
url: z.ZodURL;
|
|
44
|
+
siteId: z.ZodString;
|
|
45
|
+
siteName: z.ZodString;
|
|
46
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
47
|
+
label: z.ZodString;
|
|
48
|
+
kind: z.ZodEnum<{
|
|
49
|
+
collection_detail: "collection_detail";
|
|
50
|
+
collection_index: "collection_index";
|
|
51
|
+
page: "page";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
42
54
|
}, z.core.$strip>;
|
|
43
55
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
56
|
id: z.ZodGUID;
|
|
@@ -130,6 +142,18 @@ export declare const getItemsContract: Omit<{
|
|
|
130
142
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
131
143
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
132
144
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
145
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
146
|
+
url: z.ZodURL;
|
|
147
|
+
siteId: z.ZodString;
|
|
148
|
+
siteName: z.ZodString;
|
|
149
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
150
|
+
label: z.ZodString;
|
|
151
|
+
kind: z.ZodEnum<{
|
|
152
|
+
collection_detail: "collection_detail";
|
|
153
|
+
collection_index: "collection_index";
|
|
154
|
+
page: "page";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strip>>;
|
|
133
157
|
}, z.core.$strip>;
|
|
134
158
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
135
159
|
id: z.ZodGUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-items.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-items.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAW1B,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAGnF,eAAO,MAAM,8BAA8B;;;;;iBAiBzC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAEtF,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"get-items.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-items.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAW1B,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAGnF,eAAO,MAAM,8BAA8B;;;;;iBAiBzC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACjF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAEtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGpC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAExE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;QASf,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjC,CAAA"}
|
|
@@ -39,6 +39,18 @@ declare const POST_GET_FILTERED_ITEMS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
39
39
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
40
40
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
41
41
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
42
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
url: z.ZodURL;
|
|
44
|
+
siteId: z.ZodString;
|
|
45
|
+
siteName: z.ZodString;
|
|
46
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
47
|
+
label: z.ZodString;
|
|
48
|
+
kind: z.ZodEnum<{
|
|
49
|
+
collection_detail: "collection_detail";
|
|
50
|
+
collection_index: "collection_index";
|
|
51
|
+
page: "page";
|
|
52
|
+
}>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
42
54
|
}, z.core.$strip>;
|
|
43
55
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
56
|
id: z.ZodGUID;
|
|
@@ -129,6 +141,18 @@ export declare const postGetFilteredItemsContract: Omit<{
|
|
|
129
141
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
130
142
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
131
143
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
144
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
url: z.ZodURL;
|
|
146
|
+
siteId: z.ZodString;
|
|
147
|
+
siteName: z.ZodString;
|
|
148
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
149
|
+
label: z.ZodString;
|
|
150
|
+
kind: z.ZodEnum<{
|
|
151
|
+
collection_detail: "collection_detail";
|
|
152
|
+
collection_index: "collection_index";
|
|
153
|
+
page: "page";
|
|
154
|
+
}>;
|
|
155
|
+
}, z.core.$strip>>;
|
|
132
156
|
}, z.core.$strip>;
|
|
133
157
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
134
158
|
id: z.ZodGUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-items-actions-get-filtered.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/post-items-actions-get-filtered.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,QAAA,MAAM,6CAA6C;;iBAAkC,CAAA;AACrF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,6CAA6C,CACrD,CAAA;AAED,eAAO,MAAM,8BAA8B,OAAO,CAAA;AAClD,QAAA,MAAM,2CAA2C;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,2CAA2C,CACnD,CAAA;AACD,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,2CAA2C,CACnD,CAAA;AAED,QAAA,MAAM,uCAAuC
|
|
1
|
+
{"version":3,"file":"post-items-actions-get-filtered.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/post-items-actions-get-filtered.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,QAAA,MAAM,6CAA6C;;iBAAkC,CAAA;AACrF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,6CAA6C,CACrD,CAAA;AAED,eAAO,MAAM,8BAA8B,OAAO,CAAA;AAClD,QAAA,MAAM,2CAA2C;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,2CAA2C,CACnD,CAAA;AACD,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,2CAA2C,CACnD,CAAA;AAED,QAAA,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAA;AACzE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAA;AAElG,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcvC,CAAA"}
|
|
@@ -109,6 +109,18 @@ export declare const EXPORTABLE_ITEM: z.ZodObject<{
|
|
|
109
109
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
110
110
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
111
111
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
112
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
url: z.ZodURL;
|
|
114
|
+
siteId: z.ZodString;
|
|
115
|
+
siteName: z.ZodString;
|
|
116
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
117
|
+
label: z.ZodString;
|
|
118
|
+
kind: z.ZodEnum<{
|
|
119
|
+
collection_detail: "collection_detail";
|
|
120
|
+
collection_index: "collection_index";
|
|
121
|
+
page: "page";
|
|
122
|
+
}>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
112
124
|
}, z.core.$strip>;
|
|
113
125
|
file: z.ZodNullable<z.ZodObject<{
|
|
114
126
|
id: z.ZodGUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/api/objects/export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,eAAO,MAAM,oBAAoB;aAC/B,OAAO,EAAE,SAAS;CACV,CAAA;AACV,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;iBAMpC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEzE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKtC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE5E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAElF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../src/api/objects/export.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,eAAO,MAAM,oBAAoB;aAC/B,OAAO,EAAE,SAAS;CACV,CAAA;AACV,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;iBAMpC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEzE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKtC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE5E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAElF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW1B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
|
@@ -7,6 +7,24 @@ export declare const ItemStatusEnum: {
|
|
|
7
7
|
readonly DELETED: 'DELETED';
|
|
8
8
|
};
|
|
9
9
|
export type ItemStatus = ObjectValues<typeof ItemStatusEnum>;
|
|
10
|
+
/**
|
|
11
|
+
* Mirrors `ITEM_PREVIEW_METADATA_SCHEMA` in `@lokalise/connector-api-contracts`, the
|
|
12
|
+
* shape a connector attaches to a translated item. Kept loose here: the preview
|
|
13
|
+
* proxy re-validates every field it acts on (https origins and all).
|
|
14
|
+
*/
|
|
15
|
+
export declare const ITEM_PREVIEW_METADATA_SCHEMA: z.ZodObject<{
|
|
16
|
+
url: z.ZodURL;
|
|
17
|
+
siteId: z.ZodString;
|
|
18
|
+
siteName: z.ZodString;
|
|
19
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
20
|
+
label: z.ZodString;
|
|
21
|
+
kind: z.ZodEnum<{
|
|
22
|
+
collection_detail: "collection_detail";
|
|
23
|
+
collection_index: "collection_index";
|
|
24
|
+
page: "page";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type ItemPreviewMetadata = z.infer<typeof ITEM_PREVIEW_METADATA_SCHEMA>;
|
|
10
28
|
export declare const ITEM_METADATA_SCHEMA: z.ZodObject<{
|
|
11
29
|
importItemId: z.ZodOptional<z.ZodGUID>;
|
|
12
30
|
originalContentUnitType: z.ZodOptional<z.ZodString>;
|
|
@@ -15,6 +33,18 @@ export declare const ITEM_METADATA_SCHEMA: z.ZodObject<{
|
|
|
15
33
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
16
34
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
17
35
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
36
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
url: z.ZodURL;
|
|
38
|
+
siteId: z.ZodString;
|
|
39
|
+
siteName: z.ZodString;
|
|
40
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
collection_detail: "collection_detail";
|
|
44
|
+
collection_index: "collection_index";
|
|
45
|
+
page: "page";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
18
48
|
}, z.core.$strip>;
|
|
19
49
|
export type ItemMetadata = z.infer<typeof ITEM_METADATA_SCHEMA>;
|
|
20
50
|
export declare const FILE_DETAILS_SCHEMA: z.ZodObject<{
|
|
@@ -62,6 +92,18 @@ export declare const ITEM_SCHEMA: z.ZodObject<{
|
|
|
62
92
|
sourceContentKindLabel: z.ZodOptional<z.ZodString>;
|
|
63
93
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
64
94
|
sourceSentToIntegrationAt: z.ZodOptional<z.ZodString>;
|
|
95
|
+
preview: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
url: z.ZodURL;
|
|
97
|
+
siteId: z.ZodString;
|
|
98
|
+
siteName: z.ZodString;
|
|
99
|
+
assetOrigins: z.ZodArray<z.ZodString>;
|
|
100
|
+
label: z.ZodString;
|
|
101
|
+
kind: z.ZodEnum<{
|
|
102
|
+
collection_detail: "collection_detail";
|
|
103
|
+
collection_index: "collection_index";
|
|
104
|
+
page: "page";
|
|
105
|
+
}>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
65
107
|
}, z.core.$strip>;
|
|
66
108
|
file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
109
|
id: z.ZodGUID;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/api/objects/item.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,eAAO,MAAM,cAAc;aACzB,SAAS,EAAE,WAAW;aACtB,QAAQ,EAAE,UAAU;aACpB,aAAa,EAAE,eAAe;aAC9B,OAAO,EAAE,SAAS;CACV,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/api/objects/item.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAA;AAClF,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,eAAO,MAAM,cAAc;aACzB,SAAS,EAAE,WAAW;aACtB,QAAQ,EAAE,UAAU;aACpB,aAAa,EAAE,eAAe;aAC9B,OAAO,EAAE,SAAS;CACV,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA;AAE5D;;;;GAIG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;iBASvC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAG9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;iBA0B/B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE/D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;iBAK9B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE7D,eAAO,MAAM,WAAW;;;;;;;;4BA9DX,WAAW;2BACZ,UAAU;gCACL,eAAe;0BACrB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6ElB,CAAA;AACF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
package/dist/api/objects/item.js
CHANGED
|
@@ -9,6 +9,21 @@ export const ItemStatusEnum = {
|
|
|
9
9
|
IMPORT_FAILED: 'IMPORT_FAILED',
|
|
10
10
|
DELETED: 'DELETED',
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Mirrors `ITEM_PREVIEW_METADATA_SCHEMA` in `@lokalise/connector-api-contracts`, the
|
|
14
|
+
* shape a connector attaches to a translated item. Kept loose here: the preview
|
|
15
|
+
* proxy re-validates every field it acts on (https origins and all).
|
|
16
|
+
*/
|
|
17
|
+
export const ITEM_PREVIEW_METADATA_SCHEMA = z.object({
|
|
18
|
+
url: z.url().describe('Absolute URL of the page that renders the item on the source site'),
|
|
19
|
+
siteId: z.string().min(1).describe('Source-system site identifier'),
|
|
20
|
+
siteName: z.string().describe('Source-system site display name'),
|
|
21
|
+
assetOrigins: z
|
|
22
|
+
.array(z.string())
|
|
23
|
+
.describe('Origins the rendered page loads stylesheets, fonts and images from'),
|
|
24
|
+
label: z.string().describe('Page title to show for the preview target'),
|
|
25
|
+
kind: z.enum(['page', 'collection_index', 'collection_detail']),
|
|
26
|
+
});
|
|
12
27
|
// TODO potential rework in this task https://lokalise.atlassian.net/browse/AP-5711
|
|
13
28
|
export const ITEM_METADATA_SCHEMA = z.object({
|
|
14
29
|
importItemId: z
|
|
@@ -33,6 +48,7 @@ export const ITEM_METADATA_SCHEMA = z.object({
|
|
|
33
48
|
.string()
|
|
34
49
|
.optional()
|
|
35
50
|
.describe('When the content was sent to the integration'),
|
|
51
|
+
preview: ITEM_PREVIEW_METADATA_SCHEMA.optional().describe('Where the source system renders the item, recorded by the connector at import time. Absent for content that has no page of its own.'),
|
|
36
52
|
});
|
|
37
53
|
export const FILE_DETAILS_SCHEMA = z.object({
|
|
38
54
|
id: z.guid().describe('The file identifier'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../src/api/objects/item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,6CAA6C;AAC7C,OAAO;AACP,6CAA6C;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,OAAO,EAAE,SAAS;CACV,CAAA;AAGV,mFAAmF;AACnF,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C,CAAC;IAC/E,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC5E,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IAC3F,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAC7E,IAAI,EAAE,mBAAmB,CAAC,OAAO,EAAE,CAAC,QAAQ,CAC1C,6DAA6D,CAC9D;CACF,CAAC,CAAA;AAGF,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,EAAE;IAChC,EAAE,EAAE,MAAM;IACV,WAAW,EACT,2FAA2F;QAC3F,yFAAyF;QACzF,kCAAkC;CACrC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/translation-storage-api-schemas",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.1.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@lokalise/api-common": "^7.1.1",
|
|
15
|
-
"@lokalise/common-api-schemas": "^
|
|
15
|
+
"@lokalise/common-api-schemas": "^3.0.0",
|
|
16
16
|
"@lokalise/supported-languages": "^3.4.0",
|
|
17
17
|
"@lokalise/universal-ts-utils": "^4.11.0",
|
|
18
18
|
"@lokalise/zod-extras": "^3.0.2",
|
|
19
|
-
"@lokalise/autopilot-common-api-schemas": "3.1.
|
|
20
|
-
"@lokalise/in-and-out-api-schemas": "
|
|
19
|
+
"@lokalise/autopilot-common-api-schemas": "3.1.1",
|
|
20
|
+
"@lokalise/in-and-out-api-schemas": "5.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@biomejs/biome": "^2.5.10",
|