@bondsports/types 2.3.21 → 2.3.27
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 +1 -0
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.d.ts +0 -9
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.js +0 -1
- package/dist/types/cart/types/interfaces/validate-cart.interfaces.js.map +1 -1
- package/dist/types/dto/events.dto.d.ts +2 -0
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/entity/Invoice.d.ts +2 -2
- package/dist/types/entity/Invoice.js.map +1 -1
- package/dist/types/entity/InvoiceHistory.d.ts +34 -0
- package/dist/types/entity/InvoiceHistory.js +8 -0
- package/dist/types/entity/InvoiceHistory.js.map +1 -0
- package/dist/types/entity/index.d.ts +1 -0
- package/dist/types/entity/index.js +1 -0
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +17 -14
- package/dist/types/folders/dto/folder.dto.js +2 -2
- package/dist/types/folders/dto/folder.dto.js.map +1 -1
- package/dist/types/folders/entities/folder-content.entity.d.ts +1 -0
- package/dist/types/folders/entities/folder-content.entity.js.map +1 -1
- package/dist/types/folders/entities/folder.entity.d.ts +4 -9
- package/dist/types/folders/entities/folder.entity.js +1 -16
- package/dist/types/folders/entities/folder.entity.js.map +1 -1
- package/dist/types/folders/types/classes.d.ts +6 -4
- package/dist/types/folders/types/classes.js.map +1 -1
- package/dist/types/folders/types/folders.enums.d.ts +22 -0
- package/dist/types/folders/types/folders.enums.js +35 -0
- package/dist/types/folders/types/folders.enums.js.map +1 -0
- package/dist/types/folders/types/index.d.ts +8 -7
- package/dist/types/folders/types/index.js +2 -2
- package/dist/types/folders/types/index.js.map +1 -1
- package/dist/types/folders/types/interfaces/folder-content.interfaces.d.ts +19 -0
- package/dist/types/folders/types/{consts.js → session-participants.consts.js} +3 -2
- package/dist/types/folders/types/session-participants.consts.js.map +1 -0
- package/dist/types/invoice/dto/index.d.ts +1 -0
- package/dist/types/invoice/dto/index.js +1 -0
- package/dist/types/invoice/dto/index.js.map +1 -1
- package/dist/types/invoice/dto/invoice-history.dto.d.ts +28 -0
- package/dist/types/invoice/dto/invoice-history.dto.js +8 -0
- package/dist/types/invoice/dto/invoice-history.dto.js.map +1 -0
- package/dist/types/invoice/dto/invoice.dto.d.ts +13 -1
- package/dist/types/invoice/dto/invoice.dto.js +9 -1
- package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +23 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/notifications/dto/backoffice.notify.dto.d.ts +0 -1
- package/dist/types/notifications/dto/backoffice.notify.dto.js.map +1 -1
- package/dist/types/notifications/dto/notification.response.dto.d.ts +1 -0
- package/dist/types/notifications/dto/notification.response.dto.js.map +1 -1
- package/dist/types/notifications/types/interfaces/notification.interfaces.d.ts +5 -0
- package/dist/types/payment/dto/payment.dto.d.ts +2 -0
- package/dist/types/payment/dto/payment.dto.js.map +1 -1
- package/dist/types/payment/types/enums/payment.enums.d.ts +6 -1
- 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/product-pricing/types/consts/product-resource.consts.d.ts +1 -1
- package/dist/types/product-pricing/types/interfaces/index.d.ts +2 -1
- package/dist/types/product-pricing/types/interfaces/index.js +2 -1
- package/dist/types/product-pricing/types/interfaces/index.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -1
- package/dist/types/product-pricing/types/interfaces/{porduct-resource.interfaces.d.ts → product-resource.interfaces.d.ts} +8 -0
- package/dist/types/product-pricing/types/interfaces/{porduct-resource.interfaces.js → product-resource.interfaces.js} +1 -1
- package/dist/types/product-pricing/types/interfaces/product-resource.interfaces.js.map +1 -0
- package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.d.ts +9 -0
- package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.js +4 -0
- package/dist/types/product-pricing/types/interfaces/valdiate-resources.interface.js.map +1 -0
- package/dist/types/purchase/dto/purchase.dto.d.ts +2 -1
- package/dist/types/purchase/dto/purchase.dto.js.map +1 -1
- package/dist/types/purchase/types/interfaces/purchase.interfaces.d.ts +1 -13
- package/dist/types/resources/dto/resource.dto.d.ts +1 -1
- package/dist/types/services/enums.service.d.ts +2 -4
- package/dist/types/services/enums.service.js +3 -6
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +11 -5
- package/dist/types/session-participants/dto/get.session.participant.dto.js +5 -2
- package/dist/types/session-participants/dto/get.session.participant.dto.js.map +1 -1
- package/dist/types/session-participants/dto/index.d.ts +2 -0
- package/dist/types/session-participants/dto/index.js +2 -0
- package/dist/types/session-participants/dto/index.js.map +1 -1
- package/dist/types/session-participants/dto/move-session-participants.dto.d.ts +9 -0
- package/dist/types/session-participants/dto/move-session-participants.dto.js +10 -0
- package/dist/types/session-participants/dto/move-session-participants.dto.js.map +1 -0
- package/dist/types/session-participants/dto/notify-session-participants.dto.d.ts +7 -0
- package/dist/types/session-participants/dto/notify-session-participants.dto.js +7 -0
- package/dist/types/session-participants/dto/notify-session-participants.dto.js.map +1 -0
- package/dist/types/session-participants/types/consts.d.ts +6 -2
- package/dist/types/session-participants/types/consts.js +10 -3
- package/dist/types/session-participants/types/consts.js.map +1 -1
- package/dist/types/session-participants/types/interfaces.d.ts +15 -2
- package/dist/types/util/models/types/orm.types.d.ts +6 -0
- package/dist/types/waitlist/types/waitlist.interface.d.ts +6 -1
- package/dist/types/waitlist/types/waitlist.interface.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/folders/types/consts.js.map +0 -1
- package/dist/types/folders/types/enums.d.ts +0 -11
- package/dist/types/folders/types/enums.js +0 -17
- package/dist/types/folders/types/enums.js.map +0 -1
- package/dist/types/product-pricing/types/interfaces/porduct-resource.interfaces.js.map +0 -1
- /package/dist/types/folders/types/{consts.d.ts → session-participants.consts.d.ts} +0 -0
@@ -43,6 +43,7 @@ export interface ICreateCartItem {
|
|
43
43
|
export interface IValidateCartOptions {
|
44
44
|
overridePrice?: boolean;
|
45
45
|
skipValidations?: boolean;
|
46
|
+
validateWaitlist?: boolean;
|
46
47
|
throwError?: boolean;
|
47
48
|
}
|
48
49
|
export interface ICreateCartOptions extends IValidateCartOptions {
|
@@ -1,16 +1,7 @@
|
|
1
|
-
import { Event } from '../../../entity/Events';
|
2
|
-
import { Membership } from '../../../entity/Membership';
|
3
|
-
import { ProgramSeason } from '../../../programs-seasons/entities/ProgramSeason';
|
4
|
-
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
5
1
|
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
6
2
|
export type IPriceValidationResult = {
|
7
3
|
currentPrices: IPricesOfProductsResults[];
|
8
4
|
};
|
9
|
-
export interface ICartResourcesDict {
|
10
|
-
[ResourceNameTypeEnum.EVENT]: Map<number, Event>;
|
11
|
-
[ResourceNameTypeEnum.PROGRAM_SEASON]: Map<number, ProgramSeason>;
|
12
|
-
[ResourceNameTypeEnum.MEMBERSHIP]: Map<number, Membership>;
|
13
|
-
}
|
14
5
|
export interface IPricingValidator<TReturn = IPriceValidationResult> {
|
15
6
|
validate(): TReturn;
|
16
7
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validate-cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/validate-cart.interfaces.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"validate-cart.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/interfaces/validate-cart.interfaces.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAAgG;AAEhG,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;
|
1
|
+
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAAgG;AAEhG,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAyCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAM1C;AAND,4CAMC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
|
@@ -3,11 +3,11 @@ import { PaymentFee } from '../fee/entities/PaymentFee';
|
|
3
3
|
import { ItemDiscountDto } from '../payment/dto/discount.dto';
|
4
4
|
import { FutureInstallment } from '../payment/entities/FutureInstallment';
|
5
5
|
import { Payment } from '../payment/entities/Payment';
|
6
|
-
import { PaymentMethodTypeEnum, PaymentStatusEnum } from '../payment/types/enums/payment.enums';
|
6
|
+
import { PaymentMethodTypeEnum, PaymentStatusEnum, DueDateTypeEnum } from '../payment/types/enums/payment.enums';
|
7
7
|
import { Addon } from '../reservations/entities/addon.entity';
|
8
8
|
import { Reservation } from '../reservations/entities/reservation.entity';
|
9
9
|
import { Slot } from '../reservations/entities/slot.entity';
|
10
|
-
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum
|
10
|
+
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
11
11
|
import { User } from '../user/entities/User';
|
12
12
|
import { BondBaseEntity } from './BondBaseEntity';
|
13
13
|
import { Customer } from './Customer';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"Invoice.js","sourceRoot":"","sources":["../../../src/types/entity/Invoice.ts"],"names":[],"mappings":";;;AAiBA,qDAAkD;AAOlD,MAAa,OAAQ,SAAQ,+BAAc;CA+F1C;AA/FD,0BA+FC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { PaymentMethodTypeEnum, PaymentStatusEnum, DueDateTypeEnum } from '../payment/types/enums/payment.enums';
|
2
|
+
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../services/enums.service';
|
3
|
+
import { User } from '../user/entities/User';
|
4
|
+
import { BondBaseEntity } from './BondBaseEntity';
|
5
|
+
import { Invoice } from './Invoice';
|
6
|
+
export declare class InvoiceHistory extends BondBaseEntity {
|
7
|
+
invoicePrimaryId?: number;
|
8
|
+
invoiceId?: string;
|
9
|
+
invoice?: Invoice;
|
10
|
+
price: number;
|
11
|
+
status?: InvoiceStatusEnum;
|
12
|
+
sentForClientDate?: Date;
|
13
|
+
payingUserId?: number;
|
14
|
+
payingUser?: User;
|
15
|
+
paymentStatus: PaymentStatusEnum;
|
16
|
+
paymentMethodId?: string;
|
17
|
+
paymentType?: PaymentMethodTypeEnum;
|
18
|
+
paidAmount: number;
|
19
|
+
currency: CurrencyEnum;
|
20
|
+
isScheduled: boolean;
|
21
|
+
isRefunded: boolean;
|
22
|
+
isVoided: boolean;
|
23
|
+
importedId?: string;
|
24
|
+
creatingUserId?: number;
|
25
|
+
shiftId?: number;
|
26
|
+
platform?: PlatformsEnum;
|
27
|
+
isPublic: boolean;
|
28
|
+
parentId?: number;
|
29
|
+
dueDate?: Date;
|
30
|
+
dueDateType?: DueDateTypeEnum;
|
31
|
+
isOverdue: boolean;
|
32
|
+
previousHistoryId?: number;
|
33
|
+
actionId?: string;
|
34
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InvoiceHistory = void 0;
|
4
|
+
const BondBaseEntity_1 = require("./BondBaseEntity");
|
5
|
+
class InvoiceHistory extends BondBaseEntity_1.BondBaseEntity {
|
6
|
+
}
|
7
|
+
exports.InvoiceHistory = InvoiceHistory;
|
8
|
+
//# sourceMappingURL=InvoiceHistory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InvoiceHistory.js","sourceRoot":"","sources":["../../../src/types/entity/InvoiceHistory.ts"],"names":[],"mappings":";;;AAIA,qDAAkD;AAGlD,MAAa,cAAe,SAAQ,+BAAc;CAsDjD;AAtDD,wCAsDC"}
|
@@ -24,6 +24,7 @@ export * from './Group';
|
|
24
24
|
export * from './GroupItemsPricing';
|
25
25
|
export * from './GroupsInDivisions';
|
26
26
|
export * from './Invoice';
|
27
|
+
export * from './InvoiceHistory';
|
27
28
|
export * from './InvoiceMails';
|
28
29
|
export * from './InvoiceNote';
|
29
30
|
export * from './InvoiceToPayment';
|
@@ -40,6 +40,7 @@ __exportStar(require("./Group"), exports);
|
|
40
40
|
__exportStar(require("./GroupItemsPricing"), exports);
|
41
41
|
__exportStar(require("./GroupsInDivisions"), exports);
|
42
42
|
__exportStar(require("./Invoice"), exports);
|
43
|
+
__exportStar(require("./InvoiceHistory"), exports);
|
43
44
|
__exportStar(require("./InvoiceMails"), exports);
|
44
45
|
__exportStar(require("./InvoiceNote"), exports);
|
45
46
|
__exportStar(require("./InvoiceToPayment"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,wDAAsC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,8CAA4B;AAC5B,kDAAgC;AAChC,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,8DAA4C;AAC5C,kDAAgC;AAChC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,uDAAqC;AACrC,kDAAgC;AAChC,0CAAwB;AACxB,sDAAoC;AACpC,sDAAoC;AACpC,4CAA0B;AAC1B,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,8DAA4C;AAC5C,gDAA8B;AAC9B,qEAAmD;AACnD,8CAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,iEAA+C;AAC/C,kDAAgC;AAChC,uDAAqC;AACrC,2DAAyC;AACzC,kDAAgC;AAChC,2CAAyB;AACzB,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,yDAAuC;AACvC,gDAA8B;AAC9B,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,iDAA+B;AAC/B,kDAAgC;AAChC,6CAA2B;AAC3B,wDAAsC"}
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import { ContentType } from '../entities/folder-content.entity';
|
2
|
-
import { ReferableType, MetaType } from '../entities/folder.entity';
|
3
2
|
import { PaginationQuery } from '../../dto/general.dto';
|
4
3
|
import { IGroupResponse } from '../types';
|
5
4
|
import { MediaDto } from '../../media/dto/media.dto';
|
6
5
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
7
6
|
import { CurrencyEnum, OrderByEnum } from '../../services/enums.service';
|
8
7
|
import { BaseNotificationDto } from '../../notifications/dto/backoffice.notify.dto';
|
9
|
-
import {
|
8
|
+
import { FolderSortColumnEnum, RegistrationAccessEnum, MetaTypeEnum, ReferableTypeEnum } from '../types/folders.enums';
|
10
9
|
export declare class FolderByIdDto {
|
11
10
|
folderId: number;
|
12
11
|
}
|
@@ -14,12 +13,13 @@ export declare class FolderShowDto {
|
|
14
13
|
id: number;
|
15
14
|
name: string;
|
16
15
|
category?: string;
|
17
|
-
metaType?:
|
16
|
+
metaType?: MetaTypeEnum;
|
18
17
|
organizationId?: number;
|
19
18
|
facilityId?: number;
|
20
|
-
referableType?:
|
19
|
+
referableType?: ReferableTypeEnum;
|
21
20
|
referableId?: number;
|
22
21
|
mainMediaId?: number;
|
22
|
+
registrationAccess: RegistrationAccessEnum;
|
23
23
|
mainMediaUrl?: string;
|
24
24
|
createdAt?: Date;
|
25
25
|
updatedAt?: Date;
|
@@ -32,10 +32,11 @@ export declare class CreateFolderDto {
|
|
32
32
|
category?: string;
|
33
33
|
organizationId?: number;
|
34
34
|
facilityId?: number;
|
35
|
-
referableType?:
|
35
|
+
referableType?: ReferableTypeEnum;
|
36
36
|
referableId?: number;
|
37
37
|
mainMedia?: MediaDto;
|
38
|
-
|
38
|
+
registrationAccess?: RegistrationAccessEnum;
|
39
|
+
metaType?: MetaTypeEnum;
|
39
40
|
}
|
40
41
|
export declare class UpdateFolderDto {
|
41
42
|
name?: string;
|
@@ -43,8 +44,9 @@ export declare class UpdateFolderDto {
|
|
43
44
|
organizationId?: number;
|
44
45
|
mainMediaId?: number;
|
45
46
|
mainMedia?: MediaDto;
|
47
|
+
registrationAccess?: RegistrationAccessEnum;
|
46
48
|
newParentFolderId?: number;
|
47
|
-
metaType?:
|
49
|
+
metaType?: MetaTypeEnum;
|
48
50
|
}
|
49
51
|
export declare class DeleteFolderDto {
|
50
52
|
moveContentsToFolderId?: number;
|
@@ -87,11 +89,11 @@ export declare class GetFolderByIdOptionsDto {
|
|
87
89
|
includeParent?: boolean;
|
88
90
|
}
|
89
91
|
export declare class GetFolderHierarchyDto {
|
90
|
-
referableType:
|
92
|
+
referableType: ReferableTypeEnum;
|
91
93
|
referableId: number;
|
92
94
|
depthLimit?: number;
|
93
95
|
excludeIds?: number[];
|
94
|
-
metaTypes?:
|
96
|
+
metaTypes?: MetaTypeEnum[];
|
95
97
|
}
|
96
98
|
export declare class FolderAsGroupResponseDto implements IGroupResponse {
|
97
99
|
id: number;
|
@@ -104,14 +106,15 @@ export declare class FolderAsGroupResponseDto implements IGroupResponse {
|
|
104
106
|
category?: string;
|
105
107
|
organizationId: number;
|
106
108
|
facilityId: number;
|
107
|
-
referableType?:
|
109
|
+
referableType?: ReferableTypeEnum;
|
108
110
|
referableId?: number;
|
109
111
|
mainMediaUrl?: string;
|
112
|
+
registrationAccess: number;
|
110
113
|
parentId: number;
|
111
114
|
parentName: string;
|
112
115
|
contentCount: number;
|
113
116
|
hasContents: boolean;
|
114
|
-
metaType:
|
117
|
+
metaType: MetaTypeEnum;
|
115
118
|
}
|
116
119
|
export declare class FolderHierarchyResponseDto {
|
117
120
|
id: number;
|
@@ -119,7 +122,7 @@ export declare class FolderHierarchyResponseDto {
|
|
119
122
|
category?: string;
|
120
123
|
organizationId: number;
|
121
124
|
facilityId?: number;
|
122
|
-
referableType:
|
125
|
+
referableType: ReferableTypeEnum;
|
123
126
|
referableId: number;
|
124
127
|
createdAt: Date;
|
125
128
|
updatedAt: Date;
|
@@ -156,7 +159,7 @@ export declare class FolderHierarchyResponseDto {
|
|
156
159
|
*
|
157
160
|
*/
|
158
161
|
path: number[];
|
159
|
-
metaType:
|
162
|
+
metaType: MetaTypeEnum;
|
160
163
|
}
|
161
164
|
/**
|
162
165
|
* DTO to get a flat list of all the folders for a given referer (eg. ProgramSeason).
|
@@ -169,7 +172,7 @@ export declare class FolderHierarchyResponseDto {
|
|
169
172
|
*
|
170
173
|
*/
|
171
174
|
export declare class GetFoldersDto extends GetFolderHierarchyDto {
|
172
|
-
sortColumn?:
|
175
|
+
sortColumn?: FolderSortColumnEnum;
|
173
176
|
sortOrder?: OrderByEnum;
|
174
177
|
}
|
175
178
|
/**
|
@@ -4,7 +4,7 @@ exports.NotifyFolderContentsUsersDto = exports.NotifyFoldersUsersDto = exports.G
|
|
4
4
|
const general_dto_1 = require("../../dto/general.dto");
|
5
5
|
const enums_service_1 = require("../../services/enums.service");
|
6
6
|
const backoffice_notify_dto_1 = require("../../notifications/dto/backoffice.notify.dto");
|
7
|
-
const
|
7
|
+
const folders_enums_1 = require("../types/folders.enums");
|
8
8
|
class FolderByIdDto {
|
9
9
|
}
|
10
10
|
exports.FolderByIdDto = FolderByIdDto;
|
@@ -69,7 +69,7 @@ exports.FolderHierarchyResponseDto = FolderHierarchyResponseDto;
|
|
69
69
|
class GetFoldersDto extends GetFolderHierarchyDto {
|
70
70
|
constructor() {
|
71
71
|
super(...arguments);
|
72
|
-
this.sortColumn =
|
72
|
+
this.sortColumn = folders_enums_1.FolderSortColumnEnum.NAME;
|
73
73
|
this.sortOrder = enums_service_1.OrderByEnum.ASC;
|
74
74
|
}
|
75
75
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAIxD,gEAAyE;AACzE,yFAAoF;AACpF,
|
1
|
+
{"version":3,"file":"folder.dto.js","sourceRoot":"","sources":["../../../../src/types/folders/dto/folder.dto.ts"],"names":[],"mappings":";;;AAGA,uDAAwD;AAIxD,gEAAyE;AACzE,yFAAoF;AACpF,0DAAuH;AAEvH,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,aAAa;CA+BzB;AA/BD,sCA+BC;AAED,MAAa,eAAe;CAoB3B;AApBD,0CAoBC;AAED,MAAa,eAAe;CAgB3B;AAhBD,0CAgBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AAED,MAAa,oBAAqB,SAAQ,6BAAe;CAIxD;AAJD,oDAIC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,mBAAmB;CAW/B;AAXD,kDAWC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,wBAAwB;CAsCpC;AAtCD,4DAsCC;AAED,MAAa,0BAA0B;CAyDtC;AAzDD,gEAyDC;AAED;;;;;;;;;GASG;AACH,MAAa,aAAc,SAAQ,qBAAqB;IAAxD;;QACC,eAAU,GAA0B,oCAAoB,CAAC,IAAI,CAAC;QAE9D,cAAS,GAAiB,2BAAW,CAAC,GAAG,CAAC;IAC3C,CAAC;CAAA;AAJD,sCAIC;AAED;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,2CAAmB;CAE7D;AAFD,sDAEC;AAED;;;;GAIG;AACH,MAAa,4BAA6B,SAAQ,2CAAmB;CAEpE;AAFD,oEAEC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"folder-content.entity.js","sourceRoot":"","sources":["../../../../src/types/folders/entities/folder-content.entity.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"folder-content.entity.js","sourceRoot":"","sources":["../../../../src/types/folders/entities/folder-content.entity.ts"],"names":[],"mappings":";;;AAEA,gEAA6D;AAE7D,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,kDAAW,CAAA;IACX,8CAAS,CAAA;IACT,oCAAoC;AACrC,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,MAAa,aAAc,SAAQ,+BAAc;CAUhD;AAVD,sCAUC"}
|
@@ -4,24 +4,19 @@ import { Organization } from '../../organization/entities/Organization';
|
|
4
4
|
import { Facility } from '../../entity/Facility';
|
5
5
|
import { BondBaseEntity } from '../../entity/BondBaseEntity';
|
6
6
|
import { Media } from '../../media/entities/Media';
|
7
|
-
|
8
|
-
PROGRAM_SEASON = 10
|
9
|
-
}
|
10
|
-
export declare enum MetaType {
|
11
|
-
UNSPECIFIED = 0,
|
12
|
-
GROUP = 1
|
13
|
-
}
|
7
|
+
import { RegistrationAccessEnum, MetaTypeEnum, ReferableTypeEnum } from '../types/folders.enums';
|
14
8
|
export declare class Folder extends BondBaseEntity {
|
15
9
|
organizationId?: number;
|
16
10
|
organization?: Organization;
|
17
11
|
facilityId?: number;
|
18
12
|
facility?: Facility;
|
19
|
-
referableType?:
|
13
|
+
referableType?: ReferableTypeEnum;
|
20
14
|
referableId?: number;
|
21
15
|
name?: string;
|
22
16
|
category?: string;
|
23
|
-
metaType:
|
17
|
+
metaType: MetaTypeEnum;
|
24
18
|
mainMediaId?: number;
|
19
|
+
registrationAccess?: RegistrationAccessEnum;
|
25
20
|
mainMedia?: Media;
|
26
21
|
contents: FolderContent[];
|
27
22
|
invites: FolderInvite[];
|
@@ -1,22 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Folder =
|
3
|
+
exports.Folder = void 0;
|
4
4
|
const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
|
5
|
-
// TODO: Dan - enum should be in a separate file
|
6
|
-
// TODO: Dan - enum value should be a string for better readability
|
7
|
-
// TODO: Dan - enum should end with "Enum"
|
8
|
-
var ReferableType;
|
9
|
-
(function (ReferableType) {
|
10
|
-
ReferableType[ReferableType["PROGRAM_SEASON"] = 10] = "PROGRAM_SEASON";
|
11
|
-
})(ReferableType = exports.ReferableType || (exports.ReferableType = {}));
|
12
|
-
// The Folder module considers MetaType an opaque value.
|
13
|
-
// It is passed around and enabled in various queries, but otherwise has no affect on the Folder module's behavior.
|
14
|
-
// Consumers may extend this enum as needed.
|
15
|
-
var MetaType;
|
16
|
-
(function (MetaType) {
|
17
|
-
MetaType[MetaType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
18
|
-
MetaType[MetaType["GROUP"] = 1] = "GROUP";
|
19
|
-
})(MetaType = exports.MetaType || (exports.MetaType = {}));
|
20
5
|
class Folder extends BondBaseEntity_1.BondBaseEntity {
|
21
6
|
}
|
22
7
|
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;
|
1
|
+
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../../src/types/folders/entities/folder.entity.ts"],"names":[],"mappings":";;;AAKA,gEAA6D;AAI7D,MAAa,MAAO,SAAQ,+BAAc;CAgCzC;AAhCD,wBAgCC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { Folder } from '../entities/folder.entity';
|
2
2
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
3
3
|
import { CurrencyEnum } from '../../services/enums.service';
|
4
|
-
import {
|
4
|
+
import { MetaTypeEnum } from './folders.enums';
|
5
|
+
import { ReferableTypeEnum } from './folders.enums';
|
5
6
|
import { IRawFolderAsGroup } from './index';
|
6
7
|
export declare class RawFolderAsGroup extends Folder implements IRawFolderAsGroup {
|
7
8
|
id: number;
|
@@ -12,15 +13,16 @@ export declare class RawFolderAsGroup extends Folder implements IRawFolderAsGrou
|
|
12
13
|
category?: string;
|
13
14
|
organizationId: number;
|
14
15
|
facilityId: number;
|
15
|
-
referableType?:
|
16
|
+
referableType?: ReferableTypeEnum;
|
16
17
|
referableId?: number;
|
17
18
|
mainMediaUrl?: string;
|
19
|
+
registgrationAccess: number;
|
18
20
|
parentId: number;
|
19
21
|
parentName: string;
|
20
22
|
waiversCount: number;
|
21
23
|
contentCount: number;
|
22
24
|
hasContents: boolean;
|
23
25
|
currentPaidCurrencies?: CurrencyEnum[];
|
24
|
-
metaType:
|
26
|
+
metaType: MetaTypeEnum;
|
25
27
|
lineItemIds?: number[];
|
26
28
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"classes.js","sourceRoot":"","sources":["../../../../src/types/folders/types/classes.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"classes.js","sourceRoot":"","sources":["../../../../src/types/folders/types/classes.ts"],"names":[],"mappings":";;;AAAA,6DAAmD;AAOnD,MAAa,gBAAiB,SAAQ,sBAAM;CAwC3C;AAxCD,4CAwCC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export declare enum GroupsSortByFieldsEnum {
|
2
|
+
NAME = "name",
|
3
|
+
PARENT_NAME = "parentName",
|
4
|
+
CONTENT_COUNT = "contentCount",
|
5
|
+
WAIVERS_COUNT = "waiversCount",
|
6
|
+
PAID_AMOUNT = "paidAmount"
|
7
|
+
}
|
8
|
+
export declare enum FolderSortColumnEnum {
|
9
|
+
NAME = "name",
|
10
|
+
CATEGORY = "category"
|
11
|
+
}
|
12
|
+
export declare enum ReferableTypeEnum {
|
13
|
+
PROGRAM_SEASON = 10
|
14
|
+
}
|
15
|
+
export declare enum MetaTypeEnum {
|
16
|
+
UNSPECIFIED = 0,
|
17
|
+
GROUP = 1
|
18
|
+
}
|
19
|
+
export declare enum RegistrationAccessEnum {
|
20
|
+
OPEN = 1,
|
21
|
+
INVITE_LINK_ONLY = 2
|
22
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RegistrationAccessEnum = exports.MetaTypeEnum = exports.ReferableTypeEnum = exports.FolderSortColumnEnum = exports.GroupsSortByFieldsEnum = void 0;
|
4
|
+
var GroupsSortByFieldsEnum;
|
5
|
+
(function (GroupsSortByFieldsEnum) {
|
6
|
+
GroupsSortByFieldsEnum["NAME"] = "name";
|
7
|
+
GroupsSortByFieldsEnum["PARENT_NAME"] = "parentName";
|
8
|
+
GroupsSortByFieldsEnum["CONTENT_COUNT"] = "contentCount";
|
9
|
+
GroupsSortByFieldsEnum["WAIVERS_COUNT"] = "waiversCount";
|
10
|
+
GroupsSortByFieldsEnum["PAID_AMOUNT"] = "paidAmount";
|
11
|
+
})(GroupsSortByFieldsEnum = exports.GroupsSortByFieldsEnum || (exports.GroupsSortByFieldsEnum = {}));
|
12
|
+
var FolderSortColumnEnum;
|
13
|
+
(function (FolderSortColumnEnum) {
|
14
|
+
FolderSortColumnEnum["NAME"] = "name";
|
15
|
+
FolderSortColumnEnum["CATEGORY"] = "category";
|
16
|
+
})(FolderSortColumnEnum = exports.FolderSortColumnEnum || (exports.FolderSortColumnEnum = {}));
|
17
|
+
var ReferableTypeEnum;
|
18
|
+
(function (ReferableTypeEnum) {
|
19
|
+
ReferableTypeEnum[ReferableTypeEnum["PROGRAM_SEASON"] = 10] = "PROGRAM_SEASON";
|
20
|
+
})(ReferableTypeEnum = exports.ReferableTypeEnum || (exports.ReferableTypeEnum = {}));
|
21
|
+
// The Folder module considers MetaType an opaque value.
|
22
|
+
// It is passed around and enabled in various queries, but otherwise has no affect on the Folder module's behavior.
|
23
|
+
// Consumers may extend this enum as needed.
|
24
|
+
var MetaTypeEnum;
|
25
|
+
(function (MetaTypeEnum) {
|
26
|
+
MetaTypeEnum[MetaTypeEnum["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
27
|
+
// Defined and used by Session Participants -- see that module for more details
|
28
|
+
MetaTypeEnum[MetaTypeEnum["GROUP"] = 1] = "GROUP";
|
29
|
+
})(MetaTypeEnum = exports.MetaTypeEnum || (exports.MetaTypeEnum = {}));
|
30
|
+
var RegistrationAccessEnum;
|
31
|
+
(function (RegistrationAccessEnum) {
|
32
|
+
RegistrationAccessEnum[RegistrationAccessEnum["OPEN"] = 1] = "OPEN";
|
33
|
+
RegistrationAccessEnum[RegistrationAccessEnum["INVITE_LINK_ONLY"] = 2] = "INVITE_LINK_ONLY";
|
34
|
+
})(RegistrationAccessEnum = exports.RegistrationAccessEnum || (exports.RegistrationAccessEnum = {}));
|
35
|
+
//# sourceMappingURL=folders.enums.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"folders.enums.js","sourceRoot":"","sources":["../../../../src/types/folders/types/folders.enums.ts"],"names":[],"mappings":";;;AAAA,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;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACtB,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC5B,8EAAmB,CAAA;AACpB,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B;AAED,wDAAwD;AACxD,mHAAmH;AACnH,4CAA4C;AAC5C,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,6DAAe,CAAA;IACf,+EAA+E;IAC/E,iDAAS,CAAA;AACV,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,mEAAQ,CAAA;IACR,2FAAoB,CAAA;AACrB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { Folder
|
1
|
+
import { Folder } from '../entities/folder.entity';
|
2
2
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
3
3
|
import { CurrencyEnum } from '../../services/enums.service';
|
4
4
|
import { FolderContent } from '../entities/folder-content.entity';
|
5
|
+
import { MetaTypeEnum, ReferableTypeEnum } from './folders.enums';
|
5
6
|
export interface IRawFolderAsGroup extends Folder {
|
6
7
|
id: number;
|
7
8
|
name: string;
|
@@ -12,7 +13,7 @@ export interface IRawFolderAsGroup extends Folder {
|
|
12
13
|
category?: string;
|
13
14
|
organizationId: number;
|
14
15
|
facilityId: number;
|
15
|
-
referableType?:
|
16
|
+
referableType?: ReferableTypeEnum;
|
16
17
|
referableId?: number;
|
17
18
|
mainMediaUrl?: string;
|
18
19
|
parentId: number;
|
@@ -20,7 +21,7 @@ export interface IRawFolderAsGroup extends Folder {
|
|
20
21
|
waiversCount: number;
|
21
22
|
contentCount: number;
|
22
23
|
hasContents: boolean;
|
23
|
-
metaType:
|
24
|
+
metaType: MetaTypeEnum;
|
24
25
|
lineItemIds?: number[];
|
25
26
|
}
|
26
27
|
export interface IGroupResponse {
|
@@ -33,7 +34,7 @@ export interface IGroupResponse {
|
|
33
34
|
category?: string;
|
34
35
|
organizationId: number;
|
35
36
|
facilityId: number;
|
36
|
-
referableType?:
|
37
|
+
referableType?: ReferableTypeEnum;
|
37
38
|
referableId?: number;
|
38
39
|
mainMediaUrl?: string;
|
39
40
|
parentId: number;
|
@@ -41,7 +42,7 @@ export interface IGroupResponse {
|
|
41
42
|
waiversCount: number;
|
42
43
|
contentCount: number;
|
43
44
|
hasContents: boolean;
|
44
|
-
metaType:
|
45
|
+
metaType: MetaTypeEnum;
|
45
46
|
}
|
46
47
|
export interface IContentsAndContentIds {
|
47
48
|
contents: FolderContent[];
|
@@ -55,7 +56,7 @@ export interface IFolderCategory {
|
|
55
56
|
category_name: string;
|
56
57
|
}
|
57
58
|
export * from './classes';
|
58
|
-
export * from './
|
59
|
-
export * from './enums';
|
59
|
+
export * from './folders.enums';
|
60
60
|
export * from './index';
|
61
61
|
export * from './interfaces';
|
62
|
+
export * from './session-participants.consts';
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./classes"), exports);
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./enums"), exports);
|
18
|
+
__exportStar(require("./folders.enums"), exports);
|
20
19
|
__exportStar(require("./index"), exports);
|
21
20
|
__exportStar(require("./interfaces"), exports);
|
21
|
+
__exportStar(require("./session-participants.consts"), exports);
|
22
22
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/folders/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8DA,4CAA0B;AAC1B,kDAAgC;AAChC,0CAAwB;AACxB,+CAA6B;AAC7B,gEAA8C"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ContentType } from '../../../folders/entities/folder-content.entity';
|
2
|
+
import { PaginationQuery } from '../../../dto/general.dto';
|
2
3
|
/**
|
3
4
|
* Parameters for building folder contents query
|
4
5
|
*/
|
@@ -7,6 +8,7 @@ export interface FolderContentsByFolderQueryParams {
|
|
7
8
|
organizationId?: number;
|
8
9
|
contentId?: number;
|
9
10
|
excludedContentIds?: number[];
|
11
|
+
excludedFolderContentIds?: number[];
|
10
12
|
}
|
11
13
|
/**
|
12
14
|
* Parameters for building folder contents by IDs query
|
@@ -15,3 +17,20 @@ export interface FolderContentsByIdsQueryParams {
|
|
15
17
|
organizationId?: number;
|
16
18
|
contentTypes?: ContentType[];
|
17
19
|
}
|
20
|
+
/**
|
21
|
+
* Parameters for getting folder contents
|
22
|
+
*/
|
23
|
+
export interface IGetFolderContentsParams {
|
24
|
+
folderIds: number[];
|
25
|
+
contentTypes?: ContentType[];
|
26
|
+
organizationId?: number;
|
27
|
+
contentId?: number;
|
28
|
+
excludedContentIds?: number[];
|
29
|
+
excludedFolderContentIds?: number[];
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Parameters for getting folder contents with pagination
|
33
|
+
*/
|
34
|
+
export interface IGetPaginatedFolderContentsParams extends IGetFolderContentsParams {
|
35
|
+
pagination?: PaginationQuery;
|
36
|
+
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DEFAULT_FOLDER_DEPTH_LIMIT = exports.DEFAULT_FOLDER_RELATIONS = void 0;
|
4
|
-
|
4
|
+
// TODO: add contents and invites only if we update the cache accordingly
|
5
|
+
exports.DEFAULT_FOLDER_RELATIONS = ['mainMedia'];
|
5
6
|
exports.DEFAULT_FOLDER_DEPTH_LIMIT = 10;
|
6
|
-
//# sourceMappingURL=consts.js.map
|
7
|
+
//# sourceMappingURL=session-participants.consts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"session-participants.consts.js","sourceRoot":"","sources":["../../../../src/types/folders/types/session-participants.consts.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AAC5D,QAAA,wBAAwB,GAAG,CAAC,WAAW,CAAC,CAAC;AAEzC,QAAA,0BAA0B,GAAG,EAAE,CAAC"}
|
@@ -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("./invoice-history.dto"), exports);
|
17
18
|
__exportStar(require("./invoice.dto"), exports);
|
18
19
|
__exportStar(require("./lineItem.dto"), exports);
|
19
20
|
__exportStar(require("./publish-invoice.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,gDAA8B;AAC9B,iDAA+B;AAC/B,wDAAsC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { PaymentMethodTypeEnum, PaymentStatusEnum, DueDateTypeEnum } from '../../payment/types/enums/payment.enums';
|
2
|
+
import { CurrencyEnum, InvoiceStatusEnum, PlatformsEnum } from '../../services/enums.service';
|
3
|
+
import { IdDto } from '../../dto/general.dto';
|
4
|
+
export declare class InvoiceHistoryDto extends IdDto {
|
5
|
+
invoiceId?: string;
|
6
|
+
price: number;
|
7
|
+
status?: InvoiceStatusEnum;
|
8
|
+
sentForClientDate?: Date;
|
9
|
+
payingUserId?: number;
|
10
|
+
paymentStatus: PaymentStatusEnum;
|
11
|
+
paymentMethodId?: string;
|
12
|
+
paymentType?: PaymentMethodTypeEnum;
|
13
|
+
paidAmount: number;
|
14
|
+
currency: CurrencyEnum;
|
15
|
+
isScheduled?: boolean;
|
16
|
+
isRefunded?: boolean;
|
17
|
+
isVoided?: boolean;
|
18
|
+
importedId?: string;
|
19
|
+
creatingUserId?: number;
|
20
|
+
shiftId?: number;
|
21
|
+
platform?: PlatformsEnum;
|
22
|
+
isPublic: boolean;
|
23
|
+
parentId?: number;
|
24
|
+
dueDate?: Date;
|
25
|
+
dueDateType?: DueDateTypeEnum;
|
26
|
+
isOverdue: boolean;
|
27
|
+
actionId?: string;
|
28
|
+
}
|