@lokalise/content-type-app-engine-contracts 5.14.0 → 5.15.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/index.d.ts +2 -0
- package/dist/index.js +41 -39
- package/dist/index.js.map +1 -1
- package/dist/schemas/auth/authApiSchemas.js +2 -2
- package/dist/schemas/auth/integrationAuthApiSchemas.d.ts +6 -6
- package/dist/schemas/auth/integrationAuthApiSchemas.js +2 -2
- package/dist/schemas/auth/integrationAuthSchemas.d.ts +6 -6
- package/dist/schemas/cache/cacheApiSchemas.d.ts +4 -4
- package/dist/schemas/cache/cacheApiSchemas.js +2 -2
- package/dist/schemas/cache/cacheSchemas.d.ts +6 -6
- package/dist/schemas/config/integrationConfigApiSchemas.js +2 -2
- package/dist/schemas/connector/connectorApiSchemas.d.ts +1 -1
- package/dist/schemas/connector/connectorApiSchemas.js +2 -2
- package/dist/schemas/connector/connectorSchemas.d.ts +2 -2
- package/dist/schemas/content/contentApiSchemas.d.ts +10 -10
- package/dist/schemas/content/contentApiSchemas.js +2 -2
- package/dist/schemas/content/contentExportApiSchemas.d.ts +56 -0
- package/dist/schemas/content/contentExportApiSchemas.js +21 -0
- package/dist/schemas/content/contentExportApiSchemas.js.map +1 -0
- package/dist/schemas/content/contentExportSchemas.d.ts +41 -0
- package/dist/schemas/content/contentExportSchemas.js +28 -0
- package/dist/schemas/content/contentExportSchemas.js.map +1 -0
- package/dist/schemas/content/contentSchemas.d.ts +21 -21
- package/dist/schemas/content/contentSchemas.js +1 -1
- package/dist/schemas/env/envApiSchemas.js +2 -2
- package/dist/schemas/env/envSchemas.js +1 -1
- package/dist/schemas/filter/filterApiSchemas.d.ts +12 -12
- package/dist/schemas/filter/filterApiSchemas.js +2 -2
- package/dist/schemas/filter/filterSchemas.d.ts +16 -16
- package/dist/schemas/filter/filterSchemas.js +1 -1
- package/dist/schemas/integration/integrationApiSchemas.d.ts +2 -2
- package/dist/schemas/integration/integrationApiSchemas.js +2 -2
- package/dist/schemas/integration/integrationSchemas.d.ts +9 -9
- package/dist/schemas/integration/integrationSchemas.js +1 -1
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.js +2 -2
- package/dist/schemas/integrationProject/integrationProjectSchemas.d.ts +8 -8
- package/dist/schemas/integrationProject/integrationProjectSchemas.js +2 -2
- package/dist/schemas/itemGroup/integrationItemGroupApiSchemas.js +2 -2
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.js +1 -1
- package/dist/schemas/itemList/integrationItemListApiSchemas.js +2 -2
- package/dist/schemas/itemList/itemListContracts.js +1 -1
- package/dist/schemas/language/languageApiSchemas.js +2 -2
- package/dist/schemas/link/linkApiSchemas.js +2 -2
- package/dist/schemas/project/projectApiSchemas.d.ts +2 -2
- package/dist/schemas/project/projectApiSchemas.js +3 -3
- package/dist/schemas/project/projectSchemas.d.ts +7 -7
- package/dist/schemas/project/projectSchemas.js +1 -1
- package/dist/schemas/schedule/scheduleApiSchemas.d.ts +19 -19
- package/dist/schemas/schedule/scheduleApiSchemas.js +2 -2
- package/dist/schemas/schedule/scheduleSchemas.d.ts +23 -23
- package/dist/schemas/schedule/scheduleSchemas.js +1 -1
- package/dist/schemas/settings/settingsApiSchemas.js +2 -2
- package/dist/schemas/settings/settingsSchemas.js +1 -1
- package/dist/schemas/status/statusApiSchemas.d.ts +6 -6
- package/dist/schemas/status/statusApiSchemas.js +2 -2
- package/dist/schemas/status/statusSchemas.d.ts +6 -6
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './schemas/config/integrationConfigSchemas.ts';
|
|
|
10
10
|
export * from './schemas/connector/connectorApiSchemas.ts';
|
|
11
11
|
export * from './schemas/connector/connectorSchemas.ts';
|
|
12
12
|
export * from './schemas/content/contentApiSchemas.ts';
|
|
13
|
+
export * from './schemas/content/contentExportApiSchemas.ts';
|
|
14
|
+
export * from './schemas/content/contentExportSchemas.ts';
|
|
13
15
|
export * from './schemas/content/contentSchemas.ts';
|
|
14
16
|
export * from './schemas/env/envApiSchemas.ts';
|
|
15
17
|
export * from './schemas/env/envSchemas.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
1
|
+
export * from './schemas/auth/authApiSchemas.js';
|
|
2
|
+
export * from './schemas/auth/authSchemas.js';
|
|
3
|
+
export * from './schemas/auth/integrationAuthApiSchemas.js';
|
|
4
|
+
export * from './schemas/auth/integrationAuthSchemas.js';
|
|
5
|
+
export * from './schemas/cache/cacheApiSchemas.js';
|
|
6
|
+
export * from './schemas/cache/cacheSchemas.js';
|
|
7
|
+
export * from './schemas/commonRequestSchemas.js';
|
|
8
|
+
export * from './schemas/config/integrationConfigApiSchemas.js';
|
|
9
|
+
export * from './schemas/config/integrationConfigSchemas.js';
|
|
10
|
+
export * from './schemas/connector/connectorApiSchemas.js';
|
|
11
|
+
export * from './schemas/connector/connectorSchemas.js';
|
|
12
|
+
export * from './schemas/content/contentApiSchemas.js';
|
|
13
|
+
export * from './schemas/content/contentExportApiSchemas.js';
|
|
14
|
+
export * from './schemas/content/contentExportSchemas.js';
|
|
15
|
+
export * from './schemas/content/contentSchemas.js';
|
|
16
|
+
export * from './schemas/env/envApiSchemas.js';
|
|
17
|
+
export * from './schemas/env/envSchemas.js';
|
|
18
|
+
export * from './schemas/filter/filterApiSchemas.js';
|
|
19
|
+
export * from './schemas/filter/filterSchemas.js';
|
|
20
|
+
export * from './schemas/integration/integrationApiSchemas.js';
|
|
21
|
+
export * from './schemas/integration/integrationSchemas.js';
|
|
22
|
+
export * from './schemas/integrationProject/integrationProjectApiSchemas.js';
|
|
23
|
+
export * from './schemas/integrationProject/integrationProjectSchemas.js';
|
|
24
|
+
export * from './schemas/itemGroup/integrationItemGroupApiSchemas.js';
|
|
25
|
+
export * from './schemas/itemGroup/integrationItemGroupSchemas.js';
|
|
26
|
+
export * from './schemas/itemGroup/linkItemGroupApiSchemas.js';
|
|
27
|
+
export * from './schemas/itemList/integrationItemListApiSchemas.js';
|
|
28
|
+
export * from './schemas/itemList/integrationItemListSchemas.js';
|
|
29
|
+
export * from './schemas/itemList/itemListContracts.js';
|
|
30
|
+
export * from './schemas/language/languageApiSchemas.js';
|
|
31
|
+
export * from './schemas/language/languageSchemas.js';
|
|
32
|
+
export * from './schemas/link/linkApiSchemas.js';
|
|
33
|
+
export * from './schemas/link/linkSchemas.js';
|
|
34
|
+
export * from './schemas/project/projectApiSchemas.js';
|
|
35
|
+
export * from './schemas/project/projectSchemas.js';
|
|
36
|
+
export * from './schemas/schedule/scheduleApiSchemas.js';
|
|
37
|
+
export * from './schemas/schedule/scheduleSchemas.js';
|
|
38
|
+
export * from './schemas/settings/settingsApiSchemas.js';
|
|
39
|
+
export * from './schemas/settings/settingsSchemas.js';
|
|
40
|
+
export * from './schemas/status/statusApiSchemas.js';
|
|
41
|
+
export * from './schemas/status/statusSchemas.js';
|
|
40
42
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,0CAA0C,CAAA;AACxD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,wCAAwC,CAAA;AACtD,cAAc,qCAAqC,CAAA;AACnD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sCAAsC,CAAA;AACpD,cAAc,mCAAmC,CAAA;AACjD,cAAc,gDAAgD,CAAA;AAC9D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,8DAA8D,CAAA;AAC5E,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,oDAAoD,CAAA;AAClE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,qDAAqD,CAAA;AACnE,cAAc,kDAAkD,CAAA;AAChE,cAAc,yCAAyC,CAAA;AACvD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wCAAwC,CAAA;AACtD,cAAc,qCAAqC,CAAA;AACnD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,sCAAsC,CAAA;AACpD,cAAc,mCAAmC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,0CAA0C,CAAA;AACxD,cAAc,oCAAoC,CAAA;AAClD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,wCAAwC,CAAA;AACtD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,2CAA2C,CAAA;AACzD,cAAc,qCAAqC,CAAA;AACnD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sCAAsC,CAAA;AACpD,cAAc,mCAAmC,CAAA;AACjD,cAAc,gDAAgD,CAAA;AAC9D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,8DAA8D,CAAA;AAC5E,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,oDAAoD,CAAA;AAClE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,qDAAqD,CAAA;AACnE,cAAc,kDAAkD,CAAA;AAChE,cAAc,yCAAyC,CAAA;AACvD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,wCAAwC,CAAA;AACtD,cAAc,qCAAqC,CAAA;AACnD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,0CAA0C,CAAA;AACxD,cAAc,uCAAuC,CAAA;AACrD,cAAc,sCAAsC,CAAA;AACpD,cAAc,mCAAmC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildDeleteRoute, buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, } from
|
|
4
|
-
import { AUTHENTICATION_RESPONSE_BODY_SCHEMA, GET_CONFIG_QUERY_SCHEMA, GET_CONFIG_RESPONSE_BODY_SCHEMA, GET_PARAMS_RESPONSE_BODY_SCHEMA, PATH_PARAMS_BODY_SCHEMA, POST_AUTH_BODY_SCHEMA, } from
|
|
3
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, } from '../commonRequestSchemas.js';
|
|
4
|
+
import { AUTHENTICATION_RESPONSE_BODY_SCHEMA, GET_CONFIG_QUERY_SCHEMA, GET_CONFIG_RESPONSE_BODY_SCHEMA, GET_PARAMS_RESPONSE_BODY_SCHEMA, PATH_PARAMS_BODY_SCHEMA, POST_AUTH_BODY_SCHEMA, } from './authSchemas.js';
|
|
5
5
|
const tags = ['OAuth'];
|
|
6
6
|
export const postAuthContract = buildPayloadRoute({
|
|
7
7
|
method: 'post',
|
|
@@ -74,9 +74,9 @@ export declare const postInitiateIntegrationAuthContract: import("@lokalise/api-
|
|
|
74
74
|
*/
|
|
75
75
|
export declare const getIntegrationAuthStatusContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodUnion<readonly [z.ZodObject<{
|
|
76
76
|
status: z.ZodEnum<{
|
|
77
|
-
readonly pending:
|
|
78
|
-
readonly completed:
|
|
79
|
-
readonly failed:
|
|
77
|
+
readonly pending: 'pending';
|
|
78
|
+
readonly completed: 'completed';
|
|
79
|
+
readonly failed: 'failed';
|
|
80
80
|
}>;
|
|
81
81
|
error: z.ZodOptional<z.ZodString>;
|
|
82
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -90,9 +90,9 @@ export declare const getIntegrationAuthStatusContract: import("@lokalise/api-con
|
|
|
90
90
|
}, z.core.$strip>, undefined, false, false, {
|
|
91
91
|
200: z.ZodObject<{
|
|
92
92
|
status: z.ZodEnum<{
|
|
93
|
-
readonly pending:
|
|
94
|
-
readonly completed:
|
|
95
|
-
readonly failed:
|
|
93
|
+
readonly pending: 'pending';
|
|
94
|
+
readonly completed: 'completed';
|
|
95
|
+
readonly failed: 'failed';
|
|
96
96
|
}>;
|
|
97
97
|
error: z.ZodOptional<z.ZodString>;
|
|
98
98
|
}, z.core.$strip>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from
|
|
4
|
-
import { GET_INTEGRATION_AUTH_STATUS_PATH_PARAMS_SCHEMA, GET_INTEGRATION_AUTH_STATUS_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_API_TOKEN_INITIATE_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_API_TOKEN_INITIATE_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_AUTH_INITIATE_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_AUTH_INITIATE_RESPONSE_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_BODY_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_PATH_PARAMS_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_RESPONSE_SCHEMA, POST_INTEGRATION_REAUTH_PATH_PARAMS_SCHEMA, POST_INTEGRATION_REAUTH_RESPONSE_SCHEMA, } from
|
|
3
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
4
|
+
import { GET_INTEGRATION_AUTH_STATUS_PATH_PARAMS_SCHEMA, GET_INTEGRATION_AUTH_STATUS_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_API_TOKEN_INITIATE_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_API_TOKEN_INITIATE_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_AUTH_INITIATE_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_AUTH_INITIATE_RESPONSE_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_BODY_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_PATH_PARAMS_SCHEMA, POST_INTEGRATION_AUTH_CALLBACK_RESPONSE_SCHEMA, POST_INTEGRATION_REAUTH_PATH_PARAMS_SCHEMA, POST_INTEGRATION_REAUTH_RESPONSE_SCHEMA, } from './integrationAuthSchemas.js';
|
|
5
5
|
/**
|
|
6
6
|
* Contract for initializing API Token authentication flow
|
|
7
7
|
*
|
|
@@ -44,18 +44,18 @@ export type GetIntegrationAuthStatusPathParams = z.infer<typeof GET_INTEGRATION_
|
|
|
44
44
|
* OAuth authentication status values
|
|
45
45
|
*/
|
|
46
46
|
export declare const INTEGRATION_AUTH_STATUS_ENUM: {
|
|
47
|
-
readonly pending:
|
|
48
|
-
readonly completed:
|
|
49
|
-
readonly failed:
|
|
47
|
+
readonly pending: 'pending';
|
|
48
|
+
readonly completed: 'completed';
|
|
49
|
+
readonly failed: 'failed';
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* Response schema for integration auth status check
|
|
53
53
|
*/
|
|
54
54
|
export declare const GET_INTEGRATION_AUTH_STATUS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
55
55
|
status: z.ZodEnum<{
|
|
56
|
-
readonly pending:
|
|
57
|
-
readonly completed:
|
|
58
|
-
readonly failed:
|
|
56
|
+
readonly pending: 'pending';
|
|
57
|
+
readonly completed: 'completed';
|
|
58
|
+
readonly failed: 'failed';
|
|
59
59
|
}>;
|
|
60
60
|
error: z.ZodOptional<z.ZodString>;
|
|
61
61
|
}, z.core.$strip>;
|
|
@@ -9,10 +9,10 @@ export declare const getCacheItemLanguageStatusesContract: import("@lokalise/api
|
|
|
9
9
|
cacheItemId: import("zod").ZodNumber;
|
|
10
10
|
langIsoCode: import("zod").ZodString;
|
|
11
11
|
status: import("zod").ZodEnum<{
|
|
12
|
-
Untranslated: "Untranslated";
|
|
13
|
-
InProgress: "InProgress";
|
|
14
12
|
Completed: "Completed";
|
|
13
|
+
InProgress: "InProgress";
|
|
15
14
|
Published: "Published";
|
|
15
|
+
Untranslated: "Untranslated";
|
|
16
16
|
}>;
|
|
17
17
|
lokaliseProjectLanguageId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
18
18
|
processStatus: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -44,10 +44,10 @@ export declare const getCacheItemLanguageStatusesContract: import("@lokalise/api
|
|
|
44
44
|
cacheItemId: import("zod").ZodNumber;
|
|
45
45
|
langIsoCode: import("zod").ZodString;
|
|
46
46
|
status: import("zod").ZodEnum<{
|
|
47
|
-
Untranslated: "Untranslated";
|
|
48
|
-
InProgress: "InProgress";
|
|
49
47
|
Completed: "Completed";
|
|
48
|
+
InProgress: "InProgress";
|
|
50
49
|
Published: "Published";
|
|
50
|
+
Untranslated: "Untranslated";
|
|
51
51
|
}>;
|
|
52
52
|
lokaliseProjectLanguageId: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
53
53
|
processStatus: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from
|
|
3
|
-
import { GET_CACHE_ITEM_LANGUAGE_STATUSES_BODY_SCHEMA, GET_CACHE_ITEM_LANGUAGE_STATUSES_RESPONSE_SCHEMA, } from
|
|
2
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
3
|
+
import { GET_CACHE_ITEM_LANGUAGE_STATUSES_BODY_SCHEMA, GET_CACHE_ITEM_LANGUAGE_STATUSES_RESPONSE_SCHEMA, } from './cacheSchemas.js';
|
|
4
4
|
export const getCacheItemLanguageStatusesContract = buildPayloadRoute({
|
|
5
5
|
method: 'post',
|
|
6
6
|
description: 'Get CacheItemLanguage statuses for multiple items',
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const CACHE_ITEM_LANGUAGE_STATUS_ENUM: z.ZodEnum<{
|
|
3
|
-
Untranslated: "Untranslated";
|
|
4
|
-
InProgress: "InProgress";
|
|
5
3
|
Completed: "Completed";
|
|
4
|
+
InProgress: "InProgress";
|
|
6
5
|
Published: "Published";
|
|
6
|
+
Untranslated: "Untranslated";
|
|
7
7
|
}>;
|
|
8
8
|
export declare const CACHE_ITEM_LANGUAGE_DTO_SCHEMA: z.ZodObject<{
|
|
9
9
|
id: z.ZodNumber;
|
|
10
10
|
cacheItemId: z.ZodNumber;
|
|
11
11
|
langIsoCode: z.ZodString;
|
|
12
12
|
status: z.ZodEnum<{
|
|
13
|
-
Untranslated: "Untranslated";
|
|
14
|
-
InProgress: "InProgress";
|
|
15
13
|
Completed: "Completed";
|
|
14
|
+
InProgress: "InProgress";
|
|
16
15
|
Published: "Published";
|
|
16
|
+
Untranslated: "Untranslated";
|
|
17
17
|
}>;
|
|
18
18
|
lokaliseProjectLanguageId: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
processStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -51,10 +51,10 @@ export declare const GET_CACHE_ITEM_LANGUAGE_STATUSES_RESPONSE_SCHEMA: z.ZodObje
|
|
|
51
51
|
cacheItemId: z.ZodNumber;
|
|
52
52
|
langIsoCode: z.ZodString;
|
|
53
53
|
status: z.ZodEnum<{
|
|
54
|
-
Untranslated: "Untranslated";
|
|
55
|
-
InProgress: "InProgress";
|
|
56
54
|
Completed: "Completed";
|
|
55
|
+
InProgress: "InProgress";
|
|
57
56
|
Published: "Published";
|
|
57
|
+
Untranslated: "Untranslated";
|
|
58
58
|
}>;
|
|
59
59
|
lokaliseProjectLanguageId: z.ZodNullable<z.ZodNumber>;
|
|
60
60
|
processStatus: z.ZodOptional<z.ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from
|
|
4
|
-
import { GET_INTEGRATION_CONFIG_RESPONSE_SCHEMA, INTEGRATION_CONFIG_PATH_PARAMS_SCHEMA, PUT_INTEGRATION_CONFIG_BODY_SCHEMA, PUT_INTEGRATION_CONFIG_RESPONSE_SCHEMA, } from
|
|
3
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
4
|
+
import { GET_INTEGRATION_CONFIG_RESPONSE_SCHEMA, INTEGRATION_CONFIG_PATH_PARAMS_SCHEMA, PUT_INTEGRATION_CONFIG_BODY_SCHEMA, PUT_INTEGRATION_CONFIG_RESPONSE_SCHEMA, } from './integrationConfigSchemas.js';
|
|
5
5
|
/**
|
|
6
6
|
* Contract for getting integration configuration
|
|
7
7
|
* GET /v1/integrations/{integrationId}/config
|
|
@@ -11,8 +11,8 @@ export declare const getConnectorListForPlatformContract: import("@lokalise/api-
|
|
|
11
11
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
12
12
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
13
13
|
platform: z.ZodEnum<{
|
|
14
|
-
vantage: "vantage";
|
|
15
14
|
expert: "expert";
|
|
15
|
+
vantage: "vantage";
|
|
16
16
|
}>;
|
|
17
17
|
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
18
18
|
authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildRestContract } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from
|
|
4
|
-
import { CONNECTOR_ID_PARAM, GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_PARAMS_SCHEMA, GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA, } from
|
|
3
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
4
|
+
import { CONNECTOR_ID_PARAM, GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_PARAMS_SCHEMA, GET_CONNECTOR_MANIFEST_RESPONSE_SCHEMA, } from './connectorSchemas.js';
|
|
5
5
|
export const getConnectorListForPlatformContract = buildRestContract({
|
|
6
6
|
method: 'get',
|
|
7
7
|
pathResolver: (params) => `/v1/connectors/platform/${params.platform}`,
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod/v4';
|
|
|
2
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';
|
|
3
3
|
export declare const CONNECTOR_ID_PARAM: z.ZodString;
|
|
4
4
|
export declare const CONNECTOR_PLATFORM: z.ZodEnum<{
|
|
5
|
-
vantage: "vantage";
|
|
6
5
|
expert: "expert";
|
|
6
|
+
vantage: "vantage";
|
|
7
7
|
}>;
|
|
8
8
|
export type ConnectorPlatform = z.infer<typeof CONNECTOR_PLATFORM>;
|
|
9
9
|
export declare const CONNECTOR_LIST_ITEM: z.ZodObject<{
|
|
@@ -14,8 +14,8 @@ export declare const CONNECTOR_LIST_ITEM: z.ZodObject<{
|
|
|
14
14
|
export type ConnectorListItem = z.infer<typeof CONNECTOR_LIST_ITEM>;
|
|
15
15
|
export declare const GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA: z.ZodObject<{
|
|
16
16
|
platform: z.ZodEnum<{
|
|
17
|
-
vantage: "vantage";
|
|
18
17
|
expert: "expert";
|
|
18
|
+
vantage: "vantage";
|
|
19
19
|
}>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export declare const GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA: z.ZodObject<{
|
|
@@ -16,14 +16,14 @@ export declare const postGetContentContract: import("@lokalise/api-contracts").P
|
|
|
16
16
|
}>;
|
|
17
17
|
object: z.ZodString;
|
|
18
18
|
option: z.ZodEnum<{
|
|
19
|
+
contains: "contains";
|
|
20
|
+
containsAll: "containsAll";
|
|
19
21
|
endsWith: "endsWith";
|
|
20
|
-
startsWith: "startsWith";
|
|
21
22
|
equals: "equals";
|
|
22
|
-
notEquals: "notEquals";
|
|
23
|
-
contains: "contains";
|
|
24
23
|
notContains: "notContains";
|
|
25
|
-
containsAll: "containsAll";
|
|
26
24
|
notContainsAll: "notContainsAll";
|
|
25
|
+
notEquals: "notEquals";
|
|
26
|
+
startsWith: "startsWith";
|
|
27
27
|
}>;
|
|
28
28
|
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
29
29
|
}, z.core.$strip>>>;
|
|
@@ -106,14 +106,14 @@ export declare const postGetContentContractV2: import("@lokalise/api-contracts")
|
|
|
106
106
|
}>;
|
|
107
107
|
object: z.ZodString;
|
|
108
108
|
option: z.ZodEnum<{
|
|
109
|
+
contains: "contains";
|
|
110
|
+
containsAll: "containsAll";
|
|
109
111
|
endsWith: "endsWith";
|
|
110
|
-
startsWith: "startsWith";
|
|
111
112
|
equals: "equals";
|
|
112
|
-
notEquals: "notEquals";
|
|
113
|
-
contains: "contains";
|
|
114
113
|
notContains: "notContains";
|
|
115
|
-
containsAll: "containsAll";
|
|
116
114
|
notContainsAll: "notContainsAll";
|
|
115
|
+
notEquals: "notEquals";
|
|
116
|
+
startsWith: "startsWith";
|
|
117
117
|
}>;
|
|
118
118
|
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
119
119
|
}, z.core.$strip>>>;
|
|
@@ -461,8 +461,8 @@ export declare const initializeContentImportContract: import("@lokalise/api-cont
|
|
|
461
461
|
}>;
|
|
462
462
|
export declare const uploadContentItemsChunkContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
|
|
463
463
|
origin: z.ZodEnum<{
|
|
464
|
-
readonly CONTENTFUL:
|
|
465
|
-
readonly CONTENT_TYPE_APP_ENGINE:
|
|
464
|
+
readonly CONTENTFUL: 'CONTENTFUL';
|
|
465
|
+
readonly CONTENT_TYPE_APP_ENGINE: 'CONTENT_TYPE_APP_ENGINE';
|
|
466
466
|
}>;
|
|
467
467
|
items: z.ZodArray<z.ZodObject<{
|
|
468
468
|
id: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from
|
|
4
|
-
import { COMPLETE_IMPORT_UPLOAD_REQUEST_PATH_PARAMS_SCHEMA, CONTENT_PROCESS_REQUEST_STATUS_PATH_PARAMS_SCHEMA, CONTENT_PROCESS_REQUEST_STATUS_RESPONSE_SCHEMA, EMPTY_TARGET_LANGUAGES_ERROR_RESPONSE_SCHEMA, EXPORT_REQUEST_BODY_SCHEMA, EXPORT_REQUEST_PATH_PARAMS_SCHEMA, EXPORT_RESPONSE_BODY_SCHEMA, GET_ITEM_PROCESSING_DETAILS_PATH_PARAMS_SCHEMA, GET_ITEM_PROCESSING_DETAILS_RESPONSE_SCHEMA, IMPORT_COMPLETE_UPLOAD_REQUEST_SCHEMA, IMPORT_REQUEST_PATH_PARAMS_SCHEMA, IMPORT_REQUEST_SCHEMA, IMPORT_RESPONSE_BODY_SCHEMA, IMPORT_UPLOAD_COMPLETED_RESPONSE_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_ERROR_RESPONSE_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_REQUEST_PATH_PARAMS_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_REQUEST_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_RESPONSE_SCHEMA, JOB_SCHEDULED_RESPONSE_SCHEMA, PARTIAL_CACHE_REFRESH_REQUEST_DTO_SCHEMA, POST_CONTENT_BODY_SCHEMA, POST_CONTENT_PUBLISH_BODY, POST_CONTENT_RESPONSE_SCHEMA, POST_CONTENT_RESPONSE_SCHEMA_V2, POST_CONTENT_TRANSLATE_BODY_SCHEMA, POST_CONTENT_TRANSLATE_SINGLE_BODY_SCHEMA, } from
|
|
3
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
4
|
+
import { COMPLETE_IMPORT_UPLOAD_REQUEST_PATH_PARAMS_SCHEMA, CONTENT_PROCESS_REQUEST_STATUS_PATH_PARAMS_SCHEMA, CONTENT_PROCESS_REQUEST_STATUS_RESPONSE_SCHEMA, EMPTY_TARGET_LANGUAGES_ERROR_RESPONSE_SCHEMA, EXPORT_REQUEST_BODY_SCHEMA, EXPORT_REQUEST_PATH_PARAMS_SCHEMA, EXPORT_RESPONSE_BODY_SCHEMA, GET_ITEM_PROCESSING_DETAILS_PATH_PARAMS_SCHEMA, GET_ITEM_PROCESSING_DETAILS_RESPONSE_SCHEMA, IMPORT_COMPLETE_UPLOAD_REQUEST_SCHEMA, IMPORT_REQUEST_PATH_PARAMS_SCHEMA, IMPORT_REQUEST_SCHEMA, IMPORT_RESPONSE_BODY_SCHEMA, IMPORT_UPLOAD_COMPLETED_RESPONSE_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_ERROR_RESPONSE_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_REQUEST_PATH_PARAMS_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_REQUEST_SCHEMA, IMPORT_UPLOAD_ITEMS_CHUNK_RESPONSE_SCHEMA, JOB_SCHEDULED_RESPONSE_SCHEMA, PARTIAL_CACHE_REFRESH_REQUEST_DTO_SCHEMA, POST_CONTENT_BODY_SCHEMA, POST_CONTENT_PUBLISH_BODY, POST_CONTENT_RESPONSE_SCHEMA, POST_CONTENT_RESPONSE_SCHEMA_V2, POST_CONTENT_TRANSLATE_BODY_SCHEMA, POST_CONTENT_TRANSLATE_SINGLE_BODY_SCHEMA, } from './contentSchemas.js';
|
|
5
5
|
const tags = ['Content'];
|
|
6
6
|
export const postGetContentContract = buildPayloadRoute({
|
|
7
7
|
method: 'post',
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contract for getting export status
|
|
3
|
+
* GET /v1/exports/:exportId/status
|
|
4
|
+
*/
|
|
5
|
+
export declare const getExportStatusContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
6
|
+
exportProcessId: import("zod").ZodUUID;
|
|
7
|
+
status: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
8
|
+
readonly QUEUED: 'QUEUED';
|
|
9
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
10
|
+
readonly COMPLETED: 'COMPLETED';
|
|
11
|
+
readonly FAILED: 'FAILED';
|
|
12
|
+
}>>;
|
|
13
|
+
progress: import("zod").ZodObject<{
|
|
14
|
+
total: import("zod").ZodNumber;
|
|
15
|
+
processed: import("zod").ZodNumber;
|
|
16
|
+
percentage: import("zod").ZodNumber;
|
|
17
|
+
}, import("zod/v4/core").$strip>;
|
|
18
|
+
files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
19
|
+
fileId: import("zod").ZodString;
|
|
20
|
+
downloadUrl: import("zod").ZodString;
|
|
21
|
+
filename: import("zod").ZodString;
|
|
22
|
+
metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
23
|
+
}, import("zod/v4/core").$strip>>>;
|
|
24
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
26
|
+
exportId: import("zod").ZodString;
|
|
27
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
28
|
+
authorization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
30
|
+
200: import("zod").ZodObject<{
|
|
31
|
+
exportProcessId: import("zod").ZodUUID;
|
|
32
|
+
status: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
33
|
+
readonly QUEUED: 'QUEUED';
|
|
34
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
35
|
+
readonly COMPLETED: 'COMPLETED';
|
|
36
|
+
readonly FAILED: 'FAILED';
|
|
37
|
+
}>>;
|
|
38
|
+
progress: import("zod").ZodObject<{
|
|
39
|
+
total: import("zod").ZodNumber;
|
|
40
|
+
processed: import("zod").ZodNumber;
|
|
41
|
+
percentage: import("zod").ZodNumber;
|
|
42
|
+
}, import("zod/v4/core").$strip>;
|
|
43
|
+
files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
44
|
+
fileId: import("zod").ZodString;
|
|
45
|
+
downloadUrl: import("zod").ZodString;
|
|
46
|
+
filename: import("zod").ZodString;
|
|
47
|
+
metadata: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
48
|
+
}, import("zod/v4/core").$strip>>>;
|
|
49
|
+
error: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
}, import("zod/v4/core").$strip>;
|
|
51
|
+
404: import("zod").ZodObject<{
|
|
52
|
+
message: import("zod").ZodString;
|
|
53
|
+
errorCode: import("zod").ZodString;
|
|
54
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
55
|
+
}, import("zod/v4/core").$strip>;
|
|
56
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { buildRestContract } from '@lokalise/api-contracts';
|
|
2
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from '../commonRequestSchemas.js';
|
|
3
|
+
import { EXPORT_STATUS_PATH_PARAMS_SCHEMA, EXPORT_STATUS_RESPONSE_BODY_SCHEMA, } from './contentExportSchemas.js';
|
|
4
|
+
/**
|
|
5
|
+
* Contract for getting export status
|
|
6
|
+
* GET /v1/exports/:exportId/status
|
|
7
|
+
*/
|
|
8
|
+
export const getExportStatusContract = buildRestContract({
|
|
9
|
+
method: 'get',
|
|
10
|
+
summary: 'Get export status',
|
|
11
|
+
description: 'Get push-based export status',
|
|
12
|
+
requestPathParamsSchema: EXPORT_STATUS_PATH_PARAMS_SCHEMA,
|
|
13
|
+
successResponseBodySchema: EXPORT_STATUS_RESPONSE_BODY_SCHEMA,
|
|
14
|
+
responseSchemasByStatusCode: {
|
|
15
|
+
200: EXPORT_STATUS_RESPONSE_BODY_SCHEMA,
|
|
16
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
17
|
+
},
|
|
18
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
19
|
+
pathResolver: ({ exportId }) => `/v1/exports/${exportId}/status`,
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=contentExportApiSchemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentExportApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/content/contentExportApiSchemas.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,gCAAgC,EAChC,kCAAkC,GACnC,MAAM,2BAA2B,CAAA;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,8BAA8B;IAC3C,uBAAuB,EAAE,gCAAgC;IACzD,yBAAyB,EAAE,kCAAkC;IAC7D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,kCAAkC;QACvC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;IAChD,YAAY,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,eAAe,QAAQ,SAAS;CACjE,CAAC,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ExportStatusEnum: {
|
|
3
|
+
readonly QUEUED: 'QUEUED';
|
|
4
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
5
|
+
readonly COMPLETED: 'COMPLETED';
|
|
6
|
+
readonly FAILED: 'FAILED';
|
|
7
|
+
};
|
|
8
|
+
export type ExportStatusEnum = (typeof ExportStatusEnum)[keyof typeof ExportStatusEnum];
|
|
9
|
+
export declare const EXPORT_STATUS_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
10
|
+
exportId: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ExportStatusPathParams = z.infer<typeof EXPORT_STATUS_PATH_PARAMS_SCHEMA>;
|
|
13
|
+
export declare const EXPORT_FILE_INFO_SCHEMA: z.ZodObject<{
|
|
14
|
+
fileId: z.ZodString;
|
|
15
|
+
downloadUrl: z.ZodString;
|
|
16
|
+
filename: z.ZodString;
|
|
17
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ExportFileInfo = z.infer<typeof EXPORT_FILE_INFO_SCHEMA>;
|
|
20
|
+
export declare const EXPORT_STATUS_RESPONSE_BODY_SCHEMA: z.ZodObject<{
|
|
21
|
+
exportProcessId: z.ZodUUID;
|
|
22
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
readonly QUEUED: 'QUEUED';
|
|
24
|
+
readonly IN_PROGRESS: 'IN_PROGRESS';
|
|
25
|
+
readonly COMPLETED: 'COMPLETED';
|
|
26
|
+
readonly FAILED: 'FAILED';
|
|
27
|
+
}>>;
|
|
28
|
+
progress: z.ZodObject<{
|
|
29
|
+
total: z.ZodNumber;
|
|
30
|
+
processed: z.ZodNumber;
|
|
31
|
+
percentage: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
fileId: z.ZodString;
|
|
35
|
+
downloadUrl: z.ZodString;
|
|
36
|
+
filename: z.ZodString;
|
|
37
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
38
|
+
}, z.core.$strip>>>;
|
|
39
|
+
error: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type ExportStatusResponse = z.infer<typeof EXPORT_STATUS_RESPONSE_BODY_SCHEMA>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export const ExportStatusEnum = {
|
|
3
|
+
QUEUED: 'QUEUED',
|
|
4
|
+
IN_PROGRESS: 'IN_PROGRESS',
|
|
5
|
+
COMPLETED: 'COMPLETED',
|
|
6
|
+
FAILED: 'FAILED',
|
|
7
|
+
};
|
|
8
|
+
export const EXPORT_STATUS_PATH_PARAMS_SCHEMA = z.object({
|
|
9
|
+
exportId: z.string(),
|
|
10
|
+
});
|
|
11
|
+
export const EXPORT_FILE_INFO_SCHEMA = z.object({
|
|
12
|
+
fileId: z.string(),
|
|
13
|
+
downloadUrl: z.string(),
|
|
14
|
+
filename: z.string(),
|
|
15
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
16
|
+
});
|
|
17
|
+
export const EXPORT_STATUS_RESPONSE_BODY_SCHEMA = z.object({
|
|
18
|
+
exportProcessId: z.uuid(),
|
|
19
|
+
status: z.enum(ExportStatusEnum).nullable(),
|
|
20
|
+
progress: z.object({
|
|
21
|
+
total: z.number(),
|
|
22
|
+
processed: z.number(),
|
|
23
|
+
percentage: z.number(),
|
|
24
|
+
}),
|
|
25
|
+
files: z.array(EXPORT_FILE_INFO_SCHEMA).optional(),
|
|
26
|
+
error: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=contentExportSchemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentExportSchemas.js","sourceRoot":"","sources":["../../../src/schemas/content/contentExportSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAA;AAIV,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;CAC5C,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,eAAe,EAAE,CAAC,CAAC,IAAI,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;KACvB,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE;IAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAA"}
|
|
@@ -30,14 +30,14 @@ export declare const PAGINATION_REQUEST_SCHEMA: z.ZodObject<{
|
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
export type PaginationRequest = z.infer<typeof PAGINATION_REQUEST_SCHEMA>;
|
|
32
32
|
export declare const OptionsEnum: {
|
|
33
|
-
readonly equals:
|
|
34
|
-
readonly notEquals:
|
|
35
|
-
readonly contains:
|
|
36
|
-
readonly notContains:
|
|
37
|
-
readonly containsAll:
|
|
38
|
-
readonly notContainsAll:
|
|
39
|
-
readonly startsWith:
|
|
40
|
-
readonly endsWith:
|
|
33
|
+
readonly equals: 'equals';
|
|
34
|
+
readonly notEquals: 'notEquals';
|
|
35
|
+
readonly contains: 'contains';
|
|
36
|
+
readonly notContains: 'notContains';
|
|
37
|
+
readonly containsAll: 'containsAll';
|
|
38
|
+
readonly notContainsAll: 'notContainsAll';
|
|
39
|
+
readonly startsWith: 'startsWith';
|
|
40
|
+
readonly endsWith: 'endsWith';
|
|
41
41
|
};
|
|
42
42
|
export type OptionsEnumType = (typeof OptionsEnum)[keyof typeof OptionsEnum];
|
|
43
43
|
export declare const OPTIONS_ENUM_VALUES: [OptionsEnumType, ...OptionsEnumType[]];
|
|
@@ -54,8 +54,8 @@ export declare const ContentItemStatusEnum: {
|
|
|
54
54
|
};
|
|
55
55
|
export type ContentItemStatusEnumType = (typeof ContentItemStatusEnum)[keyof typeof ContentItemStatusEnum];
|
|
56
56
|
export declare const ORIGIN_NAMES: {
|
|
57
|
-
readonly CONTENTFUL:
|
|
58
|
-
readonly CONTENT_TYPE_APP_ENGINE:
|
|
57
|
+
readonly CONTENTFUL: 'CONTENTFUL';
|
|
58
|
+
readonly CONTENT_TYPE_APP_ENGINE: 'CONTENT_TYPE_APP_ENGINE';
|
|
59
59
|
};
|
|
60
60
|
export type OriginName = (typeof ORIGIN_NAMES)[keyof typeof ORIGIN_NAMES];
|
|
61
61
|
declare const FILTER_SCHEMA: z.ZodObject<{
|
|
@@ -65,14 +65,14 @@ declare const FILTER_SCHEMA: z.ZodObject<{
|
|
|
65
65
|
}>;
|
|
66
66
|
object: z.ZodString;
|
|
67
67
|
option: z.ZodEnum<{
|
|
68
|
+
contains: "contains";
|
|
69
|
+
containsAll: "containsAll";
|
|
68
70
|
endsWith: "endsWith";
|
|
69
|
-
startsWith: "startsWith";
|
|
70
71
|
equals: "equals";
|
|
71
|
-
notEquals: "notEquals";
|
|
72
|
-
contains: "contains";
|
|
73
72
|
notContains: "notContains";
|
|
74
|
-
containsAll: "containsAll";
|
|
75
73
|
notContainsAll: "notContainsAll";
|
|
74
|
+
notEquals: "notEquals";
|
|
75
|
+
startsWith: "startsWith";
|
|
76
76
|
}>;
|
|
77
77
|
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
78
78
|
}, z.core.$strip>;
|
|
@@ -94,14 +94,14 @@ export declare const POST_CONTENT_BODY_SCHEMA: z.ZodObject<{
|
|
|
94
94
|
}>;
|
|
95
95
|
object: z.ZodString;
|
|
96
96
|
option: z.ZodEnum<{
|
|
97
|
+
contains: "contains";
|
|
98
|
+
containsAll: "containsAll";
|
|
97
99
|
endsWith: "endsWith";
|
|
98
|
-
startsWith: "startsWith";
|
|
99
100
|
equals: "equals";
|
|
100
|
-
notEquals: "notEquals";
|
|
101
|
-
contains: "contains";
|
|
102
101
|
notContains: "notContains";
|
|
103
|
-
containsAll: "containsAll";
|
|
104
102
|
notContainsAll: "notContainsAll";
|
|
103
|
+
notEquals: "notEquals";
|
|
104
|
+
startsWith: "startsWith";
|
|
105
105
|
}>;
|
|
106
106
|
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
107
107
|
}, z.core.$strip>>>;
|
|
@@ -386,8 +386,8 @@ export declare const IMPORT_ITEM_SCHEMA: z.ZodObject<{
|
|
|
386
386
|
export type ImportItem = z.infer<typeof IMPORT_ITEM_SCHEMA>;
|
|
387
387
|
export declare const IMPORT_UPLOAD_ITEMS_CHUNK_REQUEST_SCHEMA: z.ZodObject<{
|
|
388
388
|
origin: z.ZodEnum<{
|
|
389
|
-
readonly CONTENTFUL:
|
|
390
|
-
readonly CONTENT_TYPE_APP_ENGINE:
|
|
389
|
+
readonly CONTENTFUL: 'CONTENTFUL';
|
|
390
|
+
readonly CONTENT_TYPE_APP_ENGINE: 'CONTENT_TYPE_APP_ENGINE';
|
|
391
391
|
}>;
|
|
392
392
|
items: z.ZodArray<z.ZodObject<{
|
|
393
393
|
id: z.ZodString;
|
|
@@ -550,7 +550,7 @@ export declare const EXPORTABLE_ITEM: z.ZodObject<{
|
|
|
550
550
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
551
551
|
}, z.core.$strip>;
|
|
552
552
|
export type ExportableItem = z.infer<typeof EXPORTABLE_ITEM>;
|
|
553
|
-
export declare const EMPTY_TARGET_LANGUAGES_ERROR_CODE:
|
|
553
|
+
export declare const EMPTY_TARGET_LANGUAGES_ERROR_CODE: 'EMPTY_TARGET_LANGUAGES';
|
|
554
554
|
export declare const EMPTY_TARGET_LANGUAGES_ERROR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
555
555
|
message: z.ZodString;
|
|
556
556
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|