@bondsports/types 2.4.12-a-1 → 2.4.14-squad-c-1
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/auth/auth-headers-names.enum.d.ts +6 -0
- package/dist/types/auth/auth-headers-names.enum.js +8 -1
- package/dist/types/auth/auth-headers-names.enum.js.map +1 -1
- package/dist/types/cart/dto/cart-item.dto.d.ts +3 -5
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.d.ts +2 -4
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/types/consts/cart.consts.d.ts +2 -0
- package/dist/types/cart/types/consts/cart.consts.js +6 -2
- package/dist/types/cart/types/consts/cart.consts.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +0 -1
- package/dist/types/customers/dto/add-family-member.dto.d.ts +2 -1
- package/dist/types/customers/dto/add-family-member.dto.js.map +1 -1
- package/dist/types/customers/dto/customer-response.dto.d.ts +9 -0
- package/dist/types/customers/dto/customer-response.dto.js +9 -1
- package/dist/types/customers/dto/customer-response.dto.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +3 -10
- package/dist/types/entity/Invoice.d.ts +2 -0
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/invoice/types/consts/index.d.ts +1 -0
- package/dist/types/invoice/types/consts/index.js +1 -0
- package/dist/types/invoice/types/consts/index.js.map +1 -1
- package/dist/types/invoice/types/consts/invoice-visibility.consts.d.ts +11 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js +24 -0
- package/dist/types/invoice/types/consts/invoice-visibility.consts.js.map +1 -0
- package/dist/types/invoice/types/enums/index.d.ts +1 -0
- package/dist/types/invoice/types/enums/index.js +18 -0
- package/dist/types/invoice/types/enums/index.js.map +1 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.d.ts +19 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js +25 -0
- package/dist/types/invoice/types/enums/invoice-visibility.enums.js.map +1 -0
- package/dist/types/invoice/types/index.d.ts +1 -0
- package/dist/types/invoice/types/index.js +1 -0
- package/dist/types/invoice/types/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/competition-team.interface.d.ts +10 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js +3 -0
- package/dist/types/league-standings/interfaces/competition-team.interface.js.map +1 -0
- package/dist/types/league-standings/interfaces/index.d.ts +4 -0
- package/dist/types/league-standings/interfaces/index.js +4 -0
- package/dist/types/league-standings/interfaces/index.js.map +1 -1
- package/dist/types/league-standings/interfaces/standings.interface.d.ts +4 -0
- package/dist/types/league-standings/interfaces/standings.interface.js +3 -0
- package/dist/types/league-standings/interfaces/standings.interface.js.map +1 -0
- package/dist/types/payment/types/interfaces/discount.interfaces.d.ts +0 -4
- package/dist/types/payment/types/interfaces/discount.interfaces.js.map +1 -1
- package/dist/types/product-pricing/dto/index.d.ts +1 -0
- package/dist/types/product-pricing/dto/index.js +1 -0
- package/dist/types/product-pricing/dto/index.js.map +1 -1
- package/dist/types/product-pricing/dto/product-categories.dto.d.ts +43 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js +30 -0
- package/dist/types/product-pricing/dto/product-categories.dto.js.map +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +2 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/entities/index.d.ts +1 -0
- package/dist/types/product-pricing/entities/index.js +1 -0
- package/dist/types/product-pricing/entities/index.js.map +1 -1
- package/dist/types/product-pricing/entities/product-category.entity.d.ts +12 -0
- package/dist/types/product-pricing/entities/product-category.entity.js +8 -0
- package/dist/types/product-pricing/entities/product-category.entity.js.map +1 -0
- package/dist/types/product-pricing/entities/product.entity.d.ts +3 -0
- package/dist/types/product-pricing/entities/product.entity.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-category.consts.d.ts +455 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js +116 -0
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -0
- package/dist/types/product-pricing/types/enums/index.d.ts +1 -0
- package/dist/types/product-pricing/types/enums/index.js +1 -0
- package/dist/types/product-pricing/types/enums/index.js.map +1 -1
- package/dist/types/product-pricing/types/enums/product-categories.enums.d.ts +8 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js +13 -0
- package/dist/types/product-pricing/types/enums/product-categories.enums.js.map +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.d.ts +2 -1
- package/dist/types/product-pricing/types/enums/product.enums.js +1 -0
- package/dist/types/product-pricing/types/enums/product.enums.js.map +1 -1
- 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/product-categories.interfaces.d.ts +25 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js +3 -0
- package/dist/types/product-pricing/types/interfaces/product-categories.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +3 -2
- package/dist/types/product-pricing/types/interfaces/validate-resources.interfaces.d.ts +0 -1
- package/dist/types/programs-seasons/dto/program-session.dto.d.ts +1 -0
- package/dist/types/programs-seasons/dto/program-session.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-session.interfaces.d.ts +20 -2
- package/dist/types/punch-pass/types/interfaces.d.ts +38 -0
- package/dist/types/services/enums.service.d.ts +3 -4
- package/dist/types/services/enums.service.js +2 -3
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +0 -5
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +27 -0
- package/dist/types/user/dto/index.d.ts +0 -2
- package/dist/types/user/dto/index.js +0 -2
- package/dist/types/user/dto/index.js.map +1 -1
- package/dist/types/user/dto/user.dto.d.ts +3 -0
- package/dist/types/user/dto/user.dto.js +4 -1
- package/dist/types/user/dto/user.dto.js.map +1 -1
- package/dist/types/user/entities/Athlete.d.ts +0 -2
- package/dist/types/user/entities/Athlete.js.map +1 -1
- package/dist/types/user/types/index.d.ts +0 -1
- package/dist/types/user/types/index.js +0 -1
- package/dist/types/user/types/index.js.map +1 -1
- package/dist/types/user/types/user.interfaces.d.ts +0 -10
- package/package.json +6 -5
- package/LICENSE.md +0 -0
- package/dist/types/user/dto/athlete.dto.d.ts +0 -14
- package/dist/types/user/dto/athlete.dto.js +0 -13
- package/dist/types/user/dto/athlete.dto.js.map +0 -1
- package/dist/types/user/dto/update-user-profile.dto.d.ts +0 -24
- package/dist/types/user/dto/update-user-profile.dto.js +0 -17
- package/dist/types/user/dto/update-user-profile.dto.js.map +0 -1
- package/dist/types/user/types/user.consts.d.ts +0 -9
- package/dist/types/user/types/user.consts.js +0 -25
- package/dist/types/user/types/user.consts.js.map +0 -1
|
@@ -17,6 +17,7 @@ import { ActivityEnum, AddonTimePeriodEnum, PlatformsEnum, ProductPackageLevelEn
|
|
|
17
17
|
import { IChildProduct, IResourcesAvailability } from '../../services/interfaces.service';
|
|
18
18
|
import { TaxDto } from '../../taxes/dto/tax.dto';
|
|
19
19
|
import { IGetResourcesProductsOptions, IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
20
|
+
import { ProductCategoryDto } from './product-categories.dto';
|
|
20
21
|
import { ProductResourceDto } from './product-resource.dto';
|
|
21
22
|
export declare class FindByProductIdDto {
|
|
22
23
|
productId: number;
|
|
@@ -194,6 +195,7 @@ export declare class ProductDto extends BaseProductDto {
|
|
|
194
195
|
entitlementDiscounts?: EntitlementDiscountDto[];
|
|
195
196
|
facilities?: FacilityDto[];
|
|
196
197
|
punchPass?: PunchPassDto;
|
|
198
|
+
productCategory?: ProductCategoryDto;
|
|
197
199
|
}
|
|
198
200
|
export declare class ResourceProductDto {
|
|
199
201
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAKA,uDAAsE;AAMtE,8EAA8E;AAsB9E,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,sBAAsB;CAIlC;AAJD,wDAIC;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;CAgBlC;AAhBD,wDAgBC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;CAM9D;AAND,gEAMC;AAED,MAAa,gBAAiB,SAAQ,0BAAY;CAQjD;AARD,4CAQC;AAED,MAAa,cAAc;CA4G1B;AA5GD,wCA4GC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,UAAW,SAAQ,cAAc;CAc7C;AAdD,gCAcC;AAED,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AAED,MAAa,kBAAmB,SAAQ,UAAU;CAMjD;AAND,gDAMC"}
|
|
@@ -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("./product-category.entity"), exports);
|
|
17
18
|
__exportStar(require("./product-to-facility.entity"), exports);
|
|
18
19
|
__exportStar(require("./product.entity"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,mDAAiC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
|
2
|
+
import { ProductTypesEnum } from '../../services/enums.service';
|
|
3
|
+
import { Product } from './product.entity';
|
|
4
|
+
export declare class ProductCategory extends OrganizationConnectionBaseEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
productType: ProductTypesEnum;
|
|
8
|
+
settings?: unknown;
|
|
9
|
+
deletedAt?: Date;
|
|
10
|
+
products?: Product[];
|
|
11
|
+
productsCount?: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCategory = void 0;
|
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
|
5
|
+
class ProductCategory extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
|
6
|
+
}
|
|
7
|
+
exports.ProductCategory = ProductCategory;
|
|
8
|
+
//# sourceMappingURL=product-category.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-category.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product-category.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAKjG,MAAa,eAAgB,SAAQ,mEAAgC;CAcpE;AAdD,0CAcC"}
|
|
@@ -23,6 +23,7 @@ import { Tax } from '../../taxes/entities/Tax';
|
|
|
23
23
|
import { ProductResourceDto } from '../dto/product-resource.dto';
|
|
24
24
|
import { ProductStateEnum } from '../types/enums/product.enums';
|
|
25
25
|
import { IPricingSchedule } from '../types/interfaces/product-pricing.interfaces';
|
|
26
|
+
import { ProductCategory } from './product-category.entity';
|
|
26
27
|
import { ProductToFacility } from './product-to-facility.entity';
|
|
27
28
|
export declare class Product extends OrganizationConnectionBaseEntity {
|
|
28
29
|
name: string;
|
|
@@ -63,6 +64,8 @@ export declare class Product extends OrganizationConnectionBaseEntity {
|
|
|
63
64
|
defaultPriceId?: number;
|
|
64
65
|
tax: number;
|
|
65
66
|
isTaxInclusive: boolean;
|
|
67
|
+
categoryId?: number;
|
|
68
|
+
productCategory?: ProductCategory;
|
|
66
69
|
defaultPrice?: Price;
|
|
67
70
|
addOns?: IChildProduct[];
|
|
68
71
|
productPaymentPlans?: ProductPaymentPlan[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"product.entity.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/product.entity.ts"],"names":[],"mappings":";;;AAkBA,oGAAiG;AAyBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqJ5D;AArJD,0BAqJC"}
|
|
@@ -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("./product-category.consts"), exports);
|
|
17
18
|
__exportStar(require("./product-pricing.consts"), exports);
|
|
18
19
|
__exportStar(require("./product-resource.consts"), exports);
|
|
19
20
|
//# 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;AACzC,4DAA0C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/product-pricing/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,4DAA0C"}
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { TimeUnit } from '@bondsports/date-time';
|
|
2
|
+
import { z, ZodNumber } from 'zod';
|
|
3
|
+
import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
|
|
4
|
+
export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
5
|
+
resourceTypes: z.ZodArray<z.ZodNativeEnum<typeof ResourceTypeEnum>, "atleastone">;
|
|
6
|
+
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
allowResourceSelection: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
prioritizedResourceAllocation: z.ZodNullable<z.ZodRecord<z.ZodNativeEnum<typeof ResourceSubTypeEnum>, z.ZodArray<z.ZodNumber, "atleastone">>>;
|
|
9
|
+
bookingDurations: z.ZodEffects<z.ZodObject<{
|
|
10
|
+
minDuration: z.ZodObject<{
|
|
11
|
+
amount: z.ZodNumber;
|
|
12
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
amount?: number;
|
|
15
|
+
unit?: TimeUnit;
|
|
16
|
+
}, {
|
|
17
|
+
amount?: number;
|
|
18
|
+
unit?: TimeUnit;
|
|
19
|
+
}>;
|
|
20
|
+
maxDuration: z.ZodObject<{
|
|
21
|
+
amount: z.ZodNumber;
|
|
22
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
amount?: number;
|
|
25
|
+
unit?: TimeUnit;
|
|
26
|
+
}, {
|
|
27
|
+
amount?: number;
|
|
28
|
+
unit?: TimeUnit;
|
|
29
|
+
}>;
|
|
30
|
+
durationStep: z.ZodObject<{
|
|
31
|
+
amount: z.ZodNumber;
|
|
32
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
amount?: number;
|
|
35
|
+
unit?: TimeUnit;
|
|
36
|
+
}, {
|
|
37
|
+
amount?: number;
|
|
38
|
+
unit?: TimeUnit;
|
|
39
|
+
}>;
|
|
40
|
+
defaultDuration: z.ZodObject<{
|
|
41
|
+
amount: z.ZodNumber;
|
|
42
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
amount?: number;
|
|
45
|
+
unit?: TimeUnit;
|
|
46
|
+
}, {
|
|
47
|
+
amount?: number;
|
|
48
|
+
unit?: TimeUnit;
|
|
49
|
+
}>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
minDuration?: {
|
|
52
|
+
amount?: number;
|
|
53
|
+
unit?: TimeUnit;
|
|
54
|
+
};
|
|
55
|
+
maxDuration?: {
|
|
56
|
+
amount?: number;
|
|
57
|
+
unit?: TimeUnit;
|
|
58
|
+
};
|
|
59
|
+
durationStep?: {
|
|
60
|
+
amount?: number;
|
|
61
|
+
unit?: TimeUnit;
|
|
62
|
+
};
|
|
63
|
+
defaultDuration?: {
|
|
64
|
+
amount?: number;
|
|
65
|
+
unit?: TimeUnit;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
minDuration?: {
|
|
69
|
+
amount?: number;
|
|
70
|
+
unit?: TimeUnit;
|
|
71
|
+
};
|
|
72
|
+
maxDuration?: {
|
|
73
|
+
amount?: number;
|
|
74
|
+
unit?: TimeUnit;
|
|
75
|
+
};
|
|
76
|
+
durationStep?: {
|
|
77
|
+
amount?: number;
|
|
78
|
+
unit?: TimeUnit;
|
|
79
|
+
};
|
|
80
|
+
defaultDuration?: {
|
|
81
|
+
amount?: number;
|
|
82
|
+
unit?: TimeUnit;
|
|
83
|
+
};
|
|
84
|
+
}>, {
|
|
85
|
+
minDuration?: {
|
|
86
|
+
amount?: number;
|
|
87
|
+
unit?: TimeUnit;
|
|
88
|
+
};
|
|
89
|
+
maxDuration?: {
|
|
90
|
+
amount?: number;
|
|
91
|
+
unit?: TimeUnit;
|
|
92
|
+
};
|
|
93
|
+
durationStep?: {
|
|
94
|
+
amount?: number;
|
|
95
|
+
unit?: TimeUnit;
|
|
96
|
+
};
|
|
97
|
+
defaultDuration?: {
|
|
98
|
+
amount?: number;
|
|
99
|
+
unit?: TimeUnit;
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
minDuration?: {
|
|
103
|
+
amount?: number;
|
|
104
|
+
unit?: TimeUnit;
|
|
105
|
+
};
|
|
106
|
+
maxDuration?: {
|
|
107
|
+
amount?: number;
|
|
108
|
+
unit?: TimeUnit;
|
|
109
|
+
};
|
|
110
|
+
durationStep?: {
|
|
111
|
+
amount?: number;
|
|
112
|
+
unit?: TimeUnit;
|
|
113
|
+
};
|
|
114
|
+
defaultDuration?: {
|
|
115
|
+
amount?: number;
|
|
116
|
+
unit?: TimeUnit;
|
|
117
|
+
};
|
|
118
|
+
}>;
|
|
119
|
+
default: z.ZodObject<{
|
|
120
|
+
advanceBookingWindow: z.ZodObject<{
|
|
121
|
+
amount: z.ZodNumber;
|
|
122
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
amount?: number;
|
|
125
|
+
unit?: TimeUnit;
|
|
126
|
+
}, {
|
|
127
|
+
amount?: number;
|
|
128
|
+
unit?: TimeUnit;
|
|
129
|
+
}>;
|
|
130
|
+
minimumBookingNotice: z.ZodObject<{
|
|
131
|
+
amount: z.ZodNumber;
|
|
132
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
amount?: number;
|
|
135
|
+
unit?: TimeUnit;
|
|
136
|
+
}, {
|
|
137
|
+
amount?: number;
|
|
138
|
+
unit?: TimeUnit;
|
|
139
|
+
}>;
|
|
140
|
+
maxBookingHours: z.ZodNullable<z.ZodObject<{
|
|
141
|
+
amount: z.ZodNumber;
|
|
142
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
143
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
144
|
+
amount?: number;
|
|
145
|
+
unit?: TimeUnit;
|
|
146
|
+
}, {
|
|
147
|
+
amount?: number;
|
|
148
|
+
unit?: TimeUnit;
|
|
149
|
+
}>>;
|
|
150
|
+
maxSequentialBookings: z.ZodNullable<z.ZodObject<{
|
|
151
|
+
amount: z.ZodNumber;
|
|
152
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
153
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
154
|
+
amount?: number;
|
|
155
|
+
unit?: TimeUnit;
|
|
156
|
+
}, {
|
|
157
|
+
amount?: number;
|
|
158
|
+
unit?: TimeUnit;
|
|
159
|
+
}>>;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
advanceBookingWindow?: {
|
|
162
|
+
amount?: number;
|
|
163
|
+
unit?: TimeUnit;
|
|
164
|
+
};
|
|
165
|
+
minimumBookingNotice?: {
|
|
166
|
+
amount?: number;
|
|
167
|
+
unit?: TimeUnit;
|
|
168
|
+
};
|
|
169
|
+
maxBookingHours?: {
|
|
170
|
+
amount?: number;
|
|
171
|
+
unit?: TimeUnit;
|
|
172
|
+
};
|
|
173
|
+
maxSequentialBookings?: {
|
|
174
|
+
amount?: number;
|
|
175
|
+
unit?: TimeUnit;
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
advanceBookingWindow?: {
|
|
179
|
+
amount?: number;
|
|
180
|
+
unit?: TimeUnit;
|
|
181
|
+
};
|
|
182
|
+
minimumBookingNotice?: {
|
|
183
|
+
amount?: number;
|
|
184
|
+
unit?: TimeUnit;
|
|
185
|
+
};
|
|
186
|
+
maxBookingHours?: {
|
|
187
|
+
amount?: number;
|
|
188
|
+
unit?: TimeUnit;
|
|
189
|
+
};
|
|
190
|
+
maxSequentialBookings?: {
|
|
191
|
+
amount?: number;
|
|
192
|
+
unit?: TimeUnit;
|
|
193
|
+
};
|
|
194
|
+
}>;
|
|
195
|
+
memberships: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
membershipsIds: z.ZodArray<z.ZodNumber, "atleastone">;
|
|
198
|
+
advanceBookingWindow: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
199
|
+
amount: z.ZodNumber;
|
|
200
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
201
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
202
|
+
amount?: number;
|
|
203
|
+
unit?: TimeUnit;
|
|
204
|
+
}, {
|
|
205
|
+
amount?: number;
|
|
206
|
+
unit?: TimeUnit;
|
|
207
|
+
}>>;
|
|
208
|
+
minimumBookingNotice: z.ZodRecord<z.ZodNumber, z.ZodObject<{
|
|
209
|
+
amount: z.ZodNumber;
|
|
210
|
+
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
211
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
212
|
+
amount?: number;
|
|
213
|
+
unit?: TimeUnit;
|
|
214
|
+
}, {
|
|
215
|
+
amount?: number;
|
|
216
|
+
unit?: TimeUnit;
|
|
217
|
+
}>>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
name?: string;
|
|
220
|
+
membershipsIds?: [number, ...number[]];
|
|
221
|
+
advanceBookingWindow?: Record<number, {
|
|
222
|
+
amount?: number;
|
|
223
|
+
unit?: TimeUnit;
|
|
224
|
+
}>;
|
|
225
|
+
minimumBookingNotice?: Record<number, {
|
|
226
|
+
amount?: number;
|
|
227
|
+
unit?: TimeUnit;
|
|
228
|
+
}>;
|
|
229
|
+
}, {
|
|
230
|
+
name?: string;
|
|
231
|
+
membershipsIds?: [number, ...number[]];
|
|
232
|
+
advanceBookingWindow?: Record<number, {
|
|
233
|
+
amount?: number;
|
|
234
|
+
unit?: TimeUnit;
|
|
235
|
+
}>;
|
|
236
|
+
minimumBookingNotice?: Record<number, {
|
|
237
|
+
amount?: number;
|
|
238
|
+
unit?: TimeUnit;
|
|
239
|
+
}>;
|
|
240
|
+
}>>>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
default?: {
|
|
243
|
+
advanceBookingWindow?: {
|
|
244
|
+
amount?: number;
|
|
245
|
+
unit?: TimeUnit;
|
|
246
|
+
};
|
|
247
|
+
minimumBookingNotice?: {
|
|
248
|
+
amount?: number;
|
|
249
|
+
unit?: TimeUnit;
|
|
250
|
+
};
|
|
251
|
+
maxBookingHours?: {
|
|
252
|
+
amount?: number;
|
|
253
|
+
unit?: TimeUnit;
|
|
254
|
+
};
|
|
255
|
+
maxSequentialBookings?: {
|
|
256
|
+
amount?: number;
|
|
257
|
+
unit?: TimeUnit;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
261
|
+
approvalRequired?: boolean;
|
|
262
|
+
allowResourceSelection?: boolean;
|
|
263
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
264
|
+
bookingDurations?: {
|
|
265
|
+
minDuration?: {
|
|
266
|
+
amount?: number;
|
|
267
|
+
unit?: TimeUnit;
|
|
268
|
+
};
|
|
269
|
+
maxDuration?: {
|
|
270
|
+
amount?: number;
|
|
271
|
+
unit?: TimeUnit;
|
|
272
|
+
};
|
|
273
|
+
durationStep?: {
|
|
274
|
+
amount?: number;
|
|
275
|
+
unit?: TimeUnit;
|
|
276
|
+
};
|
|
277
|
+
defaultDuration?: {
|
|
278
|
+
amount?: number;
|
|
279
|
+
unit?: TimeUnit;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
memberships?: Record<string, {
|
|
283
|
+
name?: string;
|
|
284
|
+
membershipsIds?: [number, ...number[]];
|
|
285
|
+
advanceBookingWindow?: Record<number, {
|
|
286
|
+
amount?: number;
|
|
287
|
+
unit?: TimeUnit;
|
|
288
|
+
}>;
|
|
289
|
+
minimumBookingNotice?: Record<number, {
|
|
290
|
+
amount?: number;
|
|
291
|
+
unit?: TimeUnit;
|
|
292
|
+
}>;
|
|
293
|
+
}>;
|
|
294
|
+
}, {
|
|
295
|
+
default?: {
|
|
296
|
+
advanceBookingWindow?: {
|
|
297
|
+
amount?: number;
|
|
298
|
+
unit?: TimeUnit;
|
|
299
|
+
};
|
|
300
|
+
minimumBookingNotice?: {
|
|
301
|
+
amount?: number;
|
|
302
|
+
unit?: TimeUnit;
|
|
303
|
+
};
|
|
304
|
+
maxBookingHours?: {
|
|
305
|
+
amount?: number;
|
|
306
|
+
unit?: TimeUnit;
|
|
307
|
+
};
|
|
308
|
+
maxSequentialBookings?: {
|
|
309
|
+
amount?: number;
|
|
310
|
+
unit?: TimeUnit;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
314
|
+
approvalRequired?: boolean;
|
|
315
|
+
allowResourceSelection?: boolean;
|
|
316
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
317
|
+
bookingDurations?: {
|
|
318
|
+
minDuration?: {
|
|
319
|
+
amount?: number;
|
|
320
|
+
unit?: TimeUnit;
|
|
321
|
+
};
|
|
322
|
+
maxDuration?: {
|
|
323
|
+
amount?: number;
|
|
324
|
+
unit?: TimeUnit;
|
|
325
|
+
};
|
|
326
|
+
durationStep?: {
|
|
327
|
+
amount?: number;
|
|
328
|
+
unit?: TimeUnit;
|
|
329
|
+
};
|
|
330
|
+
defaultDuration?: {
|
|
331
|
+
amount?: number;
|
|
332
|
+
unit?: TimeUnit;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
memberships?: Record<string, {
|
|
336
|
+
name?: string;
|
|
337
|
+
membershipsIds?: [number, ...number[]];
|
|
338
|
+
advanceBookingWindow?: Record<number, {
|
|
339
|
+
amount?: number;
|
|
340
|
+
unit?: TimeUnit;
|
|
341
|
+
}>;
|
|
342
|
+
minimumBookingNotice?: Record<number, {
|
|
343
|
+
amount?: number;
|
|
344
|
+
unit?: TimeUnit;
|
|
345
|
+
}>;
|
|
346
|
+
}>;
|
|
347
|
+
}>, {
|
|
348
|
+
default?: {
|
|
349
|
+
advanceBookingWindow?: {
|
|
350
|
+
amount?: number;
|
|
351
|
+
unit?: TimeUnit;
|
|
352
|
+
};
|
|
353
|
+
minimumBookingNotice?: {
|
|
354
|
+
amount?: number;
|
|
355
|
+
unit?: TimeUnit;
|
|
356
|
+
};
|
|
357
|
+
maxBookingHours?: {
|
|
358
|
+
amount?: number;
|
|
359
|
+
unit?: TimeUnit;
|
|
360
|
+
};
|
|
361
|
+
maxSequentialBookings?: {
|
|
362
|
+
amount?: number;
|
|
363
|
+
unit?: TimeUnit;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
367
|
+
approvalRequired?: boolean;
|
|
368
|
+
allowResourceSelection?: boolean;
|
|
369
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
370
|
+
bookingDurations?: {
|
|
371
|
+
minDuration?: {
|
|
372
|
+
amount?: number;
|
|
373
|
+
unit?: TimeUnit;
|
|
374
|
+
};
|
|
375
|
+
maxDuration?: {
|
|
376
|
+
amount?: number;
|
|
377
|
+
unit?: TimeUnit;
|
|
378
|
+
};
|
|
379
|
+
durationStep?: {
|
|
380
|
+
amount?: number;
|
|
381
|
+
unit?: TimeUnit;
|
|
382
|
+
};
|
|
383
|
+
defaultDuration?: {
|
|
384
|
+
amount?: number;
|
|
385
|
+
unit?: TimeUnit;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
memberships?: Record<string, {
|
|
389
|
+
name?: string;
|
|
390
|
+
membershipsIds?: [number, ...number[]];
|
|
391
|
+
advanceBookingWindow?: Record<number, {
|
|
392
|
+
amount?: number;
|
|
393
|
+
unit?: TimeUnit;
|
|
394
|
+
}>;
|
|
395
|
+
minimumBookingNotice?: Record<number, {
|
|
396
|
+
amount?: number;
|
|
397
|
+
unit?: TimeUnit;
|
|
398
|
+
}>;
|
|
399
|
+
}>;
|
|
400
|
+
}, {
|
|
401
|
+
default?: {
|
|
402
|
+
advanceBookingWindow?: {
|
|
403
|
+
amount?: number;
|
|
404
|
+
unit?: TimeUnit;
|
|
405
|
+
};
|
|
406
|
+
minimumBookingNotice?: {
|
|
407
|
+
amount?: number;
|
|
408
|
+
unit?: TimeUnit;
|
|
409
|
+
};
|
|
410
|
+
maxBookingHours?: {
|
|
411
|
+
amount?: number;
|
|
412
|
+
unit?: TimeUnit;
|
|
413
|
+
};
|
|
414
|
+
maxSequentialBookings?: {
|
|
415
|
+
amount?: number;
|
|
416
|
+
unit?: TimeUnit;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
420
|
+
approvalRequired?: boolean;
|
|
421
|
+
allowResourceSelection?: boolean;
|
|
422
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
423
|
+
bookingDurations?: {
|
|
424
|
+
minDuration?: {
|
|
425
|
+
amount?: number;
|
|
426
|
+
unit?: TimeUnit;
|
|
427
|
+
};
|
|
428
|
+
maxDuration?: {
|
|
429
|
+
amount?: number;
|
|
430
|
+
unit?: TimeUnit;
|
|
431
|
+
};
|
|
432
|
+
durationStep?: {
|
|
433
|
+
amount?: number;
|
|
434
|
+
unit?: TimeUnit;
|
|
435
|
+
};
|
|
436
|
+
defaultDuration?: {
|
|
437
|
+
amount?: number;
|
|
438
|
+
unit?: TimeUnit;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
memberships?: Record<string, {
|
|
442
|
+
name?: string;
|
|
443
|
+
membershipsIds?: [number, ...number[]];
|
|
444
|
+
advanceBookingWindow?: Record<number, {
|
|
445
|
+
amount?: number;
|
|
446
|
+
unit?: TimeUnit;
|
|
447
|
+
}>;
|
|
448
|
+
minimumBookingNotice?: Record<number, {
|
|
449
|
+
amount?: number;
|
|
450
|
+
unit?: TimeUnit;
|
|
451
|
+
}>;
|
|
452
|
+
}>;
|
|
453
|
+
}>;
|
|
454
|
+
export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
|
|
455
|
+
export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESERVATION_DEFAULT_SETTINGS = exports.RESERVATION_SETTINGS_SCHEMA = void 0;
|
|
4
|
+
const date_time_1 = require("@bondsports/date-time");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const enums_service_1 = require("../../../services/enums.service");
|
|
7
|
+
const FIFTEEN_MINUTES = 15;
|
|
8
|
+
const INTEGER_SCHEMA = zod_1.z.number().int().min(1);
|
|
9
|
+
const DURATION_SCHEMA = zod_1.z.object({
|
|
10
|
+
amount: INTEGER_SCHEMA,
|
|
11
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
12
|
+
});
|
|
13
|
+
exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
resourceTypes: zod_1.z.array(zod_1.z.nativeEnum(enums_service_1.ResourceTypeEnum)).nonempty(),
|
|
16
|
+
approvalRequired: zod_1.z.boolean().default(true),
|
|
17
|
+
allowResourceSelection: zod_1.z.boolean().default(false),
|
|
18
|
+
prioritizedResourceAllocation: zod_1.z
|
|
19
|
+
.record(zod_1.z.nativeEnum(enums_service_1.ResourceSubTypeEnum), zod_1.z.array(zod_1.z.number().int().min(0)).nonempty())
|
|
20
|
+
.nullable(),
|
|
21
|
+
bookingDurations: zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
minDuration: zod_1.z.object({
|
|
24
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
25
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
26
|
+
}),
|
|
27
|
+
maxDuration: zod_1.z.object({
|
|
28
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
29
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
30
|
+
}),
|
|
31
|
+
durationStep: zod_1.z.object({
|
|
32
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
33
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
34
|
+
}),
|
|
35
|
+
defaultDuration: zod_1.z.object({
|
|
36
|
+
amount: INTEGER_SCHEMA.min(FIFTEEN_MINUTES),
|
|
37
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
38
|
+
}),
|
|
39
|
+
})
|
|
40
|
+
.superRefine(({ defaultDuration, durationStep, maxDuration, minDuration }, ctx) => {
|
|
41
|
+
const max = (0, date_time_1.getDuration)(maxDuration.amount, maxDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
42
|
+
const min = (0, date_time_1.getDuration)(minDuration.amount, minDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
43
|
+
const defaultDurationMinutes = (0, date_time_1.getDuration)(defaultDuration.amount, defaultDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
44
|
+
const durationStepMinutes = (0, date_time_1.getDuration)(durationStep.amount, durationStep.unit, date_time_1.TimeUnit.MINUTE);
|
|
45
|
+
if ((defaultDurationMinutes !== min || defaultDurationMinutes !== max) &&
|
|
46
|
+
defaultDurationMinutes % durationStepMinutes !== 0) {
|
|
47
|
+
const unitLabel = durationStep.amount === 1 ? durationStep.unit : `${durationStep.unit}s`;
|
|
48
|
+
ctx.addIssue({
|
|
49
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
50
|
+
message: `Default duration must be in increments of ${durationStep.amount} ${unitLabel}`,
|
|
51
|
+
path: ['defaultDuration'],
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
default: zod_1.z.object({
|
|
56
|
+
advanceBookingWindow: zod_1.z.object({
|
|
57
|
+
amount: INTEGER_SCHEMA,
|
|
58
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
59
|
+
}),
|
|
60
|
+
minimumBookingNotice: zod_1.z.object({
|
|
61
|
+
amount: INTEGER_SCHEMA,
|
|
62
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
63
|
+
}),
|
|
64
|
+
maxBookingHours: DURATION_SCHEMA.nullable(),
|
|
65
|
+
maxSequentialBookings: DURATION_SCHEMA.nullable(),
|
|
66
|
+
}),
|
|
67
|
+
memberships: zod_1.z
|
|
68
|
+
.record(zod_1.z.string().uuid(), zod_1.z.object({
|
|
69
|
+
name: zod_1.z.string(),
|
|
70
|
+
membershipsIds: zod_1.z.array(zod_1.z.number().int()).nonempty(),
|
|
71
|
+
advanceBookingWindow: zod_1.z.record(INTEGER_SCHEMA, DURATION_SCHEMA),
|
|
72
|
+
minimumBookingNotice: zod_1.z.record(INTEGER_SCHEMA, DURATION_SCHEMA),
|
|
73
|
+
}))
|
|
74
|
+
.nullable(),
|
|
75
|
+
})
|
|
76
|
+
.superRefine((settings, ctx) => {
|
|
77
|
+
const membershipIds = Object.values(settings.memberships).flatMap(setting => setting.membershipsIds);
|
|
78
|
+
const uniqueMembershipIds = [...new Set(membershipIds)];
|
|
79
|
+
});
|
|
80
|
+
exports.RESERVATION_DEFAULT_SETTINGS = {
|
|
81
|
+
default: {
|
|
82
|
+
advanceBookingWindow: {
|
|
83
|
+
amount: 14,
|
|
84
|
+
unit: date_time_1.TimeUnit.DAY,
|
|
85
|
+
},
|
|
86
|
+
minimumBookingNotice: {
|
|
87
|
+
amount: 1,
|
|
88
|
+
unit: date_time_1.TimeUnit.DAY,
|
|
89
|
+
},
|
|
90
|
+
maxBookingHours: null,
|
|
91
|
+
maxSequentialBookings: null,
|
|
92
|
+
},
|
|
93
|
+
bookingDurations: {
|
|
94
|
+
minDuration: {
|
|
95
|
+
amount: 30,
|
|
96
|
+
unit: date_time_1.TimeUnit.MINUTE,
|
|
97
|
+
},
|
|
98
|
+
maxDuration: {
|
|
99
|
+
amount: 3,
|
|
100
|
+
unit: date_time_1.TimeUnit.HOUR,
|
|
101
|
+
},
|
|
102
|
+
durationStep: {
|
|
103
|
+
amount: 30,
|
|
104
|
+
unit: date_time_1.TimeUnit.MINUTE,
|
|
105
|
+
},
|
|
106
|
+
defaultDuration: {
|
|
107
|
+
amount: 1,
|
|
108
|
+
unit: date_time_1.TimeUnit.HOUR,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
memberships: null,
|
|
112
|
+
approvalRequired: true,
|
|
113
|
+
allowResourceSelection: true,
|
|
114
|
+
prioritizedResourceAllocation: null,
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=product-category.consts.js.map
|