@hosterai/types 0.0.21 → 0.0.23

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 (56) hide show
  1. package/README.md +29 -2
  2. package/dist/dtos/field.dto.d.ts +8 -4
  3. package/dist/dtos/field.dto.js +17 -7
  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-info.dto.js +7 -3
  11. package/dist/dtos/notification/notification-request.dto.d.ts +20 -0
  12. package/dist/dtos/notification/notification-request.dto.js +31 -0
  13. package/dist/dtos/product/product.interface.d.ts +4 -4
  14. package/dist/dtos/receiver/receiver-email.dto.d.ts +20 -0
  15. package/dist/dtos/receiver/receiver-email.dto.js +39 -0
  16. package/dist/dtos/receiver/receiver-push.dto.d.ts +15 -0
  17. package/dist/dtos/receiver/receiver-push.dto.js +31 -0
  18. package/dist/dtos/receiver/receiver-sms.dto.d.ts +11 -0
  19. package/dist/dtos/receiver/receiver-sms.dto.js +26 -0
  20. package/dist/dtos/request.dto.d.ts +20 -0
  21. package/dist/dtos/request.dto.js +31 -0
  22. package/dist/dtos/requests/validate-attributes-request.dto.d.ts +18 -0
  23. package/dist/dtos/{product/requests/product-upgradeable-request.dto.js → requests/validate-attributes-request.dto.js} +11 -17
  24. package/dist/dtos/responses/validate-attributes-response.dto.d.ts +13 -0
  25. package/dist/dtos/responses/validate-attributes-response.dto.js +11 -0
  26. package/dist/dtos/sender/sender-email.dto.d.ts +25 -0
  27. package/dist/dtos/sender/sender-email.dto.js +46 -0
  28. package/dist/dtos/sender/sender-push.dto.d.ts +31 -0
  29. package/dist/dtos/sender/sender-push.dto.js +50 -0
  30. package/dist/dtos/sender/sender-sms.dto.d.ts +15 -0
  31. package/dist/dtos/sender/sender-sms.dto.js +30 -0
  32. package/dist/enums/actions.enum.d.ts +1 -0
  33. package/dist/enums/actions.enum.js +1 -0
  34. package/dist/enums/message-type.enum.d.ts +5 -0
  35. package/dist/enums/message-type.enum.js +9 -0
  36. package/dist/index.d.ts +2 -4
  37. package/dist/index.js +4 -4
  38. package/dist/openapi/schemas/components.schemas.d.ts +166 -221
  39. package/dist/openapi/schemas/components.schemas.js +549 -600
  40. package/dist/validators/field-validator.spec.js +11 -10
  41. package/dist/validators/product-info-validator.spec.js +18 -13
  42. package/dist/validators/product-validate-attributes-request-validator.d.ts +1 -1
  43. package/dist/validators/product-validate-attributes-request-validator.js +5 -5
  44. package/dist/validators/product-validate-attributes-request-validator.spec.js +3 -3
  45. package/package.json +1 -1
  46. package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +0 -18
  47. package/dist/dtos/product/requests/product-downgradeable-request.dto.js +0 -37
  48. package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +0 -18
  49. package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +0 -22
  50. package/dist/dtos/product/responses/product-downgradeable-response.dto.js +0 -11
  51. package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +0 -22
  52. package/dist/dtos/product/responses/product-upgradeable-response.dto.js +0 -11
  53. package/dist/validators/product-downgradeable-request-validator.d.ts +0 -8
  54. package/dist/validators/product-downgradeable-request-validator.js +0 -17
  55. package/dist/validators/product-upgradeable-request-validator.d.ts +0 -8
  56. package/dist/validators/product-upgradeable-request-validator.js +0 -17
package/dist/index.js CHANGED
@@ -39,6 +39,10 @@ __exportStar(require("./dtos/unit.dto"), exports);
39
39
  __exportStar(require("./dtos/admin-panel.dto"), exports);
40
40
  __exportStar(require("./dtos/client-panel.dto"), exports);
