@tabletennisshop/common 1.0.31 → 1.0.34

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.
@@ -1,9 +1,9 @@
1
1
  export declare enum OrderStatusEnum {
2
- Pending = "pending",// Order placed but not yet processed
3
- Confirmed = "confirmed",
4
- Delivering = "delivering",// Order is being shipped
5
- Finished = "finished",// Order completed/delivered
6
- Cancelled = "cancelled",// Order canceled by user or system
7
- Returned = "returned",
8
- Failed = "failed"
2
+ PENDING = "pending",// Order placed but not yet processed
3
+ CONFIRMED = "confirmed",
4
+ DELIVERING = "delivering",// Order is being shipped
5
+ FINISHED = "finished",// Order completed/delivered
6
+ CANCELLED = "cancelled",// Order canceled by user or system
7
+ RETURNED = "returned",
8
+ FAILED = "failed"
9
9
  }
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OrderStatusEnum = void 0;
4
4
  var OrderStatusEnum;
5
5
  (function (OrderStatusEnum) {
6
- OrderStatusEnum["Pending"] = "pending";
7
- OrderStatusEnum["Confirmed"] = "confirmed";
8
- OrderStatusEnum["Delivering"] = "delivering";
9
- OrderStatusEnum["Finished"] = "finished";
10
- OrderStatusEnum["Cancelled"] = "cancelled";
11
- OrderStatusEnum["Returned"] = "returned";
12
- OrderStatusEnum["Failed"] = "failed";
6
+ OrderStatusEnum["PENDING"] = "pending";
7
+ OrderStatusEnum["CONFIRMED"] = "confirmed";
8
+ OrderStatusEnum["DELIVERING"] = "delivering";
9
+ OrderStatusEnum["FINISHED"] = "finished";
10
+ OrderStatusEnum["CANCELLED"] = "cancelled";
11
+ OrderStatusEnum["RETURNED"] = "returned";
12
+ OrderStatusEnum["FAILED"] = "failed";
13
13
  })(OrderStatusEnum || (exports.OrderStatusEnum = OrderStatusEnum = {}));
@@ -1,4 +1,4 @@
1
1
  export declare enum PaymentMethodEnum {
2
- Banking = "banking",
2
+ BANKING = "banking",
3
3
  COD = "cod"
4
4
  }
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentMethodEnum = void 0;
4
4
  var PaymentMethodEnum;
5
5
  (function (PaymentMethodEnum) {
6
- PaymentMethodEnum["Banking"] = "banking";
6
+ PaymentMethodEnum["BANKING"] = "banking";
7
7
  PaymentMethodEnum["COD"] = "cod";
8
8
  })(PaymentMethodEnum || (exports.PaymentMethodEnum = PaymentMethodEnum = {}));
