@bondsports/types 2.5.21 → 2.5.22
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/facilities/entities/facility.entity.d.ts +6 -0
- package/dist/types/facilities/entities/facility.entity.js.map +1 -1
- 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-pdf.dto.d.ts +111 -0
- package/dist/types/invoice/dto/invoice-pdf.dto.js +53 -0
- package/dist/types/invoice/dto/invoice-pdf.dto.js.map +1 -0
- package/dist/types/invoice/dto/invoice.dto.d.ts +5 -0
- package/dist/types/invoice/dto/invoice.dto.js.map +1 -1
- package/dist/types/invoice/dto/line-item.dto.d.ts +5 -0
- package/dist/types/invoice/dto/line-item.dto.js.map +1 -1
- package/dist/types/invoice/entities/invoice.entity.d.ts +1 -0
- package/dist/types/invoice/entities/invoice.entity.js.map +1 -1
- package/dist/types/invoice/types/enums/index.d.ts +1 -0
- package/dist/types/invoice/types/enums/index.js +1 -0
- package/dist/types/invoice/types/enums/index.js.map +1 -1
- package/dist/types/invoice/types/enums/invoice-pdf.enums.d.ts +8 -0
- package/dist/types/invoice/types/enums/invoice-pdf.enums.js +14 -0
- package/dist/types/invoice/types/enums/invoice-pdf.enums.js.map +1 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +60 -0
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/organization/entities/organization.entity.d.ts +7 -1
- package/dist/types/organization/entities/organization.entity.js.map +1 -1
- package/dist/types/templates/types/pdf.types.d.ts +21 -0
- package/dist/types/templates/types/pdf.types.js +12 -1
- package/dist/types/templates/types/pdf.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/address.entity';
|
|
2
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/organization-connection-base-entity';
|
|
3
|
+
import type { IInvoiceSettings } from '../../invoice/types/interfaces/invoice.interfaces';
|
|
3
4
|
import { Media } from '../../media/entities/media.entity';
|
|
4
5
|
import { Product } from '../../product-pricing/entities/product.entity';
|
|
5
6
|
import { ProgramSeason } from '../../programs-seasons/entities/program-season.entity';
|
|
6
7
|
import { Resource } from '../../resources/entities/resource.entity';
|
|
7
8
|
import { TipConfiguration } from '../../tip-configurations/entities/tip-configuration.entity';
|
|
8
9
|
import { OpeningTime } from './opening-time.entity';
|
|
10
|
+
/** Admin-written facility JSON. Invoice custom text is read for the invoice PDF. */
|
|
11
|
+
export interface IFacilitySettings {
|
|
12
|
+
invoiceSettings?: IInvoiceSettings;
|
|
13
|
+
}
|
|
9
14
|
export declare class Facility extends OrganizationConnectionBaseEntity {
|
|
10
15
|
name: string;
|
|
11
16
|
description?: string;
|
|
@@ -25,6 +30,7 @@ export declare class Facility extends OrganizationConnectionBaseEntity {
|
|
|
25
30
|
sports?: number[];
|
|
26
31
|
info?: string;
|
|
27
32
|
longDescription?: string;
|
|
33
|
+
settings?: IFacilitySettings;
|
|
28
34
|
deletedAt?: Date;
|
|
29
35
|
openingTimes: OpeningTime[];
|
|
30
36
|
resources: Resource[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facility.entity.js","sourceRoot":"","sources":["../../../../src/types/facilities/entities/facility.entity.ts"],"names":[],"mappings":";;;AAcA,0GAAoG;
|
|
1
|
+
{"version":3,"file":"facility.entity.js","sourceRoot":"","sources":["../../../../src/types/facilities/entities/facility.entity.ts"],"names":[],"mappings":";;;AAcA,0GAAoG;AAepG,MAAa,QAAS,SAAQ,sEAAgC;CA+D7D;AA/DD,4BA+DC"}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./invoice-cart.dto"), exports);
|
|
18
18
|
__exportStar(require("./invoice-history.dto"), exports);
|
|
19
|
+
__exportStar(require("./invoice-pdf.dto"), exports);
|
|
19
20
|
__exportStar(require("./invoice.dto"), exports);
|
|
20
21
|
__exportStar(require("./line-item.dto"), exports);
|
|
21
22
|
__exportStar(require("./organization-invoice.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC;AACtC,gDAA8B;AAC9B,kDAAgC;AAChC,6DAA2C;AAC3C,qDAAmC;AACnC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,kDAAgC;AAChC,6DAA2C;AAC3C,qDAAmC;AACnC,sDAAoC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { FuturePaymentStatusEnum, PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
|
2
|
+
import { InvoicePdfLineKindEnum, InvoicePdfScheduleKindEnum } from '../types/enums/invoice-pdf.enums';
|
|
3
|
+
export declare class InvoicePdfAddressDto {
|
|
4
|
+
streetNum?: string;
|
|
5
|
+
street?: string;
|
|
6
|
+
aptNum?: string;
|
|
7
|
+
city?: string;
|
|
8
|
+
state?: string;
|
|
9
|
+
zip?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class InvoicePdfHeaderDto {
|
|
12
|
+
logoSrc: string;
|
|
13
|
+
id: number;
|
|
14
|
+
paymentStatus: PaymentStatusEnum;
|
|
15
|
+
isVoided: boolean;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
invoiceId?: number;
|
|
18
|
+
dueDate?: string;
|
|
19
|
+
issuerName: string;
|
|
20
|
+
issuerAddress?: InvoicePdfAddressDto;
|
|
21
|
+
issuerPhone?: string;
|
|
22
|
+
issuerEmail?: string;
|
|
23
|
+
billToName?: string;
|
|
24
|
+
billToEmail?: string;
|
|
25
|
+
billToPhone?: string;
|
|
26
|
+
billToAddress?: InvoicePdfAddressDto;
|
|
27
|
+
}
|
|
28
|
+
export declare class InvoicePdfLineDto {
|
|
29
|
+
kind: InvoicePdfLineKindEnum;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
quantity?: string;
|
|
33
|
+
unitPrice?: string;
|
|
34
|
+
taxLabels?: string[];
|
|
35
|
+
amount: string;
|
|
36
|
+
}
|
|
37
|
+
export declare class InvoicePdfLabelValueDto {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
export declare class InvoicePdfSummaryDto {
|
|
42
|
+
rows: InvoicePdfLabelValueDto[];
|
|
43
|
+
price: string;
|
|
44
|
+
paidAmount?: string;
|
|
45
|
+
totalDue?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class InvoicePdfNoteDto {
|
|
48
|
+
author: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
content: string;
|
|
51
|
+
}
|
|
52
|
+
export declare class InvoicePdfCustomTextDto {
|
|
53
|
+
title?: string;
|
|
54
|
+
body: string;
|
|
55
|
+
}
|
|
56
|
+
export declare class InvoicePdfPaymentTotalsDto {
|
|
57
|
+
priceWithoutFee: string;
|
|
58
|
+
totalFeesAmount: string;
|
|
59
|
+
tipAmount: string;
|
|
60
|
+
price: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class InvoicePdfPaymentRowDto extends InvoicePdfPaymentTotalsDto {
|
|
63
|
+
createdAt: string;
|
|
64
|
+
method: string;
|
|
65
|
+
customerName?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare class InvoicePdfPaymentsTableDto {
|
|
68
|
+
rows: InvoicePdfPaymentRowDto[];
|
|
69
|
+
totals?: InvoicePdfPaymentTotalsDto;
|
|
70
|
+
showFees: boolean;
|
|
71
|
+
showTips: boolean;
|
|
72
|
+
}
|
|
73
|
+
export declare class InvoicePdfPlanRowDto {
|
|
74
|
+
plannedDate: string;
|
|
75
|
+
method: string;
|
|
76
|
+
status: string;
|
|
77
|
+
paymentStatus?: FuturePaymentStatusEnum;
|
|
78
|
+
price: string;
|
|
79
|
+
feeAmount: string;
|
|
80
|
+
totalPrice: string;
|
|
81
|
+
}
|
|
82
|
+
export declare class InvoicePdfScheduleRowDto {
|
|
83
|
+
description: string;
|
|
84
|
+
space: string;
|
|
85
|
+
addons: string;
|
|
86
|
+
date: string;
|
|
87
|
+
time: string;
|
|
88
|
+
}
|
|
89
|
+
export declare class InvoicePdfScheduleGroupDto {
|
|
90
|
+
heading: string;
|
|
91
|
+
rows: InvoicePdfScheduleRowDto[];
|
|
92
|
+
}
|
|
93
|
+
export declare class InvoicePdfScheduleTableDto {
|
|
94
|
+
kind: InvoicePdfScheduleKindEnum;
|
|
95
|
+
groups: InvoicePdfScheduleGroupDto[];
|
|
96
|
+
}
|
|
97
|
+
export declare class InvoicePdfScheduleBlockDto {
|
|
98
|
+
participant: string;
|
|
99
|
+
tables: InvoicePdfScheduleTableDto[];
|
|
100
|
+
}
|
|
101
|
+
/** Invoice PDF view model. Every money and date field is already a display string. */
|
|
102
|
+
export declare class InvoicePdfDto {
|
|
103
|
+
header: InvoicePdfHeaderDto;
|
|
104
|
+
lineItems: InvoicePdfLineDto[];
|
|
105
|
+
summary: InvoicePdfSummaryDto;
|
|
106
|
+
invoiceNotes: InvoicePdfNoteDto[];
|
|
107
|
+
customText?: InvoicePdfCustomTextDto;
|
|
108
|
+
payments?: InvoicePdfPaymentsTableDto;
|
|
109
|
+
paymentPlan?: InvoicePdfPlanRowDto[];
|
|
110
|
+
schedule?: InvoicePdfScheduleBlockDto[];
|
|
111
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoicePdfDto = exports.InvoicePdfScheduleBlockDto = exports.InvoicePdfScheduleTableDto = exports.InvoicePdfScheduleGroupDto = exports.InvoicePdfScheduleRowDto = exports.InvoicePdfPlanRowDto = exports.InvoicePdfPaymentsTableDto = exports.InvoicePdfPaymentRowDto = exports.InvoicePdfPaymentTotalsDto = exports.InvoicePdfCustomTextDto = exports.InvoicePdfNoteDto = exports.InvoicePdfSummaryDto = exports.InvoicePdfLabelValueDto = exports.InvoicePdfLineDto = exports.InvoicePdfHeaderDto = exports.InvoicePdfAddressDto = void 0;
|
|
4
|
+
class InvoicePdfAddressDto {
|
|
5
|
+
}
|
|
6
|
+
exports.InvoicePdfAddressDto = InvoicePdfAddressDto;
|
|
7
|
+
class InvoicePdfHeaderDto {
|
|
8
|
+
}
|
|
9
|
+
exports.InvoicePdfHeaderDto = InvoicePdfHeaderDto;
|
|
10
|
+
class InvoicePdfLineDto {
|
|
11
|
+
}
|
|
12
|
+
exports.InvoicePdfLineDto = InvoicePdfLineDto;
|
|
13
|
+
class InvoicePdfLabelValueDto {
|
|
14
|
+
}
|
|
15
|
+
exports.InvoicePdfLabelValueDto = InvoicePdfLabelValueDto;
|
|
16
|
+
class InvoicePdfSummaryDto {
|
|
17
|
+
}
|
|
18
|
+
exports.InvoicePdfSummaryDto = InvoicePdfSummaryDto;
|
|
19
|
+
class InvoicePdfNoteDto {
|
|
20
|
+
}
|
|
21
|
+
exports.InvoicePdfNoteDto = InvoicePdfNoteDto;
|
|
22
|
+
class InvoicePdfCustomTextDto {
|
|
23
|
+
}
|
|
24
|
+
exports.InvoicePdfCustomTextDto = InvoicePdfCustomTextDto;
|
|
25
|
+
class InvoicePdfPaymentTotalsDto {
|
|
26
|
+
}
|
|
27
|
+
exports.InvoicePdfPaymentTotalsDto = InvoicePdfPaymentTotalsDto;
|
|
28
|
+
class InvoicePdfPaymentRowDto extends InvoicePdfPaymentTotalsDto {
|
|
29
|
+
}
|
|
30
|
+
exports.InvoicePdfPaymentRowDto = InvoicePdfPaymentRowDto;
|
|
31
|
+
class InvoicePdfPaymentsTableDto {
|
|
32
|
+
}
|
|
33
|
+
exports.InvoicePdfPaymentsTableDto = InvoicePdfPaymentsTableDto;
|
|
34
|
+
class InvoicePdfPlanRowDto {
|
|
35
|
+
}
|
|
36
|
+
exports.InvoicePdfPlanRowDto = InvoicePdfPlanRowDto;
|
|
37
|
+
class InvoicePdfScheduleRowDto {
|
|
38
|
+
}
|
|
39
|
+
exports.InvoicePdfScheduleRowDto = InvoicePdfScheduleRowDto;
|
|
40
|
+
class InvoicePdfScheduleGroupDto {
|
|
41
|
+
}
|
|
42
|
+
exports.InvoicePdfScheduleGroupDto = InvoicePdfScheduleGroupDto;
|
|
43
|
+
class InvoicePdfScheduleTableDto {
|
|
44
|
+
}
|
|
45
|
+
exports.InvoicePdfScheduleTableDto = InvoicePdfScheduleTableDto;
|
|
46
|
+
class InvoicePdfScheduleBlockDto {
|
|
47
|
+
}
|
|
48
|
+
exports.InvoicePdfScheduleBlockDto = InvoicePdfScheduleBlockDto;
|
|
49
|
+
/** Invoice PDF view model. Every money and date field is already a display string. */
|
|
50
|
+
class InvoicePdfDto {
|
|
51
|
+
}
|
|
52
|
+
exports.InvoicePdfDto = InvoicePdfDto;
|
|
53
|
+
//# sourceMappingURL=invoice-pdf.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-pdf.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice-pdf.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,oBAAoB;CAYhC;AAZD,oDAYC;AAED,MAAa,mBAAmB;CA8B/B;AA9BD,kDA8BC;AAED,MAAa,iBAAiB;CAc7B;AAdD,8CAcC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,iBAAiB;CAM7B;AAND,8CAMC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAMtE;AAND,0DAMC;AAED,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAchC;AAdD,oDAcC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,sFAAsF;AACtF,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ObfuscatedCustomerDto, SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
|
2
2
|
import { IdDto } from '../../dto/general.dto';
|
|
3
3
|
import { PaymentFeeDto } from '../../fee/dto/payment-fee.dto';
|
|
4
|
+
import { FutureInstallmentDto } from '../../future-installments/dto/future-installments.dto';
|
|
4
5
|
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
|
5
6
|
import { ItemDiscountDto } from '../../payment/dto/discount.dto';
|
|
6
7
|
import { InvoiceNote } from '../../payment/entities/invoice-note.entity';
|
|
@@ -30,6 +31,7 @@ export declare class SimpleInvoiceDto extends OrganizationBaseEntityDto {
|
|
|
30
31
|
discountAmount?: number;
|
|
31
32
|
discountSubtotal?: number;
|
|
32
33
|
subtotal?: number;
|
|
34
|
+
invoiceSubtotal?: number;
|
|
33
35
|
subtotalBalance?: number;
|
|
34
36
|
isPublic?: boolean;
|
|
35
37
|
dueDate?: Date;
|
|
@@ -72,9 +74,12 @@ export declare class InvoiceDto extends SimpleInvoiceDto {
|
|
|
72
74
|
isVoided?: boolean;
|
|
73
75
|
totalTipsAmount?: number;
|
|
74
76
|
totalDue: number;
|
|
77
|
+
priceWithoutFee?: number;
|
|
78
|
+
amountPaidWithoutFee?: number;
|
|
75
79
|
taxes: TaxItemDto[];
|
|
76
80
|
lineItems: LineItemDto[];
|
|
77
81
|
payments: InvoicePaymentDto[];
|
|
82
|
+
installments?: FutureInstallmentDto[];
|
|
78
83
|
customer?: SimpleCustomerDto;
|
|
79
84
|
obfuscatedCustomer?: ObfuscatedCustomerDto;
|
|
80
85
|
invoiceNotes?: InvoiceNote[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA8C;
|
|
1
|
+
{"version":3,"file":"invoice.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/invoice.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA8C;AAG9C,8EAAoF;AAoBpF,uDAA+G;AAAtG,kHAAA,cAAc,OAAA;AAAE,kHAAA,cAAc,OAAA;AAAE,oHAAA,gBAAgB,OAAA;AAAE,2HAAA,uBAAuB,OAAA;AAElF,MAAa,gBAAiB,SAAQ,4CAAyB;CAwC9D;AAxCD,4CAwCC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAsC3C;AAtCD,8CAsCC;AAED,MAAa,UAAW,SAAQ,gBAAgB;CAoD/C;AApDD,gCAoDC;AAED;;;;GAIG;AACH,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -75,6 +75,10 @@ export declare class LineItemDto extends IdDto {
|
|
|
75
75
|
userId?: number;
|
|
76
76
|
customerFirstName?: string;
|
|
77
77
|
customerLastName?: string;
|
|
78
|
+
sessionName?: string;
|
|
79
|
+
membershipCustomerType?: string;
|
|
80
|
+
durationMonths?: number;
|
|
81
|
+
reservationName?: string;
|
|
78
82
|
product?: ProductDto;
|
|
79
83
|
productUser?: SimpleProductUserDto;
|
|
80
84
|
purchasedResources?: PurchasedResourceDto[];
|
|
@@ -89,6 +93,7 @@ export declare class LineItemDto extends IdDto {
|
|
|
89
93
|
facilityId?: number;
|
|
90
94
|
organizationId?: number;
|
|
91
95
|
productUserId?: number;
|
|
96
|
+
productUserIds?: number[];
|
|
92
97
|
taxPrecent?: number;
|
|
93
98
|
isTaxInclusive?: boolean;
|
|
94
99
|
displayQuantity?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line-item.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/line-item.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAY9C,MAAa,eAAe;CAuD3B;AAvDD,0CAuDC;AAED,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,WAAY,SAAQ,mBAAK;
|
|
1
|
+
{"version":3,"file":"line-item.dto.js","sourceRoot":"","sources":["../../../../src/types/invoice/dto/line-item.dto.ts"],"names":[],"mappings":";;;AACA,uDAA8C;AAY9C,MAAa,eAAe;CAuD3B;AAvDD,0CAuDC;AAED,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,WAAY,SAAQ,mBAAK;CAwHrC;AAxHD,kCAwHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.entity.js","sourceRoot":"","sources":["../../../../src/types/invoice/entities/invoice.entity.ts"],"names":[],"mappings":";;;AAKA,oEAA+D;AA0B/D,MAAa,OAAQ,SAAQ,iCAAc;
|
|
1
|
+
{"version":3,"file":"invoice.entity.js","sourceRoot":"","sources":["../../../../src/types/invoice/entities/invoice.entity.ts"],"names":[],"mappings":";;;AAKA,oEAA+D;AA0B/D,MAAa,OAAQ,SAAQ,iCAAc;CAqH1C;AArHD,0BAqHC"}
|
|
@@ -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-pdf.enums"), exports);
|
|
17
18
|
__exportStar(require("./invoice-visibility.enums"), exports);
|
|
18
19
|
__exportStar(require("./invoice.enums"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoicePdfScheduleKindEnum = exports.InvoicePdfLineKindEnum = void 0;
|
|
4
|
+
var InvoicePdfLineKindEnum;
|
|
5
|
+
(function (InvoicePdfLineKindEnum) {
|
|
6
|
+
InvoicePdfLineKindEnum["ITEM"] = "item";
|
|
7
|
+
InvoicePdfLineKindEnum["DISCOUNT"] = "discount";
|
|
8
|
+
})(InvoicePdfLineKindEnum = exports.InvoicePdfLineKindEnum || (exports.InvoicePdfLineKindEnum = {}));
|
|
9
|
+
var InvoicePdfScheduleKindEnum;
|
|
10
|
+
(function (InvoicePdfScheduleKindEnum) {
|
|
11
|
+
InvoicePdfScheduleKindEnum["PROGRAM"] = "program";
|
|
12
|
+
InvoicePdfScheduleKindEnum["RESERVATION"] = "reservation";
|
|
13
|
+
})(InvoicePdfScheduleKindEnum = exports.InvoicePdfScheduleKindEnum || (exports.InvoicePdfScheduleKindEnum = {}));
|
|
14
|
+
//# sourceMappingURL=invoice-pdf.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-pdf.enums.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/enums/invoice-pdf.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IACjC,uCAAa,CAAA;IACb,+CAAqB,CAAA;AACtB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,iDAAmB,CAAA;IACnB,yDAA2B,CAAA;AAC5B,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Address } from '../../../address/entities/address.entity';
|
|
1
2
|
import { Cart } from '../../../cart/entities/cart.entity';
|
|
2
3
|
import { IValidateCartOptions } from '../../../cart/types/interfaces/cart.interfaces';
|
|
3
4
|
import { CustomerTypeEnum } from '../../../customers/types/enums';
|
|
@@ -97,3 +98,62 @@ export interface IInvoicePublicVisibility {
|
|
|
97
98
|
organizationId?: number;
|
|
98
99
|
isPublic: boolean;
|
|
99
100
|
}
|
|
101
|
+
/** Admin-written title and body shown on the invoice PDF. */
|
|
102
|
+
export interface IInvoiceCustomText {
|
|
103
|
+
body?: string;
|
|
104
|
+
title?: string;
|
|
105
|
+
}
|
|
106
|
+
/** Invoice block stored on facility and organization settings. */
|
|
107
|
+
export interface IInvoiceSettings {
|
|
108
|
+
customText?: IInvoiceCustomText;
|
|
109
|
+
}
|
|
110
|
+
/** Fields a Facility or an Organization contributes to the header and custom text. Organization maps phoneNumber to phone. */
|
|
111
|
+
export interface IInvoicePdfIssuerSource {
|
|
112
|
+
address?: Address;
|
|
113
|
+
email?: string;
|
|
114
|
+
name: string;
|
|
115
|
+
phone?: string;
|
|
116
|
+
settings?: {
|
|
117
|
+
invoiceSettings?: IInvoiceSettings;
|
|
118
|
+
} | null;
|
|
119
|
+
}
|
|
120
|
+
/** Extra arguments for Invoice → InvoiceDto. mergeGoods defaults to false. */
|
|
121
|
+
export interface IInvoiceMapArguments {
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
mergeGoods?: boolean;
|
|
124
|
+
}
|
|
125
|
+
/** Whoever is shown as issuing the invoice: the single facility on it, or the organization. */
|
|
126
|
+
export interface IInvoicePdfIssuer {
|
|
127
|
+
address?: Address;
|
|
128
|
+
customTextBody?: string;
|
|
129
|
+
customTextTitle?: string;
|
|
130
|
+
email?: string;
|
|
131
|
+
name: string;
|
|
132
|
+
phone?: string;
|
|
133
|
+
}
|
|
134
|
+
/** Person shown as Paid by on a receipt. The invoice header uses the invoice customer instead. */
|
|
135
|
+
export interface IInvoicePdfPayer {
|
|
136
|
+
email?: string;
|
|
137
|
+
firstName?: string;
|
|
138
|
+
lastName?: string;
|
|
139
|
+
name?: string;
|
|
140
|
+
phoneNumber?: string;
|
|
141
|
+
}
|
|
142
|
+
/** Everything InvoicePdfProfile needs that is not on InvoiceDto, passed as AutoMapper extraArgs. */
|
|
143
|
+
export interface IInvoicePdfMapContext {
|
|
144
|
+
[key: string]: unknown;
|
|
145
|
+
billToAddress?: Address;
|
|
146
|
+
/** Issuer for the single facility on the invoice, set only after that facility loaded. */
|
|
147
|
+
facility?: IInvoicePdfIssuer;
|
|
148
|
+
logoSrc: string;
|
|
149
|
+
organization: IInvoicePdfIssuer;
|
|
150
|
+
/** Set for a receipt. The invoice map ignores it. */
|
|
151
|
+
payer?: IInvoicePdfPayer;
|
|
152
|
+
/** Set for a receipt, so a later refund still counts toward the facility issuer. */
|
|
153
|
+
showsOriginalLines?: boolean;
|
|
154
|
+
timezone: string;
|
|
155
|
+
}
|
|
156
|
+
/** Extra arguments for InvoiceDto to InvoicePdfHeaderDto. The parent map resolves issuer once. */
|
|
157
|
+
export interface IInvoicePdfHeaderMapArguments extends IInvoicePdfMapContext {
|
|
158
|
+
issuer: IInvoicePdfIssuer;
|
|
159
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA+EA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Address } from '../../address/entities/address.entity';
|
|
2
2
|
import { BondBaseEntity } from '../../entity/bond-base-entity';
|
|
3
3
|
import { Fee } from '../../fee/entities/fee.entity';
|
|
4
|
+
import type { IInvoiceSettings } from '../../invoice/types/interfaces/invoice.interfaces';
|
|
4
5
|
import { Media } from '../../media/entities/media.entity';
|
|
5
6
|
import { CurrencyEnum } from '../../types/enums/currency.enums';
|
|
6
7
|
import { OrganizationAccountingStyleEnum } from '../types/enums/organization-accounting-style.enum';
|
|
@@ -8,6 +9,11 @@ import { ColorCode } from './color-code.entity';
|
|
|
8
9
|
import { OrganizationBranding } from './organization-branding.entity';
|
|
9
10
|
import { OrganizationPaymentMethod } from './organization-payment-method.entity';
|
|
10
11
|
import { UberOrganization } from './uber-organization.entity';
|
|
12
|
+
/** Organization jsonb settings. Existing keys on the column stay assignable. */
|
|
13
|
+
export interface IOrganizationSettings extends Record<string, unknown> {
|
|
14
|
+
auditEnabled?: boolean;
|
|
15
|
+
invoiceSettings?: IInvoiceSettings;
|
|
16
|
+
}
|
|
11
17
|
export declare class Organization extends BondBaseEntity {
|
|
12
18
|
name?: string;
|
|
13
19
|
email?: string;
|
|
@@ -27,7 +33,7 @@ export declare class Organization extends BondBaseEntity {
|
|
|
27
33
|
userCreatorId?: number;
|
|
28
34
|
parentId?: number;
|
|
29
35
|
paymentSettings?: object;
|
|
30
|
-
settings?:
|
|
36
|
+
settings?: IOrganizationSettings;
|
|
31
37
|
isClaimed?: boolean;
|
|
32
38
|
sports?: number[];
|
|
33
39
|
mainMediaId?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/organization.entity.ts"],"names":[],"mappings":";;;AAGA,oEAA+D;
|
|
1
|
+
{"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../../../src/types/organization/entities/organization.entity.ts"],"names":[],"mappings":";;;AAGA,oEAA+D;AAkB/D,MAAa,YAAa,SAAQ,iCAAc;CA4F/C;AA5FD,oCA4FC"}
|
|
@@ -3,5 +3,26 @@ export declare enum PdfOrientationEnum {
|
|
|
3
3
|
LANDSCAPE = "landscape"
|
|
4
4
|
}
|
|
5
5
|
export interface IPdfGenerateOptions {
|
|
6
|
+
footer?: {
|
|
7
|
+
left?: string;
|
|
8
|
+
leading?: string;
|
|
9
|
+
logo?: {
|
|
10
|
+
src: string;
|
|
11
|
+
height: number;
|
|
12
|
+
marginLeft?: number;
|
|
13
|
+
marginRight?: number;
|
|
14
|
+
};
|
|
15
|
+
pageLabel: (pageNumber: number, totalPages: number) => string;
|
|
16
|
+
};
|
|
6
17
|
orientation?: PdfOrientationEnum;
|
|
7
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Data attributes a section can carry so a template can control page breaks.
|
|
21
|
+
* PdfTemplateService maps them onto react-pdf layout props.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum PdfLayoutAttributeEnum {
|
|
24
|
+
KEEP_TOGETHER = "data-pdf-keep-together",
|
|
25
|
+
REPEAT = "data-pdf-repeat",
|
|
26
|
+
KEEP_WITH_NEXT = "data-pdf-keep-with-next",
|
|
27
|
+
BREAK = "data-pdf-break"
|
|
28
|
+
}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PdfOrientationEnum = void 0;
|
|
3
|
+
exports.PdfLayoutAttributeEnum = exports.PdfOrientationEnum = void 0;
|
|
4
4
|
var PdfOrientationEnum;
|
|
5
5
|
(function (PdfOrientationEnum) {
|
|
6
6
|
PdfOrientationEnum["PORTRAIT"] = "portrait";
|
|
7
7
|
PdfOrientationEnum["LANDSCAPE"] = "landscape";
|
|
8
8
|
})(PdfOrientationEnum = exports.PdfOrientationEnum || (exports.PdfOrientationEnum = {}));
|
|
9
|
+
/**
|
|
10
|
+
* Data attributes a section can carry so a template can control page breaks.
|
|
11
|
+
* PdfTemplateService maps them onto react-pdf layout props.
|
|
12
|
+
*/
|
|
13
|
+
var PdfLayoutAttributeEnum;
|
|
14
|
+
(function (PdfLayoutAttributeEnum) {
|
|
15
|
+
PdfLayoutAttributeEnum["KEEP_TOGETHER"] = "data-pdf-keep-together";
|
|
16
|
+
PdfLayoutAttributeEnum["REPEAT"] = "data-pdf-repeat";
|
|
17
|
+
PdfLayoutAttributeEnum["KEEP_WITH_NEXT"] = "data-pdf-keep-with-next";
|
|
18
|
+
PdfLayoutAttributeEnum["BREAK"] = "data-pdf-break";
|
|
19
|
+
})(PdfLayoutAttributeEnum = exports.PdfLayoutAttributeEnum || (exports.PdfLayoutAttributeEnum = {}));
|
|
9
20
|
//# sourceMappingURL=pdf.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf.types.js","sourceRoot":"","sources":["../../../../src/types/templates/types/pdf.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;AACxB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
|
1
|
+
{"version":3,"file":"pdf.types.js","sourceRoot":"","sources":["../../../../src/types/templates/types/pdf.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC7B,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;AACxB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAiBD;;;GAGG;AACH,IAAY,sBAKX;AALD,WAAY,sBAAsB;IACjC,kEAAwC,CAAA;IACxC,oDAA0B,CAAA;IAC1B,oEAA0C,CAAA;IAC1C,kDAAwB,CAAA;AACzB,CAAC,EALW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKjC"}
|