@bondsports/types 2.2.64 → 2.2.66
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/package.dto.d.ts +0 -1
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/entity/ProductPackage.d.ts +1 -2
- package/dist/types/entity/ProductPackage.js.map +1 -1
- package/dist/types/pricing/entities/Price.d.ts +4 -1
- package/dist/types/pricing/entities/Price.js.map +1 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +1 -1
- package/dist/types/product-pricing/dto/product-resource.dto.d.ts +0 -1
- package/dist/types/product-pricing/dto/product-resource.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +0 -1
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/index.d.ts +1 -0
- package/dist/types/product-pricing/types/consts/index.js +1 -0
- package/dist/types/product-pricing/types/consts/index.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-resource.consts.d.ts +3 -0
- package/dist/types/product-pricing/types/consts/product-resource.consts.js +10 -0
- package/dist/types/product-pricing/types/consts/product-resource.consts.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/index.d.ts +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js +1 -0
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.d.ts +15 -0
- package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js.map +1 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +3 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +3 -2
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/package.json +1 -1
@@ -21,7 +21,6 @@ export declare class FindProductsByResourceAsOrganizationDto extends FindPackage
|
|
21
21
|
export declare class CreatePackageToResourceDto {
|
22
22
|
resourceId: number;
|
23
23
|
resourceType: ResourceNameTypeEnum;
|
24
|
-
isCreateToChildProducts: boolean;
|
25
24
|
productsData: ProductInPackage[];
|
26
25
|
}
|
27
26
|
export declare class CreateProductsDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;
|
1
|
+
{"version":3,"file":"package.dto.js","sourceRoot":"","sources":["../../../src/types/dto/package.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,2BAA2B;CAQvC;AARD,kEAQC;AAED,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uCAAwC,SAAQ,wBAAwB;CAEpF;AAFD,0FAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC"}
|
@@ -16,7 +16,6 @@ export declare class ProductPackage extends OrganizationConnectionBaseEntity {
|
|
16
16
|
isFlatPrice: boolean;
|
17
17
|
durationMinutes?: number;
|
18
18
|
durationDays?: number;
|
19
|
-
priceId?: number;
|
20
19
|
level?: ProductPackageLevelEnum;
|
21
|
-
|
20
|
+
prices?: Price[];
|
22
21
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,cAAe,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"ProductPackage.js","sourceRoot":"","sources":["../../../src/types/entity/ProductPackage.ts"],"names":[],"mappings":";;;AAKA,yFAAsF;AAMtF,MAAa,cAAe,SAAQ,mEAAgC;CA6BnE;AA7BD,wCA6BC"}
|
@@ -2,9 +2,12 @@ import { Product } from '../../product-pricing/entities/Product';
|
|
2
2
|
import { CurrencyEnum, DiscountMethodsEnum } from '../../services/enums.service';
|
3
3
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
4
4
|
import { ActivityTimes } from '../../entity/ActivityTimes';
|
5
|
+
import { ProductPackage } from '../../entity/ProductPackage';
|
5
6
|
export declare class Price extends OrganizationConnectionBaseEntity {
|
6
|
-
productId
|
7
|
+
productId?: number;
|
8
|
+
packageId?: number;
|
7
9
|
product: Product;
|
10
|
+
package: ProductPackage;
|
8
11
|
name: string | null;
|
9
12
|
price: number;
|
10
13
|
currency: CurrencyEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
1
|
+
{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../src/types/pricing/entities/Price.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,KAAM,SAAQ,mEAAgC;CAqC1D;AArCD,sBAqCC"}
|
@@ -6,7 +6,7 @@ import { ResourceDto } from '../../resources/dto/resource.dto';
|
|
6
6
|
import { OrderByProductEnum } from '../types/enums/product.enums';
|
7
7
|
import { IGetProductsByTypeOptions } from '../types/interfaces/product-pricing.interfaces';
|
8
8
|
export declare class FindPriceOfProductDto {
|
9
|
-
id
|
9
|
+
id?: number;
|
10
10
|
productId: number;
|
11
11
|
userId: number;
|
12
12
|
resources?: ResourceDto[];
|
@@ -8,7 +8,6 @@ export declare class ProductResourceDto extends IdAndNameDto {
|
|
8
8
|
parentSession?: SimpleSessionDto;
|
9
9
|
}
|
10
10
|
export declare class PaginatedResourcesForProductQueryDto extends PaginationQuery {
|
11
|
-
includeResources?: boolean;
|
12
11
|
futureResources?: boolean;
|
13
12
|
startDate?: string;
|
14
13
|
endDate?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-resource.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-resource.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"product-resource.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-resource.dto.ts"],"names":[],"mappings":";;;AACA,uDAAsE;AAKtE,MAAa,kBAAmB,SAAQ,0BAAY;CAMnD;AAND,gDAMC;AAED,MAAa,oCAAqC,SAAQ,6BAAe;CAMxE;AAND,oFAMC;AAED,MAAa,2BAA2B;CAQvC;AARD,kEAQC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAwB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AAMtE,8EAA8E;AAwB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAUvC;AAVD,kEAUC;AAED,MAAa,gBAAgB;CAgF5B;AAhFD,4CAgFC;AAED,MAAa,gBAAiB,SAAQ,gBAAgB;CAMrD;AAND,4CAMC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,yBAAyB;CAKrC;AALD,8DAKC;AAED,MAAa,sBAAsB;CAGlC;AAHD,wDAGC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAwBlD;AAxBD,wCAwBC;AAED,MAAa,gBAAgB;CAsD5B;AAtDD,4CAsDC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAIjD;AAJD,4CAIC;AAED,MAAa,cAAc;CA0G1B;AA1GD,wCA0GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./product-pricing.consts"), exports);
|
18
|
+
__exportStar(require("./product-resource.consts"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getUniqueByResource = exports.uniqueByProductResource = void 0;
|
4
|
+
const uniqueByProductResource = (resource) => {
|
5
|
+
return `${resource.productId}_${resource.type}_${resource.id}`;
|
6
|
+
};
|
7
|
+
exports.uniqueByProductResource = uniqueByProductResource;
|
8
|
+
const getUniqueByResource = (resource) => `${resource.type}_${resource.id}`;
|
9
|
+
exports.getUniqueByResource = getUniqueByResource;
|
10
|
+
//# sourceMappingURL=product-resource.consts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-resource.consts.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/product-resource.consts.ts"],"names":[],"mappings":";;;AAEO,MAAM,uBAAuB,GAAG,CAAC,QAA0B,EAAU,EAAE;IAC7E,OAAO,GAAG,QAAQ,CAAC,SAAS,IAAI,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,uBAAuB,2BAElC;AAEK,MAAM,mBAAmB,GAAG,CAAC,QAAmB,EAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC;AAAzF,QAAA,mBAAmB,uBAAsE"}
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./porduct-resource.interfaces"), exports);
|
17
18
|
__exportStar(require("./product-pricing.interfaces"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,+DAA6C"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
2
|
+
export interface IResource {
|
3
|
+
id?: number;
|
4
|
+
type: ResourceNameTypeEnum;
|
5
|
+
isAll?: boolean;
|
6
|
+
includedIds?: number[];
|
7
|
+
excludedIds?: number[];
|
8
|
+
}
|
9
|
+
export interface IProductResources {
|
10
|
+
productId: number;
|
11
|
+
resources: IResource[];
|
12
|
+
}
|
13
|
+
export interface IProductResource extends IResource {
|
14
|
+
productId?: number;
|
15
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"porduct-resource.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/interfaces/porduct-resource.interfaces.ts"],"names":[],"mappings":""}
|
@@ -7,6 +7,7 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
7
7
|
import { ScheduledPaymentDto } from '../../payment/dto/payment-plan.dto';
|
8
8
|
import { Payment } from '../../payment/entities/Payment';
|
9
9
|
import { FuturePaymentStatusEnum, PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
10
|
+
import { IProductResource } from '../../product-pricing/types/interfaces/porduct-resource.interfaces';
|
10
11
|
import { PlatformsEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
11
12
|
import { IPurchaseCart, IPurchasePayment } from '../types/interfaces/purchase.interfaces';
|
12
13
|
export declare class PurchasePaymentDto implements IPurchasePayment {
|
@@ -44,7 +45,7 @@ export declare class PurchaseRequestDto {
|
|
44
45
|
installmentId?: number;
|
45
46
|
isAutoRenewal?: boolean;
|
46
47
|
}
|
47
|
-
export declare class PurchaseResourceDto {
|
48
|
+
export declare class PurchaseResourceDto implements IProductResource {
|
48
49
|
id?: number;
|
49
50
|
type: ResourceNameTypeEnum;
|
50
51
|
startDate?: Date;
|
@@ -52,6 +53,7 @@ export declare class PurchaseResourceDto {
|
|
52
53
|
isAll?: boolean;
|
53
54
|
includedIds?: number[];
|
54
55
|
excludedIds?: number[];
|
56
|
+
productId?: number;
|
55
57
|
}
|
56
58
|
export declare class PurchaseProductDto {
|
57
59
|
id: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,8EAA8E;
|
1
|
+
{"version":3,"file":"purchase.dto.js","sourceRoot":"","sources":["../../../../src/types/purchase/dto/purchase.dto.ts"],"names":[],"mappings":";;;AAIA,+DAA+D;AAC/D,8EAA8E;AAa9E,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAkBnC;AAlBD,0DAkBC;AAED,MAAa,kBAAkB;CAiC9B;AAjCD,gDAiCC;AAED,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC;AAED,MAAa,kBAAkB;CA6B9B;AA7BD,gDA6BC;AAED,MAAa,kCAAkC;CAM9C;AAND,gFAMC;AAED,MAAa,0BAA2B,SAAQ,sCAAmB;CAIlE;AAJD,gEAIC;AAED,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AAED,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAED,MAAa,yBAAyB;CAQrC;AARD,8DAQC;AAED,MAAa,WAAW;IAAxB;QAGC,qBAAgB,GAAG,KAAK,CAAC;QAEzB,aAAQ,GAAG,KAAK,CAAC;IAClB,CAAC;CAAA;AAND,kCAMC;AAED,MAAa,uBAAuB;CAUnC;AAVD,0DAUC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,eAAgB,SAAQ,4BAAc;CAUlD;AAVD,0CAUC"}
|
@@ -4,13 +4,14 @@ import { IdAndNameDto, IdDto, IncludeAdditionalDataDto } from '../../dto/general
|
|
4
4
|
import { MediaDto } from '../../media/dto/media.dto';
|
5
5
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
6
6
|
import { ResourceProductDto } from '../../product-pricing/dto/product.dto';
|
7
|
+
import { IResource } from '../../product-pricing/types/interfaces/porduct-resource.interfaces';
|
7
8
|
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
8
9
|
import { Addon } from '../../reservations/entities/Addon';
|
9
10
|
import { Slot } from '../../reservations/entities/Slots';
|
10
11
|
import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
|
11
12
|
import { OrderByResourceEnum } from '../types/enums/resources.enums';
|
12
|
-
import {
|
13
|
-
export declare class ResourceDto {
|
13
|
+
import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
|
14
|
+
export declare class ResourceDto implements IResource {
|
14
15
|
id?: number;
|
15
16
|
type: ResourceNameTypeEnum;
|
16
17
|
isAll?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAsF;AAEtF,8EAA8E;
|
1
|
+
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAsF;AAEtF,8EAA8E;AAkB9E,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAmB,SAAQ,WAAW;CAElD;AAFD,gDAEC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD;AAEtD,MAAa,eAAgB,SAAQ,mBAAK;CAgDzC;AAhDD,0CAgDC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC"}
|