@lokalise/content-type-app-engine-contracts 2.26.0 → 2.27.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.
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const postCreateIntegrationContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
5
|
+
readonly CLASSIC: "CLASSIC";
|
|
6
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
7
|
+
}>>;
|
|
4
8
|
useCase: z.ZodLiteral<"new-project">;
|
|
5
9
|
name: z.ZodString;
|
|
6
10
|
description: z.ZodString;
|
|
@@ -12,6 +16,10 @@ export declare const postCreateIntegrationContract: import("@lokalise/api-contra
|
|
|
12
16
|
}>;
|
|
13
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
14
18
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
19
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
readonly CLASSIC: "CLASSIC";
|
|
21
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
22
|
+
}>>;
|
|
15
23
|
useCase: z.ZodLiteral<"existing-project">;
|
|
16
24
|
projectId: z.ZodString;
|
|
17
25
|
}, z.core.$strip>], "useCase">, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -4,8 +4,17 @@ export declare const ProjectEnum: {
|
|
|
4
4
|
readonly marketingIntegrations: "marketing_integrations";
|
|
5
5
|
};
|
|
6
6
|
export type ProjectEnumType = (typeof ProjectEnum)[keyof typeof ProjectEnum];
|
|
7
|
+
export declare const IntegrationSystemTypeEnum: {
|
|
8
|
+
readonly CLASSIC: "CLASSIC";
|
|
9
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
10
|
+
};
|
|
11
|
+
export type IntegrationSystemEnumType = (typeof IntegrationSystemTypeEnum)[keyof typeof IntegrationSystemTypeEnum];
|
|
7
12
|
export declare const POST_CREATE_INTEGRATION_NEW_PROJECT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
8
13
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
14
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
15
|
+
readonly CLASSIC: "CLASSIC";
|
|
16
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
17
|
+
}>>;
|
|
9
18
|
useCase: z.ZodLiteral<"new-project">;
|
|
10
19
|
name: z.ZodString;
|
|
11
20
|
description: z.ZodString;
|
|
@@ -19,12 +28,20 @@ export declare const POST_CREATE_INTEGRATION_NEW_PROJECT_PAYLOAD_SCHEMA: z.ZodOb
|
|
|
19
28
|
export type PostCreateIntegrationNewProjectPayload = z.infer<typeof POST_CREATE_INTEGRATION_NEW_PROJECT_PAYLOAD_SCHEMA>;
|
|
20
29
|
export declare const POST_CREATE_INTEGRATION_EXISTING_PROJECT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
21
30
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
31
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
readonly CLASSIC: "CLASSIC";
|
|
33
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
34
|
+
}>>;
|
|
22
35
|
useCase: z.ZodLiteral<"existing-project">;
|
|
23
36
|
projectId: z.ZodString;
|
|
24
37
|
}, z.core.$strip>;
|
|
25
38
|
export type PostCreateIntegrationExistingProjectPayload = z.infer<typeof POST_CREATE_INTEGRATION_EXISTING_PROJECT_PAYLOAD_SCHEMA>;
|
|
26
39
|
export declare const POST_CREATE_INTEGRATION_PAYLOAD_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
40
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
41
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
readonly CLASSIC: "CLASSIC";
|
|
43
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
44
|
+
}>>;
|
|
28
45
|
useCase: z.ZodLiteral<"new-project">;
|
|
29
46
|
name: z.ZodString;
|
|
30
47
|
description: z.ZodString;
|
|
@@ -36,6 +53,10 @@ export declare const POST_CREATE_INTEGRATION_PAYLOAD_SCHEMA: z.ZodDiscriminatedU
|
|
|
36
53
|
}>;
|
|
37
54
|
}, z.core.$strip>, z.ZodObject<{
|
|
38
55
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
56
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
readonly CLASSIC: "CLASSIC";
|
|
58
|
+
readonly NEXTGEN: "NEXTGEN";
|
|
59
|
+
}>>;
|
|
39
60
|
useCase: z.ZodLiteral<"existing-project">;
|
|
40
61
|
projectId: z.ZodString;
|
|
41
62
|
}, z.core.$strip>], "useCase">;
|
|
@@ -4,9 +4,14 @@ export const ProjectEnum = {
|
|
|
4
4
|
contentIntegration: 'content_integration',
|
|
5
5
|
marketingIntegrations: 'marketing_integrations',
|
|
6
6
|
};
|
|
7
|
+
export const IntegrationSystemTypeEnum = {
|
|
8
|
+
CLASSIC: 'CLASSIC',
|
|
9
|
+
NEXTGEN: 'NEXTGEN',
|
|
10
|
+
};
|
|
7
11
|
const POST_CREATE_INTEGRATION_COMMON_PAYLOAD_SCHEMA = z.object({
|
|
8
12
|
useCase: z.enum(['new-project', 'existing-project']),
|
|
9
13
|
config: z.record(z.string(), z.any()),
|
|
14
|
+
type: z.enum(IntegrationSystemTypeEnum).optional().describe('Defaults to NEXTGEN'),
|
|
10
15
|
});
|
|
11
16
|
export const POST_CREATE_INTEGRATION_NEW_PROJECT_PAYLOAD_SCHEMA = POST_CREATE_INTEGRATION_COMMON_PAYLOAD_SCHEMA.extend({
|
|
12
17
|
useCase: z.literal('new-project'),
|
|
@@ -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,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,kBAAkB,EAAE,qBAAqB;IACzC,qBAAqB,EAAE,wBAAwB;CACvC,CAAA;AAGV,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;
|
|
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,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;IACrC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,q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