@encatch/schema 0.1.38 → 1.0.0-beta.1

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,12 +3,12 @@ export { AnnotationMarkerSchema, AnnotationSchema, AnswerItemSchema, AnswerSchem
3
3
  export { surveyTypeSchema, yesNoSchema, recurringUnitSchema, frequencyAndSchedulingPropertiesSchema, externalPublishingPropertiesSchema, publicationStatusSchema, feedbackConfigurationSchema, SurveyTypes, YesNoValues, RecurringUnits, PublicationStatuses, type SurveyType, type YesNo, type RecurringUnit, type PublicationStatus, type FeedbackConfiguration, type FrequencyAndSchedulingProperties, type ExternalPublishingProperties, } from "./schemas/fields/form-schema";
4
4
  export { otherConfigurationPropertiesSchema, welcomeScreenPropertiesSchema, endScreenPropertiesSchema, appearancePropertiesSchema, formPropertiesSchema, type FormProperties, type OtherConfigurationProperties, type WelcomeScreenProperties, type EndScreenProperties, type AppearanceProperties, } from "./schemas/fields/form-properties-schema";
5
5
  export { dismissBehaviorSchema, WelcomeScreenFieldsSchema, EndScreenFieldsSchema, WelcomeFieldsTranslationSchema, EndFieldsTranslationSchema, OtherFieldsSchema, LanguageFieldSchema, LanguagesSchema, OtherFieldsTranslationSchema, DismissBehaviors, type WelcomeFields, type EndFields, type WelcomeFieldsTranslation, type EndFieldsTranslation, type OtherFields, type OtherFieldsTranslation, type LanguageField, type Languages, } from "./schemas/fields/other-screen-schema";
6
- export { positionSchema, themeModeSchema, featureSettingsSchema, themeColorsSchema, themesSchema, themeConfigurationSchema, Positions, ThemeModes, type Position, type FeatureSettings, type ThemeColors, type Themes, type ThemeMode, type ThemeConfiguration, } from "./schemas/fields/theme-schema";
6
+ export { positionSchema, themeModeSchema, shareableModeSchema, featureSettingsSchema, themeColorsSchema, themesSchema, themeConfigurationSchema, Positions, ThemeModes, ShareableModes, type Position, type FeatureSettings, type ThemeColors, type Themes, type ThemeMode, type ShareableMode, type ThemeConfiguration, } from "./schemas/fields/theme-schema";
7
7
  export { translationEntrySchema, ratingQuestionTranslationSchema, singleChoiceQuestionTranslationSchema, multipleChoiceQuestionTranslationSchema, npsQuestionTranslationSchema, shortAnswerQuestionTranslationSchema, longAnswerQuestionTranslationSchema, nestedSelectionQuestionTranslationSchema, annotationQuestionTranslationSchema, questionTranslationSchema, questionCentricTranslationsSchema, translationsSchema, TranslationProvider, createTranslationProvider, type TranslationEntry, type RatingQuestionTranslation, type SingleChoiceQuestionTranslation, type MultipleChoiceQuestionTranslation, type NpsQuestionTranslation, type ShortAnswerQuestionTranslation, type LongAnswerQuestionTranslation, type NestedSelectionQuestionTranslation, type AnnotationQuestionTranslation, type QuestionTranslation, type QuestionCentricTranslations, type Translations, } from "./schemas/fields/translations-schema";
8
8
  export { customEventFieldOperatorSchema, customEventFieldSchema, conditionalIfMetadataSchema, queryOutputSchema, conditionalIfSchema, triggerActionSchema, conditionalWhenSchema, filterConditionSchema, categorySpecificFiltersSchema, whoSchema, audienceSegmentSchema, audienceTriggerPropertiesSchema, type CustomEventFieldOperator, type CustomEventField, type ConditionalIfMetadata, type QueryOutput, type ConditionalIf, type TriggerAction, type ConditionalWhen, type FilterCondition, type CategorySpecificFilters, type Who, type AudienceSegment, type AudienceTriggerProperties, } from "./schemas/fields/auto-trigger-schema";
9
9
  export { masterPropertiesSchema, type MasterProperties, } from "./schemas/fields/other-properties-schema";
10
10
  export { deviceThemeSchema, deviceInfoSchema, sessionInfoSchema, deviceSessionInfoSchema, userPropertiesSchema, userInfoSchema, DeviceThemes, type DeviceTheme, type DeviceInfo, type SessionInfo, type DeviceSessionInfo, type UserProperties, type UserInfo, } from "./schemas/api/other-schema";
11
- export { userActionSchema, formConfigSchema, questionResponseSchema, responseSchema, matchedTriggerPropertiesSchema, baseSubmitFeedbackSchema, viewFeedbackSchema, submitFeedbackSchema, feedbackRequestSchema, UserActions, type UserAction, type FormConfig, type QuestionResponse, type Response, type MatchedTriggerProperties, type BaseSubmitFeedback, type ViewFeedback, type SubmitFeedback, type FeedbackRequest, } from "./schemas/api/submit-feedback-schema";
11
+ export { formConfigSchema, questionResponseSchema, responseSchema, matchedTriggerPropertiesSchema, baseSubmitFeedbackSchema, partialFeedbackSchema, submitFeedbackSchema, feedbackRequestSchema, type FormConfig, type QuestionResponse, type Response, type MatchedTriggerProperties, type BaseSubmitFeedback, type PartialFeedback, type SubmitFeedback, type FeedbackRequest, } from "./schemas/api/submit-feedback-schema";
12
12
  export { feedbackConfigurationItemSchema, fetchFormConfigSchema, fetchConfigurationListSchema, fetchFeedbackDetailsSchema, formConfigurationResponseSchema, questionnaireFieldsResponseSchema, fetchFeedbackDetailsResponseSchema, fetchConfigurationListResponseSchema, type FeedbackConfigurationItem, type FetchFormConfig, type FetchConfigurationListRequest, type FetchFeedbackDetailsRequest, type FormConfigurationResponse, type QuestionnaireFieldsResponse, type FetchFeedbackDetailsResponse, type FetchConfigurationListResponse, } from "./schemas/api/fetch-feedback-schema";
13
13
  export { RefineTextParams, RefineTextResponse, RefineTextData, refineTextDataSchema, refineTextParamsSchema, refineTextResponseSchema, } from "./schemas/api/refine-text-schema";
14
14
  export { objectToCamel, objectToSnake, toSnake, toCamel, toPascal, objectToPascal, } from './helpers/case-convert-helper';
@@ -72,16 +72,10 @@ export declare const feedbackConfigurationItemSchema: z.ZodObject<{
72
72
  appearanceProperties: z.ZodObject<{
73
73
  themes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
74
  light: z.ZodObject<{
75
- brandColor: z.ZodString;
76
- overlayColor: z.ZodString;
77
- textColor: z.ZodString;
78
- backgroundColor: z.ZodString;
75
+ theme: z.ZodOptional<z.ZodString>;
79
76
  }, z.core.$strip>;
80
77
  dark: z.ZodObject<{
81
- brandColor: z.ZodString;
82
- overlayColor: z.ZodString;
83
- textColor: z.ZodString;
84
- backgroundColor: z.ZodString;
78
+ theme: z.ZodOptional<z.ZodString>;
85
79
  }, z.core.$strip>;
86
80
  }, z.core.$strip>>>;
87
81
  featureSettings: z.ZodObject<{
@@ -1296,17 +1290,9 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
1296
1290
  themeConfiguration: z.ZodObject<{
1297
1291
  themes: z.ZodObject<{
1298
1292
  light: z.ZodObject<{
1299
- brandColor: z.ZodString;
1300
- overlayColor: z.ZodString;
1301
- textColor: z.ZodString;
1302
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1303
1293
  theme: z.ZodOptional<z.ZodString>;
1304
1294
  }, z.core.$strip>;
1305
1295
  dark: z.ZodObject<{
1306
- brandColor: z.ZodString;
1307
- overlayColor: z.ZodString;
1308
- textColor: z.ZodString;
1309
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1310
1296
  theme: z.ZodOptional<z.ZodString>;
1311
1297
  }, z.core.$strip>;
1312
1298
  }, z.core.$strip>;
@@ -1318,6 +1304,11 @@ export declare const fetchFeedbackDetailsResponseSchema: z.ZodObject<{
1318
1304
  customPosition: z.ZodBoolean;
1319
1305
  customIconPosition: z.ZodBoolean;
1320
1306
  customCss: z.ZodOptional<z.ZodString>;
1307
+ shareableMode: z.ZodOptional<z.ZodEnum<{
1308
+ light: "light";
1309
+ dark: "dark";
1310
+ system: "system";
1311
+ }>>;
1321
1312
  }, z.core.$strip>;
1322
1313
  selectedPosition: z.ZodEnum<{
1323
1314
  "top-left": "top-left";
@@ -1424,16 +1415,10 @@ export declare const fetchConfigurationListResponseSchema: z.ZodObject<{
1424
1415
  appearanceProperties: z.ZodObject<{
1425
1416
  themes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1426
1417
  light: z.ZodObject<{
1427
- brandColor: z.ZodString;
1428
- overlayColor: z.ZodString;
1429
- textColor: z.ZodString;
1430
- backgroundColor: z.ZodString;
1418
+ theme: z.ZodOptional<z.ZodString>;
1431
1419
  }, z.core.$strip>;
1432
1420
  dark: z.ZodObject<{
1433
- brandColor: z.ZodString;
1434
- overlayColor: z.ZodString;
1435
- textColor: z.ZodString;
1436
- backgroundColor: z.ZodString;
1421
+ theme: z.ZodOptional<z.ZodString>;
1437
1422
  }, z.core.$strip>;
1438
1423
  }, z.core.$strip>>>;
1439
1424
  featureSettings: z.ZodObject<{
@@ -1,20 +1,9 @@
1
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
2
  export declare const formConfigSchema: z.ZodObject<{
11
3
  feedbackIdentifier: z.ZodString;
12
4
  feedbackConfigurationId: z.ZodString;
13
5
  completionTimeInSeconds: z.ZodNumber;
14
- userAction: z.ZodEnum<{
15
- S: "S";
16
- V: "V";
17
- }>;
6
+ isPartialSubmit: z.ZodBoolean;
18
7
  responseLanguageCode: z.ZodString;
19
8
  }, z.core.$strip>;
20
9
  export declare const questionResponseSchema: z.ZodObject<{
@@ -81,10 +70,7 @@ export declare const baseSubmitFeedbackSchema: z.ZodObject<{
81
70
  feedbackIdentifier: z.ZodString;
82
71
  feedbackConfigurationId: z.ZodString;
83
72
  completionTimeInSeconds: z.ZodNumber;
84
- userAction: z.ZodEnum<{
85
- S: "S";
86
- V: "V";
87
- }>;
73
+ isPartialSubmit: z.ZodBoolean;
88
74
  responseLanguageCode: z.ZodString;
89
75
  }, z.core.$strip>;
90
76
  deviceInfo: z.ZodObject<{
@@ -122,7 +108,7 @@ export declare const baseSubmitFeedbackSchema: z.ZodObject<{
122
108
  }, z.core.$loose>>;
123
109
  customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
124
110
  }, z.core.$strip>;
125
- export declare const viewFeedbackSchema: z.ZodObject<{
111
+ export declare const partialFeedbackSchema: z.ZodObject<{
126
112
  deviceInfo: z.ZodObject<{
127
113
  $deviceType: z.ZodString;
128
114
  $timezone: z.ZodString;
@@ -162,9 +148,37 @@ export declare const viewFeedbackSchema: z.ZodObject<{
162
148
  feedbackConfigurationId: z.ZodString;
163
149
  completionTimeInSeconds: z.ZodNumber;
164
150
  responseLanguageCode: z.ZodString;
165
- userAction: z.ZodLiteral<"V">;
151
+ isPartialSubmit: z.ZodLiteral<true>;
166
152
  }, z.core.$strip>;
167
- }, z.core.$strict>;
153
+ response: z.ZodOptional<z.ZodObject<{
154
+ questions: z.ZodArray<z.ZodObject<{
155
+ questionId: z.ZodString;
156
+ answer: z.ZodObject<{
157
+ nps: z.ZodOptional<z.ZodNumber>;
158
+ nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ longText: z.ZodOptional<z.ZodString>;
160
+ shortAnswer: z.ZodOptional<z.ZodString>;
161
+ singleChoice: z.ZodOptional<z.ZodString>;
162
+ rating: z.ZodOptional<z.ZodNumber>;
163
+ multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
165
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
166
+ annotation: z.ZodOptional<z.ZodObject<{
167
+ fileType: z.ZodString;
168
+ fileName: z.ZodString;
169
+ markers: z.ZodArray<z.ZodObject<{
170
+ markerNo: z.ZodString;
171
+ timeline: z.ZodString;
172
+ comment: z.ZodString;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>>;
175
+ others: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>;
177
+ type: z.ZodString;
178
+ error: z.ZodOptional<z.ZodString>;
179
+ }, z.core.$strip>>;
180
+ }, z.core.$strip>>;
181
+ }, z.core.$strip>;
168
182
  export declare const submitFeedbackSchema: z.ZodObject<{
169
183
  deviceInfo: z.ZodObject<{
170
184
  $deviceType: z.ZodString;
@@ -205,7 +219,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
205
219
  feedbackConfigurationId: z.ZodString;
206
220
  completionTimeInSeconds: z.ZodNumber;
207
221
  responseLanguageCode: z.ZodString;
208
- userAction: z.ZodLiteral<"S">;
222
+ isPartialSubmit: z.ZodLiteral<false>;
209
223
  }, z.core.$strip>;
210
224
  response: z.ZodObject<{
211
225
  questions: z.ZodArray<z.ZodObject<{
@@ -235,7 +249,7 @@ export declare const submitFeedbackSchema: z.ZodObject<{
235
249
  error: z.ZodOptional<z.ZodString>;
236
250
  }, z.core.$strip>>;
237
251
  }, z.core.$strip>;
238
- }, z.core.$strict>;
252
+ }, z.core.$strip>;
239
253
  export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
240
254
  deviceInfo: z.ZodObject<{
241
255
  $deviceType: z.ZodString;
@@ -276,9 +290,37 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
276
290
  feedbackConfigurationId: z.ZodString;
277
291
  completionTimeInSeconds: z.ZodNumber;
278
292
  responseLanguageCode: z.ZodString;
279
- userAction: z.ZodLiteral<"V">;
293
+ isPartialSubmit: z.ZodLiteral<true>;
280
294
  }, z.core.$strip>;
281
- }, z.core.$strict>, z.ZodObject<{
295
+ response: z.ZodOptional<z.ZodObject<{
296
+ questions: z.ZodArray<z.ZodObject<{
297
+ questionId: z.ZodString;
298
+ answer: z.ZodObject<{
299
+ nps: z.ZodOptional<z.ZodNumber>;
300
+ nestedSelection: z.ZodOptional<z.ZodArray<z.ZodString>>;
301
+ longText: z.ZodOptional<z.ZodString>;
302
+ shortAnswer: z.ZodOptional<z.ZodString>;
303
+ singleChoice: z.ZodOptional<z.ZodString>;
304
+ rating: z.ZodOptional<z.ZodNumber>;
305
+ multipleChoiceMultiple: z.ZodOptional<z.ZodArray<z.ZodString>>;
306
+ singleChoiceOther: z.ZodOptional<z.ZodString>;
307
+ multipleChoiceOther: z.ZodOptional<z.ZodString>;
308
+ annotation: z.ZodOptional<z.ZodObject<{
309
+ fileType: z.ZodString;
310
+ fileName: z.ZodString;
311
+ markers: z.ZodArray<z.ZodObject<{
312
+ markerNo: z.ZodString;
313
+ timeline: z.ZodString;
314
+ comment: z.ZodString;
315
+ }, z.core.$strip>>;
316
+ }, z.core.$strip>>;
317
+ others: z.ZodOptional<z.ZodString>;
318
+ }, z.core.$strip>;
319
+ type: z.ZodString;
320
+ error: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strip>>;
322
+ }, z.core.$strip>>;
323
+ }, z.core.$strip>, z.ZodObject<{
282
324
  deviceInfo: z.ZodObject<{
283
325
  $deviceType: z.ZodString;
284
326
  $timezone: z.ZodString;
@@ -318,7 +360,7 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
318
360
  feedbackConfigurationId: z.ZodString;
319
361
  completionTimeInSeconds: z.ZodNumber;
320
362
  responseLanguageCode: z.ZodString;
321
- userAction: z.ZodLiteral<"S">;
363
+ isPartialSubmit: z.ZodLiteral<false>;
322
364
  }, z.core.$strip>;
323
365
  response: z.ZodObject<{
324
366
  questions: z.ZodArray<z.ZodObject<{
@@ -348,13 +390,12 @@ export declare const feedbackRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
348
390
  error: z.ZodOptional<z.ZodString>;
349
391
  }, z.core.$strip>>;
350
392
  }, z.core.$strip>;
351
- }, z.core.$strict>]>;
352
- export type UserAction = z.infer<typeof userActionSchema>;
393
+ }, z.core.$strip>]>;
353
394
  export type FormConfig = z.infer<typeof formConfigSchema>;
354
395
  export type QuestionResponse = z.infer<typeof questionResponseSchema>;
355
396
  export type Response = z.infer<typeof responseSchema>;
356
397
  export type MatchedTriggerProperties = z.infer<typeof matchedTriggerPropertiesSchema>;
357
398
  export type BaseSubmitFeedback = z.infer<typeof baseSubmitFeedbackSchema>;
358
- export type ViewFeedback = z.infer<typeof viewFeedbackSchema>;
399
+ export type PartialFeedback = z.infer<typeof partialFeedbackSchema>;
359
400
  export type SubmitFeedback = z.infer<typeof submitFeedbackSchema>;
360
401
  export type FeedbackRequest = z.infer<typeof feedbackRequestSchema>;
@@ -10,17 +10,9 @@ export declare const CurrentModes: {
10
10
  export declare const appPropsSchema: z.ZodObject<{
11
11
  theme: z.ZodObject<{
12
12
  light: z.ZodObject<{
13
- brandColor: z.ZodString;
14
- overlayColor: z.ZodString;
15
- textColor: z.ZodString;
16
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
17
13
  theme: z.ZodOptional<z.ZodString>;
18
14
  }, z.core.$strip>;
19
15
  dark: z.ZodObject<{
20
- brandColor: z.ZodString;
21
- overlayColor: z.ZodString;
22
- textColor: z.ZodString;
23
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
24
16
  theme: z.ZodOptional<z.ZodString>;
25
17
  }, z.core.$strip>;
26
18
  }, z.core.$strip>;
@@ -686,17 +678,9 @@ export declare const appPropsSchema: z.ZodObject<{
686
678
  themeSettings: z.ZodObject<{
687
679
  themes: z.ZodObject<{
688
680
  light: z.ZodObject<{
689
- brandColor: z.ZodString;
690
- overlayColor: z.ZodString;
691
- textColor: z.ZodString;
692
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
693
681
  theme: z.ZodOptional<z.ZodString>;
694
682
  }, z.core.$strip>;
695
683
  dark: z.ZodObject<{
696
- brandColor: z.ZodString;
697
- overlayColor: z.ZodString;
698
- textColor: z.ZodString;
699
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
700
684
  theme: z.ZodOptional<z.ZodString>;
701
685
  }, z.core.$strip>;
702
686
  }, z.core.$strip>;
@@ -708,6 +692,11 @@ export declare const appPropsSchema: z.ZodObject<{
708
692
  customPosition: z.ZodBoolean;
709
693
  customIconPosition: z.ZodBoolean;
710
694
  customCss: z.ZodOptional<z.ZodString>;
695
+ shareableMode: z.ZodOptional<z.ZodEnum<{
696
+ light: "light";
697
+ dark: "dark";
698
+ system: "system";
699
+ }>>;
711
700
  }, z.core.$strip>;
712
701
  selectedPosition: z.ZodEnum<{
713
702
  "top-left": "top-left";
@@ -109,17 +109,9 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
109
109
  themeConfiguration: z.ZodObject<{
110
110
  themes: z.ZodObject<{
111
111
  light: z.ZodObject<{
112
- brandColor: z.ZodString;
113
- overlayColor: z.ZodString;
114
- textColor: z.ZodString;
115
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
116
112
  theme: z.ZodOptional<z.ZodString>;
117
113
  }, z.core.$strip>;
118
114
  dark: z.ZodObject<{
119
- brandColor: z.ZodString;
120
- overlayColor: z.ZodString;
121
- textColor: z.ZodString;
122
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
123
115
  theme: z.ZodOptional<z.ZodString>;
124
116
  }, z.core.$strip>;
125
117
  }, z.core.$strip>;
@@ -131,6 +123,11 @@ export declare const appearancePropertiesSchema: z.ZodObject<{
131
123
  customPosition: z.ZodBoolean;
132
124
  customIconPosition: z.ZodBoolean;
133
125
  customCss: z.ZodOptional<z.ZodString>;
126
+ shareableMode: z.ZodOptional<z.ZodEnum<{
127
+ light: "light";
128
+ dark: "dark";
129
+ system: "system";
130
+ }>>;
134
131
  }, z.core.$strip>;
135
132
  selectedPosition: z.ZodEnum<{
136
133
  "top-left": "top-left";
@@ -915,17 +912,9 @@ export declare const formPropertiesSchema: z.ZodObject<{
915
912
  themeConfiguration: z.ZodObject<{
916
913
  themes: z.ZodObject<{
917
914
  light: z.ZodObject<{
918
- brandColor: z.ZodString;
919
- overlayColor: z.ZodString;
920
- textColor: z.ZodString;
921
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
922
915
  theme: z.ZodOptional<z.ZodString>;
923
916
  }, z.core.$strip>;
924
917
  dark: z.ZodObject<{
925
- brandColor: z.ZodString;
926
- overlayColor: z.ZodString;
927
- textColor: z.ZodString;
928
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
929
918
  theme: z.ZodOptional<z.ZodString>;
930
919
  }, z.core.$strip>;
931
920
  }, z.core.$strip>;
@@ -937,6 +926,11 @@ export declare const formPropertiesSchema: z.ZodObject<{
937
926
  customPosition: z.ZodBoolean;
938
927
  customIconPosition: z.ZodBoolean;
939
928
  customCss: z.ZodOptional<z.ZodString>;
929
+ shareableMode: z.ZodOptional<z.ZodEnum<{
930
+ light: "light";
931
+ dark: "dark";
932
+ system: "system";
933
+ }>>;
940
934
  }, z.core.$strip>;
941
935
  selectedPosition: z.ZodEnum<{
942
936
  "top-left": "top-left";
@@ -29,6 +29,16 @@ export declare const ThemeModes: {
29
29
  readonly LIGHT: "light";
30
30
  readonly DARK: "dark";
31
31
  };
32
+ export declare const shareableModeSchema: z.ZodEnum<{
33
+ light: "light";
34
+ dark: "dark";
35
+ system: "system";
36
+ }>;
37
+ export declare const ShareableModes: {
38
+ readonly LIGHT: "light";
39
+ readonly DARK: "dark";
40
+ readonly SYSTEM: "system";
41
+ };
32
42
  export declare const featureSettingsSchema: z.ZodObject<{
33
43
  darkOverlay: z.ZodBoolean;
34
44
  closeButton: z.ZodBoolean;
@@ -37,44 +47,29 @@ export declare const featureSettingsSchema: z.ZodObject<{
37
47
  customPosition: z.ZodBoolean;
38
48
  customIconPosition: z.ZodBoolean;
39
49
  customCss: z.ZodOptional<z.ZodString>;
50
+ shareableMode: z.ZodOptional<z.ZodEnum<{
51
+ light: "light";
52
+ dark: "dark";
53
+ system: "system";
54
+ }>>;
40
55
  }, z.core.$strip>;
41
56
  export declare const themeColorsSchema: z.ZodObject<{
42
- brandColor: z.ZodString;
43
- overlayColor: z.ZodString;
44
- textColor: z.ZodString;
45
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
46
57
  theme: z.ZodOptional<z.ZodString>;
47
58
  }, z.core.$strip>;
48
59
  export declare const themesSchema: z.ZodObject<{
49
60
  light: z.ZodObject<{
50
- brandColor: z.ZodString;
51
- overlayColor: z.ZodString;
52
- textColor: z.ZodString;
53
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
54
61
  theme: z.ZodOptional<z.ZodString>;
55
62
  }, z.core.$strip>;
56
63
  dark: z.ZodObject<{
57
- brandColor: z.ZodString;
58
- overlayColor: z.ZodString;
59
- textColor: z.ZodString;
60
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
61
64
  theme: z.ZodOptional<z.ZodString>;
62
65
  }, z.core.$strip>;
63
66
  }, z.core.$strip>;
64
67
  export declare const themeConfigurationSchema: z.ZodObject<{
65
68
  themes: z.ZodObject<{
66
69
  light: z.ZodObject<{
67
- brandColor: z.ZodString;
68
- overlayColor: z.ZodString;
69
- textColor: z.ZodString;
70
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
71
70
  theme: z.ZodOptional<z.ZodString>;
72
71
  }, z.core.$strip>;
73
72
  dark: z.ZodObject<{
74
- brandColor: z.ZodString;
75
- overlayColor: z.ZodString;
76
- textColor: z.ZodString;
77
- backgroundColor: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
78
73
  theme: z.ZodOptional<z.ZodString>;
79
74
  }, z.core.$strip>;
80
75
  }, z.core.$strip>;
@@ -86,6 +81,11 @@ export declare const themeConfigurationSchema: z.ZodObject<{
86
81
  customPosition: z.ZodBoolean;
87
82
  customIconPosition: z.ZodBoolean;
88
83
  customCss: z.ZodOptional<z.ZodString>;
84
+ shareableMode: z.ZodOptional<z.ZodEnum<{
85
+ light: "light";
86
+ dark: "dark";
87
+ system: "system";
88
+ }>>;
89
89
  }, z.core.$strip>;
90
90
  selectedPosition: z.ZodEnum<{
91
91
  "top-left": "top-left";
@@ -112,6 +112,7 @@ export declare const themeConfigurationSchema: z.ZodObject<{
112
112
  }, z.core.$strip>;
113
113
  export type Position = z.infer<typeof positionSchema>;
114
114
  export type ThemeMode = z.infer<typeof themeModeSchema>;
115
+ export type ShareableMode = z.infer<typeof shareableModeSchema>;
115
116
  export type FeatureSettings = z.infer<typeof featureSettingsSchema>;
116
117
  export type ThemeColors = z.infer<typeof themeColorsSchema>;
117
118
  export type Themes = z.infer<typeof themesSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/schema",
3
- "version": "0.1.38",
3
+ "version": "1.0.0-beta.1",
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",