@lokalise/content-type-app-engine-contracts 6.12.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/schemas/auth/authApiSchemas.d.ts +174 -133
- package/dist/schemas/auth/authApiSchemas.js +21 -24
- package/dist/schemas/auth/authApiSchemas.js.map +1 -1
- package/dist/schemas/auth/integrationAuthApiSchemas.d.ts +189 -170
- package/dist/schemas/auth/integrationAuthApiSchemas.js +17 -31
- package/dist/schemas/auth/integrationAuthApiSchemas.js.map +1 -1
- package/dist/schemas/cache/cacheApiSchemas.d.ts +59 -80
- package/dist/schemas/cache/cacheApiSchemas.js +4 -4
- package/dist/schemas/cache/cacheApiSchemas.js.map +1 -1
- package/dist/schemas/commonRequestSchemas.d.ts +1 -1
- package/dist/schemas/commonRequestSchemas.js +3 -1
- package/dist/schemas/commonRequestSchemas.js.map +1 -1
- package/dist/schemas/config/integrationConfigApiSchemas.d.ts +80 -70
- package/dist/schemas/config/integrationConfigApiSchemas.js +8 -14
- package/dist/schemas/config/integrationConfigApiSchemas.js.map +1 -1
- package/dist/schemas/connector/connectorApiSchemas.d.ts +703 -1342
- package/dist/schemas/connector/connectorApiSchemas.js +12 -14
- package/dist/schemas/connector/connectorApiSchemas.js.map +1 -1
- package/dist/schemas/content/contentApiSchemas.d.ts +704 -709
- package/dist/schemas/content/contentApiSchemas.js +51 -84
- package/dist/schemas/content/contentApiSchemas.js.map +1 -1
- package/dist/schemas/content/contentExportApiSchemas.d.ts +44 -51
- package/dist/schemas/content/contentExportApiSchemas.js +3 -4
- package/dist/schemas/content/contentExportApiSchemas.js.map +1 -1
- package/dist/schemas/env/envApiSchemas.d.ts +95 -124
- package/dist/schemas/env/envApiSchemas.js +17 -14
- package/dist/schemas/env/envApiSchemas.js.map +1 -1
- package/dist/schemas/filter/filterApiSchemas.d.ts +314 -232
- package/dist/schemas/filter/filterApiSchemas.js +20 -20
- package/dist/schemas/filter/filterApiSchemas.js.map +1 -1
- package/dist/schemas/integration/integrationApiSchemas.d.ts +702 -1343
- package/dist/schemas/integration/integrationApiSchemas.js +12 -18
- package/dist/schemas/integration/integrationApiSchemas.js.map +1 -1
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.d.ts +144 -117
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.js +10 -10
- package/dist/schemas/integrationProject/integrationProjectApiSchemas.js.map +1 -1
- package/dist/schemas/itemGroup/integrationItemGroupApiSchemas.d.ts +45 -40
- package/dist/schemas/itemGroup/integrationItemGroupApiSchemas.js +5 -4
- package/dist/schemas/itemGroup/integrationItemGroupApiSchemas.js.map +1 -1
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.d.ts +45 -43
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.js +5 -4
- package/dist/schemas/itemGroup/linkItemGroupApiSchemas.js.map +1 -1
- package/dist/schemas/itemList/integrationItemListApiSchemas.d.ts +51 -53
- package/dist/schemas/itemList/integrationItemListApiSchemas.js +5 -4
- package/dist/schemas/itemList/integrationItemListApiSchemas.js.map +1 -1
- package/dist/schemas/itemList/itemListContracts.d.ts +40 -45
- package/dist/schemas/itemList/itemListContracts.js +5 -4
- package/dist/schemas/itemList/itemListContracts.js.map +1 -1
- package/dist/schemas/language/languageApiSchemas.d.ts +29 -26
- package/dist/schemas/language/languageApiSchemas.js +4 -5
- package/dist/schemas/language/languageApiSchemas.js.map +1 -1
- package/dist/schemas/link/linkApiSchemas.d.ts +616 -1266
- package/dist/schemas/link/linkApiSchemas.js +5 -4
- package/dist/schemas/link/linkApiSchemas.js.map +1 -1
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.d.ts +143 -167
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.js +9 -7
- package/dist/schemas/processResult/integrationProcessResultsApiSchemas.js.map +1 -1
- package/dist/schemas/project/projectApiSchemas.d.ts +90 -90
- package/dist/schemas/project/projectApiSchemas.js +8 -15
- package/dist/schemas/project/projectApiSchemas.js.map +1 -1
- package/dist/schemas/schedule/scheduleApiSchemas.d.ts +2620 -2487
- package/dist/schemas/schedule/scheduleApiSchemas.js +34 -29
- package/dist/schemas/schedule/scheduleApiSchemas.js.map +1 -1
- package/dist/schemas/settings/settingsApiSchemas.d.ts +136 -189
- package/dist/schemas/settings/settingsApiSchemas.js +8 -9
- package/dist/schemas/settings/settingsApiSchemas.js.map +1 -1
- package/dist/schemas/status/statusApiSchemas.d.ts +53 -64
- package/dist/schemas/status/statusApiSchemas.js +5 -9
- package/dist/schemas/status/statusApiSchemas.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,61 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const getContentFiltersContract:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const getContentFiltersContract: Omit<{
|
|
3
|
+
readonly visibility: "internal";
|
|
4
|
+
readonly method: "get";
|
|
5
|
+
readonly summary: "List saved filters";
|
|
6
|
+
readonly description: "Get all saved filters for the current integration";
|
|
7
|
+
readonly responsesByStatusCode: {
|
|
8
|
+
200: z.ZodObject<{
|
|
9
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodGUID;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
13
|
+
relation: z.ZodEnum<{
|
|
14
|
+
AND: "AND";
|
|
15
|
+
OR: "OR";
|
|
16
|
+
}>;
|
|
17
|
+
object: z.ZodString;
|
|
18
|
+
option: z.ZodEnum<{
|
|
19
|
+
contains: "contains";
|
|
20
|
+
containsAll: "containsAll";
|
|
21
|
+
endsWith: "endsWith";
|
|
22
|
+
equals: "equals";
|
|
23
|
+
notContains: "notContains";
|
|
24
|
+
notContainsAll: "notContainsAll";
|
|
25
|
+
notEquals: "notEquals";
|
|
26
|
+
startsWith: "startsWith";
|
|
27
|
+
within: "within";
|
|
28
|
+
}>;
|
|
29
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"relative">;
|
|
31
|
+
amount: z.ZodNumber;
|
|
32
|
+
unit: z.ZodEnum<{
|
|
33
|
+
days: "days";
|
|
34
|
+
hours: "hours";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.core.$strip>]>>;
|
|
37
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
38
|
+
filter: z.ZodString;
|
|
39
|
+
}, z.core.$strip>]>;
|
|
40
|
+
createdAt: z.ZodString;
|
|
41
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
};
|
|
45
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
46
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
|
+
readonly pathResolver: () => string;
|
|
49
|
+
}, "visibility"> & {
|
|
50
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
51
|
+
};
|
|
52
|
+
export declare const putContentFilterContract: Omit<{
|
|
53
|
+
readonly visibility: "internal";
|
|
54
|
+
readonly method: "put";
|
|
55
|
+
readonly summary: "Create or update a saved filter";
|
|
56
|
+
readonly description: "Upsert filter";
|
|
57
|
+
readonly requestBodySchema: z.ZodObject<{
|
|
58
|
+
id: z.ZodOptional<z.ZodGUID>;
|
|
5
59
|
name: z.ZodString;
|
|
6
60
|
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
7
61
|
relation: z.ZodEnum<{
|
|
@@ -31,107 +85,162 @@ export declare const getContentFiltersContract: import("@lokalise/api-contracts"
|
|
|
31
85
|
}, z.core.$strip>>, z.ZodObject<{
|
|
32
86
|
filter: z.ZodString;
|
|
33
87
|
}, z.core.$strip>]>;
|
|
34
|
-
createdAt: z.ZodString;
|
|
35
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
38
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>, undefined, false, false, undefined>;
|
|
40
|
-
export declare const putContentFilterContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
|
|
41
|
-
id: z.ZodOptional<z.ZodGUID>;
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
44
|
-
relation: z.ZodEnum<{
|
|
45
|
-
AND: "AND";
|
|
46
|
-
OR: "OR";
|
|
47
|
-
}>;
|
|
48
|
-
object: z.ZodString;
|
|
49
|
-
option: z.ZodEnum<{
|
|
50
|
-
contains: "contains";
|
|
51
|
-
containsAll: "containsAll";
|
|
52
|
-
endsWith: "endsWith";
|
|
53
|
-
equals: "equals";
|
|
54
|
-
notContains: "notContains";
|
|
55
|
-
notContainsAll: "notContainsAll";
|
|
56
|
-
notEquals: "notEquals";
|
|
57
|
-
startsWith: "startsWith";
|
|
58
|
-
within: "within";
|
|
59
|
-
}>;
|
|
60
|
-
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
61
|
-
kind: z.ZodLiteral<"relative">;
|
|
62
|
-
amount: z.ZodNumber;
|
|
63
|
-
unit: z.ZodEnum<{
|
|
64
|
-
days: "days";
|
|
65
|
-
hours: "hours";
|
|
66
|
-
}>;
|
|
67
|
-
}, z.core.$strip>]>>;
|
|
68
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
69
|
-
filter: z.ZodString;
|
|
70
|
-
}, z.core.$strip>]>;
|
|
71
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
-
id: z.ZodGUID;
|
|
73
|
-
name: z.ZodString;
|
|
74
|
-
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
75
|
-
relation: z.ZodEnum<{
|
|
76
|
-
AND: "AND";
|
|
77
|
-
OR: "OR";
|
|
78
|
-
}>;
|
|
79
|
-
object: z.ZodString;
|
|
80
|
-
option: z.ZodEnum<{
|
|
81
|
-
contains: "contains";
|
|
82
|
-
containsAll: "containsAll";
|
|
83
|
-
endsWith: "endsWith";
|
|
84
|
-
equals: "equals";
|
|
85
|
-
notContains: "notContains";
|
|
86
|
-
notContainsAll: "notContainsAll";
|
|
87
|
-
notEquals: "notEquals";
|
|
88
|
-
startsWith: "startsWith";
|
|
89
|
-
within: "within";
|
|
90
|
-
}>;
|
|
91
|
-
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
92
|
-
kind: z.ZodLiteral<"relative">;
|
|
93
|
-
amount: z.ZodNumber;
|
|
94
|
-
unit: z.ZodEnum<{
|
|
95
|
-
days: "days";
|
|
96
|
-
hours: "hours";
|
|
97
|
-
}>;
|
|
98
|
-
}, z.core.$strip>]>>;
|
|
99
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
100
|
-
filter: z.ZodString;
|
|
101
|
-
}, z.core.$strip>]>;
|
|
102
|
-
createdAt: z.ZodString;
|
|
103
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
105
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strip>, undefined, false, false, {
|
|
107
|
-
400: z.ZodObject<{
|
|
108
|
-
message: z.ZodString;
|
|
109
|
-
code: z.ZodString;
|
|
110
|
-
errorCode: z.ZodString;
|
|
111
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
112
88
|
}, z.core.$strip>;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
89
|
+
readonly responsesByStatusCode: {
|
|
90
|
+
200: z.ZodObject<{
|
|
91
|
+
id: z.ZodGUID;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
94
|
+
relation: z.ZodEnum<{
|
|
95
|
+
AND: "AND";
|
|
96
|
+
OR: "OR";
|
|
97
|
+
}>;
|
|
98
|
+
object: z.ZodString;
|
|
99
|
+
option: z.ZodEnum<{
|
|
100
|
+
contains: "contains";
|
|
101
|
+
containsAll: "containsAll";
|
|
102
|
+
endsWith: "endsWith";
|
|
103
|
+
equals: "equals";
|
|
104
|
+
notContains: "notContains";
|
|
105
|
+
notContainsAll: "notContainsAll";
|
|
106
|
+
notEquals: "notEquals";
|
|
107
|
+
startsWith: "startsWith";
|
|
108
|
+
within: "within";
|
|
109
|
+
}>;
|
|
110
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
111
|
+
kind: z.ZodLiteral<"relative">;
|
|
112
|
+
amount: z.ZodNumber;
|
|
113
|
+
unit: z.ZodEnum<{
|
|
114
|
+
days: "days";
|
|
115
|
+
hours: "hours";
|
|
116
|
+
}>;
|
|
117
|
+
}, z.core.$strip>]>>;
|
|
118
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
119
|
+
filter: z.ZodString;
|
|
120
|
+
}, z.core.$strip>]>;
|
|
121
|
+
createdAt: z.ZodString;
|
|
122
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
400: z.ZodObject<{
|
|
125
|
+
message: z.ZodString;
|
|
126
|
+
code: z.ZodString;
|
|
127
|
+
errorCode: z.ZodString;
|
|
128
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
409: z.ZodObject<{
|
|
131
|
+
message: z.ZodString;
|
|
132
|
+
code: z.ZodString;
|
|
133
|
+
errorCode: z.ZodString;
|
|
134
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
};
|
|
137
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
138
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$loose>;
|
|
140
|
+
readonly pathResolver: () => string;
|
|
141
|
+
}, "visibility"> & {
|
|
142
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
143
|
+
};
|
|
144
|
+
export declare const deleteContentFilterContract: Omit<{
|
|
145
|
+
readonly visibility: "internal";
|
|
146
|
+
readonly method: "delete";
|
|
147
|
+
readonly summary: "Delete existing filter";
|
|
148
|
+
readonly description: "Delete existing filter by ID";
|
|
149
|
+
readonly responsesByStatusCode: {
|
|
150
|
+
204: import("@lokalise/api-contracts").NoBodyContentResponseEntry;
|
|
151
|
+
404: z.ZodObject<{
|
|
152
|
+
message: z.ZodString;
|
|
153
|
+
code: z.ZodString;
|
|
154
|
+
errorCode: z.ZodString;
|
|
155
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
};
|
|
158
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
159
|
+
filterId: z.ZodGUID;
|
|
118
160
|
}, z.core.$strip>;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
161
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
162
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$loose>;
|
|
164
|
+
readonly pathResolver: ({ filterId }: {
|
|
165
|
+
filterId: string;
|
|
166
|
+
}) => string;
|
|
167
|
+
}, "visibility"> & {
|
|
168
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
169
|
+
};
|
|
170
|
+
export declare const getIntegrationContentFiltersContract: Omit<{
|
|
171
|
+
readonly visibility: "internal";
|
|
172
|
+
readonly method: "get";
|
|
173
|
+
readonly summary: "List saved integration filters";
|
|
174
|
+
readonly description: "Get all saved filters for an integration";
|
|
175
|
+
readonly responsesByStatusCode: {
|
|
176
|
+
200: z.ZodObject<{
|
|
177
|
+
filters: z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodGUID;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
181
|
+
relation: z.ZodEnum<{
|
|
182
|
+
AND: "AND";
|
|
183
|
+
OR: "OR";
|
|
184
|
+
}>;
|
|
185
|
+
object: z.ZodString;
|
|
186
|
+
option: z.ZodEnum<{
|
|
187
|
+
contains: "contains";
|
|
188
|
+
containsAll: "containsAll";
|
|
189
|
+
endsWith: "endsWith";
|
|
190
|
+
equals: "equals";
|
|
191
|
+
notContains: "notContains";
|
|
192
|
+
notContainsAll: "notContainsAll";
|
|
193
|
+
notEquals: "notEquals";
|
|
194
|
+
startsWith: "startsWith";
|
|
195
|
+
within: "within";
|
|
196
|
+
}>;
|
|
197
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
198
|
+
kind: z.ZodLiteral<"relative">;
|
|
199
|
+
amount: z.ZodNumber;
|
|
200
|
+
unit: z.ZodEnum<{
|
|
201
|
+
days: "days";
|
|
202
|
+
hours: "hours";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strip>]>>;
|
|
205
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
206
|
+
filter: z.ZodString;
|
|
207
|
+
}, z.core.$strip>]>;
|
|
208
|
+
createdAt: z.ZodString;
|
|
209
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
401: z.ZodObject<{
|
|
213
|
+
message: z.ZodString;
|
|
214
|
+
code: z.ZodString;
|
|
215
|
+
errorCode: z.ZodString;
|
|
216
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
404: z.ZodObject<{
|
|
219
|
+
message: z.ZodString;
|
|
220
|
+
code: z.ZodString;
|
|
221
|
+
errorCode: z.ZodString;
|
|
222
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
};
|
|
225
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
226
|
+
integrationId: z.ZodGUID;
|
|
130
227
|
}, z.core.$strip>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
228
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
229
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, z.core.$loose>;
|
|
231
|
+
readonly pathResolver: ({ integrationId }: {
|
|
232
|
+
integrationId: string;
|
|
233
|
+
}) => string;
|
|
234
|
+
}, "visibility"> & {
|
|
235
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
236
|
+
};
|
|
237
|
+
export declare const putIntegrationContentFilterContract: Omit<{
|
|
238
|
+
readonly visibility: "internal";
|
|
239
|
+
readonly method: "put";
|
|
240
|
+
readonly summary: "Create or update a saved integration filter";
|
|
241
|
+
readonly description: "Upsert an integration filter";
|
|
242
|
+
readonly requestBodySchema: z.ZodObject<{
|
|
243
|
+
id: z.ZodOptional<z.ZodGUID>;
|
|
135
244
|
name: z.ZodString;
|
|
136
245
|
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
137
246
|
relation: z.ZodEnum<{
|
|
@@ -161,137 +270,110 @@ export declare const getIntegrationContentFiltersContract: import("@lokalise/api
|
|
|
161
270
|
}, z.core.$strip>>, z.ZodObject<{
|
|
162
271
|
filter: z.ZodString;
|
|
163
272
|
}, z.core.$strip>]>;
|
|
164
|
-
createdAt: z.ZodString;
|
|
165
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
-
}, z.core.$strip>>;
|
|
167
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
-
integrationId: z.ZodGUID;
|
|
169
|
-
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
170
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
171
|
-
}, z.core.$strip>, undefined, false, false, {
|
|
172
|
-
401: z.ZodObject<{
|
|
173
|
-
message: z.ZodString;
|
|
174
|
-
code: z.ZodString;
|
|
175
|
-
errorCode: z.ZodString;
|
|
176
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
177
273
|
}, z.core.$strip>;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}, z.core.$strip
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
days: "days";
|
|
241
|
-
hours: "hours";
|
|
242
|
-
}>;
|
|
243
|
-
}, z.core.$strip>]>>;
|
|
244
|
-
}, z.core.$strip>>, z.ZodObject<{
|
|
245
|
-
filter: z.ZodString;
|
|
246
|
-
}, z.core.$strip>]>;
|
|
247
|
-
createdAt: z.ZodString;
|
|
248
|
-
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
-
integrationId: z.ZodGUID;
|
|
251
|
-
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
252
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
253
|
-
}, z.core.$strip>, undefined, false, false, {
|
|
254
|
-
400: z.ZodObject<{
|
|
255
|
-
message: z.ZodString;
|
|
256
|
-
code: z.ZodString;
|
|
257
|
-
errorCode: z.ZodString;
|
|
258
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
401: z.ZodObject<{
|
|
261
|
-
message: z.ZodString;
|
|
262
|
-
code: z.ZodString;
|
|
263
|
-
errorCode: z.ZodString;
|
|
264
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
265
|
-
}, z.core.$strip>;
|
|
266
|
-
404: z.ZodObject<{
|
|
267
|
-
message: z.ZodString;
|
|
268
|
-
code: z.ZodString;
|
|
269
|
-
errorCode: z.ZodString;
|
|
270
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
271
|
-
}, z.core.$strip>;
|
|
272
|
-
409: z.ZodObject<{
|
|
273
|
-
message: z.ZodString;
|
|
274
|
-
code: z.ZodString;
|
|
275
|
-
errorCode: z.ZodString;
|
|
276
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
277
|
-
}, z.core.$strip>;
|
|
278
|
-
}>;
|
|
279
|
-
export declare const deleteIntegrationContentFilterContract: import("@lokalise/api-contracts").DeleteRouteDefinition<z.ZodUndefined, z.ZodObject<{
|
|
280
|
-
integrationId: z.ZodGUID;
|
|
281
|
-
filterId: z.ZodGUID;
|
|
282
|
-
}, z.core.$strip>, undefined, z.ZodObject<{
|
|
283
|
-
authorization: z.ZodOptional<z.ZodString>;
|
|
284
|
-
}, z.core.$strip>, undefined, false, true, {
|
|
285
|
-
401: z.ZodObject<{
|
|
286
|
-
message: z.ZodString;
|
|
287
|
-
code: z.ZodString;
|
|
288
|
-
errorCode: z.ZodString;
|
|
289
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
274
|
+
readonly responsesByStatusCode: {
|
|
275
|
+
200: z.ZodObject<{
|
|
276
|
+
id: z.ZodGUID;
|
|
277
|
+
name: z.ZodString;
|
|
278
|
+
definition: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
279
|
+
relation: z.ZodEnum<{
|
|
280
|
+
AND: "AND";
|
|
281
|
+
OR: "OR";
|
|
282
|
+
}>;
|
|
283
|
+
object: z.ZodString;
|
|
284
|
+
option: z.ZodEnum<{
|
|
285
|
+
contains: "contains";
|
|
286
|
+
containsAll: "containsAll";
|
|
287
|
+
endsWith: "endsWith";
|
|
288
|
+
equals: "equals";
|
|
289
|
+
notContains: "notContains";
|
|
290
|
+
notContainsAll: "notContainsAll";
|
|
291
|
+
notEquals: "notEquals";
|
|
292
|
+
startsWith: "startsWith";
|
|
293
|
+
within: "within";
|
|
294
|
+
}>;
|
|
295
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
296
|
+
kind: z.ZodLiteral<"relative">;
|
|
297
|
+
amount: z.ZodNumber;
|
|
298
|
+
unit: z.ZodEnum<{
|
|
299
|
+
days: "days";
|
|
300
|
+
hours: "hours";
|
|
301
|
+
}>;
|
|
302
|
+
}, z.core.$strip>]>>;
|
|
303
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
304
|
+
filter: z.ZodString;
|
|
305
|
+
}, z.core.$strip>]>;
|
|
306
|
+
createdAt: z.ZodString;
|
|
307
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
400: z.ZodObject<{
|
|
310
|
+
message: z.ZodString;
|
|
311
|
+
code: z.ZodString;
|
|
312
|
+
errorCode: z.ZodString;
|
|
313
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
401: z.ZodObject<{
|
|
316
|
+
message: z.ZodString;
|
|
317
|
+
code: z.ZodString;
|
|
318
|
+
errorCode: z.ZodString;
|
|
319
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
404: z.ZodObject<{
|
|
322
|
+
message: z.ZodString;
|
|
323
|
+
code: z.ZodString;
|
|
324
|
+
errorCode: z.ZodString;
|
|
325
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
409: z.ZodObject<{
|
|
328
|
+
message: z.ZodString;
|
|
329
|
+
code: z.ZodString;
|
|
330
|
+
errorCode: z.ZodString;
|
|
331
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
};
|
|
334
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
335
|
+
integrationId: z.ZodGUID;
|
|
290
336
|
}, z.core.$strip>;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
337
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
338
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, z.core.$loose>;
|
|
340
|
+
readonly pathResolver: ({ integrationId }: {
|
|
341
|
+
integrationId: string;
|
|
342
|
+
}) => string;
|
|
343
|
+
}, "visibility"> & {
|
|
344
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
345
|
+
};
|
|
346
|
+
export declare const deleteIntegrationContentFilterContract: Omit<{
|
|
347
|
+
readonly visibility: "internal";
|
|
348
|
+
readonly method: "delete";
|
|
349
|
+
readonly summary: "Delete an existing integration filter";
|
|
350
|
+
readonly description: "Delete an integration filter by ID";
|
|
351
|
+
readonly responsesByStatusCode: {
|
|
352
|
+
204: import("@lokalise/api-contracts").NoBodyContentResponseEntry;
|
|
353
|
+
401: z.ZodObject<{
|
|
354
|
+
message: z.ZodString;
|
|
355
|
+
code: z.ZodString;
|
|
356
|
+
errorCode: z.ZodString;
|
|
357
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
404: z.ZodObject<{
|
|
360
|
+
message: z.ZodString;
|
|
361
|
+
code: z.ZodString;
|
|
362
|
+
errorCode: z.ZodString;
|
|
363
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
};
|
|
366
|
+
readonly requestPathParamsSchema: z.ZodObject<{
|
|
367
|
+
integrationId: z.ZodGUID;
|
|
368
|
+
filterId: z.ZodGUID;
|
|
296
369
|
}, z.core.$strip>;
|
|
297
|
-
|
|
370
|
+
readonly requestHeaderSchema: z.ZodObject<{
|
|
371
|
+
authorization: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$loose>;
|
|
373
|
+
readonly pathResolver: ({ integrationId, filterId }: {
|
|
374
|
+
integrationId: string;
|
|
375
|
+
filterId: string;
|
|
376
|
+
}) => string;
|
|
377
|
+
}, "visibility"> & {
|
|
378
|
+
visibility: import("@lokalise/api-contracts").RouteVisibility;
|
|
379
|
+
};
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineApiContract, noBodyResponse } 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
4
|
import { CONTENT_FILTER_PATH_PARAMS, CONTENT_FILTER_SCHEMA, GET_CONTENT_FILTERS_RESPONSE, PUT_CONTENT_FILTER_REQUEST_BODY, } from './filterSchemas.js';
|
|
5
|
-
export const getContentFiltersContract =
|
|
5
|
+
export const getContentFiltersContract = defineApiContract({
|
|
6
6
|
visibility: 'internal',
|
|
7
7
|
method: 'get',
|
|
8
8
|
summary: 'List saved filters',
|
|
9
9
|
description: 'Get all saved filters for the current integration',
|
|
10
|
-
|
|
10
|
+
responsesByStatusCode: {
|
|
11
|
+
200: GET_CONTENT_FILTERS_RESPONSE,
|
|
12
|
+
},
|
|
11
13
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
12
14
|
pathResolver: () => '/v1/filters',
|
|
13
15
|
});
|
|
14
|
-
export const putContentFilterContract =
|
|
16
|
+
export const putContentFilterContract = defineApiContract({
|
|
15
17
|
visibility: 'internal',
|
|
16
18
|
method: 'put',
|
|
17
19
|
summary: 'Create or update a saved filter',
|
|
18
20
|
description: 'Upsert filter',
|
|
19
21
|
requestBodySchema: PUT_CONTENT_FILTER_REQUEST_BODY,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
responsesByStatusCode: {
|
|
23
|
+
200: CONTENT_FILTER_SCHEMA,
|
|
22
24
|
400: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
23
25
|
409: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
24
26
|
},
|
|
25
27
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
26
28
|
pathResolver: () => `/v1/filters`,
|
|
27
29
|
});
|
|
28
|
-
export const deleteContentFilterContract =
|
|
30
|
+
export const deleteContentFilterContract = defineApiContract({
|
|
29
31
|
visibility: 'internal',
|
|
30
32
|
method: 'delete',
|
|
31
33
|
summary: 'Delete existing filter',
|
|
32
34
|
description: 'Delete existing filter by ID',
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
responseSchemasByStatusCode: {
|
|
35
|
+
responsesByStatusCode: {
|
|
36
|
+
204: noBodyResponse({ description: 'Filter deleted' }),
|
|
36
37
|
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
37
38
|
},
|
|
38
39
|
requestPathParamsSchema: CONTENT_FILTER_PATH_PARAMS,
|
|
@@ -45,13 +46,13 @@ const INTEGRATION_FILTER_PATH_PARAMS = z.object({
|
|
|
45
46
|
const INTEGRATION_FILTER_ITEM_PATH_PARAMS = INTEGRATION_FILTER_PATH_PARAMS.extend({
|
|
46
47
|
filterId: z.guid(),
|
|
47
48
|
});
|
|
48
|
-
export const getIntegrationContentFiltersContract =
|
|
49
|
+
export const getIntegrationContentFiltersContract = defineApiContract({
|
|
49
50
|
visibility: 'internal',
|
|
50
51
|
method: 'get',
|
|
51
52
|
summary: 'List saved integration filters',
|
|
52
53
|
description: 'Get all saved filters for an integration',
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
responsesByStatusCode: {
|
|
55
|
+
200: GET_CONTENT_FILTERS_RESPONSE,
|
|
55
56
|
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
56
57
|
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
57
58
|
},
|
|
@@ -59,14 +60,14 @@ export const getIntegrationContentFiltersContract = buildRestContract({
|
|
|
59
60
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
60
61
|
pathResolver: ({ integrationId }) => `/v1/integrations/${integrationId}/filters`,
|
|
61
62
|
});
|
|
62
|
-
export const putIntegrationContentFilterContract =
|
|
63
|
+
export const putIntegrationContentFilterContract = defineApiContract({
|
|
63
64
|
visibility: 'internal',
|
|
64
65
|
method: 'put',
|
|
65
66
|
summary: 'Create or update a saved integration filter',
|
|
66
67
|
description: 'Upsert an integration filter',
|
|
67
68
|
requestBodySchema: PUT_CONTENT_FILTER_REQUEST_BODY,
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
responsesByStatusCode: {
|
|
70
|
+
200: CONTENT_FILTER_SCHEMA,
|
|
70
71
|
400: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
71
72
|
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
72
73
|
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
@@ -76,14 +77,13 @@ export const putIntegrationContentFilterContract = buildRestContract({
|
|
|
76
77
|
requestHeaderSchema: AUTHORIZATION_HEADER_SCHEMA,
|
|
77
78
|
pathResolver: ({ integrationId }) => `/v1/integrations/${integrationId}/filters`,
|
|
78
79
|
});
|
|
79
|
-
export const deleteIntegrationContentFilterContract =
|
|
80
|
+
export const deleteIntegrationContentFilterContract = defineApiContract({
|
|
80
81
|
visibility: 'internal',
|
|
81
82
|
method: 'delete',
|
|
82
83
|
summary: 'Delete an existing integration filter',
|
|
83
84
|
description: 'Delete an integration filter by ID',
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
responseSchemasByStatusCode: {
|
|
85
|
+
responsesByStatusCode: {
|
|
86
|
+
204: noBodyResponse({ description: 'Filter deleted' }),
|
|
87
87
|
401: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
88
88
|
404: COMMON_ERROR_RESPONSE_SCHEMA_V2,
|
|
89
89
|
},
|