@hosterai/types 0.0.33 → 0.0.36

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 (26) hide show
  1. package/dist/dtos/action.dto.js +1 -1
  2. package/dist/dtos/country.dto.js +1 -2
  3. package/dist/dtos/field.dto.js +1 -2
  4. package/dist/dtos/info.dto.js +3 -3
  5. package/dist/dtos/multilang-text.dto.js +1 -2
  6. package/dist/dtos/notification/notification-info.dto.js +1 -2
  7. package/dist/dtos/product/product-info.dto.js +1 -1
  8. package/dist/dtos/product/responses/product-create-response.dto.d.ts +6 -0
  9. package/dist/dtos/product/responses/product-create-response.dto.js +8 -0
  10. package/dist/dtos/product/responses/product-delete-response.dto.d.ts +6 -0
  11. package/dist/dtos/product/responses/product-delete-response.dto.js +8 -0
  12. package/dist/dtos/product/responses/product-downgrade-response.dto.d.ts +6 -0
  13. package/dist/dtos/product/responses/product-downgrade-response.dto.js +8 -0
  14. package/dist/dtos/product/responses/product-renew-response.dto.d.ts +6 -0
  15. package/dist/dtos/product/responses/product-renew-response.dto.js +8 -0
  16. package/dist/dtos/product/responses/product-suspend-response.dto.d.ts +6 -0
  17. package/dist/dtos/product/responses/product-suspend-response.dto.js +8 -0
  18. package/dist/dtos/product/responses/product-unsuspend-response.dto.d.ts +6 -0
  19. package/dist/dtos/product/responses/product-unsuspend-response.dto.js +8 -0
  20. package/dist/dtos/product/responses/product-upgrade-response.dto.d.ts +6 -0
  21. package/dist/dtos/product/responses/product-upgrade-response.dto.js +8 -0
  22. package/dist/openapi/schemas/components.schemas.d.ts +48 -68
  23. package/dist/openapi/schemas/components.schemas.js +754 -1804
  24. package/dist/openapi/schemas/components.schemas.spec.d.ts +1 -0
  25. package/dist/openapi/schemas/components.schemas.spec.js +122 -0
  26. package/package.json +1 -1
@@ -52,7 +52,7 @@ __decorate([
52
52
  (0, class_validator_jsonschema_1.JSONSchema)({
53
53
  title: 'Open Method',
54
54
  description: "Method by which the action's URL should be opened.",
55
- enum: Object.values(open_method_enum_1.OpenMethodEnum),
55
+ $ref: '#/components/schemas/OpenMethodEnum',
56
56
  }),
57
57
  __metadata("design:type", String)
58
58
  ], ActionDto.prototype, "openMethod", void 0);
@@ -35,8 +35,7 @@ __decorate([
35
35
  (0, class_validator_jsonschema_1.JSONSchema)({
36
36
  title: 'Code',
37
37
  description: 'Country code.',
38
- type: 'string',
39
- enum: Object.values(country_enum_1.CountryEnum),
38
+ $ref: '#/components/schemas/CountryEnum',
40
39
  }),
41
40
  __metadata("design:type", String)
42
41
  ], CountryDto.prototype, "code", void 0);
@@ -89,8 +89,7 @@ __decorate([
89
89
  (0, class_validator_jsonschema_1.JSONSchema)({
90
90
  title: 'Field Type',
91
91
  description: 'Type of the field.',
92
- type: 'string',
93
- enum: Object.values(field_type_enum_1.FieldTypeEnum),
92
+ $ref: '#/components/schemas/FieldTypeEnum',
94
93
  }),
95
94
  __metadata("design:type", String)
96
95
  ], FieldDto.prototype, "type", void 0);
@@ -75,7 +75,7 @@ __decorate([
75
75
  title: 'Supported Languages',
76
76
  description: 'Locales supported by the integration.',
77
77
  type: 'array',
78
- items: { type: 'string', enum: Object.values(language_enum_1.LanguageEnum) },
78
+ items: { $ref: '#/components/schemas/LanguageEnum' },
79
79
  example: ['EN'],
80
80
  }),
81
81
  __metadata("design:type", Array)
@@ -89,7 +89,7 @@ __decorate([
89
89
  title: 'Listen Events',
90
90
  description: 'Platform events the integration can subscribe to.',
91
91
  type: 'array',
92
- items: { type: 'string', enum: Object.values(events_enum_1.EventsEnum) },
92
+ items: { $ref: '#/components/schemas/EventsEnum' },
93
93
  }),
