@bondsports/types 2.2.63 → 2.2.65
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/customers/dto/customer.dto.d.ts +3 -0
- package/dist/types/customers/dto/customer.dto.js.map +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/Customer.d.ts +1 -0
- package/dist/types/entity/Customer.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/media/entities/Media.d.ts +2 -0
- package/dist/types/media/entities/Media.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/resources/dto/resource.dto.d.ts +3 -2
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Customer } from '../../entity/Customer';
|
2
2
|
import { CustomerTypeEnum, GenderEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
3
|
+
import { MediaDto } from '../../media/dto/media.dto';
|
3
4
|
declare class BaseCustomerDto {
|
4
5
|
firstName?: string;
|
5
6
|
lastName?: string;
|
@@ -26,8 +27,10 @@ export declare class CreateCustomerDto extends BaseCustomerDto {
|
|
26
27
|
firstName: string;
|
27
28
|
lastName: string;
|
28
29
|
birthDate: string;
|
30
|
+
mainMedia?: MediaDto;
|
29
31
|
}
|
30
32
|
export declare class EditCustomerDto extends BaseCustomerDto {
|
33
|
+
mainMedia?: MediaDto;
|
31
34
|
}
|
32
35
|
export declare class CreateOrEditResponseDto {
|
33
36
|
data: Customer;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"customer.dto.js","sourceRoot":"","sources":["../../../../src/types/customers/dto/customer.dto.ts"],"names":[],"mappings":";;;AAIA,MAAM,eAAe;CAwCpB;AAED,MAAa,iBAAkB,SAAQ,eAAe;CAQrD;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,eAAe;CAEnD;AAFD,0CAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
@@ -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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/types/entity/Customer.ts"],"names":[],"mappings":";;;AAYA,yFAAsF;AAGtF,MAAa,QAAS,SAAQ,mEAAgC;CA4E7D;AA5ED,4BA4EC"}
|
@@ -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"}
|
@@ -3,6 +3,7 @@ import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
|
3
3
|
import { User } from '../../user/entities/User';
|
4
4
|
import { Membership } from '../../entity/Membership';
|
5
5
|
import { MediaTypesEnum } from '../types/media.enums';
|
6
|
+
import { Customer } from '../../entity/Customer';
|
6
7
|
export declare class Media extends BondBaseEntity {
|
7
8
|
url: string;
|
8
9
|
name: string | null;
|
@@ -18,6 +19,7 @@ export declare class Media extends BondBaseEntity {
|
|
18
19
|
userCreatorId: number | null;
|
19
20
|
ownerId: number | null;
|
20
21
|
createdBy: number | null;
|
22
|
+
customers: Customer[];
|
21
23
|
users: User[];
|
22
24
|
programs: Program[];
|
23
25
|
memberships: Membership[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AACA,gEAA6D;
|
1
|
+
{"version":3,"file":"Media.js","sourceRoot":"","sources":["../../../../src/types/media/entities/Media.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAO7D,MAAa,KAAM,SAAQ,+BAAc;CAqCxC;AArCD,sBAqCC"}
|
@@ -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":""}
|
@@ -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"}
|