@encatch/schema 0.1.16 → 0.1.18

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.
@@ -0,0 +1,68 @@
1
+ import { z } from "zod";
2
+ export declare const deviceThemeSchema: z.ZodEnum<{
3
+ light: "light";
4
+ dark: "dark";
5
+ system: "system";
6
+ }>;
7
+ export declare const DeviceThemes: {
8
+ readonly LIGHT: "light";
9
+ readonly DARK: "dark";
10
+ readonly SYSTEM: "system";
11
+ };
12
+ export declare const deviceInfoSchema: z.ZodObject<{
13
+ deviceType: z.ZodString;
14
+ timezone: z.ZodString;
15
+ theme: z.ZodEnum<{
16
+ light: "light";
17
+ dark: "dark";
18
+ system: "system";
19
+ }>;
20
+ os: z.ZodString;
21
+ osVersion: z.ZodString;
22
+ appVersion: z.ZodString;
23
+ app: z.ZodString;
24
+ language: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export declare const sessionInfoSchema: z.ZodObject<{
27
+ sessionId: z.ZodString;
28
+ }, z.core.$strip>;
29
+ export declare const deviceSessionInfoSchema: z.ZodObject<{
30
+ deviceInfo: z.ZodObject<{
31
+ deviceType: z.ZodString;
32
+ timezone: z.ZodString;
33
+ theme: z.ZodEnum<{
34
+ light: "light";
35
+ dark: "dark";
36
+ system: "system";
37
+ }>;
38
+ os: z.ZodString;
39
+ osVersion: z.ZodString;
40
+ appVersion: z.ZodString;
41
+ app: z.ZodString;
42
+ language: z.ZodString;
43
+ }, z.core.$strip>;
44
+ sessionInfo: z.ZodObject<{
45
+ sessionId: z.ZodString;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strip>;
48
+ export declare const userPropertiesSchema: z.ZodObject<{
49
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
50
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
51
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
52
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ }, z.core.$loose>;
54
+ export declare const userInfoSchema: z.ZodObject<{
55
+ userName: z.ZodString;
56
+ properties: z.ZodObject<{
57
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
58
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
59
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
60
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ }, z.core.$loose>;
62
+ }, z.core.$strip>;
63
+ export type DeviceTheme = z.infer<typeof deviceThemeSchema>;
64
+ export type DeviceInfo = z.infer<typeof deviceInfoSchema>;
65
+ export type SessionInfo = z.infer<typeof sessionInfoSchema>;
66
+ export type DeviceSessionInfo = z.infer<typeof deviceSessionInfoSchema>;
67
+ export type UserProperties = z.infer<typeof userPropertiesSchema>;
68
+ export type UserInfo = z.infer<typeof userInfoSchema>;
@@ -0,0 +1,381 @@
1
+ import { z } from "zod";
2
+ export declare const userActionSchema: z.ZodEnum<{
3
+ S: "S";
4
+ V: "V";
5
+ }>;
6
+ export declare const UserActions: {
7
+ readonly VIEW: "V";
8
+ readonly SUBMIT: "S";
9
+ };
10
+ export declare const formConfigSchema: z.ZodObject<{
11
+ feedbackIdentifier: z.ZodString;
12
+ feedbackConfigurationId: z.ZodString;
13
+ completionTimeInSeconds: z.ZodNumber;
14
+ userAction: z.ZodEnum<{
15
+ S: "S";
16
+ V: "V";
17
+ }>;
18
+ responseLanguageCode: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export declare const questionResponseSchema: z.ZodObject<{
21
+ questionId: z.ZodString;
22
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ type: z.ZodLiteral<"simple">;
24
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ type: z.ZodLiteral<"choice">;
27
+ selectedOptionId: z.ZodString;
28
+ }, z.core.$strip>, z.ZodObject<{
29
+ type: z.ZodLiteral<"multiple_choice">;
30
+ selectedOptionIds: z.ZodArray<z.ZodString>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"scale">;
33
+ value: z.ZodNumber;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"continuous_sum">;
36
+ values: z.ZodArray<z.ZodObject<{
37
+ optionId: z.ZodString;
38
+ value: z.ZodNumber;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ type: z.ZodLiteral<"ranking">;
42
+ ranks: z.ZodArray<z.ZodObject<{
43
+ optionId: z.ZodString;
44
+ rank: z.ZodNumber;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ type: z.ZodLiteral<"text">;
48
+ values: z.ZodArray<z.ZodObject<{
49
+ fieldId: z.ZodString;
50
+ text: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>], "type">;
53
+ type: z.ZodString;
54
+ }, z.core.$strip>;
55
+ export declare const responseSchema: z.ZodObject<{
56
+ questions: z.ZodArray<z.ZodObject<{
57
+ questionId: z.ZodString;
58
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
59
+ type: z.ZodLiteral<"simple">;
60
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ type: z.ZodLiteral<"choice">;
63
+ selectedOptionId: z.ZodString;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ type: z.ZodLiteral<"multiple_choice">;
66
+ selectedOptionIds: z.ZodArray<z.ZodString>;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ type: z.ZodLiteral<"scale">;
69
+ value: z.ZodNumber;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ type: z.ZodLiteral<"continuous_sum">;
72
+ values: z.ZodArray<z.ZodObject<{
73
+ optionId: z.ZodString;
74
+ value: z.ZodNumber;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ type: z.ZodLiteral<"ranking">;
78
+ ranks: z.ZodArray<z.ZodObject<{
79
+ optionId: z.ZodString;
80
+ rank: z.ZodNumber;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodLiteral<"text">;
84
+ values: z.ZodArray<z.ZodObject<{
85
+ fieldId: z.ZodString;
86
+ text: z.ZodString;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$strip>], "type">;
89
+ type: z.ZodString;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>;
92
+ export declare const matchedTriggerPropertiesSchema: z.ZodObject<{
93
+ customEventName: z.ZodNullable<z.ZodString>;
94
+ currentPath: z.ZodString;
95
+ eventType: z.ZodString;
96
+ }, z.core.$loose>;
97
+ export declare const baseSubmitFeedbackSchema: z.ZodObject<{
98
+ formConfig: z.ZodObject<{
99
+ feedbackIdentifier: z.ZodString;
100
+ feedbackConfigurationId: z.ZodString;
101
+ completionTimeInSeconds: z.ZodNumber;
102
+ userAction: z.ZodEnum<{
103
+ S: "S";
104
+ V: "V";
105
+ }>;
106
+ responseLanguageCode: z.ZodString;
107
+ }, z.core.$strip>;
108
+ deviceInfo: z.ZodObject<{
109
+ deviceType: z.ZodString;
110
+ timezone: z.ZodString;
111
+ theme: z.ZodEnum<{
112
+ light: "light";
113
+ dark: "dark";
114
+ system: "system";
115
+ }>;
116
+ os: z.ZodString;
117
+ osVersion: z.ZodString;
118
+ appVersion: z.ZodString;
119
+ app: z.ZodString;
120
+ language: z.ZodString;
121
+ }, z.core.$strip>;
122
+ sessionInfo: z.ZodObject<{
123
+ sessionId: z.ZodString;
124
+ }, z.core.$strip>;
125
+ userInfo: z.ZodOptional<z.ZodObject<{
126
+ userName: z.ZodString;
127
+ properties: z.ZodObject<{
128
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
129
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
130
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
131
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ }, z.core.$loose>;
133
+ }, z.core.$strip>>;
134
+ matchedTriggerProperties: z.ZodObject<{
135
+ customEventName: z.ZodNullable<z.ZodString>;
136
+ currentPath: z.ZodString;
137
+ eventType: z.ZodString;
138
+ }, z.core.$loose>;
139
+ }, z.core.$strip>;
140
+ export declare const viewFeedbackSchema: z.ZodObject<{
141
+ deviceInfo: z.ZodObject<{
142
+ deviceType: z.ZodString;
143
+ timezone: z.ZodString;
144
+ theme: z.ZodEnum<{
145
+ light: "light";
146
+ dark: "dark";
147
+ system: "system";
148
+ }>;
149
+ os: z.ZodString;
150
+ osVersion: z.ZodString;
151
+ appVersion: z.ZodString;
152
+ app: z.ZodString;
153
+ language: z.ZodString;
154
+ }, z.core.$strip>;
155
+ sessionInfo: z.ZodObject<{
156
+ sessionId: z.ZodString;
157
+ }, z.core.$strip>;
158
+ userInfo: z.ZodOptional<z.ZodObject<{
159
+ userName: z.ZodString;
160
+ properties: z.ZodObject<{
161
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
162
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
163
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
164
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ }, z.core.$loose>;
166
+ }, z.core.$strip>>;
167
+ matchedTriggerProperties: z.ZodObject<{
168
+ customEventName: z.ZodNullable<z.ZodString>;
169
+ currentPath: z.ZodString;
170
+ eventType: z.ZodString;
171
+ }, z.core.$loose>;
172
+ formConfig: z.ZodObject<{
173
+ feedbackIdentifier: z.ZodString;
174
+ feedbackConfigurationId: z.ZodString;
175
+ completionTimeInSeconds: z.ZodNumber;
176
+ responseLanguageCode: z.ZodString;
177
+ userAction: z.ZodLiteral<"V">;
178
+ }, z.core.$strip>;
179
+ }, z.core.$strict>;
180
+ export declare const submitFeedbackSchema: z.ZodObject<{
181
+ deviceInfo: z.ZodObject<{
182
+ deviceType: z.ZodString;
183
+ timezone: z.ZodString;
184
+ theme: z.ZodEnum<{
185
+ light: "light";
186
+ dark: "dark";
187
+ system: "system";
188
+ }>;
189
+ os: z.ZodString;
190
+ osVersion: z.ZodString;
191
+ appVersion: z.ZodString;
192
+ app: z.ZodString;
193
+ language: z.ZodString;
194
+ }, z.core.$strip>;
195
+ sessionInfo: z.ZodObject<{
196
+ sessionId: z.ZodString;
197
+ }, z.core.$strip>;
198
+ userInfo: z.ZodOptional<z.ZodObject<{
199
+ userName: z.ZodString;
200
+ properties: z.ZodObject<{
201
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
202
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
203
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
204
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
205
+ }, z.core.$loose>;
206
+ }, z.core.$strip>>;
207
+ matchedTriggerProperties: z.ZodObject<{
208
+ customEventName: z.ZodNullable<z.ZodString>;
209
+ currentPath: z.ZodString;
210
+ eventType: z.ZodString;
211
+ }, z.core.$loose>;
212
+ formConfig: z.ZodObject<{
213
+ feedbackIdentifier: z.ZodString;
214
+ feedbackConfigurationId: z.ZodString;
215
+ completionTimeInSeconds: z.ZodNumber;
216
+ responseLanguageCode: z.ZodString;
217
+ userAction: z.ZodLiteral<"S">;
218
+ }, z.core.$strip>;
219
+ response: z.ZodObject<{
220
+ questions: z.ZodArray<z.ZodObject<{
221
+ questionId: z.ZodString;
222
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
223
+ type: z.ZodLiteral<"simple">;
224
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"choice">;
227
+ selectedOptionId: z.ZodString;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ type: z.ZodLiteral<"multiple_choice">;
230
+ selectedOptionIds: z.ZodArray<z.ZodString>;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ type: z.ZodLiteral<"scale">;
233
+ value: z.ZodNumber;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ type: z.ZodLiteral<"continuous_sum">;
236
+ values: z.ZodArray<z.ZodObject<{
237
+ optionId: z.ZodString;
238
+ value: z.ZodNumber;
239
+ }, z.core.$strip>>;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ type: z.ZodLiteral<"ranking">;
242
+ ranks: z.ZodArray<z.ZodObject<{
243
+ optionId: z.ZodString;
244
+ rank: z.ZodNumber;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ type: z.ZodLiteral<"text">;
248
+ values: z.ZodArray<z.ZodObject<{
249
+ fieldId: z.ZodString;
250
+ text: z.ZodString;
251
+ }, z.core.$strip>>;
252
+ }, z.core.$strip>], "type">;
253
+ type: z.ZodString;
254
+ }, z.core.$strip>>;
255
+ }, z.core.$strip>;
256
+ }, z.core.$strict>;
257
+ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
258
+ deviceInfo: z.ZodObject<{
259
+ deviceType: z.ZodString;
260
+ timezone: z.ZodString;
261
+ theme: z.ZodEnum<{
262
+ light: "light";
263
+ dark: "dark";
264
+ system: "system";
265
+ }>;
266
+ os: z.ZodString;
267
+ osVersion: z.ZodString;
268
+ appVersion: z.ZodString;
269
+ app: z.ZodString;
270
+ language: z.ZodString;
271
+ }, z.core.$strip>;
272
+ sessionInfo: z.ZodObject<{
273
+ sessionId: z.ZodString;
274
+ }, z.core.$strip>;
275
+ userInfo: z.ZodOptional<z.ZodObject<{
276
+ userName: z.ZodString;
277
+ properties: z.ZodObject<{
278
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
279
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
280
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
281
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ }, z.core.$loose>;
283
+ }, z.core.$strip>>;
284
+ matchedTriggerProperties: z.ZodObject<{
285
+ customEventName: z.ZodNullable<z.ZodString>;
286
+ currentPath: z.ZodString;
287
+ eventType: z.ZodString;
288
+ }, z.core.$loose>;
289
+ formConfig: z.ZodObject<{
290
+ feedbackIdentifier: z.ZodString;
291
+ feedbackConfigurationId: z.ZodString;
292
+ completionTimeInSeconds: z.ZodNumber;
293
+ responseLanguageCode: z.ZodString;
294
+ userAction: z.ZodLiteral<"V">;
295
+ }, z.core.$strip>;
296
+ }, z.core.$strict>, z.ZodObject<{
297
+ deviceInfo: z.ZodObject<{
298
+ deviceType: z.ZodString;
299
+ timezone: z.ZodString;
300
+ theme: z.ZodEnum<{
301
+ light: "light";
302
+ dark: "dark";
303
+ system: "system";
304
+ }>;
305
+ os: z.ZodString;
306
+ osVersion: z.ZodString;
307
+ appVersion: z.ZodString;
308
+ app: z.ZodString;
309
+ language: z.ZodString;
310
+ }, z.core.$strip>;
311
+ sessionInfo: z.ZodObject<{
312
+ sessionId: z.ZodString;
313
+ }, z.core.$strip>;
314
+ userInfo: z.ZodOptional<z.ZodObject<{
315
+ userName: z.ZodString;
316
+ properties: z.ZodObject<{
317
+ $counter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
318
+ $set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
319
+ $setOnce: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
320
+ $unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
321
+ }, z.core.$loose>;
322
+ }, z.core.$strip>>;
323
+ matchedTriggerProperties: z.ZodObject<{
324
+ customEventName: z.ZodNullable<z.ZodString>;
325
+ currentPath: z.ZodString;
326
+ eventType: z.ZodString;
327
+ }, z.core.$loose>;
328
+ formConfig: z.ZodObject<{
329
+ feedbackIdentifier: z.ZodString;
330
+ feedbackConfigurationId: z.ZodString;
331
+ completionTimeInSeconds: z.ZodNumber;
332
+ responseLanguageCode: z.ZodString;
333
+ userAction: z.ZodLiteral<"S">;
334
+ }, z.core.$strip>;
335
+ response: z.ZodObject<{
336
+ questions: z.ZodArray<z.ZodObject<{
337
+ questionId: z.ZodString;
338
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
339
+ type: z.ZodLiteral<"simple">;
340
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ type: z.ZodLiteral<"choice">;
343
+ selectedOptionId: z.ZodString;
344
+ }, z.core.$strip>, z.ZodObject<{
345
+ type: z.ZodLiteral<"multiple_choice">;
346
+ selectedOptionIds: z.ZodArray<z.ZodString>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ type: z.ZodLiteral<"scale">;
349
+ value: z.ZodNumber;
350
+ }, z.core.$strip>, z.ZodObject<{
351
+ type: z.ZodLiteral<"continuous_sum">;
352
+ values: z.ZodArray<z.ZodObject<{
353
+ optionId: z.ZodString;
354
+ value: z.ZodNumber;
355
+ }, z.core.$strip>>;
356
+ }, z.core.$strip>, z.ZodObject<{
357
+ type: z.ZodLiteral<"ranking">;
358
+ ranks: z.ZodArray<z.ZodObject<{
359
+ optionId: z.ZodString;
360
+ rank: z.ZodNumber;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>, z.ZodObject<{
363
+ type: z.ZodLiteral<"text">;
364
+ values: z.ZodArray<z.ZodObject<{
365
+ fieldId: z.ZodString;
366
+ text: z.ZodString;
367
+ }, z.core.$strip>>;
368
+ }, z.core.$strip>], "type">;
369
+ type: z.ZodString;
370
+ }, z.core.$strip>>;
371
+ }, z.core.$strip>;
372
+ }, z.core.$strict>]>;
373
+ export type UserAction = z.infer<typeof userActionSchema>;
374
+ export type FormConfig = z.infer<typeof formConfigSchema>;
375
+ export type QuestionResponse = z.infer<typeof questionResponseSchema>;
376
+ export type Response = z.infer<typeof responseSchema>;
377
+ export type MatchedTriggerProperties = z.infer<typeof matchedTriggerPropertiesSchema>;
378
+ export type BaseSubmitFeedback = z.infer<typeof baseSubmitFeedbackSchema>;
379
+ export type ViewFeedback = z.infer<typeof viewFeedbackSchema>;
380
+ export type SubmitFeedback = z.infer<typeof submitFeedbackSchema>;
381
+ export type FeedbackRequest = z.infer<typeof feedbackRequestSchema>;
@@ -646,6 +646,7 @@ export declare const longAnswerQuestionSchema: z.ZodObject<{
646
646
  cooldownSeconds: z.ZodOptional<z.ZodNumber>;
647
647
  maxEnhancements: z.ZodOptional<z.ZodNumber>;
648
648
  maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
649
+ minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
649
650
  }, z.core.$strip>;
650
651
  export declare const nestedDropdownQuestionSchema: z.ZodObject<{
651
652
  id: z.ZodString;
@@ -1136,6 +1137,7 @@ export declare const combinedQuestionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
1136
1137
  cooldownSeconds: z.ZodOptional<z.ZodNumber>;
1137
1138
  maxEnhancements: z.ZodOptional<z.ZodNumber>;
1138
1139
  maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
1140
+ minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
1139
1141
  }, z.core.$strip>, z.ZodObject<{
1140
1142
  id: z.ZodString;
1141
1143
  title: z.ZodString;
@@ -562,6 +562,7 @@ export declare const formPropertiesSchema: z.ZodObject<{
562
562
  cooldownSeconds: z.ZodOptional<z.ZodNumber>;
563
563
  maxEnhancements: z.ZodOptional<z.ZodNumber>;
564
564
  maxTokenAllowed: z.ZodOptional<z.ZodNumber>;
565
+ minCharactersToEnhance: z.ZodOptional<z.ZodNumber>;
565
566
  }, z.core.$strip>, z.ZodObject<{
566
567
  id: z.ZodString;
567
568
  title: z.ZodString;
@@ -67,6 +67,10 @@ export declare const PublicationStatuses: {
67
67
  readonly DRAFT: "D";
68
68
  readonly ARCHIVED: "A";
69
69
  };
70
+ export declare const durationSchema: z.ZodObject<{
71
+ from: z.ZodString;
72
+ to: z.ZodString;
73
+ }, z.core.$strip>;
70
74
  export declare const feedbackConfigurationSchema: z.ZodObject<{
71
75
  form_title: z.ZodString;
72
76
  form_description: z.ZodString;
@@ -84,6 +88,7 @@ export type SurveyType = z.infer<typeof surveyTypeSchema>;
84
88
  export type YesNo = z.infer<typeof yesNoSchema>;
85
89
  export type RecurringUnit = z.infer<typeof recurringUnitSchema>;
86
90
  export type PublicationStatus = z.infer<typeof publicationStatusSchema>;
91
+ export type Duration = z.infer<typeof durationSchema>;
87
92
  export type FeedbackConfiguration = z.infer<typeof feedbackConfigurationSchema>;
88
93
  export type FrequencyAndSchedulingProperties = z.infer<typeof frequencyAndSchedulingPropertiesSchema>;
89
94
  export type ExternalPublishingProperties = z.infer<typeof externalPublishingPropertiesSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "TypeScript schema definitions using Zod for validation and type inference of encatch product",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",