@bondsports/types 2.4.82 → 2.4.83-a-2
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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/employees/types/index.d.ts +1 -0
- package/dist/types/employees/types/index.js +1 -0
- package/dist/types/employees/types/index.js.map +1 -1
- package/dist/types/membership/dto/expended-member.dto.d.ts +2 -0
- package/dist/types/membership/dto/expended-member.dto.js.map +1 -1
- package/dist/types/membership/types/membership.interfaces.d.ts +2 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -14
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +19 -17
- package/dist/types/product-pricing/dto/product.dto.js +10 -1
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +10 -10
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +12 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +21 -1
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -13
- package/package.json +3 -4
|
@@ -14,6 +14,7 @@ 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("./"), exports);
|
|
17
18
|
__exportStar(require("./consts"), exports);
|
|
18
19
|
__exportStar(require("./enums"), exports);
|
|
19
20
|
__exportStar(require("./interfaces"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/employees/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/employees/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAmB;AACnB,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Invoice } from '../../entity/Invoice';
|
|
2
2
|
import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
|
3
3
|
import { LineItems } from '../../entity/LineItems';
|
|
4
|
+
import { UserPaymentMethodSimpleDto } from '../../payment/dto/payment-method.dto';
|
|
4
5
|
import { User } from '../../user/entities/User';
|
|
5
6
|
import { MembershipMember } from '../entities/membership-member.entity';
|
|
6
7
|
import { Membership } from '../entities/membership.entity';
|
|
@@ -10,6 +11,7 @@ export declare class ExpandedMembershipMemberDto implements IExpandedMembershipM
|
|
|
10
11
|
membership: Partial<Membership>;
|
|
11
12
|
invoice: Partial<Invoice>;
|
|
12
13
|
payment?: Partial<InvoiceToPayment>;
|
|
14
|
+
nextPaymentMethod?: UserPaymentMethodSimpleDto | null;
|
|
13
15
|
user: Partial<User>;
|
|
14
16
|
lineItem: Partial<LineItems>;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expended-member.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/expended-member.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"expended-member.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/expended-member.dto.ts"],"names":[],"mappings":";;;AAUA,MAAa,2BAA2B;CAcvC;AAdD,kEAcC"}
|
|
@@ -2,6 +2,7 @@ import { SportsEnum } from '../../activities/types/activities.enums';
|
|
|
2
2
|
import { Invoice } from '../../entity/Invoice';
|
|
3
3
|
import { InvoiceToPayment } from '../../entity/InvoiceToPayment';
|
|
4
4
|
import { LineItems } from '../../entity/LineItems';
|
|
5
|
+
import { UserPaymentMethodSimpleDto } from '../../payment/dto/payment-method.dto';
|
|
5
6
|
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
6
7
|
import { CancellationStatusEnum, CurrencyEnum, CustomerInMembershipTypeEnum, GenderEnum, MembershipTypeEnum } from '../../services/enums.service';
|
|
7
8
|
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
@@ -18,6 +19,7 @@ export interface IExpandedMembershipMemberData {
|
|
|
18
19
|
member: MembershipMember;
|
|
19
20
|
membership: Partial<Membership>;
|
|
20
21
|
payment?: Partial<InvoiceToPayment>;
|
|
22
|
+
nextPaymentMethod?: UserPaymentMethodSimpleDto | null;
|
|
21
23
|
user: Partial<User>;
|
|
22
24
|
}
|
|
23
25
|
export interface IEligibleFamilyMember {
|
|
@@ -5,7 +5,7 @@ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
|
5
5
|
import { ProgramTypesEnum } from '../../programs/types/enums/program.enums';
|
|
6
6
|
import { ResourceDto } from '../../resources/dto/resource.dto';
|
|
7
7
|
import { ActivityEnum, OrderByEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
8
|
-
import { OrderByProductEnum } from '../types/enums/product.enums';
|
|
8
|
+
import { OrderByProductEnum, ProductExpandEnum } from '../types/enums/product.enums';
|
|
9
9
|
import { IFindPriceOfProduct, IGetProductsByTypeOptions, IGetPunchPassProductsOptions } from '../types/interfaces/product-pricing.interfaces';
|
|
10
10
|
export declare class FindPriceOfProductDto implements IFindPriceOfProduct {
|
|
11
11
|
id?: number;
|
|
@@ -52,16 +52,9 @@ export declare class GetProductsByTypeDto extends ByOrganizationIdDto {
|
|
|
52
52
|
}
|
|
53
53
|
export declare class GetProductsByTypeQueryDto extends PaginationQuery implements IGetProductsByTypeOptions {
|
|
54
54
|
productIds?: number[];
|
|
55
|
-
|
|
56
|
-
includeProductResources?: boolean;
|
|
57
|
-
includeFacilities?: boolean;
|
|
58
|
-
includeGlCodes?: boolean;
|
|
59
|
-
includeProductCategories?: boolean;
|
|
55
|
+
expand?: ProductExpandEnum[];
|
|
60
56
|
includeArchived?: boolean;
|
|
61
|
-
|
|
62
|
-
includePricesSchedule?: boolean;
|
|
63
|
-
includeEntitlementDiscounts?: boolean;
|
|
64
|
-
includeCustomers?: boolean;
|
|
57
|
+
onlyNonGatedProducts?: boolean;
|
|
65
58
|
onlyValid?: boolean;
|
|
66
59
|
facilitiesIds?: number[];
|
|
67
60
|
resourcesIds?: number[];
|
|
@@ -77,13 +70,9 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
|
77
70
|
sortBy?: OrderByProductEnum;
|
|
78
71
|
order?: OrderByEnum;
|
|
79
72
|
inclusion?: boolean;
|
|
80
|
-
includePunchPass?: boolean;
|
|
81
73
|
punchPassOnly?: boolean;
|
|
82
|
-
includePaymentPlan?: boolean;
|
|
83
|
-
includeResourceSettings?: boolean;
|
|
84
74
|
categoriesIds?: number[];
|
|
85
75
|
includeOnlyNotAssignedToCategory?: boolean;
|
|
86
|
-
includeActivityTimes?: boolean;
|
|
87
76
|
isAvailableOnline?: boolean;
|
|
88
77
|
}
|
|
89
78
|
export declare class GetPunchPassProductsByTypeQueryDto extends PaginationQuery implements IGetPunchPassProductsOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;
|
|
1
|
+
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AACxD,8EAA8E;AAW9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,kCAAkC;CAI9C;AAJD,gFAIC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CA8C7D;AA9CD,8DA8CC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAsBtE;AAtBD,gFAsBC"}
|
|
@@ -2,20 +2,18 @@ import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
|
|
2
2
|
import { ActivityTimesDto } from '../../dto/activityTimes.dto';
|
|
3
3
|
import { DurationDto, IdAndNameDto, PaginationQuery } from '../../dto/general.dto';
|
|
4
4
|
import { VariantDto, VariantTitleDto } from '../../dto/product-variants.dto';
|
|
5
|
-
import { GroupItemsPricing } from '../../entity/GroupItemsPricing';
|
|
6
5
|
import { ProductPackage } from '../../entity/ProductPackage';
|
|
7
6
|
import { FacilityDto, SimpleFacilityDto } from '../../facilities/dto/facilities.dto';
|
|
8
7
|
import { ResourceGlDto } from '../../gl-codes/dto/resource-to-gl.dto';
|
|
9
8
|
import { MediaDto } from '../../media/dto/media.dto';
|
|
10
|
-
import { SimpleMembershipDto } from '../../membership/dto/membership.dto';
|
|
11
9
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
|
12
10
|
import { EntitlementDiscountDto } from '../../payment/dto/discount.dto';
|
|
13
11
|
import { PaymentPlanDto } from '../../payment/dto/payment-plan.dto';
|
|
14
12
|
import { PriceDto } from '../../pricing/dto/price.dto';
|
|
15
13
|
import { PunchPassDto } from '../../punch-pass/dto/punch-pass.dto';
|
|
16
14
|
import { ResourceSettingDto } from '../../resource-settings/dto/resource-setting.dto';
|
|
17
|
-
import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
18
|
-
import {
|
|
15
|
+
import { ActivityEnum, AddonTimePeriodEnum, PackageProductsRelationTypeEnum, PlatformsEnum, ProductPackageLevelEnum, ProductSubTypesEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
16
|
+
import { IResourcesAvailability } from '../../services/interfaces.service';
|
|
19
17
|
import { TaxDto } from '../../taxes/dto/tax.dto';
|
|
20
18
|
import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
21
19
|
import { ProductCategoryDto } from './product-categories.dto';
|
|
@@ -138,6 +136,21 @@ export declare class SimpleProductDto extends IdAndNameDto {
|
|
|
138
136
|
productPaymentPlans?: PaymentPlanDto[];
|
|
139
137
|
duration?: DurationDto;
|
|
140
138
|
}
|
|
139
|
+
export declare class ProductVariantDto extends IdAndNameDto {
|
|
140
|
+
currPrice?: PriceDto;
|
|
141
|
+
prices?: PriceDto[];
|
|
142
|
+
variantsObj: VariantDto[];
|
|
143
|
+
variantTitlesObj: VariantTitleDto[];
|
|
144
|
+
}
|
|
145
|
+
export declare class AddOnProductDto extends IdAndNameDto {
|
|
146
|
+
prices?: PriceDto[];
|
|
147
|
+
defaultPriceId?: number;
|
|
148
|
+
}
|
|
149
|
+
export declare class ProductAddOnDto {
|
|
150
|
+
product: AddOnProductDto;
|
|
151
|
+
relationType: PackageProductsRelationTypeEnum;
|
|
152
|
+
timePeriod?: AddonTimePeriodEnum;
|
|
153
|
+
}
|
|
141
154
|
export declare class BaseProductDto {
|
|
142
155
|
id: number;
|
|
143
156
|
organizationId: number;
|
|
@@ -146,16 +159,13 @@ export declare class BaseProductDto {
|
|
|
146
159
|
name: string;
|
|
147
160
|
quantity: number;
|
|
148
161
|
isAll: boolean;
|
|
149
|
-
paymentProcessorId?: string;
|
|
150
162
|
startDate?: Date;
|
|
151
163
|
endDate?: Date;
|
|
152
164
|
isPublic: boolean;
|
|
153
165
|
productType?: ProductTypesEnum;
|
|
154
|
-
GL?: string;
|
|
155
166
|
glCodes?: ResourceGlDto[];
|
|
156
167
|
downpayment?: number;
|
|
157
168
|
description?: string;
|
|
158
|
-
mainMediaId?: number;
|
|
159
169
|
mainMedia?: MediaDto;
|
|
160
170
|
prices: PriceDto[];
|
|
161
171
|
currPrice: PriceDto;
|
|
@@ -164,34 +174,26 @@ export declare class BaseProductDto {
|
|
|
164
174
|
requiredProductIds?: number[];
|
|
165
175
|
resources: IResourcesAvailability[];
|
|
166
176
|
resource: ProductResourceDto;
|
|
167
|
-
variantParentId?: number;
|
|
168
177
|
isAddon: boolean;
|
|
169
178
|
isArchive: boolean;
|
|
170
|
-
productVariants:
|
|
171
|
-
variantParentProduct: BaseProductDto;
|
|
179
|
+
productVariants: ProductVariantDto[];
|
|
172
180
|
variantsObj: VariantDto[];
|
|
173
181
|
variantTitlesObj: VariantTitleDto[];
|
|
174
182
|
timePeriod?: AddonTimePeriodEnum;
|
|
175
|
-
deletedAt?: Date;
|
|
176
183
|
isProRated: boolean;
|
|
177
|
-
entitledPrices?: GroupItemsPricing[];
|
|
178
184
|
defaultPriceId?: number;
|
|
179
|
-
tax: number;
|
|
180
185
|
isTaxInclusive: boolean;
|
|
181
186
|
taxes?: TaxDto[];
|
|
182
187
|
defaultPrice?: PriceDto;
|
|
183
|
-
addOns?:
|
|
188
|
+
addOns?: ProductAddOnDto[];
|
|
184
189
|
productResources: ProductResourceDto[];
|
|
185
|
-
parentProductPackages: ProductPackage[];
|
|
186
190
|
childProductPackages: ProductPackage[];
|
|
187
191
|
sports?: number[];
|
|
188
192
|
durationMinutes?: number;
|
|
189
193
|
durationDays?: number;
|
|
190
194
|
forms?: number[];
|
|
191
|
-
isForAllCustomers?: boolean;
|
|
192
195
|
reservedForCustomers?: SimpleCustomerDto[];
|
|
193
196
|
reservedForCustomersIds?: number[];
|
|
194
|
-
reservedForMemberships?: SimpleMembershipDto[];
|
|
195
197
|
activityTimes?: ActivityTimesDto[];
|
|
196
198
|
resourceSettings: ResourceSettingDto[];
|
|
197
199
|
timezone?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRequiredProductsDto = exports.RequiredProductsByProductIdDto = exports.RequiredProductDto = exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.ProductFieldsDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.UsersRequiredProductsByProductIdsDto = exports.UsersRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.CreateRentalProductAddonDto = exports.ByProductAndOrgDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
|
3
|
+
exports.UserRequiredProductsDto = exports.RequiredProductsByProductIdDto = exports.RequiredProductDto = exports.ResourceProductDto = exports.ProductDto = exports.DeprecatedProductDto = exports.BaseProductDto = exports.ProductAddOnDto = exports.AddOnProductDto = exports.ProductVariantDto = exports.SimpleProductDto = exports.GetOrganizationProductsDto = exports.GetExtraProductDataDto = exports.ProductFieldsDto = exports.GetProductsDto = exports.ProductsIdsDto = exports.UsersRequiredProductsByProductIdsDto = exports.UsersRequiredProductsDto = exports.ReturnRequiredProductsDto = exports.ConnectProductResourceDto = exports.CreateRentalProductAddonDto = exports.ByProductAndOrgDto = exports.CreateProductAvailabilityTimesDto = exports.FindByProductIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
class FindByProductIdDto {
|
|
@@ -45,6 +45,15 @@ exports.GetOrganizationProductsDto = GetOrganizationProductsDto;
|
|
|
45
45
|
class SimpleProductDto extends general_dto_1.IdAndNameDto {
|
|
46
46
|
}
|
|
47
47
|
exports.SimpleProductDto = SimpleProductDto;
|
|
48
|
+
class ProductVariantDto extends general_dto_1.IdAndNameDto {
|
|
49
|
+
}
|
|
50
|
+
exports.ProductVariantDto = ProductVariantDto;
|
|
51
|
+
class AddOnProductDto extends general_dto_1.IdAndNameDto {
|
|
52
|
+
}
|
|
53
|
+
exports.AddOnProductDto = AddOnProductDto;
|
|
54
|
+
class ProductAddOnDto {
|
|
55
|
+
}
|
|
56
|
+
exports.ProductAddOnDto = ProductAddOnDto;
|
|
48
57
|
class BaseProductDto {
|
|
49
58
|
}
|
|
50
59
|
exports.BaseProductDto = BaseProductDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAmF;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAmF;AAMnF,8EAA8E;AAuB9E,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,iCAAiC;CAU7C;AAVD,8EAUC;AAED,MAAa,kBAAmB,SAAQ,sCAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,2BAA2B;CAYvC;AAZD,kEAYC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,wBAAwB;CAMpC;AAND,4DAMC;AAED,MAAa,oCAAoC;CAMhD;AAND,oFAMC;AAED,MAAa,cAAe,SAAQ,6BAAe;CAQlD;AARD,wCAQC;AAED,MAAa,cAAe,SAAQ,6BAAe;CA4BlD;AA5BD,wCA4BC;AAED,MAAa,gBAAgB;CAwD5B;AAxDD,4CAwDC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAcjD;AAdD,4CAcC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAQlD;AARD,8CAQC;AAED,MAAa,eAAgB,SAAQ,0BAAY;CAIhD;AAJD,0CAIC;AAED,MAAa,eAAe;CAM3B;AAND,0CAMC;AAED,MAAa,cAAc;CA0F1B;AA1FD,wCA0FC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAsB7C;AAtBD,gCAsBC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC;AAED,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
|
|
@@ -245,8 +245,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
245
245
|
}>;
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
247
|
name?: string;
|
|
248
|
-
membershipsIds?: [number, ...number[]];
|
|
249
248
|
id?: string;
|
|
249
|
+
membershipsIds?: [number, ...number[]];
|
|
250
250
|
advanceBookingWindow?: {
|
|
251
251
|
amount?: number;
|
|
252
252
|
unit?: TimeUnit;
|
|
@@ -257,8 +257,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
257
257
|
};
|
|
258
258
|
}, {
|
|
259
259
|
name?: string;
|
|
260
|
-
membershipsIds?: [number, ...number[]];
|
|
261
260
|
id?: string;
|
|
261
|
+
membershipsIds?: [number, ...number[]];
|
|
262
262
|
advanceBookingWindow?: {
|
|
263
263
|
amount?: number;
|
|
264
264
|
unit?: TimeUnit;
|
|
@@ -313,8 +313,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
313
313
|
allowOverlappingStartTimes?: boolean;
|
|
314
314
|
memberships?: [{
|
|
315
315
|
name?: string;
|
|
316
|
-
membershipsIds?: [number, ...number[]];
|
|
317
316
|
id?: string;
|
|
317
|
+
membershipsIds?: [number, ...number[]];
|
|
318
318
|
advanceBookingWindow?: {
|
|
319
319
|
amount?: number;
|
|
320
320
|
unit?: TimeUnit;
|
|
@@ -325,8 +325,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
325
325
|
};
|
|
326
326
|
}, ...{
|
|
327
327
|
name?: string;
|
|
328
|
-
membershipsIds?: [number, ...number[]];
|
|
329
328
|
id?: string;
|
|
329
|
+
membershipsIds?: [number, ...number[]];
|
|
330
330
|
advanceBookingWindow?: {
|
|
331
331
|
amount?: number;
|
|
332
332
|
unit?: TimeUnit;
|
|
@@ -381,8 +381,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
381
381
|
allowOverlappingStartTimes?: boolean;
|
|
382
382
|
memberships?: [{
|
|
383
383
|
name?: string;
|
|
384
|
-
membershipsIds?: [number, ...number[]];
|
|
385
384
|
id?: string;
|
|
385
|
+
membershipsIds?: [number, ...number[]];
|
|
386
386
|
advanceBookingWindow?: {
|
|
387
387
|
amount?: number;
|
|
388
388
|
unit?: TimeUnit;
|
|
@@ -393,8 +393,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
393
393
|
};
|
|
394
394
|
}, ...{
|
|
395
395
|
name?: string;
|
|
396
|
-
membershipsIds?: [number, ...number[]];
|
|
397
396
|
id?: string;
|
|
397
|
+
membershipsIds?: [number, ...number[]];
|
|
398
398
|
advanceBookingWindow?: {
|
|
399
399
|
amount?: number;
|
|
400
400
|
unit?: TimeUnit;
|
|
@@ -449,8 +449,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
449
449
|
allowOverlappingStartTimes?: boolean;
|
|
450
450
|
memberships?: [{
|
|
451
451
|
name?: string;
|
|
452
|
-
membershipsIds?: [number, ...number[]];
|
|
453
452
|
id?: string;
|
|
453
|
+
membershipsIds?: [number, ...number[]];
|
|
454
454
|
advanceBookingWindow?: {
|
|
455
455
|
amount?: number;
|
|
456
456
|
unit?: TimeUnit;
|
|
@@ -461,8 +461,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
461
461
|
};
|
|
462
462
|
}, ...{
|
|
463
463
|
name?: string;
|
|
464
|
-
membershipsIds?: [number, ...number[]];
|
|
465
464
|
id?: string;
|
|
465
|
+
membershipsIds?: [number, ...number[]];
|
|
466
466
|
advanceBookingWindow?: {
|
|
467
467
|
amount?: number;
|
|
468
468
|
unit?: TimeUnit;
|
|
@@ -517,8 +517,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
517
517
|
allowOverlappingStartTimes?: boolean;
|
|
518
518
|
memberships?: [{
|
|
519
519
|
name?: string;
|
|
520
|
-
membershipsIds?: [number, ...number[]];
|
|
521
520
|
id?: string;
|
|
521
|
+
membershipsIds?: [number, ...number[]];
|
|
522
522
|
advanceBookingWindow?: {
|
|
523
523
|
amount?: number;
|
|
524
524
|
unit?: TimeUnit;
|
|
@@ -529,8 +529,8 @@ export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
|
529
529
|
};
|
|
530
530
|
}, ...{
|
|
531
531
|
name?: string;
|
|
532
|
-
membershipsIds?: [number, ...number[]];
|
|
533
532
|
id?: string;
|
|
533
|
+
membershipsIds?: [number, ...number[]];
|
|
534
534
|
advanceBookingWindow?: {
|
|
535
535
|
amount?: number;
|
|
536
536
|
unit?: TimeUnit;
|
|
@@ -21,8 +21,19 @@ export declare enum ProductExpandEnum {
|
|
|
21
21
|
PRODUCT_PACKAGES = "packages",
|
|
22
22
|
PRICING_SCHEDULE = "pricingSchedule",
|
|
23
23
|
ACTIVITY_TIMES = "activityTimes",
|
|
24
|
-
MEDIA = "media"
|
|
24
|
+
MEDIA = "media",
|
|
25
|
+
RESOURCES = "resources",
|
|
26
|
+
PRODUCT_RESOURCES = "productResources",
|
|
27
|
+
FACILITIES = "facilities",
|
|
28
|
+
GL_CODES = "glCodes",
|
|
29
|
+
PRODUCT_CATEGORIES = "productCategories",
|
|
30
|
+
CUSTOMERS = "customers",
|
|
31
|
+
PAYMENT_PLANS = "paymentPlans",
|
|
32
|
+
RESOURCE_SETTINGS = "resourceSettings",
|
|
33
|
+
PUNCH_PASS = "punchPass",
|
|
34
|
+
VARIANTS = "variants"
|
|
25
35
|
}
|
|
36
|
+
export declare const PUBLIC_PRODUCT_EXPAND_VALUES: ProductExpandEnum[];
|
|
26
37
|
export declare enum ProductBuilderTypeEnum {
|
|
27
38
|
RENTAL = "rental",
|
|
28
39
|
PROGRAM_PUNCH_PASS = "program_punch_pass",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProductBuilderTypeEnum = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
|
|
3
|
+
exports.ProductBuilderTypeEnum = exports.PUBLIC_PRODUCT_EXPAND_VALUES = exports.ProductExpandEnum = exports.OrderByProductEnum = exports.ProductStateEnum = void 0;
|
|
4
4
|
var ProductStateEnum;
|
|
5
5
|
(function (ProductStateEnum) {
|
|
6
6
|
ProductStateEnum["VALID"] = "valid";
|
|
@@ -28,7 +28,27 @@ var ProductExpandEnum;
|
|
|
28
28
|
ProductExpandEnum["PRICING_SCHEDULE"] = "pricingSchedule";
|
|
29
29
|
ProductExpandEnum["ACTIVITY_TIMES"] = "activityTimes";
|
|
30
30
|
ProductExpandEnum["MEDIA"] = "media";
|
|
31
|
+
ProductExpandEnum["RESOURCES"] = "resources";
|
|
32
|
+
ProductExpandEnum["PRODUCT_RESOURCES"] = "productResources";
|
|
33
|
+
ProductExpandEnum["FACILITIES"] = "facilities";
|
|
34
|
+
ProductExpandEnum["GL_CODES"] = "glCodes";
|
|
35
|
+
ProductExpandEnum["PRODUCT_CATEGORIES"] = "productCategories";
|
|
36
|
+
ProductExpandEnum["CUSTOMERS"] = "customers";
|
|
37
|
+
ProductExpandEnum["PAYMENT_PLANS"] = "paymentPlans";
|
|
38
|
+
ProductExpandEnum["RESOURCE_SETTINGS"] = "resourceSettings";
|
|
39
|
+
ProductExpandEnum["PUNCH_PASS"] = "punchPass";
|
|
40
|
+
ProductExpandEnum["VARIANTS"] = "variants";
|
|
31
41
|
})(ProductExpandEnum = exports.ProductExpandEnum || (exports.ProductExpandEnum = {}));
|
|
42
|
+
exports.PUBLIC_PRODUCT_EXPAND_VALUES = [
|
|
43
|
+
ProductExpandEnum.PRICES,
|
|
44
|
+
ProductExpandEnum.REQUIRED_PRODUCTS,
|
|
45
|
+
ProductExpandEnum.ENTITLEMENT_DISCOUNTS,
|
|
46
|
+
ProductExpandEnum.ACCOUNTING_CODES,
|
|
47
|
+
ProductExpandEnum.PRODUCT_PACKAGES,
|
|
48
|
+
ProductExpandEnum.PRICING_SCHEDULE,
|
|
49
|
+
ProductExpandEnum.ACTIVITY_TIMES,
|
|
50
|
+
ProductExpandEnum.MEDIA,
|
|
51
|
+
];
|
|
32
52
|
var ProductBuilderTypeEnum;
|
|
33
53
|
(function (ProductBuilderTypeEnum) {
|
|
34
54
|
ProductBuilderTypeEnum["RENTAL"] = "rental";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"product.enums.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/enums/product.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,+CAA2B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC7B,+BAAS,CAAA;IACT,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;IACnC,uCAAiB,CAAA;IACjB,sDAAgC,CAAA;IAChC,2DAAqC,CAAA;IACrC,+DAAyC,CAAA;AAC1C,CAAC,EAVW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAU7B;AAED,IAAY,iBAmBX;AAnBD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;IACjB,2DAAsC,CAAA;IACtC,mEAA8C,CAAA;IAC9C,yDAAoC,CAAA;IACpC,kDAA6B,CAAA;IAC7B,yDAAoC,CAAA;IACpC,qDAAgC,CAAA;IAChC,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,2DAAsC,CAAA;IACtC,8CAAyB,CAAA;IACzB,yCAAoB,CAAA;IACpB,6DAAwC,CAAA;IACxC,4CAAuB,CAAA;IACvB,mDAA8B,CAAA;IAC9B,2DAAsC,CAAA;IACtC,6CAAwB,CAAA;IACxB,0CAAqB,CAAA;AACtB,CAAC,EAnBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAmB5B;AAEY,QAAA,4BAA4B,GAAwB;IAChE,iBAAiB,CAAC,MAAM;IACxB,iBAAiB,CAAC,iBAAiB;IACnC,iBAAiB,CAAC,qBAAqB;IACvC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,gBAAgB;IAClC,iBAAiB,CAAC,cAAc;IAChC,iBAAiB,CAAC,KAAK;CACvB,CAAC;AAEF,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IACjC,2CAAiB,CAAA;IACjB,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;AACxC,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
|
|
@@ -22,22 +22,10 @@ export interface IGetProductsByTypeOptions extends IPagination {
|
|
|
22
22
|
customersIds?: number[];
|
|
23
23
|
excludeProductIds?: number[];
|
|
24
24
|
excludeResourceIds?: number[];
|
|
25
|
+
expand?: ProductExpandEnum[];
|
|
25
26
|
facilitiesIds?: number[];
|
|
26
|
-
includeActivityTimes?: boolean;
|
|
27
27
|
includeArchived?: boolean;
|
|
28
|
-
includeCurrentPrice?: boolean;
|
|
29
|
-
includeCustomers?: boolean;
|
|
30
|
-
includeEntitlementDiscounts?: boolean;
|
|
31
|
-
includeFacilities?: boolean;
|
|
32
|
-
includeGlCodes?: boolean;
|
|
33
28
|
includeOnlyNotAssignedToCategory?: boolean;
|
|
34
|
-
includePaymentPlan?: boolean;
|
|
35
|
-
includePricesSchedule?: boolean;
|
|
36
|
-
includeProductCategories?: boolean;
|
|
37
|
-
includeProductResources?: boolean;
|
|
38
|
-
includePunchPass?: boolean;
|
|
39
|
-
includeResources?: boolean;
|
|
40
|
-
includeResourceSettings?: boolean;
|
|
41
29
|
inclusion?: boolean;
|
|
42
30
|
instructorsIds?: number[];
|
|
43
31
|
isAvailableOnline?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bondsports/types",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.83-a-2",
|
|
4
4
|
"description": "backend types module for Bond-Sports",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
"rimraf": "^3.0.2",
|
|
40
40
|
"stripe": "9.1.0",
|
|
41
41
|
"typeorm": "^0.2.32",
|
|
42
|
-
"zod": "^3.25.49"
|
|
43
|
-
"@types/lodash": "^4.17.24"
|
|
42
|
+
"zod": "^3.25.49"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@bondsports/eslint-config": "^1.0.2",
|
|
@@ -52,5 +51,5 @@
|
|
|
52
51
|
"ts-node": "^10.8.0",
|
|
53
52
|
"typescript": "^4.4.3"
|
|
54
53
|
},
|
|
55
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "0beeb93bec411b44a51a1549b099671d398bd599"
|
|
56
55
|
}
|