@bondsports/types 2.3.8-c-6 → 2.3.9-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/entities/cart-item.entity.d.ts +2 -0
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +2 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +6 -1
- package/dist/types/dto/general.dto.js +4 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/entity/LineItems.js.map +1 -1
- package/dist/types/entity/MembershipMember.d.ts +0 -3
- package/dist/types/entity/MembershipMember.js.map +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +79 -6
- package/dist/types/folders/dto/folder.dto.js +17 -5
- package/dist/types/folders/dto/folder.dto.js.map +1 -1
- package/dist/types/folders/entities/folder.entity.d.ts +5 -0
- package/dist/types/folders/entities/folder.entity.js +12 -1
- package/dist/types/folders/entities/folder.entity.js.map +1 -1
- package/dist/types/folders/index.d.ts +1 -0
- package/dist/types/folders/index.js +1 -0
- package/dist/types/folders/index.js.map +1 -1
- package/dist/types/folders/types/classes.d.ts +26 -0
- package/dist/types/folders/types/classes.js +8 -0
- package/dist/types/folders/types/classes.js.map +1 -0
- package/dist/types/folders/types/consts.d.ts +2 -0
- package/dist/types/folders/types/consts.js +6 -0
- package/dist/types/folders/types/consts.js.map +1 -0
- package/dist/types/folders/types/enums.d.ts +11 -0
- package/dist/types/folders/types/enums.js +17 -0
- package/dist/types/folders/types/enums.js.map +1 -0
- package/dist/types/folders/types/index.d.ts +60 -0
- package/dist/types/folders/types/index.js +21 -0
- package/dist/types/folders/types/index.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/invoice/types/interfaces/line-item.interfaces.d.ts +9 -0
- package/dist/types/membership/entities/MembershipMemberRenewal.d.ts +0 -3
- package/dist/types/membership/entities/MembershipMemberRenewal.js.map +1 -1
- package/dist/types/notifications/dto/backoffice.notify.dto.d.ts +2 -0
- package/dist/types/notifications/dto/backoffice.notify.dto.js +2 -2
- package/dist/types/notifications/dto/backoffice.notify.dto.js.map +1 -1
- package/dist/types/notifications/dto/notification.create.dto.d.ts +2 -2
- package/dist/types/notifications/dto/notification.create.dto.js +4 -4
- package/dist/types/notifications/dto/notification.create.dto.js.map +1 -1
- package/dist/types/payment/dto/payment-plan.dto.d.ts +2 -2
- package/dist/types/payment/dto/payment.dto.d.ts +1 -1
- package/dist/types/payment/types/enums/payment.enums.d.ts +3 -5
- package/dist/types/payment/types/enums/payment.enums.js +2 -5
- package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +3 -0
- package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +5 -0
- package/dist/types/programs-seasons/types/enums/program-season.enums.js +7 -1
- package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/index.d.ts +1 -0
- package/dist/types/programs-seasons/types/interfaces/index.js +1 -0
- package/dist/types/programs-seasons/types/interfaces/index.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +8 -1
- package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.d.ts +4 -0
- package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.js +3 -0
- package/dist/types/programs-seasons/types/interfaces/season-attendee.interfaces.js.map +1 -0
- package/dist/types/services/interfaces.service.d.ts +10 -1
- package/dist/types/services/interfaces.service.js +4 -0
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +14 -5
- package/dist/types/session-participants/dto/get.session.participant.dto.js +6 -3
- package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -1
- package/dist/types/session-participants/dto/session.participant.dto.d.ts +6 -25
- package/dist/types/session-participants/dto/session.participant.dto.js +1 -4
- package/dist/types/session-participants/dto/session.participant.dto.js.map +1 -1
- package/dist/types/session-participants/types/classes.d.ts +29 -0
- package/dist/types/session-participants/types/classes.js +8 -0
- package/dist/types/session-participants/types/classes.js.map +1 -0
- package/dist/types/session-participants/types/consts.d.ts +4 -1
- package/dist/types/session-participants/types/consts.js +9 -2
- package/dist/types/session-participants/types/consts.js.map +1 -1
- package/dist/types/session-participants/types/enums.d.ts +4 -7
- package/dist/types/session-participants/types/enums.js +4 -8
- package/dist/types/session-participants/types/enums.js.map +1 -1
- package/dist/types/session-participants/types/index.d.ts +1 -0
- package/dist/types/session-participants/types/index.js +1 -0
- package/dist/types/session-participants/types/index.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +22 -8
- package/dist/types/util/models/interfaces/general.interfaces.d.ts +5 -0
- package/dist/types/waitlist/dto/index.d.ts +1 -0
- package/dist/types/waitlist/dto/index.js +18 -0
- package/dist/types/waitlist/dto/index.js.map +1 -0
- package/dist/types/waitlist/dto/waitlist.dto.d.ts +57 -0
- package/dist/types/waitlist/dto/waitlist.dto.js +34 -0
- package/dist/types/waitlist/dto/waitlist.dto.js.map +1 -0
- package/dist/types/waitlist/entities/index.d.ts +2 -0
- package/dist/types/waitlist/entities/index.js +19 -0
- package/dist/types/waitlist/entities/index.js.map +1 -0
- package/dist/types/waitlist/entities/waitlistChild.entity.d.ts +17 -0
- package/dist/types/waitlist/entities/waitlistChild.entity.js +8 -0
- package/dist/types/waitlist/entities/waitlistChild.entity.js.map +1 -0
- package/dist/types/waitlist/entities/waitlistEntry.entity.d.ts +19 -0
- package/dist/types/waitlist/entities/waitlistEntry.entity.js +8 -0
- package/dist/types/waitlist/entities/waitlistEntry.entity.js.map +1 -0
- package/dist/types/waitlist/index.d.ts +3 -0
- package/dist/types/waitlist/index.js +20 -0
- package/dist/types/waitlist/index.js.map +1 -0
- package/dist/types/waitlist/types/index.d.ts +2 -0
- package/dist/types/waitlist/types/index.js +19 -0
- package/dist/types/waitlist/types/index.js.map +1 -0
- package/dist/types/waitlist/types/waitlist.enums.d.ts +8 -0
- package/dist/types/waitlist/types/waitlist.enums.js +14 -0
- package/dist/types/waitlist/types/waitlist.enums.js.map +1 -0
- package/dist/types/waitlist/types/waitlist.interface.d.ts +38 -0
- package/dist/types/waitlist/types/waitlist.interface.js +3 -0
- package/dist/types/waitlist/types/waitlist.interface.js.map +1 -0
- package/package.json +3 -3
@@ -1,21 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SessionParticipantsSearchFieldEnum = exports.
|
3
|
+
exports.SessionParticipantsSearchFieldEnum = exports.SessionParticipantsSortByEnum = void 0;
|
4
4
|
var SessionParticipantsSortByEnum;
|
5
5
|
(function (SessionParticipantsSortByEnum) {
|
6
|
-
SessionParticipantsSortByEnum["
|
6
|
+
SessionParticipantsSortByEnum["FIRST_NAME"] = "firstName";
|
7
|
+
SessionParticipantsSortByEnum["LAST_NAME"] = "lastName";
|
7
8
|
SessionParticipantsSortByEnum["AGE"] = "age";
|
8
9
|
SessionParticipantsSortByEnum["GENDER"] = "gender";
|
9
10
|
SessionParticipantsSortByEnum["REGISTRATION_DATE"] = "registrationDate";
|
10
11
|
SessionParticipantsSortByEnum["WAIVER_SIGNED_DATE"] = "waiverSignedDate";
|
11
12
|
SessionParticipantsSortByEnum["WAIVER_SIGNED"] = "waiverSigned";
|
13
|
+
SessionParticipantsSortByEnum["FOLDER_NAME"] = "folderName";
|
12
14
|
})(SessionParticipantsSortByEnum = exports.SessionParticipantsSortByEnum || (exports.SessionParticipantsSortByEnum = {}));
|
13
|
-
var SessionParticipantsPaymentStatusEnum;
|
14
|
-
(function (SessionParticipantsPaymentStatusEnum) {
|
15
|
-
SessionParticipantsPaymentStatusEnum["PAID"] = "paid";
|
16
|
-
SessionParticipantsPaymentStatusEnum["UNPAID"] = "unpaid";
|
17
|
-
SessionParticipantsPaymentStatusEnum["PARTIALLY_PAID"] = "partially_paid";
|
18
|
-
})(SessionParticipantsPaymentStatusEnum = exports.SessionParticipantsPaymentStatusEnum || (exports.SessionParticipantsPaymentStatusEnum = {}));
|
19
15
|
var SessionParticipantsSearchFieldEnum;
|
20
16
|
(function (SessionParticipantsSearchFieldEnum) {
|
21
17
|
SessionParticipantsSearchFieldEnum["NAME_OR_EMAIL"] = "nameOrEmail";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/session-participants/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/session-participants/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BASX;AATD,WAAY,6BAA6B;IACxC,yDAAwB,CAAA;IACxB,uDAAsB,CAAA;IACtB,4CAAW,CAAA;IACX,kDAAiB,CAAA;IACjB,uEAAsC,CAAA;IACtC,wEAAuC,CAAA;IACvC,+DAA8B,CAAA;IAC9B,2DAA0B,CAAA;AAC3B,CAAC,EATW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QASxC;AAED,IAAY,kCAGX;AAHD,WAAY,kCAAkC;IAC7C,mEAA6B,CAAA;IAC7B,kEAA4B,CAAA;AAC7B,CAAC,EAHW,kCAAkC,GAAlC,0CAAkC,KAAlC,0CAAkC,QAG7C"}
|
@@ -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("./classes"), 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/session-participants/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/session-participants/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
@@ -1,11 +1,14 @@
|
|
1
1
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
2
2
|
import { ProductsUsers } from '../../entity/ProductsUsers';
|
3
3
|
import { CurrencyEnum, GenderEnum } from '../../services/enums.service';
|
4
|
-
import {
|
4
|
+
import { MetaType } from '../../folders/entities/folder.entity';
|
5
5
|
export interface ISessionParticipant {
|
6
|
+
id?: number;
|
6
7
|
sessionId: number;
|
7
8
|
folderName?: string;
|
8
|
-
|
9
|
+
folderId?: number;
|
10
|
+
firstName?: string;
|
11
|
+
lastName?: string;
|
9
12
|
userId: number;
|
10
13
|
age?: number;
|
11
14
|
gender: GenderEnum;
|
@@ -14,7 +17,7 @@ export interface ISessionParticipant {
|
|
14
17
|
fullPrice?: number;
|
15
18
|
punchCard?: boolean;
|
16
19
|
currentPaidAmount?: number;
|
17
|
-
paymentStatus?:
|
20
|
+
paymentStatus?: PaymentStatusEnum;
|
18
21
|
waiverSigned?: boolean;
|
19
22
|
registrationDate?: string;
|
20
23
|
pictureUrl: string;
|
@@ -22,21 +25,32 @@ export interface ISessionParticipant {
|
|
22
25
|
currentPaidCurrencies?: CurrencyEnum[];
|
23
26
|
productNames?: string[];
|
24
27
|
}
|
28
|
+
export interface IGroupFilters {
|
29
|
+
paymentStatuses?: PaymentStatusEnum[];
|
30
|
+
metaTypes?: MetaType[];
|
31
|
+
includeSubFolders?: boolean;
|
32
|
+
includeAdditionalGroupFields?: boolean;
|
33
|
+
groupCategories?: string[];
|
34
|
+
}
|
25
35
|
export interface IRawSessionParticipant {
|
36
|
+
id?: number;
|
26
37
|
sessionId: number;
|
27
38
|
folderName?: string;
|
28
|
-
|
39
|
+
folderId?: number;
|
40
|
+
firstName?: string;
|
41
|
+
lastName?: string;
|
29
42
|
userId: number;
|
30
43
|
gender: GenderEnum;
|
31
44
|
profilePictureId?: number;
|
32
45
|
customerId: number;
|
33
|
-
|
34
|
-
fullPrice?: number;
|
46
|
+
email: string;
|
35
47
|
punchCard?: boolean;
|
36
|
-
currentPaidAmount?: number;
|
37
|
-
paymentStatuses?: PaymentStatusEnum[];
|
38
48
|
waiverSignedDate?: string;
|
39
49
|
registrationDate?: string;
|
50
|
+
fullPrice?: number;
|
51
|
+
currentPaidAmount?: number;
|
52
|
+
lineItemIds?: number[];
|
53
|
+
paymentStatuses?: PaymentStatusEnum[];
|
40
54
|
productId?: number;
|
41
55
|
currentPaidCurrencies?: CurrencyEnum[];
|
42
56
|
productNames?: string[];
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './waitlist.dto';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./waitlist.dto"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/waitlist/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { WaitlistOwnerTypeEnum } from '../types/waitlist.enums';
|
2
|
+
import { MassActionFilterDto, PaginationSearchQuery } from '../../dto/general.dto';
|
3
|
+
import { IQueryWaitlistFilters, IWaitlistResourcesFilter } from '../types/waitlist.interface';
|
4
|
+
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
5
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
6
|
+
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
7
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
8
|
+
export declare class CreateWaitlistEntryDto {
|
9
|
+
ownerId: number;
|
10
|
+
ownerType: WaitlistOwnerTypeEnum;
|
11
|
+
cartId: number;
|
12
|
+
}
|
13
|
+
export declare class WaitlistEntryDto extends OrganizationBaseEntityDto {
|
14
|
+
ownerId: number;
|
15
|
+
ownerType: WaitlistOwnerTypeEnum;
|
16
|
+
parentId: number;
|
17
|
+
parentType: ResourceNameTypeEnum;
|
18
|
+
cartId?: number;
|
19
|
+
children: WaitlistChildDto[];
|
20
|
+
}
|
21
|
+
export declare class WaitlistChildDto extends OrganizationBaseEntityDto {
|
22
|
+
resourceId: number;
|
23
|
+
resourceType: ResourceNameTypeEnum;
|
24
|
+
entryId: number;
|
25
|
+
cartItemId?: number;
|
26
|
+
}
|
27
|
+
export declare class ByParentIdAndTypeDto extends ByOrganizationIdDto {
|
28
|
+
parentId: number;
|
29
|
+
parentType: ResourceNameTypeEnum;
|
30
|
+
}
|
31
|
+
export declare class GetWaitlistEntriesQueryDto extends PaginationSearchQuery implements IQueryWaitlistFilters {
|
32
|
+
productIds?: number[];
|
33
|
+
resources?: IWaitlistResourcesFilter;
|
34
|
+
}
|
35
|
+
export declare class MassActionWaitlistEntriesDto extends MassActionFilterDto implements IQueryWaitlistFilters {
|
36
|
+
productIds?: number[];
|
37
|
+
resources?: IWaitlistResourcesFilter;
|
38
|
+
}
|
39
|
+
export declare class WaitlistOwnerDto {
|
40
|
+
id: number;
|
41
|
+
type: WaitlistOwnerTypeEnum;
|
42
|
+
name: string;
|
43
|
+
email: string;
|
44
|
+
}
|
45
|
+
export declare class WaitlistChildRowDto extends OrganizationBaseEntityDto {
|
46
|
+
resourceId: number;
|
47
|
+
resourceType: ResourceNameTypeEnum;
|
48
|
+
name: string;
|
49
|
+
startDate: Date;
|
50
|
+
endDate: Date;
|
51
|
+
}
|
52
|
+
export declare class WaitlistEntryRowDto extends OrganizationBaseEntityDto {
|
53
|
+
cartId?: number;
|
54
|
+
owner: WaitlistOwnerDto;
|
55
|
+
product: SimpleProductDto;
|
56
|
+
children: WaitlistChildRowDto[];
|
57
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WaitlistEntryRowDto = exports.WaitlistChildRowDto = exports.WaitlistOwnerDto = exports.MassActionWaitlistEntriesDto = exports.GetWaitlistEntriesQueryDto = exports.ByParentIdAndTypeDto = exports.WaitlistChildDto = exports.WaitlistEntryDto = exports.CreateWaitlistEntryDto = void 0;
|
4
|
+
const general_dto_1 = require("../../dto/general.dto");
|
5
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
6
|
+
const organization_dto_2 = require("../../organization/dto/organization.dto");
|
7
|
+
class CreateWaitlistEntryDto {
|
8
|
+
}
|
9
|
+
exports.CreateWaitlistEntryDto = CreateWaitlistEntryDto;
|
10
|
+
class WaitlistEntryDto extends organization_dto_1.OrganizationBaseEntityDto {
|
11
|
+
}
|
12
|
+
exports.WaitlistEntryDto = WaitlistEntryDto;
|
13
|
+
class WaitlistChildDto extends organization_dto_1.OrganizationBaseEntityDto {
|
14
|
+
}
|
15
|
+
exports.WaitlistChildDto = WaitlistChildDto;
|
16
|
+
class ByParentIdAndTypeDto extends organization_dto_2.ByOrganizationIdDto {
|
17
|
+
}
|
18
|
+
exports.ByParentIdAndTypeDto = ByParentIdAndTypeDto;
|
19
|
+
class GetWaitlistEntriesQueryDto extends general_dto_1.PaginationSearchQuery {
|
20
|
+
}
|
21
|
+
exports.GetWaitlistEntriesQueryDto = GetWaitlistEntriesQueryDto;
|
22
|
+
class MassActionWaitlistEntriesDto extends general_dto_1.MassActionFilterDto {
|
23
|
+
}
|
24
|
+
exports.MassActionWaitlistEntriesDto = MassActionWaitlistEntriesDto;
|
25
|
+
class WaitlistOwnerDto {
|
26
|
+
}
|
27
|
+
exports.WaitlistOwnerDto = WaitlistOwnerDto;
|
28
|
+
class WaitlistChildRowDto extends organization_dto_1.OrganizationBaseEntityDto {
|
29
|
+
}
|
30
|
+
exports.WaitlistChildRowDto = WaitlistChildRowDto;
|
31
|
+
class WaitlistEntryRowDto extends organization_dto_1.OrganizationBaseEntityDto {
|
32
|
+
}
|
33
|
+
exports.WaitlistEntryRowDto = WaitlistEntryRowDto;
|
34
|
+
//# sourceMappingURL=waitlist.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"waitlist.dto.js","sourceRoot":"","sources":["../../../../src/types/waitlist/dto/waitlist.dto.ts"],"names":[],"mappings":";;;AACA,uDAAmF;AAGnF,8EAAoF;AACpF,8EAA8E;AAI9E,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAY9D;AAZD,4CAYC;AAED,MAAa,gBAAiB,SAAQ,4CAAyB;CAQ9D;AARD,4CAQC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAI5D;AAJD,oDAIC;AAED,MAAa,0BAA2B,SAAQ,mCAAqB;CAIpE;AAJD,gEAIC;AAED,MAAa,4BAA6B,SAAQ,iCAAmB;CAIpE;AAJD,oEAIC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAUjE;AAVD,kDAUC;AAED,MAAa,mBAAoB,SAAQ,4CAAyB;CAQjE;AARD,kDAQC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./waitlistChild.entity"), exports);
|
18
|
+
__exportStar(require("./waitlistEntry.entity"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/waitlist/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
2
|
+
import { WaitlistEntry } from './waitlistEntry.entity';
|
3
|
+
import { CartItem } from '../../cart/entities/cart-item.entity';
|
4
|
+
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
5
|
+
import { Event } from '../../entity/Events';
|
6
|
+
import { ProgramSeason } from '../../programs-seasons/entities/ProgramSeason';
|
7
|
+
export declare class WaitlistChild extends OrganizationConnectionBaseEntity {
|
8
|
+
deletedAt?: Date;
|
9
|
+
entryId: number;
|
10
|
+
entry: WaitlistEntry;
|
11
|
+
resourceId: number;
|
12
|
+
resourceType: ResourceNameTypeEnum;
|
13
|
+
session?: ProgramSeason;
|
14
|
+
event?: Event;
|
15
|
+
cartItemId?: number;
|
16
|
+
cartItem?: CartItem;
|
17
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WaitlistChild = void 0;
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
5
|
+
class WaitlistChild extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
6
|
+
}
|
7
|
+
exports.WaitlistChild = WaitlistChild;
|
8
|
+
//# sourceMappingURL=waitlistChild.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"waitlistChild.entity.js","sourceRoot":"","sources":["../../../../src/types/waitlist/entities/waitlistChild.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAOjG,MAAa,aAAc,SAAQ,mEAAgC;CAkBlE;AAlBD,sCAkBC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
2
|
+
import { WaitlistOwnerTypeEnum } from '../types/waitlist.enums';
|
3
|
+
import { WaitlistChild } from './waitlistChild.entity';
|
4
|
+
import { Customer } from '../../entity/Customer';
|
5
|
+
import { ProgramSeason } from '../../programs-seasons/entities/ProgramSeason';
|
6
|
+
import { Cart } from '../../cart/entities/cart.entity';
|
7
|
+
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
8
|
+
export declare class WaitlistEntry extends OrganizationConnectionBaseEntity {
|
9
|
+
deletedAt?: Date;
|
10
|
+
ownerId: number;
|
11
|
+
ownerType: WaitlistOwnerTypeEnum;
|
12
|
+
customer?: Customer;
|
13
|
+
parentId: number;
|
14
|
+
parentType: ResourceNameTypeEnum;
|
15
|
+
session?: ProgramSeason;
|
16
|
+
cartId?: number;
|
17
|
+
cart?: Cart;
|
18
|
+
children?: WaitlistChild[];
|
19
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WaitlistEntry = void 0;
|
4
|
+
const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
|
5
|
+
class WaitlistEntry extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
|
6
|
+
}
|
7
|
+
exports.WaitlistEntry = WaitlistEntry;
|
8
|
+
//# sourceMappingURL=waitlistEntry.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"waitlistEntry.entity.js","sourceRoot":"","sources":["../../../../src/types/waitlist/entities/waitlistEntry.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAQjG,MAAa,aAAc,SAAQ,mEAAgC;CAoBlE;AApBD,sCAoBC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./dto"), exports);
|
18
|
+
__exportStar(require("./entities"), exports);
|
19
|
+
__exportStar(require("./types"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/waitlist/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./waitlist.enums"), exports);
|
18
|
+
__exportStar(require("./waitlist.interface"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/waitlist/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,uDAAqC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WaitlistEntryOrderBy = exports.WaitlistOwnerTypeEnum = void 0;
|
4
|
+
var WaitlistOwnerTypeEnum;
|
5
|
+
(function (WaitlistOwnerTypeEnum) {
|
6
|
+
WaitlistOwnerTypeEnum["CUSTOMER"] = "customer";
|
7
|
+
})(WaitlistOwnerTypeEnum = exports.WaitlistOwnerTypeEnum || (exports.WaitlistOwnerTypeEnum = {}));
|
8
|
+
var WaitlistEntryOrderBy;
|
9
|
+
(function (WaitlistEntryOrderBy) {
|
10
|
+
WaitlistEntryOrderBy["CREATED_AT"] = "createdAt";
|
11
|
+
WaitlistEntryOrderBy["OWNER_NAME"] = "ownerName";
|
12
|
+
WaitlistEntryOrderBy["PRODUCT_NAME"] = "productName";
|
13
|
+
})(WaitlistEntryOrderBy = exports.WaitlistEntryOrderBy || (exports.WaitlistEntryOrderBy = {}));
|
14
|
+
//# sourceMappingURL=waitlist.enums.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"waitlist.enums.js","sourceRoot":"","sources":["../../../../src/types/waitlist/types/waitlist.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAChC,8CAAqB,CAAA;AACtB,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC/B,gDAAwB,CAAA;IACxB,gDAAwB,CAAA;IACxB,oDAA4B,CAAA;AAC7B,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { WaitlistOwnerTypeEnum } from './waitlist.enums';
|
2
|
+
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
3
|
+
import { IMassActionFilter } from '../../util/models/interfaces/general.interfaces';
|
4
|
+
export interface IMassActionWaitlistEntry {
|
5
|
+
id: number;
|
6
|
+
cartId?: number;
|
7
|
+
}
|
8
|
+
export interface ICreateWaitlistEntry {
|
9
|
+
organizationId: number;
|
10
|
+
cartId?: number;
|
11
|
+
ownerId: number;
|
12
|
+
ownerType: WaitlistOwnerTypeEnum;
|
13
|
+
parentId: number;
|
14
|
+
parentType: ResourceNameTypeEnum;
|
15
|
+
children: ICreateWaitlistChild[];
|
16
|
+
}
|
17
|
+
export interface ICreateWaitlistChild {
|
18
|
+
organizationId: number;
|
19
|
+
resourceId: number;
|
20
|
+
resourceType: ResourceNameTypeEnum;
|
21
|
+
cartItemId: number;
|
22
|
+
}
|
23
|
+
export interface IWaitlistBaseFilters {
|
24
|
+
organizationId: number;
|
25
|
+
parentId?: number;
|
26
|
+
parentType?: ResourceNameTypeEnum;
|
27
|
+
ownerId?: number;
|
28
|
+
ownerType?: WaitlistOwnerTypeEnum;
|
29
|
+
}
|
30
|
+
export interface IQueryWaitlistFilters {
|
31
|
+
productIds?: number[];
|
32
|
+
resources?: IWaitlistResourcesFilter;
|
33
|
+
}
|
34
|
+
export interface IWaitlistFilters extends IQueryWaitlistFilters, IWaitlistBaseFilters, IMassActionFilter {
|
35
|
+
}
|
36
|
+
export type IWaitlistResourcesFilter = Partial<Record<ResourceNameTypeEnum, number[]>> & {
|
37
|
+
all?: boolean;
|
38
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"waitlist.interface.js","sourceRoot":"","sources":["../../../../src/types/waitlist/types/waitlist.interface.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bondsports/types",
|
3
|
-
"version": "2.3.
|
3
|
+
"version": "2.3.9-a-1",
|
4
4
|
"description": "backend types module for Bond-Sports",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"scripts": {
|
@@ -33,7 +33,7 @@
|
|
33
33
|
],
|
34
34
|
"homepage": "https://github.com/Bond-Sports/bondUtils/tree/main/packages/types#readme",
|
35
35
|
"dependencies": {
|
36
|
-
"@bondsports/date-time": "^2.4.
|
36
|
+
"@bondsports/date-time": "^2.4.45",
|
37
37
|
"@bondsports/notifications-sdk": "latest",
|
38
38
|
"moment": "^2.29.1",
|
39
39
|
"rimraf": "^3.0.2",
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"ts-node": "^10.8.0",
|
51
51
|
"typescript": "^4.4.3"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "22dd2276c2f910ac6390b354e6aaf633c3fb55d4"
|
54
54
|
}
|