@lokalise/projects-engine-contracts 2.3.1 → 2.3.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.
@@ -3,6 +3,7 @@ export declare const getProjectContract: import("@lokalise/api-contracts").GetRo
3
3
  projectId: import("zod").ZodString;
4
4
  uuid: import("zod").ZodGUID;
5
5
  name: import("zod").ZodString;
6
+ description: import("zod").ZodString;
6
7
  baseLanguage: import("zod").ZodObject<{
7
8
  projectLanguageId: import("zod").ZodNumber;
8
9
  languageId: import("zod").ZodNumber;
@@ -40,6 +41,7 @@ export declare const getProjectContract: import("@lokalise/api-contracts").GetRo
40
41
  readonly webflowNew: "webflow-new";
41
42
  readonly FILE: "file";
42
43
  }>>;
44
+ projectType: import("zod").ZodString;
43
45
  }, import("zod/v4/core").$strip>;
44
46
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
45
47
  workspaceId: import("zod").ZodGUID;
@@ -55,6 +57,7 @@ export declare const patchProjectContract: import("@lokalise/api-contracts").Pay
55
57
  projectId: import("zod").ZodString;
56
58
  uuid: import("zod").ZodGUID;
57
59
  name: import("zod").ZodString;
60
+ description: import("zod").ZodString;
58
61
  baseLanguage: import("zod").ZodObject<{
59
62
  projectLanguageId: import("zod").ZodNumber;
60
63
  languageId: import("zod").ZodNumber;
@@ -92,6 +95,7 @@ export declare const patchProjectContract: import("@lokalise/api-contracts").Pay
92
95
  readonly webflowNew: "webflow-new";
93
96
  readonly FILE: "file";
94
97
  }>>;
98
+ projectType: import("zod").ZodString;
95
99
  }, import("zod/v4/core").$strip>;
96
100
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
97
101
  workspaceId: import("zod").ZodGUID;
@@ -108,6 +112,7 @@ export declare const getProjectsListContract: import("@lokalise/api-contracts").
108
112
  projectId: import("zod").ZodString;
109
113
  uuid: import("zod").ZodGUID;
110
114
  name: import("zod").ZodString;
115
+ description: import("zod").ZodString;
111
116
  baseLanguage: import("zod").ZodObject<{
112
117
  projectLanguageId: import("zod").ZodNumber;
113
118
  languageId: import("zod").ZodNumber;
@@ -145,6 +150,7 @@ export declare const getProjectsListContract: import("@lokalise/api-contracts").
145
150
  readonly webflowNew: "webflow-new";
146
151
  readonly FILE: "file";
147
152
  }>>;
153
+ projectType: import("zod").ZodString;
148
154
  }, import("zod/v4/core").$strip>>;
149
155
  }, import("zod/v4/core").$strip>;
150
156
  meta: import("zod").ZodObject<{
@@ -22,6 +22,7 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
22
22
  projectId: z.ZodString;
23
23
  uuid: z.ZodGUID;
24
24
  name: z.ZodString;
25
+ description: z.ZodString;
25
26
  baseLanguage: z.ZodObject<{
26
27
  projectLanguageId: z.ZodNumber;
27
28
  languageId: z.ZodNumber;
@@ -59,5 +60,6 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
59
60
  readonly webflowNew: "webflow-new";
60
61
  readonly FILE: "file";
61
62
  }>>;
63
+ projectType: z.ZodString;
62
64
  }, z.core.$strip>;
63
65
  export type Project = z.infer<typeof PROJECT_SCHEMA>;
@@ -21,6 +21,7 @@ export const PROJECT_SCHEMA = z.object({
21
21
  projectId: z.string(),
22
22
  uuid: z.guid(),
23
23
  name: z.string(),
24
+ description: z.string(),
24
25
  baseLanguage: LANGUAGE_SCHEMA,
25
26
  targetLanguages: z.array(LANGUAGE_SCHEMA),
26
27
  translationSettings: z.union([
@@ -34,5 +35,6 @@ export const PROJECT_SCHEMA = z.object({
34
35
  }),
35
36
  ]),
36
37
  contentSourceType: z.enum(ContentSourceEnum).nullable(),
38
+ projectType: z.string(),
37
39
  });
