@bookmypuja-tech/bmp-pdf 0.3.43 → 0.3.45
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/index.d.ts +1 -60
- package/dist/index.js +714 -792
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,54 +9,6 @@ interface IPrintablePuja {
|
|
|
9
9
|
date: Date | string | null;
|
|
10
10
|
priestNote?: string | null;
|
|
11
11
|
}
|
|
12
|
-
interface IPujaReceipt {
|
|
13
|
-
templeName: string;
|
|
14
|
-
address: string;
|
|
15
|
-
receiptNumber: string;
|
|
16
|
-
date?: Date | undefined | null;
|
|
17
|
-
dates?: Date[];
|
|
18
|
-
pujaName: string;
|
|
19
|
-
participants: {
|
|
20
|
-
participantName?: string;
|
|
21
|
-
participantNakshatra: string;
|
|
22
|
-
}[];
|
|
23
|
-
pujaPrice: Number;
|
|
24
|
-
status?: "confirmed" | "pending" | null | undefined;
|
|
25
|
-
pujaQty?: Number;
|
|
26
|
-
}
|
|
27
|
-
interface ITotalReceipt {
|
|
28
|
-
templeName: string;
|
|
29
|
-
address: string;
|
|
30
|
-
receiptNumber: string;
|
|
31
|
-
numberOfPujas: Number;
|
|
32
|
-
totalAmount: Number;
|
|
33
|
-
qrContent?: string;
|
|
34
|
-
}
|
|
35
|
-
interface IPujaReport {
|
|
36
|
-
templeName: string;
|
|
37
|
-
dates: [Date, Date];
|
|
38
|
-
pujas: {
|
|
39
|
-
name: string;
|
|
40
|
-
repeatCount?: Number;
|
|
41
|
-
pujaQty?: Number;
|
|
42
|
-
participantName: string;
|
|
43
|
-
participantNakshatra: string;
|
|
44
|
-
pujaDate: Date;
|
|
45
|
-
pujaAmount: Number;
|
|
46
|
-
prasadam?: string;
|
|
47
|
-
}[];
|
|
48
|
-
}
|
|
49
|
-
interface IQuickReport {
|
|
50
|
-
templeName: string;
|
|
51
|
-
receiptNumber: string;
|
|
52
|
-
address: string;
|
|
53
|
-
pujas: {
|
|
54
|
-
name: string;
|
|
55
|
-
pujaQty?: number;
|
|
56
|
-
pujaAmount: number;
|
|
57
|
-
pujaDate: Date;
|
|
58
|
-
}[];
|
|
59
|
-
}
|
|
60
12
|
|
|
61
13
|
declare const A4Print: ({ data, dates, }: {
|
|
62
14
|
data: IPrintablePuja[];
|
|
@@ -311,17 +263,6 @@ interface IPujaCountReportProps {
|
|
|
311
263
|
data: IPujaCountData[];
|
|
312
264
|
}
|
|
313
265
|
|
|
314
|
-
type sizeOptions = "A4" | "2Inch";
|
|
315
|
-
declare const getPrintBlob: ({ size, data, dates, }: {
|
|
316
|
-
size: sizeOptions;
|
|
317
|
-
data: IPrintablePuja[];
|
|
318
|
-
dates: [string | Date, string | Date];
|
|
319
|
-
}) => Promise<Blob>;
|
|
320
|
-
declare const getA4SummaryBlob: () => Promise<Blob>;
|
|
321
|
-
declare const printDevoteeReceipt2Inch: (data: IPujaReceipt) => Promise<void>;
|
|
322
|
-
declare const printTotalReceipt2Inch: (data: ITotalReceipt) => Promise<void>;
|
|
323
|
-
declare const printePujaReport2Inch: (data: IPujaReport) => Promise<void>;
|
|
324
|
-
declare const printQuickPrintReceipt2Inch: (data: IQuickReport) => Promise<void>;
|
|
325
266
|
type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja-detailed" | "puja-summary" | "combined-report" | "multi-temple-payment" | "settlements-report" | "invoice" | "postal-report" | "payment-settlement-report" | "invoice-breakup" | "puja-count";
|
|
326
267
|
type IReportSize = "A4";
|
|
327
268
|
type ReportDataTypes = {
|
|
@@ -348,4 +289,4 @@ declare class reportPrinter<T extends IReportOptions> {
|
|
|
348
289
|
getBlob(data: ReportDataTypes[T]): Promise<Blob>;
|
|
349
290
|
}
|
|
350
291
|
|
|
351
|
-
export { A4Print, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps, type IPrasadDelivery, type IPrasadReport, type
|
|
292
|
+
export { A4Print, type IInvoiceData, type IInvoiceProps, type KitchenReportProps as IKitchenReport, type IMultiTemplePaymentReport, type IPostalReportProps, type IPrasadDelivery, type IPrasadReport, type IPujaCountData, type IPujaCountReportProps, type IPujaList as IPujaReport, type ISettlementRow, type ISettlementsReport, type ISummaryPujaList as ISummaryPujaReport, type ITransactionReport, type InvoiceLevelData, type InvoiceLevelReportProps, type PaymentSettlementData, type PaymentSettlementProps, T2Inch, reportPrinter };
|