@bondsports/types 2.3.3 → 2.3.4-b-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/membership.dto.d.ts +4 -0
- package/dist/types/dto/membership.dto.js +7 -0
- package/dist/types/dto/membership.dto.js.map +1 -1
- package/dist/types/employees/types/enums.d.ts +8 -0
- package/dist/types/employees/types/enums.js +10 -1
- package/dist/types/employees/types/enums.js.map +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +97 -4
- package/dist/types/folders/dto/folder.dto.js +16 -3
- 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 +9 -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/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 +12 -0
- package/dist/types/folders/types/enums.js +18 -0
- package/dist/types/folders/types/enums.js.map +1 -0
- package/dist/types/folders/types/index.d.ts +63 -0
- package/dist/types/folders/types/index.js +20 -0
- package/dist/types/folders/types/index.js.map +1 -0
- 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/payment/dto/payment-plan.dto.d.ts +2 -1
- package/dist/types/payment/dto/payment-plan.dto.js.map +1 -1
- package/dist/types/payment/dto/payment.dto.d.ts +3 -0
- package/dist/types/payment/dto/payment.dto.js +4 -1
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/dto/refund.dto.d.ts +1 -0
- package/dist/types/payment/dto/refund.dto.js.map +1 -1
- package/dist/types/payment/types/enums/payment.enums.d.ts +5 -0
- package/dist/types/payment/types/enums/payment.enums.js +7 -1
- package/dist/types/payment/types/enums/payment.enums.js.map +1 -1
- package/dist/types/payment/types/interfaces/payment.interfaces.d.ts +7 -0
- package/dist/types/payment/types/interfaces/payment.interfaces.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +3 -0
- package/dist/types/programs-seasons/dto/program-seasons.dto.js +4 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +4 -0
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +3 -2
- package/dist/types/reservations/dto/reservation.dto.js +1 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +2 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -1
- package/dist/types/resources/types/enums/resources.enums.d.ts +2 -1
- package/dist/types/resources/types/enums/resources.enums.js +1 -0
- package/dist/types/resources/types/enums/resources.enums.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +12 -3
- 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 +4 -0
- package/dist/types/session-participants/dto/session.participant.dto.js.map +1 -1
- package/dist/types/session-participants/types/enums.d.ts +2 -1
- package/dist/types/session-participants/types/enums.js +1 -0
- package/dist/types/session-participants/types/enums.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +13 -0
- package/dist/types/util/models/types/index.d.ts +1 -0
- package/dist/types/util/models/types/index.js +1 -0
- package/dist/types/util/models/types/index.js.map +1 -1
- package/dist/types/util/models/types/orm.types.d.ts +4 -0
- package/dist/types/util/models/types/orm.types.js +9 -0
- package/dist/types/util/models/types/orm.types.js.map +1 -0
- package/package.json +5 -5
- package/LICENSE.md +0 -0
|
@@ -6,6 +6,7 @@ import { TimeUnit } from '@bondsports/date-time';
|
|
|
6
6
|
import { ReasonDto } from '../organization/dto/reason.dto';
|
|
7
7
|
import { Membership } from '../entity/Membership';
|
|
8
8
|
import { Customer } from '../entity/Customer';
|
|
9
|
+
import { MembershipSortByEnum } from '../employees/types/enums';
|
|
9
10
|
export declare class CreateMembershipDto {
|
|
10
11
|
organizationId: number;
|
|
11
12
|
name: string;
|
|
@@ -48,11 +49,14 @@ export declare class FindMembershipByFiltersDto extends PaginationQuery {
|
|
|
48
49
|
activities?: SportsEnum[];
|
|
49
50
|
membershipTypes?: MembershipTypeEnum[];
|
|
50
51
|
genders?: GenderEnum[];
|
|
52
|
+
renewal?: number[];
|
|
51
53
|
minAgeYears?: number;
|
|
52
54
|
maxAgeYears?: number;
|
|
53
55
|
excludePricing?: boolean;
|
|
54
56
|
includeRelatedProducts?: boolean;
|
|
55
57
|
includePast?: boolean;
|
|
58
|
+
orderBy?: MembershipSortByEnum;
|
|
59
|
+
order?: OrderByEnum;
|
|
56
60
|
}
|
|
57
61
|
export declare class FindMembershipsByUserIdDto {
|
|
58
62
|
userId: number;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddFamilyMemberToMembershipDto = exports.MembershipMemberImportResponseDto = exports.MembershipMemberDto = exports.MembershipImportResponseDto = exports.DateAndUserIdsDto = exports.SimpleMembershipDto = exports.GetMembershipDataQueryDto = exports.CancelMembershipDto = exports.FindMembersOptionsDto = exports.MemberIdDto = exports.MembershipIdsDto = exports.SetMembersStartDateByOrganization = exports.FindMembershipsByUserIdDto = exports.FindMembershipByFiltersDto = exports.FindMembershipsByOrganizationIdDto = exports.FindMembershipByIdDto = exports.UpdateMembershipMediaDto = exports.UpdateMembrshipDto = exports.CreateMembershipDto = void 0;
|
|
4
4
|
const import_dto_1 = require("../import/dto/import.dto");
|
|
5
|
+
const enums_service_1 = require("../services/enums.service");
|
|
5
6
|
const general_dto_1 = require("./general.dto");
|
|
7
|
+
const enums_1 = require("../employees/types/enums");
|
|
6
8
|
class CreateMembershipDto {
|
|
7
9
|
}
|
|
8
10
|
exports.CreateMembershipDto = CreateMembershipDto;
|
|
@@ -19,6 +21,11 @@ class FindMembershipsByOrganizationIdDto {
|
|
|
19
21
|
}
|
|
20
22
|
exports.FindMembershipsByOrganizationIdDto = FindMembershipsByOrganizationIdDto;
|
|
21
23
|
class FindMembershipByFiltersDto extends general_dto_1.PaginationQuery {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.orderBy = enums_1.MembershipSortByEnum.NAME;
|
|
27
|
+
this.order = enums_service_1.OrderByEnum.DESC;
|
|
28
|
+
}
|
|
22
29
|
}
|
|
23
30
|
exports.FindMembershipByFiltersDto = FindMembershipByFiltersDto;
|
|
24
31
|
class FindMembershipsByUserIdDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAAA,yDAA6D;
|
|
1
|
+
{"version":3,"file":"membership.dto.js","sourceRoot":"","sources":["../../../src/types/dto/membership.dto.ts"],"names":[],"mappings":";;;AAAA,yDAA6D;AAE7D,6DAUmC;AACnC,+CAA8D;AAK9D,oDAAgE;AAEhE,MAAa,mBAAmB;CA0C/B;AA1CD,kDA0CC;AAED,MAAa,kBAAmB,SAAQ,mBAAmB;CAE1D;AAFD,gDAEC;AAED,MAAa,wBAAwB;CAGpC;AAHD,4DAGC;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;IACxC,CAAC;CAAA;AA1BD,gEA0BC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,iCAAkC,SAAQ,kCAAkC;CAExF;AAFD,8EAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,qBAAsB,SAAQ,6BAAe;CAGzD;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAG/B;AAHD,kDAGC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAU7D;AAVD,8DAUC;AAED,MAAa,mBAAoB,SAAQ,0BAAY;CAYpD;AAZD,kDAYC;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"}
|
|
@@ -15,3 +15,11 @@ export declare enum OrganizationUserOrderBy {
|
|
|
15
15
|
EMPLOYMENT_END_DATE = "employmentEndDate",
|
|
16
16
|
REFERENCE_ID = "referenceId"
|
|
17
17
|
}
|
|
18
|
+
export declare enum MembershipSortByEnum {
|
|
19
|
+
NAME = "name",
|
|
20
|
+
CUSTOMER_TYPES = "customerTypes",
|
|
21
|
+
RENWAL = "renewal",
|
|
22
|
+
GENDER = "gender",
|
|
23
|
+
ACTIVITIES = "activities",
|
|
24
|
+
MEMEMBERSHIP_TYPE = "membershipType"
|
|
25
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationUserOrderBy = exports.UserOrderBy = exports.EmployeeStatus = void 0;
|
|
3
|
+
exports.MembershipSortByEnum = exports.OrganizationUserOrderBy = exports.UserOrderBy = exports.EmployeeStatus = void 0;
|
|
4
4
|
var EmployeeStatus;
|
|
5
5
|
(function (EmployeeStatus) {
|
|
6
6
|
EmployeeStatus["ACTIVE"] = "active";
|
|
@@ -21,4 +21,13 @@ var OrganizationUserOrderBy;
|
|
|
21
21
|
OrganizationUserOrderBy["EMPLOYMENT_END_DATE"] = "employmentEndDate";
|
|
22
22
|
OrganizationUserOrderBy["REFERENCE_ID"] = "referenceId";
|
|
23
23
|
})(OrganizationUserOrderBy = exports.OrganizationUserOrderBy || (exports.OrganizationUserOrderBy = {}));
|
|
24
|
+
var MembershipSortByEnum;
|
|
25
|
+
(function (MembershipSortByEnum) {
|
|
26
|
+
MembershipSortByEnum["NAME"] = "name";
|
|
27
|
+
MembershipSortByEnum["CUSTOMER_TYPES"] = "customerTypes";
|
|
28
|
+
MembershipSortByEnum["RENWAL"] = "renewal";
|
|
29
|
+
MembershipSortByEnum["GENDER"] = "gender";
|
|
30
|
+
MembershipSortByEnum["ACTIVITIES"] = "activities";
|
|
31
|
+
MembershipSortByEnum["MEMEMBERSHIP_TYPE"] = "membershipType";
|
|
32
|
+
})(MembershipSortByEnum = exports.MembershipSortByEnum || (exports.MembershipSortByEnum = {}));
|
|
24
33
|
//# sourceMappingURL=enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/employees/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;AACzB,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,wEAA6C,CAAA;IAC7C,oEAAyC,CAAA;IACzC,uDAA4B,CAAA;AAC7B,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC"}
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/employees/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACzB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACpB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACtB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,qCAAsB,CAAA;IACtB,uCAAwB,CAAA;AACzB,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,uBAKX;AALD,WAAY,uBAAuB;IAClC,4CAAiB,CAAA;IACjB,wEAA6C,CAAA;IAC7C,oEAAyC,CAAA;IACzC,uDAA4B,CAAA;AAC7B,CAAC,EALW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAKlC;AAED,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,wDAAgC,CAAA;IAChC,0CAAkB,CAAA;IAClB,yCAAiB,CAAA;IACjB,iDAAyB,CAAA;IACzB,4DAAoC,CAAA;AACrC,CAAC,EAPW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAO/B"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { ContentType, FolderContent } from '../entities/folder-content.entity';
|
|
2
|
-
import { Folder, ReferableType } from '../entities/folder.entity';
|
|
2
|
+
import { Folder, ReferableType, MetaType } from '../entities/folder.entity';
|
|
3
3
|
import { FolderInvite } from '../entities/folder-invite.entity';
|
|
4
4
|
import { PaginationQuery } from '../../dto/general.dto';
|
|
5
|
+
import { IGroupResponse, IRawFolderAsGroup } from '../types';
|
|
6
|
+
import { MediaDto } from '../../media/dto/media.dto';
|
|
7
|
+
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
8
|
+
import { SessionParticipantsPaymentStatusEnum } from '../../session-participants/types/enums';
|
|
9
|
+
import { CurrencyEnum } from '../../services/enums.service';
|
|
5
10
|
export declare class FolderByIdDto {
|
|
6
11
|
folderId: number;
|
|
7
12
|
}
|
|
@@ -9,13 +14,17 @@ export declare class FolderShowDto {
|
|
|
9
14
|
id: number;
|
|
10
15
|
name: string;
|
|
11
16
|
category?: string;
|
|
17
|
+
metaType?: MetaType;
|
|
12
18
|
organizationId?: number;
|
|
13
19
|
facilityId?: number;
|
|
14
20
|
referableType?: ReferableType;
|
|
15
21
|
referableId?: number;
|
|
16
22
|
mainMediaId?: number;
|
|
23
|
+
mainMediaUrl?: string;
|
|
17
24
|
createdAt?: Date;
|
|
18
25
|
updatedAt?: Date;
|
|
26
|
+
parentId?: number;
|
|
27
|
+
parentName?: string;
|
|
19
28
|
constructor(folder?: Folder);
|
|
20
29
|
}
|
|
21
30
|
export declare class CreateFolderDto {
|
|
@@ -26,16 +35,20 @@ export declare class CreateFolderDto {
|
|
|
26
35
|
facilityId?: number;
|
|
27
36
|
referableType?: ReferableType;
|
|
28
37
|
referableId?: number;
|
|
29
|
-
|
|
38
|
+
mainMedia?: MediaDto;
|
|
39
|
+
metaType?: MetaType;
|
|
30
40
|
}
|
|
31
41
|
export declare class UpdateFolderDto {
|
|
32
42
|
name?: string;
|
|
33
43
|
category?: string;
|
|
34
44
|
organizationId?: number;
|
|
35
45
|
mainMediaId?: number;
|
|
36
|
-
|
|
37
|
-
export declare class MoveFolderDto {
|
|
46
|
+
mainMedia?: MediaDto;
|
|
38
47
|
newParentFolderId?: number;
|
|
48
|
+
metaType?: MetaType;
|
|
49
|
+
}
|
|
50
|
+
export declare class DeleteFolderDto {
|
|
51
|
+
moveContentsToFolderId?: number;
|
|
39
52
|
}
|
|
40
53
|
export declare class AddContentDto {
|
|
41
54
|
contentType: ContentType;
|
|
@@ -54,6 +67,11 @@ export declare class GetFolderContentsDto extends PaginationQuery {
|
|
|
54
67
|
folderIds: number[];
|
|
55
68
|
contentTypes?: ContentType[];
|
|
56
69
|
}
|
|
70
|
+
export declare class FolderContentsMoveDto {
|
|
71
|
+
folderContentIds?: number[];
|
|
72
|
+
folderIds?: number[];
|
|
73
|
+
targetFolderId: number;
|
|
74
|
+
}
|
|
57
75
|
export declare class FolderInviteUuidDto {
|
|
58
76
|
uuid: string;
|
|
59
77
|
}
|
|
@@ -68,10 +86,55 @@ export declare class FolderInviteShowDto {
|
|
|
68
86
|
export declare class MoveFolderContentDto {
|
|
69
87
|
targetFolderId: number;
|
|
70
88
|
}
|
|
89
|
+
export declare class GetFolderByIdOptionsDto {
|
|
90
|
+
includeParent?: boolean;
|
|
91
|
+
}
|
|
71
92
|
export declare class GetFolderHierarchyDto {
|
|
72
93
|
referableType: ReferableType;
|
|
73
94
|
referableId: number;
|
|
74
95
|
depthLimit?: number;
|
|
96
|
+
excludeIds?: number[];
|
|
97
|
+
metaTypes?: MetaType[];
|
|
98
|
+
}
|
|
99
|
+
export declare class RawFolderAsGroupDto implements IRawFolderAsGroup {
|
|
100
|
+
id: number;
|
|
101
|
+
name: string;
|
|
102
|
+
fullPrice: number;
|
|
103
|
+
currentPaidAmount: number;
|
|
104
|
+
paymentStatuses?: PaymentStatusEnum[];
|
|
105
|
+
category?: string;
|
|
106
|
+
organizationId: number;
|
|
107
|
+
facilityId: number;
|
|
108
|
+
referableType?: ReferableType;
|
|
109
|
+
referableId?: number;
|
|
110
|
+
mainMediaUrl?: string;
|
|
111
|
+
parentId: number;
|
|
112
|
+
parentName: string;
|
|
113
|
+
waiversCount: number;
|
|
114
|
+
contentCount: number;
|
|
115
|
+
hasContents: boolean;
|
|
116
|
+
currentPaidCurrencies?: CurrencyEnum[];
|
|
117
|
+
metaType: MetaType;
|
|
118
|
+
}
|
|
119
|
+
export declare class FolderAsGroupResponseDto implements IGroupResponse {
|
|
120
|
+
id: number;
|
|
121
|
+
waiversCount: number;
|
|
122
|
+
currentPaidAmount: number;
|
|
123
|
+
currentPaidCurrency?: CurrencyEnum;
|
|
124
|
+
fullPrice: number;
|
|
125
|
+
paymentStatus?: SessionParticipantsPaymentStatusEnum;
|
|
126
|
+
name: string;
|
|
127
|
+
category?: string;
|
|
128
|
+
organizationId: number;
|
|
129
|
+
facilityId: number;
|
|
130
|
+
referableType?: ReferableType;
|
|
131
|
+
referableId?: number;
|
|
132
|
+
mainMediaUrl?: string;
|
|
133
|
+
parentId: number;
|
|
134
|
+
parentName: string;
|
|
135
|
+
contentCount: number;
|
|
136
|
+
hasContents: boolean;
|
|
137
|
+
metaType: MetaType;
|
|
75
138
|
}
|
|
76
139
|
export declare class FolderHierarchyResponseDto {
|
|
77
140
|
id: number;
|
|
@@ -86,7 +149,37 @@ export declare class FolderHierarchyResponseDto {
|
|
|
86
149
|
mainMediaId?: number;
|
|
87
150
|
parent_id?: number;
|
|
88
151
|
depth: number;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* Below is a visualization of the path property.
|
|
155
|
+
*
|
|
156
|
+
* Folder ID: 100 (Root)
|
|
157
|
+
* depth: 0
|
|
158
|
+
* path: [100]
|
|
159
|
+
*
|
|
160
|
+
* ├── Folder ID: 200
|
|
161
|
+
* │ depth: 1
|
|
162
|
+
* │ path: [100, 200]
|
|
163
|
+
* │
|
|
164
|
+
* │ ├── Folder ID: 201
|
|
165
|
+
* │ │ depth: 2
|
|
166
|
+
* │ │ path: [100, 200, 201]
|
|
167
|
+
* │ │
|
|
168
|
+
* │ └── Folder ID: 202
|
|
169
|
+
* │ depth: 2
|
|
170
|
+
* │ path: [100, 200, 202]
|
|
171
|
+
* │
|
|
172
|
+
* └── Folder ID: 300
|
|
173
|
+
* depth: 1
|
|
174
|
+
* path: [100, 300]
|
|
175
|
+
*
|
|
176
|
+
* └── Folder ID: 301
|
|
177
|
+
* depth: 2
|
|
178
|
+
* path: [100, 300, 301]
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
89
181
|
path: number[];
|
|
182
|
+
metaType: MetaType;
|
|
90
183
|
}
|
|
91
184
|
/**
|
|
92
185
|
* DTO to get a flat list of all the folders for a given referer (eg. ProgramSeason).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetFoldersDto = exports.FolderHierarchyResponseDto = exports.GetFolderHierarchyDto = exports.MoveFolderContentDto = exports.FolderInviteShowDto = exports.FolderInviteUuidDto = exports.GetFolderContentsDto = exports.FolderContentShowDto = exports.FolderContentByIdDto = exports.AddContentDto = exports.
|
|
3
|
+
exports.GetFoldersDto = exports.FolderHierarchyResponseDto = exports.FolderAsGroupResponseDto = exports.RawFolderAsGroupDto = exports.GetFolderHierarchyDto = exports.GetFolderByIdOptionsDto = exports.MoveFolderContentDto = exports.FolderInviteShowDto = exports.FolderInviteUuidDto = exports.FolderContentsMoveDto = exports.GetFolderContentsDto = exports.FolderContentShowDto = exports.FolderContentByIdDto = exports.AddContentDto = exports.DeleteFolderDto = exports.UpdateFolderDto = exports.CreateFolderDto = exports.FolderShowDto = exports.FolderByIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
class FolderByIdDto {
|
|
6
6
|
}
|
|
@@ -11,6 +11,7 @@ class FolderShowDto {
|
|
|
11
11
|
this.id = folder.id;
|
|
12
12
|
this.name = folder.name;
|
|
13
13
|
this.category = folder.category;
|
|
14
|
+
this.metaType = folder.metaType;
|
|
14
15
|
this.organizationId = folder.organizationId;
|
|
15
16
|
this.facilityId = folder.facilityId;
|
|
16
17
|
this.referableType = folder.referableType;
|
|
@@ -28,9 +29,9 @@ exports.CreateFolderDto = CreateFolderDto;
|
|
|
28
29
|
class UpdateFolderDto {
|
|
29
30
|
}
|
|
30
31
|
exports.UpdateFolderDto = UpdateFolderDto;
|
|
31
|
-
class
|
|
32
|
+
class DeleteFolderDto {
|
|
32
33
|
}
|
|
33
|
-
exports.
|
|
34
|
+
exports.DeleteFolderDto = DeleteFolderDto;
|
|
34
35
|
class AddContentDto {
|
|
35
36
|
}
|
|
36
37
|
exports.AddContentDto = AddContentDto;
|
|
@@ -50,6 +51,9 @@ exports.FolderContentShowDto = FolderContentShowDto;
|
|
|
50
51
|
class GetFolderContentsDto extends general_dto_1.PaginationQuery {
|
|
51
52
|
}
|
|
52
53
|
exports.GetFolderContentsDto = GetFolderContentsDto;
|
|
54
|
+
class FolderContentsMoveDto {
|
|
55
|
+
}
|
|
56
|
+
exports.FolderContentsMoveDto = FolderContentsMoveDto;
|
|
53
57
|
class FolderInviteUuidDto {
|
|
54
58
|
}
|
|
55
59
|
exports.FolderInviteUuidDto = FolderInviteUuidDto;
|
|
@@ -68,9 +72,18 @@ exports.FolderInviteShowDto = FolderInviteShowDto;
|
|
|
68
72
|
class MoveFolderContentDto {
|
|
69
73
|
}
|
|
70
74
|
exports.MoveFolderContentDto = MoveFolderContentDto;
|
|
75
|
+
class GetFolderByIdOptionsDto {
|
|
76
|
+
}
|
|
77
|
+
exports.GetFolderByIdOptionsDto = GetFolderByIdOptionsDto;
|
|
71
78
|
class GetFolderHierarchyDto {
|
|
72
79
|
}
|
|
73
80
|
exports.GetFolderHierarchyDto = GetFolderHierarchyDto;
|
|
81
|
+
class RawFolderAsGroupDto {
|
|
82
|
+
}
|
|
83
|
+
exports.RawFolderAsGroupDto = RawFolderAsGroupDto;
|
|
84
|
+
class FolderAsGroupResponseDto {
|
|
85
|
+
}
|
|
86
|
+
exports.FolderAsGroupResponseDto = FolderAsGroupResponseDto;
|
|
74
87
|
class FolderHierarchyResponseDto {
|
|
75
88
|
}
|
|
76
89
|
exports.FolderHierarchyResponseDto = FolderHierarchyResponseDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;
|
|
1
|
+
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAOxD,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,aAAa;IA6BzB,YAAY,MAAe;QAC1B,IAAI,MAAM,EAAE;YACX,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;YACpB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;YAChC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;YAChC,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;YAC5C,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;YACpC,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;YAC1C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACtC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAClC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;SAClC;IACF,CAAC;CACD;AA5CD,sCA4CC;AAED,MAAa,eAAe;CAkB3B;AAlBD,0CAkBC;AAED,MAAa,eAAe;CAc3B;AAdD,0CAcC;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AS,GAAoB,KAAK,CAAC;IACpC,CAAC;CAAA;AAJD,sCAIC"}
|
|
@@ -7,6 +7,10 @@ import { Media } from '../../media/entities/Media';
|
|
|
7
7
|
export declare enum ReferableType {
|
|
8
8
|
PROGRAM_SEASON = 10
|
|
9
9
|
}
|
|
10
|
+
export declare enum MetaType {
|
|
11
|
+
UNSPECIFIED = 0,
|
|
12
|
+
GROUP = 1
|
|
13
|
+
}
|
|
10
14
|
export declare class Folder extends BondBaseEntity {
|
|
11
15
|
organizationId?: number;
|
|
12
16
|
organization?: Organization;
|
|
@@ -16,6 +20,7 @@ export declare class Folder extends BondBaseEntity {
|
|
|
16
20
|
referableId?: number;
|
|
17
21
|
name?: string;
|
|
18
22
|
category?: string;
|
|
23
|
+
metaType: MetaType;
|
|
19
24
|
mainMediaId?: number;
|
|
20
25
|
mainMedia?: Media;
|
|
21
26
|
contents: FolderContent[];
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Folder = exports.ReferableType = void 0;
|
|
3
|
+
exports.Folder = exports.MetaType = exports.ReferableType = void 0;
|
|
4
4
|
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
|
5
5
|
var ReferableType;
|
|
6
6
|
(function (ReferableType) {
|
|
7
7
|
ReferableType[ReferableType["PROGRAM_SEASON"] = 10] = "PROGRAM_SEASON";
|
|
8
8
|
})(ReferableType = exports.ReferableType || (exports.ReferableType = {}));
|
|
9
|
+
// The Folder module considers MetaType an opaque value.
|
|
10
|
+
// It is passed around and enabled in various queries, but otherwise has no affect on the Folder module's behavior.
|
|
11
|
+
// Consumers may extend this enum as needed.
|
|
12
|
+
var MetaType;
|
|
13
|
+
(function (MetaType) {
|
|
14
|
+
MetaType[MetaType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
MetaType[MetaType["GROUP"] = 1] = "GROUP";
|
|
16
|
+
})(MetaType = exports.MetaType || (exports.MetaType = {}));
|
|
9
17
|
class Folder extends BondBaseEntity_1.BondBaseEntity {
|
|
10
18
|
}
|
|
11
19
|
exports.Folder = Folder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../../src/types/folders/entities/folder.entity.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAG7D,IAAY,aAEX;AAFD,WAAY,aAAa;IACxB,sEAAmB,CAAA;AACpB,CAAC,EAFW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAExB;AAED,MAAa,MAAO,SAAQ,+BAAc;
|
|
1
|
+
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../../src/types/folders/entities/folder.entity.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAG7D,IAAY,aAEX;AAFD,WAAY,aAAa;IACxB,sEAAmB,CAAA;AACpB,CAAC,EAFW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAExB;AAED,wDAAwD;AACxD,mHAAmH;AACnH,4CAA4C;AAC5C,IAAY,QAGX;AAHD,WAAY,QAAQ;IACnB,qDAAe,CAAA;IACf,yCAAS,CAAA;AACV,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAED,MAAa,MAAO,SAAQ,+BAAc;CA8BzC;AA9BD,wBA8BC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dto"), exports);
|
|
18
18
|
__exportStar(require("./entities"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/folders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/folders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_FOLDER_DEPTH_LIMIT = exports.DEFAULT_FOLDER_RELATIONS = void 0;
|
|
4
|
+
exports.DEFAULT_FOLDER_RELATIONS = ['contents', 'invites', 'mainMedia'];
|
|
5
|
+
exports.DEFAULT_FOLDER_DEPTH_LIMIT = 10;
|
|
6
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../src/types/folders/types/consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAChE,QAAA,0BAA0B,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum FolderGroupsPaymentStatusEnum {
|
|
2
|
+
PAID = "paid",
|
|
3
|
+
UNPAID = "unpaid",
|
|
4
|
+
PARTIALLY_PAID = "partially_paid"
|
|
5
|
+
}
|
|
6
|
+
export declare enum GroupsSortByFieldsEnum {
|
|
7
|
+
NAME = "name",
|
|
8
|
+
PARENT_NAME = "parentName",
|
|
9
|
+
CONTENT_COUNT = "contentCount",
|
|
10
|
+
WAIVERS_COUNT = "waiversCount",
|
|
11
|
+
PAID_AMOUNT = "paidAmount"
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GroupsSortByFieldsEnum = exports.FolderGroupsPaymentStatusEnum = void 0;
|
|
4
|
+
var FolderGroupsPaymentStatusEnum;
|
|
5
|
+
(function (FolderGroupsPaymentStatusEnum) {
|
|
6
|
+
FolderGroupsPaymentStatusEnum["PAID"] = "paid";
|
|
7
|
+
FolderGroupsPaymentStatusEnum["UNPAID"] = "unpaid";
|
|
8
|
+
FolderGroupsPaymentStatusEnum["PARTIALLY_PAID"] = "partially_paid";
|
|
9
|
+
})(FolderGroupsPaymentStatusEnum = exports.FolderGroupsPaymentStatusEnum || (exports.FolderGroupsPaymentStatusEnum = {}));
|
|
10
|
+
var GroupsSortByFieldsEnum;
|
|
11
|
+
(function (GroupsSortByFieldsEnum) {
|
|
12
|
+
GroupsSortByFieldsEnum["NAME"] = "name";
|
|
13
|
+
GroupsSortByFieldsEnum["PARENT_NAME"] = "parentName";
|
|
14
|
+
GroupsSortByFieldsEnum["CONTENT_COUNT"] = "contentCount";
|
|
15
|
+
GroupsSortByFieldsEnum["WAIVERS_COUNT"] = "waiversCount";
|
|
16
|
+
GroupsSortByFieldsEnum["PAID_AMOUNT"] = "paidAmount";
|
|
17
|
+
})(GroupsSortByFieldsEnum = exports.GroupsSortByFieldsEnum || (exports.GroupsSortByFieldsEnum = {}));
|
|
18
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../src/types/folders/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACxC,8CAAa,CAAA;IACb,kDAAiB,CAAA;IACjB,kEAAiC,CAAA;AAClC,CAAC,EAJW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAIxC;AAED,IAAY,sBAMX;AAND,WAAY,sBAAsB;IACjC,uCAAa,CAAA;IACb,oDAA0B,CAAA;IAC1B,wDAA8B,CAAA;IAC9B,wDAA8B,CAAA;IAC9B,oDAA0B,CAAA;AAC3B,CAAC,EANW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAMjC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Folder, MetaType, ReferableType } from '../entities/folder.entity';
|
|
2
|
+
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
3
|
+
import { SessionParticipantsPaymentStatusEnum } from '../../session-participants/types/enums';
|
|
4
|
+
import { CurrencyEnum } from '../../services/enums.service';
|
|
5
|
+
import { FolderContent } from '../entities/folder-content.entity';
|
|
6
|
+
export interface IRawFolderAsGroup {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
fullPrice: number;
|
|
10
|
+
currentPaidAmount: number;
|
|
11
|
+
currentPaidCurrencies?: CurrencyEnum[];
|
|
12
|
+
paymentStatuses?: PaymentStatusEnum[];
|
|
13
|
+
category?: string;
|
|
14
|
+
organizationId: number;
|
|
15
|
+
facilityId: number;
|
|
16
|
+
referableType?: ReferableType;
|
|
17
|
+
referableId?: number;
|
|
18
|
+
mainMediaUrl?: string;
|
|
19
|
+
parentId: number;
|
|
20
|
+
parentName: string;
|
|
21
|
+
waiversCount: number;
|
|
22
|
+
contentCount: number;
|
|
23
|
+
hasContents: boolean;
|
|
24
|
+
metaType: MetaType;
|
|
25
|
+
createdAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
}
|
|
28
|
+
export interface IGroupResponse {
|
|
29
|
+
id: number;
|
|
30
|
+
name: string;
|
|
31
|
+
fullPrice: number;
|
|
32
|
+
currentPaidAmount: number;
|
|
33
|
+
currentPaidCurrency?: CurrencyEnum;
|
|
34
|
+
paymentStatus?: SessionParticipantsPaymentStatusEnum;
|
|
35
|
+
category?: string;
|
|
36
|
+
organizationId: number;
|
|
37
|
+
facilityId: number;
|
|
38
|
+
referableType?: ReferableType;
|
|
39
|
+
referableId?: number;
|
|
40
|
+
mainMediaUrl?: string;
|
|
41
|
+
parentId: number;
|
|
42
|
+
parentName: string;
|
|
43
|
+
waiversCount: number;
|
|
44
|
+
contentCount: number;
|
|
45
|
+
hasContents: boolean;
|
|
46
|
+
metaType: MetaType;
|
|
47
|
+
createdAt?: Date;
|
|
48
|
+
updatedAt?: Date;
|
|
49
|
+
}
|
|
50
|
+
export interface IContentsAndContentIds {
|
|
51
|
+
contents: FolderContent[];
|
|
52
|
+
folderContentIds: number[];
|
|
53
|
+
}
|
|
54
|
+
export interface IFolderWithOptionalParent {
|
|
55
|
+
folder: Folder;
|
|
56
|
+
parentFolder?: Folder;
|
|
57
|
+
}
|
|
58
|
+
export interface IFolderCategory {
|
|
59
|
+
category_name: string;
|
|
60
|
+
}
|
|
61
|
+
export * from './consts';
|
|
62
|
+
export * from './enums';
|
|
63
|
+
export * from './index';
|
|
@@ -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("./consts"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
19
|
+
__exportStar(require("./index"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiEA,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NotificationClassification } from '@bondsports/notifications-sdk';
|
|
1
2
|
export declare class BaseNotificationDto {
|
|
2
3
|
organizationId: number;
|
|
3
4
|
facilityId: number;
|
|
@@ -9,4 +10,5 @@ export declare class BaseNotificationDto {
|
|
|
9
10
|
subject: string;
|
|
10
11
|
bodyHtml: string;
|
|
11
12
|
enrichWithLogo: boolean;
|
|
13
|
+
classification?: NotificationClassification;
|
|
12
14
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseNotificationDto = void 0;
|
|
2
4
|
/*
|
|
3
5
|
*
|
|
4
6
|
* Backoffice UI sends notifications requests to apiv2 with DTOs based on BaseNotificationDto.
|
|
@@ -8,8 +10,6 @@
|
|
|
8
10
|
* - ProgramsSeasons controller has endpoints to send notifications to attendees using it's own subclass DTOs.
|
|
9
11
|
* - NotificationBlasts controller has endpoints to send notifications to recipients using segment-building query DTOs that subclass this.
|
|
10
12
|
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BaseNotificationDto = void 0;
|
|
13
13
|
/* Common properties for all Notifications coming from UI */
|
|
14
14
|
class BaseNotificationDto {
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backoffice.notify.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/backoffice.notify.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backoffice.notify.dto.js","sourceRoot":"","sources":["../../../../src/types/notifications/dto/backoffice.notify.dto.ts"],"names":[],"mappings":";;;AACA;;;;;;;;GAQG;AAEH,4DAA4D;AAC5D,MAAa,mBAAmB;CA0B/B;AA1BD,kDA0BC"}
|
|
@@ -25,6 +25,7 @@ export declare class CreatePaymentPlanDto extends PaymentPlanDto {
|
|
|
25
25
|
export declare class CalcPaymentPlanDto extends PaymentPlanDto {
|
|
26
26
|
amountToSplit: number;
|
|
27
27
|
organizationId?: number;
|
|
28
|
+
downpayment?: number;
|
|
28
29
|
}
|
|
29
30
|
export declare class BasicInstallmentDataDto extends ByOrganizationIdDto {
|
|
30
31
|
invoiceId: number;
|
|
@@ -38,7 +39,7 @@ export declare class CreateScheduledPaymentsDto extends BasicInstallmentDataDto
|
|
|
38
39
|
}
|
|
39
40
|
export declare class ScheduledPaymentDto {
|
|
40
41
|
price: number;
|
|
41
|
-
plannedDate
|
|
42
|
+
plannedDate?: Date;
|
|
42
43
|
originalPlannedDate?: Date;
|
|
43
44
|
}
|
|
44
45
|
export declare class FutureInstallmentsIdsDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAM9E,MAAa,sBAAsB;CAQlC;AARD,wDAQC;AACD,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,kBAAmB,SAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"payment-plan.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-plan.dto.ts"],"names":[],"mappings":";;;AACA,8EAA8E;AAM9E,MAAa,sBAAsB;CAQlC;AARD,wDAQC;AACD,MAAa,cAAc;CAgB1B;AAhBD,wCAgBC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAEvD;AAFD,oDAEC;AAED,MAAa,kBAAmB,SAAQ,cAAc;CAMrD;AAND,gDAMC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAM/D;AAND,0DAMC;AAED,MAAa,0BAA2B,SAAQ,uBAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,2BAA4B,SAAQ,wBAAwB;CAIxE;AAJD,kEAIC;AAED,MAAa,0BAA0B;CAYtC;AAZD,gEAYC;AAED,MAAa,kBAAkB;CAI9B;AAJD,gDAIC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StripeAccountStatusDto = exports.PaymentSettingsDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.PaymentDataDto = 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.ByPaymentAndCustomerDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
3
|
+
exports.UpdatePaymentStatusDto = exports.StripeAccountStatusDto = exports.PaymentSettingsDto = exports.PaymentDto = exports.GetPaymentMethodsDto = exports.SendPaymentRequestDto = exports.RevertMetaDto = exports.RemoveResourceDto = exports.NotePrivacyDto = exports.UpdateNoteContentDto = exports.CreateNoteDto = exports.AddToInvoiceDto = exports.SendReceiptDataDto = exports.PaymentDataDto = 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.ByPaymentAndCustomerDto = exports.PaymentIdDto = exports.CustomerIdDto = void 0;
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
|
5
5
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
6
6
|
const userPaymentMethod_dto_1 = require("../../dto/userPaymentMethod.dto");
|
|
@@ -98,4 +98,7 @@ exports.PaymentSettingsDto = PaymentSettingsDto;
|
|
|
98
98
|
class StripeAccountStatusDto {
|
|
99
99
|
}
|
|
100
100
|
exports.StripeAccountStatusDto = StripeAccountStatusDto;
|
|
101
|
+
class UpdatePaymentStatusDto {
|
|
102
|
+
}
|
|
103
|
+
exports.UpdatePaymentStatusDto = UpdatePaymentStatusDto;
|
|
101
104
|
//# sourceMappingURL=payment.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAwD;AACxD,8EAA8E;AAoB9E,2EAA6E;AAc7E,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,uBAAwB,SAAQ,YAAY;CAExD;AAFD,0DAEC;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,q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C;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAED,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"refund.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/refund.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AAED,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAED,MAAa,gBAAgB;CAQ5B;AARD,4CAQC;AAED,MAAa,SAAS;CAoBrB;AApBD,8BAoBC"}
|