@driveflux/pdf 1.0.15 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/quotation.d.ts +1 -1
- package/dist/__mocks__/quotation.d.ts.map +1 -1
- package/dist/__mocks__/quotation.js +1 -2
- package/dist/__mocks__/subscription.d.ts +1 -1
- package/dist/__mocks__/subscription.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +2 -10
- package/dist/templates/QuotationPdf/index.d.ts +1 -1
- package/dist/templates/QuotationPdf/index.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/translations.d.ts +0 -1
- package/dist/templates/QuotationPdf/translations.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/translations.js +44 -47
- package/dist/templates/QuotationPdf/utils.d.ts +3 -4
- package/dist/templates/QuotationPdf/utils.d.ts.map +1 -1
- package/dist/templates/QuotationPdf/utils.js +12 -26
- package/dist/templates/SubscriptionAgreement/index.d.ts +1 -1
- package/dist/templates/SubscriptionAgreement/index.d.ts.map +1 -1
- package/dist/templates/SubscriptionAgreement/translations.d.ts.map +1 -1
- package/dist/templates/SubscriptionAgreement/translations.js +269 -269
- package/dist/templates/SubscriptionAgreement/utils.d.ts +1 -1
- package/dist/templates/SubscriptionAgreement/utils.d.ts.map +1 -1
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/colors.js +36 -36
- package/dist/utils.d.ts +2 -8
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +7 -31
- package/dist/watch.js +1 -1
- package/package.json +23 -20
- package/.eslintrc +0 -3
- package/.swcrc +0 -14
- package/.turbo/turbo-build.log +0 -6
- package/CHANGELOG.md +0 -186
- package/dist/cjs/__mocks__/quotation.js +0 -70
- package/dist/cjs/__mocks__/subscription.js +0 -1079
- package/dist/cjs/components/FluxLogo.js +0 -76
- package/dist/cjs/components/StandardPage.js +0 -129
- package/dist/cjs/debug.js +0 -234
- package/dist/cjs/index.js +0 -20
- package/dist/cjs/templates/QuotationPdf/CustomerSubscriptionSection.js +0 -155
- package/dist/cjs/templates/QuotationPdf/GFV.js +0 -57
- package/dist/cjs/templates/QuotationPdf/Header.js +0 -86
- package/dist/cjs/templates/QuotationPdf/Pricing.js +0 -430
- package/dist/cjs/templates/QuotationPdf/QuotationPdfPage.js +0 -45
- package/dist/cjs/templates/QuotationPdf/SectionBoxNew.js +0 -43
- package/dist/cjs/templates/QuotationPdf/TermsSection.js +0 -60
- package/dist/cjs/templates/QuotationPdf/index.js +0 -208
- package/dist/cjs/templates/QuotationPdf/translations.js +0 -106
- package/dist/cjs/templates/QuotationPdf/utils.js +0 -108
- package/dist/cjs/templates/SubscriptionAgreement/Confirmation.js +0 -95
- package/dist/cjs/templates/SubscriptionAgreement/CoverPage.js +0 -110
- package/dist/cjs/templates/SubscriptionAgreement/CoverPageSection.js +0 -35
- package/dist/cjs/templates/SubscriptionAgreement/Details.js +0 -161
- package/dist/cjs/templates/SubscriptionAgreement/Footer.js +0 -68
- package/dist/cjs/templates/SubscriptionAgreement/Header.js +0 -61
- package/dist/cjs/templates/SubscriptionAgreement/LabelValue.js +0 -39
- package/dist/cjs/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +0 -48
- package/dist/cjs/templates/SubscriptionAgreement/TermsOfUse.js +0 -72
- package/dist/cjs/templates/SubscriptionAgreement/TermsOfUseSubSection.js +0 -108
- package/dist/cjs/templates/SubscriptionAgreement/index.js +0 -276
- package/dist/cjs/templates/SubscriptionAgreement/translations.js +0 -666
- package/dist/cjs/templates/SubscriptionAgreement/utils.js +0 -14
- package/dist/cjs/templates/index.js +0 -19
- package/dist/cjs/theme/colors.js +0 -147
- package/dist/cjs/theme/index.js +0 -18
- package/dist/cjs/types.js +0 -4
- package/dist/cjs/utils.js +0 -184
- package/dist/cjs/watch.js +0 -20
- package/index.cjs +0 -1
- package/index.d.ts +0 -1
- package/src/__mocks__/quotation.ts +0 -63
- package/src/__mocks__/subscription.ts +0 -803
- package/src/components/FluxLogo.tsx +0 -52
- package/src/components/StandardPage.tsx +0 -32
- package/src/debug.ts +0 -45
- package/src/index.ts +0 -3
- package/src/templates/QuotationPdf/CustomerSubscriptionSection.tsx +0 -73
- package/src/templates/QuotationPdf/GFV.tsx +0 -29
- package/src/templates/QuotationPdf/Header.tsx +0 -31
- package/src/templates/QuotationPdf/Pricing.tsx +0 -214
- package/src/templates/QuotationPdf/QuotationPdfPage.tsx +0 -25
- package/src/templates/QuotationPdf/SectionBoxNew.tsx +0 -20
- package/src/templates/QuotationPdf/TermsSection.tsx +0 -28
- package/src/templates/QuotationPdf/index.tsx +0 -46
- package/src/templates/QuotationPdf/translations.ts +0 -84
- package/src/templates/QuotationPdf/utils.ts +0 -59
- package/src/templates/SubscriptionAgreement/Confirmation.tsx +0 -49
- package/src/templates/SubscriptionAgreement/CoverPage.tsx +0 -52
- package/src/templates/SubscriptionAgreement/CoverPageSection.tsx +0 -25
- package/src/templates/SubscriptionAgreement/Details.tsx +0 -127
- package/src/templates/SubscriptionAgreement/Footer.tsx +0 -37
- package/src/templates/SubscriptionAgreement/Header.tsx +0 -37
- package/src/templates/SubscriptionAgreement/LabelValue.tsx +0 -19
- package/src/templates/SubscriptionAgreement/SubscriptionAgreementPage.tsx +0 -24
- package/src/templates/SubscriptionAgreement/TermsOfUse.tsx +0 -30
- package/src/templates/SubscriptionAgreement/TermsOfUseSubSection.tsx +0 -44
- package/src/templates/SubscriptionAgreement/index.tsx +0 -66
- package/src/templates/SubscriptionAgreement/translations.ts +0 -664
- package/src/templates/SubscriptionAgreement/utils.ts +0 -7
- package/src/templates/index.ts +0 -2
- package/src/theme/colors.ts +0 -180
- package/src/theme/index.ts +0 -1
- package/src/types.ts +0 -1
- package/src/utils.ts +0 -27
- package/src/watch.ts +0 -16
- package/tsconfig.json +0 -13
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation.d.ts","sourceRoot":"","sources":["../../src/__mocks__/quotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"quotation.d.ts","sourceRoot":"","sources":["../../src/__mocks__/quotation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,SAAS,EAAE,SA2DvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/__mocks__/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAE5D,eAAO,MAAM,YAAY,EAAE,wBA0zB1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/CustomerSubscriptionSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAG3D,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,SAAS,CAAA;IACpB,CAAC,EAAE,uBAAuB,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,2BAA2B,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"CustomerSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/CustomerSubscriptionSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAG1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAG3D,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,SAAS,CAAA;IACpB,CAAC,EAAE,uBAAuB,CAAA;CAC3B,CAAA;AAED,QAAA,MAAM,2BAA2B,EAAE,EAAE,CAAC,KAAK,CAgD1C,CAAA;AAED,eAAe,2BAA2B,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Text, View } from '@react-pdf/renderer';
|
|
3
3
|
import { colors } from '../../theme/colors.js';
|
|
4
4
|
import SectionBoxNew from './SectionBoxNew.js';
|
|
5
|
-
import { formatAddress,
|
|
5
|
+
import { formatAddress, getMileagePackageTranslation, getSimplifiedPlanTranslation } from './utils.js';
|
|
6
6
|
var CustomerSubscriptionSection = function(param) {
|
|
7
7
|
var quotation = param.quotation, t = param.t;
|
|
8
8
|
var displayContent = function(label, value) {
|
|
@@ -80,7 +80,7 @@ var CustomerSubscriptionSection = function(param) {
|
|
|
80
80
|
},
|
|
81
81
|
children: [
|
|
82
82
|
displayContent(t.subscription.plan, getSimplifiedPlanTranslation(quotation.plan)),
|
|
83
|
-
displayContent(t.subscription.mileagePackage,
|
|
83
|
+
displayContent(t.subscription.mileagePackage, getMileagePackageTranslation(quotation.mileagePackage))
|
|
84
84
|
]
|
|
85
85
|
})
|
|
86
86
|
]
|
|
@@ -121,14 +121,6 @@ var CustomerSubscriptionSection = function(param) {
|
|
|
121
121
|
})
|
|
122
122
|
]
|
|
123
123
|
}, i);
|
|
124
|
-
}),
|
|
125
|
-
quotation.mileagePackage !== 'unlimited' && /*#__PURE__*/ _jsx(Text, {
|
|
126
|
-
style: {
|
|
127
|
-
fontSize: '9px',
|
|
128
|
-
color: colors.primary3,
|
|
129
|
-
letterSpacing: 1
|
|
130
|
-
},
|
|
131
|
-
children: t.subIncludes.excessMileage(quotation.fees.excessMileageFee || 0)
|
|
132
124
|
})
|
|
133
125
|
]
|
|
134
126
|
})
|
|
@@ -4,6 +4,6 @@ type Options = {
|
|
|
4
4
|
locale?: PdfTemplatesSupportedLocales;
|
|
5
5
|
quotation: Quotation;
|
|
6
6
|
};
|
|
7
|
-
export declare const generateQuotationPdf: ({ locale, quotation }: Options, fileName
|
|
7
|
+
export declare const generateQuotationPdf: ({ locale, quotation }: Options, fileName: string) => Promise<void>;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAc7D,KAAK,OAAO,GAAG;IACb,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,oBAAoB,0BAAwC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAGzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAc7D,KAAK,OAAO,GAAG;IACb,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,oBAAoB,0BAAwC,OAAO,YAAY,MAAM,kBAEjG,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,OAAO,aAAa,CAAA;AAE1D,eAAO,MAAM,eAAe,WAAY,IAAI,KAAG,uBAK9C,CAAA"}
|
|
@@ -1,90 +1,87 @@
|
|
|
1
1
|
var enTranslation = {
|
|
2
|
-
quotation:
|
|
2
|
+
quotation: 'Quotation',
|
|
3
3
|
date: 'Date',
|
|
4
4
|
customer: {
|
|
5
|
-
title:
|
|
6
|
-
name:
|
|
7
|
-
email:
|
|
8
|
-
address:
|
|
5
|
+
title: 'Customer',
|
|
6
|
+
name: 'Name',
|
|
7
|
+
email: 'Email',
|
|
8
|
+
address: 'Address'
|
|
9
9
|
},
|
|
10
10
|
subscription: {
|
|
11
|
-
title:
|
|
12
|
-
vehicleName:
|
|
13
|
-
plan:
|
|
14
|
-
mileagePackage:
|
|
11
|
+
title: 'Subscription',
|
|
12
|
+
vehicleName: 'Vehicle',
|
|
13
|
+
plan: 'Subscription Plan',
|
|
14
|
+
mileagePackage: 'Mileage Package'
|
|
15
15
|
},
|
|
16
16
|
subIncludes: {
|
|
17
17
|
title: "What's Included:",
|
|
18
18
|
content: [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]
|
|
30
|
-
excessMileage: function(excessMileage) {
|
|
31
|
-
return "*If usage exceeds chosen mileage package, excess mileage fees for this vehicle is RM".concat(excessMileage, " per KM.");
|
|
32
|
-
}
|
|
19
|
+
'Comprehensive insurance',
|
|
20
|
+
'Road tax',
|
|
21
|
+
'Regularly scheduled maintenance',
|
|
22
|
+
'Selective wear & tear',
|
|
23
|
+
'Ability to swap vehicles',
|
|
24
|
+
'Doorstep delivery',
|
|
25
|
+
'24/7 nationwide roadside assistance',
|
|
26
|
+
'Theft recovery services',
|
|
27
|
+
'Independently rated vehicle inspection',
|
|
28
|
+
'Option to purchase the vehicle at the end of the subscription'
|
|
29
|
+
]
|
|
33
30
|
},
|
|
34
31
|
pricing: {
|
|
35
|
-
title:
|
|
32
|
+
title: 'Pricing',
|
|
36
33
|
fees: {
|
|
37
34
|
upfront: {
|
|
38
|
-
title:
|
|
35
|
+
title: 'Upfront Fees',
|
|
39
36
|
content: [
|
|
40
37
|
{
|
|
41
|
-
title:
|
|
38
|
+
title: 'Booking Fee',
|
|
42
39
|
key: 'reservationFee'
|
|
43
40
|
},
|
|
44
41
|
{
|
|
45
|
-
title:
|
|
42
|
+
title: 'Activation Fee',
|
|
46
43
|
key: 'startFee'
|
|
47
44
|
},
|
|
48
45
|
{
|
|
49
|
-
title:
|
|
46
|
+
title: 'Refundable Deposit',
|
|
50
47
|
key: 'deposit'
|
|
51
48
|
}
|
|
52
49
|
]
|
|
53
50
|
},
|
|
54
51
|
monthly: {
|
|
55
|
-
title:
|
|
52
|
+
title: 'Monthly Fees',
|
|
56
53
|
content: [
|
|
57
54
|
{
|
|
58
|
-
title:
|
|
55
|
+
title: 'Subscription Fee',
|
|
59
56
|
key: 'subscriptionFee'
|
|
60
57
|
}
|
|
61
58
|
]
|
|
62
59
|
},
|
|
63
60
|
dueToday: {
|
|
64
|
-
title:
|
|
65
|
-
description:
|
|
66
|
-
subTotal:
|
|
67
|
-
serviceFee:
|
|
68
|
-
grandTotal:
|
|
61
|
+
title: 'Due Today',
|
|
62
|
+
description: 'Grand Total is due before your subscription start. Monthly fee is due on the first day of every cycle period.',
|
|
63
|
+
subTotal: 'Upfront Fees + Monthly Fee',
|
|
64
|
+
serviceFee: 'Service Fee (8%)',
|
|
65
|
+
grandTotal: 'Grand Total'
|
|
69
66
|
},
|
|
70
|
-
extraCharge:
|
|
71
|
-
promo:
|
|
67
|
+
extraCharge: 'Extra Charge',
|
|
68
|
+
promo: 'Promo',
|
|
72
69
|
gfv: {
|
|
73
|
-
title:
|
|
70
|
+
title: 'Guaranteed Future Value (GFV)'
|
|
74
71
|
}
|
|
75
72
|
}
|
|
76
73
|
},
|
|
77
74
|
terms: {
|
|
78
|
-
title:
|
|
75
|
+
title: 'Terms',
|
|
79
76
|
content: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
'This quotation is valid for 7 days.',
|
|
78
|
+
'All vehicles proposed are unique and are available to our customers on a first come first served basis.',
|
|
79
|
+
'The Mileage Package is the monthly mileage cap for the vehicle. If you exceed this cap for any given month, excess mileage charges will be incurred.',
|
|
80
|
+
'Initial payment to be made within 7 days of the invoice date.',
|
|
81
|
+
'Subscription starts on the date of the car delivery.',
|
|
82
|
+
'The upfront fees are billed one-time per subscription, before the subscription starts.',
|
|
83
|
+
'All monthly recurring fees are billed on the same date as the delivery of the vehicle.',
|
|
84
|
+
'Scheduling delivery will only commence Grand Total is fully paid, 7 - 30+ days after payment and subject to vehicle availability.'
|
|
88
85
|
]
|
|
89
86
|
}
|
|
90
87
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { MileagePackage, PlanType } from '@driveflux/db';
|
|
2
|
-
import { Address } from '@driveflux/db/types';
|
|
1
|
+
import type { MileagePackage, PlanType } from '@driveflux/db';
|
|
2
|
+
import type { Address } from '@driveflux/db/types';
|
|
3
3
|
export declare const formatAddress: (originalAddress: Address) => string;
|
|
4
4
|
export declare const getSimplifiedPlanTranslation: (plan: PlanType) => "60 Months" | "36 Months" | "24 Months" | "12 Months" | "Monthly" | "Weekly" | "Unknown Plan";
|
|
5
|
-
export declare const getMileagePackageTranslation: (mileagePackage?: MileagePackage) => "
|
|
6
|
-
export declare const getFullMileagePackageTranslation: (plan?: MileagePackage | null) => "Lite - 1,250KM" | "Standard - 2,000KM" | "Plus - 2,750KM" | "Unlimited" | "Unknown Mileage Package";
|
|
5
|
+
export declare const getMileagePackageTranslation: (mileagePackage?: MileagePackage) => "Lite" | "Standard" | "Plus" | "Unlimited" | "Unknown Mileage Package";
|
|
7
6
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/templates/QuotationPdf/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,eAAO,MAAM,aAAa,oBAAqB,OAAO,WAMrD,CAAA;AAED,eAAO,MAAM,4BAA4B,SAAU,QAAQ,kGAiB1D,CAAA;AAED,eAAO,MAAM,4BAA4B,oBACvB,cAAc,2EAc/B,CAAA"}
|
|
@@ -39,46 +39,32 @@ export var formatAddress = function(originalAddress) {
|
|
|
39
39
|
export var getSimplifiedPlanTranslation = function(plan) {
|
|
40
40
|
switch(plan){
|
|
41
41
|
case 'plan60':
|
|
42
|
-
return
|
|
42
|
+
return '60 Months';
|
|
43
43
|
case 'plan36':
|
|
44
|
-
return
|
|
44
|
+
return '36 Months';
|
|
45
45
|
case 'plan24':
|
|
46
|
-
return
|
|
46
|
+
return '24 Months';
|
|
47
47
|
case 'plan12':
|
|
48
|
-
return
|
|
48
|
+
return '12 Months';
|
|
49
49
|
case 'plan1':
|
|
50
|
-
return
|
|
50
|
+
return 'Monthly';
|
|
51
51
|
case 'planWeekly':
|
|
52
|
-
return
|
|
52
|
+
return 'Weekly';
|
|
53
53
|
default:
|
|
54
|
-
return
|
|
54
|
+
return 'Unknown Plan';
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
export var getMileagePackageTranslation = function(mileagePackage) {
|
|
58
58
|
switch(mileagePackage){
|
|
59
59
|
case 'lite':
|
|
60
|
-
return
|
|
60
|
+
return 'Lite';
|
|
61
61
|
case 'standard':
|
|
62
|
-
return
|
|
62
|
+
return 'Standard';
|
|
63
63
|
case 'plus':
|
|
64
|
-
return
|
|
64
|
+
return 'Plus';
|
|
65
65
|
case 'unlimited':
|
|
66
|
-
return
|
|
66
|
+
return 'Unlimited';
|
|
67
67
|
default:
|
|
68
|
-
return
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
export var getFullMileagePackageTranslation = function(plan) {
|
|
72
|
-
switch(plan){
|
|
73
|
-
case 'lite':
|
|
74
|
-
return "Lite - 1,250KM";
|
|
75
|
-
case 'standard':
|
|
76
|
-
return "Standard - 2,000KM";
|
|
77
|
-
case 'plus':
|
|
78
|
-
return "Plus - 2,750KM";
|
|
79
|
-
case 'unlimited':
|
|
80
|
-
return "Unlimited";
|
|
81
|
-
default:
|
|
82
|
-
return "Unknown Mileage Package";
|
|
68
|
+
return 'Unknown Mileage Package';
|
|
83
69
|
}
|
|
84
70
|
};
|
|
@@ -9,6 +9,6 @@ type Options = {
|
|
|
9
9
|
locale?: PdfTemplatesSupportedLocales;
|
|
10
10
|
subscription: SubscriptionForAgreement;
|
|
11
11
|
};
|
|
12
|
-
export declare const generateSubscriptionAgreementPdf: ({ locale, subscription }: Options, fileName
|
|
12
|
+
export declare const generateSubscriptionAgreementPdf: ({ locale, subscription }: Options, fileName: string) => Promise<void>;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAS7D,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACpD,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;CACvC,CAAA;AAED,KAAK,OAAO,GAAG;IACb,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,YAAY,EAAE,wBAAwB,CAAA;CACvC,CAAA;AACD,eAAO,MAAM,gCAAgC,6BAA2C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAS7D,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACpD,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;CACvC,CAAA;AAED,KAAK,OAAO,GAAG;IACb,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,YAAY,EAAE,wBAAwB,CAAA;CACvC,CAAA;AACD,eAAO,MAAM,gCAAgC,6BAA2C,OAAO,YAAY,MAAM,kBAQhH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/translations.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAyoBS,QAAQ,GAAG,UAAU;;;;;CAMhD,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,OAAO,aAAa,CAAA;AAEnE,eAAO,MAAM,eAAe,WACnB,IAAI,KACV,gCAKF,CAAA"}
|