@@ -1,5 +1,5 @@
1
1
  export declare enum ProductTypeEnum {
2
- Racket = "racket",
3
- Shirt = "shirt",
4
- Sponge = "sponge"
2
+ RACKET = "racket",
3
+ SHIRT = "shirt",
4
+ SPONGE = "sponge"
5
5
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProductTypeEnum = void 0;
4
4
  var ProductTypeEnum;
5
5
  (function (ProductTypeEnum) {
6
- ProductTypeEnum["Racket"] = "racket";
7
- ProductTypeEnum["Shirt"] = "shirt";
8
- ProductTypeEnum["Sponge"] = "sponge";
6
+ ProductTypeEnum["RACKET"] = "racket";
7
+ ProductTypeEnum["SHIRT"] = "shirt";
8
+ ProductTypeEnum["SPONGE"] = "sponge";
9
9
  })(ProductTypeEnum || (exports.ProductTypeEnum = ProductTypeEnum = {}));
@@ -1,4 +1,4 @@
1
1
  export declare enum UserStatusEnum {
2
- Enalble = "enable",
3
- Disable = "disable"
2
+ ENABLE = "enable",
3
+ DISABLE = "disable"
4
4
  }
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserStatusEnum = void 0;
4
4
  var UserStatusEnum;
5
5
  (function (UserStatusEnum) {
6
- UserStatusEnum["Enalble"] = "enable";
7
- UserStatusEnum["Disable"] = "disable";
6
+ UserStatusEnum["ENABLE"] = "enable";
7
+ UserStatusEnum["DISABLE"] = "disable";
8
8
  })(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
@@ -1,5 +1,5 @@
1
1
  export declare enum UserEnum {
2
- Client = "client",
3
- Admin = "admin",
4
- Employee = "employee"
2
+ CLIENT = "client",
3
+ ADMIN = "admin",
4
+ EMPLOYEE = "employee"
5
5
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserEnum = void 0;
4
4
  var UserEnum;
5
5
  (function (UserEnum) {
6
- UserEnum["Client"] = "client";
7
- UserEnum["Admin"] = "admin";
8
- UserEnum["Employee"] = "employee";
6
+ UserEnum["CLIENT"] = "client";
7
+ UserEnum["ADMIN"] = "admin";
8
+ UserEnum["EMPLOYEE"] = "employee";
9
9
  })(UserEnum || (exports.UserEnum = UserEnum = {}));
@@ -2,10 +2,10 @@ import { Model } from "mongoose";
2
2
  import { ProductTypeEnum } from "../enums/product-type.enum";
3
3
  import { ProductAttrsBase, ProductDoc } from "./product.model";
4
4
  export interface RacketAttrs extends ProductAttrsBase {
5
- type: ProductTypeEnum.Racket;
5
+ type: ProductTypeEnum.RACKET;
6
6
  }
7
7
  export interface RacketDoc extends ProductDoc {
8
- type: ProductTypeEnum.Racket;
8
+ type: ProductTypeEnum.RACKET;
9
9
  }
10
10
  interface RacketModel extends Model<RacketDoc> {
11
11
  build(attrs: RacketAttrs): RacketDoc;
@@ -10,4 +10,4 @@ const racketSchema = new mongoose_1.Schema({});
10
10
  racketSchema.statics.build = (attrs) => {
11
11
  return new exports.RacketModel(attrs);
12
12
  };
13
- exports.RacketModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.Racket, racketSchema);
13
+ exports.RacketModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.RACKET, racketSchema);
@@ -1,8 +1,8 @@
1
1
  import { ProductTypeEnum } from "../enums/product-type.enum";
2
2
  import { ProductAttrsBase, ProductDoc } from "./product.model";
3
3
  export interface ShirtAttrs extends ProductAttrsBase {
4
- type: ProductTypeEnum.Shirt;
4
+ type: ProductTypeEnum.SHIRT;
5
5
  }
6
6
  export interface ShirtDoc extends ProductDoc {
7
- type: ProductTypeEnum.Shirt;
7
+ type: ProductTypeEnum.SHIRT;
8
8
  }
@@ -7,4 +7,4 @@ const shirtSchema = new mongoose_1.Schema({});
7
7
  shirtSchema.statics.build = (attrs) => {
8
8
  return new ShirtModel(attrs);
9
9
  };
10
- const ShirtModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.Shirt, new mongoose_1.Schema({}));
10
+ const ShirtModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.SHIRT, new mongoose_1.Schema({}));
@@ -1,8 +1,8 @@
1
1
  import { ProductTypeEnum } from "../enums/product-type.enum";
2
2
  import { ProductAttrsBase, ProductDoc } from "./product.model";
3
3
  export interface SpongeAttrs extends ProductAttrsBase {
4
- type: ProductTypeEnum.Sponge;
4
+ type: ProductTypeEnum.SPONGE;
5
5
  }
6
6
  export interface SpongeDoc extends ProductDoc {
7
- type: ProductTypeEnum.Sponge;
7
+ type: ProductTypeEnum.SPONGE;
8
8
  }
@@ -8,4 +8,4 @@ spongeSchema.statics.build = (attrs) => {
8
8
  return new SpongeModel(attrs);
9
9
  };
10
10
  // ─────────── Sponge ───────────
11
- const SpongeModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.Sponge, new mongoose_1.Schema({}));
11
+ const SpongeModel = product_model_1.ProductModel.discriminator(product_type_enum_1.ProductTypeEnum.SPONGE, new mongoose_1.Schema({}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabletennisshop/common",
3
- "version": "1.0.31",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "build/index.d.ts",