38
40
  //# sourceMappingURL=domainSchemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"domainSchemas.js","sourceRoot":"","sources":["../../src/schemas/domainSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAA;AAC3F,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;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E,eAAe;IAC7B,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACzC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC;QAC3B,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;YACnF,eAAe,EAAE,uBAAuB;SACzC,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YAC3E,eAAe,EAAE,CAAC,CAAC,IAAI,EAAE;SAC1B,CAAC;KACH,CAAC;IACF,iBAAiB,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;IACvD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAA"}
@@ -13,6 +13,7 @@ export declare const GET_PROJECTS_LIST_SUCCESS_RESPONSE_BODY: z.ZodObject<{
13
13
  projectId: z.ZodString;
14
14
  uuid: z.ZodGUID;
15
15
  name: z.ZodString;
16
+ description: z.ZodString;
16
17
  baseLanguage: z.ZodObject<{
17
18
  projectLanguageId: z.ZodNumber;
18
19
  languageId: z.ZodNumber;
@@ -50,6 +51,7 @@ export declare const GET_PROJECTS_LIST_SUCCESS_RESPONSE_BODY: z.ZodObject<{
50
51
  readonly webflowNew: "webflow-new";
51
52
  readonly FILE: "file";
52
53
  }>>;
54
+ projectType: z.ZodString;
53
55
  }, z.core.$strip>>;
54
56
  }, z.core.$strip>;
55
57
  meta: z.ZodObject<{
@@ -67,6 +69,7 @@ export declare const GET_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
67
69
  projectId: z.ZodString;
68
70
  uuid: z.ZodGUID;
69
71
  name: z.ZodString;
72
+ description: z.ZodString;
70
73
  baseLanguage: z.ZodObject<{
71
74
  projectLanguageId: z.ZodNumber;
72
75
  languageId: z.ZodNumber;
@@ -104,6 +107,7 @@ export declare const GET_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
104
107
  readonly webflowNew: "webflow-new";
105
108
  readonly FILE: "file";
106
109
  }>>;
110
+ projectType: z.ZodString;
107
111
  }, z.core.$strip>;
108
112
  }, z.core.$strip>;
109
113
  export type GetProjectSuccessResponse = z.infer<typeof GET_PROJECT_SUCCESS_RESPONSE_BODY>;
@@ -122,6 +126,7 @@ export declare const PATCH_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
122
126
  projectId: z.ZodString;
123
127
  uuid: z.ZodGUID;
124
128
  name: z.ZodString;
129
+ description: z.ZodString;
125
130
  baseLanguage: z.ZodObject<{
126
131
  projectLanguageId: z.ZodNumber;
127
132
  languageId: z.ZodNumber;
@@ -159,6 +164,7 @@ export declare const PATCH_PROJECT_SUCCESS_RESPONSE_BODY: z.ZodObject<{
159
164
  readonly webflowNew: "webflow-new";
160
165
  readonly FILE: "file";
161
166
  }>>;
167
+ projectType: z.ZodString;
162
168
  }, z.core.$strip>;
163
169
  }, z.core.$strip>;
164
170
  export type PatchProjectSuccessResponse = z.infer<typeof PATCH_PROJECT_SUCCESS_RESPONSE_BODY>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/projects-engine-contracts",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "API contracts and shared schemas for the Projects Engine service",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,8 +53,8 @@
53
53
  "@biomejs/biome": "2.4.13",
54
54
  "@lokalise/biome-config": "^3.1.1",
55
55
  "@lokalise/id-utils": "^3.0.1",
56
- "@lokalise/tsconfig": "^3.1.0",
57
- "@types/node": "^25.5.0",
56
+ "@lokalise/tsconfig": "^4.0.0",
57
+ "@types/node": "^25.6.2",
58
58
  "@vitest/coverage-v8": "^4.1.2",
59
59
  "rimraf": "^6.1.3",
60
60
  "typescript": "^6.0.2",