@happyvertical/smrt-commerce 0.56.2 → 0.57.0
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/AGENTS.md +24 -11
- package/README.md +137 -89
- package/agents/accounting-snapshot-mapper.md +3 -3
- package/agents/commercial-ui.md +2 -2
- package/agents/contract-money.md +9 -12
- package/agents/cost-billing.md +3 -6
- package/agents/customer-vendor-ui.md +1 -2
- package/agents/document-money.md +58 -31
- package/agents/invoice-calculations.md +31 -56
- package/agents/invoice-preparation.md +62 -73
- package/agents/invoice-quantity.md +9 -21
- package/agents/minor-unit-migration.md +4 -4
- package/agents/money-calculator.md +7 -8
- package/agents/money-model.md +18 -22
- package/agents/money-upgrade.md +92 -0
- package/agents/revenue-journal.md +2 -2
- package/agents/tax-codes.md +17 -14
- package/agents/tax-summary.md +8 -6
- package/dist/billing/period-close.d.ts.map +1 -1
- package/dist/billing/runtime.d.ts +5 -2
- package/dist/billing/runtime.d.ts.map +1 -1
- package/dist/chunks/{ContractLineItemCollection--BrGMtNz.js → ContractLineItemCollection-BZcrlrrY.js} +19 -24
- package/dist/chunks/ContractLineItemCollection-BZcrlrrY.js.map +1 -0
- package/dist/chunks/{CustomerCollection-CjGaZSpf.js → CustomerCollection-BIPH2ZUx.js} +2 -2
- package/dist/chunks/{CustomerCollection-CjGaZSpf.js.map → CustomerCollection-BIPH2ZUx.js.map} +1 -1
- package/dist/chunks/{DocumentTaxCollection-KOkaQT2M.js → DocumentTaxCollection-DDzlywMW.js} +14 -7
- package/dist/chunks/DocumentTaxCollection-DDzlywMW.js.map +1 -0
- package/dist/chunks/{InvoiceCollection-BUe_8FT1.js → InvoiceCollection-cinzAqt6.js} +50 -161
- package/dist/chunks/InvoiceCollection-cinzAqt6.js.map +1 -0
- package/dist/chunks/{TaxCodeCollection-DF2eaJed.js → TaxCodeCollection-DaBOPG9c.js} +11 -4
- package/dist/chunks/{TaxCodeCollection-DF2eaJed.js.map → TaxCodeCollection-DaBOPG9c.js.map} +1 -1
- package/dist/chunks/{TaxComponentCollection-3x24xSNh.js → TaxComponentCollection-C4zxnyVu.js} +3 -3
- package/dist/chunks/{TaxComponentCollection-3x24xSNh.js.map → TaxComponentCollection-C4zxnyVu.js.map} +1 -1
- package/dist/chunks/VendorCollection-D6ZcUYy8.js +100 -0
- package/dist/chunks/VendorCollection-D6ZcUYy8.js.map +1 -0
- package/dist/chunks/{allocation-integrity-Cq0g6CfO.js → allocation-integrity-WmWyXhtG.js} +6 -6
- package/dist/chunks/{allocation-integrity-Cq0g6CfO.js.map → allocation-integrity-WmWyXhtG.js.map} +1 -1
- package/dist/chunks/calculations-C9daQLsh.js +82 -0
- package/dist/chunks/calculations-C9daQLsh.js.map +1 -0
- package/dist/chunks/contract-money-EuToOghh.js +301 -0
- package/dist/chunks/contract-money-EuToOghh.js.map +1 -0
- package/dist/chunks/detect-CY9ufaFb.js +328 -0
- package/dist/chunks/detect-CY9ufaFb.js.map +1 -0
- package/dist/chunks/{document-money-oUDvdjOf.js → document-money-DV5t4vlK.js} +388 -62
- package/dist/chunks/document-money-DV5t4vlK.js.map +1 -0
- package/dist/chunks/{invoice-posting-CF3fE_Ec.js → invoice-posting-C2i5dOVZ.js} +20 -22
- package/dist/chunks/invoice-posting-C2i5dOVZ.js.map +1 -0
- package/dist/chunks/{revenue-journal-DY9fro8E.js → revenue-journal-LLA9Kh_i.js} +3 -14
- package/dist/chunks/revenue-journal-LLA9Kh_i.js.map +1 -0
- package/dist/chunks/tenant-money-barrier-6TlqUeVj.js +255 -0
- package/dist/chunks/tenant-money-barrier-6TlqUeVj.js.map +1 -0
- package/dist/chunks/types-Bbm0Xflc.js.map +1 -1
- package/dist/chunks/{units-CNcjH_eE.js → units-8ElbjVZK.js} +18 -3
- package/dist/chunks/units-8ElbjVZK.js.map +1 -0
- package/dist/collections/ContractCollection.d.ts.map +1 -1
- package/dist/collections/ContractLineItemCollection.d.ts.map +1 -1
- package/dist/collections/InvoiceCollection.d.ts.map +1 -1
- package/dist/collections/InvoiceLineItemCollection.d.ts +0 -30
- package/dist/collections/InvoiceLineItemCollection.d.ts.map +1 -1
- package/dist/collections/TaxCodeCollection.d.ts +5 -1
- package/dist/collections/TaxCodeCollection.d.ts.map +1 -1
- package/dist/collections/TaxSettingsCollection.d.ts +15 -8
- package/dist/collections/TaxSettingsCollection.d.ts.map +1 -1
- package/dist/collections/TaxSummaryReportCollection.d.ts +3 -3
- package/dist/collections/TaxSummaryReportCollection.d.ts.map +1 -1
- package/dist/collections/index.d.ts +0 -1
- package/dist/collections/index.d.ts.map +1 -1
- package/dist/commerce-money-tools.d.ts.map +1 -1
- package/dist/contract-money.d.ts +1 -13
- package/dist/contract-money.d.ts.map +1 -1
- package/dist/document-money-internal.d.ts +7 -3
- package/dist/document-money-internal.d.ts.map +1 -1
- package/dist/document-money.d.ts +1 -11
- package/dist/document-money.d.ts.map +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +667 -1650
- package/dist/index.js.map +1 -1
- package/dist/invoice-accounting-sync.d.ts.map +1 -1
- package/dist/invoice-mcp.d.ts +3 -3
- package/dist/invoice-mcp.d.ts.map +1 -1
- package/dist/invoice-posting.d.ts +11 -5
- package/dist/invoice-posting.d.ts.map +1 -1
- package/dist/invoice-record-screen.d.ts +1 -1
- package/dist/invoice-record-screen.d.ts.map +1 -1
- package/dist/invoices.d.ts +6 -1
- package/dist/invoices.d.ts.map +1 -1
- package/dist/invoices.js +2 -2
- package/dist/manifest.json +37 -765
- package/dist/migrations/invoiceEditorStorage.d.ts +2 -4
- package/dist/migrations/invoiceEditorStorage.d.ts.map +1 -1
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/ContractLineItem.d.ts +6 -22
- package/dist/models/ContractLineItem.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts +18 -48
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/InvoiceLineItem.d.ts +8 -37
- package/dist/models/InvoiceLineItem.d.ts.map +1 -1
- package/dist/models/TaxSettings.d.ts +0 -10
- package/dist/models/TaxSettings.d.ts.map +1 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/playground.js +1 -1
- package/dist/playground.js.map +1 -1
- package/dist/recipes.d.ts +8 -11
- package/dist/recipes.d.ts.map +1 -1
- package/dist/revenue-journal.d.ts +0 -8
- package/dist/revenue-journal.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +79 -661
- package/dist/svelte/components/InvoiceEditor.svelte +7 -148
- package/dist/svelte/components/InvoiceEditor.svelte.d.ts +4 -1
- package/dist/svelte/components/InvoiceEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/InvoiceTotals.svelte +14 -118
- package/dist/svelte/components/InvoiceTotals.svelte.d.ts +4 -27
- package/dist/svelte/components/InvoiceTotals.svelte.d.ts.map +1 -1
- package/dist/svelte/components/MoneyInvoiceEditor.svelte +3 -23
- package/dist/svelte/components/MoneyInvoiceEditor.svelte.d.ts +3 -26
- package/dist/svelte/components/MoneyInvoiceEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/index.d.ts +2 -3
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +1 -2
- package/dist/svelte/invoices/calculations.d.ts +3 -108
- package/dist/svelte/invoices/calculations.d.ts.map +1 -1
- package/dist/svelte/invoices/calculations.js +12 -309
- package/dist/svelte/invoices/messages.d.ts +1 -37
- package/dist/svelte/invoices/messages.d.ts.map +1 -1
- package/dist/svelte/invoices/messages.js +1 -37
- package/dist/svelte/invoices/money-editor.d.ts +1 -1
- package/dist/svelte/invoices/money-editor.d.ts.map +1 -1
- package/dist/svelte/invoices/types.d.ts +14 -114
- package/dist/svelte/invoices/types.d.ts.map +1 -1
- package/dist/svelte/playground/InvoicePreparationPreview.svelte +85 -94
- package/dist/svelte/playground/InvoicePreparationPreview.svelte.d.ts.map +1 -1
- package/dist/svelte/playground.js +1 -1
- package/dist/tax/index.d.ts +2 -1
- package/dist/tax/index.d.ts.map +1 -1
- package/dist/tax/standard-codes.d.ts +12 -0
- package/dist/tax/standard-codes.d.ts.map +1 -0
- package/dist/tax/tenant-bootstrap.d.ts +29 -0
- package/dist/tax/tenant-bootstrap.d.ts.map +1 -0
- package/dist/tenant-money-barrier.d.ts +12 -44
- package/dist/tenant-money-barrier.d.ts.map +1 -1
- package/dist/types/index.d.ts +10 -23
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/upgrade/detect.d.ts +129 -0
- package/dist/upgrade/detect.d.ts.map +1 -0
- package/dist/upgrade/money-v2.d.ts +81 -0
- package/dist/upgrade/money-v2.d.ts.map +1 -0
- package/package.json +14 -13
- package/agents/line-amount-migration.md +0 -50
- package/dist/chunks/ContractLineItemCollection--BrGMtNz.js.map +0 -1
- package/dist/chunks/DocumentTaxCollection-KOkaQT2M.js.map +0 -1
- package/dist/chunks/InvoiceCollection-BUe_8FT1.js.map +0 -1
- package/dist/chunks/InvoiceLineItemCollection-CPQGghyd.js +0 -468
- package/dist/chunks/InvoiceLineItemCollection-CPQGghyd.js.map +0 -1
- package/dist/chunks/TaxSettingsCollection-DYYF-In-.js +0 -319
- package/dist/chunks/TaxSettingsCollection-DYYF-In-.js.map +0 -1
- package/dist/chunks/calculations-DaHR17il.js +0 -333
- package/dist/chunks/calculations-DaHR17il.js.map +0 -1
- package/dist/chunks/document-money-oUDvdjOf.js.map +0 -1
- package/dist/chunks/invoice-posting-CF3fE_Ec.js.map +0 -1
- package/dist/chunks/revenue-journal-DY9fro8E.js.map +0 -1
- package/dist/chunks/tenant-money-barrier-y6EAa6vY.js +0 -135
- package/dist/chunks/tenant-money-barrier-y6EAa6vY.js.map +0 -1
- package/dist/chunks/units-CNcjH_eE.js.map +0 -1
- package/dist/collections/MoneyMigrationDocumentCollection.d.ts +0 -12
- package/dist/collections/MoneyMigrationDocumentCollection.d.ts.map +0 -1
- package/dist/migrations/commerceLineAmounts.d.ts +0 -84
- package/dist/migrations/commerceLineAmounts.d.ts.map +0 -1
- package/dist/models/MoneyMigrationDocument.d.ts +0 -28
- package/dist/models/MoneyMigrationDocument.d.ts.map +0 -1
- package/dist/svelte/components/InvoiceLineEditor.svelte +0 -92
- package/dist/svelte/components/InvoiceLineEditor.svelte.d.ts +0 -8
- package/dist/svelte/components/InvoiceLineEditor.svelte.d.ts.map +0 -1
- package/dist/svelte/invoices/fields.d.ts +0 -6
- package/dist/svelte/invoices/fields.d.ts.map +0 -1
- package/dist/svelte/invoices/fields.js +0 -22
- package/dist/tax/legacy.d.ts +0 -48
- package/dist/tax/legacy.d.ts.map +0 -1
|
@@ -2,6 +2,10 @@ import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
|
2
2
|
import { TaxCode } from '../models/TaxCode.js';
|
|
3
3
|
export declare class TaxCodeCollection extends SmrtCollection<TaxCode> {
|
|
4
4
|
static readonly _itemClass: typeof TaxCode;
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Find a code by its stable `code`. Pass `tenantId` whenever it is known:
|
|
7
|
+
* without an active tenancy filter the lookup is otherwise unscoped.
|
|
8
|
+
*/
|
|
9
|
+
findByCode(code: string, tenantId?: string): Promise<TaxCode | null>;
|
|
6
10
|
}
|
|
7
11
|
//# sourceMappingURL=TaxCodeCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaxCodeCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxCodeCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAW;
|
|
1
|
+
{"version":3,"file":"TaxCodeCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxCodeCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,OAAO,CAAC;IAC5D,MAAM,CAAC,QAAQ,CAAC,UAAU,iBAAW;IAErC;;;OAGG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CAU3E"}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
2
|
+
import type { DatabaseInterface } from '@happyvertical/smrt-core/migrations';
|
|
2
3
|
import { TaxSettings } from '../models/TaxSettings.js';
|
|
4
|
+
/**
|
|
5
|
+
* @internal Create a tenant's missing settings row exactly once, with the
|
|
6
|
+
* model defaults. Creation serializes on a tenant advisory lock (PostgreSQL)
|
|
7
|
+
* or the embedded write queue and re-reads before inserting, so racing first
|
|
8
|
+
* writers converge on one row. An existing row is never changed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function materializeTenantTaxSettings(db: DatabaseInterface, tenantId: string): Promise<void>;
|
|
3
11
|
export declare class TaxSettingsCollection extends SmrtCollection<TaxSettings> {
|
|
4
12
|
static readonly _itemClass: typeof TaxSettings;
|
|
13
|
+
/**
|
|
14
|
+
* Load the tenant's settings row, creating it once when missing. A tenant
|
|
15
|
+
* whose stored documents predate tenant tax settings is refused with
|
|
16
|
+
* `COMMERCE_DATA_NEEDS_UPGRADE` rather than given fresh defaults.
|
|
17
|
+
*/
|
|
5
18
|
getOrCreateForTenant(tenantId: string): Promise<TaxSettings>;
|
|
6
19
|
getForTenant(tenantId: string): Promise<TaxSettings | null>;
|
|
7
|
-
/** @internal Lock and re-read the
|
|
8
|
-
lockForTenant(tenantId: string
|
|
9
|
-
/** Claim exclusive runtime maintenance before any per-document rewrite. */
|
|
10
|
-
beginMoneyMigration(tenantId: string, requestedMigrationId?: string): Promise<string>;
|
|
11
|
-
activateMoneyV2(tenantId: string, migrationId: string): Promise<void>;
|
|
12
|
-
restoreLegacyMoneyModel(tenantId: string, migrationId: string): Promise<void>;
|
|
13
|
-
/** Claim a previously completed migration for checksum-guarded rollback. */
|
|
14
|
-
beginMoneyRollback(tenantId: string, migrationId: string): Promise<void>;
|
|
20
|
+
/** @internal Lock and re-read the tenant's settings row on this transaction. */
|
|
21
|
+
lockForTenant(tenantId: string): Promise<TaxSettings>;
|
|
15
22
|
}
|
|
16
23
|
//# sourceMappingURL=TaxSettingsCollection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaxSettingsCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxSettingsCollection.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TaxSettingsCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxSettingsCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAqBvD;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAChD,EAAE,EAAE,iBAAiB,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,qBAAa,qBAAsB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,UAAU,qBAAe;IAEzC;;;;OAIG;IACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAc5D,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAMjE,gFAAgF;IAC1E,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAkB5D"}
|
|
@@ -103,7 +103,7 @@ export interface TaxSummaryContributorDrilldown {
|
|
|
103
103
|
}
|
|
104
104
|
export declare class TaxSummaryReportCollection extends SmrtReportCollection<TaxSummaryReport> {
|
|
105
105
|
static readonly _itemClass: typeof TaxSummaryReport;
|
|
106
|
-
private
|
|
106
|
+
private assertTenantMoneyReadable;
|
|
107
107
|
get(filter: Parameters<SmrtCollection<TaxSummaryReport>['get']>[0], options?: Parameters<SmrtCollection<TaxSummaryReport>['get']>[1]): Promise<TaxSummaryReport | null>;
|
|
108
108
|
count(options?: Parameters<SmrtCollection<TaxSummaryReport>['count']>[0]): Promise<number>;
|
|
109
109
|
list<const Select extends readonly SmrtSelectField<TaxSummaryReport>[]>(options: Omit<SmrtListOptions<TaxSummaryReport>, 'select' | 'stiScope'> & {
|
|
@@ -130,8 +130,8 @@ export declare class TaxSummaryReportCollection extends SmrtReportCollection<Tax
|
|
|
130
130
|
}) | undefined): Promise<SmrtObject[]>;
|
|
131
131
|
list(options: SmrtListOptions<TaxSummaryReport> | undefined): Promise<SmrtObject[] | Record<string, unknown>[]>;
|
|
132
132
|
/**
|
|
133
|
-
* Rebuild the Invoice path from immutable snapshots.
|
|
134
|
-
*
|
|
133
|
+
* Rebuild the Invoice path from immutable snapshots. A tenant holding
|
|
134
|
+
* old-format money data is refused with `COMMERCE_DATA_NEEDS_UPGRADE`.
|
|
135
135
|
*/
|
|
136
136
|
refreshTaxSummary(options: RefreshTaxSummaryReportOptions): Promise<TaxSummaryReportRefreshResult>;
|
|
137
137
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaxSummaryReportCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxSummaryReportCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"TaxSummaryReportCollection.d.ts","sourceRoot":"","sources":["../../src/collections/TaxSummaryReportCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EACL,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAE9B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,CAAC,OAAO,EAAE;QAC5B,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,uDAAuD;QACvD,EAAE,EAAE,iBAAiB,CAAC;KACvB,GAAG,OAAO,CAAC,SAAS,qBAAqB,EAAE,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,CAAC,OAAO,EAAE;QAC3B,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,IAAI,EAAE,IAAI,CAAC;QACX,EAAE,EAAE,IAAI,CAAC;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,uDAAuD;QACvD,EAAE,EAAE,iBAAiB,CAAC;KACvB,GAA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O,CAAC,CAAC,CAAC,CAsHzC"}
|
|
@@ -10,7 +10,6 @@ export { FulfillmentCollection } from './FulfillmentCollection.js';
|
|
|
10
10
|
export { FulfillmentLineItemCollection } from './FulfillmentLineItemCollection.js';
|
|
11
11
|
export { InvoiceCollection, type InvoiceNumberOptions, UNPAID_STATUSES, } from './InvoiceCollection.js';
|
|
12
12
|
export { InvoiceLineItemCollection } from './InvoiceLineItemCollection.js';
|
|
13
|
-
export { MoneyMigrationDocumentCollection } from './MoneyMigrationDocumentCollection.js';
|
|
14
13
|
export { PaymentAllocationCollection } from './PaymentAllocationCollection.js';
|
|
15
14
|
export { PaymentCollection } from './PaymentCollection.js';
|
|
16
15
|
export { PaymentInstrumentCollection } from './PaymentInstrumentCollection.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EACL,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,iBAAiB,EACjB,KAAK,oBAAoB,EACzB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collections/index.ts"],"names":[],"mappings":"AAAA;;;GAG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,EACnC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,6BAA6B,GACnC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commerce-money-tools.d.ts","sourceRoot":"","sources":["../src/commerce-money-tools.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,OAAO,KAAK,EAEV,aAAa,EAEd,MAAM,4BAA4B,CAAC;AAqBpC,eAAO,MAAM,iCAAiC,2BAA2B,CAAC;AAC1E,eAAO,MAAM,kCAAkC,6BAA6B,CAAC;AAC7E,eAAO,MAAM,mCAAmC,8BAA8B,CAAC;AAC/E,eAAO,MAAM,sCAAsC,iCACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"commerce-money-tools.d.ts","sourceRoot":"","sources":["../src/commerce-money-tools.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,OAAO,KAAK,EAEV,aAAa,EAEd,MAAM,4BAA4B,CAAC;AAqBpC,eAAO,MAAM,iCAAiC,2BAA2B,CAAC;AAC1E,eAAO,MAAM,kCAAkC,6BAA6B,CAAC;AAC7E,eAAO,MAAM,mCAAmC,8BAA8B,CAAC;AAC/E,eAAO,MAAM,sCAAsC,iCACnB,CAAC;AA8cjC,0EAA0E;AAC1E,wBAAgB,wBAAwB,IAAI,aAAa,EAAE,CA2J1D"}
|
package/dist/contract-money.d.ts
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
/** Transactional Contract money aggregate persistence. */
|
|
2
|
-
import type { DatabaseInterface } from '@happyvertical/smrt-core/migrations';
|
|
3
|
-
import { type DocumentTaxWriteInput } from './collections/DocumentTaxCollection.js';
|
|
4
2
|
import { type Contract, classifyContractPurchase, isContractSnapshotReportEligible } from './models/Contract.js';
|
|
5
3
|
import type { ContractLineItem } from './models/ContractLineItem.js';
|
|
6
4
|
type DeleteOptions = {
|
|
7
5
|
expectedUpdatedAt?: Date | string;
|
|
8
6
|
};
|
|
9
7
|
export { classifyContractPurchase, isContractSnapshotReportEligible };
|
|
10
|
-
/** Save a Contract
|
|
8
|
+
/** Save a Contract and recompute its money aggregate. */
|
|
11
9
|
export declare function saveContract(input: Contract): Promise<Contract>;
|
|
12
10
|
/** Save a line and atomically recompute its Contract aggregate. */
|
|
13
11
|
export declare function saveContractLineItem(input: ContractLineItem): Promise<ContractLineItem>;
|
|
14
12
|
export declare function deleteContractLineItem(input: ContractLineItem, options: DeleteOptions): Promise<void>;
|
|
15
13
|
/** Recompute a Contract through its normal runtime gate. */
|
|
16
14
|
export declare function recalculateContractTotals(contract: Contract): Promise<void>;
|
|
17
|
-
/** Migration-only materializer; caller already owns the tenant migration transaction. */
|
|
18
|
-
export declare function materializeContractMoneySnapshot(input: {
|
|
19
|
-
db: DatabaseInterface;
|
|
20
|
-
contractId: string;
|
|
21
|
-
tenantId: string;
|
|
22
|
-
migrationId: string;
|
|
23
|
-
}): Promise<{
|
|
24
|
-
contractId: string;
|
|
25
|
-
taxRows: DocumentTaxWriteInput[];
|
|
26
|
-
}>;
|
|
27
15
|
//# sourceMappingURL=contract-money.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-money.d.ts","sourceRoot":"","sources":["../src/contract-money.ts"],"names":[],"mappings":"AAAA,0DAA0D;
|
|
1
|
+
{"version":3,"file":"contract-money.d.ts","sourceRoot":"","sources":["../src/contract-money.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAkB1D,OAAO,EACL,KAAK,QAAQ,EACb,wBAAwB,EACxB,gCAAgC,EACjC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAarE,KAAK,aAAa,GAAG;IAAE,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE,CAAC;AAmF3D,OAAO,EAAE,wBAAwB,EAAE,gCAAgC,EAAE,CAAC;AA8QtE,yDAAyD;AACzD,wBAAsB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAmFrE;AAED,mEAAmE;AACnE,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAoD3B;AAED,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED,4DAA4D;AAC5D,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,QAAQ,GACjB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/** Internal capabilities shared by commerce document-money persistence. */
|
|
2
2
|
import type { DatabaseInterface } from '@happyvertical/smrt-core/migrations';
|
|
3
|
+
/** @internal Whether `db` is an executor opened by a money transaction. */
|
|
4
|
+
export declare function isMoneyTransaction(db: DatabaseInterface): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* @internal The root database behind a money transaction executor, or `db`
|
|
7
|
+
* itself. Lets per-database caches survive the per-transaction executor.
|
|
8
|
+
*/
|
|
9
|
+
export declare function rootMoneyDatabase(db: DatabaseInterface): DatabaseInterface;
|
|
3
10
|
/**
|
|
4
11
|
* Capability required by derived money rows. This module is intentionally not
|
|
5
12
|
* exported from the package root; aggregate persistence owns every mutation.
|
|
6
13
|
*/
|
|
7
14
|
export declare const DOCUMENT_MONEY_WRITE: unique symbol;
|
|
8
15
|
export type DocumentMoneyWriteCapability = typeof DOCUMENT_MONEY_WRITE;
|
|
9
|
-
/** Internal capability for the server-owned tenant money migration marker. */
|
|
10
|
-
export declare const MONEY_MIGRATION_WRITE: unique symbol;
|
|
11
|
-
export type MoneyMigrationWriteCapability = typeof MONEY_MIGRATION_WRITE;
|
|
12
16
|
/** Internal capability for returning a locked snapshot on its root executor. */
|
|
13
17
|
export declare const DOCUMENT_MONEY_READ_REBIND: unique symbol;
|
|
14
18
|
export type DocumentMoneyReadRebindCapability = typeof DOCUMENT_MONEY_READ_REBIND;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-money-internal.d.ts","sourceRoot":"","sources":["../src/document-money-internal.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"document-money-internal.d.ts","sourceRoot":"","sources":["../src/document-money-internal.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAO7E,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAEjE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,iBAAiB,GAAG,iBAAiB,CAE1E;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAwC,CAAC;AAE1E,MAAM,MAAM,4BAA4B,GAAG,OAAO,oBAAoB,CAAC;AAEvE,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,eAEtC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAC3C,OAAO,0BAA0B,CAAC;AAEpC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,KAAK,CACH,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,OAAO,EAAE,EACjB,OAAO,EAAE;QAAE,sBAAsB,EAAE,IAAI,CAAA;KAAE,GACxC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CACvB;AACD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,yBAAyB,CAAC;CACvC;AA4BD,qEAAqE;AACrE,wBAAsB,4BAA4B,CAAC,CAAC,EAClD,EAAE,EAAE,iBAAiB,EACrB,SAAS,EAAE,CAAC,EAAE,EAAE,iBAAiB,KAAK,OAAO,CAAC,CAAC,CAAC,GAC/C,OAAO,CAAC,CAAC,CAAC,CAiBZ;AAED,UAAU,gCAAgC;IACxC,QAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC;IAC/B,eAAe,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACxE;AAED;;;GAGG;AACH,wBAAsB,kCAAkC,CACtD,OAAO,SAAS,gCAAgC,EAChD,OAAO,EAEP,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,GACrE,OAAO,CAAC,OAAO,CAAC,CAelB;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,SAAS,qBAAqB,EAAE,GACxC,OAAO,CAAC,IAAI,CAAC,CAkCf"}
|
package/dist/document-money.d.ts
CHANGED
|
@@ -65,18 +65,8 @@ export declare function lockAndReloadInvoice(db: DatabaseInterface, invoiceId: s
|
|
|
65
65
|
export declare function previewInvoiceMoney(input: PreviewInvoiceMoneyInput): Promise<PreviewInvoiceMoneyResult>;
|
|
66
66
|
/** Read authoritative persisted money facts without resolution or recalculation. */
|
|
67
67
|
export declare function getInvoiceMoneyFacts(input: GetInvoiceMoneyFactsInput): Promise<InvoiceMoneyFacts>;
|
|
68
|
-
/** Persist an invoice
|
|
68
|
+
/** Persist an invoice and recompute its complete money aggregate. */
|
|
69
69
|
export declare function saveInvoice(input: Invoice): Promise<Invoice>;
|
|
70
|
-
/** Migration-only draft materializer; caller already owns the tenant migration transaction. */
|
|
71
|
-
export declare function materializeInvoiceMoneyDraft(input: {
|
|
72
|
-
db: DatabaseInterface;
|
|
73
|
-
invoiceId: string;
|
|
74
|
-
tenantId: string;
|
|
75
|
-
migrationId: string;
|
|
76
|
-
}): Promise<{
|
|
77
|
-
invoiceId: string;
|
|
78
|
-
taxRows: DocumentTaxWriteInput[];
|
|
79
|
-
}>;
|
|
80
70
|
/** Persist a line and recompute its complete invoice aggregate. */
|
|
81
71
|
export declare function saveInvoiceLineItem(input: InvoiceLineItem): Promise<InvoiceLineItem>;
|
|
82
72
|
export declare function deleteInvoiceLineItem(input: InvoiceLineItem, options: DeleteOptions): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-money.d.ts","sourceRoot":"","sources":["../src/document-money.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAgBvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"document-money.d.ts","sourceRoot":"","sources":["../src/document-money.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAgBvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAqB9D,KAAK,aAAa,GAAG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AsB,qBAAqB,CACzC,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED,wBAAsB,aAAa,CACjC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CA8Bf"}
|
package/dist/index.d.ts
CHANGED
|
@@ -62,25 +62,26 @@
|
|
|
62
62
|
*/
|
|
63
63
|
import './__smrt-register__.js';
|
|
64
64
|
export * from './billing/index.js';
|
|
65
|
-
export { ContractCollection, ContractLineItemCollection, type CreatePayoutFromPaymentArgs, CustomerCollection, DocumentTaxCollection, type DocumentTaxReportFact, type DocumentTaxReportFactsOptions, FulfillmentCollection, FulfillmentLineItemCollection, InvoiceCollection, InvoiceLineItemCollection, type InvoiceNumberOptions, type InvoiceTaxReportFact, type InvoiceTaxReportFactsOptions,
|
|
65
|
+
export { ContractCollection, ContractLineItemCollection, type CreatePayoutFromPaymentArgs, CustomerCollection, DocumentTaxCollection, type DocumentTaxReportFact, type DocumentTaxReportFactsOptions, FulfillmentCollection, FulfillmentLineItemCollection, InvoiceCollection, InvoiceLineItemCollection, type InvoiceNumberOptions, type InvoiceTaxReportFact, type InvoiceTaxReportFactsOptions, PaymentAllocationCollection, PaymentCollection, PaymentInstrumentCollection, PaymentIntentCollection, type PaymentIntentIdempotencyArgs, type PaymentIntentSeed, PayoutCollection, PurchaseContractCollection, type RefreshTaxSummaryReportOptions, SalesContractCollection, TaxCodeCollection, TaxComponentCollection, TaxSettingsCollection, type TaxSummaryContributorDrilldown, type TaxSummaryContributorDrilldownOptions, type TaxSummaryDrilldownContributor, type TaxSummaryDrilldownPending, type TaxSummaryExpenseSource, type TaxSummaryInvoiceDrilldownOptions, type TaxSummaryLedgerDrilldownFact, type TaxSummaryLedgerDrilldownSource, type TaxSummaryLedgerSource, TaxSummaryReportCollection, type TaxSummaryReportMeasure, type TaxSummaryReportRefreshResult, UNPAID_STATUSES, VendorCollection, } from './collections/index.js';
|
|
66
66
|
export { COMMERCE_INVOICE_LINE_ADD_TOOL_SLUG, COMMERCE_INVOICE_LINE_UPDATE_TOOL_SLUG, COMMERCE_INVOICE_PREVIEW_TOOL_SLUG, COMMERCE_TAX_CODES_LIST_TOOL_SLUG, createCommerceMoneyTools, } from './commerce-money-tools.js';
|
|
67
67
|
export { type AvailableRefundInput, allocateFrozenCredit, calculateAvailableRefund, type FrozenCreditAllocation, type FrozenCreditAllocationResult, type FrozenCreditRequest, type FrozenCreditSourceLine, type IssuedCreditConsumption, } from './credit-allocation.js';
|
|
68
68
|
export { type GetInvoiceMoneyFactsInput, getInvoiceMoneyFacts, type InvoiceMoneyFacts, type PreviewInvoiceMoneyInput, type PreviewInvoiceMoneyResult, previewInvoiceMoney, } from './document-money.js';
|
|
69
69
|
export { type FrozenAccountingReconciliationReady, type FrozenAccountingSyncResult, type FrozenInvoiceAccountingInput, type FrozenInvoiceAccountingOptions, type FrozenInvoiceAccountingSnapshot, loadFrozenInvoiceAccountingSnapshot, type QuickBooksFrozenInvoiceMapping, type ReconcileFrozenInvoiceAccountingInput, readFrozenAccountingSyncState, reconcileFrozenInvoiceAccountingSync, type SyncFrozenInvoiceToAccountingInput, syncFrozenInvoiceToAccounting, toFrozenInvoiceAccountingInput, } from './invoice-accounting-sync.js';
|
|
70
70
|
export { type InvoiceMcpGetResult, serializeInvoiceMcpGet, } from './invoice-mcp.js';
|
|
71
71
|
export { type InvoiceRecordCreditNote, type InvoiceRecordScreenData, type InvoiceRecordStoredTotals, type InvoiceRecordTaxComponent, invoiceRecordStoredTotals, type LoadInvoiceRecordScreenDataInput, loadInvoiceRecordScreenData, } from './invoice-record-screen.js';
|
|
72
|
-
export { type CommerceLineAmountDocumentReport, type CommerceLineAmountReasonCode, type CommerceLineAmountsMigrationResult, type CommerceLineAmountsReport, type CommerceLineAmountsReportOutput, type CommerceLineAmountsRollbackResult, type CommerceLineAmountTenantSummary, type CommerceMoneyTotals, type MigrateCommerceLineAmountsOptions, migrateCommerceLineAmounts, type PreflightCommerceLineAmountsOptions, preflightCommerceLineAmounts, type RollbackCommerceLineAmountsOptions, rollbackCommerceLineAmounts, serializeCommerceLineAmountsReportCsv, serializeCommerceLineAmountsReportJson, } from './migrations/commerceLineAmounts.js';
|
|
73
72
|
export { type InvoiceEditorStorageEngine, type InvoiceEditorStorageMigrationResult, type InvoiceEditorStoragePreflight, migrateInvoiceEditorStorage, preflightInvoiceEditorStorage, } from './migrations/invoiceEditorStorage.js';
|
|
74
73
|
export { COMMERCE_MONEY_COLUMNS, COMMERCE_MONEY_MINOR_UNITS_BACKFILL, COMMERCE_NATIVE_UNIT_COLUMNS, migrateCommerceMoneyToMinorUnits, preflightCommerceMoneyMinorUnits, } from './migrations/moneyMinorUnits.js';
|
|
75
74
|
export { type CommerceContractTypeGroup, type CommercePartyLinkRow, type CommercePartyLinksPreflight, preflightCommercePartyLinks, } from './migrations/partyLinks.js';
|
|
76
|
-
export { Agreement, BillingAccount, type BillingCloseKind, BillingLineSource, type BillingLineSourceType, BillingPaymentAttempt, type BillingPaymentAttemptFlag, type BillingPaymentAttemptPurpose, type BillingPaymentAttemptTransition, BillingPeriodClose, type BillingPeriodCloseStatus, type BillingStanding, Cart, type CommerceDocumentType, Contract, ContractLineItem, Customer, DocumentTax, type DocumentTaxOptions, Estimate, Fulfillment, FulfillmentLineItem, Invoice, InvoiceLineItem, Lease, type LicenseRightsSnapshot, LicenseSale,
|
|
75
|
+
export { Agreement, BillingAccount, type BillingCloseKind, BillingLineSource, type BillingLineSourceType, BillingPaymentAttempt, type BillingPaymentAttemptFlag, type BillingPaymentAttemptPurpose, type BillingPaymentAttemptTransition, BillingPeriodClose, type BillingPeriodCloseStatus, type BillingStanding, Cart, type CommerceDocumentType, Contract, ContractLineItem, Customer, DocumentTax, type DocumentTaxOptions, Estimate, Fulfillment, FulfillmentLineItem, Invoice, InvoiceLineItem, Lease, type LicenseRightsSnapshot, LicenseSale, Order, Payment, PaymentAllocation, PaymentInstrument, PaymentIntent, Payout, ProductionOrder, PurchaseContract, PurchaseOrder, SalesContract, SupplierQuote, TaxCode, TaxComponent, TaxSettings, TaxSummaryReport, type TaxSummaryReportRowKind, Vendor, WholesaleOrder, } from './models/index.js';
|
|
77
76
|
export { assertIntegerMinorUnits, calculateMoneyDocument, type LineAmountType, type MoneyDiscountInput, type MoneyDocumentResult, type MoneyDocumentTaxResult, type MoneyLineInput, type MoneyLineResult, type MoneyTaxCodeInput, type MoneyValidationCode, MoneyValidationError, type ResolvableTaxCodeInput, type ResolvedLineTaxCode, type ResolveLineTaxCodeContext, type ResolveLineTaxCodeInput, resolveLineTaxCode, type TaxCodeAppliesTo, type TaxCodeKind, type TaxCodeResolutionSource, type TaxComponentInput, type TaxRoundingScope, } from './money.js';
|
|
78
77
|
export { applyPartyContactIntent, DEFAULT_PARTY_CONTACT_FIELD_NAMES, normalizePartyContacts, PARTY_CONTACT_MAX_LENGTHS, type PartyContactErrorCode, type PartyContactField, type PartyContactFieldNames, type PartyContactFormSource, type PartyContactInput, type PartyContactIntents, PartyContactPartyNotFoundError, PartyContactPayloadError, type PartyContactRowErrors, PartyContactValidationError, readPartyContactRows, type SavePartyContactsOptions, savePartyContacts, validatePartyContactRows, } from './party-contacts.js';
|
|
79
78
|
export { AgreementsRecipe, CustomersRecipe, EstimatesRecipe, FulfillmentRecipe, InvoicingRecipe, LeasesRecipe, LicensesRecipe, PurchasesRecipe, SalesRecipe, VendorsRecipe, WholesaleRecipe, } from './recipes.js';
|
|
80
|
-
export { buildRevenueJournalEntries, type RevenueJournalDocumentInput, type RevenueJournalEntry, type RevenueJournalLineInput, type RevenueJournalOptions, type RevenueJournalResult, type RevenueJournalTaxInput,
|
|
81
|
-
export { applyCommerceCookbookSettings, applyCookbookTaxSettings, applyTaxCodeExamplePack, COMMON_TAX_CODE_EXAMPLE_PACK, type
|
|
79
|
+
export { buildRevenueJournalEntries, type RevenueJournalDocumentInput, type RevenueJournalEntry, type RevenueJournalLineInput, type RevenueJournalOptions, type RevenueJournalResult, type RevenueJournalTaxInput, } from './revenue-journal.js';
|
|
80
|
+
export { applyCommerceCookbookSettings, applyCookbookTaxSettings, applyTaxCodeExamplePack, COMMON_TAX_CODE_EXAMPLE_PACK, type CommerceTenantBootstrap, type CookbookTaxSettingsInput, cookbookTaxSettings, type EnsureCommerceTenantOptions, ensureCommerceTenant, ensureTenantTaxCodes, STANDARD_TAX_CODES, type TaxCodeExamplePack, } from './tax/index.js';
|
|
82
81
|
export { aggregateTaxSummary, type TaxSummaryComponentMapping, type TaxSummaryComponentRow, type TaxSummaryDirection, type TaxSummaryExpenseFact, type TaxSummaryInput, type TaxSummaryKindRow, type TaxSummaryLedgerMovement, type TaxSummaryReconciliationRow, type TaxSummaryResult, type TaxSummarySourceScope, type TaxSummaryStoredFact, type TaxSummaryWarning, } from './tax-summary.js';
|
|
83
82
|
export { buildTaxSummaryReportAdapterDescriptor, createTaxSummaryMaterializedReportHost, drilldownTaxSummaryContributors, drilldownTaxSummaryInvoiceFacts, TAX_SUMMARY_REPORT_ADAPTER, type TaxSummaryMaterializedReportDrilldownSources, type TaxSummaryMaterializedReportHostOptions, } from './tax-summary-report-adapter.js';
|
|
84
83
|
export { type Address, type CancelRevenueOptions, ContractStatus, ContractType, CustomerStatus, CustomerType, FulfillmentStatus, FulfillmentType, type InvoiceCollectionMethod, type InvoiceCreditCalculationBasis, type InvoiceKind, InvoiceStatus, type PartyContact, PaymentInstrumentStatus, PaymentIntentStatus, type PaymentKind, PaymentMethod, type PaymentOption, PaymentStatus, PayoutStatus, type PurchaseContractOptions, type PurchaseOrderOptions, type RecognizeRevenueOptions, type RecordPaymentOptions, type SalesContractOptions, VendorStatus, } from './types/index.js';
|
|
85
84
|
export { COMMERCE_MODULE_META, COMMERCE_UI_SLOTS } from './ui.js';
|
|
85
|
+
export { assertCommerceMoneySchemaCurrent, assertTenantMoneyCurrent, COMMERCE_DATA_NEEDS_UPGRADE, CommerceDataNeedsUpgradeError, type CommerceMoneyUpgradeStatus, commerceMoneyUpgradeCommand, findCommerceMoneyUpgradeNeeds, type TenantlessMoneyDocument, type TenantMoneyUpgradeNeed, } from './upgrade/detect.js';
|
|
86
|
+
export { type CommerceMoneyUpgradeFailure, type CommerceMoneyUpgradeResult, type UpgradeCommerceMoneyOptions, upgradeCommerceMoney, } from './upgrade/money-v2.js';
|
|
86
87
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAKH,OAAO,wBAAwB,CAAC;AAGhC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,KAAK,2BAA2B,EAChC,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,qBAAqB,EACrB,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAKH,OAAO,wBAAwB,CAAC;AAGhC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,KAAK,2BAA2B,EAChC,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,qBAAqB,EACrB,6BAA6B,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,4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