@hosterai/types 0.0.22 → 0.0.24

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.
Files changed (55) hide show
  1. package/README.md +13 -2
  2. package/dist/dtos/country.dto.d.ts +6 -0
  3. package/dist/dtos/country.dto.js +31 -0
  4. package/dist/dtos/info/info-notification.dto.d.ts +5 -0
  5. package/dist/dtos/info/info-notification.dto.js +7 -0
  6. package/dist/dtos/info/info.dto.d.ts +196 -0
  7. package/dist/dtos/info/info.dto.js +278 -0
  8. package/dist/dtos/info.dto.d.ts +2 -0
  9. package/dist/dtos/info.dto.js +17 -0
  10. package/dist/dtos/notification/notification-request.dto.d.ts +20 -0
  11. package/dist/dtos/notification/notification-request.dto.js +31 -0
  12. package/dist/dtos/product/product.interface.d.ts +4 -4
  13. package/dist/dtos/receiver/receiver-email.dto.d.ts +20 -0
  14. package/dist/dtos/receiver/receiver-email.dto.js +39 -0
  15. package/dist/dtos/receiver/receiver-push.dto.d.ts +15 -0
  16. package/dist/dtos/receiver/receiver-push.dto.js +31 -0
  17. package/dist/dtos/receiver/receiver-sms.dto.d.ts +11 -0
  18. package/dist/dtos/receiver/receiver-sms.dto.js +26 -0
  19. package/dist/dtos/request.dto.d.ts +20 -0
  20. package/dist/dtos/request.dto.js +31 -0
  21. package/dist/dtos/requests/validate-attributes-request.dto.d.ts +18 -0
  22. package/dist/dtos/{product/requests/product-upgradeable-request.dto.js → requests/validate-attributes-request.dto.js} +11 -17
  23. package/dist/dtos/responses/validate-attributes-response.dto.d.ts +13 -0
  24. package/dist/dtos/responses/validate-attributes-response.dto.js +11 -0
  25. package/dist/dtos/sender/sender-email.dto.d.ts +25 -0
  26. package/dist/dtos/sender/sender-email.dto.js +46 -0
  27. package/dist/dtos/sender/sender-push.dto.d.ts +31 -0
  28. package/dist/dtos/sender/sender-push.dto.js +50 -0
  29. package/dist/dtos/sender/sender-sms.dto.d.ts +15 -0
  30. package/dist/dtos/sender/sender-sms.dto.js +30 -0
  31. package/dist/enums/country.enum.d.ts +10 -281
  32. package/dist/enums/country.enum.js +492 -281
  33. package/dist/enums/message-type.enum.d.ts +5 -0
  34. package/dist/enums/message-type.enum.js +9 -0
  35. package/dist/helpers/country.helper.d.ts +6 -0
  36. package/dist/helpers/country.helper.js +21 -0
  37. package/dist/index.d.ts +4 -4
  38. package/dist/index.js +7 -4
  39. package/dist/openapi/schemas/components.schemas.d.ts +180 -226
  40. package/dist/openapi/schemas/components.schemas.js +806 -599
  41. package/dist/validators/product-validate-attributes-request-validator.d.ts +1 -1
  42. package/dist/validators/product-validate-attributes-request-validator.js +5 -5
  43. package/dist/validators/product-validate-attributes-request-validator.spec.js +3 -3
  44. package/package.json +1 -1
  45. package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +0 -18
  46. package/dist/dtos/product/requests/product-downgradeable-request.dto.js +0 -37
  47. package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +0 -18
  48. package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +0 -22
  49. package/dist/dtos/product/responses/product-downgradeable-response.dto.js +0 -11
  50. package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +0 -22
  51. package/dist/dtos/product/responses/product-upgradeable-response.dto.js +0 -11
  52. package/dist/validators/product-downgradeable-request-validator.d.ts +0 -8
  53. package/dist/validators/product-downgradeable-request-validator.js +0 -17
  54. package/dist/validators/product-upgradeable-request-validator.d.ts +0 -8
  55. package/dist/validators/product-upgradeable-request-validator.js +0 -17
