@lokalise/connector-api-contracts 1.2.1 → 1.2.2
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/schemas/authSchemas.d.ts +8 -8
- package/dist/schemas/commonSchemas.d.ts +3 -3
- package/dist/schemas/commonSchemas.js +3 -3
- package/dist/schemas/envSchemas.d.ts +2 -2
- package/dist/schemas/itemListContract.d.ts +2 -2
- package/dist/schemas/publishSchemas.d.ts +2 -2
- package/dist/schemas/translateSchemas.d.ts +2 -2
- package/package.json +1 -1
|
@@ -12,20 +12,20 @@ export declare const getAuthContract: import("@lokalise/api-contracts").GetRoute
|
|
|
12
12
|
apiToken: "apiToken";
|
|
13
13
|
}>;
|
|
14
14
|
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
15
|
-
'
|
|
16
|
-
'
|
|
15
|
+
'ce-config': z.ZodString;
|
|
16
|
+
'ce-auth': z.ZodString;
|
|
17
17
|
}, z.core.$strip>, false, false>;
|
|
18
18
|
export declare const postAuthResponseBody: z.ZodObject<{}, z.core.$loose>;
|
|
19
19
|
export type PostAuthResponseBody = Record<string, unknown> & {
|
|
20
20
|
url?: string;
|
|
21
21
|
};
|
|
22
22
|
export declare const postAuthContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
|
|
23
|
-
'
|
|
24
|
-
'
|
|
23
|
+
'ce-config': z.ZodString;
|
|
24
|
+
'ce-auth': z.ZodString;
|
|
25
25
|
}, z.core.$strip>, false, false>;
|
|
26
26
|
export declare const postAuthRefreshContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodNever, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
|
|
27
|
-
'
|
|
28
|
-
'
|
|
27
|
+
'ce-config': z.ZodString;
|
|
28
|
+
'ce-auth': z.ZodString;
|
|
29
29
|
}, z.core.$strip>, false, false>;
|
|
30
30
|
export declare const postAuthResponseRequestBody: z.ZodObject<{
|
|
31
31
|
query: z.ZodObject<{}, z.core.$loose>;
|
|
@@ -40,6 +40,6 @@ export declare const postAuthResponseContract: import("@lokalise/api-contracts")
|
|
|
40
40
|
body: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
41
41
|
redirectUrl: z.ZodString;
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$loose>, undefined, undefined, z.ZodObject<{
|
|
43
|
-
'
|
|
44
|
-
'
|
|
43
|
+
'ce-config': z.ZodString;
|
|
44
|
+
'ce-auth': z.ZodString;
|
|
45
45
|
}, z.core.$strip>, false, false>;
|
|
@@ -34,9 +34,9 @@ export type CommonErrorResponse = z.infer<typeof COMMON_ERROR_RESPONSE_SCHEMA>;
|
|
|
34
34
|
* These headers are used before the initial setup was established
|
|
35
35
|
*/
|
|
36
36
|
export declare const CONNECTOR_REQUEST_HEADERS_SCHEMA_PRE_SETUP: z.ZodObject<{
|
|
37
|
-
'
|
|
37
|
+
'ce-config': z.ZodString;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
export declare const CONNECTOR_REQUEST_HEADERS_SCHEMA: z.ZodObject<{
|
|
40
|
-
'
|
|
41
|
-
'
|
|
40
|
+
'ce-config': z.ZodString;
|
|
41
|
+
'ce-auth': z.ZodString;
|
|
42
42
|
}, z.core.$strip>;
|
|
@@ -30,10 +30,10 @@ export const COMMON_ERROR_RESPONSE_SCHEMA = z.object({
|
|
|
30
30
|
* These headers are used before the initial setup was established
|
|
31
31
|
*/
|
|
32
32
|
export const CONNECTOR_REQUEST_HEADERS_SCHEMA_PRE_SETUP = z.object({
|
|
33
|
-
'
|
|
33
|
+
'ce-config': z.string(),
|
|
34
34
|
});
|
|
35
35
|
export const CONNECTOR_REQUEST_HEADERS_SCHEMA = z.object({
|
|
36
|
-
'
|
|
37
|
-
'
|
|
36
|
+
'ce-config': z.string(),
|
|
37
|
+
'ce-auth': z.string(),
|
|
38
38
|
});
|
|
39
39
|
//# sourceMappingURL=commonSchemas.js.map
|
|
@@ -29,6 +29,6 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
|
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
31
31
|
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
32
|
-
'
|
|
33
|
-
'
|
|
32
|
+
'ce-config': z.ZodString;
|
|
33
|
+
'ce-auth': z.ZodString;
|
|
34
34
|
}, z.core.$strip>, false, false>;
|
|
@@ -48,6 +48,6 @@ export declare const getItemListContract: import("@lokalise/api-contracts").GetR
|
|
|
48
48
|
limit: z.ZodOptional<z.ZodString>;
|
|
49
49
|
cursor: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
'
|
|
52
|
-
'
|
|
51
|
+
'ce-config': z.ZodString;
|
|
52
|
+
'ce-auth': z.ZodString;
|
|
53
53
|
}, z.core.$strip>, false, false>;
|
|
@@ -40,6 +40,6 @@ export declare const postPublishContract: import("@lokalise/api-contracts").Payl
|
|
|
40
40
|
}, z.core.$strip>;
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
42
|
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
43
|
-
'
|
|
44
|
-
'
|
|
43
|
+
'ce-config': z.ZodString;
|
|
44
|
+
'ce-auth': z.ZodString;
|
|
45
45
|
}, z.core.$strip>, false, false>;
|
|
@@ -49,6 +49,6 @@ export declare const postTranslateContract: import("@lokalise/api-contracts").Pa
|
|
|
49
49
|
}, z.core.$strip>;
|
|
50
50
|
}, z.core.$strip>>;
|
|
51
51
|
}, z.core.$strip>, undefined, undefined, z.ZodObject<{
|
|
52
|
-
'
|
|
53
|
-
'
|
|
52
|
+
'ce-config': z.ZodString;
|
|
53
|
+
'ce-auth': z.ZodString;
|
|
54
54
|
}, z.core.$strip>, false, false>;
|