@fabriktor/client 0.0.94 → 0.0.96
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import { ColBillableBills, ColBillableCharges, ColBillableEquipments, ColBillableFolders, ColBillableItems, ColBillableLaborRates, ColBillableMeterReadings, ColBillableQuantifiers, ColBillableTaxes, ColBillableTmpBillNumbers, ColBillableVendorInvoices, ColBillableWarehouses, HTTPMethodPost, PathBillableAcceptFixedEstimate, PathBillableCompleteBill, PathBillableCancelBill, PathBillableRetryBillReport, PathBillableFromBill, PathBillableGenerate, PathBillablePeriodsFromDates, PathBillableSetQuantity, PathBillableYearSpan, SvcBillable, } from "@fabriktor/schema";
|
|
7
7
|
import { requiredToken } from "../core/auth.js";
|
|
8
8
|
import { newCRUDClient } from "../core/crud.js";
|
|
9
|
+
import { newIdempotencyKey } from "../core/idempotency.js";
|
|
9
10
|
import { buildPath } from "../core/path.js";
|
|
10
11
|
export class BillableClient {
|
|
11
12
|
bills;
|
|
@@ -364,6 +365,7 @@ export class BillableClient {
|
|
|
364
365
|
base_url: this.base_url,
|
|
365
366
|
path: billPath(PathBillableYearSpan),
|
|
366
367
|
method: HTTPMethodPost,
|
|
368
|
+
idempotency_key: newIdempotencyKey(),
|
|
367
369
|
token,
|
|
368
370
|
body: opts,
|
|
369
371
|
});
|
|
@@ -374,6 +376,7 @@ export class BillableClient {
|
|
|
374
376
|
base_url: this.base_url,
|
|
375
377
|
path: billPath(PathBillablePeriodsFromDates),
|
|
376
378
|
method: HTTPMethodPost,
|
|
379
|
+
idempotency_key: newIdempotencyKey(),
|
|
377
380
|
token,
|
|
378
381
|
body: opts,
|
|
379
382
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabriktor/client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"typescript": "^6.0.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fabriktor/schema": "0.0.
|
|
20
|
+
"@fabriktor/schema": "0.0.68"
|
|
21
21
|
}
|
|
22
22
|
}
|