@bondsports/types 2.2.165 → 2.2.166

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,24 +1,12 @@
1
- import { ByOrganizationIdDto } from '../organization/dto/organization.dto';
2
- import { CurrencyEnum } from '../services/enums.service';
1
+ import { ByOrganizationIdDto, OrganizationBaseEntityDto } from '../organization/dto/organization.dto';
3
2
  import { CreatePriceDto } from '../pricing/dto/pricing.dto';
4
- export declare class CreateUpdateVariantsDto {
5
- organizationId: number;
6
- parentProductId: number;
7
- variantTitles: VariantTitleDto[];
8
- variants: VariantDto[];
9
- }
10
3
  export declare class VariantTitleDto {
11
4
  name: string;
12
5
  id: number;
13
6
  organizationId: number;
14
7
  }
15
- export declare class VariantDto {
8
+ export declare class VariantDto extends OrganizationBaseEntityDto {
16
9
  name: string;
17
- price: number;
18
- variantId: number;
19
- currency: CurrencyEnum;
20
- startDate: Date;
21
- endDate: Date;
22
10
  variantTitleId: number;
23
11
  }
24
12
  export declare class VariantWithPrice {
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateVariantTitleDto = exports.CreateVariantTitleDto = exports.GetAllVariantTitlesDto = exports.VariantWithPrice = exports.VariantDto = exports.VariantTitleDto = exports.CreateUpdateVariantsDto = void 0;
3
+ exports.UpdateVariantTitleDto = exports.CreateVariantTitleDto = exports.GetAllVariantTitlesDto = exports.VariantWithPrice = exports.VariantDto = exports.VariantTitleDto = void 0;
4
4
  const organization_dto_1 = require("../organization/dto/organization.dto");
5
- class CreateUpdateVariantsDto {
6
- }
7
- exports.CreateUpdateVariantsDto = CreateUpdateVariantsDto;
8
5
  class VariantTitleDto {
9
6
  }
10
7
  exports.VariantTitleDto = VariantTitleDto;
11
- class VariantDto {
8
+ class VariantDto extends organization_dto_1.OrganizationBaseEntityDto {
12
9
  }
13
10
  exports.VariantDto = VariantDto;
14
11
  class VariantWithPrice {
@@ -1 +1 @@
1
- {"version":3,"file":"product-variants.dto.js","sourceRoot":"","sources":["../../../src/types/dto/product-variants.dto.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAK3E,MAAa,uBAAuB;CAKnC;AALD,0DAKC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAAG;AAAlE,wDAAkE;AAElE,MAAa,qBAAsB,SAAQ,sCAAmB;CAI7D;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAM7D;AAND,sDAMC"}
1
+ {"version":3,"file":"product-variants.dto.js","sourceRoot":"","sources":["../../../src/types/dto/product-variants.dto.ts"],"names":[],"mappings":";;;AAAA,2EAAsG;AAGtG,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CAIxD;AAJD,gCAIC;AAED,MAAa,gBAAgB;CAI5B;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAAG;AAAlE,wDAAkE;AAElE,MAAa,qBAAsB,SAAQ,sCAAmB;CAI7D;AAJD,sDAIC;AAED,MAAa,qBAAsB,SAAQ,sCAAmB;CAM7D;AAND,sDAMC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.165",
3
+ "version": "2.2.166",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {