@hosterai/types 0.0.16 → 0.0.17

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 CHANGED
@@ -70,6 +70,7 @@ DTOs define the shape of data that is exchanged between different parts of the s
70
70
 
71
71
  - `product/product-info.dto.ts`: Contains detailed information about a product.
72
72
  - `product/product-item-data.dto.ts`: Represents the data of a specific product item.
73
+ - `product/requests/product-validate-attributes-request.dto.ts`: Defines the structure for validating product attributes.
73
74
  - `product/requests/*`: DTOs for product-related requests (create, delete, upgrade, etc.).
74
75
  - `product/responses/*`: DTOs for product-related responses.
75
76
 
@@ -109,6 +110,7 @@ This package includes validation functions that leverage `class-validator` to en
109
110
  - `validateNotificationRequestDto`: Validates the main notification request.
110
111
  - `validateEmailReceiverDto`, `validateSmsReceiverDto`, `validatePushReceiverDto`: Validators for notification receivers.
111
112
  - `validateEmailSenderDto`, `validateSmsSenderDto`, `validatePushSenderDto`: Validators for notification senders.
113
+ - `validateProductValidateAttributesRequestDto`: Validates requests for product attribute validation.
112
114
 
113
115
  ## Usage Example
114
116
 
@@ -1,4 +1,4 @@
1
- import { ProductActionsEnum } from '../enums/actions.enum';
1
+ import { ActionsEnum } from '../enums/actions.enum';
2
2
  import { EventsEnum } from '../enums/events.enum';
3
3
  import { LanguageEnum } from '../enums/language.enum';
4
4
  import { RolesEnum } from '../enums/roles.enum';