41
41
  __exportStar(require("./dtos/settings.dto"), exports);
42
+ // Base Requests
43
+ __exportStar(require("./dtos/requests/validate-attributes-request.dto"), exports);
44
+ // Base Response
45
+ __exportStar(require("./dtos/responses/validate-attributes-response.dto"), exports);
42
46
  // Notification DTOs
43
47
  __exportStar(require("./dtos/notification/notification-info.dto"), exports);
44
48
  __exportStar(require("./dtos/notification/notification-send-request.dto"), exports);
@@ -61,8 +65,6 @@ __exportStar(require("./dtos/product/requests/product-suspend-request.dto"), exp
61
65
  __exportStar(require("./dtos/product/requests/product-unsuspend-request.dto"), exports);
62
66
  __exportStar(require("./dtos/product/requests/product-upgrade-request.dto"), exports);
63
67
  __exportStar(require("./dtos/product/requests/product-upgradable-request.dto"), exports);
64
- __exportStar(require("./dtos/product/requests/product-validate-attributes-request.dto"), exports);
65
- __exportStar(require("./dtos/product/requests/item-validate-attributes-request.dto"), exports);
66
68
  // Product Responses
67
69
  __exportStar(require("./dtos/product/responses/product-create-response.dto"), exports);
68
70
  __exportStar(require("./dtos/product/responses/product-delete-response.dto"), exports);
@@ -74,8 +76,6 @@ __exportStar(require("./dtos/product/responses/product-suspend-response.dto"), e
74
76
  __exportStar(require("./dtos/product/responses/product-unsuspend-response.dto"), exports);
75
77
  __exportStar(require("./dtos/product/responses/product-upgrade-response.dto"), exports);
76
78
  __exportStar(require("./dtos/product/responses/product-upgradable-response.dto"), exports);
77
- __exportStar(require("./dtos/product/responses/product-validate-attributes-response.dto"), exports);
78
- __exportStar(require("./dtos/product/responses/item-validate-attributes-response.dto"), exports);
79
79
  // Enums
80
80
  __exportStar(require("./enums/actions.enum"), exports);
81
81
  __exportStar(require("./enums/country.enum"), exports);
@@ -113,9 +113,6 @@ export declare const ComponentsSchemas: {
113
113
  readonly $ref: "#/components/schemas/TabDto";
114
114
  };
115
115
  readonly type: "array";
116
- readonly not: {
117
- readonly type: "null";
118
- };
119
116
  readonly title: "Submenu";
120
117
  readonly description: "List of tabs that will appear in the submenu.";
121
118
  };
@@ -140,24 +137,15 @@ export declare const ComponentsSchemas: {
140
137
  readonly label: {
141
138
  readonly minLength: 1;
142
139
  readonly type: "string";
143
- readonly not: {
144
- readonly type: "null";
145
- };
146
140
  readonly title: "Label";
147
141
  readonly description: "Label of the settings page.";
148
142
  };
149
143
  readonly icon: {
150
- readonly not: {
151
- readonly type: "null";
152
- };
153
144
  readonly type: "string";
154
145
  readonly title: "Icon";
155
146
  readonly description: "Icon of the settings page.";
156
147
  };
157
148
  readonly description: {
158
- readonly not: {
159
- readonly type: "null";
160
- };
161
149
  readonly type: "string";
162
150
  readonly title: "Description";
163
151
  readonly description: "Description of the settings page.";
@@ -175,24 +163,15 @@ export declare const ComponentsSchemas: {
175
163
  readonly label: {
176
164
  readonly minLength: 1;
177
165
  readonly type: "string";
178
- readonly not: {
179
- readonly type: "null";
180
- };
181
166
  readonly title: "Label";
182
167
  readonly description: "Label of the settings page.";
183
168
  };
184
169
  readonly icon: {
185
- readonly not: {
186
- readonly type: "null";
187
- };
188
170
  readonly type: "string";
189
171
  readonly title: "Icon";
190
172
  readonly description: "Icon of the settings page.";
191
173
  };
192
174
  readonly description: {
193
- readonly not: {
194
- readonly type: "null";
195
- };
196
175
  readonly type: "string";
197
176
  readonly title: "Description";
198
177
  readonly description: "Description of the settings page.";
@@ -214,24 +193,15 @@ export declare const ComponentsSchemas: {
214
193
  readonly label: {
215
194
  readonly minLength: 1;
216
195
  readonly type: "string";
217
- readonly not: {
218
- readonly type: "null";
219
- };
220
196
  readonly title: "Label";
221
197
  readonly description: "Label of the settings page.";
222
198
  };
223
199
  readonly icon: {
224
- readonly not: {
225
- readonly type: "null";
226
- };
227
200
  readonly type: "string";
228
201
  readonly title: "Icon";
229
202
  readonly description: "Icon of the settings page.";
230
203
  };
231
204
  readonly description: {
232
- readonly not: {
233
- readonly type: "null";
234
- };
235
205
  readonly type: "string";
236
206
  readonly title: "Description";
237
207
  readonly description: "Description of the settings page.";
@@ -289,7 +259,6 @@ export declare const ComponentsSchemas: {
289
259
  };
290
260
  };
291
261
  readonly type: "object";
292
- readonly required: readonly [];
293
262
  };
294
263
  readonly AdminPanelMoreActionsDto: {
295
264
  readonly properties: {
@@ -340,7 +309,6 @@ export declare const ComponentsSchemas: {
340
309
  };
341
310
  };
342
311
  readonly type: "object";
343
- readonly required: readonly [];
344
312
  };
345
313
  readonly AdminPanelDto: {
346
314
  readonly properties: {
@@ -388,7 +356,6 @@ export declare const ComponentsSchemas: {
388
356
  };
389
357
  };
390
358
  readonly type: "object";
391
- readonly required: readonly [];
392
359
  };
393
360
  readonly ClientPanelTabsDto: {
394
361
  readonly properties: {
@@ -403,7 +370,6 @@ export declare const ComponentsSchemas: {
403
370
  };
404
371
  };
405
372
  readonly type: "object";
406
- readonly required: readonly [];
407
373
  };
408
374
  readonly ClientPanelMoreActionsDto: {
409
375
  readonly properties: {
@@ -418,7 +384,6 @@ export declare const ComponentsSchemas: {
418
384
  };
419
385
  };
420
386
  readonly type: "object";
421
- readonly required: readonly [];
422
387
  };
423
388
  readonly ClientPanelDto: {
424
389
  readonly properties: {
@@ -455,7 +420,145 @@ export declare const ComponentsSchemas: {
455
420
  };
456
421
  };
457
422
  readonly type: "object";
458
- readonly required: readonly [];
423
+ };
424
+ readonly MultilangTextDto: {
425
+ readonly properties: {
426
+ readonly language: {
427
+ 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"];
428
+ readonly type: "string";
429
+ };
430
+ readonly text: {
431
+ readonly minLength: 1;
432
+ readonly type: "string";
433
+ };
434
+ };
435
+ readonly type: "object";
436
+ readonly required: readonly ["language", "text"];
437
+ };
438
+ readonly FieldOptionDto: {
439
+ readonly properties: {
440
+ readonly key: {
441
+ readonly type: "string";
442
+ readonly title: "Key";
443
+ readonly description: "Internal key for the option.";
444
+ };
445
+ readonly value: {
446
+ readonly type: "string";
447
+ readonly title: "Value";
448
+ readonly description: "Display value for the option.";
449
+ };
450
+ readonly disabled: {
451
+ readonly type: "boolean";
452
+ readonly title: "Disabled";
453
+ readonly description: "Whether the option is disabled.";
454
+ };
455
+ };
456
+ readonly type: "object";
457
+ readonly required: readonly ["key", "value"];
458
+ };
459
+ readonly FieldDto: {
460
+ readonly properties: {
461
+ readonly id: {
462
+ readonly type: "string";
463
+ readonly title: "ID";
464
+ readonly description: "Unique identifier for the field.";
465
+ };
466
+ readonly label: {
467
+ readonly items: {
468
+ readonly $ref: "#/components/schemas/MultilangTextDto";
469
+ };
470
+ readonly minItems: 1;
471
+ readonly type: "array";
472
+ readonly title: "Label";
473
+ readonly description: "Multilingual label for the field.";
474
+ };
475
+ readonly value: {
476
+ readonly title: "Value";
477
+ readonly description: "Value of the field. String/Number, or FieldOptionDto/FieldOptionDto[] depending on type.";
478
+ readonly oneOf: readonly [{
479
+ readonly title: "String";
480
+ readonly type: "string";
481
+ }, {
482
+ readonly title: "Number";
483
+ readonly type: "number";
484
+ }, {
485
+ readonly title: "Option";
486
+ readonly $ref: "#/components/schemas/FieldOptionDto";
487
+ }, {
488
+ readonly title: "Options Array";
489
+ readonly type: "array";
490
+ readonly items: {
491
+ readonly $ref: "#/components/schemas/FieldOptionDto";
492
+ };
493
+ }];
494
+ };
495
+ readonly type: {
496
+ readonly enum: readonly ["TEXT_BOX", "TEXT_AREA", "SELECT", "MULTI_SELECT", "DESCRIPTION", "RADIO_BOX", "CHECKBOX", "SLIDER"];
497
+ readonly type: "string";
498
+ readonly title: "Field Type";
499
+ readonly description: "Type of the field.";
500
+ };
501
+ readonly repeatableMin: {
502
+ readonly type: "number";
503
+ };
504
+ readonly repeatableMax: {
505
+ readonly type: "number";
506
+ };
507
+ readonly required: {
508
+ readonly type: "boolean";
509
+ readonly title: "Required";
510
+ readonly description: "Whether the field is required.";
511
+ };
512
+ readonly disabled: {
513
+ readonly type: "boolean";
514
+ readonly title: "Disabled";
515
+ readonly description: "Whether the field is disabled.";
516
+ };
517
+ readonly visibleInOrder: {
518
+ readonly type: "boolean";
519
+ readonly title: "Visible In Order";
520
+ readonly description: "Whether the field is visible in order.";
521
+ };
522
+ readonly visibleInClientPanel: {
523
+ readonly type: "boolean";
524
+ readonly title: "Visible In Client Panel";
525
+ readonly description: "Whether the field is visible in client panel.";
526
+ };
527
+ readonly regexValidation: {
528
+ readonly type: "string";
529
+ readonly title: "Regex Validation";
530
+ readonly description: "Optional regex to validate input.";
531
+ readonly example: "^[A-Za-z0-9_-]+$";
532
+ };
533
+ readonly regexValidationErrorMessage: {
534
+ readonly items: {
535
+ readonly $ref: "#/components/schemas/MultilangTextDto";
536
+ };
537
+ readonly type: "array";
538
+ readonly title: "Regex Validation Error Message";
539
+ readonly description: "Localized error message shown when regex validation fails.";
540
+ };
541
+ readonly triggersRemoteValidation: {
542
+ readonly type: "boolean";
543
+ readonly title: "Triggers Remote Validation";
544
+ readonly description: "If true, field triggers remote validation.";
545
+ };
546
+ readonly remoteValidationErrorMessage: {
547
+ readonly items: {
548
+ readonly $ref: "#/components/schemas/MultilangTextDto";
549
+ };
550
+ readonly type: "array";
551
+ readonly title: "Remote Validation Error Message";
552
+ readonly description: "Localized error messages for remote validation.";
553
+ };
554
+ readonly upgradable: {
555
+ readonly type: "boolean";
556
+ readonly title: "Upgradable";
557
+ readonly description: "Whether the item attribute is upgradable by the user.";
558
+ };
559
+ };
560
+ readonly type: "object";
561
+ readonly required: readonly ["id", "label", "value", "type", "required", "disabled", "visibleInOrder", "visibleInClientPanel", "upgradable"];
459
562
  };
460
563
  readonly InfoDto: {
461
564
  readonly properties: {
@@ -486,16 +589,13 @@ export declare const ComponentsSchemas: {
486
589
  };
487
590
  readonly minItems: 1;
488
591
  readonly type: "array";
489
- readonly not: {
490
- readonly type: "null";
491
- };
492
592
  readonly title: "Supported Languages";
493
593
  readonly description: "Locales supported by the integration.";
494
594
  readonly example: readonly ["en"];
495
595
  };
496
596
  readonly supportedActions: {
497
597
  readonly items: {
498
- readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "suspend", "unsuspend", "delete"];
598
+ readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "trade", "suspend", "unsuspend", "delete"];
499
599
  readonly type: "string";
500
600
  };
501
601
  readonly type: "array";
@@ -541,6 +641,15 @@ export declare const ComponentsSchemas: {
541
641
  readonly description: "URL to onboard/configure the integration.";
542
642
  readonly example: "https://example.com/onboarding";
543
643
  };
644
+ readonly setupAttributes: {
645
+ readonly items: {
646
+ readonly $ref: "#/components/schemas/FieldDto";
647
+ };
648
+ readonly type: "array";
649
+ readonly minItems: 1;
650
+ readonly title: "Setup Attributes";
651
+ readonly description: "Configurable attributes that are used in the setup process.";
652
+ };
544
653
  };
545
654
  readonly type: "object";
546
655
  readonly required: readonly ["title", "supportedLanguages"];
@@ -550,9 +659,6 @@ export declare const ComponentsSchemas: {
550
659
  readonly id: {
551
660
  readonly minLength: 1;
552
661
  readonly type: "string";
553
- readonly not: {
554
- readonly type: "null";
555
- };
556
662
  readonly title: "Unit ID";
557
663
  readonly description: "Unit identifier.";
558
664
  readonly example: "messages";
@@ -560,9 +666,6 @@ export declare const ComponentsSchemas: {
560
666
  readonly unitDescription: {
561
667
  readonly minLength: 1;
562
668
  readonly type: "string";
563
- readonly not: {
564
- readonly type: "null";
565
- };
566
669
  readonly title: "Unit Description";
567
670
  readonly description: "What is measured.";
568
671
  readonly example: "Message sent";
@@ -570,9 +673,6 @@ export declare const ComponentsSchemas: {
570
673
  readonly intervalDescription: {
571
674
  readonly minLength: 1;
572
675
  readonly type: "string";
573
- readonly not: {
574
- readonly type: "null";
575
- };
576
676
  readonly title: "Interval Description";
577
677
  readonly description: "Billing interval.";
578
678
  readonly example: "Per month";
@@ -584,9 +684,6 @@ export declare const ComponentsSchemas: {
584
684
  readonly NotificationInfoDto: {
585
685
  readonly properties: {
586
686
  readonly type: {
587
- readonly not: {
588
- readonly type: "null";
589
- };
590
687
  readonly enum: readonly ["email", "sms", "push"];
591
688
  readonly type: "string";
592
689
  readonly title: "Notification Type";
@@ -633,16 +730,13 @@ export declare const ComponentsSchemas: {
633
730
  };
634
731
  readonly minItems: 1;
635
732
  readonly type: "array";
636
- readonly not: {
637
- readonly type: "null";
638
- };
639
733
  readonly title: "Supported Languages";
640
734
  readonly description: "Locales supported by the integration.";
641
735
  readonly example: readonly ["en"];
642
736
  };
643
737
  readonly supportedActions: {
644
738
  readonly items: {
645
- readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "suspend", "unsuspend", "delete"];
739
+ readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "trade", "suspend", "unsuspend", "delete"];
646
740
  readonly type: "string";
647
741
  };
648
742
  readonly type: "array";
@@ -688,173 +782,18 @@ export declare const ComponentsSchemas: {
688
782
  readonly description: "URL to onboard/configure the integration.";
689
783
  readonly example: "https://example.com/onboarding";
690
784
  };
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 reapetableMin: {
791
- readonly type: "number";
792
- };
793
- readonly reapetableMax: {
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 hidden: {
813
- readonly not: {
814
- readonly type: "null";
815
- };
816
- readonly type: "boolean";
817
- readonly title: "Hidden";
818
- readonly description: "Whether the field is hidden.";
819
- };
820
- readonly regexValidation: {
821
- readonly type: "string";
822
- readonly title: "Regex Validation";
823
- readonly description: "Optional regex to validate input.";
824
- readonly example: "^[A-Za-z0-9_-]+$";
825
- };
826
- readonly regexValidationErrorMessage: {
785
+ readonly setupAttributes: {
827
786
  readonly items: {
828
- readonly $ref: "#/components/schemas/MultilangTextDto";
829
- };
830
- readonly type: "array";
831
- readonly title: "Regex Validation Error Message";
832
- readonly description: "Localized error message shown when regex validation fails.";
833
- };
834
- readonly triggersRemoteValidation: {
835
- readonly type: "boolean";
836
- readonly title: "Triggers Remote Validation";
837
- readonly description: "If true, field triggers remote validation.";
838
- };
839
- readonly remoteValidationErrorMessage: {
840
- readonly items: {
841
- readonly $ref: "#/components/schemas/MultilangTextDto";
787
+ readonly $ref: "#/components/schemas/FieldDto";
842
788
  };
843
789
  readonly type: "array";
844
- readonly title: "Remote Validation Error Message";
845
- readonly description: "Localized error messages for remote validation.";
846
- };
847
- readonly upgradable: {
848
- readonly not: {
849
- readonly type: "null";
850
- };
851
- readonly type: "boolean";
852
- readonly title: "Upgradable";
853
- readonly description: "Whether the item attribute is upgradable by the user.";
790
+ readonly minItems: 1;
791
+ readonly title: "Setup Attributes";
792
+ readonly description: "Configurable attributes that are used in the setup process.";
854
793
  };
855
794
  };
856
795
  readonly type: "object";
857
- readonly required: readonly ["id", "label", "value", "type", "required", "disabled", "hidden", "upgradable"];
796
+ readonly required: readonly ["type", "title", "supportedLanguages"];
858
797
  };
859
798
  readonly ProductInfoDto: {
860
799
  readonly properties: {
@@ -929,16 +868,13 @@ export declare const ComponentsSchemas: {
929
868
  };
930
869
  readonly minItems: 1;
931
870
  readonly type: "array";
932
- readonly not: {
933
- readonly type: "null";
934
- };
935
871
  readonly title: "Supported Languages";
936
872
  readonly description: "Locales supported by the integration.";
937
873
  readonly example: readonly ["en"];
938
874
  };
939
875
  readonly supportedActions: {
940
876
  readonly items: {
941
- readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "suspend", "unsuspend", "delete"];
877
+ readonly enum: readonly ["create", "renew", "upgrade", "downgrade", "transfer", "trade", "suspend", "unsuspend", "delete"];
942
878
  readonly type: "string";
943
879
  };
944
880
  readonly type: "array";
@@ -984,6 +920,15 @@ export declare const ComponentsSchemas: {
984
920
  readonly description: "URL to onboard/configure the integration.";
985
921
  readonly example: "https://example.com/onboarding";
986
922
  };
923
+ readonly setupAttributes: {
924
+ readonly items: {
925
+ readonly $ref: "#/components/schemas/FieldDto";
926
+ };
927
+ readonly type: "array";
928
+ readonly minItems: 1;
929
+ readonly title: "Setup Attributes";
930
+ readonly description: "Configurable attributes that are used in the setup process.";
931
+ };
987
932
  };
988
933
  readonly type: "object";
989
934
  readonly required: readonly ["title", "supportedLanguages"];