@happyvertical/smrt-commerce 0.55.13 → 0.55.15
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 +8 -0
- package/README.md +36 -0
- package/agents/cost-billing.md +41 -0
- package/agents/payment-allocations.md +45 -0
- package/agents/purchasing-ui.md +27 -0
- package/dist/allocation-integrity.d.ts +13 -0
- package/dist/allocation-integrity.d.ts.map +1 -0
- package/dist/billing/payment-attempts.d.ts.map +1 -1
- package/dist/chunks/money-DfrRxrel.js +50 -0
- package/dist/chunks/money-DfrRxrel.js.map +1 -0
- package/dist/chunks/{types-CRnln577.js → types-zVnIjSOk.js} +29 -2
- package/dist/chunks/{types-CRnln577.js.map → types-zVnIjSOk.js.map} +1 -1
- package/dist/collections/PaymentAllocationCollection.d.ts +14 -0
- package/dist/collections/PaymentAllocationCollection.d.ts.map +1 -1
- package/dist/cost-billing.d.ts +58 -0
- package/dist/cost-billing.d.ts.map +1 -0
- package/dist/cost-billing.js +126 -0
- package/dist/cost-billing.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +175 -93
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +43 -2
- package/dist/models/Contract.d.ts +7 -1
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/Payment.d.ts +2 -0
- package/dist/models/Payment.d.ts.map +1 -1
- package/dist/models/PaymentAllocation.d.ts +7 -33
- package/dist/models/PaymentAllocation.d.ts.map +1 -1
- package/dist/playground.js +23 -0
- package/dist/playground.js.map +1 -1
- package/dist/smrt-knowledge.json +86 -8
- package/dist/svelte/components/PurchaseOrderHeaderForm.svelte +106 -0
- package/dist/svelte/components/PurchaseOrderHeaderForm.svelte.d.ts +49 -0
- package/dist/svelte/components/PurchaseOrderHeaderForm.svelte.d.ts.map +1 -0
- package/dist/svelte/index.d.ts +4 -0
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +3 -0
- package/dist/svelte/playground.d.ts +93 -0
- package/dist/svelte/playground.d.ts.map +1 -1
- package/dist/svelte/playground.js +20 -0
- package/dist/svelte/purchasing-i18n.d.ts +9 -0
- package/dist/svelte/purchasing-i18n.d.ts.map +1 -1
- package/dist/svelte/purchasing-i18n.js +9 -0
- package/dist/svelte/purchasing-types.d.ts +13 -0
- package/dist/svelte/purchasing-types.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +9 -0
- package/dist/ui.js.map +1 -1
- package/package.json +16 -12
- package/dist/chunks/money-WSMvSgWq.js +0 -8
- package/dist/chunks/money-WSMvSgWq.js.map +0 -1
|
@@ -4,6 +4,55 @@ declare const _default: {
|
|
|
4
4
|
description: string | undefined;
|
|
5
5
|
moduleMeta: import("@happyvertical/smrt-types").SmrtModuleMeta;
|
|
6
6
|
entries: ({
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
loadComponent: () => Promise<typeof import("./components/PurchaseOrderHeaderForm.svelte")>;
|
|
11
|
+
order: number;
|
|
12
|
+
props: {
|
|
13
|
+
action: string;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
vendors: {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}[];
|
|
19
|
+
values: {
|
|
20
|
+
vendorId: string;
|
|
21
|
+
reference: string;
|
|
22
|
+
expectedDate: string;
|
|
23
|
+
shipTo: string;
|
|
24
|
+
notes: string;
|
|
25
|
+
};
|
|
26
|
+
reduction?: undefined;
|
|
27
|
+
kind?: undefined;
|
|
28
|
+
items?: undefined;
|
|
29
|
+
total?: undefined;
|
|
30
|
+
page?: undefined;
|
|
31
|
+
pageSize?: undefined;
|
|
32
|
+
nextHref?: undefined;
|
|
33
|
+
addHref?: undefined;
|
|
34
|
+
canCreate?: undefined;
|
|
35
|
+
customer?: undefined;
|
|
36
|
+
currency?: undefined;
|
|
37
|
+
backHref?: undefined;
|
|
38
|
+
editHref?: undefined;
|
|
39
|
+
canEdit?: undefined;
|
|
40
|
+
vendor?: undefined;
|
|
41
|
+
invoice?: undefined;
|
|
42
|
+
onclick?: undefined;
|
|
43
|
+
status?: undefined;
|
|
44
|
+
onmarkpaid?: undefined;
|
|
45
|
+
onprint?: undefined;
|
|
46
|
+
onexport?: undefined;
|
|
47
|
+
onselectionchange?: undefined;
|
|
48
|
+
oncreate?: undefined;
|
|
49
|
+
};
|
|
50
|
+
modes: {
|
|
51
|
+
mock: {
|
|
52
|
+
label: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
7
56
|
id: string;
|
|
8
57
|
title: string;
|
|
9
58
|
description: string;
|
|
@@ -11,6 +60,10 @@ declare const _default: {
|
|
|
11
60
|
order: number;
|
|
12
61
|
props: {
|
|
13
62
|
reduction: boolean;
|
|
63
|
+
action?: undefined;
|
|
64
|
+
readonly?: undefined;
|
|
65
|
+
vendors?: undefined;
|
|
66
|
+
values?: undefined;
|
|
14
67
|
kind?: undefined;
|
|
15
68
|
items?: undefined;
|
|
16
69
|
total?: undefined;
|
|
@@ -47,6 +100,10 @@ declare const _default: {
|
|
|
47
100
|
order: number;
|
|
48
101
|
props: {
|
|
49
102
|
kind: string;
|
|
103
|
+
action?: undefined;
|
|
104
|
+
readonly?: undefined;
|
|
105
|
+
vendors?: undefined;
|
|
106
|
+
values?: undefined;
|
|
50
107
|
reduction?: undefined;
|
|
51
108
|
items?: undefined;
|
|
52
109
|
total?: undefined;
|
|
@@ -82,6 +139,10 @@ declare const _default: {
|
|
|
82
139
|
loadComponent: () => Promise<typeof import("./playground/PricingVersionPreview.svelte")>;
|
|
83
140
|
order: number;
|
|
84
141
|
props: {
|
|
142
|
+
action?: undefined;
|
|
143
|
+
readonly?: undefined;
|
|
144
|
+
vendors?: undefined;
|
|
145
|
+
values?: undefined;
|
|
85
146
|
reduction?: undefined;
|
|
86
147
|
kind?: undefined;
|
|
87
148
|
items?: undefined;
|
|
@@ -157,6 +218,10 @@ declare const _default: {
|
|
|
157
218
|
nextHref: string;
|
|
158
219
|
addHref: string;
|
|
159
220
|
canCreate: boolean;
|
|
221
|
+
action?: undefined;
|
|
222
|
+
readonly?: undefined;
|
|
223
|
+
vendors?: undefined;
|
|
224
|
+
values?: undefined;
|
|
160
225
|
reduction?: undefined;
|
|
161
226
|
kind?: undefined;
|
|
162
227
|
customer?: undefined;
|
|
@@ -220,6 +285,10 @@ declare const _default: {
|
|
|
220
285
|
backHref: string;
|
|
221
286
|
editHref: string;
|
|
222
287
|
canEdit: boolean;
|
|
288
|
+
action?: undefined;
|
|
289
|
+
readonly?: undefined;
|
|
290
|
+
vendors?: undefined;
|
|
291
|
+
values?: undefined;
|
|
223
292
|
reduction?: undefined;
|
|
224
293
|
kind?: undefined;
|
|
225
294
|
items?: undefined;
|
|
@@ -252,6 +321,10 @@ declare const _default: {
|
|
|
252
321
|
order: number;
|
|
253
322
|
props: {
|
|
254
323
|
kind: string;
|
|
324
|
+
action?: undefined;
|
|
325
|
+
readonly?: undefined;
|
|
326
|
+
vendors?: undefined;
|
|
327
|
+
values?: undefined;
|
|
255
328
|
reduction?: undefined;
|
|
256
329
|
items?: undefined;
|
|
257
330
|
total?: undefined;
|
|
@@ -318,6 +391,10 @@ declare const _default: {
|
|
|
318
391
|
total: number;
|
|
319
392
|
addHref: string;
|
|
320
393
|
canCreate: boolean;
|
|
394
|
+
action?: undefined;
|
|
395
|
+
readonly?: undefined;
|
|
396
|
+
vendors?: undefined;
|
|
397
|
+
values?: undefined;
|
|
321
398
|
reduction?: undefined;
|
|
322
399
|
kind?: undefined;
|
|
323
400
|
page?: undefined;
|
|
@@ -378,6 +455,10 @@ declare const _default: {
|
|
|
378
455
|
backHref: string;
|
|
379
456
|
editHref: string;
|
|
380
457
|
canEdit: boolean;
|
|
458
|
+
action?: undefined;
|
|
459
|
+
readonly?: undefined;
|
|
460
|
+
vendors?: undefined;
|
|
461
|
+
values?: undefined;
|
|
381
462
|
reduction?: undefined;
|
|
382
463
|
kind?: undefined;
|
|
383
464
|
items?: undefined;
|
|
@@ -422,6 +503,10 @@ declare const _default: {
|
|
|
422
503
|
};
|
|
423
504
|
currency: string;
|
|
424
505
|
onclick: () => void;
|
|
506
|
+
action?: undefined;
|
|
507
|
+
readonly?: undefined;
|
|
508
|
+
vendors?: undefined;
|
|
509
|
+
values?: undefined;
|
|
425
510
|
reduction?: undefined;
|
|
426
511
|
kind?: undefined;
|
|
427
512
|
items?: undefined;
|
|
@@ -459,6 +544,10 @@ declare const _default: {
|
|
|
459
544
|
onmarkpaid: () => void;
|
|
460
545
|
onprint: () => void;
|
|
461
546
|
onexport: () => void;
|
|
547
|
+
action?: undefined;
|
|
548
|
+
readonly?: undefined;
|
|
549
|
+
vendors?: undefined;
|
|
550
|
+
values?: undefined;
|
|
462
551
|
reduction?: undefined;
|
|
463
552
|
kind?: undefined;
|
|
464
553
|
items?: undefined;
|
|
@@ -511,6 +600,10 @@ declare const _default: {
|
|
|
511
600
|
currency: string;
|
|
512
601
|
onselectionchange: () => void;
|
|
513
602
|
oncreate: () => void;
|
|
603
|
+
action?: undefined;
|
|
604
|
+
readonly?: undefined;
|
|
605
|
+
vendors?: undefined;
|
|
606
|
+
values?: undefined;
|
|
514
607
|
reduction?: undefined;
|
|
515
608
|
kind?: undefined;
|
|
516
609
|
total?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqHA,wBA4PE"}
|
|
@@ -111,6 +111,26 @@ export default {
|
|
|
111
111
|
description: COMMERCE_MODULE_META.description,
|
|
112
112
|
moduleMeta: COMMERCE_MODULE_META,
|
|
113
113
|
entries: [
|
|
114
|
+
{
|
|
115
|
+
id: 'purchase-order-header-form',
|
|
116
|
+
title: 'Purchase order header',
|
|
117
|
+
description: 'Retained delivery header with caller-owned validation and native transport.',
|
|
118
|
+
loadComponent: () => import('./components/PurchaseOrderHeaderForm.svelte'),
|
|
119
|
+
order: 32,
|
|
120
|
+
props: {
|
|
121
|
+
action: '#',
|
|
122
|
+
readonly: true,
|
|
123
|
+
vendors: [{ value: 'vendor-1', label: 'North Studio' }],
|
|
124
|
+
values: {
|
|
125
|
+
vendorId: 'vendor-1',
|
|
126
|
+
reference: 'PO-104',
|
|
127
|
+
expectedDate: '2026-11-02',
|
|
128
|
+
shipTo: 'Receiving dock',
|
|
129
|
+
notes: 'Call before delivery',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
modes: { mock: { label: 'Header preview' } },
|
|
133
|
+
},
|
|
114
134
|
{
|
|
115
135
|
id: 'purchase-order-editor',
|
|
116
136
|
title: 'Purchase and award preparation',
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/** Localizable purchasing presentation text; domain names and policy remain caller-owned. */
|
|
2
2
|
export declare const P: {
|
|
3
|
+
readonly 'commerce.purchase.header': "commerce.purchase.header";
|
|
4
|
+
readonly 'commerce.purchase.vendor': "commerce.purchase.vendor";
|
|
5
|
+
readonly 'commerce.purchase.vendor_prompt': "commerce.purchase.vendor_prompt";
|
|
6
|
+
readonly 'commerce.purchase.vendor_unavailable': "commerce.purchase.vendor_unavailable";
|
|
7
|
+
readonly 'commerce.purchase.reference': "commerce.purchase.reference";
|
|
8
|
+
readonly 'commerce.purchase.notes': "commerce.purchase.notes";
|
|
9
|
+
readonly 'commerce.purchase.expected_date': "commerce.purchase.expected_date";
|
|
10
|
+
readonly 'commerce.purchase.ship_to': "commerce.purchase.ship_to";
|
|
11
|
+
readonly 'commerce.purchase.save_header': "commerce.purchase.save_header";
|
|
3
12
|
readonly 'commerce.purchase.source': "commerce.purchase.source";
|
|
4
13
|
readonly 'commerce.purchase.choose': "commerce.purchase.choose";
|
|
5
14
|
readonly 'commerce.purchase.use': "commerce.purchase.use";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchasing-i18n.d.ts","sourceRoot":"","sources":["../../src/svelte/purchasing-i18n.ts"],"names":[],"mappings":"AACA,6FAA6F;AAC7F,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"purchasing-i18n.d.ts","sourceRoot":"","sources":["../../src/svelte/purchasing-i18n.ts"],"names":[],"mappings":"AACA,6FAA6F;AAC7F,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEZ,CAAC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { defineMessages } from '@happyvertical/smrt-ui/i18n';
|
|
2
2
|
/** Localizable purchasing presentation text; domain names and policy remain caller-owned. */
|
|
3
3
|
export const P = defineMessages({
|
|
4
|
+
'commerce.purchase.header': 'Purchase order header',
|
|
5
|
+
'commerce.purchase.vendor': 'Vendor',
|
|
6
|
+
'commerce.purchase.vendor_prompt': 'Choose a vendor',
|
|
7
|
+
'commerce.purchase.vendor_unavailable': 'Unavailable vendor: {id}',
|
|
8
|
+
'commerce.purchase.reference': 'Reference',
|
|
9
|
+
'commerce.purchase.notes': 'Notes',
|
|
10
|
+
'commerce.purchase.expected_date': 'Expected date (YYYY-MM-DD)',
|
|
11
|
+
'commerce.purchase.ship_to': 'Ship to',
|
|
12
|
+
'commerce.purchase.save_header': 'Save header',
|
|
4
13
|
'commerce.purchase.source': 'Purchasing source',
|
|
5
14
|
'commerce.purchase.choose': 'Choose a vendor and source',
|
|
6
15
|
'commerce.purchase.use': 'Use this source',
|
|
@@ -88,4 +88,17 @@ export interface PurchaseFieldNames {
|
|
|
88
88
|
}
|
|
89
89
|
/** Conventional defaults; existing consumers can adapt every payload field. */
|
|
90
90
|
export declare const purchaseFieldNames: PurchaseFieldNames;
|
|
91
|
+
/** Raw header values, including rejected server-retained strings. */
|
|
92
|
+
export interface PurchaseOrderHeaderValues {
|
|
93
|
+
/** Existing Commerce vendor identity. */
|
|
94
|
+
vendorId?: string;
|
|
95
|
+
/** External purchase-order reference. */
|
|
96
|
+
reference?: string;
|
|
97
|
+
/** Internal purchase-order notes. */
|
|
98
|
+
notes?: string;
|
|
99
|
+
/** Calendar date text; the server validates YYYY-MM-DD or empty. */
|
|
100
|
+
expectedDate?: string;
|
|
101
|
+
/** Delivery address/instructions snapshot. */
|
|
102
|
+
shipTo?: string;
|
|
103
|
+
}
|
|
91
104
|
//# sourceMappingURL=purchasing-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"purchasing-types.d.ts","sourceR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AAkB;IACjC,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,gBAAgB,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,EAAE,kBAWhC,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -334,6 +334,13 @@ export interface ContractOptions extends SmrtObjectOptions {
|
|
|
334
334
|
terms?: string;
|
|
335
335
|
channelId?: string;
|
|
336
336
|
}
|
|
337
|
+
/** Purchase-order header options stored in the existing STI metadata. */
|
|
338
|
+
export interface PurchaseOrderOptions extends ContractOptions {
|
|
339
|
+
/** Expected delivery calendar date (YYYY-MM-DD); empty means unspecified. */
|
|
340
|
+
expectedDate?: string;
|
|
341
|
+
/** Delivery address/instructions snapshot. */
|
|
342
|
+
shipTo?: string;
|
|
343
|
+
}
|
|
337
344
|
/**
|
|
338
345
|
* Constructor options for {@link LicenseSale} (Contract STI subtype). Extends
|
|
339
346
|
* {@link ContractOptions} with the licensing-specific meta fields.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAM5C,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAED;;;;;;GAMG;AACH,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB;AAMD,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,IAAI,SAAS;IACb;;;;;;;OAOG;IACH,YAAY,iBAAiB;CAC9B;AAED,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAMD,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAMD,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3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W,aAAc,SAAQ,iBAAiB;IACtD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/dist/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CA2O1D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAuBlC,CAAC"}
|
package/dist/ui.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
//#region src/ui.ts
|
|
2
2
|
var COMMERCE_UI_SLOTS = {
|
|
3
|
+
"purchase-order-header-form": {
|
|
4
|
+
id: "purchase-order-header-form",
|
|
5
|
+
label: "Purchase Order Header",
|
|
6
|
+
description: "Native vendor, reference, delivery date and ship-to editing",
|
|
7
|
+
icon: "file-text",
|
|
8
|
+
category: "form",
|
|
9
|
+
order: 32,
|
|
10
|
+
propsInterface: "PurchaseOrderHeaderFormProps"
|
|
11
|
+
},
|
|
3
12
|
"purchase-order-editor": {
|
|
4
13
|
id: "purchase-order-editor",
|
|
5
14
|
label: "Purchase / Award Editor",
|
package/dist/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","names":[],"sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'purchase-order-editor': {\n id: 'purchase-order-editor',\n label: 'Purchase / Award Editor',\n description:\n 'Native allocation preparation, review and explicit confirmation',\n icon: 'file-text',\n category: 'form',\n order: 30,\n propsInterface: 'PurchaseOrderEditorProps',\n },\n 'purchase-source-selector': {\n id: 'purchase-source-selector',\n label: 'Purchasing Source',\n description: 'Caller-authorized vendor and source selection',\n icon: 'list',\n category: 'form',\n order: 31,\n propsInterface: 'PurchaseSourceSelectorProps',\n },\n\n 'quote-editor': {\n id: 'quote-editor',\n label: 'Quotation / Estimate Editor',\n description:\n 'Native retained-value document editor with caller-owned actions',\n icon: 'file-text',\n category: 'form',\n order: 20,\n propsInterface: 'QuoteEditorProps',\n },\n 'quote-revision-history': {\n id: 'quote-revision-history',\n label: 'Quote Revision History',\n description: 'Read-only retained quotation and estimate revisions',\n icon: 'clock',\n category: 'list',\n order: 21,\n propsInterface: 'QuoteRevisionHistoryProps',\n },\n 'quote-revision-comparison': {\n id: 'quote-revision-comparison',\n label: 'Quote Revision Comparison',\n description: 'Compare explicit minor-unit revision totals and scope',\n icon: 'file-text',\n category: 'display',\n order: 22,\n propsInterface: 'QuoteRevisionComparisonProps',\n },\n\n 'pricing-version-summary': {\n id: 'pricing-version-summary',\n label: 'Pricing Version Summary',\n description: 'Retained estimate version and source amounts',\n icon: 'file-text',\n category: 'display',\n order: 30,\n propsInterface: 'PricingVersionSummaryProps',\n },\n 'pricing-version-decision': {\n id: 'pricing-version-decision',\n label: 'Pricing Version Decision',\n description: 'Caller-owned native decisions over retained pricing',\n icon: 'file-text',\n category: 'form',\n order: 31,\n propsInterface: 'PricingVersionDecisionProps',\n },\n 'customer-directory': {\n id: 'customer-directory',\n label: 'Customer Directory',\n description: 'Searchable and paginated customer directory',\n icon: 'users',\n category: 'list',\n order: 1,\n propsInterface: 'CustomerDirectoryProps',\n },\n 'customer-detail': {\n id: 'customer-detail',\n label: 'Customer Detail',\n description: 'Customer identity, terms, addresses, and contacts',\n icon: 'user',\n category: 'display',\n order: 2,\n propsInterface: 'CustomerDetailProps',\n },\n 'customer-form': {\n id: 'customer-form',\n label: 'Customer Form',\n description: 'Native create and edit form for customer data',\n icon: 'edit',\n category: 'form',\n order: 3,\n propsInterface: 'CustomerFormProps',\n },\n 'vendor-directory': {\n id: 'vendor-directory',\n label: 'Vendor Directory',\n description: 'Searchable and paginated vendor directory',\n icon: 'users',\n category: 'list',\n order: 4,\n propsInterface: 'VendorDirectoryProps',\n },\n 'vendor-detail': {\n id: 'vendor-detail',\n label: 'Vendor Detail',\n description: 'Vendor identity, purchasing terms, and contacts',\n icon: 'building',\n category: 'display',\n order: 5,\n propsInterface: 'VendorDetailProps',\n },\n 'vendor-form': {\n id: 'vendor-form',\n label: 'Vendor Form',\n description: 'Native create and edit form for vendor data',\n icon: 'edit',\n category: 'form',\n order: 6,\n propsInterface: 'VendorFormProps',\n },\n 'customer-select': {\n id: 'customer-select',\n label: 'Customer Select',\n description:\n 'Searchable customer picker for relation fields; the caller supplies the lookup',\n icon: 'users',\n category: 'form',\n order: 10,\n propsInterface: 'CustomerSelectProps',\n selects: '@happyvertical/smrt-commerce:Customer',\n },\n 'vendor-select': {\n id: 'vendor-select',\n label: 'Vendor Select',\n description:\n 'Searchable vendor picker for relation fields; the caller supplies the lookup',\n icon: 'building',\n category: 'form',\n order: 11,\n propsInterface: 'VendorSelectProps',\n selects: '@happyvertical/smrt-commerce:Vendor',\n },\n 'party-contact-fields': {\n id: 'party-contact-fields',\n label: 'Party Contact Fields',\n description: 'Repeatable native contact editor shared by party forms',\n icon: 'contact',\n category: 'form',\n order: 7,\n propsInterface: 'PartyContactFieldsProps',\n },\n 'invoice-editor': {\n id: 'invoice-editor',\n label: 'Invoice Preparation',\n description:\n 'General invoice lines, exact totals and optional allocation fields',\n icon: 'file-text',\n category: 'form',\n order: 8,\n propsInterface: 'InvoiceEditorProps',\n },\n 'invoice-review': {\n id: 'invoice-review',\n label: 'Invoice Review',\n description: 'Caller-authoritative review and approval presentation',\n icon: 'file-text',\n category: 'display',\n order: 9,\n propsInterface: 'InvoiceReviewProps',\n },\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 20,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 21,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 22,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 23,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 24,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 25,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"mappings":";AAmBO,IAAM,oBAAkD;CAC7D,yBAAyB;EACvB,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,4BAA4B;EAC1B,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CAEA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP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A,wBAAwB;EACtB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,sBAAsB;EACpB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;AACF;AAKO,IAAM,uBAAuC;CAClD,MAAM;CACN,aAAa;CACb,aAAa;CACb,SAAS;CACT,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"ui.js","names":[],"sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'purchase-order-header-form': {\n id: 'purchase-order-header-form',\n label: 'Purchase Order Header',\n description: 'Native vendor, reference, delivery date and ship-to editing',\n icon: 'file-text',\n category: 'form',\n order: 32,\n propsInterface: 'PurchaseOrderHeaderFormProps',\n },\n 'purchase-order-editor': {\n id: 'purchase-order-editor',\n label: 'Purchase / Award Editor',\n description:\n 'Native allocation preparation, review and explicit confirmation',\n icon: 'file-text',\n category: 'form',\n order: 30,\n propsInterface: 'PurchaseOrderEditorProps',\n },\n 'purchase-source-selector': {\n id: 'purchase-source-selector',\n label: 'Purchasing Source',\n description: 'Caller-authorized vendor and source selection',\n icon: 'list',\n category: 'form',\n order: 31,\n propsInterface: 'PurchaseSourceSelectorProps',\n },\n\n 'quote-editor': {\n id: 'quote-editor',\n label: 'Quotation / Estimate Editor',\n description:\n 'Native retained-value document editor with caller-owned actions',\n icon: 'file-text',\n category: 'form',\n order: 20,\n propsInterface: 'QuoteEditorProps',\n },\n 'quote-revision-history': {\n id: 'quote-revision-history',\n label: 'Quote Revision History',\n description: 'Read-only retained quotation and estimate revisions',\n icon: 'clock',\n category: 'list',\n order: 21,\n propsInterface: 'QuoteRevisionHistoryProps',\n },\n 'quote-revision-comparison': {\n id: 'quote-revision-comparison',\n label: 'Quote Revision Comparison',\n description: 'Compare explicit minor-unit revision totals and scope',\n icon: 'file-text',\n category: 'display',\n order: 22,\n propsInterface: 'QuoteRevisionComparisonProps',\n },\n\n 'pricing-version-summary': {\n id: 'pricing-version-summary',\n label: 'Pricing Version Summary',\n description: 'Retained estimate version and source amounts',\n icon: 'file-text',\n category: 'display',\n order: 30,\n propsInterface: 'PricingVersionSummaryProps',\n },\n 'pricing-version-decision': {\n id: 'pricing-version-decision',\n label: 'Pricing Version Decision',\n description: 'Caller-owned native decisions over retained pricing',\n icon: 'file-text',\n category: 'form',\n order: 31,\n propsInterface: 'PricingVersionDecisionProps',\n },\n 'customer-directory': {\n id: 'customer-directory',\n label: 'Customer Directory',\n description: 'Searchable and paginated customer directory',\n icon: 'users',\n category: 'list',\n order: 1,\n propsInterface: 'CustomerDirectoryProps',\n },\n 'customer-detail': {\n id: 'customer-detail',\n label: 'Customer Detail',\n description: 'Customer identity, terms, addresses, and contacts',\n icon: 'user',\n category: 'display',\n order: 2,\n propsInterface: 'CustomerDetailProps',\n },\n 'customer-form': {\n id: 'customer-form',\n label: 'Customer Form',\n description: 'Native create and edit form for customer data',\n icon: 'edit',\n category: 'form',\n order: 3,\n propsInterface: 'CustomerFormProps',\n },\n 'vendor-directory': {\n id: 'vendor-directory',\n label: 'Vendor Directory',\n description: 'Searchable and paginated vendor directory',\n icon: 'users',\n category: 'list',\n order: 4,\n propsInterface: 'VendorDirectoryProps',\n },\n 'vendor-detail': {\n id: 'vendor-detail',\n label: 'Vendor Detail',\n description: 'Vendor identity, purchasing terms, and contacts',\n icon: 'building',\n category: 'display',\n order: 5,\n propsInterface: 'VendorDetailProps',\n },\n 'vendor-form': {\n id: 'vendor-form',\n label: 'Vendor Form',\n description: 'Native create and edit form for vendor data',\n icon: 'edit',\n category: 'form',\n order: 6,\n propsInterface: 'VendorFormProps',\n },\n 'customer-select': {\n id: 'customer-select',\n label: 'Customer Select',\n description:\n 'Searchable customer picker for relation fields; the caller supplies the lookup',\n icon: 'users',\n category: 'form',\n order: 10,\n propsInterface: 'CustomerSelectProps',\n selects: '@happyvertical/smrt-commerce:Customer',\n },\n 'vendor-select': {\n id: 'vendor-select',\n label: 'Vendor Select',\n description:\n 'Searchable vendor picker for relation fields; the caller supplies the lookup',\n icon: 'building',\n category: 'form',\n order: 11,\n propsInterface: 'VendorSelectProps',\n selects: '@happyvertical/smrt-commerce:Vendor',\n },\n 'party-contact-fields': {\n id: 'party-contact-fields',\n label: 'Party Contact Fields',\n description: 'Repeatable native contact editor shared by party forms',\n icon: 'contact',\n category: 'form',\n order: 7,\n propsInterface: 'PartyContactFieldsProps',\n },\n 'invoice-editor': {\n id: 'invoice-editor',\n label: 'Invoice Preparation',\n description:\n 'General invoice lines, exact totals and optional allocation fields',\n icon: 'file-text',\n category: 'form',\n order: 8,\n propsInterface: 'InvoiceEditorProps',\n },\n 'invoice-review': {\n id: 'invoice-review',\n label: 'Invoice Review',\n description: 'Caller-authoritative review and approval presentation',\n icon: 'file-text',\n category: 'display',\n order: 9,\n propsInterface: 'InvoiceReviewProps',\n },\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 20,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 21,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 22,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 23,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 24,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 25,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"mappings":";AAmBO,IAAM,oBAAkD;CAC7D,8BAA8B;EAC5B,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,yBAAyB;EACvB,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,4BAA4B;EAC1B,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CAEA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,0BAA0B;EACxB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,6BAA6B;EAC3B,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CAEA,2BAA2B;EACzB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,4BAA4B;EAC1B,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,sBAAsB;EACpB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,iBAAiB;EACf,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,oBAAoB;EAClB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,iBAAiB;EACf,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,eAAe;EACb,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,SAAS;CACX;CACA,iBAAiB;EACf,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;EAChB,SAAS;CACX;CACA,wBAAwB;EACtB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aACE;EACF,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,sBAAsB;EACpB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;AACF;AAKO,IAAM,uBAAuC;CAClD,MAAM;CACN,aAAa;CACb,aAAa;CACb,SAAS;CACT,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.15",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
|
|
6
6
|
"type": "module",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"./invoices": {
|
|
27
27
|
"types": "./dist/invoices.d.ts",
|
|
28
28
|
"import": "./dist/invoices.js"
|
|
29
|
+
},
|
|
30
|
+
"./cost-billing": {
|
|
31
|
+
"types": "./dist/cost-billing.d.ts",
|
|
32
|
+
"import": "./dist/cost-billing.js"
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
"files": [
|
|
@@ -55,15 +59,15 @@
|
|
|
55
59
|
"access": "public"
|
|
56
60
|
},
|
|
57
61
|
"dependencies": {
|
|
58
|
-
"@happyvertical/accounting": "^0.103.
|
|
59
|
-
"@happyvertical/payments": "^0.103.
|
|
60
|
-
"@happyvertical/smrt-core": "0.55.
|
|
61
|
-
"@happyvertical/smrt-jobs": "0.55.
|
|
62
|
-
"@happyvertical/smrt-ledgers": "0.55.
|
|
63
|
-
"@happyvertical/smrt-subscriptions": "0.55.
|
|
64
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
65
|
-
"@happyvertical/smrt-types": "0.55.
|
|
66
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
62
|
+
"@happyvertical/accounting": "^0.103.4",
|
|
63
|
+
"@happyvertical/payments": "^0.103.4",
|
|
64
|
+
"@happyvertical/smrt-core": "0.55.15",
|
|
65
|
+
"@happyvertical/smrt-jobs": "0.55.15",
|
|
66
|
+
"@happyvertical/smrt-ledgers": "0.55.15",
|
|
67
|
+
"@happyvertical/smrt-subscriptions": "0.55.15",
|
|
68
|
+
"@happyvertical/smrt-tenancy": "0.55.15",
|
|
69
|
+
"@happyvertical/smrt-types": "0.55.15",
|
|
70
|
+
"@happyvertical/smrt-ui": "0.55.15"
|
|
67
71
|
},
|
|
68
72
|
"peerDependencies": {
|
|
69
73
|
"svelte": "^5.57.0"
|
|
@@ -74,7 +78,7 @@
|
|
|
74
78
|
}
|
|
75
79
|
},
|
|
76
80
|
"devDependencies": {
|
|
77
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
81
|
+
"@happyvertical/smrt-vitest": "0.55.15",
|
|
78
82
|
"@sveltejs/package": "^2.5.8",
|
|
79
83
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
80
84
|
"@testing-library/jest-dom": "^7.0.1",
|
|
@@ -105,6 +109,6 @@
|
|
|
105
109
|
"test:e2e:quotes": "cd ../.. && node packages/commerce/test-support/quote-browser.mjs",
|
|
106
110
|
"test:e2e:invoices": "playwright test -c e2e/invoices/playwright.config.ts",
|
|
107
111
|
"test:e2e:pricing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/pricing-browser.mjs node packages/commerce/test-support/quote-browser.mjs",
|
|
108
|
-
"test:e2e:purchasing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-browser-extension.mjs node packages/commerce/test-support/quote-browser.mjs"
|
|
112
|
+
"test:e2e:purchasing": "cd ../.. && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-browser-extension.mjs node packages/commerce/test-support/quote-browser.mjs && QUOTE_BROWSER_EXTENSION=packages/commerce/test-support/purchasing-header-browser.mjs node packages/commerce/test-support/quote-browser.mjs"
|
|
109
113
|
}
|
|
110
114
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region src/money.ts
|
|
2
|
-
function assertIntegerMinorUnits(context, label, entries) {
|
|
3
|
-
for (const [field, value] of entries) if (!Number.isFinite(value) || !Number.isInteger(value)) throw new Error(`${context} ${label}: ${field} must be an integer number of minor units (cents, satoshis) \u2014 got ${value}. Money is exact: $19.99 is 1999, not 19.99.`);
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { assertIntegerMinorUnits as t };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=money-WSMvSgWq.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-WSMvSgWq.js","names":[],"sources":["../../src/money.ts"],"sourcesContent":["/**\n * Money is exact: integer minor units, checked at the model boundary (#2401).\n *\n * Every money column in this package is INTEGER minor units — cents,\n * satoshis — so `$19.99` is `1999`. Before #2401 the models carried\n * `EPSILON = 0.01` tolerances on every comparison, because the values really\n * were floats and `0.1 * 3` really is `0.30000000000000004`. With exact\n * integers those tolerances are not merely unnecessary, they are wrong: a\n * one-cent discrepancy is a one-cent discrepancy, not rounding fuzz.\n *\n * Dropping the tolerances is only safe if the values are *actually* integers,\n * which is what this guard establishes. A fractional major-unit write (`19.99`\n * into a cents column) is the bug the whole convention exists to prevent;\n * PostgreSQL catches it with a `22P02` and SQLite's type affinity does not\n * catch it at all, so the model catches it first, on every engine and every\n * write surface.\n */\n\n/**\n * Throw unless every named value is a finite integer.\n *\n * @param context - Model name for the error message, e.g. `Invoice`.\n * @param label - Row identifier used in the error, e.g. an invoice number.\n * @param entries - `[fieldName, value]` pairs to check.\n * @throws When any value is non-finite or has a fractional part.\n */\nexport function assertIntegerMinorUnits(\n context: string,\n label: string,\n entries: ReadonlyArray<readonly [string, number]>,\n): void {\n for (const [field, value] of entries) {\n if (!Number.isFinite(value) || !Number.isInteger(value)) {\n throw new Error(\n `${context} ${label}: ${field} must be an integer number of minor ` +\n `units (cents, satoshis) — got ${value}. Money is exact: $19.99 is ` +\n '1999, not 19.99.',\n );\n }\n }\n}\n"],"mappings":";AA0BO,SAAS,wBACd,SACA,OACA,SACM;CACN,KAAA,MAAW,CAAC,OAAO,UAAU,SAC3B,IAAI,CAAC,OAAO,SAAS,KAAK,KAAK,CAAC,OAAO,UAAU,KAAK,GACpD,MAAM,IAAI,MACR,GAAG,QAAO,GAAI,MAAK,IAAK,MAAK,yEACM,MAAK,6CAE1C;AAGN"}
|