@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":"utils.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/templates/SubscriptionAgreement/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,eAAO,MAAM,oBAAoB,oBACf,kBAAkB,GAAG,IAAI,WAK1C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;IAClB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFH,CAAA"}
|
package/dist/theme/colors.js
CHANGED
|
@@ -3,59 +3,59 @@
|
|
|
3
3
|
// update all instances using colors
|
|
4
4
|
export var colors = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* #EFEFF0 Light Gray
|
|
7
|
+
*/ primary1: '#EFEFF0',
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* #CACACA Gray
|
|
10
|
+
*/ primary2: '#CACACA',
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
* #585858 Dark Gray
|
|
13
|
+
*/ primary3: '#585858',
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* #191919 Soft Black
|
|
16
|
+
*/ primary4: '#191919',
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* #E55867 Red
|
|
19
|
+
*/ accent4: '#E55867',
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* #ADE0EE Light Blue
|
|
22
|
+
*/ links2: '#ADE0EE',
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* #50C8E8 Blue
|
|
25
|
+
*/ links: '#50C8E8',
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* #E24657 Red
|
|
28
|
+
*/ alert4: '#E24657',
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* #E24657 Red
|
|
31
|
+
*/ danger: '#E24657',
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* #F4B25C Yellow
|
|
34
|
+
*/ warning4: '#F4B25C',
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* #4FD9C2 Green
|
|
37
|
+
*/ success4: '#4FD9C2',
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
* #4FD9C2 Green
|
|
40
|
+
*/ green: '#4FD9C2',
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
* #3BD5BC Green
|
|
43
|
+
*/ // green: '#3BD5BC',
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* #000000 Black
|
|
46
|
+
*/ black: '#000000',
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
* #ffffff White
|
|
49
|
+
*/ white: '#ffffff',
|
|
50
50
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
* #E6E6E6 Light Gray
|
|
52
|
+
*/ whiteHover: '#E6E6E6',
|
|
53
53
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
* #F4F4F4 Light Gray
|
|
55
|
+
*/ placeholder: '#F4F4F4',
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
* #F9F7D7 Light Yellow
|
|
58
|
+
*/ highlight: '#F9F7D7',
|
|
59
59
|
primary: {
|
|
60
60
|
25: '#fafafa',
|
|
61
61
|
50: '#d6f5f0',
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import type { DocumentProps } from '@react-pdf/renderer';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
|
|
4
|
-
*
|
|
5
|
-
* @param document React PDF Document element
|
|
6
|
-
* @param fileName DO NOT USE THIS IN NEXT.JS APP, as Vercel does not allow us to amend files. This will generate a PDF file in the given fileName
|
|
7
|
-
* @returns PDF Buffer
|
|
8
|
-
*/
|
|
9
|
-
export declare const toPdf: (document: ReactElement<DocumentProps>, fileName?: string) => Promise<Buffer>;
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
export declare const toPdf: (document: ReactElement<DocumentProps>, fileName: string) => Promise<void>;
|
|
10
4
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEzC,eAAO,MAAM,KAAK,aACP,YAAY,CAAC,aAAa,CAAC,YAC3B,MAAM,kBAMhB,CAAA"}
|
package/dist/utils.js
CHANGED
|
@@ -123,47 +123,23 @@ function _ts_generator(thisArg, body) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
import ReactPDF from '@react-pdf/renderer';
|
|
126
|
-
|
|
127
|
-
*
|
|
128
|
-
* @param document React PDF Document element
|
|
129
|
-
* @param fileName DO NOT USE THIS IN NEXT.JS APP, as Vercel does not allow us to amend files. This will generate a PDF file in the given fileName
|
|
130
|
-
* @returns PDF Buffer
|
|
131
|
-
*/ export var toPdf = function() {
|
|
126
|
+
export var toPdf = function() {
|
|
132
127
|
var _ref = _async_to_generator(function(document, fileName) {
|
|
133
|
-
var
|
|
128
|
+
var pdfStream;
|
|
134
129
|
return _ts_generator(this, function(_state) {
|
|
135
130
|
switch(_state.label){
|
|
136
131
|
case 0:
|
|
137
|
-
if (!!!fileName) return [
|
|
138
|
-
3,
|
|
139
|
-
2
|
|
140
|
-
];
|
|
141
132
|
return [
|
|
142
133
|
4,
|
|
143
134
|
ReactPDF.renderToFile(document, fileName)
|
|
144
135
|
];
|
|
145
136
|
case 1:
|
|
146
|
-
_state.sent();
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
4,
|
|
151
|
-
ReactPDF.renderToStream(document)
|
|
152
|
-
];
|
|
153
|
-
case 3:
|
|
154
|
-
stream = _state.sent();
|
|
137
|
+
pdfStream = _state.sent();
|
|
138
|
+
pdfStream.on('end', function() {
|
|
139
|
+
console.log("Generated PDF to ".concat(fileName));
|
|
140
|
+
});
|
|
155
141
|
return [
|
|
156
|
-
2
|
|
157
|
-
new Promise(function(resolve, reject) {
|
|
158
|
-
var buffers = [];
|
|
159
|
-
stream.on('data', function(data) {
|
|
160
|
-
buffers.push(data);
|
|
161
|
-
});
|
|
162
|
-
stream.on('end', function() {
|
|
163
|
-
resolve(Buffer.concat(buffers));
|
|
164
|
-
});
|
|
165
|
-
stream.on('error', reject);
|
|
166
|
-
})
|
|
142
|
+
2
|
|
167
143
|
];
|
|
168
144
|
}
|
|
169
145
|
});
|
package/dist/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/pdf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./dist/cjs/index.js",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
5
|
"exports": {
|
|
9
6
|
".": {
|
|
10
7
|
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/cjs/index.js",
|
|
12
8
|
"types": "./dist/index.d.ts"
|
|
13
9
|
}
|
|
14
10
|
},
|
|
15
11
|
"dependencies": {
|
|
16
|
-
"@driveflux/db": "1.
|
|
17
|
-
"@driveflux/env": "1.0
|
|
18
|
-
"@driveflux/
|
|
19
|
-
"@driveflux/
|
|
12
|
+
"@driveflux/db": "1.3.1",
|
|
13
|
+
"@driveflux/env": "1.1.0",
|
|
14
|
+
"@driveflux/format-money": "5.1.0",
|
|
15
|
+
"@driveflux/time": "4.1.0",
|
|
20
16
|
"@react-pdf/renderer": "^3.4.4",
|
|
17
|
+
"date-fns": "^3.6.0",
|
|
21
18
|
"nodemon": "^3.1.4",
|
|
22
19
|
"react": "^18.3.1"
|
|
23
20
|
},
|
|
@@ -26,24 +23,30 @@
|
|
|
26
23
|
},
|
|
27
24
|
"devDependencies": {
|
|
28
25
|
"@babel/preset-env": "^7.24.7",
|
|
29
|
-
"@driveflux/
|
|
30
|
-
"@driveflux/
|
|
31
|
-
"@
|
|
32
|
-
"@swc/
|
|
33
|
-
"@
|
|
34
|
-
"@types/node": "^20.14.8",
|
|
35
|
-
"react": "^18.3.1",
|
|
26
|
+
"@driveflux/fab": "2.1.0",
|
|
27
|
+
"@driveflux/tsconfig": "1.1.0",
|
|
28
|
+
"@swc/cli": "^0.4.0",
|
|
29
|
+
"@swc/core": "1.6.13",
|
|
30
|
+
"@types/node": "^20.14.10",
|
|
36
31
|
"@types/react": "^18.3.3",
|
|
37
32
|
"del-cli": "^5.1.0",
|
|
38
|
-
"
|
|
39
|
-
"typescript": "^5.5.
|
|
33
|
+
"react": "^18.3.1",
|
|
34
|
+
"typescript": "^5.5.3"
|
|
40
35
|
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
41
39
|
"scripts": {
|
|
42
40
|
"build": "fab",
|
|
43
41
|
"debug": "pnpm build && node dist/debug.js",
|
|
44
42
|
"dev": "pnpm debug && node dist/watch.js",
|
|
45
43
|
"clean": "fab clean",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
44
|
+
"build:js": "fab -t esm",
|
|
45
|
+
"build:types": "fab -t types",
|
|
46
|
+
"type-check": "tsc --noEmit",
|
|
47
|
+
"check": "biome check --write ./src",
|
|
48
|
+
"lint:errors": "pnpm lint --diagnostic-level error",
|
|
49
|
+
"format": "biome format --write ./src",
|
|
50
|
+
"lint": "biome lint --write --unsafe ./src"
|
|
48
51
|
}
|
|
49
52
|
}
|
package/.eslintrc
DELETED
package/.swcrc
DELETED
package/.turbo/turbo-build.log
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
# @driveflux/frontend-pdf
|
|
2
|
-
|
|
3
|
-
## 1.0.15
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies
|
|
8
|
-
- @driveflux/db@1.2.9
|
|
9
|
-
|
|
10
|
-
## 1.0.14
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Updated dependencies
|
|
15
|
-
- @driveflux/db@1.2.8
|
|
16
|
-
|
|
17
|
-
## 1.0.13
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- @driveflux/db@1.2.7
|
|
22
|
-
|
|
23
|
-
## 1.0.12
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- Updated dependencies
|
|
28
|
-
- @driveflux/db@1.2.6
|
|
29
|
-
|
|
30
|
-
## 1.0.11
|
|
31
|
-
|
|
32
|
-
### Patch Changes
|
|
33
|
-
|
|
34
|
-
- Versions and dependencies fixes
|
|
35
|
-
- Updated dependencies
|
|
36
|
-
- @driveflux/format-money@5.0.10
|
|
37
|
-
- @driveflux/time@4.0.9
|
|
38
|
-
- @driveflux/env@1.0.10
|
|
39
|
-
- @driveflux/db@1.2.5
|
|
40
|
-
|
|
41
|
-
## 1.0.10
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- Minor adjustments for deps
|
|
46
|
-
- Upgraded packages
|
|
47
|
-
- Updated dependencies
|
|
48
|
-
- Updated dependencies
|
|
49
|
-
- @driveflux/format-money@5.0.9
|
|
50
|
-
- @driveflux/time@4.0.8
|
|
51
|
-
- @driveflux/env@1.0.9
|
|
52
|
-
- @driveflux/db@1.2.4
|
|
53
|
-
|
|
54
|
-
## 1.0.9
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- Updated dependencies
|
|
59
|
-
- @driveflux/db@1.2.3
|
|
60
|
-
|
|
61
|
-
## 1.0.8
|
|
62
|
-
|
|
63
|
-
### Patch Changes
|
|
64
|
-
|
|
65
|
-
- Minor updates on build
|
|
66
|
-
- Updated dependencies
|
|
67
|
-
- @driveflux/time@4.0.7
|
|
68
|
-
- @driveflux/env@1.0.8
|
|
69
|
-
- @driveflux/db@1.2.2
|
|
70
|
-
|
|
71
|
-
## 1.0.7
|
|
72
|
-
|
|
73
|
-
### Patch Changes
|
|
74
|
-
|
|
75
|
-
- Upgraded all packages
|
|
76
|
-
- Updated dependencies
|
|
77
|
-
- @driveflux/time@4.0.6
|
|
78
|
-
- @driveflux/env@1.0.7
|
|
79
|
-
- @driveflux/db@1.2.1
|
|
80
|
-
- Add mileage value in Quotation PDF
|
|
81
|
-
|
|
82
|
-
## 1.0.6
|
|
83
|
-
|
|
84
|
-
### Patch Changes
|
|
85
|
-
|
|
86
|
-
- Updated dependencies
|
|
87
|
-
- @driveflux/db@1.2.0
|
|
88
|
-
|
|
89
|
-
## 1.0.5
|
|
90
|
-
|
|
91
|
-
### Patch Changes
|
|
92
|
-
|
|
93
|
-
- Updated dependencies
|
|
94
|
-
- @driveflux/db@1.1.0
|
|
95
|
-
|
|
96
|
-
## 1.0.4
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- Updates
|
|
101
|
-
- Updated dependencies
|
|
102
|
-
- @driveflux/db@1.0.39
|
|
103
|
-
|
|
104
|
-
## 1.0.3
|
|
105
|
-
|
|
106
|
-
### Patch Changes
|
|
107
|
-
|
|
108
|
-
- Updates
|
|
109
|
-
- Updated dependencies
|
|
110
|
-
- @driveflux/db@1.0.38
|
|
111
|
-
|
|
112
|
-
## 1.0.2
|
|
113
|
-
|
|
114
|
-
### Patch Changes
|
|
115
|
-
|
|
116
|
-
- Updates
|
|
117
|
-
- Updated dependencies
|
|
118
|
-
- @driveflux/db@1.0.37
|
|
119
|
-
|
|
120
|
-
## 1.0.1
|
|
121
|
-
|
|
122
|
-
### Patch Changes
|
|
123
|
-
|
|
124
|
-
- General updates
|
|
125
|
-
- Updated dependencies
|
|
126
|
-
- @driveflux/db@1.0.36
|
|
127
|
-
|
|
128
|
-
## 1.0.5
|
|
129
|
-
|
|
130
|
-
### Patch Changes
|
|
131
|
-
|
|
132
|
-
- Upgraded packages again
|
|
133
|
-
|
|
134
|
-
## 1.0.4
|
|
135
|
-
|
|
136
|
-
### Patch Changes
|
|
137
|
-
|
|
138
|
-
- Upgraded packages
|
|
139
|
-
|
|
140
|
-
## 1.0.3
|
|
141
|
-
|
|
142
|
-
### Patch Changes
|
|
143
|
-
|
|
144
|
-
- Reverted SWC core version
|
|
145
|
-
|
|
146
|
-
## 1.0.2
|
|
147
|
-
|
|
148
|
-
### Patch Changes
|
|
149
|
-
|
|
150
|
-
- Updated dependencies
|
|
151
|
-
|
|
152
|
-
## 1.0.1
|
|
153
|
-
|
|
154
|
-
### Patch Changes
|
|
155
|
-
|
|
156
|
-
- Bump versions
|
|
157
|
-
|
|
158
|
-
## 1.0.0
|
|
159
|
-
|
|
160
|
-
### Major Changes
|
|
161
|
-
|
|
162
|
-
- 4.5 pre-release
|
|
163
|
-
|
|
164
|
-
### Patch Changes
|
|
165
|
-
|
|
166
|
-
- verion bump + minor improvements
|
|
167
|
-
- Bump all versions
|
|
168
|
-
- Version bump
|
|
169
|
-
|
|
170
|
-
## 1.0.0-next.2
|
|
171
|
-
|
|
172
|
-
### Patch Changes
|
|
173
|
-
|
|
174
|
-
- Version bump
|
|
175
|
-
|
|
176
|
-
## 1.0.0-next.1
|
|
177
|
-
|
|
178
|
-
### Patch Changes
|
|
179
|
-
|
|
180
|
-
- verion bump + minor improvements
|
|
181
|
-
|
|
182
|
-
## 1.0.0-next.0
|
|
183
|
-
|
|
184
|
-
### Major Changes
|
|
185
|
-
|
|
186
|
-
- 4.5 pre-release
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "quotation", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return quotation;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var quotation = {
|
|
12
|
-
id: 'QUO_XZJLVSM8',
|
|
13
|
-
vehicleId: 'VBEXLQR',
|
|
14
|
-
plan: 'plan36',
|
|
15
|
-
mileagePackage: 'lite',
|
|
16
|
-
cycleFluxCoefficient: 'flux25',
|
|
17
|
-
customerName: 'Bubu Ahmad',
|
|
18
|
-
vehicleName: 'Volkswagen Polo 1.6 Sedan 2011',
|
|
19
|
-
createdById: 'U2R88JRVL',
|
|
20
|
-
createdAt: new Date('2024-05-27T02:26:36.070Z'),
|
|
21
|
-
updatedAt: new Date('2024-05-27T02:26:36.070Z'),
|
|
22
|
-
metadata: {},
|
|
23
|
-
customer: {
|
|
24
|
-
type: 'user',
|
|
25
|
-
name: 'Bubu Ahmad',
|
|
26
|
-
email: 'bubu@gmail.com',
|
|
27
|
-
address: {
|
|
28
|
-
street1: '15-2 Jalan Solaris',
|
|
29
|
-
city: 'Kuala Lumpur',
|
|
30
|
-
state: 'Johor',
|
|
31
|
-
postalCode: '12323',
|
|
32
|
-
country: 'MY'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
fees: {
|
|
36
|
-
subscriptionFee: 800,
|
|
37
|
-
reservationFee: 0,
|
|
38
|
-
startFee: 498,
|
|
39
|
-
deposit: 1600,
|
|
40
|
-
depositMonths: 2,
|
|
41
|
-
extraCharges: [
|
|
42
|
-
{
|
|
43
|
-
type: 'upfront',
|
|
44
|
-
description: 'Spare Tyre',
|
|
45
|
-
amount: 2500.2
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: 'upfront',
|
|
49
|
-
description: 'Spare Tyre No 2',
|
|
50
|
-
amount: 3000.2
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: 'monthly',
|
|
54
|
-
description: 'Commitment ',
|
|
55
|
-
amount: 2
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
amountBeforeTax: 8400.4,
|
|
59
|
-
taxAmount: 672.03,
|
|
60
|
-
amountAfterTax: 9072.43,
|
|
61
|
-
gfv: 0,
|
|
62
|
-
cycle: null,
|
|
63
|
-
couponCode: null,
|
|
64
|
-
discountAmount: null,
|
|
65
|
-
appliedDiscountId: null,
|
|
66
|
-
couponType: '',
|
|
67
|
-
excessMileageFee: 3.8
|
|
68
|
-
},
|
|
69
|
-
quotationPdf: null
|
|
70
|
-
};
|