94
94
  __metadata("design:type", Array)
95
95
  ], InfoDto.prototype, "listenEvents", void 0);
@@ -102,7 +102,7 @@ __decorate([
102
102
  title: 'Required Roles',
103
103
  description: 'Roles required for this integration to operate.',
104
104
  type: 'array',
105
- items: { type: 'string', enum: Object.values(roles_enum_1.RolesEnum) },
105
+ items: { $ref: '#/components/schemas/RolesEnum' },
106
106
  }),
107
107
  __metadata("design:type", Array)
108
108
  ], InfoDto.prototype, "requiredRoles", void 0);
@@ -26,8 +26,7 @@ __decorate([
26
26
  (0, class_validator_jsonschema_1.JSONSchema)({
27
27
  title: 'Language',
28
28
  description: 'The language of the text.',
29
- type: 'string',
30
- enum: Object.values(language_enum_1.LanguageEnum),
29
+ $ref: '#/components/schemas/LanguageEnum',
31
30
  }),
32
31
  __metadata("design:type", String)
33
32
  ], MultilangTextDto.prototype, "language", void 0);
@@ -29,8 +29,7 @@ __decorate([
29
29
  (0, class_validator_jsonschema_1.JSONSchema)({
30
30
  title: 'Notification Type',
31
31
  description: 'Notification channel type.',
32
- type: 'string',
33
- enum: Object.values(notification_message_type_enum_1.NotificationMessageTypeEnum),
32
+ $ref: '#/components/schemas/NotificationMessageTypeEnum',
34
33
  example: Object.values(notification_message_type_enum_1.NotificationMessageTypeEnum)[0],
35
34
  }),
36
35
  __metadata("design:type", String)
@@ -104,7 +104,7 @@ __decorate([
104
104
  title: 'Supported Actions',
105
105
  description: 'Actions supported by this integration.',
106
106
  type: 'array',
107
- items: { type: 'string', enum: Object.values(item_actions_enum_1.ProductActionsEnum) },
107
+ items: { $ref: '#/components/schemas/ProductActionsEnum' },
108
108
  }),
109
109
  __metadata("design:type", Array)
110
110
  ], ProductInfoDto.prototype, "supportedActions", void 0);
@@ -13,6 +13,12 @@ export declare class ProductCreateResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was created.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the creation response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductCreateResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductCreateResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductDeleteResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was deleted.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the deletion response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductDeleteResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductDeleteResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductDowngradeResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was downgraded.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the downgrade response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductDowngradeResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductDowngradeResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductRenewResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was renewed.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the renewal response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductRenewResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductRenewResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductSuspendResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was suspended.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the suspend response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductSuspendResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductSuspendResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductUnsuspendResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was unsuspended.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the unsuspend response.
18
24
  * @optional
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductUnsuspendResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductUnsuspendResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',
@@ -13,6 +13,12 @@ export declare class ProductUpgradeResponseDto extends BaseResponse {
13
13
  * The unique identifier of the product item that was upgraded.
14
14
  */
15
15
  itemId: string;
16
+ /**
17
+ * The outbox action identifier, echoed verbatim from the `X-Idempotency-Key`
18
+ * header sent by the core. Used for correlation and anti-replay when the
19
+ * action completes synchronously or later via a pending hook.
20
+ */
21
+ outboxId: string;
16
22
  /**
17
23
  * Optional data associated with the upgrade response.
18
24
  * This could include details about the new subscription or other relevant information.
@@ -37,6 +37,14 @@ __decorate([
37
37
  }),
38
38
  __metadata("design:type", String)
39
39
  ], ProductUpgradeResponseDto.prototype, "itemId", void 0);
40
+ __decorate([
41
+ (0, class_validator_jsonschema_1.JSONSchema)({
42
+ title: 'Outbox ID',
43
+ description: 'The outbox action identifier, echoed verbatim from the X-Idempotency-Key header sent by the core, used for correlation and anti-replay.',
44
+ type: 'string',
45
+ }),
46
+ __metadata("design:type", String)
47
+ ], ProductUpgradeResponseDto.prototype, "outboxId", void 0);
40
48
  __decorate([
41
49
  (0, class_validator_jsonschema_1.JSONSchema)({
42
50
  title: 'Data',