@encatch/schema 0.1.36 → 0.1.37

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.
@@ -137,6 +137,7 @@ export declare const fetchConfigurationListSchema: z.ZodObject<{
137
137
  $appVersion: z.ZodString;
138
138
  $app: z.ZodString;
139
139
  $language: z.ZodString;
140
+ $deviceId: z.ZodString;
140
141
  }, z.core.$strip>;
141
142
  sessionInfo: z.ZodObject<{
142
143
  $sessionId: z.ZodString;
@@ -171,6 +172,7 @@ export declare const fetchFeedbackDetailsSchema: z.ZodObject<{
171
172
  $appVersion: z.ZodString;
172
173
  $app: z.ZodString;
173
174
  $language: z.ZodString;
175
+ $deviceId: z.ZodString;
174
176
  }, z.core.$strip>;
175
177
  sessionInfo: z.ZodObject<{
176
178
  $sessionId: z.ZodString;
@@ -358,6 +360,12 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
358
360
  chip: "chip";
359
361
  dropdown: "dropdown";
360
362
  }>>;
363
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
364
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
365
+ minChars: z.ZodOptional<z.ZodNumber>;
366
+ maxChars: z.ZodOptional<z.ZodNumber>;
367
+ placeholder: z.ZodOptional<z.ZodString>;
368
+ }, z.core.$strip>>;
361
369
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
362
370
  options: z.ZodArray<z.ZodObject<{
363
371
  id: z.ZodString;
@@ -418,6 +426,12 @@ export declare const questionnaireFieldsResponseSchema: z.ZodObject<{
418
426
  chip: "chip";
419
427
  checkbox: "checkbox";
420
428
  }>>;
429
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
430
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
431
+ minChars: z.ZodOptional<z.ZodNumber>;
432
+ maxChars: z.ZodOptional<z.ZodNumber>;
433
+ placeholder: z.ZodOptional<z.ZodString>;
434
+ }, z.core.$strip>>;
421
435
  minSelections: z.ZodOptional<z.ZodNumber>;
422
436
  maxSelections: z.ZodOptional<z.ZodNumber>;
423
437
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -847,6 +861,12 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
847
861
  chip: "chip";
848
862
  dropdown: "dropdown";
849
863
  }>>;
864
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
865
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
866
+ minChars: z.ZodOptional<z.ZodNumber>;
867
+ maxChars: z.ZodOptional<z.ZodNumber>;
868
+ placeholder: z.ZodOptional<z.ZodString>;
869
+ }, z.core.$strip>>;
850
870
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
851
871
  options: z.ZodArray<z.ZodObject<{
852
872
  id: z.ZodString;
@@ -907,6 +927,12 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
907
927
  chip: "chip";
908
928
  checkbox: "checkbox";
909
929
  }>>;
930
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
931
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
932
+ minChars: z.ZodOptional<z.ZodNumber>;
933
+ maxChars: z.ZodOptional<z.ZodNumber>;
934
+ placeholder: z.ZodOptional<z.ZodString>;
935
+ }, z.core.$strip>>;
910
936
  minSelections: z.ZodOptional<z.ZodNumber>;
911
937
  maxSelections: z.ZodOptional<z.ZodNumber>;
912
938
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -22,6 +22,7 @@ export declare const deviceInfoSchema: z.ZodObject<{
22
22
  $appVersion: z.ZodString;
23
23
  $app: z.ZodString;
24
24
  $language: z.ZodString;
25
+ $deviceId: z.ZodString;
25
26
  }, z.core.$strip>;
26
27
  export declare const sessionInfoSchema: z.ZodObject<{
27
28
  $sessionId: z.ZodString;
@@ -41,6 +42,7 @@ export declare const deviceSessionInfoSchema: z.ZodObject<{
41
42
  $appVersion: z.ZodString;
42
43
  $app: z.ZodString;
43
44
  $language: z.ZodString;
45
+ $deviceId: z.ZodString;
44
46
  }, z.core.$strip>;
45
47
  sessionInfo: z.ZodObject<{
46
48
  $sessionId: z.ZodString;
@@ -27,6 +27,8 @@ export declare const questionResponseSchema: z.ZodObject<{
27
27
  singleChoice: z.ZodOptional<z.ZodString>;
28
28
  rating: z.ZodOptional<z.ZodNumber>;
29
29
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
31
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
30
32
  annotation: z.ZodOptional<z.ZodObject<{
31
33
  fileType: z.ZodString;
32
34
  fileName: z.ZodString;
@@ -52,6 +54,8 @@ export declare const responseSchema: z.ZodObject<{
52
54
  singleChoice: z.ZodOptional<z.ZodString>;
53
55
  rating: z.ZodOptional<z.ZodNumber>;
54
56
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
58
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
55
59
  annotation: z.ZodOptional<z.ZodObject<{
56
60
  fileType: z.ZodString;
57
61
  fileName: z.ZodString;
@@ -96,6 +100,7 @@ export declare const baseSubmitFeedbackSchema: z.ZodObject<{
96
100
  $appVersion: z.ZodString;
97
101
  $app: z.ZodString;
98
102
  $language: z.ZodString;
103
+ $deviceId: z.ZodString;
99
104
  }, z.core.$strip>;
100
105
  sessionInfo: z.ZodOptional<z.ZodObject<{
101
106
  $sessionId: z.ZodString;
@@ -131,6 +136,7 @@ export declare const viewFeedbackSchema: z.ZodObject<{
131
136
  $appVersion: z.ZodString;
132
137
  $app: z.ZodString;
133
138
  $language: z.ZodString;
139
+ $deviceId: z.ZodString;
134
140
  }, z.core.$strip>;
135
141
  sessionInfo: z.ZodOptional<z.ZodObject<{
136
142
  $sessionId: z.ZodString;
@@ -173,6 +179,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
173
179
  $appVersion: z.ZodString;
174
180
  $app: z.ZodString;
175
181
  $language: z.ZodString;
182
+ $deviceId: z.ZodString;
176
183
  }, z.core.$strip>;
177
184
  sessionInfo: z.ZodOptional<z.ZodObject<{
178
185
  $sessionId: z.ZodString;
@@ -211,6 +218,8 @@ export declare const submitFeedbackSchema: z.ZodObject<{
211
218
  singleChoice: z.ZodOptional<z.ZodString>;
212
219
  rating: z.ZodOptional<z.ZodNumber>;
213
220
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
222
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
214
223
  annotation: z.ZodOptional<z.ZodObject<{
215
224
  fileType: z.ZodString;
216
225
  fileName: z.ZodString;
@@ -241,6 +250,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
241
250
  $appVersion: z.ZodString;
242
251
  $app: z.ZodString;
243
252
  $language: z.ZodString;
253
+ $deviceId: z.ZodString;
244
254
  }, z.core.$strip>;
245
255
  sessionInfo: z.ZodOptional<z.ZodObject<{
246
256
  $sessionId: z.ZodString;
@@ -282,6 +292,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
282
292
  $appVersion: z.ZodString;
283
293
  $app: z.ZodString;
284
294
  $language: z.ZodString;
295
+ $deviceId: z.ZodString;
285
296
  }, z.core.$strip>;
286
297
  sessionInfo: z.ZodOptional<z.ZodObject<{
287
298
  $sessionId: z.ZodString;
@@ -320,6 +331,8 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
320
331
  singleChoice: z.ZodOptional<z.ZodString>;
321
332
  rating: z.ZodOptional<z.ZodNumber>;
322
333
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
334
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
335
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
323
336
  annotation: z.ZodOptional<z.ZodObject<{
324
337
  fileType: z.ZodString;
325
338
  fileName: z.ZodString;
@@ -21,6 +21,8 @@ export declare const AnswerItemSchema: z.ZodObject<{
21
21
  singleChoice: z.ZodOptional<z.ZodString>;
22
22
  rating: z.ZodOptional<z.ZodNumber>;
23
23
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
25
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
24
26
  annotation: z.ZodOptional<z.ZodObject<{
25
27
  fileType: z.ZodString;
26
28
  fileName: z.ZodString;
@@ -40,6 +42,8 @@ export declare const AnswerSchema: z.ZodObject<{
40
42
  singleChoice: z.ZodOptional<z.ZodString>;
41
43
  rating: z.ZodOptional<z.ZodNumber>;
42
44
  multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
46
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
43
47
  annotation: z.ZodOptional<z.ZodObject<{
44
48
  fileType: z.ZodString;
45
49
  fileName: z.ZodString;
@@ -200,6 +200,12 @@ export declare const appPropsSchema: z.ZodObject<{
200
200
  chip: "chip";
201
201
  dropdown: "dropdown";
202
202
  }>>;
203
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
204
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
205
+ minChars: z.ZodOptional<z.ZodNumber>;
206
+ maxChars: z.ZodOptional<z.ZodNumber>;
207
+ placeholder: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strip>>;
203
209
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
204
210
  options: z.ZodArray<z.ZodObject<{
205
211
  id: z.ZodString;
@@ -260,6 +266,12 @@ export declare const appPropsSchema: z.ZodObject<{
260
266
  chip: "chip";
261
267
  checkbox: "checkbox";
262
268
  }>>;
269
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
270
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
271
+ minChars: z.ZodOptional<z.ZodNumber>;
272
+ maxChars: z.ZodOptional<z.ZodNumber>;
273
+ placeholder: z.ZodOptional<z.ZodString>;
274
+ }, z.core.$strip>>;
263
275
  minSelections: z.ZodOptional<z.ZodNumber>;
264
276
  maxSelections: z.ZodOptional<z.ZodNumber>;
265
277
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -405,6 +405,12 @@ export declare const multipleChoiceSingleQuestionSchema: z.ZodObject<{
405
405
  chip: "chip";
406
406
  dropdown: "dropdown";
407
407
  }>>;
408
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
409
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
410
+ minChars: z.ZodOptional<z.ZodNumber>;
411
+ maxChars: z.ZodOptional<z.ZodNumber>;
412
+ placeholder: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>>;
408
414
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
409
415
  options: z.ZodArray<z.ZodObject<{
410
416
  id: z.ZodString;
@@ -466,6 +472,12 @@ export declare const multipleChoiceMultipleQuestionSchema: z.ZodObject<{
466
472
  chip: "chip";
467
473
  checkbox: "checkbox";
468
474
  }>>;
475
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
476
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
477
+ minChars: z.ZodOptional<z.ZodNumber>;
478
+ maxChars: z.ZodOptional<z.ZodNumber>;
479
+ placeholder: z.ZodOptional<z.ZodString>;
480
+ }, z.core.$strip>>;
469
481
  minSelections: z.ZodOptional<z.ZodNumber>;
470
482
  maxSelections: z.ZodOptional<z.ZodNumber>;
471
483
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -900,6 +912,12 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
900
912
  chip: "chip";
901
913
  dropdown: "dropdown";
902
914
  }>>;
915
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
916
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
917
+ minChars: z.ZodOptional<z.ZodNumber>;
918
+ maxChars: z.ZodOptional<z.ZodNumber>;
919
+ placeholder: z.ZodOptional<z.ZodString>;
920
+ }, z.core.$strip>>;
903
921
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
904
922
  options: z.ZodArray<z.ZodObject<{
905
923
  id: z.ZodString;
@@ -960,6 +978,12 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
960
978
  chip: "chip";
961
979
  checkbox: "checkbox";
962
980
  }>>;
981
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
982
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
983
+ minChars: z.ZodOptional<z.ZodNumber>;
984
+ maxChars: z.ZodOptional<z.ZodNumber>;
985
+ placeholder: z.ZodOptional<z.ZodString>;
986
+ }, z.core.$strip>>;
963
987
  minSelections: z.ZodOptional<z.ZodNumber>;
964
988
  maxSelections: z.ZodOptional<z.ZodNumber>;
965
989
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -336,6 +336,12 @@ export declare const formPropertiesSchema: z.ZodObject<{
336
336
  chip: "chip";
337
337
  dropdown: "dropdown";
338
338
  }>>;
339
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
340
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
341
+ minChars: z.ZodOptional<z.ZodNumber>;
342
+ maxChars: z.ZodOptional<z.ZodNumber>;
343
+ placeholder: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strip>>;
339
345
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
340
346
  options: z.ZodArray<z.ZodObject<{
341
347
  id: z.ZodString;
@@ -396,6 +402,12 @@ export declare const formPropertiesSchema: z.ZodObject<{
396
402
  chip: "chip";
397
403
  checkbox: "checkbox";
398
404
  }>>;
405
+ allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
406
+ otherTextConfig: z.ZodOptional<z.ZodObject<{
407
+ minChars: z.ZodOptional<z.ZodNumber>;
408
+ maxChars: z.ZodOptional<z.ZodNumber>;
409
+ placeholder: z.ZodOptional<z.ZodString>;
410
+ }, z.core.$strip>>;
399
411
  minSelections: z.ZodOptional<z.ZodNumber>;
400
412
  maxSelections: z.ZodOptional<z.ZodNumber>;
401
413
  randomizeOptions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "description": "TypeScript schema definitions using Zod for validation and type inference of encatch product",
5
5
  "homepage": "https://encatch.com",
6
6
  "type": "module",
@@ -18,6 +18,29 @@
18
18
  "dist",
19
19
  "README.md"
20
20
  ],
21
+ "scripts": {
22
+ "build": "pnpm run build:types && pnpm run build:bundle",
23
+ "build:types": "tsc --project tsconfig.types.json",
24
+ "build:bundle": "node esbuild.config.js",
25
+ "build:esm": "tsc --project tsconfig.esm.json",
26
+ "dev": "tsc --watch",
27
+ "clean": "rm -rf dist",
28
+ "generate-json-schemas": "tsx generate-json-schemas.ts",
29
+ "prepublishOnly": "pnpm run clean && pnpm run build",
30
+ "publish:clean": "node scripts/publish-clean.js --generate && cp package.json package.json.backup && mv package.clean.json package.json && npm publish && node scripts/publish-clean.js --restore && node scripts/publish-clean.js --cleanup",
31
+ "release": "release-it --ci",
32
+ "release:minor": "release-it minor --ci",
33
+ "release:major": "release-it major --ci",
34
+ "release:patch": "release-it patch --ci",
35
+ "release:pre": "release-it --preRelease=beta",
36
+ "release:beta": "release-it --preRelease=beta",
37
+ "release:alpha": "release-it --preRelease=alpha",
38
+ "release:rc": "release-it --preRelease=rc",
39
+ "test": "vitest",
40
+ "test:run": "vitest run",
41
+ "test:ui": "vitest --ui",
42
+ "test:coverage": "vitest --coverage"
43
+ },
21
44
  "keywords": [
22
45
  "zod",
23
46
  "typescript",
@@ -27,6 +50,7 @@
27
50
  ],
28
51
  "author": "",
29
52
  "license": "AGPL-3.0",
53
+ "packageManager": "pnpm@10.4.1",
30
54
  "dependencies": {
31
55
  "@types/node": "^24.3.0",
32
56
  "typescript": "^5.9.2",
@@ -42,27 +66,5 @@
42
66
  "release-it": "^19.0.4",
43
67
  "tsx": "^4.20.5",
44
68
  "vitest": "^3.2.4"
45
- },
46
- "scripts": {
47
- "build": "pnpm run build:types && pnpm run build:bundle",
48
- "build:types": "tsc --project tsconfig.types.json",
49
- "build:bundle": "node esbuild.config.js",
50
- "build:esm": "tsc --project tsconfig.esm.json",
51
- "dev": "tsc --watch",
52
- "clean": "rm -rf dist",
53
- "generate-json-schemas": "tsx generate-json-schemas.ts",
54
- "publish:clean": "node scripts/publish-clean.js --generate && cp package.json package.json.backup && mv package.clean.json package.json && npm publish && node scripts/publish-clean.js --restore && node scripts/publish-clean.js --cleanup",
55
- "release": "release-it --ci",
56
- "release:minor": "release-it minor --ci",
57
- "release:major": "release-it major --ci",
58
- "release:patch": "release-it patch --ci",
59
- "release:pre": "release-it --preRelease=beta",
60
- "release:beta": "release-it --preRelease=beta",
61
- "release:alpha": "release-it --preRelease=alpha",
62
- "release:rc": "release-it --preRelease=rc",
63
- "test": "vitest",
64
- "test:run": "vitest run",
65
- "test:ui": "vitest --ui",
66
- "test:coverage": "vitest --coverage"
67
69
  }
68
- }
70
+ }