@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.
- package/README.md +8 -1
- package/dist/dtos/action.dto.d.ts +21 -3
- package/dist/dtos/action.dto.js +10 -0
- package/dist/dtos/attachment.dto.d.ts +1 -1
- package/dist/dtos/attachment.dto.js +1 -1
- package/dist/dtos/client-data.dto.d.ts +65 -0
- package/dist/dtos/client-data.dto.js +106 -0
- package/dist/dtos/company-data.dto.d.ts +57 -0
- package/dist/dtos/company-data.dto.js +5 -2
- package/dist/dtos/error-response.dto.d.ts +8 -6
- package/dist/dtos/error-response.dto.js +2 -2
- package/dist/dtos/field.dto.d.ts +7 -2
- package/dist/dtos/field.dto.js +8 -3
- package/dist/dtos/info.dto.d.ts +61 -64
- package/dist/dtos/info.dto.js +6 -4
- package/dist/dtos/jwt.dto.d.ts +12 -9
- package/dist/dtos/jwt.dto.js +6 -2
- package/dist/dtos/menu.dto.d.ts +26 -11
- package/dist/dtos/multilang-text.dto.d.ts +11 -0
- package/dist/dtos/multilang-text.dto.js +4 -0
- package/dist/dtos/notification/notification-info.dto.d.ts +15 -0
- package/dist/dtos/notification/notification-info.dto.js +4 -0
- package/dist/dtos/notification/{notification-request.dto.d.ts → notification-send-request.dto.d.ts} +6 -1
- package/dist/dtos/notification/{notification-request.dto.js → notification-send-request.dto.js} +11 -6
- package/dist/dtos/product/product-info.dto.d.ts +30 -0
- package/dist/dtos/product/product-info.dto.js +11 -0
- package/dist/dtos/product/product-item-data.dto.d.ts +31 -0
- package/dist/dtos/product/product-item-data.dto.js +43 -0
- package/dist/dtos/product/product.interface.d.ts +44 -0
- package/dist/dtos/product/product.interface.js +2 -0
- package/dist/dtos/product/requests/product-create-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-create-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-delete-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-delete-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-downgradable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-downgradable-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-downgrade-request.dto.d.ts +24 -0
- package/dist/dtos/product/requests/product-downgrade-request.dto.js +44 -0
- 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.d.ts +18 -0
- package/dist/dtos/product/requests/product-renew-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-suspend-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-suspend-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-unsuspend-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-unsuspend-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-upgradable-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-upgradable-request.dto.js +37 -0
- package/dist/dtos/product/requests/product-upgrade-request.dto.d.ts +24 -0
- package/dist/dtos/product/requests/product-upgrade-request.dto.js +44 -0
- 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/requests/product-validate-attributes-request.dto.d.ts +18 -0
- package/dist/dtos/product/requests/product-validate-attributes-request.dto.js +31 -0
- package/dist/dtos/product/responses/product-create-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-create-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-delete-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-delete-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-downgradable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-downgradable-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-downgrade-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-downgrade-response.dto.js +11 -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.d.ts +13 -0
- package/dist/dtos/product/responses/product-info-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-renew-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-renew-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-suspend-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-suspend-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-unsuspend-response.dto.d.ts +21 -0
- package/dist/dtos/product/responses/product-unsuspend-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-upgradable-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-upgradable-response.dto.js +11 -0
- package/dist/dtos/product/responses/product-upgrade-response.dto.d.ts +22 -0
- package/dist/dtos/product/responses/product-upgrade-response.dto.js +11 -0
- 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/product/responses/product-validate-attributes-response.dto.d.ts +13 -0
- package/dist/dtos/product/responses/product-validate-attributes-response.dto.js +11 -0
- package/dist/dtos/response-data.dto.d.ts +7 -0
- package/dist/dtos/response-data.dto.js +4 -0
- package/dist/dtos/setup-status-response.dto.d.ts +8 -0
- package/dist/dtos/setup-status-response.dto.js +4 -0
- package/dist/dtos/submenu.dto.d.ts +7 -0
- package/dist/dtos/submenu.dto.js +11 -0
- package/dist/dtos/success-response.dto.d.ts +4 -0
- package/dist/dtos/success-response.dto.js +4 -0
- package/dist/dtos/tab.dto.d.ts +0 -2
- package/dist/dtos/tab.dto.js +1 -4
- package/dist/dtos/task-response.dto.d.ts +4 -0
- package/dist/dtos/task-response.dto.js +4 -0
- package/dist/dtos/unit.dto.d.ts +16 -0
- package/dist/dtos/unit.dto.js +4 -0
- package/dist/enums/duration.enum.d.ts +23 -0
- package/dist/enums/duration.enum.js +27 -0
- package/dist/enums/events.enum.d.ts +11 -8
- package/dist/enums/events.enum.js +11 -8
- package/dist/enums/response-status.enum.d.ts +5 -0
- package/dist/enums/response-status.enum.js +9 -0
- package/dist/index.d.ts +57 -14
- package/dist/index.js +65 -19
- package/dist/validators/client-data-validator.d.ts +8 -0
- package/dist/validators/client-data-validator.js +17 -0
- package/dist/validators/notification-request-validator.js +2 -2
- package/dist/validators/product-create-request-validator.d.ts +8 -0
- package/dist/validators/product-create-request-validator.js +17 -0
- package/dist/validators/product-delete-request-validator.d.ts +8 -0
- package/dist/validators/product-delete-request-validator.js +17 -0
- package/dist/validators/product-downgradable-request-validator.d.ts +8 -0
- package/dist/validators/product-downgradable-request-validator.js +17 -0
- package/dist/validators/product-downgrade-request-validator.d.ts +8 -0
- package/dist/validators/product-downgrade-request-validator.js +17 -0
- 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-renew-request-validator.d.ts +8 -0
- package/dist/validators/product-renew-request-validator.js +17 -0
- package/dist/validators/product-suspend-request-validator.d.ts +8 -0
- package/dist/validators/product-suspend-request-validator.js +17 -0
- package/dist/validators/product-unsuspend-request-validator.d.ts +8 -0
- package/dist/validators/product-unsuspend-request-validator.js +17 -0
- package/dist/validators/product-upgradable-request-validator.d.ts +8 -0
- package/dist/validators/product-upgradable-request-validator.js +17 -0
- package/dist/validators/product-upgrade-request-validator.d.ts +8 -0
- package/dist/validators/product-upgrade-request-validator.js +17 -0
- package/dist/validators/product-upgradeable-request-validator.d.ts +8 -0
- package/dist/validators/product-upgradeable-request-validator.js +17 -0
- package/dist/validators/product-validate-attributes-request-validator.d.ts +8 -0
- package/dist/validators/product-validate-attributes-request-validator.js +17 -0
- 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,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,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;
|
|
@@ -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;
|
package/dist/dtos/tab.dto.d.ts
CHANGED
package/dist/dtos/tab.dto.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
@@ -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;
|
package/dist/dtos/unit.dto.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/dtos/unit.dto.js
CHANGED
|
@@ -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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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["
|
|
85
|
-
EventsEnum["
|
|
86
|
-
EventsEnum["
|
|
87
|
-
EventsEnum["
|
|
88
|
-
EventsEnum["
|
|
89
|
-
EventsEnum["
|
|
90
|
-
EventsEnum["
|
|
91
|
-
EventsEnum["
|
|
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,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 = {}));
|