@lokalise/content-type-app-engine-contracts 5.6.0 → 5.8.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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas/connector/connectorApiSchemas.d.ts +30 -0
- package/dist/schemas/connector/connectorApiSchemas.js +18 -2
- package/dist/schemas/connector/connectorApiSchemas.js.map +1 -1
- package/dist/schemas/connector/connectorSchemas.d.ts +6 -0
- package/dist/schemas/connector/connectorSchemas.js +3 -0
- package/dist/schemas/connector/connectorSchemas.js.map +1 -1
- package/dist/schemas/integration/integrationApiSchemas.d.ts +202 -0
- package/dist/schemas/integration/integrationApiSchemas.js +15 -1
- package/dist/schemas/integration/integrationApiSchemas.js.map +1 -1
- package/dist/schemas/integration/integrationSchemas.d.ts +92 -0
- package/dist/schemas/integration/integrationSchemas.js +4 -0
- package/dist/schemas/integration/integrationSchemas.js.map +1 -1
- package/dist/schemas/itemList/integrationItemListApiSchemas.d.ts +0 -1
- package/dist/schemas/itemList/itemListContracts.d.ts +0 -1
- package/dist/schemas/link/linkApiSchemas.d.ts +200 -0
- package/dist/schemas/link/linkApiSchemas.js +17 -0
- package/dist/schemas/link/linkApiSchemas.js.map +1 -0
- package/dist/schemas/link/linkSchemas.d.ts +93 -0
- package/dist/schemas/link/linkSchemas.js +6 -0
- package/dist/schemas/link/linkSchemas.js.map +1 -0
- package/package.json +5 -5
- package/dist/schemas/manifest/manifestApiSchemas.d.ts +0 -93
- package/dist/schemas/manifest/manifestApiSchemas.js +0 -38
- package/dist/schemas/manifest/manifestApiSchemas.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export * from './schemas/itemList/integrationItemListSchemas.ts';
|
|
|
27
27
|
export * from './schemas/itemList/itemListContracts.ts';
|
|
28
28
|
export * from './schemas/language/languageApiSchemas.ts';
|
|
29
29
|
export * from './schemas/language/languageSchemas.ts';
|
|
30
|
-
export * from './schemas/
|
|
30
|
+
export * from './schemas/link/linkApiSchemas.ts';
|
|
31
|
+
export * from './schemas/link/linkSchemas.ts';
|
|
31
32
|
export * from './schemas/project/projectApiSchemas.ts';
|
|
32
33
|
export * from './schemas/project/projectSchemas.ts';
|
|
33
34
|
export * from './schemas/schedule/scheduleApiSchemas.ts';
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,8 @@ export * from "./schemas/itemList/integrationItemListSchemas.js";
|
|
|
27
27
|
export * from "./schemas/itemList/itemListContracts.js";
|
|
28
28
|
export * from "./schemas/language/languageApiSchemas.js";
|
|
29
29
|
export * from "./schemas/language/languageSchemas.js";
|
|
30
|
-
export * from "./schemas/
|
|
30
|
+
export * from "./schemas/link/linkApiSchemas.js";
|
|
31
|
+
export * from "./schemas/link/linkSchemas.js";
|
|
31
32
|
export * from "./schemas/project/projectApiSchemas.js";
|
|
32
33
|
export * from "./schemas/project/projectSchemas.js";
|
|
33
34
|
export * from "./schemas/schedule/scheduleApiSchemas.js";
|
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,gD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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"}
|
|
@@ -35,3 +35,33 @@ export declare const getConnectorListForPlatformContract: import("@lokalise/api-
|
|
|
35
35
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
37
|
}>;
|
|
38
|
+
export declare const getConnectorManifestModes: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
39
|
+
modes: z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
connectorId: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
45
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>, undefined, false, false, {
|
|
47
|
+
200: z.ZodObject<{
|
|
48
|
+
modes: z.ZodArray<z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
401: z.ZodObject<{
|
|
53
|
+
message: z.ZodString;
|
|
54
|
+
errorCode: z.ZodString;
|
|
55
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
404: z.ZodObject<{
|
|
58
|
+
message: z.ZodString;
|
|
59
|
+
errorCode: z.ZodString;
|
|
60
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
500: z.ZodObject<{
|
|
63
|
+
message: z.ZodString;
|
|
64
|
+
errorCode: z.ZodString;
|
|
65
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { buildRestContract } from '@lokalise/api-contracts';
|
|
1
|
+
import { buildGetRoute, buildRestContract } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from "../commonRequestSchemas.js";
|
|
4
|
-
import { GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, } from "./connectorSchemas.js";
|
|
4
|
+
import { GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA, GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA, GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA, } from "./connectorSchemas.js";
|
|
5
5
|
export const getConnectorListForPlatformContract = buildRestContract({
|
|
6
6
|
method: 'get',
|
|
7
7
|
pathResolver: (params) => `/v1/connectors/platform/${params.platform}`,
|
|
@@ -18,4 +18,20 @@ export const getConnectorListForPlatformContract = buildRestContract({
|
|
|
18
18
|
},
|
|
19
19
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
20
20
|
});
|
|
21
|
+
export const getConnectorManifestModes = buildGetRoute({
|
|
22
|
+
pathResolver: (params) => `/v1/connector/${params.connectorId}/manifest/modes`,
|
|
23
|
+
description: 'Get the list of modes supported by the connector',
|
|
24
|
+
requestPathParamsSchema: z.object({
|
|
25
|
+
connectorId: z.string().describe('Identifier of a connector, like `storyblok-ce`'),
|
|
26
|
+
}),
|
|
27
|
+
successResponseBodySchema: GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA,
|
|
28
|
+
responseSchemasByStatusCode: {
|
|
29
|
+
200: GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA,
|
|
30
|
+
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
31
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
32
|
+
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
33
|
+
},
|
|
34
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
35
|
+
tags: ['Manifest'],
|
|
36
|
+
});
|
|
21
37
|
//# sourceMappingURL=connectorApiSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"connectorApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,6CAA6C,EAC7C,+CAA+C,EAC/C,4CAA4C,GAC7C,MAAM,uBAAuB,CAAA;AAE9B,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;IACnE,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,2BAA2B,MAAM,CAAC,QAAQ,EAAE;IACtE,WAAW,EAAE,uCAAuC;IACpD,uBAAuB,EAAE,6CAA6C;IACtE,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC;QACjC,+CAA+C;QAC/C,+BAA+B;KAChC,CAAC;IACF,2BAA2B,EAAE;QAC3B,GAAG,EAAE,+CAA+C;QACpD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAC;IACrD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,MAAM,CAAC,WAAW,iBAAiB;IAC9E,WAAW,EAAE,kDAAkD;IAC/D,uBAAuB,EAAE,CAAC,CAAC,MAAM,CAAC;QAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;KACnF,CAAC;IACF,yBAAyB,EAAE,4CAA4C;IACvE,2BAA2B,EAAE;QAC3B,GAAG,EAAE,4CAA4C;QACjD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;IAChD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAA"}
|
|
@@ -23,3 +23,9 @@ export declare const GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA: z.ZodObjec
|
|
|
23
23
|
docsLink: z.ZodOptional<z.ZodString>;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
|
+
export declare const GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
27
|
+
modes: z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type GetConnectorManifestModesResponse = z.infer<typeof GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA>;
|
|
@@ -11,4 +11,7 @@ export const GET_CONNECTOR_LIST_FOR_PLATFORM_PARAMS_SCHEMA = z.object({
|
|
|
11
11
|
export const GET_CONNECTOR_LIST_FOR_PLATFORM_RESPONSE_SCHEMA = z.object({
|
|
12
12
|
connectors: z.array(CONNECTOR_LIST_ITEM),
|
|
13
13
|
});
|
|
14
|
+
export const GET_CONNECTOR_MANIFEST_MODES_RESPONSE_SCHEMA = z.object({
|
|
15
|
+
modes: z.array(z.object({ id: z.string() })).min(1),
|
|
16
|
+
});
|
|
14
17
|
//# sourceMappingURL=connectorSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,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"}
|
|
1
|
+
{"version":3,"file":"connectorSchemas.js","sourceRoot":"","sources":["../../../src/schemas/connector/connectorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,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,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"}
|
|
@@ -70,3 +70,205 @@ export declare const getListIntegrationProjectsContract: import("@lokalise/api-c
|
|
|
70
70
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
}>;
|
|
73
|
+
export declare const getIntegrationManifestContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
74
|
+
manifest: z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
type: z.ZodLiteral<"oauth">;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"credentials">;
|
|
80
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
type: z.ZodLiteral<"password">;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
type: z.ZodLiteral<"select">;
|
|
88
|
+
options: z.ZodArray<z.ZodObject<{
|
|
89
|
+
value: z.ZodString;
|
|
90
|
+
label: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
type: z.ZodLiteral<"url">;
|
|
96
|
+
}, z.core.$strip>], "type">>;
|
|
97
|
+
}, z.core.$strip>], "type">;
|
|
98
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
query: z.ZodString;
|
|
101
|
+
type: z.ZodLiteral<"search">;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
query: z.ZodString;
|
|
105
|
+
type: z.ZodLiteral<"multiselect">;
|
|
106
|
+
options: z.ZodArray<z.ZodObject<{
|
|
107
|
+
id: z.ZodString;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
query: z.ZodString;
|
|
114
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
115
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
116
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
query: z.ZodString;
|
|
121
|
+
type: z.ZodLiteral<"select">;
|
|
122
|
+
options: z.ZodArray<z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
query: z.ZodString;
|
|
130
|
+
type: z.ZodLiteral<"async-select">;
|
|
131
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
132
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
query: z.ZodString;
|
|
136
|
+
type: z.ZodLiteral<"daterange">;
|
|
137
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
from: z.ZodString;
|
|
139
|
+
to: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
}, z.core.$strip>], "type">>;
|
|
142
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
143
|
+
version: z.ZodNumber;
|
|
144
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
type: z.ZodLiteral<"primary">;
|
|
149
|
+
paths: z.ZodObject<{
|
|
150
|
+
title: z.ZodString;
|
|
151
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
152
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
type: z.ZodLiteral<"text">;
|
|
157
|
+
paths: z.ZodObject<{
|
|
158
|
+
text: z.ZodString;
|
|
159
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
}, z.core.$strip>], "type">>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
integrationId: z.ZodGUID;
|
|
165
|
+
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
166
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$strip>, undefined, false, false, {
|
|
168
|
+
200: z.ZodObject<{
|
|
169
|
+
manifest: z.ZodObject<{
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
172
|
+
type: z.ZodLiteral<"oauth">;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"credentials">;
|
|
175
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
|
+
id: z.ZodString;
|
|
177
|
+
name: z.ZodString;
|
|
178
|
+
type: z.ZodLiteral<"password">;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
type: z.ZodLiteral<"select">;
|
|
183
|
+
options: z.ZodArray<z.ZodObject<{
|
|
184
|
+
value: z.ZodString;
|
|
185
|
+
label: z.ZodString;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
name: z.ZodString;
|
|
190
|
+
type: z.ZodLiteral<"url">;
|
|
191
|
+
}, z.core.$strip>], "type">>;
|
|
192
|
+
}, z.core.$strip>], "type">;
|
|
193
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
query: z.ZodString;
|
|
196
|
+
type: z.ZodLiteral<"search">;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
query: z.ZodString;
|
|
200
|
+
type: z.ZodLiteral<"multiselect">;
|
|
201
|
+
options: z.ZodArray<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
name: z.ZodString;
|
|
204
|
+
}, z.core.$strip>>;
|
|
205
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
query: z.ZodString;
|
|
209
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
210
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
211
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
query: z.ZodString;
|
|
216
|
+
type: z.ZodLiteral<"select">;
|
|
217
|
+
options: z.ZodArray<z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
query: z.ZodString;
|
|
225
|
+
type: z.ZodLiteral<"async-select">;
|
|
226
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
227
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
id: z.ZodString;
|
|
230
|
+
query: z.ZodString;
|
|
231
|
+
type: z.ZodLiteral<"daterange">;
|
|
232
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
from: z.ZodString;
|
|
234
|
+
to: z.ZodString;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>], "type">>;
|
|
237
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
238
|
+
version: z.ZodNumber;
|
|
239
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
type: z.ZodLiteral<"primary">;
|
|
244
|
+
paths: z.ZodObject<{
|
|
245
|
+
title: z.ZodString;
|
|
246
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
247
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
type: z.ZodLiteral<"text">;
|
|
252
|
+
paths: z.ZodObject<{
|
|
253
|
+
text: z.ZodString;
|
|
254
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
}, z.core.$strip>], "type">>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
401: z.ZodObject<{
|
|
260
|
+
message: z.ZodString;
|
|
261
|
+
errorCode: z.ZodString;
|
|
262
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
404: z.ZodObject<{
|
|
265
|
+
message: z.ZodString;
|
|
266
|
+
errorCode: z.ZodString;
|
|
267
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
500: z.ZodObject<{
|
|
270
|
+
message: z.ZodString;
|
|
271
|
+
errorCode: z.ZodString;
|
|
272
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildGetRoute, buildPayloadRoute } from '@lokalise/api-contracts';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from "../commonRequestSchemas.js";
|
|
4
|
-
import { GET_LIST_INTEGRATION_PROJECTS_REQUEST_PATH_PARAMS_SCHEMA, GET_LIST_INTEGRATION_PROJECTS_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_RESPONSE_SCHEMA, UNSUPPORTED_PROJECT_TYPE_ERROR_RESPONSE_SCHEMA, } from "./integrationSchemas.js";
|
|
4
|
+
import { GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA, GET_LIST_INTEGRATION_PROJECTS_REQUEST_PATH_PARAMS_SCHEMA, GET_LIST_INTEGRATION_PROJECTS_RESPONSE_SCHEMA, POST_CREATE_INTEGRATION_PAYLOAD_SCHEMA, POST_CREATE_INTEGRATION_RESPONSE_SCHEMA, UNSUPPORTED_PROJECT_TYPE_ERROR_RESPONSE_SCHEMA, } from "./integrationSchemas.js";
|
|
5
5
|
export const postCreateIntegrationContract = buildPayloadRoute({
|
|
6
6
|
method: 'post',
|
|
7
7
|
pathResolver: () => '/v1/integrations',
|
|
@@ -33,4 +33,18 @@ export const getListIntegrationProjectsContract = buildGetRoute({
|
|
|
33
33
|
},
|
|
34
34
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
35
35
|
});
|
|
36
|
+
export const getIntegrationManifestContract = buildGetRoute({
|
|
37
|
+
pathResolver: (params) => `/v1/integrations/${params.integrationId}/manifest`,
|
|
38
|
+
description: 'Get manifest for integration based on its saved mode with fallback to default manifest if no saved mode was found.',
|
|
39
|
+
requestPathParamsSchema: GET_LIST_INTEGRATION_PROJECTS_REQUEST_PATH_PARAMS_SCHEMA,
|
|
40
|
+
successResponseBodySchema: GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA,
|
|
41
|
+
responseSchemasByStatusCode: {
|
|
42
|
+
200: GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA,
|
|
43
|
+
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
44
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
45
|
+
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
46
|
+
},
|
|
47
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
48
|
+
tags: ['Manifest'],
|
|
49
|
+
});
|
|
36
50
|
//# sourceMappingURL=integrationApiSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integration/integrationApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,wDAAwD,EACxD,6CAA6C,EAC7C,sCAAsC,EACtC,uCAAuC,EACvC,8CAA8C,GAC/C,MAAM,yBAAyB,CAAA;AAEhC,MAAM,CAAC,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;IAC7D,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,kBAAkB;IACtC,WAAW,EAAE,oBAAoB;IACjC,iBAAiB,EAAE,sCAAsC;IACzD,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC;QACjC,uCAAuC;QACvC,+BAA+B;KAChC,CAAC;IACF,2BAA2B,EAAE;QAC3B,GAAG,EAAE,uCAAuC;QAC5C,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,+BAA+B,EAAE,8CAA8C,CAAC,CAAC;QAC/F,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,aAAa,CAAC;IAC9D,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,oBAAoB,MAAM,CAAC,aAAa,WAAW;IAC7E,WAAW,EAAE,wCAAwC;IACrD,uBAAuB,EAAE,wDAAwD;IACjF,yBAAyB,EAAE,CAAC,CAAC,KAAK,CAAC;QACjC,6CAA6C;QAC7C,+BAA+B;KAChC,CAAC;IACF,2BAA2B,EAAE;QAC3B,GAAG,EAAE,6CAA6C;QAClD,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;CACjD,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"integrationApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integration/integrationApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,wCAAwC,EACxC,wDAAwD,EACxD,6CAA6C,EAC7C,sCAAsC,EACtC,uCAAuC,EACvC,8CAA8C,GAC/C,MAAM,yBAAyB,CAAA;AAEhC,MAAM,CAAC,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;IAC7D,MAAM,EAAE,MAAM;IACd,YAAY,EAAE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,CAAA"}
|
|
@@ -73,4 +73,96 @@ export declare const UNSUPPORTED_PROJECT_TYPE_ERROR_RESPONSE_SCHEMA: z.ZodObject
|
|
|
73
73
|
errorCode: z.ZodLiteral<"UNSUPPORTED_PROJECT_TYPE">;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
export type UnsupportedProjectTypeErrorResponse = z.infer<typeof UNSUPPORTED_PROJECT_TYPE_ERROR_RESPONSE_SCHEMA>;
|
|
76
|
+
export declare const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
77
|
+
manifest: z.ZodObject<{
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"oauth">;
|
|
81
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<"credentials">;
|
|
83
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
type: z.ZodLiteral<"password">;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
type: z.ZodLiteral<"select">;
|
|
91
|
+
options: z.ZodArray<z.ZodObject<{
|
|
92
|
+
value: z.ZodString;
|
|
93
|
+
label: z.ZodString;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
type: z.ZodLiteral<"url">;
|
|
99
|
+
}, z.core.$strip>], "type">>;
|
|
100
|
+
}, z.core.$strip>], "type">;
|
|
101
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
query: z.ZodString;
|
|
104
|
+
type: z.ZodLiteral<"search">;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
query: z.ZodString;
|
|
108
|
+
type: z.ZodLiteral<"multiselect">;
|
|
109
|
+
options: z.ZodArray<z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
query: z.ZodString;
|
|
117
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
118
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
119
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
+
id: z.ZodString;
|
|
123
|
+
query: z.ZodString;
|
|
124
|
+
type: z.ZodLiteral<"select">;
|
|
125
|
+
options: z.ZodArray<z.ZodObject<{
|
|
126
|
+
id: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
}, z.core.$strip>>;
|
|
129
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
query: z.ZodString;
|
|
133
|
+
type: z.ZodLiteral<"async-select">;
|
|
134
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
135
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
id: z.ZodString;
|
|
138
|
+
query: z.ZodString;
|
|
139
|
+
type: z.ZodLiteral<"daterange">;
|
|
140
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
from: z.ZodString;
|
|
142
|
+
to: z.ZodString;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
}, z.core.$strip>], "type">>;
|
|
145
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
146
|
+
version: z.ZodNumber;
|
|
147
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
type: z.ZodLiteral<"primary">;
|
|
152
|
+
paths: z.ZodObject<{
|
|
153
|
+
title: z.ZodString;
|
|
154
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
155
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
type: z.ZodLiteral<"text">;
|
|
160
|
+
paths: z.ZodObject<{
|
|
161
|
+
text: z.ZodString;
|
|
162
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
}, z.core.$strip>], "type">>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export type GetIntegrationManifestResponse = z.infer<typeof GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA>;
|
|
76
168
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MANIFEST_SCHEMA } from '@lokalise/connector-api-contracts';
|
|
1
2
|
import { z } from 'zod/v4';
|
|
2
3
|
import { COMMON_ERROR_RESPONSE_SCHEMA_V2 } from "../commonRequestSchemas.js";
|
|
3
4
|
/**
|
|
@@ -47,4 +48,7 @@ export const UNSUPPORTED_PROJECT_TYPE_ERROR_CODE = 'UNSUPPORTED_PROJECT_TYPE';
|
|
|
47
48
|
export const UNSUPPORTED_PROJECT_TYPE_ERROR_RESPONSE_SCHEMA = COMMON_ERROR_RESPONSE_SCHEMA_V2.extend({
|
|
48
49
|
errorCode: z.literal(UNSUPPORTED_PROJECT_TYPE_ERROR_CODE),
|
|
49
50
|
});
|
|
51
|
+
export const GET_INTEGRATION_MANIFEST_RESPONSE_SCHEMA = z.object({
|
|
52
|
+
manifest: MANIFEST_SCHEMA,
|
|
53
|
+
});
|
|
50
54
|
//# sourceMappingURL=integrationSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationSchemas.js","sourceRoot":"","sources":["../../../src/schemas/integration/integrationSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAA;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,kBAAkB,EAAE,qBAAqB;IACzC,qBAAqB,EAAE,wBAAwB;CACvC,CAAA;AAGV,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAA;AAKV,MAAM,6CAA6C,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7D,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kDAAkD,GAC7D,6CAA6C,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,UAA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}
|
|
@@ -55,7 +55,6 @@ export declare const getIntegrationItemsContract: import("@lokalise/api-contract
|
|
|
55
55
|
limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
56
56
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
57
|
defaultLocale: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
-
contentTypes: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
59
58
|
$filter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
59
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
61
60
|
authorization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -28,7 +28,6 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
28
28
|
limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
29
29
|
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
30
|
defaultLocale: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
-
contentTypes: import("zod").ZodOptional<import("zod").ZodPreprocess<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
32
31
|
$filter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
32
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
34
33
|
authorization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
export declare const getLinkManifest: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
2
|
+
manifest: import("zod").ZodObject<{
|
|
3
|
+
name: import("zod").ZodString;
|
|
4
|
+
authentication: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
5
|
+
type: import("zod").ZodLiteral<"oauth">;
|
|
6
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
7
|
+
type: import("zod").ZodLiteral<"credentials">;
|
|
8
|
+
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
9
|
+
id: import("zod").ZodString;
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
type: import("zod").ZodLiteral<"password">;
|
|
12
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
13
|
+
id: import("zod").ZodString;
|
|
14
|
+
name: import("zod").ZodString;
|
|
15
|
+
type: import("zod").ZodLiteral<"select">;
|
|
16
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
value: import("zod").ZodString;
|
|
18
|
+
label: import("zod").ZodString;
|
|
19
|
+
}, import("zod/v4/core").$strip>>;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
id: import("zod").ZodString;
|
|
22
|
+
name: import("zod").ZodString;
|
|
23
|
+
type: import("zod").ZodLiteral<"url">;
|
|
24
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
25
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
26
|
+
filters: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
27
|
+
id: import("zod").ZodString;
|
|
28
|
+
query: import("zod").ZodString;
|
|
29
|
+
type: import("zod").ZodLiteral<"search">;
|
|
30
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
31
|
+
id: import("zod").ZodString;
|
|
32
|
+
query: import("zod").ZodString;
|
|
33
|
+
type: import("zod").ZodLiteral<"multiselect">;
|
|
34
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
35
|
+
id: import("zod").ZodString;
|
|
36
|
+
name: import("zod").ZodString;
|
|
37
|
+
}, import("zod/v4/core").$strip>>;
|
|
38
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
39
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
40
|
+
id: import("zod").ZodString;
|
|
41
|
+
query: import("zod").ZodString;
|
|
42
|
+
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
43
|
+
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
45
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
47
|
+
id: import("zod").ZodString;
|
|
48
|
+
query: import("zod").ZodString;
|
|
49
|
+
type: import("zod").ZodLiteral<"select">;
|
|
50
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
51
|
+
id: import("zod").ZodString;
|
|
52
|
+
name: import("zod").ZodString;
|
|
53
|
+
}, import("zod/v4/core").$strip>>;
|
|
54
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
56
|
+
id: import("zod").ZodString;
|
|
57
|
+
query: import("zod").ZodString;
|
|
58
|
+
type: import("zod").ZodLiteral<"async-select">;
|
|
59
|
+
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
61
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
62
|
+
id: import("zod").ZodString;
|
|
63
|
+
query: import("zod").ZodString;
|
|
64
|
+
type: import("zod").ZodLiteral<"daterange">;
|
|
65
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
66
|
+
from: import("zod").ZodString;
|
|
67
|
+
to: import("zod").ZodString;
|
|
68
|
+
}, import("zod/v4/core").$strip>>;
|
|
69
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
70
|
+
capabilities: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
71
|
+
version: import("zod").ZodNumber;
|
|
72
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
73
|
+
}, import("zod/v4/core").$strip>>;
|
|
74
|
+
columns: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
75
|
+
id: import("zod").ZodString;
|
|
76
|
+
type: import("zod").ZodLiteral<"primary">;
|
|
77
|
+
paths: import("zod").ZodObject<{
|
|
78
|
+
title: import("zod").ZodString;
|
|
79
|
+
updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
}, import("zod/v4/core").$strip>;
|
|
82
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
83
|
+
id: import("zod").ZodString;
|
|
84
|
+
type: import("zod").ZodLiteral<"text">;
|
|
85
|
+
paths: import("zod").ZodObject<{
|
|
86
|
+
text: import("zod").ZodString;
|
|
87
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
+
}, import("zod/v4/core").$strip>;
|
|
89
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
90
|
+
}, import("zod/v4/core").$strip>;
|
|
91
|
+
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
|
|
92
|
+
authorization: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
94
|
+
200: import("zod").ZodObject<{
|
|
95
|
+
manifest: import("zod").ZodObject<{
|
|
96
|
+
name: import("zod").ZodString;
|
|
97
|
+
authentication: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
98
|
+
type: import("zod").ZodLiteral<"oauth">;
|
|
99
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
100
|
+
type: import("zod").ZodLiteral<"credentials">;
|
|
101
|
+
fields: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
102
|
+
id: import("zod").ZodString;
|
|
103
|
+
name: import("zod").ZodString;
|
|
104
|
+
type: import("zod").ZodLiteral<"password">;
|
|
105
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
106
|
+
id: import("zod").ZodString;
|
|
107
|
+
name: import("zod").ZodString;
|
|
108
|
+
type: import("zod").ZodLiteral<"select">;
|
|
109
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
110
|
+
value: import("zod").ZodString;
|
|
111
|
+
label: import("zod").ZodString;
|
|
112
|
+
}, import("zod/v4/core").$strip>>;
|
|
113
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
114
|
+
id: import("zod").ZodString;
|
|
115
|
+
name: import("zod").ZodString;
|
|
116
|
+
type: import("zod").ZodLiteral<"url">;
|
|
117
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
118
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
119
|
+
filters: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
120
|
+
id: import("zod").ZodString;
|
|
121
|
+
query: import("zod").ZodString;
|
|
122
|
+
type: import("zod").ZodLiteral<"search">;
|
|
123
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
124
|
+
id: import("zod").ZodString;
|
|
125
|
+
query: import("zod").ZodString;
|
|
126
|
+
type: import("zod").ZodLiteral<"multiselect">;
|
|
127
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
128
|
+
id: import("zod").ZodString;
|
|
129
|
+
name: import("zod").ZodString;
|
|
130
|
+
}, import("zod/v4/core").$strip>>;
|
|
131
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
132
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
133
|
+
id: import("zod").ZodString;
|
|
134
|
+
query: import("zod").ZodString;
|
|
135
|
+
type: import("zod").ZodLiteral<"async-multiselect">;
|
|
136
|
+
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
137
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
138
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
139
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
140
|
+
id: import("zod").ZodString;
|
|
141
|
+
query: import("zod").ZodString;
|
|
142
|
+
type: import("zod").ZodLiteral<"select">;
|
|
143
|
+
options: import("zod").ZodArray<import("zod").ZodObject<{
|
|
144
|
+
id: import("zod").ZodString;
|
|
145
|
+
name: import("zod").ZodString;
|
|
146
|
+
}, import("zod/v4/core").$strip>>;
|
|
147
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodString>;
|
|
148
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
149
|
+
id: import("zod").ZodString;
|
|
150
|
+
query: import("zod").ZodString;
|
|
151
|
+
type: import("zod").ZodLiteral<"async-select">;
|
|
152
|
+
constraintQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
dependsOn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
155
|
+
id: import("zod").ZodString;
|
|
156
|
+
query: import("zod").ZodString;
|
|
157
|
+
type: import("zod").ZodLiteral<"daterange">;
|
|
158
|
+
defaultValue: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
159
|
+
from: import("zod").ZodString;
|
|
160
|
+
to: import("zod").ZodString;
|
|
161
|
+
}, import("zod/v4/core").$strip>>;
|
|
162
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
163
|
+
capabilities: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
164
|
+
version: import("zod").ZodNumber;
|
|
165
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
166
|
+
}, import("zod/v4/core").$strip>>;
|
|
167
|
+
columns: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
168
|
+
id: import("zod").ZodString;
|
|
169
|
+
type: import("zod").ZodLiteral<"primary">;
|
|
170
|
+
paths: import("zod").ZodObject<{
|
|
171
|
+
title: import("zod").ZodString;
|
|
172
|
+
updatedAt: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
}, import("zod/v4/core").$strip>;
|
|
175
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
176
|
+
id: import("zod").ZodString;
|
|
177
|
+
type: import("zod").ZodLiteral<"text">;
|
|
178
|
+
paths: import("zod").ZodObject<{
|
|
179
|
+
text: import("zod").ZodString;
|
|
180
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
181
|
+
}, import("zod/v4/core").$strip>;
|
|
182
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
183
|
+
}, import("zod/v4/core").$strip>;
|
|
184
|
+
}, import("zod/v4/core").$strip>;
|
|
185
|
+
401: import("zod").ZodObject<{
|
|
186
|
+
message: import("zod").ZodString;
|
|
187
|
+
errorCode: import("zod").ZodString;
|
|
188
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
189
|
+
}, import("zod/v4/core").$strip>;
|
|
190
|
+
404: import("zod").ZodObject<{
|
|
191
|
+
message: import("zod").ZodString;
|
|
192
|
+
errorCode: import("zod").ZodString;
|
|
193
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
194
|
+
}, import("zod/v4/core").$strip>;
|
|
195
|
+
500: import("zod").ZodObject<{
|
|
196
|
+
message: import("zod").ZodString;
|
|
197
|
+
errorCode: import("zod").ZodString;
|
|
198
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
199
|
+
}, import("zod/v4/core").$strip>;
|
|
200
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
2
|
+
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from "../commonRequestSchemas.js";
|
|
3
|
+
import { GET_LINK_MANIFEST_RESPONSE_SCHEMA } from "./linkSchemas.js";
|
|
4
|
+
export const getLinkManifest = buildGetRoute({
|
|
5
|
+
pathResolver: () => `/v1/link/manifest`,
|
|
6
|
+
description: 'Get connector manifest for current link based on its saved mode with fallback to default manifest if no saved mode was found.',
|
|
7
|
+
successResponseBodySchema: GET_LINK_MANIFEST_RESPONSE_SCHEMA,
|
|
8
|
+
responseSchemasByStatusCode: {
|
|
9
|
+
200: GET_LINK_MANIFEST_RESPONSE_SCHEMA,
|
|
10
|
+
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
11
|
+
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
12
|
+
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
13
|
+
},
|
|
14
|
+
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
15
|
+
tags: ['Manifest'],
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=linkApiSchemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/link/linkApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAEpE,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;IAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,mBAAmB;IACvC,WAAW,EACT,+HAA+H;IACjI,yBAAyB,EAAE,iCAAiC;IAC5D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,iCAAiC;QACtC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;QACpC,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,2BAA2B;IAChD,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC,CAAA"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const GET_LINK_MANIFEST_RESPONSE_SCHEMA: z.ZodObject<{
|
|
3
|
+
manifest: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"oauth">;
|
|
7
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"credentials">;
|
|
9
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
type: z.ZodLiteral<"password">;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
type: z.ZodLiteral<"select">;
|
|
17
|
+
options: z.ZodArray<z.ZodObject<{
|
|
18
|
+
value: z.ZodString;
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
type: z.ZodLiteral<"url">;
|
|
25
|
+
}, z.core.$strip>], "type">>;
|
|
26
|
+
}, z.core.$strip>], "type">;
|
|
27
|
+
filters: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
query: z.ZodString;
|
|
30
|
+
type: z.ZodLiteral<"search">;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
query: z.ZodString;
|
|
34
|
+
type: z.ZodLiteral<"multiselect">;
|
|
35
|
+
options: z.ZodArray<z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
query: z.ZodString;
|
|
43
|
+
type: z.ZodLiteral<"async-multiselect">;
|
|
44
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
45
|
+
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
query: z.ZodString;
|
|
50
|
+
type: z.ZodLiteral<"select">;
|
|
51
|
+
options: z.ZodArray<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
query: z.ZodString;
|
|
59
|
+
type: z.ZodLiteral<"async-select">;
|
|
60
|
+
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
61
|
+
dependsOn: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
query: z.ZodString;
|
|
65
|
+
type: z.ZodLiteral<"daterange">;
|
|
66
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
from: z.ZodString;
|
|
68
|
+
to: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>], "type">>;
|
|
71
|
+
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
+
version: z.ZodNumber;
|
|
73
|
+
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
columns: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
type: z.ZodLiteral<"primary">;
|
|
78
|
+
paths: z.ZodObject<{
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
81
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
type: z.ZodLiteral<"text">;
|
|
86
|
+
paths: z.ZodObject<{
|
|
87
|
+
text: z.ZodString;
|
|
88
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>], "type">>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type GetLinkManifestResponse = z.infer<typeof GET_LINK_MANIFEST_RESPONSE_SCHEMA>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkSchemas.js","sourceRoot":"","sources":["../../../src/schemas/link/linkSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,QAAQ,EAAE,eAAe;CAC1B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/content-type-app-engine-contracts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Content Type App Engine service contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@lokalise/api-contracts": "^6.0.0",
|
|
20
|
-
"@lokalise/connector-api-contracts": "^
|
|
20
|
+
"@lokalise/connector-api-contracts": "^4.0.2",
|
|
21
21
|
"@lokalise/content-conversion-api-schemas": "^1.1.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@biomejs/biome": "^2.
|
|
25
|
-
"@lokalise/api-common": "^
|
|
24
|
+
"@biomejs/biome": "^2.4.16",
|
|
25
|
+
"@lokalise/api-common": "^7.1.1",
|
|
26
26
|
"@lokalise/biome-config": "^3.1.0",
|
|
27
|
-
"@lokalise/tsconfig": "^
|
|
27
|
+
"@lokalise/tsconfig": "^4.0.0",
|
|
28
28
|
"rimraf": "^6.0.1",
|
|
29
29
|
"typescript": "^6.0.3",
|
|
30
30
|
"zod": "^4.1.13"
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
|
-
export declare const manifestModesResponseBody: z.ZodObject<{
|
|
3
|
-
modes: z.ZodArray<z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
}, z.core.$strip>>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type ManifestModesResponseBody = z.infer<typeof manifestModesResponseBody>;
|
|
8
|
-
export declare const getManifestContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
9
|
-
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
-
type: z.ZodLiteral<"oauth">;
|
|
11
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
-
type: z.ZodLiteral<"credentials">;
|
|
13
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
type: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
}, z.core.$strip>], "type">;
|
|
18
|
-
filters: z.ZodArray<z.ZodObject<{
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
type: z.ZodString;
|
|
21
|
-
query: z.ZodString;
|
|
22
|
-
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
23
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
24
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
27
|
-
version: z.ZodNumber;
|
|
28
|
-
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
integrationType: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
33
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>, undefined, false, false, {
|
|
35
|
-
200: z.ZodObject<{
|
|
36
|
-
authentication: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
-
type: z.ZodLiteral<"oauth">;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
type: z.ZodLiteral<"credentials">;
|
|
40
|
-
fields: z.ZodArray<z.ZodObject<{
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
type: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
}, z.core.$strip>], "type">;
|
|
45
|
-
filters: z.ZodArray<z.ZodObject<{
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
type: z.ZodString;
|
|
48
|
-
query: z.ZodString;
|
|
49
|
-
defaultValue: z.ZodOptional<z.ZodAny>;
|
|
50
|
-
constraintQuery: z.ZodOptional<z.ZodString>;
|
|
51
|
-
dependsOn: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strip>>;
|
|
53
|
-
capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
-
version: z.ZodNumber;
|
|
55
|
-
data: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
56
|
-
}, z.core.$strip>>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
401: z.ZodObject<{
|
|
59
|
-
message: z.ZodString;
|
|
60
|
-
errorCode: z.ZodString;
|
|
61
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
500: z.ZodObject<{
|
|
64
|
-
message: z.ZodString;
|
|
65
|
-
errorCode: z.ZodString;
|
|
66
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
}>;
|
|
69
|
-
export declare const getManifestModesContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
70
|
-
modes: z.ZodArray<z.ZodObject<{
|
|
71
|
-
id: z.ZodString;
|
|
72
|
-
}, z.core.$strip>>;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
integrationType: z.ZodString;
|
|
75
|
-
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
76
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
77
|
-
}, z.core.$strip>, undefined, false, false, {
|
|
78
|
-
200: z.ZodObject<{
|
|
79
|
-
modes: z.ZodArray<z.ZodObject<{
|
|
80
|
-
id: z.ZodString;
|
|
81
|
-
}, z.core.$strip>>;
|
|
82
|
-
}, z.core.$strip>;
|
|
83
|
-
401: z.ZodObject<{
|
|
84
|
-
message: z.ZodString;
|
|
85
|
-
errorCode: z.ZodString;
|
|
86
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
500: z.ZodObject<{
|
|
89
|
-
message: z.ZodString;
|
|
90
|
-
errorCode: z.ZodString;
|
|
91
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
92
|
-
}, z.core.$strip>;
|
|
93
|
-
}>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
2
|
-
import { MANIFEST_SCHEMA } from '@lokalise/connector-api-contracts';
|
|
3
|
-
import { z } from 'zod/v4';
|
|
4
|
-
import { AUTHORIZATION_HEADER_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA_V2, } from "../commonRequestSchemas.js";
|
|
5
|
-
const tags = ['Manifest'];
|
|
6
|
-
const INTEGRATION_TYPE_PATH_PARAMS_SCHEMA = z.object({
|
|
7
|
-
integrationType: z.string(),
|
|
8
|
-
});
|
|
9
|
-
export const manifestModesResponseBody = z.object({
|
|
10
|
-
modes: z.array(z.object({ id: z.string() })).min(1),
|
|
11
|
-
});
|
|
12
|
-
export const getManifestContract = buildGetRoute({
|
|
13
|
-
pathResolver: (params) => `/v1/integrations/${params.integrationType}/manifest`,
|
|
14
|
-
description: 'Get resolved manifest for the active mode',
|
|
15
|
-
requestPathParamsSchema: INTEGRATION_TYPE_PATH_PARAMS_SCHEMA,
|
|
16
|
-
successResponseBodySchema: MANIFEST_SCHEMA,
|
|
17
|
-
responseSchemasByStatusCode: {
|
|
18
|
-
200: MANIFEST_SCHEMA,
|
|
19
|
-
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
20
|
-
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
21
|
-
},
|
|
22
|
-
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
23
|
-
tags,
|
|
24
|
-
});
|
|
25
|
-
export const getManifestModesContract = buildGetRoute({
|
|
26
|
-
pathResolver: (params) => `/v1/integrations/${params.integrationType}/manifest/modes`,
|
|
27
|
-
description: 'Get the list of modes supported by the integration',
|
|
28
|
-
requestPathParamsSchema: INTEGRATION_TYPE_PATH_PARAMS_SCHEMA,
|
|
29
|
-
successResponseBodySchema: manifestModesResponseBody,
|
|
30
|
-
responseSchemasByStatusCode: {
|
|
31
|
-
200: manifestModesResponseBody,
|
|
32
|
-
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
33
|
-
500: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
34
|
-
},
|
|
35
|
-
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
36
|
-
tags,
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=manifestApiSchemas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manifestApiSchemas.js","sourceRoot":"","sources":["../../../src/schemas/manifest/manifestApiSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,4BAA4B,CAAA;AAEnC,MAAM,IAAI,GAAG,CAAC,UAAU,CAAC,CAAA;AAEzB,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,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;AAIF,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CA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