@happyvertical/smrt-commerce 0.57.32 → 0.57.34
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/chunks/{ContractLineItemCollection-D98l5Xfo.js → ContractLineItemCollection-DKcR46vL.js} +4 -4
- package/dist/chunks/{ContractLineItemCollection-D98l5Xfo.js.map → ContractLineItemCollection-DKcR46vL.js.map} +1 -1
- package/dist/chunks/{DocumentTaxCollection-DICwyk_v.js → DocumentTaxCollection-BjY9L6lc.js} +13 -13
- package/dist/chunks/DocumentTaxCollection-BjY9L6lc.js.map +1 -0
- package/dist/chunks/{InvoiceCollection--mhl_Rjn.js → InvoiceCollection-C50Hsu6G.js} +9 -9
- package/dist/chunks/{InvoiceCollection--mhl_Rjn.js.map → InvoiceCollection-C50Hsu6G.js.map} +1 -1
- package/dist/chunks/{TaxCodeCollection-qfa1Pqlu.js → TaxCodeCollection-CT09VQ9n.js} +2 -2
- package/dist/chunks/{TaxCodeCollection-qfa1Pqlu.js.map → TaxCodeCollection-CT09VQ9n.js.map} +1 -1
- package/dist/chunks/{TaxComponentCollection-DZbp5Qwj.js → TaxComponentCollection-D8sFp8ZD.js} +3 -3
- package/dist/chunks/{TaxComponentCollection-DZbp5Qwj.js.map → TaxComponentCollection-D8sFp8ZD.js.map} +1 -1
- package/dist/chunks/{allocation-integrity-BMb0SNFE.js → allocation-integrity-DrFgfSMd.js} +6 -6
- package/dist/chunks/{allocation-integrity-BMb0SNFE.js.map → allocation-integrity-DrFgfSMd.js.map} +1 -1
- package/dist/chunks/{contract-money-8m3YGSDY.js → contract-money-Cnezm9sA.js} +6 -6
- package/dist/chunks/{contract-money-8m3YGSDY.js.map → contract-money-Cnezm9sA.js.map} +1 -1
- package/dist/chunks/{invoice-posting-D2qx3ai_.js → invoice-posting-Dx-mfaRX.js} +3 -3
- package/dist/chunks/{invoice-posting-D2qx3ai_.js.map → invoice-posting-Dx-mfaRX.js.map} +1 -1
- package/dist/chunks/{retention-accounting-Cj--FDH3.js → retention-accounting-CvfeisFJ.js} +8 -8
- package/dist/chunks/{retention-accounting-Cj--FDH3.js.map → retention-accounting-CvfeisFJ.js.map} +1 -1
- package/dist/chunks/{tenant-money-barrier-kslrdDxn.js → tenant-money-barrier-DTELupG0.js} +3 -3
- package/dist/chunks/{tenant-money-barrier-kslrdDxn.js.map → tenant-money-barrier-DTELupG0.js.map} +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/invoices.js +1 -1
- package/dist/manifest.json +15 -3
- package/dist/models/Customer.d.ts +2 -2
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Vendor.d.ts +2 -2
- package/dist/models/Vendor.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +9 -4
- package/package.json +13 -14
- package/dist/chunks/DocumentTaxCollection-DICwyk_v.js.map +0 -1
package/dist/invoices.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as calculateInvoiceMinorLine, _ as reconcileOrdinaryCreditAccounting, a as reconcileRetainedBaseInvoice, b as syncOrdinaryRefundToAccounting, c as syncRetainedCreditToAccounting, d as toRetainedCreditAccountingInput, f as toRetainedInvoiceAccountingInput, g as reconcileOrdinaryBaseInvoice, h as reconcileOrdinaryAccountingStep, i as reconcileRetainedAccountingStep, l as syncRetainedInvoiceToAccounting, m as readOrdinaryInvoiceAccountingState, n as loadRetainedInvoiceAccountingSnapshot, o as reconcileRetainedCreditAccounting, p as loadOrdinaryCreditAccountingSnapshot, r as readRetainedInvoiceAccountingState, s as releaseRetainedInvoiceToAccounting, t as loadRetainedCreditAccountingSnapshot, u as syncRetainedRefundToAccounting, v as syncOrdinaryCreditToAccounting, x as toOrdinaryCreditAccountingInput, y as syncOrdinaryInvoiceToAccounting } from "./chunks/retention-accounting-
|
|
1
|
+
import { S as calculateInvoiceMinorLine, _ as reconcileOrdinaryCreditAccounting, a as reconcileRetainedBaseInvoice, b as syncOrdinaryRefundToAccounting, c as syncRetainedCreditToAccounting, d as toRetainedCreditAccountingInput, f as toRetainedInvoiceAccountingInput, g as reconcileOrdinaryBaseInvoice, h as reconcileOrdinaryAccountingStep, i as reconcileRetainedAccountingStep, l as syncRetainedInvoiceToAccounting, m as readOrdinaryInvoiceAccountingState, n as loadRetainedInvoiceAccountingSnapshot, o as reconcileRetainedCreditAccounting, p as loadOrdinaryCreditAccountingSnapshot, r as readRetainedInvoiceAccountingState, s as releaseRetainedInvoiceToAccounting, t as loadRetainedCreditAccountingSnapshot, u as syncRetainedRefundToAccounting, v as syncOrdinaryCreditToAccounting, x as toOrdinaryCreditAccountingInput, y as syncOrdinaryInvoiceToAccounting } from "./chunks/retention-accounting-CvfeisFJ.js";
|
|
2
2
|
import { MoneyValidationError } from "./money.js";
|
|
3
3
|
export { MoneyValidationError, calculateInvoiceMinorLine, loadOrdinaryCreditAccountingSnapshot, loadRetainedCreditAccountingSnapshot, loadRetainedInvoiceAccountingSnapshot, readOrdinaryInvoiceAccountingState, readRetainedInvoiceAccountingState, reconcileOrdinaryAccountingStep, reconcileOrdinaryBaseInvoice, reconcileOrdinaryCreditAccounting, reconcileRetainedAccountingStep, reconcileRetainedBaseInvoice, reconcileRetainedCreditAccounting, releaseRetainedInvoiceToAccounting, syncOrdinaryCreditToAccounting, syncOrdinaryInvoiceToAccounting, syncOrdinaryRefundToAccounting, syncRetainedCreditToAccounting, syncRetainedInvoiceToAccounting, syncRetainedRefundToAccounting, toOrdinaryCreditAccountingInput, toRetainedCreditAccountingInput, toRetainedInvoiceAccountingInput };
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.57.
|
|
5
|
+
"packageVersion": "0.57.34",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -16473,7 +16473,13 @@
|
|
|
16473
16473
|
"save": {
|
|
16474
16474
|
"name": "save",
|
|
16475
16475
|
"async": true,
|
|
16476
|
-
"parameters": [
|
|
16476
|
+
"parameters": [
|
|
16477
|
+
{
|
|
16478
|
+
"name": "options",
|
|
16479
|
+
"type": "SmrtSaveOptions",
|
|
16480
|
+
"optional": true
|
|
16481
|
+
}
|
|
16482
|
+
],
|
|
16477
16483
|
"returnType": "Promise<this>",
|
|
16478
16484
|
"isStatic": false,
|
|
16479
16485
|
"isPublic": true
|
|
@@ -25128,7 +25134,13 @@
|
|
|
25128
25134
|
"save": {
|
|
25129
25135
|
"name": "save",
|
|
25130
25136
|
"async": true,
|
|
25131
|
-
"parameters": [
|
|
25137
|
+
"parameters": [
|
|
25138
|
+
{
|
|
25139
|
+
"name": "options",
|
|
25140
|
+
"type": "SmrtSaveOptions",
|
|
25141
|
+
"optional": true
|
|
25142
|
+
}
|
|
25143
|
+
],
|
|
25132
25144
|
"returnType": "Promise<this>",
|
|
25133
25145
|
"isStatic": false,
|
|
25134
25146
|
"isPublic": true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Customer model - links to Profile with customer-specific data
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
|
-
import { SmrtObject } from '@happyvertical/smrt-core';
|
|
5
|
+
import { SmrtObject, type SmrtSaveOptions } from '@happyvertical/smrt-core';
|
|
6
6
|
import { type Address, type CustomerOptions, CustomerStatus, CustomerType, type PartyContact } from '../types/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Customer represents the customer role for a Profile.
|
|
@@ -97,7 +97,7 @@ export declare class Customer extends SmrtObject {
|
|
|
97
97
|
*/
|
|
98
98
|
initialize(): Promise<this>;
|
|
99
99
|
/** Save with a final contacts normalization against direct assignment. */
|
|
100
|
-
save(): Promise<this>;
|
|
100
|
+
save(options?: SmrtSaveOptions): Promise<this>;
|
|
101
101
|
/**
|
|
102
102
|
* Convenience predicate: is this a wholesale customer?
|
|
103
103
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/models/Customer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIL,UAAU,
|
|
1
|
+
{"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../src/models/Customer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,cAAc,EACd,YAAY,EACZ,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;GAcG;AACH,qBAMa,QAAS,SAAQ,UAAU;IACtC;;;OAGG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;;OAGG;IAKH,SAAS,EAAE,MAAM,CAAM;IAEvB;;;;;;;;OAQG;IAMH,WAAW,EAAE,MAAM,CAAK;IAExB;;OAEG;IAKH,YAAY,EAAE,MAAM,CAAM;IAE1B;;OAEG;IAIH,SAAS,EAAE,OAAO,CAAS;IAE3B;;;;;OAKG;IAMH,KAAK,EAAE,MAAM,CAAM;IAEnB;;;;;OAKG;IAIH,gBAAgB,EAAE,MAAM,CAAM;IAE9B;;OAEG;IAKH,sBAAsB,EAAE,OAAO,CAAM;IAErC;;OAEG;IAEH,qBAAqB,EAAE,OAAO,CAAM;IAEpC;;OAEG;IAKH,MAAM,EAAE,cAAc,CAAyB;IAE/C;;;;;OAKG;IAKH,YAAY,EAAE,YAAY,CAAoB;IAE9C;;OAEG;IAKH,KAAK,EAAE,MAAM,CAAM;IAEnB;;;OAGG;IAKH,QAAQ,EAAE,YAAY,EAAE,CAAM;gBAElB,OAAO,GAAE,eAAoB;IAgCzC;;;OAGG;IACY,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAM1C,0EAA0E;IAC3D,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7D;;OAEG;IACH,WAAW,IAAI,OAAO;IAItB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAK3C;;;;;;;;;;OAUG;IACH,YAAY,IAAI,MAAM;CAGvB;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/models/Vendor.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Vendor model - links to Profile with vendor-specific data
|
|
3
3
|
* @packageDocumentation
|
|
4
4
|
*/
|
|
5
|
-
import { SmrtObject } from '@happyvertical/smrt-core';
|
|
5
|
+
import { SmrtObject, type SmrtSaveOptions } from '@happyvertical/smrt-core';
|
|
6
6
|
import { type PartyContact, type VendorOptions, VendorStatus } from '../types/index.js';
|
|
7
7
|
/**
|
|
8
8
|
* Vendor represents the vendor/supplier role for a Profile.
|
|
@@ -116,7 +116,7 @@ export declare class Vendor extends SmrtObject {
|
|
|
116
116
|
* (`vendor.payoutAddresses = somethingFunny`) can't smuggle non-string
|
|
117
117
|
* values into the persisted row.
|
|
118
118
|
*/
|
|
119
|
-
save(): Promise<this>;
|
|
119
|
+
save(options?: SmrtSaveOptions): Promise<this>;
|
|
120
120
|
/**
|
|
121
121
|
* Check if vendor is active
|
|
122
122
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vendor.d.ts","sourceRoot":"","sources":["../../src/models/Vendor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIL,UAAU,
|
|
1
|
+
{"version":3,"file":"Vendor.d.ts","sourceRoot":"","sources":["../../src/models/Vendor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAIL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,KAAK,Y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MAAM,GAAG,SAAS;IAOtD;;;;OAIG;IACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAQ7D;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAU1C;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAqBxC;AAED,eAAe,MAAM,CAAC"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-commerce",
|
|
6
|
-
"packageVersion": "0.57.
|
|
6
|
+
"packageVersion": "0.57.34",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "ca5c8a7fccde45a3a4ada34b4a7c68cfa44eb0626e47e16cbd31633a0692610f",
|
|
11
|
+
"packageJson": "85b4744c3c4b53d9aed9c5e90cbd69a6a62927a4312efc7537eb3e4d8a7e67dc",
|
|
12
12
|
"agents": "8fae989030badeabdb15109fab804aa7910c01570d449046c24a04678fe432a7",
|
|
13
13
|
"moduleDoc:agents/customer-vendor-ui.md": "2b22e519411a16d8c493496fc168da77b9acd25f6077ea8fbac00cfee3a3501c",
|
|
14
14
|
"moduleDoc:README.md": "beb2fada61d0babc7aa0528b883a9d47d6c827d876ace1cce04a908338fa01f8",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"@testing-library/user-event": "^14.6.7",
|
|
66
66
|
"@types/node": "24.13.6",
|
|
67
67
|
"axe-core": "^4.13.0",
|
|
68
|
-
"fast-glob": "^3.3.3",
|
|
69
68
|
"svelte": "^5.57.0",
|
|
70
69
|
"svelte-check": "^4.7.6",
|
|
71
70
|
"typescript": "6.0.3",
|
|
@@ -10801,6 +10800,9 @@
|
|
|
10801
10800
|
{
|
|
10802
10801
|
"name": "save",
|
|
10803
10802
|
"async": true,
|
|
10803
|
+
"params": [
|
|
10804
|
+
"options?: SmrtSaveOptions"
|
|
10805
|
+
],
|
|
10804
10806
|
"returns": "Promise<this>"
|
|
10805
10807
|
}
|
|
10806
10808
|
],
|
|
@@ -17085,6 +17087,9 @@
|
|
|
17085
17087
|
{
|
|
17086
17088
|
"name": "save",
|
|
17087
17089
|
"async": true,
|
|
17090
|
+
"params": [
|
|
17091
|
+
"options?: SmrtSaveOptions"
|
|
17092
|
+
],
|
|
17088
17093
|
"returns": "Promise<this>"
|
|
17089
17094
|
},
|
|
17090
17095
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.34",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
|
|
6
6
|
"type": "module",
|
|
@@ -65,17 +65,17 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@happyvertical/accounting": "^0.108.0",
|
|
67
67
|
"@happyvertical/payments": "^0.108.0",
|
|
68
|
-
"@happyvertical/smrt-agents": "0.57.
|
|
69
|
-
"@happyvertical/smrt-core": "0.57.
|
|
70
|
-
"@happyvertical/smrt-jobs": "0.57.
|
|
71
|
-
"@happyvertical/smrt-ledgers": "0.57.
|
|
72
|
-
"@happyvertical/smrt-products": "0.57.
|
|
73
|
-
"@happyvertical/smrt-reports": "0.57.
|
|
74
|
-
"@happyvertical/smrt-subscriptions": "0.57.
|
|
75
|
-
"@happyvertical/smrt-svelte": "0.57.
|
|
76
|
-
"@happyvertical/smrt-tenancy": "0.57.
|
|
77
|
-
"@happyvertical/smrt-types": "0.57.
|
|
78
|
-
"@happyvertical/smrt-ui": "0.57.
|
|
68
|
+
"@happyvertical/smrt-agents": "0.57.34",
|
|
69
|
+
"@happyvertical/smrt-core": "0.57.34",
|
|
70
|
+
"@happyvertical/smrt-jobs": "0.57.34",
|
|
71
|
+
"@happyvertical/smrt-ledgers": "0.57.34",
|
|
72
|
+
"@happyvertical/smrt-products": "0.57.34",
|
|
73
|
+
"@happyvertical/smrt-reports": "0.57.34",
|
|
74
|
+
"@happyvertical/smrt-subscriptions": "0.57.34",
|
|
75
|
+
"@happyvertical/smrt-svelte": "0.57.34",
|
|
76
|
+
"@happyvertical/smrt-tenancy": "0.57.34",
|
|
77
|
+
"@happyvertical/smrt-types": "0.57.34",
|
|
78
|
+
"@happyvertical/smrt-ui": "0.57.34",
|
|
79
79
|
"@happyvertical/sql": "^0.108.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@happyvertical/smrt-vitest": "0.57.
|
|
90
|
+
"@happyvertical/smrt-vitest": "0.57.34",
|
|
91
91
|
"@sveltejs/package": "^2.5.8",
|
|
92
92
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
93
93
|
"@testing-library/jest-dom": "^7.0.1",
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
"@testing-library/user-event": "^14.6.7",
|
|
96
96
|
"@types/node": "24.13.6",
|
|
97
97
|
"axe-core": "^4.13.0",
|
|
98
|
-
"fast-glob": "^3.3.3",
|
|
99
98
|
"svelte": "^5.57.1",
|
|
100
99
|
"svelte-check": "^4.7.6",
|
|
101
100
|
"typescript": "6.0.3",
|