@hosterai/types 0.0.27 → 0.0.29
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.
- package/README.md +5 -1
- package/dist/decorators/all-or-none-validator.spec.js +9 -3
- package/dist/decorators/at-least-one-non-empty-validator.spec.js +1 -1
- package/dist/decorators/at-least-one-non-empty.validator.js +2 -2
- package/dist/decorators/is-of-allowed-types-validator.spec.js +10 -8
- package/dist/decorators/is-of-allowed-types.validator.js +4 -2
- package/dist/decorators/is-one-of.validator.d.ts +2 -2
- package/dist/decorators/is-one-of.validator.js +1 -1
- package/dist/decorators/is-plain-object.validator.d.ts +1 -1
- package/dist/decorators/is-plain-object.validator.js +3 -1
- package/dist/decorators/is-property-forbidden-validator.spec.js +12 -4
- package/dist/decorators/is-property-forbidden.validator.d.ts +1 -1
- package/dist/decorators/is-regex.validator.d.ts +1 -1
- package/dist/decorators/min-less-or-equal-validator.spec.js +6 -2
- package/dist/dtos/action.dto.js +5 -5
- package/dist/dtos/addon-field.dto.d.ts +1 -1
- package/dist/dtos/admin-panel.dto.js +16 -18
- package/dist/dtos/attribute-field.dto.d.ts +1 -1
- package/dist/dtos/client-panel.dto.d.ts +3 -3
- package/dist/dtos/client-panel.dto.js +11 -10
- package/dist/dtos/company-data.dto.d.ts +4 -0
- package/dist/dtos/company-data.dto.js +19 -8
- package/dist/dtos/error-response.dto.js +1 -4
- package/dist/dtos/field-option.dto.js +3 -3
- package/dist/dtos/info.dto.js +10 -10
- package/dist/dtos/invoice/invoice-info.dto.d.ts +3 -3
- package/dist/dtos/invoice/invoice-info.dto.js +1 -1
- package/dist/dtos/invoice/invoice-item-data.dto.d.ts +2 -2
- package/dist/dtos/invoice/requests/base-invoice-request.dto.d.ts +30 -0
- package/dist/dtos/invoice/requests/base-invoice-request.dto.js +108 -0
- package/dist/dtos/invoice/requests/credit-note-request.dto.d.ts +2 -2
- package/dist/dtos/invoice/requests/credit-note-request.dto.js +2 -2
- package/dist/dtos/invoice/requests/invoice-request.dto.d.ts +2 -2
- package/dist/dtos/invoice/requests/invoice-request.dto.js +2 -2
- package/dist/dtos/invoice/requests/proforma-invoice-request.dto.d.ts +2 -19
- package/dist/dtos/invoice/requests/proforma-invoice-request.dto.js +2 -95
- package/dist/dtos/invoice/responses/credit-note-response.dto.d.ts +1 -1
- package/dist/dtos/invoice/responses/invoice-response.dto.d.ts +1 -1
- package/dist/dtos/invoice/responses/tax-details-response.dto.js +1 -1
- package/dist/dtos/invoice-contact-data.dto.d.ts +2 -2
- package/dist/dtos/invoice-contact-data.dto.js +5 -5
- package/dist/dtos/menu.dto.js +8 -4
- package/dist/dtos/notification/responses/notification-send-response.dto.d.ts +1 -1
- package/dist/dtos/notification/sender/sender-sms.dto.js +1 -1
- package/dist/dtos/product/product-info.dto.js +11 -5
- package/dist/dtos/product/product-item-data.dto.d.ts +2 -2
- package/dist/dtos/product/requests/product-create-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-delete-request.dto.js +3 -3
- package/dist/dtos/product/requests/product-downgradable-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-downgrade-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-downgradeable-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-renew-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-suspend-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-unsuspend-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-upgradable-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-upgrade-request.dto.js +1 -1
- package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-upgradeable-request.dto.js +37 -0
- package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-downgradeable-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-info-response.dto.js +1 -1
- package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-upgradeable-response.dto.js +11 -0
- package/dist/dtos/responses/validate-attributes-response.dto.d.ts +2 -2
- package/dist/dtos/tab.dto.js +2 -2
- package/dist/dtos/tax-manager/tax-details-request.dto.d.ts +31 -0
- package/dist/dtos/tax-manager/tax-details-request.dto.js +84 -0
- package/dist/dtos/unit.dto.js +3 -3
- package/dist/enums/country.enum.d.ts +1 -1
- package/dist/enums/country.enum.js +312 -78
- package/dist/enums/currency.enum.d.ts +43 -0
- package/dist/enums/currency.enum.js +47 -0
- package/dist/enums/events.enum.d.ts +3 -0
- package/dist/enums/events.enum.js +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/openapi/schemas/components.schemas.d.ts +3 -33
- package/dist/openapi/schemas/components.schemas.js +19 -40
- package/dist/validators/action-validator.spec.js +3 -3
- package/dist/validators/addon-field-validator.spec.js +10 -3
- package/dist/validators/admin-panel-more-actions-validator.spec.js +12 -8
- package/dist/validators/admin-panel-more-actions.validator.d.ts +1 -1
- package/dist/validators/admin-panel-tabs-validator.spec.js +74 -10
- package/dist/validators/admin-panel-tabs.validator.d.ts +1 -1
- package/dist/validators/admin-panel-validator.spec.js +164 -32
- package/dist/validators/attachment-validator.spec.js +8 -8
- package/dist/validators/attribute-field-validator.spec.js +18 -7
- package/dist/validators/client-panel-validator.spec.js +57 -9
- package/dist/validators/country-validator.spec.js +7 -7
- package/dist/validators/field-validator.spec.js +35 -10
- package/dist/validators/info-validator.spec.js +10 -10
- package/dist/validators/invoice-contact-data-validator.spec.js +18 -10
- package/dist/validators/invoice-info-validator.spec.js +14 -10
- package/dist/validators/invoice-item-data-validator.spec.js +4 -4
- package/dist/validators/item-data-validator.spec.js +17 -9
- package/dist/validators/menu-with-submenu-validator.spec.js +13 -11
- package/dist/validators/menu-with-url-validator.spec.js +15 -5
- package/dist/validators/notification-info-validator.spec.js +23 -15
- package/dist/validators/product-downgradeable-request-validator.d.ts +8 -0
- package/dist/validators/product-downgradeable-request-validator.js +17 -0
- package/dist/validators/product-info-validator.spec.js +46 -32
- package/dist/validators/product-info.validator.d.ts +1 -1
- package/dist/validators/product-item-data-validator.spec.js +12 -4
- package/dist/validators/product-upgradeable-request-validator.d.ts +8 -0
- package/dist/validators/product-upgradeable-request-validator.js +17 -0
- package/dist/validators/sender-sms-validator.spec.js +5 -2
- package/dist/validators/settings-with-tabs-validator.spec.js +176 -12
- package/dist/validators/settings-with-url-validator.spec.js +89 -11
- package/dist/validators/tab-validator.spec.js +7 -7
- package/dist/validators/tin-validation-details-validator.spec.js +8 -8
- package/dist/validators/transaction-data-validator.spec.js +13 -8
- package/dist/validators/unit-validator.spec.js +13 -4
- package/package.json +1 -1
- package/dist/dtos/info/info-notification.dto.d.ts +0 -5
- package/dist/dtos/info/info-notification.dto.js +0 -7
- package/dist/dtos/info/info.dto.d.ts +0 -196
- package/dist/dtos/info/info.dto.js +0 -278
- package/dist/dtos/notification/notification-request.dto.d.ts +0 -20
- package/dist/dtos/notification/notification-request.dto.js +0 -31
- package/dist/dtos/receiver/receiver-email.dto.d.ts +0 -20
- package/dist/dtos/receiver/receiver-email.dto.js +0 -39
- package/dist/dtos/receiver/receiver-push.dto.d.ts +0 -15
- package/dist/dtos/receiver/receiver-push.dto.js +0 -31
- package/dist/dtos/receiver/receiver-sms.dto.d.ts +0 -11
- package/dist/dtos/receiver/receiver-sms.dto.js +0 -26
- package/dist/dtos/request.dto.d.ts +0 -20
- package/dist/dtos/request.dto.js +0 -31
- package/dist/dtos/sender/sender-email.dto.d.ts +0 -25
- package/dist/dtos/sender/sender-email.dto.js +0 -46
- package/dist/dtos/sender/sender-push.dto.d.ts +0 -31
- package/dist/dtos/sender/sender-push.dto.js +0 -50
- package/dist/dtos/sender/sender-sms.dto.d.ts +0 -15
- package/dist/dtos/sender/sender-sms.dto.js +0 -30
- package/dist/enums/message-type.enum.d.ts +0 -5
- package/dist/enums/message-type.enum.js +0 -9
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrencyEnum = void 0;
|
|
4
|
+
var CurrencyEnum;
|
|
5
|
+
(function (CurrencyEnum) {
|
|
6
|
+
CurrencyEnum["EUR"] = "EUR";
|
|
7
|
+
CurrencyEnum["USD"] = "USD";
|
|
8
|
+
CurrencyEnum["GBP"] = "GBP";
|
|
9
|
+
CurrencyEnum["CHF"] = "CHF";
|
|
10
|
+
CurrencyEnum["SEK"] = "SEK";
|
|
11
|
+
CurrencyEnum["NOK"] = "NOK";
|
|
12
|
+
CurrencyEnum["DKK"] = "DKK";
|
|
13
|
+
CurrencyEnum["PLN"] = "PLN";
|
|
14
|
+
CurrencyEnum["CZK"] = "CZK";
|
|
15
|
+
CurrencyEnum["HUF"] = "HUF";
|
|
16
|
+
CurrencyEnum["RON"] = "RON";
|
|
17
|
+
CurrencyEnum["BGN"] = "BGN";
|
|
18
|
+
CurrencyEnum["TRY"] = "TRY";
|
|
19
|
+
CurrencyEnum["RUB"] = "RUB";
|
|
20
|
+
CurrencyEnum["JPY"] = "JPY";
|
|
21
|
+
CurrencyEnum["CNY"] = "CNY";
|
|
22
|
+
CurrencyEnum["AUD"] = "AUD";
|
|
23
|
+
CurrencyEnum["NZD"] = "NZD";
|
|
24
|
+
CurrencyEnum["CAD"] = "CAD";
|
|
25
|
+
CurrencyEnum["ZAR"] = "ZAR";
|
|
26
|
+
CurrencyEnum["INR"] = "INR";
|
|
27
|
+
CurrencyEnum["MXN"] = "MXN";
|
|
28
|
+
CurrencyEnum["BRL"] = "BRL";
|
|
29
|
+
CurrencyEnum["ARS"] = "ARS";
|
|
30
|
+
CurrencyEnum["CLP"] = "CLP";
|
|
31
|
+
CurrencyEnum["COP"] = "COP";
|
|
32
|
+
CurrencyEnum["PEN"] = "PEN";
|
|
33
|
+
CurrencyEnum["UYU"] = "UYU";
|
|
34
|
+
CurrencyEnum["VES"] = "VES";
|
|
35
|
+
CurrencyEnum["ILS"] = "ILS";
|
|
36
|
+
CurrencyEnum["AED"] = "AED";
|
|
37
|
+
CurrencyEnum["SAR"] = "SAR";
|
|
38
|
+
CurrencyEnum["KRW"] = "KRW";
|
|
39
|
+
CurrencyEnum["SGD"] = "SGD";
|
|
40
|
+
CurrencyEnum["HKD"] = "HKD";
|
|
41
|
+
CurrencyEnum["TWD"] = "TWD";
|
|
42
|
+
CurrencyEnum["THB"] = "THB";
|
|
43
|
+
CurrencyEnum["MYR"] = "MYR";
|
|
44
|
+
CurrencyEnum["IDR"] = "IDR";
|
|
45
|
+
CurrencyEnum["PHP"] = "PHP";
|
|
46
|
+
CurrencyEnum["VND"] = "VND";
|
|
47
|
+
})(CurrencyEnum || (exports.CurrencyEnum = CurrencyEnum = {}));
|
|
@@ -170,6 +170,9 @@ export declare enum EventsEnum {
|
|
|
170
170
|
ITEM_ACTIVATED = "item/activated",
|
|
171
171
|
ITEM_DEACTIVATED = "item/set-inactive",
|
|
172
172
|
ITEM_PROCESSED = "item/processed",
|
|
173
|
+
ITEM_REFUND_REQUESTED = "item/refund-requested",
|
|
174
|
+
ITEM_REFUND_ACCEPTED = "item/refund-accepted",
|
|
175
|
+
ITEM_REFUND_REJECTED = "item/refund-rejected",
|
|
173
176
|
ORDER_PAID = "order/paid",
|
|
174
177
|
TEST = "test",
|
|
175
178
|
DEAD_LETTER = "dead-lettering",
|
|
@@ -174,6 +174,9 @@ var EventsEnum;
|
|
|
174
174
|
EventsEnum["ITEM_ACTIVATED"] = "item/activated";
|
|
175
175
|
EventsEnum["ITEM_DEACTIVATED"] = "item/set-inactive";
|
|
176
176
|
EventsEnum["ITEM_PROCESSED"] = "item/processed";
|
|
177
|
+
EventsEnum["ITEM_REFUND_REQUESTED"] = "item/refund-requested";
|
|
178
|
+
EventsEnum["ITEM_REFUND_ACCEPTED"] = "item/refund-accepted";
|
|
179
|
+
EventsEnum["ITEM_REFUND_REJECTED"] = "item/refund-rejected";
|
|
177
180
|
EventsEnum["ORDER_PAID"] = "order/paid";
|
|
178
181
|
EventsEnum["TEST"] = "test";
|
|
179
182
|
EventsEnum["DEAD_LETTER"] = "dead-lettering";
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export * from './dtos/invoice/invoice-item-data.dto';
|
|
|
41
41
|
export * from './dtos/invoice/requests/invoice-request.dto';
|
|
42
42
|
export * from './dtos/invoice/requests/credit-note-request.dto';
|
|
43
43
|
export * from './dtos/invoice/requests/proforma-invoice-request.dto';
|
|
44
|
-
export * from './dtos/
|
|
44
|
+
export * from './dtos/tax-manager/tax-details-request.dto';
|
|
45
45
|
export * from './dtos/invoice/responses/invoice-response.dto';
|
|
46
46
|
export * from './dtos/invoice/responses/credit-note-response.dto';
|
|
47
47
|
export * from './dtos/invoice/responses/proforma-invoice-response.dto';
|
|
@@ -71,6 +71,7 @@ export * from './dtos/product/responses/product-upgrade-response.dto';
|
|
|
71
71
|
export * from './dtos/product/responses/product-upgradable-response.dto';
|
|
72
72
|
export * from './enums/item-actions.enum';
|
|
73
73
|
export * from './enums/country.enum';
|
|
74
|
+
export * from './enums/currency.enum';
|
|
74
75
|
export * from './enums/duration.enum';
|
|
75
76
|
export * from './enums/events.enum';
|
|
76
77
|
export * from './enums/field-type.enum';
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ __exportStar(require("./dtos/invoice/invoice-item-data.dto"), exports);
|
|
|
63
63
|
__exportStar(require("./dtos/invoice/requests/invoice-request.dto"), exports);
|
|
64
64
|
__exportStar(require("./dtos/invoice/requests/credit-note-request.dto"), exports);
|
|
65
65
|
__exportStar(require("./dtos/invoice/requests/proforma-invoice-request.dto"), exports);
|
|
66
|
-
__exportStar(require("./dtos/
|
|
66
|
+
__exportStar(require("./dtos/tax-manager/tax-details-request.dto"), exports);
|
|
67
67
|
__exportStar(require("./dtos/invoice/responses/invoice-response.dto"), exports);
|
|
68
68
|
__exportStar(require("./dtos/invoice/responses/credit-note-response.dto"), exports);
|
|
69
69
|
__exportStar(require("./dtos/invoice/responses/proforma-invoice-response.dto"), exports);
|
|
@@ -95,6 +95,7 @@ __exportStar(require("./dtos/product/responses/product-upgradable-response.dto")
|
|
|
95
95
|
// Enums
|
|
96
96
|
__exportStar(require("./enums/item-actions.enum"), exports);
|
|
97
97
|
__exportStar(require("./enums/country.enum"), exports);
|
|
98
|
+
__exportStar(require("./enums/currency.enum"), exports);
|
|
98
99
|
__exportStar(require("./enums/duration.enum"), exports);
|
|
99
100
|
__exportStar(require("./enums/events.enum"), exports);
|
|
100
101
|
__exportStar(require("./enums/field-type.enum"), exports);
|
|
@@ -341,23 +341,11 @@ export declare const ComponentsSchemas: {
|
|
|
341
341
|
readonly $ref: "#/components/schemas/AdminPanelTabsDto";
|
|
342
342
|
readonly title: "Tabs";
|
|
343
343
|
readonly description: "Tab structure for Admin panel sections.";
|
|
344
|
-
readonly type: "object";
|
|
345
|
-
readonly properties: {
|
|
346
|
-
readonly tabs: {
|
|
347
|
-
readonly $ref: "#/components/schemas/AdminPanelTabsDto";
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
344
|
};
|
|
351
345
|
readonly moreActions: {
|
|
352
346
|
readonly $ref: "#/components/schemas/AdminPanelMoreActionsDto";
|
|
353
347
|
readonly title: "More Actions";
|
|
354
348
|
readonly description: "Additional actions in Admin panel sections.";
|
|
355
|
-
readonly type: "object";
|
|
356
|
-
readonly properties: {
|
|
357
|
-
readonly moreActions: {
|
|
358
|
-
readonly $ref: "#/components/schemas/AdminPanelMoreActionsDto";
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
349
|
};
|
|
362
350
|
readonly menu: {
|
|
363
351
|
readonly title: "Menu";
|
|
@@ -416,23 +404,11 @@ export declare const ComponentsSchemas: {
|
|
|
416
404
|
readonly $ref: "#/components/schemas/ClientPanelTabsDto";
|
|
417
405
|
readonly title: "Tabs";
|
|
418
406
|
readonly description: "Tab structure for Client panel.";
|
|
419
|
-
readonly type: "object";
|
|
420
|
-
readonly properties: {
|
|
421
|
-
readonly tabs: {
|
|
422
|
-
readonly $ref: "#/components/schemas/ClientPanelTabsDto";
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
407
|
};
|
|
426
408
|
readonly moreActions: {
|
|
427
409
|
readonly $ref: "#/components/schemas/ClientPanelMoreActionsDto";
|
|
428
410
|
readonly title: "More Actions";
|
|
429
411
|
readonly description: "Additional actions in Client panel.";
|
|
430
|
-
readonly type: "object";
|
|
431
|
-
readonly properties: {
|
|
432
|
-
readonly moreActions: {
|
|
433
|
-
readonly $ref: "#/components/schemas/ClientPanelMoreActionsDto";
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
412
|
};
|
|
437
413
|
readonly menu: {
|
|
438
414
|
readonly title: "Menu";
|
|
@@ -616,7 +592,7 @@ export declare const ComponentsSchemas: {
|
|
|
616
592
|
};
|
|
617
593
|
readonly listenEvents: {
|
|
618
594
|
readonly items: {
|
|
619
|
-
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
595
|
+
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "item/refund-requested", "item/refund-accepted", "item/refund-rejected", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
620
596
|
readonly type: "string";
|
|
621
597
|
};
|
|
622
598
|
readonly minItems: 1;
|
|
@@ -638,13 +614,11 @@ export declare const ComponentsSchemas: {
|
|
|
638
614
|
readonly $ref: "#/components/schemas/AdminPanelDto";
|
|
639
615
|
readonly title: "Admin Panel";
|
|
640
616
|
readonly description: "Admin UI links, tabs, and actions provided by the integration.";
|
|
641
|
-
readonly type: "object";
|
|
642
617
|
};
|
|
643
618
|
readonly clientPanel: {
|
|
644
619
|
readonly $ref: "#/components/schemas/ClientPanelDto";
|
|
645
620
|
readonly title: "Client Panel";
|
|
646
621
|
readonly description: "Client UI links, tabs, and actions provided by the integration.";
|
|
647
|
-
readonly type: "object";
|
|
648
622
|
};
|
|
649
623
|
readonly onboardingUrl: {
|
|
650
624
|
readonly format: "uri";
|
|
@@ -748,7 +722,7 @@ export declare const ComponentsSchemas: {
|
|
|
748
722
|
};
|
|
749
723
|
readonly listenEvents: {
|
|
750
724
|
readonly items: {
|
|
751
|
-
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
725
|
+
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "item/refund-requested", "item/refund-accepted", "item/refund-rejected", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
752
726
|
readonly type: "string";
|
|
753
727
|
};
|
|
754
728
|
readonly minItems: 1;
|
|
@@ -770,13 +744,11 @@ export declare const ComponentsSchemas: {
|
|
|
770
744
|
readonly $ref: "#/components/schemas/AdminPanelDto";
|
|
771
745
|
readonly title: "Admin Panel";
|
|
772
746
|
readonly description: "Admin UI links, tabs, and actions provided by the integration.";
|
|
773
|
-
readonly type: "object";
|
|
774
747
|
};
|
|
775
748
|
readonly clientPanel: {
|
|
776
749
|
readonly $ref: "#/components/schemas/ClientPanelDto";
|
|
777
750
|
readonly title: "Client Panel";
|
|
778
751
|
readonly description: "Client UI links, tabs, and actions provided by the integration.";
|
|
779
|
-
readonly type: "object";
|
|
780
752
|
};
|
|
781
753
|
readonly onboardingUrl: {
|
|
782
754
|
readonly format: "uri";
|
|
@@ -1003,7 +975,7 @@ export declare const ComponentsSchemas: {
|
|
|
1003
975
|
};
|
|
1004
976
|
readonly listenEvents: {
|
|
1005
977
|
readonly items: {
|
|
1006
|
-
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
978
|
+
readonly enum: readonly ["user/created", "user/updated", "user/deleted", "user/banned", "user/unbanned", "user/company/access/added", "user/company/access/removed", "user/locked", "user/credit-balance/updated", "user/unlocked", "user/password/updated", "user/email/updated", "user/currency/updated", "user/invoice-contact/updated", "user/policy/updated", "user/languages/updated", "user/custom-price-policies/updated", "user/custom-addon-price-policies/updated", "user/custom-affiliate/added", "user/custom-affiliate/removed", "user/invoice-interval/updated", "user/additional-notification-email/removed", "user/additional-notification-email/added", "user/comment/added", "user/comment/removed", "user/comment/updated", "user/tags/updated", "user/setting/added", "user/setting/removed", "user/setting/updated", "user/start-selling", "user/roles/updated", "user/roles/added", "user/roles/deleted", "message/created", "message/updated", "message/deleted", "notification/sent", "policy/created", "policy/updated", "policy/deleted", "product-category/created", "product-category/updated", "product-category/deleted", "invoice-contact/created", "invoice-contact/updated", "invoice-contact/deleted", "invoice/created", "invoice/updated", "invoice/deleted", "currency/created", "currency/updated", "currency/deleted", "affiliate/created", "affiliate/updated", "affiliate/deleted", "company/created", "company/updated", "company/deleted", "organization/integration/attached", "organization/integration/detached", "tld/created", "tld/updated", "tld/deleted", "integration/created", "integration/updated", "integration/deleted", "integration/installed", "integration/uninstalled", "integration/activated", "integration/deactivated", "integration/maintenance-started", "integration/maintenance-finished", "domain-contact/created", "domain-contact/updated", "domain-contact/deleted", "domain-category/created", "domain-category/updated", "domain-category/deleted", "addon/created", "addon/updated", "addon/deleted", "transaction/created", "transaction/canceled", "transaction/failed", "transaction/subscribed", "transaction/unsubscribed", "transaction/updated", "transaction/deleted", "transaction/completed", "transaction/refunded", "template/created", "template/updated", "template/deleted", "coupon/created", "coupon/updated", "coupon/deleted", "template-integration/created", "template-integration/updated", "template-integration/deleted", "order/created", "order/status/in-progress", "order/status/completed", "order/status/canceled", "order/status/pending", "order/status/archived", "order/insufficient-balance", "order/item-detached", "order/invoice-contact-changed", "order/updated", "order/deleted", "setting/created", "setting/updated", "setting/deleted", "issue/created", "issue/updated", "issue/deleted", "task/created", "task/updated", "task/deleted", "task/canceled", "task/in-progress", "task/completed", "task/percentage/updated", "product/created", "product/updated", "product/deleted", "product/auto-renew/updated", "product/enabled", "product/disabled", "product/version-created", "ip-group/created", "ip-group/updated", "ip-group/deleted", "ip/created", "ip/updated", "ip/deleted", "domain-name/created", "domain-name/updated", "domain-name/deleted", "domain-name/locked", "domain-name/unlocked", "domain-name/idshield-activated", "domain-name/idshield-deactivated", "domain-name/bundle-added", "domain-name/bundle-removed", "domain-name/registrant-updated", "domain-name/admin-updated", "domain-name/tech-updated", "domain-name/billing-updated", "domain-name/additional-updated", "item/created", "item/updated", "item/deleted", "item/renewed", "item/upgraded", "item/downgraded", "item/ip-attached", "item/ip-detached", "item/detached-from-order", "item/postponed", "item/transferred-in", "item/canceled", "item/suspended", "item/unsuspended", "item/affiliate/added", "item/bundle/attached", "item/bundle/detached", "item/activated", "item/set-inactive", "item/processed", "item/refund-requested", "item/refund-accepted", "item/refund-rejected", "order/paid", "test", "dead-lettering", "core-queue"];
|
|
1007
979
|
readonly type: "string";
|
|
1008
980
|
};
|
|
1009
981
|
readonly minItems: 1;
|
|
@@ -1025,13 +997,11 @@ export declare const ComponentsSchemas: {
|
|
|
1025
997
|
readonly $ref: "#/components/schemas/AdminPanelDto";
|
|
1026
998
|
readonly title: "Admin Panel";
|
|
1027
999
|
readonly description: "Admin UI links, tabs, and actions provided by the integration.";
|
|
1028
|
-
readonly type: "object";
|
|
1029
1000
|
};
|
|
1030
1001
|
readonly clientPanel: {
|
|
1031
1002
|
readonly $ref: "#/components/schemas/ClientPanelDto";
|
|
1032
1003
|
readonly title: "Client Panel";
|
|
1033
1004
|
readonly description: "Client UI links, tabs, and actions provided by the integration.";
|
|
1034
|
-
readonly type: "object";
|
|
1035
1005
|
};
|
|
1036
1006
|
readonly onboardingUrl: {
|
|
1037
1007
|
readonly format: "uri";
|
|
@@ -643,24 +643,12 @@ exports.ComponentsSchemas = {
|
|
|
643
643
|
"tabs": {
|
|
644
644
|
"$ref": "#/components/schemas/AdminPanelTabsDto",
|
|
645
645
|
"title": "Tabs",
|
|
646
|
-
"description": "Tab structure for Admin panel sections."
|
|
647
|
-
"type": "object",
|
|
648
|
-
"properties": {
|
|
649
|
-
"tabs": {
|
|
650
|
-
"$ref": "#/components/schemas/AdminPanelTabsDto"
|
|
651
|
-
}
|
|
652
|
-
}
|
|
646
|
+
"description": "Tab structure for Admin panel sections."
|
|
653
647
|
},
|
|
654
648
|
"moreActions": {
|
|
655
649
|
"$ref": "#/components/schemas/AdminPanelMoreActionsDto",
|
|
656
650
|
"title": "More Actions",
|
|
657
|
-
"description": "Additional actions in Admin panel sections."
|
|
658
|
-
"type": "object",
|
|
659
|
-
"properties": {
|
|
660
|
-
"moreActions": {
|
|
661
|
-
"$ref": "#/components/schemas/AdminPanelMoreActionsDto"
|
|
662
|
-
}
|
|
663
|
-
}
|
|
651
|
+
"description": "Additional actions in Admin panel sections."
|
|
664
652
|
},
|
|
665
653
|
"menu": {
|
|
666
654
|
"title": "Menu",
|
|
@@ -724,24 +712,12 @@ exports.ComponentsSchemas = {
|
|
|
724
712
|
"tabs": {
|
|
725
713
|
"$ref": "#/components/schemas/ClientPanelTabsDto",
|
|
726
714
|
"title": "Tabs",
|
|
727
|
-
"description": "Tab structure for Client panel."
|
|
728
|
-
"type": "object",
|
|
729
|
-
"properties": {
|
|
730
|
-
"tabs": {
|
|
731
|
-
"$ref": "#/components/schemas/ClientPanelTabsDto"
|
|
732
|
-
}
|
|
733
|
-
}
|
|
715
|
+
"description": "Tab structure for Client panel."
|
|
734
716
|
},
|
|
735
717
|
"moreActions": {
|
|
736
718
|
"$ref": "#/components/schemas/ClientPanelMoreActionsDto",
|
|
737
719
|
"title": "More Actions",
|
|
738
|
-
"description": "Additional actions in Client panel."
|
|
739
|
-
"type": "object",
|
|
740
|
-
"properties": {
|
|
741
|
-
"moreActions": {
|
|
742
|
-
"$ref": "#/components/schemas/ClientPanelMoreActionsDto"
|
|
743
|
-
}
|
|
744
|
-
}
|
|
720
|
+
"description": "Additional actions in Client panel."
|
|
745
721
|
},
|
|
746
722
|
"menu": {
|
|
747
723
|
"title": "Menu",
|
|
@@ -1499,6 +1475,9 @@ exports.ComponentsSchemas = {
|
|
|
1499
1475
|
"item/activated",
|
|
1500
1476
|
"item/set-inactive",
|
|
1501
1477
|
"item/processed",
|
|
1478
|
+
"item/refund-requested",
|
|
1479
|
+
"item/refund-accepted",
|
|
1480
|
+
"item/refund-rejected",
|
|
1502
1481
|
"order/paid",
|
|
1503
1482
|
"test",
|
|
1504
1483
|
"dead-lettering",
|
|
@@ -1577,14 +1556,12 @@ exports.ComponentsSchemas = {
|
|
|
1577
1556
|
"adminPanel": {
|
|
1578
1557
|
"$ref": "#/components/schemas/AdminPanelDto",
|
|
1579
1558
|
"title": "Admin Panel",
|
|
1580
|
-
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
1581
|
-
"type": "object"
|
|
1559
|
+
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
1582
1560
|
},
|
|
1583
1561
|
"clientPanel": {
|
|
1584
1562
|
"$ref": "#/components/schemas/ClientPanelDto",
|
|
1585
1563
|
"title": "Client Panel",
|
|
1586
|
-
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
1587
|
-
"type": "object"
|
|
1564
|
+
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
1588
1565
|
},
|
|
1589
1566
|
"onboardingUrl": {
|
|
1590
1567
|
"format": "uri",
|
|
@@ -2060,6 +2037,9 @@ exports.ComponentsSchemas = {
|
|
|
2060
2037
|
"item/activated",
|
|
2061
2038
|
"item/set-inactive",
|
|
2062
2039
|
"item/processed",
|
|
2040
|
+
"item/refund-requested",
|
|
2041
|
+
"item/refund-accepted",
|
|
2042
|
+
"item/refund-rejected",
|
|
2063
2043
|
"order/paid",
|
|
2064
2044
|
"test",
|
|
2065
2045
|
"dead-lettering",
|
|
@@ -2138,14 +2118,12 @@ exports.ComponentsSchemas = {
|
|
|
2138
2118
|
"adminPanel": {
|
|
2139
2119
|
"$ref": "#/components/schemas/AdminPanelDto",
|
|
2140
2120
|
"title": "Admin Panel",
|
|
2141
|
-
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
2142
|
-
"type": "object"
|
|
2121
|
+
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
2143
2122
|
},
|
|
2144
2123
|
"clientPanel": {
|
|
2145
2124
|
"$ref": "#/components/schemas/ClientPanelDto",
|
|
2146
2125
|
"title": "Client Panel",
|
|
2147
|
-
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
2148
|
-
"type": "object"
|
|
2126
|
+
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
2149
2127
|
},
|
|
2150
2128
|
"onboardingUrl": {
|
|
2151
2129
|
"format": "uri",
|
|
@@ -2768,6 +2746,9 @@ exports.ComponentsSchemas = {
|
|
|
2768
2746
|
"item/activated",
|
|
2769
2747
|
"item/set-inactive",
|
|
2770
2748
|
"item/processed",
|
|
2749
|
+
"item/refund-requested",
|
|
2750
|
+
"item/refund-accepted",
|
|
2751
|
+
"item/refund-rejected",
|
|
2771
2752
|
"order/paid",
|
|
2772
2753
|
"test",
|
|
2773
2754
|
"dead-lettering",
|
|
@@ -2846,14 +2827,12 @@ exports.ComponentsSchemas = {
|
|
|
2846
2827
|
"adminPanel": {
|
|
2847
2828
|
"$ref": "#/components/schemas/AdminPanelDto",
|
|
2848
2829
|
"title": "Admin Panel",
|
|
2849
|
-
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
2850
|
-
"type": "object"
|
|
2830
|
+
"description": "Admin UI links, tabs, and actions provided by the integration."
|
|
2851
2831
|
},
|
|
2852
2832
|
"clientPanel": {
|
|
2853
2833
|
"$ref": "#/components/schemas/ClientPanelDto",
|
|
2854
2834
|
"title": "Client Panel",
|
|
2855
|
-
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
2856
|
-
"type": "object"
|
|
2835
|
+
"description": "Client UI links, tabs, and actions provided by the integration."
|
|
2857
2836
|
},
|
|
2858
2837
|
"onboardingUrl": {
|
|
2859
2838
|
"format": "uri",
|
|
@@ -36,7 +36,7 @@ describe('ActionDto Validator', () => {
|
|
|
36
36
|
it('should return error for missing required fields', () => {
|
|
37
37
|
const invalidDto = {
|
|
38
38
|
// missing 'icon' and 'url'
|
|
39
|
-
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL
|
|
39
|
+
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL,
|
|
40
40
|
};
|
|
41
41
|
const errors = (0, action_validator_1.validateActionDto)(invalidDto);
|
|
42
42
|
expect(errors.length).toBeGreaterThan(0);
|
|
@@ -47,7 +47,7 @@ describe('ActionDto Validator', () => {
|
|
|
47
47
|
const invalidDto = {
|
|
48
48
|
icon: 123, // should be a string
|
|
49
49
|
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL,
|
|
50
|
-
url: 456 // should be a string
|
|
50
|
+
url: 456, // should be a string
|
|
51
51
|
};
|
|
52
52
|
const errors = (0, action_validator_1.validateActionDto)(invalidDto);
|
|
53
53
|
expect(errors.length).toBeGreaterThan(0);
|
|
@@ -59,7 +59,7 @@ describe('ActionDto Validator', () => {
|
|
|
59
59
|
icon: 'test-icon',
|
|
60
60
|
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL,
|
|
61
61
|
url: 'https://example.com',
|
|
62
|
-
unexpectedField: 'unexpected' // additional field
|
|
62
|
+
unexpectedField: 'unexpected', // additional field
|
|
63
63
|
};
|
|
64
64
|
const errors = (0, action_validator_1.validateActionDto)(validDto);
|
|
65
65
|
expect(errors).toHaveLength(0);
|
|
@@ -22,9 +22,16 @@ describe('AddonFieldDto Validator', () => {
|
|
|
22
22
|
describe('Missing required fields', () => {
|
|
23
23
|
it('should return errors when all fields are missing', () => {
|
|
24
24
|
const errors = (0, addon_field_validator_1.validateAddonFieldDto)({});
|
|
25
|
-
const requiredProps = [
|
|
25
|
+
const requiredProps = [
|
|
26
|
+
'id',
|
|
27
|
+
'label',
|
|
28
|
+
'value',
|
|
29
|
+
'type',
|
|
30
|
+
'required',
|
|
31
|
+
'disabled',
|
|
32
|
+
];
|
|
26
33
|
for (const prop of requiredProps) {
|
|
27
|
-
expect(errors.some(e => e.property === prop)).toBe(true);
|
|
34
|
+
expect(errors.some((e) => e.property === prop)).toBe(true);
|
|
28
35
|
}
|
|
29
36
|
});
|
|
30
37
|
});
|
|
@@ -32,7 +39,7 @@ describe('AddonFieldDto Validator', () => {
|
|
|
32
39
|
it('should return error for invalid type enum', () => {
|
|
33
40
|
const dto = { ...baseValidDto, type: 'not-a-valid-type' };
|
|
34
41
|
const errors = (0, addon_field_validator_1.validateAddonFieldDto)(dto);
|
|
35
|
-
expect(errors.some(e => e.property === 'type')).toBe(true);
|
|
42
|
+
expect(errors.some((e) => e.property === 'type')).toBe(true);
|
|
36
43
|
});
|
|
37
44
|
});
|
|
38
45
|
});
|
|
@@ -81,16 +81,20 @@ describe('AdminPanelMoreActionsDto', () => {
|
|
|
81
81
|
});
|
|
82
82
|
it('validates complex nested structures', async () => {
|
|
83
83
|
const complexData = {
|
|
84
|
-
client: [
|
|
84
|
+
client: [
|
|
85
|
+
{
|
|
85
86
|
icon: 'add',
|
|
86
87
|
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL,
|
|
87
88
|
url: 'https://example.com/api',
|
|
88
|
-
nested: [
|
|
89
|
+
nested: [
|
|
90
|
+
{
|
|
89
91
|
icon: 'nested-icon',
|
|
90
92
|
openMethod: open_method_enum_1.OpenMethodEnum.AJAX_CALL,
|
|
91
|
-
url: 'https://example.com/nested'
|
|
92
|
-
}
|
|
93
|
-
|
|
93
|
+
url: 'https://example.com/nested',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
94
98
|
};
|
|
95
99
|
const errors = (0, admin_panel_more_actions_validator_1.validateAdminPanelMoreActionsDto)(complexData);
|
|
96
100
|
expect(errors.length).toBe(0);
|
|
@@ -106,14 +110,14 @@ describe('AdminPanelMoreActionsDto', () => {
|
|
|
106
110
|
item: [],
|
|
107
111
|
invoice: [],
|
|
108
112
|
user: [],
|
|
109
|
-
order: []
|
|
113
|
+
order: [],
|
|
110
114
|
};
|
|
111
115
|
const errors = (0, admin_panel_more_actions_validator_1.validateAdminPanelMoreActionsDto)(data);
|
|
112
116
|
expect(errors.length).toBeGreaterThan(0);
|
|
113
117
|
});
|
|
114
118
|
it('passes with one non-empty property', async () => {
|
|
115
119
|
const data = {
|
|
116
|
-
client: [minimalValidActionDto()]
|
|
120
|
+
client: [minimalValidActionDto()],
|
|
117
121
|
};
|
|
118
122
|
const errors = (0, admin_panel_more_actions_validator_1.validateAdminPanelMoreActionsDto)(data);
|
|
119
123
|
expect(errors.length).toBe(0);
|
|
@@ -121,7 +125,7 @@ describe('AdminPanelMoreActionsDto', () => {
|
|
|
121
125
|
it('passes with multiple non-empty properties', async () => {
|
|
122
126
|
const data = {
|
|
123
127
|
client: [minimalValidActionDto()],
|
|
124
|
-
item: [minimalValidActionDto()]
|
|
128
|
+
item: [minimalValidActionDto()],
|
|
125
129
|
};
|
|
126
130
|
const errors = (0, admin_panel_more_actions_validator_1.validateAdminPanelMoreActionsDto)(data);
|
|
127
131
|
expect(errors.length).toBe(0);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidationError } from
|
|
1
|
+
import { ValidationError } from 'class-validator';
|
|
2
2
|
export declare function validateAdminPanelMoreActionsDto(data: object): ValidationError[];
|