@@ -1,4 +1,21 @@
1
1
  export declare const ComponentsSchemas: {
2
+ readonly CountryDto: {
3
+ readonly properties: {
4
+ readonly name: {
5
+ readonly minLength: 1;
6
+ readonly type: "string";
7
+ };
8
+ readonly code: {
9
+ readonly enum: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT"];
10
+ readonly type: "string";
11
+ };
12
+ readonly isEurope: {
13
+ readonly type: "boolean";
14
+ };
15
+ };
16
+ readonly type: "object";
17
+ readonly required: readonly ["name", "code"];
18
+ };
2
19
  readonly TabDto: {
3
20
  readonly properties: {
4
21
  readonly label: {
@@ -113,9 +130,6 @@ export declare const ComponentsSchemas: {
113
130
  readonly $ref: "#/components/schemas/TabDto";
114
131
  };
115
132
  readonly type: "array";
116
- readonly not: {
117
- readonly type: "null";
118
- };
119
133
  readonly title: "Submenu";
120
134
  readonly description: "List of tabs that will appear in the submenu.";
121
135
  };
@@ -140,24 +154,15 @@ export declare const ComponentsSchemas: {
140
154
  readonly label: {
141
155
  readonly minLength: 1;
142
156
  readonly type: "string";
143
- readonly not: {
144
- readonly type: "null";
145
- };
146
157
  readonly title: "Label";
147
158
  readonly description: "Label of the settings page.";
148
159
  };
149
160
  readonly icon: {
150
- readonly not: {
151
- readonly type: "null";
152
- };
153
161
  readonly type: "string";
154
162
  readonly title: "Icon";
155
163
  readonly description: "Icon of the settings page.";
156
164
  };
157
165
  readonly description: {
158
- readonly not: {
159
- readonly type: "null";
160
- };
161
166
  readonly type: "string";
162
167
  readonly title: "Description";
163
168
  readonly description: "Description of the settings page.";
@@ -175,24 +180,15 @@ export declare const ComponentsSchemas: {
175
180
  readonly label: {
176
181
  readonly minLength: 1;
177
182
  readonly type: "string";
178
- readonly not: {
179
- readonly type: "null";
180
- };
181
183
  readonly title: "Label";
182
184
  readonly description: "Label of the settings page.";
183
185
  };
184
186
  readonly icon: {
185
- readonly not: {
186
- readonly type: "null";
187
- };
188
187
  readonly type: "string";
189
188
  readonly title: "Icon";
190
189
  readonly description: "Icon of the settings page.";
191
190
  };
192
191
  readonly description: {
193
- readonly not: {
194
- readonly type: "null";
195
- };
196
192
  readonly type: "string";
197
193
  readonly title: "Description";
198
194
  readonly description: "Description of the settings page.";
@@ -214,24 +210,15 @@ export declare const ComponentsSchemas: {
214
210
  readonly label: {
215
211
  readonly minLength: 1;
216
212
  readonly type: "string";
217
- readonly not: {
218
- readonly type: "null";
219
- };
220
213
  readonly title: "Label";
221
214
  readonly description: "Label of the settings page.";
222
215
  };
223
216
  readonly icon: {
224
- readonly not: {
225
- readonly type: "null";
226
- };
227
217
  readonly type: "string";
228
218
  readonly title: "Icon";
229
219
  readonly description: "Icon of the settings page.";
230
220
  };
231
221
  readonly description: {
232
- readonly not: {
233
- readonly type: "null";
234
- };
235
222
  readonly type: "string";
236
223
  readonly title: "Description";
237
224
  readonly description: "Description of the settings page.";
@@ -289,7 +276,6 @@ export declare const ComponentsSchemas: {
289
276
  };
290
277
  };
291
278
  readonly type: "object";
292
- readonly required: readonly [];
293
279
  };
294
280
  readonly AdminPanelMoreActionsDto: {
295
281
  readonly properties: {
@@ -340,7 +326,6 @@ export declare const ComponentsSchemas: {
340
326
  };
341
327
  };
342
328
  readonly type: "object";
343
- readonly required: readonly [];
344
329
  };
345
330
  readonly AdminPanelDto: {
346
331
  readonly properties: {
@@ -388,7 +373,6 @@ export declare const ComponentsSchemas: {
388
373
  };
389
374
  };
390
375
  readonly type: "object";
391
- readonly required: readonly [];
392
376
  };
393
377
  readonly ClientPanelTabsDto: {
394
378
  readonly properties: {
@@ -403,7 +387,6 @@ export declare const ComponentsSchemas: {
403
387
  };
404
388
  };
405
389
  readonly type: "object";
406
- readonly required: readonly [];
407
390
  };
408
391
  readonly ClientPanelMoreActionsDto: {
409
392
  readonly properties: {
@@ -418,7 +401,6 @@ export declare const ComponentsSchemas: {
418
401
  };
419
402
  };
420
403
  readonly type: "object";
421
- readonly required: readonly [];
422
404
  };
423
405
  readonly ClientPanelDto: {
424
406
  readonly properties: {
@@ -455,7 +437,145 @@ export declare const ComponentsSchemas: {
455
437
  };
456
438
  };
457
439
  readonly type: "object";
458
- readonly required: readonly [];
440
+ };
441
+ readonly MultilangTextDto: {
442
+ readonly properties: {
443
+ readonly language: {
444
+ readonly enum: readonly ["aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "ch", "ce", "ny", "zh", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gl", "ka", "de", "el", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "ia", "id", "ie", "ga", "ig", "ik", "io", "is", "it", "iu", "ja", "jv", "kl", "kn", "kr", "ks", "kk", "km", "ki", "rw", "ky", "kv", "kg", "ko", "ku", "kj", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "gv", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mh", "mn", "na", "nv", "nd", "ne", "ng", "nb", "nn", "no", "ii", "nr", "oc", "oj", "cu", "om", "or", "os", "pa", "pi", "fa", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "rh", "ru", "sa", "sc", "sd", "se", "sm", "sg", "sr", "gd", "sn", "si", "sk", "sl", "so", "st", "es", "su", "sw", "ss", "sv", "ta", "te", "tg", "th", "ti", "bo", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "wo", "fy", "xh", "yi", "yo", "za", "zu"];
445
+ readonly type: "string";
446
+ };
447
+ readonly text: {
448
+ readonly minLength: 1;
449
+ readonly type: "string";
450
+ };
451
+ };
452
+ readonly type: "object";
453
+ readonly required: readonly ["language", "text"];
454
+ };
455
+ readonly FieldOptionDto: {
456
+ readonly properties: {
457
+ readonly key: {
458
+ readonly type: "string";
459
+ readonly title: "Key";
460
+ readonly description: "Internal key for the option.";
461
+ };
462
+ readonly value: {
463
+ readonly type: "string";
464
+ readonly title: "Value";
465
+ readonly description: "Display value for the option.";
466
+ };
467
+ readonly disabled: {
468
+ readonly type: "boolean";
469
+ readonly title: "Disabled";
470
+ readonly description: "Whether the option is disabled.";
471
+ };
472
+ };
473
+ readonly type: "object";
474
+ readonly required: readonly ["key", "value"];
475
+ };
476
+ readonly FieldDto: {
477
+ readonly properties: {
478
+ readonly id: {
479
+ readonly type: "string";
480
+ readonly title: "ID";
481
+ readonly description: "Unique identifier for the field.";
482
+ };
483
+ readonly label: {
484
+ readonly items: {
485
+ readonly $ref: "#/components/schemas/MultilangTextDto";
486
+ };
487
+ readonly minItems: 1;
488
+ readonly type: "array";
489
+ readonly title: "Label";
490
+ readonly description: "Multilingual label for the field.";
491
+ };
492
+ readonly value: {
493
+ readonly title: "Value";
494
+ readonly description: "Value of the field. String/Number, or FieldOptionDto/FieldOptionDto[] depending on type.";
495
+ readonly oneOf: readonly [{
496
+ readonly title: "String";
497
+ readonly type: "string";
498
+ }, {
499
+ readonly title: "Number";
500
+ readonly type: "number";
501
+ }, {
502
+ readonly title: "Option";
503
+ readonly $ref: "#/components/schemas/FieldOptionDto";
504
+ }, {
505
+ readonly title: "Options Array";
506
+ readonly type: "array";
507
+ readonly items: {
508
+ readonly $ref: "#/components/schemas/FieldOptionDto";
509
+ };
510
+ }];
511
+ };
512
+ readonly type: {
513
+ readonly enum: readonly ["TEXT_BOX", "TEXT_AREA", "SELECT", "MULTI_SELECT", "DESCRIPTION", "RADIO_BOX", "CHECKBOX", "SLIDER"];
514
+ readonly type: "string";
515
+ readonly title: "Field Type";
516
+ readonly description: "Type of the field.";
517
+ };
518
+ readonly repeatableMin: {
519
+ readonly type: "number";
520
+ };
521
+ readonly repeatableMax: {
522
+ readonly type: "number";
523
+ };
524
+ readonly required: {
525
+ readonly type: "boolean";
526
+ readonly title: "Required";
527
+ readonly description: "Whether the field is required.";
528
+ };
529
+ readonly disabled: {
530
+ readonly type: "boolean";
531
+ readonly title: "Disabled";
532
+ readonly description: "Whether the field is disabled.";
533
+ };
534
+ readonly visibleInOrder: {
535
+ readonly type: "boolean";
536
+ readonly title: "Visible In Order";
537
+ readonly description: "Whether the field is visible in order.";
538
+ };
539
+ readonly visibleInClientPanel: {
540
+ readonly type: "boolean";
541
+ readonly title: "Visible In Client Panel";
542
+ readonly description: "Whether the field is visible in client panel.";
543
+ };
544
+ readonly regexValidation: {
545
+ readonly type: "string";
546
+ readonly title: "Regex Validation";
547
+ readonly description: "Optional regex to validate input.";
548
+ readonly example: "^[A-Za-z0-9_-]+$";
549
+ };
550
+ readonly regexValidationErrorMessage: {
551
+ readonly items: {
552
+ readonly $ref: "#/components/schemas/MultilangTextDto";
553
+ };
554
+ readonly type: "array";
555
+ readonly title: "Regex Validation Error Message";
556
+ readonly description: "Localized error message shown when regex validation fails.";
557
+ };
558
+ readonly triggersRemoteValidation: {
559
+ readonly type: "boolean";
560
+ readonly title: "Triggers Remote Validation";
561
+ readonly description: "If true, field triggers remote validation.";
562
+ };
563
+ readonly remoteValidationErrorMessage: {
564
+ readonly items: {
565
+ readonly $ref: "#/components/schemas/MultilangTextDto";
566
+ };
567
+ readonly type: "array";
568
+ readonly title: "Remote Validation Error Message";
569
+ readonly description: "Localized error messages for remote validation.";
570
+ };
571
+ readonly upgradable: {
572
+ readonly type: "boolean";
573
+ readonly title: "Upgradable";
574
+ readonly description: "Whether the item attribute is upgradable by the user.";
575
+ };
576
+ };
577
+ readonly type: "object";
578
+ readonly required: readonly ["id", "label", "value", "type", "required", "disabled", "visibleInOrder", "visibleInClientPanel", "upgradable"];
459
579
  };
460
580
  readonly InfoDto: {
461
581
  readonly properties: {
@@ -486,9 +606,6 @@ export declare const ComponentsSchemas: {
486
606
  };
487
607
  readonly minItems: 1;
488
608
  readonly type: "array";
489
- readonly not: {
490
- readonly type: "null";
491
- };
492
609
  readonly title: "Supported Languages";
493
610
  readonly description: "Locales supported by the integration.";
494
611
  readonly example: readonly ["en"];
@@ -541,6 +658,15 @@ export declare const ComponentsSchemas: {
541
658
  readonly description: "URL to onboard/configure the integration.";
542
659
  readonly example: "https://example.com/onboarding";
543
660
  };
661
+ readonly setupAttributes: {
662
+ readonly items: {
663
+ readonly $ref: "#/components/schemas/FieldDto";
664
+ };
665
+ readonly type: "array";
666
+ readonly minItems: 1;
667
+ readonly title: "Setup Attributes";
668
+ readonly description: "Configurable attributes that are used in the setup process.";
669
+ };
544
670
  };
545
671
  readonly type: "object";
546
672
  readonly required: readonly ["title", "supportedLanguages"];
@@ -550,9 +676,6 @@ export declare const ComponentsSchemas: {
550
676
  readonly id: {
551
677
  readonly minLength: 1;
552
678
  readonly type: "string";
553
- readonly not: {
554
- readonly type: "null";
555
- };
556
679
  readonly title: "Unit ID";
557
680
  readonly description: "Unit identifier.";
558
681
  readonly example: "messages";
@@ -560,9 +683,6 @@ export declare const ComponentsSchemas: {
560
683
  readonly unitDescription: {
561
684
  readonly minLength: 1;
562
685
  readonly type: "string";
563
- readonly not: {
564
- readonly type: "null";
565
- };
566
686
  readonly title: "Unit Description";
567
687
  readonly description: "What is measured.";
568
688
  readonly example: "Message sent";
@@ -570,9 +690,6 @@ export declare const ComponentsSchemas: {
570
690
  readonly intervalDescription: {
571
691
  readonly minLength: 1;
572
692
  readonly type: "string";
573
- readonly not: {
574
- readonly type: "null";
575
- };
576
693
  readonly title: "Interval Description";
577
694
  readonly description: "Billing interval.";
578
695
  readonly example: "Per month";
@@ -584,9 +701,6 @@ export declare const ComponentsSchemas: {
584
701
  readonly NotificationInfoDto: {
585
702
  readonly properties: {
586
703
  readonly type: {
587
- readonly not: {
588
- readonly type: "null";
589
- };
590
704
  readonly enum: readonly ["email", "sms", "push"];
591
705
  readonly type: "string";
592
706
  readonly title: "Notification Type";
@@ -633,9 +747,6 @@ export declare const ComponentsSchemas: {
633
747
  };
634
748
  readonly minItems: 1;
635
749
  readonly type: "array";
636
- readonly not: {
637
- readonly type: "null";
638
- };
639
750
  readonly title: "Supported Languages";
640
751
  readonly description: "Locales supported by the integration.";
641
752
  readonly example: readonly ["en"];
@@ -688,181 +799,18 @@ export declare const ComponentsSchemas: {
688
799
  readonly description: "URL to onboard/configure the integration.";
689
800
  readonly example: "https://example.com/onboarding";
690
801
  };
691
- };
692
- readonly type: "object";
693
- readonly required: readonly ["type", "title", "supportedLanguages"];
694
- };
695
- readonly MultilangTextDto: {
696
- readonly properties: {
697
- readonly language: {
698
- readonly not: {
699
- readonly type: "null";
700
- };
701
- readonly enum: readonly ["aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "ch", "ce", "ny", "zh", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gl", "ka", "de", "el", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "ia", "id", "ie", "ga", "ig", "ik", "io", "is", "it", "iu", "ja", "jv", "kl", "kn", "kr", "ks", "kk", "km", "ki", "rw", "ky", "kv", "kg", "ko", "ku", "kj", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "gv", "mk", "mg", "ms", "ml", "mt", "mi", "mr", "mh", "mn", "na", "nv", "nd", "ne", "ng", "nb", "nn", "no", "ii", "nr", "oc", "oj", "cu", "om", "or", "os", "pa", "pi", "fa", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "rh", "ru", "sa", "sc", "sd", "se", "sm", "sg", "sr", "gd", "sn", "si", "sk", "sl", "so", "st", "es", "su", "sw", "ss", "sv", "ta", "te", "tg", "th", "ti", "bo", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "wo", "fy", "xh", "yi", "yo", "za", "zu"];
702
- readonly type: "string";
703
- };
704
- readonly text: {
705
- readonly minLength: 1;
706
- readonly type: "string";
707
- };
708
- };
709
- readonly type: "object";
710
- readonly required: readonly ["language", "text"];
711
- };
712
- readonly FieldOptionDto: {
713
- readonly properties: {
714
- readonly key: {
715
- readonly not: {
716
- readonly type: "null";
717
- };
718
- readonly type: "string";
719
- readonly title: "Key";
720
- readonly description: "Internal key for the option.";
721
- };
722
- readonly value: {
723
- readonly not: {
724
- readonly type: "null";
725
- };
726
- readonly type: "string";
727
- readonly title: "Value";
728
- readonly description: "Display value for the option.";
729
- };
730
- readonly disabled: {
731
- readonly type: "boolean";
732
- readonly title: "Disabled";
733
- readonly description: "Whether the option is disabled.";
734
- };
735
- };
736
- readonly type: "object";
737
- readonly required: readonly ["key", "value"];
738
- };
739
- readonly FieldDto: {
740
- readonly properties: {
741
- readonly id: {
742
- readonly not: {
743
- readonly type: "null";
744
- };
745
- readonly type: "string";
746
- readonly title: "ID";
747
- readonly description: "Unique identifier for the field.";
748
- };
749
- readonly label: {
750
- readonly items: {
751
- readonly $ref: "#/components/schemas/MultilangTextDto";
752
- };
753
- readonly minItems: 1;
754
- readonly type: "array";
755
- readonly title: "Label";
756
- readonly description: "Multilingual label for the field.";
757
- };
758
- readonly value: {
759
- readonly not: {
760
- readonly type: "null";
761
- };
762
- readonly title: "Value";
763
- readonly description: "Value of the field. String/Number, or FieldOptionDto/FieldOptionDto[] depending on type.";
764
- readonly oneOf: readonly [{
765
- readonly title: "String";
766
- readonly type: "string";
767
- }, {
768
- readonly title: "Number";
769
- readonly type: "number";
770
- }, {
771
- readonly title: "Option";
772
- readonly $ref: "#/components/schemas/FieldOptionDto";
773
- }, {
774
- readonly title: "Options Array";
775
- readonly type: "array";
776
- readonly items: {
777
- readonly $ref: "#/components/schemas/FieldOptionDto";
778
- };
779
- }];
780
- };
781
- readonly type: {
782
- readonly not: {
783
- readonly type: "null";
784
- };
785
- readonly enum: readonly ["TEXT_BOX", "TEXT_AREA", "SELECT", "MULTI_SELECT", "DESCRIPTION", "RADIO_BOX", "CHECKBOX", "SLIDER"];
786
- readonly type: "string";
787
- readonly title: "Field Type";
788
- readonly description: "Type of the field.";
789
- };
790
- readonly repeatableMin: {
791
- readonly type: "number";
792
- };
793
- readonly repeatableMax: {
794
- readonly type: "number";
795
- };
796
- readonly required: {
797
- readonly not: {
798
- readonly type: "null";
799
- };
800
- readonly type: "boolean";
801
- readonly title: "Required";
802
- readonly description: "Whether the field is required.";
803
- };
804
- readonly disabled: {
805
- readonly not: {
806
- readonly type: "null";
807
- };
808
- readonly type: "boolean";
809
- readonly title: "Disabled";
810
- readonly description: "Whether the field is disabled.";
811
- };
812
- readonly visibleInOrder: {
813
- readonly not: {
814
- readonly type: "null";
815
- };
816
- readonly type: "boolean";
817
- readonly title: "Visible In Order";
818
- readonly description: "Whether the field is visible in order.";
819
- };
820
- readonly visibleInClientPanel: {
821
- readonly not: {
822
- readonly type: "null";
823
- };
824
- readonly type: "boolean";
825
- readonly title: "Visible In Client Panel";
826
- readonly description: "Whether the field is visible in client panel.";
827
- };
828
- readonly regexValidation: {
829
- readonly type: "string";
830
- readonly title: "Regex Validation";
831
- readonly description: "Optional regex to validate input.";
832
- readonly example: "^[A-Za-z0-9_-]+$";
833
- };
834
- readonly regexValidationErrorMessage: {
835
- readonly items: {
836
- readonly $ref: "#/components/schemas/MultilangTextDto";
837
- };
838
- readonly type: "array";
839
- readonly title: "Regex Validation Error Message";
840
- readonly description: "Localized error message shown when regex validation fails.";
841
- };
842
- readonly triggersRemoteValidation: {
843
- readonly type: "boolean";
844
- readonly title: "Triggers Remote Validation";
845
- readonly description: "If true, field triggers remote validation.";
846
- };
847
- readonly remoteValidationErrorMessage: {
802
+ readonly setupAttributes: {
848
803
  readonly items: {
849
- readonly $ref: "#/components/schemas/MultilangTextDto";
804
+ readonly $ref: "#/components/schemas/FieldDto";
850
805
  };
851
806
  readonly type: "array";
852
- readonly title: "Remote Validation Error Message";
853
- readonly description: "Localized error messages for remote validation.";
854
- };
855
- readonly upgradable: {
856
- readonly not: {
857
- readonly type: "null";
858
- };
859
- readonly type: "boolean";
860
- readonly title: "Upgradable";
861
- readonly description: "Whether the item attribute is upgradable by the user.";
807
+ readonly minItems: 1;
808
+ readonly title: "Setup Attributes";
809
+ readonly description: "Configurable attributes that are used in the setup process.";
862
810
  };
863
811
  };
864
812
  readonly type: "object";
865
- readonly required: readonly ["id", "label", "value", "type", "required", "disabled", "visibleInOrder", "visibleInClientPanel", "upgradable"];
813
+ readonly required: readonly ["type", "title", "supportedLanguages"];
866
814
  };
867
815
  readonly ProductInfoDto: {
868
816
  readonly properties: {
@@ -937,9 +885,6 @@ export declare const ComponentsSchemas: {
937
885
  };
938
886
  readonly minItems: 1;
939
887
  readonly type: "array";
940
- readonly not: {
941
- readonly type: "null";
942
- };
943
888
  readonly title: "Supported Languages";
944
889
  readonly description: "Locales supported by the integration.";
945
890
  readonly example: readonly ["en"];
@@ -992,6 +937,15 @@ export declare const ComponentsSchemas: {
992
937
  readonly description: "URL to onboard/configure the integration.";
993
938
  readonly example: "https://example.com/onboarding";
994
939
  };
940
+ readonly setupAttributes: {
941
+ readonly items: {
942
+ readonly $ref: "#/components/schemas/FieldDto";
943
+ };
944
+ readonly type: "array";
945
+ readonly minItems: 1;
946
+ readonly title: "Setup Attributes";
947
+ readonly description: "Configurable attributes that are used in the setup process.";
948
+ };
995
949
  };
996
950
  readonly type: "object";
997
951
  readonly required: readonly ["title", "supportedLanguages"];