@hosterai/types 0.0.12 → 0.0.14

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 (130) hide show
  1. package/README.md +8 -1
  2. package/dist/dtos/action.dto.d.ts +21 -3
  3. package/dist/dtos/action.dto.js +10 -0
  4. package/dist/dtos/attachment.dto.d.ts +1 -1
  5. package/dist/dtos/attachment.dto.js +1 -1
  6. package/dist/dtos/client-data.dto.d.ts +65 -0
  7. package/dist/dtos/client-data.dto.js +106 -0
  8. package/dist/dtos/company-data.dto.d.ts +57 -0
  9. package/dist/dtos/company-data.dto.js +5 -2
  10. package/dist/dtos/error-response.dto.d.ts +8 -6
  11. package/dist/dtos/error-response.dto.js +2 -2
  12. package/dist/dtos/field.dto.d.ts +7 -2
  13. package/dist/dtos/field.dto.js +8 -3
  14. package/dist/dtos/info.dto.d.ts +61 -64
  15. package/dist/dtos/info.dto.js +6 -4
  16. package/dist/dtos/jwt.dto.d.ts +12 -9
  17. package/dist/dtos/jwt.dto.js +6 -2
  18. package/dist/dtos/menu.dto.d.ts +26 -11
  19. package/dist/dtos/multilang-text.dto.d.ts +11 -0
  20. package/dist/dtos/multilang-text.dto.js +4 -0
  21. package/dist/dtos/notification/notification-info.dto.d.ts +15 -0
  22. package/dist/dtos/notification/notification-info.dto.js +4 -0
  23. package/dist/dtos/notification/{notification-request.dto.d.ts → notification-send-request.dto.d.ts} +6 -1
  24. package/dist/dtos/notification/{notification-request.dto.js → notification-send-request.dto.js} +11 -6
  25. package/dist/dtos/product/product-info.dto.d.ts +30 -0
  26. package/dist/dtos/product/product-info.dto.js +11 -0
  27. package/dist/dtos/product/product-item-data.dto.d.ts +31 -0
  28. package/dist/dtos/product/product-item-data.dto.js +43 -0
  29. package/dist/dtos/product/product.interface.d.ts +44 -0
  30. package/dist/dtos/product/product.interface.js +2 -0
  31. package/dist/dtos/product/requests/product-create-request.dto.d.ts +18 -0
  32. package/dist/dtos/product/requests/product-create-request.dto.js +37 -0
  33. package/dist/dtos/product/requests/product-delete-request.dto.d.ts +18 -0
  34. package/dist/dtos/product/requests/product-delete-request.dto.js +37 -0
  35. package/dist/dtos/product/requests/product-downgradable-request.dto.d.ts +18 -0
  36. package/dist/dtos/product/requests/product-downgradable-request.dto.js +37 -0
  37. package/dist/dtos/product/requests/product-downgrade-request.dto.d.ts +24 -0
  38. package/dist/dtos/product/requests/product-downgrade-request.dto.js +44 -0
  39. package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +18 -0
  40. package/dist/dtos/product/requests/product-downgradeable-request.dto.js +37 -0
  41. package/dist/dtos/product/requests/product-renew-request.dto.d.ts +18 -0
  42. package/dist/dtos/product/requests/product-renew-request.dto.js +37 -0
  43. package/dist/dtos/product/requests/product-suspend-request.dto.d.ts +18 -0
  44. package/dist/dtos/product/requests/product-suspend-request.dto.js +37 -0
  45. package/dist/dtos/product/requests/product-unsuspend-request.dto.d.ts +18 -0
  46. package/dist/dtos/product/requests/product-unsuspend-request.dto.js +37 -0
  47. package/dist/dtos/product/requests/product-upgradable-request.dto.d.ts +18 -0
  48. package/dist/dtos/product/requests/product-upgradable-request.dto.js +37 -0
  49. package/dist/dtos/product/requests/product-upgrade-request.dto.d.ts +24 -0
  50. package/dist/dtos/product/requests/product-upgrade-request.dto.js +44 -0
  51. package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +18 -0
  52. package/dist/dtos/product/requests/product-upgradeable-request.dto.js +37 -0
  53. package/dist/dtos/product/requests/product-validate-attributes-request.dto.d.ts +18 -0
  54. package/dist/dtos/product/requests/product-validate-attributes-request.dto.js +31 -0
  55. package/dist/dtos/product/responses/product-create-response.dto.d.ts +21 -0
  56. package/dist/dtos/product/responses/product-create-response.dto.js +11 -0
  57. package/dist/dtos/product/responses/product-delete-response.dto.d.ts +21 -0
  58. package/dist/dtos/product/responses/product-delete-response.dto.js +11 -0
  59. package/dist/dtos/product/responses/product-downgradable-response.dto.d.ts +22 -0
  60. package/dist/dtos/product/responses/product-downgradable-response.dto.js +11 -0
  61. package/dist/dtos/product/responses/product-downgrade-response.dto.d.ts +21 -0
  62. package/dist/dtos/product/responses/product-downgrade-response.dto.js +11 -0
  63. package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +22 -0
  64. package/dist/dtos/product/responses/product-downgradeable-response.dto.js +11 -0
  65. package/dist/dtos/product/responses/product-info-response.dto.d.ts +13 -0
  66. package/dist/dtos/product/responses/product-info-response.dto.js +11 -0
  67. package/dist/dtos/product/responses/product-renew-response.dto.d.ts +21 -0
  68. package/dist/dtos/product/responses/product-renew-response.dto.js +11 -0
  69. package/dist/dtos/product/responses/product-suspend-response.dto.d.ts +21 -0
  70. package/dist/dtos/product/responses/product-suspend-response.dto.js +11 -0
  71. package/dist/dtos/product/responses/product-unsuspend-response.dto.d.ts +21 -0
  72. package/dist/dtos/product/responses/product-unsuspend-response.dto.js +11 -0
  73. package/dist/dtos/product/responses/product-upgradable-response.dto.d.ts +22 -0
  74. package/dist/dtos/product/responses/product-upgradable-response.dto.js +11 -0
  75. package/dist/dtos/product/responses/product-upgrade-response.dto.d.ts +22 -0
  76. package/dist/dtos/product/responses/product-upgrade-response.dto.js +11 -0
  77. package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +22 -0
  78. package/dist/dtos/product/responses/product-upgradeable-response.dto.js +11 -0
  79. package/dist/dtos/product/responses/product-validate-attributes-response.dto.d.ts +13 -0
  80. package/dist/dtos/product/responses/product-validate-attributes-response.dto.js +11 -0
  81. package/dist/dtos/response-data.dto.d.ts +7 -0
  82. package/dist/dtos/response-data.dto.js +4 -0
  83. package/dist/dtos/setup-status-response.dto.d.ts +8 -0
  84. package/dist/dtos/setup-status-response.dto.js +4 -0
  85. package/dist/dtos/submenu.dto.d.ts +7 -0
  86. package/dist/dtos/submenu.dto.js +11 -0
  87. package/dist/dtos/success-response.dto.d.ts +4 -0
  88. package/dist/dtos/success-response.dto.js +4 -0
  89. package/dist/dtos/tab.dto.d.ts +0 -2
  90. package/dist/dtos/tab.dto.js +1 -4
  91. package/dist/dtos/task-response.dto.d.ts +4 -0
  92. package/dist/dtos/task-response.dto.js +4 -0
  93. package/dist/dtos/unit.dto.d.ts +16 -0
  94. package/dist/dtos/unit.dto.js +4 -0
  95. package/dist/enums/duration.enum.d.ts +23 -0
  96. package/dist/enums/duration.enum.js +27 -0
  97. package/dist/enums/events.enum.d.ts +11 -8
  98. package/dist/enums/events.enum.js +11 -8
  99. package/dist/enums/response-status.enum.d.ts +5 -0
  100. package/dist/enums/response-status.enum.js +9 -0
  101. package/dist/index.d.ts +57 -14
  102. package/dist/index.js +65 -19
  103. package/dist/validators/client-data-validator.d.ts +8 -0
  104. package/dist/validators/client-data-validator.js +17 -0
  105. package/dist/validators/notification-request-validator.js +2 -2
  106. package/dist/validators/product-create-request-validator.d.ts +8 -0
  107. package/dist/validators/product-create-request-validator.js +17 -0
  108. package/dist/validators/product-delete-request-validator.d.ts +8 -0
  109. package/dist/validators/product-delete-request-validator.js +17 -0
  110. package/dist/validators/product-downgradable-request-validator.d.ts +8 -0
  111. package/dist/validators/product-downgradable-request-validator.js +17 -0
  112. package/dist/validators/product-downgrade-request-validator.d.ts +8 -0
  113. package/dist/validators/product-downgrade-request-validator.js +17 -0
  114. package/dist/validators/product-downgradeable-request-validator.d.ts +8 -0
  115. package/dist/validators/product-downgradeable-request-validator.js +17 -0
  116. package/dist/validators/product-renew-request-validator.d.ts +8 -0
  117. package/dist/validators/product-renew-request-validator.js +17 -0
  118. package/dist/validators/product-suspend-request-validator.d.ts +8 -0
  119. package/dist/validators/product-suspend-request-validator.js +17 -0
  120. package/dist/validators/product-unsuspend-request-validator.d.ts +8 -0
  121. package/dist/validators/product-unsuspend-request-validator.js +17 -0
  122. package/dist/validators/product-upgradable-request-validator.d.ts +8 -0
  123. package/dist/validators/product-upgradable-request-validator.js +17 -0
  124. package/dist/validators/product-upgrade-request-validator.d.ts +8 -0
  125. package/dist/validators/product-upgrade-request-validator.js +17 -0
  126. package/dist/validators/product-upgradeable-request-validator.d.ts +8 -0
  127. package/dist/validators/product-upgradeable-request-validator.js +17 -0
  128. package/dist/validators/product-validate-attributes-request-validator.d.ts +8 -0
  129. package/dist/validators/product-validate-attributes-request-validator.js +17 -0
  130. package/package.json +9 -4
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductDowngradeResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to downgrade a product.
7
+ * It confirms the status of the downgrade operation.
8
+ */
9
+ class ProductDowngradeResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductDowngradeResponseDto = ProductDowngradeResponseDto;
@@ -0,0 +1,22 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response for a product downgradeable check.
5
+ * It indicates whether a product item is downgradeable and may contain additional data.
6
+ */
7
+ export declare class ProductDowngradeableResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating success or failure.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item being checked.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the downgradeable check.
18
+ * Can contain details about available downgrades or reasons for failure.
19
+ * @optional
20
+ */
21
+ data?: Record<string, unknown>;
22
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductDowngradeableResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response for a product downgradeable check.
7
+ * It indicates whether a product item is downgradeable and may contain additional data.
8
+ */
9
+ class ProductDowngradeableResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductDowngradeableResponseDto = ProductDowngradeableResponseDto;
@@ -0,0 +1,13 @@
1
+ import { BaseResponse } from '../../base-response.dto';
2
+ import { ProductInfoDto } from '../product-info.dto';
3
+ /**
4
+ * Represents the response containing product information.
5
+ * This DTO extends the `BaseResponse` and includes the detailed product information.
6
+ */
7
+ export declare class ProductInfoResponseDto extends BaseResponse {
8
+ /**
9
+ * The detailed information of the product.
10
+ * This object contains all the attributes and settings of the product.
11
+ */
12
+ info: ProductInfoDto;
13
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductInfoResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response containing product information.
7
+ * This DTO extends the `BaseResponse` and includes the detailed product information.
8
+ */
9
+ class ProductInfoResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductInfoResponseDto = ProductInfoResponseDto;
@@ -0,0 +1,21 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response after attempting to renew a product.
5
+ * It confirms the status of the renewal operation.
6
+ */
7
+ export declare class ProductRenewResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating the outcome of the renewal.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item that was renewed.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the renewal response.
18
+ * @optional
19
+ */
20
+ data?: Record<string, unknown>;
21
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductRenewResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to renew a product.
7
+ * It confirms the status of the renewal operation.
8
+ */
9
+ class ProductRenewResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductRenewResponseDto = ProductRenewResponseDto;
@@ -0,0 +1,21 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response after attempting to suspend a product.
5
+ * It confirms the status of the suspend operation.
6
+ */
7
+ export declare class ProductSuspendResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating the outcome of the suspend operation.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item that was suspended.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the suspend response.
18
+ * @optional
19
+ */
20
+ data?: Record<string, unknown>;
21
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductSuspendResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to suspend a product.
7
+ * It confirms the status of the suspend operation.
8
+ */
9
+ class ProductSuspendResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductSuspendResponseDto = ProductSuspendResponseDto;
@@ -0,0 +1,21 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response after attempting to unsuspend a product.
5
+ * It confirms the status of the unsuspend operation.
6
+ */
7
+ export declare class ProductUnsuspendResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating the outcome of the unsuspend operation.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item that was unsuspended.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the unsuspend response.
18
+ * @optional
19
+ */
20
+ data?: Record<string, unknown>;
21
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductUnsuspendResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to unsuspend a product.
7
+ * It confirms the status of the unsuspend operation.
8
+ */
9
+ class ProductUnsuspendResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductUnsuspendResponseDto = ProductUnsuspendResponseDto;
@@ -0,0 +1,22 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response for a product upgradable check.
5
+ * It indicates whether a product item is upgradable and may contain additional data.
6
+ */
7
+ export declare class ProductUpgradableResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating success or failure.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item being checked.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the upgradable check.
18
+ * Can contain details about available upgrades or reasons for failure.
19
+ * @optional
20
+ */
21
+ data?: Record<string, unknown>;
22
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductUpgradableResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response for a product upgradable check.
7
+ * It indicates whether a product item is upgradable and may contain additional data.
8
+ */
9
+ class ProductUpgradableResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductUpgradableResponseDto = ProductUpgradableResponseDto;
@@ -0,0 +1,22 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response after attempting to upgrade a product.
5
+ * It confirms the status of the upgrade operation.
6
+ */
7
+ export declare class ProductUpgradeResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating the outcome of the upgrade.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item that was upgraded.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the upgrade response.
18
+ * This could include details about the new subscription or other relevant information.
19
+ * @optional
20
+ */
21
+ data?: Record<string, unknown>;
22
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductUpgradeResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to upgrade a product.
7
+ * It confirms the status of the upgrade operation.
8
+ */
9
+ class ProductUpgradeResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductUpgradeResponseDto = ProductUpgradeResponseDto;
@@ -0,0 +1,22 @@
1
+ import { ResponseStatusEnum } from '../../../enums/response-status.enum';
2
+ import { BaseResponse } from '../../base-response.dto';
3
+ /**
4
+ * Represents the response for a product upgradeable check.
5
+ * It indicates whether a product item is upgradeable and may contain additional data.
6
+ */
7
+ export declare class ProductUpgradeableResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating success or failure.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item being checked.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the upgradeable check.
18
+ * Can contain details about available upgrades or reasons for failure.
19
+ * @optional
20
+ */
21
+ data?: Record<string, unknown>;
22
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductUpgradeableResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response for a product upgradeable check.
7
+ * It indicates whether a product item is upgradeable and may contain additional data.
8
+ */
9
+ class ProductUpgradeableResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductUpgradeableResponseDto = ProductUpgradeableResponseDto;
@@ -0,0 +1,13 @@
1
+ import { BaseResponse } from '../../base-response.dto';
2
+ import { FieldDto } from '../../field.dto';
3
+ /**
4
+ * Represents the response from validating product attributes.
5
+ * Contains the list of attributes that have been validated.
6
+ */
7
+ export declare class ProductValidateAttributesResponseDto extends BaseResponse {
8
+ /**
9
+ * An array of field DTOs representing the validated attributes.
10
+ * Each `FieldDto` contains details about a single attribute.
11
+ */
12
+ validatedAttributes: FieldDto[];
13
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductValidateAttributesResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response from validating product attributes.
7
+ * Contains the list of attributes that have been validated.
8
+ */
9
+ class ProductValidateAttributesResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductValidateAttributesResponseDto = ProductValidateAttributesResponseDto;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * DTO for response data.
3
+ * Used to return a generic data object in API responses.
4
+ */
1
5
  export declare class ResponseDataDto {
6
+ /**
7
+ * A record of key-value pairs representing the response data.
8
+ */
2
9
  data: Record<string, unknown>;
3
10
  }
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResponseDataDto = void 0;
4
+ /**
5
+ * DTO for response data.
6
+ * Used to return a generic data object in API responses.
7
+ */
4
8
  class ResponseDataDto {
5
9
  }
6
10
  exports.ResponseDataDto = ResponseDataDto;
@@ -1,5 +1,13 @@
1
1
  import { SetupStatusEnum } from '../enums/setup-status.enum';
2
2
  import { BaseResponse } from './base-response.dto';
3
+ /**
4
+ * DTO for setup status response.
5
+ * Extends the base response to include the setup status.
6
+ */
3
7
  export declare class SetupStatusResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the setup process.
10
+ * @see SetupStatusEnum
11
+ */
4
12
  status: SetupStatusEnum;
5
13
  }
@@ -2,6 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SetupStatusResponseDto = void 0;
4
4
  const base_response_dto_1 = require("./base-response.dto");
5
+ /**
6
+ * DTO for setup status response.
7
+ * Extends the base response to include the setup status.
8
+ */
5
9
  class SetupStatusResponseDto extends base_response_dto_1.BaseResponse {
6
10
  }
7
11
  exports.SetupStatusResponseDto = SetupStatusResponseDto;
@@ -0,0 +1,7 @@
1
+ import { TabDto } from './tab.dto';
2
+ /**
3
+ * DTO for submenus.
4
+ * Extends the TabDto to represent a submenu item.
5
+ */
6
+ export declare class SubmenuDto extends TabDto {
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmenuDto = void 0;
4
+ const tab_dto_1 = require("./tab.dto");
5
+ /**
6
+ * DTO for submenus.
7
+ * Extends the TabDto to represent a submenu item.
8
+ */
9
+ class SubmenuDto extends tab_dto_1.TabDto {
10
+ }
11
+ exports.SubmenuDto = SubmenuDto;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * DTO for a successful response.
3
+ * Used to return the ID of a created resource.
4
+ */
1
5
  export declare class SuccessResponseDto {
2
6
  /**
3
7
  * The ID of the notification that was sent
@@ -11,6 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SuccessResponseDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ /**
15
+ * DTO for a successful response.
16
+ * Used to return the ID of a created resource.
17
+ */
14
18
  class SuccessResponseDto {
15
19
  }
16
20
  exports.SuccessResponseDto = SuccessResponseDto;
@@ -14,5 +14,3 @@ export declare class TabDto {
14
14
  */
15
15
  url: string;
16
16
  }
17
- export declare class SubmenuDto extends TabDto {
18
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmenuDto = exports.TabDto = void 0;
3
+ exports.TabDto = void 0;
4
4
  /**
5
5
  * DTO for tabs
6
6
  * Used for defining tabs in the user interface
@@ -8,6 +8,3 @@ exports.SubmenuDto = exports.TabDto = void 0;
8
8
  class TabDto {
9
9
  }
10
10
  exports.TabDto = TabDto;
11
- class SubmenuDto extends TabDto {
12
- }
13
- exports.SubmenuDto = SubmenuDto;
@@ -1,3 +1,7 @@
1
+ /**
2
+ * DTO for task response.
3
+ * Used to return the ID of a created task.
4
+ */
1
5
  export declare class TaskResponseDto {
2
6
  /**
3
7
  * The ID of the task that was created
@@ -11,6 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TaskResponseDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ /**
15
+ * DTO for task response.
16
+ * Used to return the ID of a created task.
17
+ */
14
18
  class TaskResponseDto {
15
19
  }
16
20
  exports.TaskResponseDto = TaskResponseDto;
@@ -1,5 +1,21 @@
1
+ /**
2
+ * DTO for billing units.
3
+ * Used for defining units for pay-per-use billing.
4
+ */
1
5
  export declare class UnitDto {
6
+ /**
7
+ * The unique identifier for the unit.
8
+ * @example "ram"
9
+ */
2
10
  id: string;
11
+ /**
12
+ * The description of the unit.
13
+ * @example "MB"
14
+ */
3
15
  unitDescription: string;
16
+ /**
17
+ * The description of the billing interval.
18
+ * @example "month"
19
+ */
4
20
  intervalDescription: string;
5
21
  }
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnitDto = void 0;
4
+ /**
5
+ * DTO for billing units.
6
+ * Used for defining units for pay-per-use billing.
7
+ */
4
8
  class UnitDto {
5
9
  }
6
10
  exports.UnitDto = UnitDto;
@@ -0,0 +1,23 @@
1
+ export declare enum DurationEnum {
2
+ ONE_MONTH = "1",
3
+ TWO_MONTHS = "2",
4
+ THREE_MONTHS = "3",
5
+ FOUR_MONTHS = "4",
6
+ FIVE_MONTHS = "5",
7
+ SIX_MONTHS = "6",
8
+ SEVEN_MONTHS = "7",
9
+ EIGHT_MONTHS = "8",
10
+ NINE_MONTHS = "9",
11
+ TEN_MONTHS = "10",
12
+ ELEVEN_MONTHS = "11",
13
+ ONE_YEAR = "12",
14
+ TWO_YEARS = "24",
15
+ THREE_YEARS = "36",
16
+ FOUR_YEARS = "48",
17
+ FIVE_YEARS = "60",
18
+ SIX_YEARS = "72",
19
+ SEVEN_YEARS = "84",
20
+ EIGHT_YEARS = "96",
21
+ NINE_YEARS = "108",
22
+ TEN_YEARS = "120"
23
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DurationEnum = void 0;
4
+ var DurationEnum;
5
+ (function (DurationEnum) {
6
+ DurationEnum["ONE_MONTH"] = "1";
7
+ DurationEnum["TWO_MONTHS"] = "2";
8
+ DurationEnum["THREE_MONTHS"] = "3";
9
+ DurationEnum["FOUR_MONTHS"] = "4";
10
+ DurationEnum["FIVE_MONTHS"] = "5";
11
+ DurationEnum["SIX_MONTHS"] = "6";
12
+ DurationEnum["SEVEN_MONTHS"] = "7";
13
+ DurationEnum["EIGHT_MONTHS"] = "8";
14
+ DurationEnum["NINE_MONTHS"] = "9";
15
+ DurationEnum["TEN_MONTHS"] = "10";
16
+ DurationEnum["ELEVEN_MONTHS"] = "11";
17
+ DurationEnum["ONE_YEAR"] = "12";
18
+ DurationEnum["TWO_YEARS"] = "24";
19
+ DurationEnum["THREE_YEARS"] = "36";
20
+ DurationEnum["FOUR_YEARS"] = "48";
21
+ DurationEnum["FIVE_YEARS"] = "60";
22
+ DurationEnum["SIX_YEARS"] = "72";
23
+ DurationEnum["SEVEN_YEARS"] = "84";
24
+ DurationEnum["EIGHT_YEARS"] = "96";
25
+ DurationEnum["NINE_YEARS"] = "108";
26
+ DurationEnum["TEN_YEARS"] = "120";
27
+ })(DurationEnum || (exports.DurationEnum = DurationEnum = {}));
@@ -68,6 +68,8 @@ export declare enum EventsEnum {
68
68
  INTEGRATION_DELETED = "integration/deleted",
69
69
  INTEGRATION_INSTALLED = "integration/installed",
70
70
  INTEGRATION_UNINSTALLED = "integration/uninstalled",
71
+ INTEGRATION_ACTIVATED = "integration/activated",
72
+ INTEGRATION_DEACTIVATED = "integration/deactivated",
71
73
  DOMAIN_CONTACT_CREATED = "domain-contact/created",
72
74
  DOMAIN_CONTACT_UPDATED = "domain-contact/updated",
73
75
  DOMAIN_CONTACT_DELETED = "domain-contact/deleted",
@@ -77,14 +79,15 @@ export declare enum EventsEnum {
77
79
  ADDON_CREATED = "addon/created",
78
80
  ADDON_UPDATED = "addon/updated",
79
81
  ADDON_DELETED = "addon/deleted",
80
- PAYMENT_CREATED = "payment/created",
81
- PAYMENT_CANCELED = "payment/canceled",
82
- PAYMENT_FAILED = "payment/failed",
83
- PAYMENT_SUBSCRIBED = "payment/subscribed",
84
- PAYMENT_UNSUBSCRIBED = "payment/unsubscribed",
85
- PAYMENT_UPDATED = "payment/updated",
86
- PAYMENT_DELETED = "payment/deleted",
87
- PAYMENT_COMPLETED = "payment/completed",
82
+ TRANSACTION_CREATED = "transaction/created",
83
+ TRANSACTION_CANCELED = "transaction/canceled",
84
+ TRANSACTION_FAILED = "transaction/failed",
85
+ TRANSACTION_SUBSCRIBED = "transaction/subscribed",
86
+ TRANSACTION_UNSUBSCRIBED = "transaction/unsubscribed",
87
+ TRANSACTION_UPDATED = "transaction/updated",
88
+ TRANSACTION_DELETED = "transaction/deleted",
89
+ TRANSACTION_COMPLETED = "transaction/completed",
90
+ TRANSACTION_REFUNDED = "transaction/refunded",
88
91
  TEMPLATE_CREATED = "template/created",
89
92
  TEMPLATE_UPDATED = "template/updated",
90
93
  TEMPLATE_DELETED = "template/deleted",
@@ -72,6 +72,8 @@ var EventsEnum;
72
72
  EventsEnum["INTEGRATION_DELETED"] = "integration/deleted";
73
73
  EventsEnum["INTEGRATION_INSTALLED"] = "integration/installed";
74
74
  EventsEnum["INTEGRATION_UNINSTALLED"] = "integration/uninstalled";
75
+ EventsEnum["INTEGRATION_ACTIVATED"] = "integration/activated";
76
+ EventsEnum["INTEGRATION_DEACTIVATED"] = "integration/deactivated";
75
77
  EventsEnum["DOMAIN_CONTACT_CREATED"] = "domain-contact/created";
76
78
  EventsEnum["DOMAIN_CONTACT_UPDATED"] = "domain-contact/updated";
77
79
  EventsEnum["DOMAIN_CONTACT_DELETED"] = "domain-contact/deleted";
@@ -81,14 +83,15 @@ var EventsEnum;
81
83
  EventsEnum["ADDON_CREATED"] = "addon/created";
82
84
  EventsEnum["ADDON_UPDATED"] = "addon/updated";
83
85
  EventsEnum["ADDON_DELETED"] = "addon/deleted";
84
- EventsEnum["PAYMENT_CREATED"] = "payment/created";
85
- EventsEnum["PAYMENT_CANCELED"] = "payment/canceled";
86
- EventsEnum["PAYMENT_FAILED"] = "payment/failed";
87
- EventsEnum["PAYMENT_SUBSCRIBED"] = "payment/subscribed";
88
- EventsEnum["PAYMENT_UNSUBSCRIBED"] = "payment/unsubscribed";
89
- EventsEnum["PAYMENT_UPDATED"] = "payment/updated";
90
- EventsEnum["PAYMENT_DELETED"] = "payment/deleted";
91
- EventsEnum["PAYMENT_COMPLETED"] = "payment/completed";
86
+ EventsEnum["TRANSACTION_CREATED"] = "transaction/created";
87
+ EventsEnum["TRANSACTION_CANCELED"] = "transaction/canceled";
88
+ EventsEnum["TRANSACTION_FAILED"] = "transaction/failed";
89
+ EventsEnum["TRANSACTION_SUBSCRIBED"] = "transaction/subscribed";
90
+ EventsEnum["TRANSACTION_UNSUBSCRIBED"] = "transaction/unsubscribed";
91
+ EventsEnum["TRANSACTION_UPDATED"] = "transaction/updated";
92
+ EventsEnum["TRANSACTION_DELETED"] = "transaction/deleted";
93
+ EventsEnum["TRANSACTION_COMPLETED"] = "transaction/completed";
94
+ EventsEnum["TRANSACTION_REFUNDED"] = "transaction/refunded";
92
95
  EventsEnum["TEMPLATE_CREATED"] = "template/created";
93
96
  EventsEnum["TEMPLATE_UPDATED"] = "template/updated";
94
97
  EventsEnum["TEMPLATE_DELETED"] = "template/deleted";
@@ -0,0 +1,5 @@
1
+ export declare enum ResponseStatusEnum {
2
+ SUCCESS = "success",
3
+ FAILURE = "failure",
4
+ PENDING = "pending"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResponseStatusEnum = void 0;
4
+ var ResponseStatusEnum;
5
+ (function (ResponseStatusEnum) {
6
+ ResponseStatusEnum["SUCCESS"] = "success";
7
+ ResponseStatusEnum["FAILURE"] = "failure";
8
+ ResponseStatusEnum["PENDING"] = "pending";
9
+ })(ResponseStatusEnum || (exports.ResponseStatusEnum = ResponseStatusEnum = {}));