@@ -34,7 +34,7 @@ export declare class InfoDto {
34
34
  /**
35
35
  * A list of actions that are supported by this integration.
36
36
  */
37
- supportedActions?: ProductActionsEnum[];
37
+ supportedActions?: ActionsEnum[];
38
38
  /**
39
39
  * A list of events that the integration listens to.
40
40
  * This allows the integration to react to specific events in the system.
@@ -94,7 +94,7 @@ export declare class InfoDto {
94
94
  /** The icon for the settings page. */
95
95
  icon: string;
96
96
  /** A description of the settings page. */
97
- descrition: string;
97
+ description: string;
98
98
  } & ({
99
99
  url: string;
100
100
  tabs?: never;
@@ -1,8 +1,9 @@
1
- export declare enum ProductActionsEnum {
1
+ export declare enum ActionsEnum {
2
2
  CREATE = "create",
3
3
  RENEW = "renew",
4
4
  UPGRADE = "upgrade",
5
5
  DOWNGRADE = "downgrade",
6
+ TRANSFER = "transfer",
6
7
  SUSPEND = "suspend",
7
8
  UNSUSPEND = "unsuspend",
8
9
  DELETE = "delete"
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProductActionsEnum = void 0;
4
- var ProductActionsEnum;
5
- (function (ProductActionsEnum) {
6
- // Product Integration
7
- ProductActionsEnum["CREATE"] = "create";
8
- ProductActionsEnum["RENEW"] = "renew";
9
- ProductActionsEnum["UPGRADE"] = "upgrade";
10
- ProductActionsEnum["DOWNGRADE"] = "downgrade";
11
- ProductActionsEnum["SUSPEND"] = "suspend";
12
- ProductActionsEnum["UNSUSPEND"] = "unsuspend";
13
- ProductActionsEnum["DELETE"] = "delete";
14
- })(ProductActionsEnum || (exports.ProductActionsEnum = ProductActionsEnum = {}));
3
+ exports.ActionsEnum = void 0;
4
+ var ActionsEnum;
5
+ (function (ActionsEnum) {
6
+ ActionsEnum["CREATE"] = "create";
7
+ ActionsEnum["RENEW"] = "renew";
8
+ ActionsEnum["UPGRADE"] = "upgrade";
9
+ ActionsEnum["DOWNGRADE"] = "downgrade";
10
+ ActionsEnum["TRANSFER"] = "transfer";
11
+ ActionsEnum["SUSPEND"] = "suspend";
12
+ ActionsEnum["UNSUSPEND"] = "unsuspend";
13
+ ActionsEnum["DELETE"] = "delete";
14
+ })(ActionsEnum || (exports.ActionsEnum = ActionsEnum = {}));
@@ -70,6 +70,8 @@ export declare enum EventsEnum {
70
70
  INTEGRATION_UNINSTALLED = "integration/uninstalled",
71
71
  INTEGRATION_ACTIVATED = "integration/activated",
72
72
  INTEGRATION_DEACTIVATED = "integration/deactivated",
73
+ INTEGRATION_MAINTENANCE_STARTED = "integration/maintenance-started",
74
+ INTEGRATION_MAINTENANCE_FINISHED = "integration/maintenance-finished",
73
75
  DOMAIN_CONTACT_CREATED = "domain-contact/created",
74
76
  DOMAIN_CONTACT_UPDATED = "domain-contact/updated",
75
77
  DOMAIN_CONTACT_DELETED = "domain-contact/deleted",
@@ -74,6 +74,8 @@ var EventsEnum;
74
74
  EventsEnum["INTEGRATION_UNINSTALLED"] = "integration/uninstalled";
75
75
  EventsEnum["INTEGRATION_ACTIVATED"] = "integration/activated";
76
76
  EventsEnum["INTEGRATION_DEACTIVATED"] = "integration/deactivated";
77
+ EventsEnum["INTEGRATION_MAINTENANCE_STARTED"] = "integration/maintenance-started";
78
+ EventsEnum["INTEGRATION_MAINTENANCE_FINISHED"] = "integration/maintenance-finished";
77
79
  EventsEnum["DOMAIN_CONTACT_CREATED"] = "domain-contact/created";
78
80
  EventsEnum["DOMAIN_CONTACT_UPDATED"] = "domain-contact/updated";
79
81
  EventsEnum["DOMAIN_CONTACT_DELETED"] = "domain-contact/deleted";
@@ -32,8 +32,8 @@ export declare enum RolesEnum {
32
32
  ITEMS_WRITE = "ITEMS_WRITE",
33
33
  ORDERS_READ = "ORDERS_READ",
34
34
  ORDERS_WRITE = "ORDERS_WRITE",
35
- PAYMENTS_READ = "PAYMENTS_READ",
36
- PAYMENTS_WRITE = "PAYMENTS_WRITE",
35
+ TRANSACTIONS_READ = "TRANSACTIONS_READ",
36
+ TRANSACTIONS_WRITE = "TRANSACTIONS_WRITE",
37
37
  POLICIES_READ = "POLICIES_READ",
38
38
  POLICIES_WRITE = "POLICIES_WRITE",
39
39
  PRODUCT_CATEGORIES_READ = "PRODUCT_CATEGORIES_READ",
@@ -36,8 +36,8 @@ var RolesEnum;
36
36
  RolesEnum["ITEMS_WRITE"] = "ITEMS_WRITE";
37
37
  RolesEnum["ORDERS_READ"] = "ORDERS_READ";
38
38
  RolesEnum["ORDERS_WRITE"] = "ORDERS_WRITE";
39
- RolesEnum["PAYMENTS_READ"] = "PAYMENTS_READ";
40
- RolesEnum["PAYMENTS_WRITE"] = "PAYMENTS_WRITE";
39
+ RolesEnum["TRANSACTIONS_READ"] = "TRANSACTIONS_READ";
40
+ RolesEnum["TRANSACTIONS_WRITE"] = "TRANSACTIONS_WRITE";
41
41
  RolesEnum["POLICIES_READ"] = "POLICIES_READ";
42
42
  RolesEnum["POLICIES_WRITE"] = "POLICIES_WRITE";
43
43
  RolesEnum["PRODUCT_CATEGORIES_READ"] = "PRODUCT_CATEGORIES_READ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hosterai/types",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {