@bondsports/types 2.4.78-squad-b → 2.4.79-a-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/cart/types/interfaces/cart.interfaces.d.ts +4 -0
- package/dist/types/folders/dto/folder-restrictions.dto.d.ts +0 -1
- package/dist/types/folders/dto/folder-restrictions.dto.js.map +1 -1
- package/dist/types/invites/entities/invites.entity.js +0 -1
- package/dist/types/invites/entities/invites.entity.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +4 -0
- package/dist/types/membership/dto/membership.dto.d.ts +0 -3
- package/dist/types/membership/dto/membership.dto.js +1 -4
- package/dist/types/membership/dto/membership.dto.js.map +1 -1
- package/dist/types/online-booking/types/classes/portals.classes.js.map +1 -1
- package/dist/types/online-booking/types/dto/portals.dto.js.map +1 -1
- package/dist/types/online-booking/types/dto/schedule.dto.js.map +1 -1
- package/dist/types/online-booking/types/interfaces/schedule.interfaces.d.ts +1 -0
- package/dist/types/organization/dto/organization-backoffice.dto.js.map +1 -1
- package/dist/types/organization/dto/organization-public.dto.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +1 -4
- package/dist/types/payment/dto/payment.dto.js +1 -4
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +0 -5
- package/dist/types/product-pricing/dto/product.dto.d.ts +1 -0
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/consts/product-category.consts.d.ts +212 -18
- package/dist/types/product-pricing/types/consts/product-category.consts.js +54 -19
- package/dist/types/product-pricing/types/consts/product-category.consts.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.d.ts +7 -1
- package/dist/types/programs/dto/program-public.dto.d.ts +0 -2
- package/dist/types/programs/dto/program-public.dto.js.map +1 -1
- package/dist/types/programs/dto/program.dto.d.ts +1 -5
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs/entities/Program.d.ts +0 -2
- package/dist/types/programs/entities/Program.js.map +1 -1
- package/dist/types/programs/types/interfaces/index.d.ts +0 -1
- package/dist/types/programs/types/interfaces/index.js +0 -1
- package/dist/types/programs/types/interfaces/index.js.map +1 -1
- package/dist/types/purchase/dto/purchase.dto.d.ts +1 -0
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +5 -0
- package/dist/types/questionnaires/dto/answer-title-export.query.dto.d.ts +4 -0
- package/dist/types/questionnaires/dto/answer-title-export.query.dto.js +7 -0
- package/dist/types/questionnaires/dto/answer-title-export.query.dto.js.map +1 -0
- package/dist/types/questionnaires/dto/index.d.ts +1 -0
- package/dist/types/questionnaires/dto/index.js +1 -0
- package/dist/types/questionnaires/dto/index.js.map +1 -1
- package/dist/types/questionnaires/dto/questionnaires.params.dto.d.ts +3 -0
- package/dist/types/questionnaires/dto/questionnaires.params.dto.js +4 -1
- package/dist/types/questionnaires/dto/questionnaires.params.dto.js.map +1 -1
- package/dist/types/questionnaires/types/answer-title-export-format.enum.d.ts +3 -0
- package/dist/types/questionnaires/types/answer-title-export-format.enum.js +8 -0
- package/dist/types/questionnaires/types/answer-title-export-format.enum.js.map +1 -0
- package/dist/types/questionnaires/types/index.d.ts +1 -0
- package/dist/types/questionnaires/types/index.js +1 -0
- package/dist/types/questionnaires/types/index.js.map +1 -1
- package/dist/types/react/WaiverTemplate/index.d.ts +1 -0
- package/dist/types/react/WaiverTemplate/index.js +18 -0
- package/dist/types/react/WaiverTemplate/index.js.map +1 -0
- package/dist/types/react/WaiverTemplate/waiver.types.d.ts +26 -0
- package/dist/types/{programs/types/interfaces/program-scope-policy.interfaces.js → react/WaiverTemplate/waiver.types.js} +1 -1
- package/dist/types/react/WaiverTemplate/waiver.types.js.map +1 -0
- package/dist/types/react/index.d.ts +1 -0
- package/dist/types/react/index.js +1 -0
- package/dist/types/react/index.js.map +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +16 -0
- package/dist/types/reservations/dto/addon.dto.js +9 -1
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +20 -2
- package/dist/types/reservations/dto/reservation.dto.js +13 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/reservation.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +5 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +9 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/enums/reservation.enums.d.ts +11 -0
- package/dist/types/reservations/types/enums/reservation.enums.js +14 -1
- package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +2 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/reservation.types.d.ts +1 -0
- package/dist/types/services/enums.service.d.ts +4 -0
- package/dist/types/services/enums.service.js +4 -0
- package/dist/types/services/enums.service.js.map +1 -1
- package/package.json +2 -2
- package/dist/types/programs/types/interfaces/program-scope-policy.interfaces.d.ts +0 -22
- package/dist/types/programs/types/interfaces/program-scope-policy.interfaces.js.map +0 -1
|
@@ -77,6 +77,10 @@ export interface IValidateCartResult {
|
|
|
77
77
|
[key: number]: Product;
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
export interface IUnresolvedFacilityAttribution {
|
|
81
|
+
productId: number;
|
|
82
|
+
facilityIds: number[];
|
|
83
|
+
}
|
|
80
84
|
export interface IUpdateCartOptions {
|
|
81
85
|
updateActiveTime?: boolean;
|
|
82
86
|
updateCache?: boolean;
|
|
@@ -93,7 +93,6 @@ export declare class FolderRestrictionsConsumerValidationRequestDto {
|
|
|
93
93
|
action: FolderRestrictionActionEnum;
|
|
94
94
|
participantSubtype?: ProductSubTypesEnum;
|
|
95
95
|
parentFolderIds: number[];
|
|
96
|
-
purchaseContext?: boolean;
|
|
97
96
|
}
|
|
98
97
|
/**
|
|
99
98
|
* DTO for individual user validation result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder-restrictions.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder-restrictions.dto.ts"],"names":[],"mappings":";;;AAaA,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAC3C,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,MAAa,mCAAmC;CAkB/C;AAlBD,kFAkBC;AAED;;GAEG;AACH,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED;;GAEG;AACH,MAAa,mCAAmC;CAQ/C;AARD,kFAQC;AAED;;GAEG;AACH,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAED,MAAa,4BAA4B;CA0BxC;AA1BD,oEA0BC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;;;;GAKG;AACH,MAAa,sCAAsC;CAQlD;AARD,wFAQC;AAED;;;;;GAKG;AACH,MAAa,8CAA8C;
|
|
1
|
+
{"version":3,"file":"folder-restrictions.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder-restrictions.dto.ts"],"names":[],"mappings":";;;AAaA,MAAM,2BAA2B,GAAG,EAAE,CAAC;AACvC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAC3C,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,MAAa,mCAAmC;CAkB/C;AAlBD,kFAkBC;AAED;;GAEG;AACH,MAAa,6BAA6B;CAMzC;AAND,sEAMC;AAED;;GAEG;AACH,MAAa,mCAAmC;CAQ/C;AARD,kFAQC;AAED;;GAEG;AACH,MAAa,mCAAmC;CAM/C;AAND,kFAMC;AAED,MAAa,4BAA4B;CA0BxC;AA1BD,oEA0BC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED;;;;;GAKG;AACH,MAAa,sCAAsC;CAQlD;AARD,wFAQC;AAED;;;;;GAKG;AACH,MAAa,8CAA8C;CAM1D;AAND,wGAMC;AAED;;GAEG;AACH,MAAa,yCAAyC;CAQrD;AARD,8FAQC;AAED;;;;;GAKG;AACH,MAAa,uCAAuC;CAYnD;AAZD,0FAYC;AAED;;;;;GAKG;AACH,MAAa,iCAAiC;CAM7C;AAND,8EAMC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Invites = void 0;
|
|
4
4
|
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
|
5
|
-
// NOTE: organizationId must be integer to match Organization and project standards, and to ensure correct FK in migrations
|
|
6
5
|
class Invites extends BondBaseEntity_1.BondBaseEntity {
|
|
7
6
|
}
|
|
8
7
|
exports.Invites = Invites;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invites.entity.js","sourceRoot":"","sources":["../../../../src/types/invites/entities/invites.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAE7D,
|
|
1
|
+
{"version":3,"file":"invites.entity.js","sourceRoot":"","sources":["../../../../src/types/invites/entities/invites.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAE7D,MAAa,OAAQ,SAAQ,+BAAc;CAU1C;AAVD,0BAUC"}
|
|
@@ -69,9 +69,6 @@ export declare class FindMembershipByFiltersDto extends PaginationQuery {
|
|
|
69
69
|
export declare class FindMembershipsByProductSubTypesDto {
|
|
70
70
|
productSubTypes?: ProductSubTypesEnum[];
|
|
71
71
|
}
|
|
72
|
-
export declare class FindMembershipsByUserIdDto {
|
|
73
|
-
userId: number;
|
|
74
|
-
}
|
|
75
72
|
export declare class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
|
|
76
73
|
startDate: string;
|
|
77
74
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddFamilyMemberToMembershipDto = exports.MembershipMemberImportResponseDto = exports.MembershipMemberDto = exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.UserMembershipsStatuses = exports.UserMembershipsStatus = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.
|
|
3
|
+
exports.AddFamilyMemberToMembershipDto = exports.MembershipMemberImportResponseDto = exports.MembershipMemberDto = exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.UserMembershipsStatuses = exports.UserMembershipsStatus = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByProductSubTypesDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const enums_1 = require("../../employees/types/enums");
|
|
6
6
|
const import_dto_1 = require("../../import/dto/import.dto");
|
|
@@ -32,9 +32,6 @@ exports.FindMembershipByFiltersDto = FindMembershipByFiltersDto;
|
|
|
32
32
|
class FindMembershipsByProductSubTypesDto {
|
|
33
33
|
}
|
|
34
34
|
exports.FindMembershipsByProductSubTypesDto = FindMembershipsByProductSubTypesDto;
|
|
35
|
-
class FindMembershipsByUserIdDto {
|
|
36
|
-
}
|
|
37
|
-
exports.FindMembershipsByUserIdDto = FindMembershipsByUserIdDto;
|
|
38
35
|
class SetMembersStartDateByOrganization extends FindMembershipsByOrganizationIdDto {
|
|
39
36
|
}
|
|
40
37
|
exports.SetMembersStartDateByOrganization = SetMembersStartDateByOrganization;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/membership.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AACtE,uDAAmE;AAGnE,4DAAgE;AAGhE,gEAUsC;AACtC,sDAAoD;AAGpD,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;IAA/D;;QAuBC,YAAO,GAA0B,4BAAoB,CAAC,IAAI,CAAC;QAE3D,UAAK,GAAiB,2BAAW,CAAC,IAAI,CAAC;IAaxC,CAAC;CAAA;AAtCD,gEAsCC;AAED,MAAa,mCAAmC;CAE/C;AAFD,kFAEC;AAED,MAAa,
|
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../../src/types/membership/dto/membership.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAsE;AACtE,uDAAmE;AAGnE,4DAAgE;AAGhE,gEAUsC;AACtC,sDAAoD;AAGpD,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,kCAAkC;CAE9C;AAFD,gFAEC;AAED,MAAa,0BAA2B,SAAQ,6BAAe;IAA/D;;QAuBC,YAAO,GAA0B,4BAAoB,CAAC,IAAI,CAAC;QAE3D,UAAK,GAAiB,2BAAW,CAAC,IAAI,CAAC;IAaxC,CAAC;CAAA;AAtCD,gEAsCC;AAED,MAAa,mCAAmC;CAE/C;AAFD,kFAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,oBAAS;CAEnD;AAFD,sDAEC;AAED,MAAa,uBAAwB,SAAQ,oBAAS;CAErD;AAFD,0DAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAIzD;AAJD,sDAIC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAkBpD;AAlBD,kDAkBC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAa,2BAA4B,SAAQ,8BAAsC;CAAG;AAA1F,kEAA0F;AAE1F,MAAa,mBAAmB;CA0D/B;AA1DD,kDA0DC;AAED,MAAa,iCAAkC,SAAQ,8BAAsC;CAAG;AAAhG,8EAAgG;AAEhG,MAAa,8BAA8B;CAI1C;AAJD,wEAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portals.classes.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/portals.classes.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;
|
|
1
|
+
{"version":3,"file":"portals.classes.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/classes/portals.classes.ts"],"names":[],"mappings":";;;AAGA,6DAA0D;AAK1D,MAAa,0BAA0B;CAoBtC;AApBD,gEAoBC;AAED,MAAa,MAAO,SAAQ,eAAM;CAMjC;AAND,wBAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/dto/portals.dto.ts"],"names":[],"mappings":";;;AAEA,0DAAyE;AAEzE,iFAAiF;
|
|
1
|
+
{"version":3,"file":"portals.dto.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/dto/portals.dto.ts"],"names":[],"mappings":";;;AAEA,0DAAyE;AAEzE,iFAAiF;AAYjF,MAAa,6BAA6B;CAoBzC;AApBD,sEAoBC;AAED,MAAa,4BAA4B;CAMxC;AAND,oEAMC;AAED,MAAa,4BAA6B,SAAQ,4BAA4B;CAE7E;AAFD,oEAEC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,uCAAwC,SAAQ,6BAAe;CAkB3E;AAlBD,0FAkBC;AAED,MAAa,sBAAuB,SAAQ,0BAAY;CAQvD;AARD,wDAQC;AAED,MAAa,8BAA+B,SAAQ,sCAAmB;CAEtE;AAFD,wEAEC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,sBAAuB,SAAQ,yBAAyB;CAEpE;AAFD,wDAEC;AAED,MAAa,qBAAqB;CAEjC;AAFD,sDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule.dto.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/dto/schedule.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schedule.dto.js","sourceRoot":"","sources":["../../../../../src/types/online-booking/types/dto/schedule.dto.ts"],"names":[],"mappings":";;;AAYA,MAAM,2BAA2B;CAYhC;AAED,MAAa,kCACZ,SAAQ,2BAA2B;CAInC;AALD,gFAKC;AAED,MAAa,0BAA2B,SAAQ,2BAA2B;CAI1E;AAJD,gEAIC;AAED,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,8BAA8B;CAE1C;AAFD,wEAEC;AAED,MAAa,kBAAmB,SAAQ,8BAA8B;CAErE;AAFD,gDAEC;AAED,MAAa,0BAA2B,SAAQ,8BAA8B;CAE7E;AAFD,gEAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-backoffice.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization-backoffice.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"organization-backoffice.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization-backoffice.dto.ts"],"names":[],"mappings":";;;AAGA,uEAAkE;AAElE,MAAa,yBAA0B,SAAQ,+CAAqB;CAYnE;AAZD,8DAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-public.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization-public.dto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"organization-public.dto.js","sourceRoot":"","sources":["../../../../src/types/organization/dto/organization-public.dto.ts"],"names":[],"mappings":";;;AAQA,MAAa,qBAAqB;CAkCjC;AAlCD,sDAkCC"}
|
|
@@ -12,21 +12,18 @@ import { Reason } from '../../organization/entities/Reason';
|
|
|
12
12
|
import { PurchaseProductDto } from '../../purchase/dto/purchase.dto';
|
|
13
13
|
import { IPartialPayment } from '../../reservations/types/interfaces/reservation.interfaces';
|
|
14
14
|
import { CurrencyEnum, MonthsEnum, OrderByEnum, PaymentSettingStatusEnum, PlatformsEnum, ProductTypesEnum, ResourceNameTypeEnum } from '../../services/enums.service';
|
|
15
|
+
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
15
16
|
import { Discount } from '../entities/Discount';
|
|
16
17
|
import { FutureInstallment } from '../entities/FutureInstallment';
|
|
17
18
|
import { PaymentNote } from '../entities/PaymentNote';
|
|
18
19
|
import { LinkedAccountStatus } from '../types/enums/linked-account.enums';
|
|
19
20
|
import { FuturePaymentStatusEnum, PaymentFilterByEnum, PaymentMethodTypeEnum, PaymentStatusEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
|
20
|
-
import { SimpleUserDto } from '../../user/dto/user.dto';
|
|
21
21
|
export declare class CustomerIdDto {
|
|
22
22
|
customerId: number;
|
|
23
23
|
}
|
|
24
24
|
export declare class PaymentIdDto {
|
|
25
25
|
paymentId: number;
|
|
26
26
|
}
|
|
27
|
-
export declare class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
28
|
-
customerId: number;
|
|
29
|
-
}
|
|
30
27
|
export declare class GetPaymentDto extends PaymentIdDto {
|
|
31
28
|
userId: number;
|
|
32
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.PaymentSettingsDto = exports.SimplePaymentDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.GetPaymentMethodsOfUserDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.SendPassPurchaseReceiptDto = exports.PaymentDataDto = exports.SetupIntentDto = exports.PaymentIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.GetPaymentByCustomerDeprecatedDto = exports.GetPaymentByUserDto = exports.ByPaymentDto = exports.GetPaymentDto = exports.
|
|
3
|
+
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.PaymentSettingsDto = exports.SimplePaymentDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.GetPaymentMethodsOfUserDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.SendPassPurchaseReceiptDto = exports.PaymentDataDto = exports.SetupIntentDto = exports.PaymentIntentDto = exports.StationsDto = exports.FindPayments = exports.ByPaymentFilter = exports.PaymentViaInvoiceHashDto = exports.GetPaymentsQueryDto = exports.GetInvoicesQueryDto = exports.InvoiceIdAndUserIdDto = exports.ByInvoiceAndCustomerDto = exports.ByInvoiceDto = exports.InvoiceIdDto = exports.GetPaymentByCustomerDeprecatedDto = exports.GetPaymentByUserDto = exports.ByPaymentDto = exports.GetPaymentDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const userPaymentMethod_dto_1 = require("../../dto/userPaymentMethod.dto");
|
|
6
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
@@ -10,9 +10,6 @@ exports.CustomerIdDto = CustomerIdDto;
|
|
|
10
10
|
class PaymentIdDto {
|
|
11
11
|
}
|
|
12
12
|
exports.PaymentIdDto = PaymentIdDto;
|
|
13
|
-
class ByPaymentAndCustomerDto extends PaymentIdDto {
|
|
14
|
-
}
|
|
15
|
-
exports.ByPaymentAndCustomerDto = ByPaymentAndCustomerDto;
|
|
16
13
|
class GetPaymentDto extends PaymentIdDto {
|
|
17
14
|
}
|
|
18
15
|
exports.GetPaymentDto = GetPaymentDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+D;AAC/D,2EAAuG;AAOvG,8EAAyG;AA0BzG,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,
|
|
1
|
+
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+D;AAC/D,2EAAuG;AAOvG,8EAAyG;AA0BzG,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,iCAAkC,SAAQ,YAAY;CAElE;AAFD,8EAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,YAAa,SAAQ,sCAAmB;CAEpD;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAEtD;AAFD,sDAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,eAAgB,SAAQ,6BAAe;CAoBnD;AApBD,0CAoBC;AAED,MAAa,YAAa,SAAQ,eAAe;CAQhD;AARD,oCAQC;AAED,MAAa,WAAW;CAMvB;AAND,kCAMC;AAED,MAAa,gBAAgB;CAkB5B;AAlBD,4CAkBC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,cAAc;CAI1B;AAJD,wCAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,kBAAkB;CAM9B;AAND,gDAMC;AAED,MAAa,eAAgB,SAAQ,YAAY;CAQhD;AARD,0CAQC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAqB,SAAQ,aAAa;CAEtD;AAFD,oDAEC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,qBAAsB,SAAQ,YAAY;CAMtD;AAND,sDAMC;AAED,MAAa,0BAA2B,SAAQ,4CAAyB;CAIxE;AAJD,gEAIC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,2CAA2C;AAC3C,MAAa,UAAW,SAAQ,kDAA0B;CA0FzD;AA1FD,gCA0FC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAgB1C;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAED,MAAa,sBAAsB;CAYlC;AAZD,wDAYC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -42,11 +42,6 @@ export declare class PaymentMethodOption {
|
|
|
42
42
|
fee?: FeeDto;
|
|
43
43
|
options?: Stripe.PaymentMethod[];
|
|
44
44
|
}
|
|
45
|
-
export interface GetExtendedInvoiceDeprecated extends GetExtendedInvoice {
|
|
46
|
-
invoiceId?: number;
|
|
47
|
-
requestingUserId?: number;
|
|
48
|
-
getReservations?: boolean;
|
|
49
|
-
}
|
|
50
45
|
export interface GetExtendedInvoice {
|
|
51
46
|
organizationId?: number;
|
|
52
47
|
userId?: number;
|
|
@@ -133,6 +133,7 @@ export declare class SimpleProductDto extends IdAndNameDto {
|
|
|
133
133
|
productType?: ProductTypesEnum;
|
|
134
134
|
productSubType?: ProductSubTypesEnum;
|
|
135
135
|
productCategoryName?: string;
|
|
136
|
+
mainMedia?: MediaDto;
|
|
136
137
|
resource?: ProductResourceDto;
|
|
137
138
|
productPaymentPlans?: PaymentPlanDto[];
|
|
138
139
|
duration?: DurationDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAmF;AAQnF,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,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;
|
|
1
|
+
{"version":3,"file":"product.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAmF;AAQnF,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,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,cAAc;CAgH1B;AAhHD,wCAgHC;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"}
|
|
@@ -1,46 +1,71 @@
|
|
|
1
1
|
import { TimeUnit } from '@bondsports/date-time';
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import { z, ZodNumber } from 'zod';
|
|
3
3
|
import { ResourceSubTypeEnum, ResourceTypeEnum } from '../../../services/enums.service';
|
|
4
|
-
declare const
|
|
4
|
+
export declare const SLOT_ALLOWED_START_TIMES: number[];
|
|
5
|
+
export declare const RESERVATION_SETTINGS_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
5
6
|
resourceTypes: z.ZodArray<z.ZodNativeEnum<typeof ResourceTypeEnum>, "atleastone">;
|
|
6
7
|
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
allowResourceSelection: z.ZodDefault<z.ZodBoolean>;
|
|
8
9
|
prioritizedResourceAllocation: z.ZodNullable<z.ZodRecord<z.ZodNativeEnum<typeof ResourceSubTypeEnum>, z.ZodArray<z.ZodNumber, "atleastone">>>;
|
|
9
|
-
bookingDurations: z.ZodObject<{
|
|
10
|
-
minDuration: z.ZodObject<{
|
|
10
|
+
bookingDurations: z.ZodEffects<z.ZodObject<{
|
|
11
|
+
minDuration: z.ZodEffects<z.ZodObject<{
|
|
11
12
|
amount: z.ZodNumber;
|
|
12
13
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
13
|
-
},
|
|
14
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
15
|
+
amount?: number;
|
|
16
|
+
unit?: TimeUnit;
|
|
17
|
+
}, {
|
|
18
|
+
amount?: number;
|
|
19
|
+
unit?: TimeUnit;
|
|
20
|
+
}>, {
|
|
14
21
|
amount?: number;
|
|
15
22
|
unit?: TimeUnit;
|
|
16
23
|
}, {
|
|
17
24
|
amount?: number;
|
|
18
25
|
unit?: TimeUnit;
|
|
19
26
|
}>;
|
|
20
|
-
maxDuration: z.ZodObject<{
|
|
27
|
+
maxDuration: z.ZodEffects<z.ZodObject<{
|
|
21
28
|
amount: z.ZodNumber;
|
|
22
29
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
23
|
-
},
|
|
30
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
31
|
+
amount?: number;
|
|
32
|
+
unit?: TimeUnit;
|
|
33
|
+
}, {
|
|
34
|
+
amount?: number;
|
|
35
|
+
unit?: TimeUnit;
|
|
36
|
+
}>, {
|
|
24
37
|
amount?: number;
|
|
25
38
|
unit?: TimeUnit;
|
|
26
39
|
}, {
|
|
27
40
|
amount?: number;
|
|
28
41
|
unit?: TimeUnit;
|
|
29
42
|
}>;
|
|
30
|
-
durationStep: z.ZodObject<{
|
|
43
|
+
durationStep: z.ZodEffects<z.ZodObject<{
|
|
31
44
|
amount: z.ZodNumber;
|
|
32
45
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
33
|
-
},
|
|
46
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
47
|
+
amount?: number;
|
|
48
|
+
unit?: TimeUnit;
|
|
49
|
+
}, {
|
|
50
|
+
amount?: number;
|
|
51
|
+
unit?: TimeUnit;
|
|
52
|
+
}>, {
|
|
34
53
|
amount?: number;
|
|
35
54
|
unit?: TimeUnit;
|
|
36
55
|
}, {
|
|
37
56
|
amount?: number;
|
|
38
57
|
unit?: TimeUnit;
|
|
39
58
|
}>;
|
|
40
|
-
defaultDuration: z.ZodObject<{
|
|
59
|
+
defaultDuration: z.ZodEffects<z.ZodObject<{
|
|
41
60
|
amount: z.ZodNumber;
|
|
42
61
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
43
|
-
},
|
|
62
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
63
|
+
amount?: number;
|
|
64
|
+
unit?: TimeUnit;
|
|
65
|
+
}, {
|
|
66
|
+
amount?: number;
|
|
67
|
+
unit?: TimeUnit;
|
|
68
|
+
}>, {
|
|
44
69
|
amount?: number;
|
|
45
70
|
unit?: TimeUnit;
|
|
46
71
|
}, {
|
|
@@ -81,6 +106,40 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
81
106
|
amount?: number;
|
|
82
107
|
unit?: TimeUnit;
|
|
83
108
|
};
|
|
109
|
+
}>, {
|
|
110
|
+
minDuration?: {
|
|
111
|
+
amount?: number;
|
|
112
|
+
unit?: TimeUnit;
|
|
113
|
+
};
|
|
114
|
+
maxDuration?: {
|
|
115
|
+
amount?: number;
|
|
116
|
+
unit?: TimeUnit;
|
|
117
|
+
};
|
|
118
|
+
durationStep?: {
|
|
119
|
+
amount?: number;
|
|
120
|
+
unit?: TimeUnit;
|
|
121
|
+
};
|
|
122
|
+
defaultDuration?: {
|
|
123
|
+
amount?: number;
|
|
124
|
+
unit?: TimeUnit;
|
|
125
|
+
};
|
|
126
|
+
}, {
|
|
127
|
+
minDuration?: {
|
|
128
|
+
amount?: number;
|
|
129
|
+
unit?: TimeUnit;
|
|
130
|
+
};
|
|
131
|
+
maxDuration?: {
|
|
132
|
+
amount?: number;
|
|
133
|
+
unit?: TimeUnit;
|
|
134
|
+
};
|
|
135
|
+
durationStep?: {
|
|
136
|
+
amount?: number;
|
|
137
|
+
unit?: TimeUnit;
|
|
138
|
+
};
|
|
139
|
+
defaultDuration?: {
|
|
140
|
+
amount?: number;
|
|
141
|
+
unit?: TimeUnit;
|
|
142
|
+
};
|
|
84
143
|
}>;
|
|
85
144
|
default: z.ZodObject<{
|
|
86
145
|
advanceBookingWindow: z.ZodObject<{
|
|
@@ -106,7 +165,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
106
165
|
maxBookingHours: z.ZodNullable<z.ZodObject<{
|
|
107
166
|
amount: z.ZodNumber;
|
|
108
167
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
109
|
-
},
|
|
168
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
110
169
|
amount?: number;
|
|
111
170
|
unit?: TimeUnit;
|
|
112
171
|
}, {
|
|
@@ -116,7 +175,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
116
175
|
maxSequentialBookings: z.ZodNullable<z.ZodObject<{
|
|
117
176
|
amount: z.ZodNumber;
|
|
118
177
|
unit: z.ZodNativeEnum<typeof TimeUnit>;
|
|
119
|
-
},
|
|
178
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
120
179
|
amount?: number;
|
|
121
180
|
unit?: TimeUnit;
|
|
122
181
|
}, {
|
|
@@ -158,7 +217,7 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
158
217
|
unit?: TimeUnit;
|
|
159
218
|
};
|
|
160
219
|
}>;
|
|
161
|
-
slotStartTime: z.ZodDefault<z.ZodNullable<z.ZodNumber
|
|
220
|
+
slotStartTime: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
|
|
162
221
|
allowOverlappingStartTimes: z.ZodDefault<z.ZodBoolean>;
|
|
163
222
|
memberships: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
164
223
|
id: z.ZodString;
|
|
@@ -345,15 +404,150 @@ declare const _RESERVATION_SETTINGS_TYPE_SCHEMA: z.ZodObject<{
|
|
|
345
404
|
unit?: TimeUnit;
|
|
346
405
|
};
|
|
347
406
|
}[]];
|
|
407
|
+
}>, {
|
|
408
|
+
default?: {
|
|
409
|
+
advanceBookingWindow?: {
|
|
410
|
+
amount?: number;
|
|
411
|
+
unit?: TimeUnit;
|
|
412
|
+
};
|
|
413
|
+
minimumBookingNotice?: {
|
|
414
|
+
amount?: number;
|
|
415
|
+
unit?: TimeUnit;
|
|
416
|
+
};
|
|
417
|
+
maxBookingHours?: {
|
|
418
|
+
amount?: number;
|
|
419
|
+
unit?: TimeUnit;
|
|
420
|
+
};
|
|
421
|
+
maxSequentialBookings?: {
|
|
422
|
+
amount?: number;
|
|
423
|
+
unit?: TimeUnit;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
427
|
+
approvalRequired?: boolean;
|
|
428
|
+
allowResourceSelection?: boolean;
|
|
429
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
430
|
+
bookingDurations?: {
|
|
431
|
+
minDuration?: {
|
|
432
|
+
amount?: number;
|
|
433
|
+
unit?: TimeUnit;
|
|
434
|
+
};
|
|
435
|
+
maxDuration?: {
|
|
436
|
+
amount?: number;
|
|
437
|
+
unit?: TimeUnit;
|
|
438
|
+
};
|
|
439
|
+
durationStep?: {
|
|
440
|
+
amount?: number;
|
|
441
|
+
unit?: TimeUnit;
|
|
442
|
+
};
|
|
443
|
+
defaultDuration?: {
|
|
444
|
+
amount?: number;
|
|
445
|
+
unit?: TimeUnit;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
slotStartTime?: number;
|
|
449
|
+
allowOverlappingStartTimes?: boolean;
|
|
450
|
+
memberships?: [{
|
|
451
|
+
name?: string;
|
|
452
|
+
membershipsIds?: [number, ...number[]];
|
|
453
|
+
id?: string;
|
|
454
|
+
advanceBookingWindow?: {
|
|
455
|
+
amount?: number;
|
|
456
|
+
unit?: TimeUnit;
|
|
457
|
+
};
|
|
458
|
+
minimumBookingNotice?: {
|
|
459
|
+
amount?: number;
|
|
460
|
+
unit?: TimeUnit;
|
|
461
|
+
};
|
|
462
|
+
}, ...{
|
|
463
|
+
name?: string;
|
|
464
|
+
membershipsIds?: [number, ...number[]];
|
|
465
|
+
id?: string;
|
|
466
|
+
advanceBookingWindow?: {
|
|
467
|
+
amount?: number;
|
|
468
|
+
unit?: TimeUnit;
|
|
469
|
+
};
|
|
470
|
+
minimumBookingNotice?: {
|
|
471
|
+
amount?: number;
|
|
472
|
+
unit?: TimeUnit;
|
|
473
|
+
};
|
|
474
|
+
}[]];
|
|
475
|
+
}, {
|
|
476
|
+
default?: {
|
|
477
|
+
advanceBookingWindow?: {
|
|
478
|
+
amount?: number;
|
|
479
|
+
unit?: TimeUnit;
|
|
480
|
+
};
|
|
481
|
+
minimumBookingNotice?: {
|
|
482
|
+
amount?: number;
|
|
483
|
+
unit?: TimeUnit;
|
|
484
|
+
};
|
|
485
|
+
maxBookingHours?: {
|
|
486
|
+
amount?: number;
|
|
487
|
+
unit?: TimeUnit;
|
|
488
|
+
};
|
|
489
|
+
maxSequentialBookings?: {
|
|
490
|
+
amount?: number;
|
|
491
|
+
unit?: TimeUnit;
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
resourceTypes?: [ResourceTypeEnum, ...ResourceTypeEnum[]];
|
|
495
|
+
approvalRequired?: boolean;
|
|
496
|
+
allowResourceSelection?: boolean;
|
|
497
|
+
prioritizedResourceAllocation?: Partial<Record<ResourceSubTypeEnum, [number, ...number[]]>>;
|
|
498
|
+
bookingDurations?: {
|
|
499
|
+
minDuration?: {
|
|
500
|
+
amount?: number;
|
|
501
|
+
unit?: TimeUnit;
|
|
502
|
+
};
|
|
503
|
+
maxDuration?: {
|
|
504
|
+
amount?: number;
|
|
505
|
+
unit?: TimeUnit;
|
|
506
|
+
};
|
|
507
|
+
durationStep?: {
|
|
508
|
+
amount?: number;
|
|
509
|
+
unit?: TimeUnit;
|
|
510
|
+
};
|
|
511
|
+
defaultDuration?: {
|
|
512
|
+
amount?: number;
|
|
513
|
+
unit?: TimeUnit;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
slotStartTime?: number;
|
|
517
|
+
allowOverlappingStartTimes?: boolean;
|
|
518
|
+
memberships?: [{
|
|
519
|
+
name?: string;
|
|
520
|
+
membershipsIds?: [number, ...number[]];
|
|
521
|
+
id?: string;
|
|
522
|
+
advanceBookingWindow?: {
|
|
523
|
+
amount?: number;
|
|
524
|
+
unit?: TimeUnit;
|
|
525
|
+
};
|
|
526
|
+
minimumBookingNotice?: {
|
|
527
|
+
amount?: number;
|
|
528
|
+
unit?: TimeUnit;
|
|
529
|
+
};
|
|
530
|
+
}, ...{
|
|
531
|
+
name?: string;
|
|
532
|
+
membershipsIds?: [number, ...number[]];
|
|
533
|
+
id?: string;
|
|
534
|
+
advanceBookingWindow?: {
|
|
535
|
+
amount?: number;
|
|
536
|
+
unit?: TimeUnit;
|
|
537
|
+
};
|
|
538
|
+
minimumBookingNotice?: {
|
|
539
|
+
amount?: number;
|
|
540
|
+
unit?: TimeUnit;
|
|
541
|
+
};
|
|
542
|
+
}[]];
|
|
348
543
|
}>;
|
|
349
|
-
|
|
544
|
+
export type TProductCategoryOnlineBookingSettings = z.infer<typeof RESERVATION_SETTINGS_SCHEMA>;
|
|
545
|
+
export declare const GOODS_SETTINGS_SCHEMA: z.ZodObject<{
|
|
350
546
|
colorCodeId: z.ZodNullable<z.ZodNumber>;
|
|
351
547
|
}, "strip", z.ZodTypeAny, {
|
|
352
548
|
colorCodeId?: number;
|
|
353
549
|
}, {
|
|
354
550
|
colorCodeId?: number;
|
|
355
551
|
}>;
|
|
356
|
-
export type
|
|
357
|
-
export type TProductCategoryGoodsSettings = z.infer<typeof _GOODS_SETTINGS_TYPE_SCHEMA>;
|
|
552
|
+
export type TProductCategoryGoodsSettings = z.infer<typeof GOODS_SETTINGS_SCHEMA>;
|
|
358
553
|
export declare const RESERVATION_DEFAULT_SETTINGS: TProductCategoryOnlineBookingSettings;
|
|
359
|
-
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESERVATION_DEFAULT_SETTINGS = void 0;
|
|
3
|
+
exports.RESERVATION_DEFAULT_SETTINGS = exports.GOODS_SETTINGS_SCHEMA = exports.RESERVATION_SETTINGS_SCHEMA = exports.SLOT_ALLOWED_START_TIMES = void 0;
|
|
4
4
|
const date_time_1 = require("@bondsports/date-time");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const enums_service_1 = require("../../../services/enums.service");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
7
|
+
const QUARTER_HOUR_OFFSET = 15;
|
|
8
|
+
const HALF_HOUR_OFFSET = 30;
|
|
9
|
+
const THREE_QUARTER_HOUR_OFFSET = 45;
|
|
10
|
+
exports.SLOT_ALLOWED_START_TIMES = [0, QUARTER_HOUR_OFFSET, HALF_HOUR_OFFSET, THREE_QUARTER_HOUR_OFFSET];
|
|
11
|
+
const FIFTEEN_MINUTES = 15;
|
|
12
|
+
const MINIMUM_DURATION_IN_MINUTES = (0, date_time_1.getDuration)(FIFTEEN_MINUTES, date_time_1.TimeUnit.MINUTE, date_time_1.TimeUnit.MINUTE);
|
|
10
13
|
const INTEGER_SCHEMA = zod_1.z.number().int().min(1);
|
|
11
14
|
const DURATION_SCHEMA = zod_1.z
|
|
12
15
|
.object({
|
|
@@ -14,45 +17,77 @@ const DURATION_SCHEMA = zod_1.z
|
|
|
14
17
|
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
15
18
|
})
|
|
16
19
|
.required();
|
|
17
|
-
const
|
|
20
|
+
const DURATION_WITH_LIMIT_SCHEMA = DURATION_SCHEMA.superRefine((value, ctx) => {
|
|
21
|
+
const durationInMinutes = (0, date_time_1.getDuration)(value.amount, value.unit, date_time_1.TimeUnit.MINUTE);
|
|
22
|
+
});
|
|
23
|
+
exports.RESERVATION_SETTINGS_SCHEMA = zod_1.z
|
|
24
|
+
.object({
|
|
18
25
|
resourceTypes: zod_1.z.array(zod_1.z.nativeEnum(enums_service_1.ResourceTypeEnum)).nonempty(),
|
|
19
26
|
approvalRequired: zod_1.z.boolean().default(true),
|
|
20
27
|
allowResourceSelection: zod_1.z.boolean().default(false),
|
|
21
28
|
prioritizedResourceAllocation: zod_1.z
|
|
22
29
|
.record(zod_1.z.nativeEnum(enums_service_1.ResourceSubTypeEnum), zod_1.z.array(zod_1.z.number().int().min(0)).nonempty())
|
|
23
30
|
.nullable(),
|
|
24
|
-
bookingDurations: zod_1.z
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
bookingDurations: zod_1.z
|
|
32
|
+
.object({
|
|
33
|
+
minDuration: DURATION_WITH_LIMIT_SCHEMA,
|
|
34
|
+
maxDuration: DURATION_WITH_LIMIT_SCHEMA,
|
|
35
|
+
durationStep: DURATION_WITH_LIMIT_SCHEMA,
|
|
36
|
+
defaultDuration: DURATION_WITH_LIMIT_SCHEMA,
|
|
37
|
+
})
|
|
38
|
+
.superRefine(({ defaultDuration, durationStep, maxDuration, minDuration }, ctx) => {
|
|
39
|
+
const max = (0, date_time_1.getDuration)(maxDuration.amount, maxDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
40
|
+
const min = (0, date_time_1.getDuration)(minDuration.amount, minDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
41
|
+
const defaultDurationMinutes = (0, date_time_1.getDuration)(defaultDuration.amount, defaultDuration.unit, date_time_1.TimeUnit.MINUTE);
|
|
42
|
+
const durationStepMinutes = (0, date_time_1.getDuration)(durationStep.amount, durationStep.unit, date_time_1.TimeUnit.MINUTE);
|
|
29
43
|
}),
|
|
30
44
|
default: zod_1.z.object({
|
|
31
|
-
advanceBookingWindow:
|
|
32
|
-
|
|
45
|
+
advanceBookingWindow: zod_1.z.object({
|
|
46
|
+
amount: INTEGER_SCHEMA,
|
|
47
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
48
|
+
}),
|
|
49
|
+
minimumBookingNotice: zod_1.z.object({
|
|
50
|
+
amount: INTEGER_SCHEMA,
|
|
51
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
52
|
+
}),
|
|
33
53
|
maxBookingHours: DURATION_SCHEMA.nullable(),
|
|
34
54
|
maxSequentialBookings: DURATION_SCHEMA.nullable(),
|
|
35
55
|
}),
|
|
36
|
-
slotStartTime: zod_1.z
|
|
56
|
+
slotStartTime: zod_1.z
|
|
57
|
+
.number()
|
|
58
|
+
.int()
|
|
59
|
+
.refine(val => exports.SLOT_ALLOWED_START_TIMES.includes(val))
|
|
60
|
+
.nullable()
|
|
61
|
+
.default(null),
|
|
37
62
|
allowOverlappingStartTimes: zod_1.z.boolean().default(false),
|
|
38
63
|
memberships: zod_1.z
|
|
39
64
|
.array(zod_1.z.object({
|
|
40
65
|
id: zod_1.z.string().uuid(),
|
|
41
66
|
name: zod_1.z.string(),
|
|
42
67
|
membershipsIds: zod_1.z.array(zod_1.z.number().int()).nonempty(),
|
|
43
|
-
advanceBookingWindow:
|
|
44
|
-
|
|
68
|
+
advanceBookingWindow: zod_1.z.object({
|
|
69
|
+
amount: INTEGER_SCHEMA,
|
|
70
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
71
|
+
}),
|
|
72
|
+
minimumBookingNotice: zod_1.z.object({
|
|
73
|
+
amount: INTEGER_SCHEMA,
|
|
74
|
+
unit: zod_1.z.nativeEnum(date_time_1.TimeUnit),
|
|
75
|
+
}),
|
|
45
76
|
}))
|
|
46
77
|
.nonempty()
|
|
47
78
|
.nullable(),
|
|
79
|
+
})
|
|
80
|
+
.superRefine((settings, ctx) => {
|
|
81
|
+
const membershipIds = settings.memberships?.flatMap(setting => setting.membershipsIds) ?? [];
|
|
82
|
+
const uniqueMembershipIds = [...new Set(membershipIds)];
|
|
48
83
|
});
|
|
49
|
-
|
|
84
|
+
exports.GOODS_SETTINGS_SCHEMA = zod_1.z.object({
|
|
50
85
|
colorCodeId: zod_1.z.number().int().nullable(),
|
|
51
86
|
});
|
|
52
87
|
exports.RESERVATION_DEFAULT_SETTINGS = {
|
|
53
88
|
default: {
|
|
54
89
|
advanceBookingWindow: {
|
|
55
|
-
amount:
|
|
90
|
+
amount: 14,
|
|
56
91
|
unit: date_time_1.TimeUnit.DAY,
|
|
57
92
|
},
|
|
58
93
|
minimumBookingNotice: {
|
|
@@ -64,11 +99,11 @@ exports.RESERVATION_DEFAULT_SETTINGS = {
|
|
|
64
99
|
},
|
|
65
100
|
bookingDurations: {
|
|
66
101
|
minDuration: {
|
|
67
|
-
amount:
|
|
102
|
+
amount: 30,
|
|
68
103
|
unit: date_time_1.TimeUnit.MINUTE,
|
|
69
104
|
},
|
|
70
105
|
maxDuration: {
|
|
71
|
-
amount:
|
|
106
|
+
amount: 2,
|
|
72
107
|
unit: date_time_1.TimeUnit.HOUR,
|
|
73
108
|
},
|
|
74
109
|
durationStep: {
|