@final-commerce/command-frame 0.1.41 → 0.1.43
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/README.md +17 -0
- package/dist/CommonTypes.d.ts +3 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,23 @@ The library provides three main capabilities:
|
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
|
+
### From npm (public registry)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @final-commerce/command-frame
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### From GitHub Packages
|
|
26
|
+
|
|
27
|
+
To install from GitHub Packages, add this to your project's `.npmrc`:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
@final-commerce:registry=https://npm.pkg.github.com
|
|
31
|
+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Set `NODE_AUTH_TOKEN` to a GitHub personal access token with `read:packages` scope, then install as usual:
|
|
35
|
+
|
|
19
36
|
```bash
|
|
20
37
|
npm install @final-commerce/command-frame
|
|
21
38
|
```
|
package/dist/CommonTypes.d.ts
CHANGED
|
@@ -234,13 +234,14 @@ export interface CFPosDataItem {
|
|
|
234
234
|
export interface CFDiscountDetail {
|
|
235
235
|
percentage: number;
|
|
236
236
|
amount: string;
|
|
237
|
-
|
|
237
|
+
label?: string;
|
|
238
238
|
}
|
|
239
239
|
export interface CFFeeDetail {
|
|
240
240
|
percentage: number;
|
|
241
241
|
amount: string;
|
|
242
242
|
tax: string;
|
|
243
243
|
taxTableId: string;
|
|
244
|
+
label?: string;
|
|
244
245
|
}
|
|
245
246
|
export interface CFDiscountLineItem {
|
|
246
247
|
itemDiscount: CFDiscountDetail;
|
|
@@ -286,13 +287,7 @@ export interface CFCustomSale {
|
|
|
286
287
|
cartDiscount: CFDiscountDetail;
|
|
287
288
|
};
|
|
288
289
|
fee: {
|
|
289
|
-
cartFee:
|
|
290
|
-
amount: string;
|
|
291
|
-
label: string;
|
|
292
|
-
percentage: number;
|
|
293
|
-
tax: string;
|
|
294
|
-
taxTableId: string;
|
|
295
|
-
};
|
|
290
|
+
cartFee: CFFeeDetail;
|
|
296
291
|
};
|
|
297
292
|
}
|
|
298
293
|
export interface CFRefundedLineItem {
|