@hosterai/types 0.0.11 → 0.0.13

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 (118) hide show
  1. package/README.md +53 -39
  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 +5 -0
  13. package/dist/dtos/field.dto.js +5 -0
  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-downgrade-request.dto.d.ts +24 -0
  36. package/dist/dtos/product/requests/product-downgrade-request.dto.js +44 -0
  37. package/dist/dtos/product/requests/product-downgradeable-request.dto.d.ts +18 -0
  38. package/dist/dtos/product/requests/product-downgradeable-request.dto.js +37 -0
  39. package/dist/dtos/product/requests/product-renew-request.dto.d.ts +18 -0
  40. package/dist/dtos/product/requests/product-renew-request.dto.js +37 -0
  41. package/dist/dtos/product/requests/product-suspend-request.dto.d.ts +18 -0
  42. package/dist/dtos/product/requests/product-suspend-request.dto.js +37 -0
  43. package/dist/dtos/product/requests/product-unsuspend-request.dto.d.ts +18 -0
  44. package/dist/dtos/product/requests/product-unsuspend-request.dto.js +37 -0
  45. package/dist/dtos/product/requests/product-upgrade-request.dto.d.ts +24 -0
  46. package/dist/dtos/product/requests/product-upgrade-request.dto.js +44 -0
  47. package/dist/dtos/product/requests/product-upgradeable-request.dto.d.ts +18 -0
  48. package/dist/dtos/product/requests/product-upgradeable-request.dto.js +37 -0
  49. package/dist/dtos/product/requests/product-validate-attributes-request.dto.d.ts +18 -0
  50. package/dist/dtos/product/requests/product-validate-attributes-request.dto.js +31 -0
  51. package/dist/dtos/product/responses/product-create-response.dto.d.ts +21 -0
  52. package/dist/dtos/product/responses/product-create-response.dto.js +11 -0
  53. package/dist/dtos/product/responses/product-delete-response.dto.d.ts +21 -0
  54. package/dist/dtos/product/responses/product-delete-response.dto.js +11 -0
  55. package/dist/dtos/product/responses/product-downgrade-response.dto.d.ts +21 -0
  56. package/dist/dtos/product/responses/product-downgrade-response.dto.js +11 -0
  57. package/dist/dtos/product/responses/product-downgradeable-response.dto.d.ts +22 -0
  58. package/dist/dtos/product/responses/product-downgradeable-response.dto.js +11 -0
  59. package/dist/dtos/product/responses/product-info-response.dto.d.ts +13 -0
  60. package/dist/dtos/product/responses/product-info-response.dto.js +11 -0
  61. package/dist/dtos/product/responses/product-renew-response.dto.d.ts +21 -0
  62. package/dist/dtos/product/responses/product-renew-response.dto.js +11 -0
  63. package/dist/dtos/product/responses/product-suspend-response.dto.d.ts +21 -0
  64. package/dist/dtos/product/responses/product-suspend-response.dto.js +11 -0
  65. package/dist/dtos/product/responses/product-unsuspend-response.dto.d.ts +21 -0
  66. package/dist/dtos/product/responses/product-unsuspend-response.dto.js +11 -0
  67. package/dist/dtos/product/responses/product-upgrade-response.dto.d.ts +22 -0
  68. package/dist/dtos/product/responses/product-upgrade-response.dto.js +11 -0
  69. package/dist/dtos/product/responses/product-upgradeable-response.dto.d.ts +22 -0
  70. package/dist/dtos/product/responses/product-upgradeable-response.dto.js +11 -0
  71. package/dist/dtos/product/responses/product-validate-attributes-response.dto.d.ts +13 -0
  72. package/dist/dtos/product/responses/product-validate-attributes-response.dto.js +11 -0
  73. package/dist/dtos/response-data.dto.d.ts +7 -0
  74. package/dist/dtos/response-data.dto.js +4 -0
  75. package/dist/dtos/setup-status-response.dto.d.ts +8 -0
  76. package/dist/dtos/setup-status-response.dto.js +4 -0
  77. package/dist/dtos/submenu.dto.d.ts +7 -0
  78. package/dist/dtos/submenu.dto.js +11 -0
  79. package/dist/dtos/success-response.dto.d.ts +4 -0
  80. package/dist/dtos/success-response.dto.js +4 -0
  81. package/dist/dtos/tab.dto.d.ts +0 -2
  82. package/dist/dtos/tab.dto.js +1 -4
  83. package/dist/dtos/task-response.dto.d.ts +4 -0
  84. package/dist/dtos/task-response.dto.js +4 -0
  85. package/dist/dtos/unit.dto.d.ts +16 -0
  86. package/dist/dtos/unit.dto.js +4 -0
  87. package/dist/enums/duration.enum.d.ts +23 -0
  88. package/dist/enums/duration.enum.js +27 -0
  89. package/dist/enums/events.enum.d.ts +2 -0
  90. package/dist/enums/events.enum.js +2 -0
  91. package/dist/enums/response-status.enum.d.ts +5 -0
  92. package/dist/enums/response-status.enum.js +9 -0
  93. package/dist/index.d.ts +57 -14
  94. package/dist/index.js +65 -19
  95. package/dist/validators/client-data-validator.d.ts +8 -0
  96. package/dist/validators/client-data-validator.js +17 -0
  97. package/dist/validators/notification-request-validator.js +2 -2
  98. package/dist/validators/product-create-request-validator.d.ts +8 -0
  99. package/dist/validators/product-create-request-validator.js +17 -0
  100. package/dist/validators/product-delete-request-validator.d.ts +8 -0
  101. package/dist/validators/product-delete-request-validator.js +17 -0
  102. package/dist/validators/product-downgrade-request-validator.d.ts +8 -0
  103. package/dist/validators/product-downgrade-request-validator.js +17 -0
  104. package/dist/validators/product-downgradeable-request-validator.d.ts +8 -0
  105. package/dist/validators/product-downgradeable-request-validator.js +17 -0
  106. package/dist/validators/product-renew-request-validator.d.ts +8 -0
  107. package/dist/validators/product-renew-request-validator.js +17 -0
  108. package/dist/validators/product-suspend-request-validator.d.ts +8 -0
  109. package/dist/validators/product-suspend-request-validator.js +17 -0
  110. package/dist/validators/product-unsuspend-request-validator.d.ts +8 -0
  111. package/dist/validators/product-unsuspend-request-validator.js +17 -0
  112. package/dist/validators/product-upgrade-request-validator.d.ts +8 -0
  113. package/dist/validators/product-upgrade-request-validator.js +17 -0
  114. package/dist/validators/product-upgradeable-request-validator.d.ts +8 -0
  115. package/dist/validators/product-upgradeable-request-validator.js +17 -0
  116. package/dist/validators/product-validate-attributes-request-validator.d.ts +8 -0
  117. package/dist/validators/product-validate-attributes-request-validator.js +17 -0
  118. package/package.json +5 -2
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to create a new product item.
5
+ * This DTO contains all the necessary information for the creation process.
6
+ */
7
+ export declare class ProductCreateRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data for the new product item to be created.
15
+ * This object contains the specific details of the product instance being provisioned.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductCreateRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to create a new product item.
19
+ * This DTO contains all the necessary information for the creation process.
20
+ */
21
+ class ProductCreateRequestDto {
22
+ }
23
+ exports.ProductCreateRequestDto = ProductCreateRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductCreateRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductCreateRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to delete a product item.
5
+ * This DTO contains all the necessary information for the deletion process.
6
+ */
7
+ export declare class ProductDeleteRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be deleted.
15
+ * This object contains the specific details of the product instance being removed.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductDeleteRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to delete a product item.
19
+ * This DTO contains all the necessary information for the deletion process.
20
+ */
21
+ class ProductDeleteRequestDto {
22
+ }
23
+ exports.ProductDeleteRequestDto = ProductDeleteRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductDeleteRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductDeleteRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,24 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to downgrade a product item.
5
+ * This DTO contains all the necessary information for the downgrade process.
6
+ */
7
+ export declare class ProductDowngradeRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be downgraded.
15
+ * This object contains the specific details of the product instance being modified.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ /**
19
+ * The data of the product item before the downgrade.
20
+ * This object contains the state of the product instance prior to the downgrade.
21
+ * @optional
22
+ */
23
+ previousItemData?: ProductItemDataDto;
24
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductDowngradeRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to downgrade a product item.
19
+ * This DTO contains all the necessary information for the downgrade process.
20
+ */
21
+ class ProductDowngradeRequestDto {
22
+ }
23
+ exports.ProductDowngradeRequestDto = ProductDowngradeRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductDowngradeRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductDowngradeRequestDto.prototype, "itemData", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsDefined)(),
40
+ (0, class_validator_1.IsObject)(),
41
+ (0, class_validator_1.ValidateNested)(),
42
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
43
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
44
+ ], ProductDowngradeRequestDto.prototype, "previousItemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to check if a product item is downgradable.
5
+ * This DTO contains all the necessary information for the check.
6
+ */
7
+ export declare class ProductDowngradableRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be checked.
15
+ * This object contains the specific details of the product instance being evaluated.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductDowngradableRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to check if a product item is downgradable.
19
+ * This DTO contains all the necessary information for the check.
20
+ */
21
+ class ProductDowngradableRequestDto {
22
+ }
23
+ exports.ProductDowngradableRequestDto = ProductDowngradableRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductDowngradableRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductDowngradableRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to renew a product item.
5
+ * This DTO contains all the necessary information for the renewal process.
6
+ */
7
+ export declare class ProductRenewRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be renewed.
15
+ * This object contains the specific details of the product instance being extended.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductRenewRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to renew a product item.
19
+ * This DTO contains all the necessary information for the renewal process.
20
+ */
21
+ class ProductRenewRequestDto {
22
+ }
23
+ exports.ProductRenewRequestDto = ProductRenewRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductRenewRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductRenewRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to suspend a product item.
5
+ * This DTO contains all the necessary information for the suspension process.
6
+ */
7
+ export declare class ProductSuspendRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be suspended.
15
+ * This object contains the specific details of the product instance being deactivated.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductSuspendRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to suspend a product item.
19
+ * This DTO contains all the necessary information for the suspension process.
20
+ */
21
+ class ProductSuspendRequestDto {
22
+ }
23
+ exports.ProductSuspendRequestDto = ProductSuspendRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductSuspendRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductSuspendRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to unsuspend a product item.
5
+ * This DTO contains all the necessary information for the unsuspend process.
6
+ */
7
+ export declare class ProductUnsuspendRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be unsuspended.
15
+ * This object contains the specific details of the product instance being reactivated.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductUnsuspendRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to unsuspend a product item.
19
+ * This DTO contains all the necessary information for the unsuspend process.
20
+ */
21
+ class ProductUnsuspendRequestDto {
22
+ }
23
+ exports.ProductUnsuspendRequestDto = ProductUnsuspendRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductUnsuspendRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductUnsuspendRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,24 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to upgrade a product item.
5
+ * This DTO contains all the necessary information for the upgrade process.
6
+ */
7
+ export declare class ProductUpgradeRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be upgraded.
15
+ * This object contains the specific details of the product instance being modified.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ /**
19
+ * The data of the product item before the upgrade.
20
+ * This object contains the state of the product instance prior to the upgrade.
21
+ * @optional
22
+ */
23
+ previousItemData?: ProductItemDataDto;
24
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductUpgradeRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to upgrade a product item.
19
+ * This DTO contains all the necessary information for the upgrade process.
20
+ */
21
+ class ProductUpgradeRequestDto {
22
+ }
23
+ exports.ProductUpgradeRequestDto = ProductUpgradeRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductUpgradeRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductUpgradeRequestDto.prototype, "itemData", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsDefined)(),
40
+ (0, class_validator_1.IsObject)(),
41
+ (0, class_validator_1.ValidateNested)(),
42
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
43
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
44
+ ], ProductUpgradeRequestDto.prototype, "previousItemData", void 0);
@@ -0,0 +1,18 @@
1
+ import { ProductItemDataDto } from '../product-item-data.dto';
2
+ import { ClientDataDto } from '../../client-data.dto';
3
+ /**
4
+ * Represents a request to check if a product item is upgradeable.
5
+ * This DTO contains all the necessary information for the check.
6
+ */
7
+ export declare class ProductUpgradeableRequestDto {
8
+ /**
9
+ * The client's data.
10
+ * This object holds all the relevant information about the client initiating the request.
11
+ */
12
+ clientData: ClientDataDto;
13
+ /**
14
+ * The data of the product item to be checked.
15
+ * This object contains the specific details of the product instance being evaluated.
16
+ */
17
+ itemData: ProductItemDataDto;
18
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductUpgradeableRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const product_item_data_dto_1 = require("../product-item-data.dto");
16
+ const client_data_dto_1 = require("../../client-data.dto");
17
+ /**
18
+ * Represents a request to check if a product item is upgradeable.
19
+ * This DTO contains all the necessary information for the check.
20
+ */
21
+ class ProductUpgradeableRequestDto {
22
+ }
23
+ exports.ProductUpgradeableRequestDto = ProductUpgradeableRequestDto;
24
+ __decorate([
25
+ (0, class_validator_1.IsDefined)(),
26
+ (0, class_validator_1.IsObject)(),
27
+ (0, class_validator_1.ValidateNested)(),
28
+ (0, class_transformer_1.Type)(() => client_data_dto_1.ClientDataDto),
29
+ __metadata("design:type", client_data_dto_1.ClientDataDto)
30
+ ], ProductUpgradeableRequestDto.prototype, "clientData", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsDefined)(),
33
+ (0, class_validator_1.IsObject)(),
34
+ (0, class_validator_1.ValidateNested)(),
35
+ (0, class_transformer_1.Type)(() => product_item_data_dto_1.ProductItemDataDto),
36
+ __metadata("design:type", product_item_data_dto_1.ProductItemDataDto)
37
+ ], ProductUpgradeableRequestDto.prototype, "itemData", void 0);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Represents a request to validate product attributes.
3
+ * This DTO is used when a client needs to check the validity of a set of attribute values
4
+ * before proceeding with an action, such as creating or updating a product.
5
+ */
6
+ export declare class ProductValidateAttributesRequestDto {
7
+ /**
8
+ * The key of the attribute that triggered the validation.
9
+ * This helps the server understand the context of the validation request,
10
+ * especially in cases where validation rules are interdependent.
11
+ */
12
+ triggeredByKey: string;
13
+ /**
14
+ * A record of attribute values to be validated.
15
+ * The keys are the attribute identifiers, and the values are the data to be checked.
16
+ */
17
+ values: Record<string, unknown>;
18
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ProductValidateAttributesRequestDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * Represents a request to validate product attributes.
16
+ * This DTO is used when a client needs to check the validity of a set of attribute values
17
+ * before proceeding with an action, such as creating or updating a product.
18
+ */
19
+ class ProductValidateAttributesRequestDto {
20
+ }
21
+ exports.ProductValidateAttributesRequestDto = ProductValidateAttributesRequestDto;
22
+ __decorate([
23
+ (0, class_validator_1.IsDefined)(),
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], ProductValidateAttributesRequestDto.prototype, "triggeredByKey", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsDefined)(),
29
+ (0, class_validator_1.IsObject)(),
30
+ __metadata("design:type", Object)
31
+ ], ProductValidateAttributesRequestDto.prototype, "values", void 0);
@@ -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 create a product.
5
+ * It confirms the status of the creation operation.
6
+ */
7
+ export declare class ProductCreateResponseDto extends BaseResponse {
8
+ /**
9
+ * The status of the response, indicating the outcome of the creation.
10
+ */
11
+ status: ResponseStatusEnum;
12
+ /**
13
+ * The unique identifier of the product item that was created.
14
+ */
15
+ itemId: string;
16
+ /**
17
+ * Optional data associated with the creation 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.ProductCreateResponseDto = void 0;
4
+ const base_response_dto_1 = require("../../base-response.dto");
5
+ /**
6
+ * Represents the response after attempting to create a product.
7
+ * It confirms the status of the creation operation.
8
+ */
9
+ class ProductCreateResponseDto extends base_response_dto_1.BaseResponse {
10
+ }
11
+ exports.ProductCreateResponseDto = ProductCreateResponseDto;