@happyvertical/smrt-commerce 0.57.37 → 0.57.38

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.
Files changed (71) hide show
  1. package/dist/allocation-integrity.d.ts +1 -1
  2. package/dist/allocation-integrity.d.ts.map +1 -1
  3. package/dist/chunks/{ContractLineItemCollection-DKcR46vL.js → ContractLineItemCollection-D74LbDOI.js} +8 -8
  4. package/dist/chunks/ContractLineItemCollection-D74LbDOI.js.map +1 -0
  5. package/dist/chunks/{DocumentTaxCollection-BjY9L6lc.js → DocumentTaxCollection-BmKyJGZi.js} +30 -30
  6. package/dist/chunks/DocumentTaxCollection-BmKyJGZi.js.map +1 -0
  7. package/dist/chunks/{InvoiceCollection-C50Hsu6G.js → InvoiceCollection-BPEzXaKm.js} +19 -14
  8. package/dist/chunks/InvoiceCollection-BPEzXaKm.js.map +1 -0
  9. package/dist/chunks/{TaxCodeCollection-CT09VQ9n.js → TaxCodeCollection-DpQeIqP4.js} +4 -4
  10. package/dist/chunks/TaxCodeCollection-DpQeIqP4.js.map +1 -0
  11. package/dist/chunks/{TaxComponentCollection-D8sFp8ZD.js → TaxComponentCollection-wFGWOaxy.js} +13 -8
  12. package/dist/chunks/TaxComponentCollection-wFGWOaxy.js.map +1 -0
  13. package/dist/chunks/{allocation-integrity-DrFgfSMd.js → allocation-integrity-DgnPec2a.js} +8 -8
  14. package/dist/chunks/allocation-integrity-DgnPec2a.js.map +1 -0
  15. package/dist/chunks/{contract-money-Cnezm9sA.js → contract-money-BxvY2Kcp.js} +14 -14
  16. package/dist/chunks/contract-money-BxvY2Kcp.js.map +1 -0
  17. package/dist/chunks/{invoice-posting-Dx-mfaRX.js → invoice-posting-C1q3CIYz.js} +3 -3
  18. package/dist/chunks/{invoice-posting-Dx-mfaRX.js.map → invoice-posting-C1q3CIYz.js.map} +1 -1
  19. package/dist/chunks/{retention-accounting-CvfeisFJ.js → retention-accounting-BAKsmbwJ.js} +18 -13
  20. package/dist/chunks/retention-accounting-BAKsmbwJ.js.map +1 -0
  21. package/dist/chunks/{tenant-money-barrier-DTELupG0.js → tenant-money-barrier-j1m0r6pe.js} +5 -5
  22. package/dist/chunks/tenant-money-barrier-j1m0r6pe.js.map +1 -0
  23. package/dist/contract-money.d.ts +3 -2
  24. package/dist/contract-money.d.ts.map +1 -1
  25. package/dist/document-money.d.ts +3 -2
  26. package/dist/document-money.d.ts.map +1 -1
  27. package/dist/index.js +23 -23
  28. package/dist/index.js.map +1 -1
  29. package/dist/invoices.js +1 -1
  30. package/dist/manifest.json +280 -28
  31. package/dist/models/Contract.d.ts +5 -5
  32. package/dist/models/Contract.d.ts.map +1 -1
  33. package/dist/models/ContractLineItem.d.ts +3 -3
  34. package/dist/models/ContractLineItem.d.ts.map +1 -1
  35. package/dist/models/DocumentTax.d.ts +3 -3
  36. package/dist/models/DocumentTax.d.ts.map +1 -1
  37. package/dist/models/Fulfillment.d.ts +2 -2
  38. package/dist/models/Fulfillment.d.ts.map +1 -1
  39. package/dist/models/FulfillmentLineItem.d.ts +2 -2
  40. package/dist/models/FulfillmentLineItem.d.ts.map +1 -1
  41. package/dist/models/Invoice.d.ts +3 -3
  42. package/dist/models/Invoice.d.ts.map +1 -1
  43. package/dist/models/InvoiceLineItem.d.ts +3 -3
  44. package/dist/models/InvoiceLineItem.d.ts.map +1 -1
  45. package/dist/models/Payment.d.ts +2 -2
  46. package/dist/models/Payment.d.ts.map +1 -1
  47. package/dist/models/PaymentAllocation.d.ts +2 -2
  48. package/dist/models/PaymentAllocation.d.ts.map +1 -1
  49. package/dist/models/PaymentIntent.d.ts +2 -2
  50. package/dist/models/PaymentIntent.d.ts.map +1 -1
  51. package/dist/models/Payout.d.ts +2 -2
  52. package/dist/models/Payout.d.ts.map +1 -1
  53. package/dist/models/PurchasePriceObservation.d.ts +3 -3
  54. package/dist/models/PurchasePriceObservation.d.ts.map +1 -1
  55. package/dist/models/TaxCode.d.ts +2 -2
  56. package/dist/models/TaxCode.d.ts.map +1 -1
  57. package/dist/models/TaxComponent.d.ts +2 -2
  58. package/dist/models/TaxComponent.d.ts.map +1 -1
  59. package/dist/models/TaxSettings.d.ts +2 -2
  60. package/dist/models/TaxSettings.d.ts.map +1 -1
  61. package/dist/smrt-knowledge.json +120 -21
  62. package/package.json +13 -13
  63. package/dist/chunks/ContractLineItemCollection-DKcR46vL.js.map +0 -1
  64. package/dist/chunks/DocumentTaxCollection-BjY9L6lc.js.map +0 -1
  65. package/dist/chunks/InvoiceCollection-C50Hsu6G.js.map +0 -1
  66. package/dist/chunks/TaxCodeCollection-CT09VQ9n.js.map +0 -1
  67. package/dist/chunks/TaxComponentCollection-D8sFp8ZD.js.map +0 -1
  68. package/dist/chunks/allocation-integrity-DrFgfSMd.js.map +0 -1
  69. package/dist/chunks/contract-money-Cnezm9sA.js.map +0 -1
  70. package/dist/chunks/retention-accounting-CvfeisFJ.js.map +0 -1
  71. package/dist/chunks/tenant-money-barrier-DTELupG0.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-CvfeisFJ.js";
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-BAKsmbwJ.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 };
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-commerce",
5
- "packageVersion": "0.57.37",
5
+ "packageVersion": "0.57.38",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-commerce:ContractCollection": {
8
8
  "name": "contractcollection",
@@ -7512,7 +7512,13 @@
7512
7512
  "save": {
7513
7513
  "name": "save",
7514
7514
  "async": true,
7515
- "parameters": [],
7515
+ "parameters": [
7516
+ {
7517
+ "name": "options",
7518
+ "type": "SmrtSaveOptions",
7519
+ "optional": true
7520
+ }
7521
+ ],
7516
7522
  "returnType": "Promise<this>",
7517
7523
  "isStatic": false,
7518
7524
  "isPublic": true
@@ -7564,6 +7570,11 @@
7564
7570
  "name": "capability",
7565
7571
  "type": "DocumentMoneyWriteCapability",
7566
7572
  "optional": false
7573
+ },
7574
+ {
7575
+ "name": "options",
7576
+ "type": "SmrtSaveOptions",
7577
+ "optional": true
7567
7578
  }
7568
7579
  ],
7569
7580
  "returnType": "Promise<this>",
@@ -8153,7 +8164,13 @@
8153
8164
  "save": {
8154
8165
  "name": "save",
8155
8166
  "async": true,
8156
- "parameters": [],
8167
+ "parameters": [
8168
+ {
8169
+ "name": "options",
8170
+ "type": "SmrtSaveOptions",
8171
+ "optional": true
8172
+ }
8173
+ ],
8157
8174
  "returnType": "Promise<this>",
8158
8175
  "isStatic": false,
8159
8176
  "isPublic": true
@@ -8205,6 +8222,11 @@
8205
8222
  "name": "capability",
8206
8223
  "type": "DocumentMoneyWriteCapability",
8207
8224
  "optional": false
8225
+ },
8226
+ {
8227
+ "name": "options",
8228
+ "type": "SmrtSaveOptions",
8229
+ "optional": true
8208
8230
  }
8209
8231
  ],
8210
8232
  "returnType": "Promise<this>",
@@ -8839,7 +8861,13 @@
8839
8861
  "save": {
8840
8862
  "name": "save",
8841
8863
  "async": true,
8842
- "parameters": [],
8864
+ "parameters": [
8865
+ {
8866
+ "name": "options",
8867
+ "type": "SmrtSaveOptions",
8868
+ "optional": true
8869
+ }
8870
+ ],
8843
8871
  "returnType": "Promise<this>",
8844
8872
  "isStatic": false,
8845
8873
  "isPublic": true
@@ -8891,6 +8919,11 @@
8891
8919
  "name": "capability",
8892
8920
  "type": "DocumentMoneyWriteCapability",
8893
8921
  "optional": false
8922
+ },
8923
+ {
8924
+ "name": "options",
8925
+ "type": "SmrtSaveOptions",
8926
+ "optional": true
8894
8927
  }
8895
8928
  ],
8896
8929
  "returnType": "Promise<this>",
@@ -9525,7 +9558,13 @@
9525
9558
  "save": {
9526
9559
  "name": "save",
9527
9560
  "async": true,
9528
- "parameters": [],
9561
+ "parameters": [
9562
+ {
9563
+ "name": "options",
9564
+ "type": "SmrtSaveOptions",
9565
+ "optional": true
9566
+ }
9567
+ ],
9529
9568
  "returnType": "Promise<this>",
9530
9569
  "isStatic": false,
9531
9570
  "isPublic": true
@@ -9577,6 +9616,11 @@
9577
9616
  "name": "capability",
9578
9617
  "type": "DocumentMoneyWriteCapability",
9579
9618
  "optional": false
9619
+ },
9620
+ {
9621
+ "name": "options",
9622
+ "type": "SmrtSaveOptions",
9623
+ "optional": true
9580
9624
  }
9581
9625
  ],
9582
9626
  "returnType": "Promise<this>",
@@ -10168,7 +10212,13 @@
10168
10212
  "save": {
10169
10213
  "name": "save",
10170
10214
  "async": true,
10171
- "parameters": [],
10215
+ "parameters": [
10216
+ {
10217
+ "name": "options",
10218
+ "type": "SmrtSaveOptions",
10219
+ "optional": true
10220
+ }
10221
+ ],
10172
10222
  "returnType": "Promise<this>",
10173
10223
  "isStatic": false,
10174
10224
  "isPublic": true
@@ -10220,6 +10270,11 @@
10220
10270
  "name": "capability",
10221
10271
  "type": "DocumentMoneyWriteCapability",
10222
10272
  "optional": false
10273
+ },
10274
+ {
10275
+ "name": "options",
10276
+ "type": "SmrtSaveOptions",
10277
+ "optional": true
10223
10278
  }
10224
10279
  ],
10225
10280
  "returnType": "Promise<this>",
@@ -10811,7 +10866,13 @@
10811
10866
  "save": {
10812
10867
  "name": "save",
10813
10868
  "async": true,
10814
- "parameters": [],
10869
+ "parameters": [
10870
+ {
10871
+ "name": "options",
10872
+ "type": "SmrtSaveOptions",
10873
+ "optional": true
10874
+ }
10875
+ ],
10815
10876
  "returnType": "Promise<this>",
10816
10877
  "isStatic": false,
10817
10878
  "isPublic": true
@@ -10863,6 +10924,11 @@
10863
10924
  "name": "capability",
10864
10925
  "type": "DocumentMoneyWriteCapability",
10865
10926
  "optional": false
10927
+ },
10928
+ {
10929
+ "name": "options",
10930
+ "type": "SmrtSaveOptions",
10931
+ "optional": true
10866
10932
  }
10867
10933
  ],
10868
10934
  "returnType": "Promise<this>",
@@ -11454,7 +11520,13 @@
11454
11520
  "save": {
11455
11521
  "name": "save",
11456
11522
  "async": true,
11457
- "parameters": [],
11523
+ "parameters": [
11524
+ {
11525
+ "name": "options",
11526
+ "type": "SmrtSaveOptions",
11527
+ "optional": true
11528
+ }
11529
+ ],
11458
11530
  "returnType": "Promise<this>",
11459
11531
  "isStatic": false,
11460
11532
  "isPublic": true
@@ -11506,6 +11578,11 @@
11506
11578
  "name": "capability",
11507
11579
  "type": "DocumentMoneyWriteCapability",
11508
11580
  "optional": false
11581
+ },
11582
+ {
11583
+ "name": "options",
11584
+ "type": "SmrtSaveOptions",
11585
+ "optional": true
11509
11586
  }
11510
11587
  ],
11511
11588
  "returnType": "Promise<this>",
@@ -12097,7 +12174,13 @@
12097
12174
  "save": {
12098
12175
  "name": "save",
12099
12176
  "async": true,
12100
- "parameters": [],
12177
+ "parameters": [
12178
+ {
12179
+ "name": "options",
12180
+ "type": "SmrtSaveOptions",
12181
+ "optional": true
12182
+ }
12183
+ ],
12101
12184
  "returnType": "Promise<this>",
12102
12185
  "isStatic": false,
12103
12186
  "isPublic": true
@@ -12149,6 +12232,11 @@
12149
12232
  "name": "capability",
12150
12233
  "type": "DocumentMoneyWriteCapability",
12151
12234
  "optional": false
12235
+ },
12236
+ {
12237
+ "name": "options",
12238
+ "type": "SmrtSaveOptions",
12239
+ "optional": true
12152
12240
  }
12153
12241
  ],
12154
12242
  "returnType": "Promise<this>",
@@ -12760,7 +12848,13 @@
12760
12848
  "save": {
12761
12849
  "name": "save",
12762
12850
  "async": true,
12763
- "parameters": [],
12851
+ "parameters": [
12852
+ {
12853
+ "name": "options",
12854
+ "type": "SmrtSaveOptions",
12855
+ "optional": true
12856
+ }
12857
+ ],
12764
12858
  "returnType": "Promise<this>",
12765
12859
  "isStatic": false,
12766
12860
  "isPublic": true
@@ -12812,6 +12906,11 @@
12812
12906
  "name": "capability",
12813
12907
  "type": "DocumentMoneyWriteCapability",
12814
12908
  "optional": false
12909
+ },
12910
+ {
12911
+ "name": "options",
12912
+ "type": "SmrtSaveOptions",
12913
+ "optional": true
12815
12914
  }
12816
12915
  ],
12817
12916
  "returnType": "Promise<this>",
@@ -13403,7 +13502,13 @@
13403
13502
  "save": {
13404
13503
  "name": "save",
13405
13504
  "async": true,
13406
- "parameters": [],
13505
+ "parameters": [
13506
+ {
13507
+ "name": "options",
13508
+ "type": "SmrtSaveOptions",
13509
+ "optional": true
13510
+ }
13511
+ ],
13407
13512
  "returnType": "Promise<this>",
13408
13513
  "isStatic": false,
13409
13514
  "isPublic": true
@@ -13455,6 +13560,11 @@
13455
13560
  "name": "capability",
13456
13561
  "type": "DocumentMoneyWriteCapability",
13457
13562
  "optional": false
13563
+ },
13564
+ {
13565
+ "name": "options",
13566
+ "type": "SmrtSaveOptions",
13567
+ "optional": true
13458
13568
  }
13459
13569
  ],
13460
13570
  "returnType": "Promise<this>",
@@ -14062,7 +14172,13 @@
14062
14172
  "save": {
14063
14173
  "name": "save",
14064
14174
  "async": true,
14065
- "parameters": [],
14175
+ "parameters": [
14176
+ {
14177
+ "name": "options",
14178
+ "type": "SmrtSaveOptions",
14179
+ "optional": true
14180
+ }
14181
+ ],
14066
14182
  "returnType": "Promise<this>",
14067
14183
  "isStatic": false,
14068
14184
  "isPublic": true
@@ -14114,6 +14230,11 @@
14114
14230
  "name": "capability",
14115
14231
  "type": "DocumentMoneyWriteCapability",
14116
14232
  "optional": false
14233
+ },
14234
+ {
14235
+ "name": "options",
14236
+ "type": "SmrtSaveOptions",
14237
+ "optional": true
14117
14238
  }
14118
14239
  ],
14119
14240
  "returnType": "Promise<this>",
@@ -14698,7 +14819,13 @@
14698
14819
  "save": {
14699
14820
  "name": "save",
14700
14821
  "async": true,
14701
- "parameters": [],
14822
+ "parameters": [
14823
+ {
14824
+ "name": "options",
14825
+ "type": "SmrtSaveOptions",
14826
+ "optional": true
14827
+ }
14828
+ ],
14702
14829
  "returnType": "Promise<this>",
14703
14830
  "isStatic": false,
14704
14831
  "isPublic": true
@@ -14750,6 +14877,11 @@
14750
14877
  "name": "capability",
14751
14878
  "type": "DocumentMoneyWriteCapability",
14752
14879
  "optional": false
14880
+ },
14881
+ {
14882
+ "name": "options",
14883
+ "type": "SmrtSaveOptions",
14884
+ "optional": true
14753
14885
  }
14754
14886
  ],
14755
14887
  "returnType": "Promise<this>",
@@ -15454,7 +15586,13 @@
15454
15586
  "save": {
15455
15587
  "name": "save",
15456
15588
  "async": true,
15457
- "parameters": [],
15589
+ "parameters": [
15590
+ {
15591
+ "name": "options",
15592
+ "type": "SmrtSaveOptions",
15593
+ "optional": true
15594
+ }
15595
+ ],
15458
15596
  "returnType": "Promise<this>",
15459
15597
  "isStatic": false,
15460
15598
  "isPublic": true
@@ -15506,6 +15644,11 @@
15506
15644
  "name": "capability",
15507
15645
  "type": "DocumentMoneyWriteCapability",
15508
15646
  "optional": false
15647
+ },
15648
+ {
15649
+ "name": "options",
15650
+ "type": "SmrtSaveOptions",
15651
+ "optional": true
15509
15652
  }
15510
15653
  ],
15511
15654
  "returnType": "Promise<this>",
@@ -15992,7 +16135,13 @@
15992
16135
  "save": {
15993
16136
  "name": "save",
15994
16137
  "async": true,
15995
- "parameters": [],
16138
+ "parameters": [
16139
+ {
16140
+ "name": "options",
16141
+ "type": "SmrtSaveOptions",
16142
+ "optional": true
16143
+ }
16144
+ ],
15996
16145
  "returnType": "Promise<this>",
15997
16146
  "isStatic": false,
15998
16147
  "isPublic": true
@@ -16005,6 +16154,11 @@
16005
16154
  "name": "capability",
16006
16155
  "type": "DocumentMoneyWriteCapability",
16007
16156
  "optional": false
16157
+ },
16158
+ {
16159
+ "name": "options",
16160
+ "type": "SmrtSaveOptions",
16161
+ "optional": true
16008
16162
  }
16009
16163
  ],
16010
16164
  "returnType": "Promise<this>",
@@ -16858,7 +17012,13 @@
16858
17012
  "save": {
16859
17013
  "name": "save",
16860
17014
  "async": true,
16861
- "parameters": [],
17015
+ "parameters": [
17016
+ {
17017
+ "name": "_options",
17018
+ "type": "SmrtSaveOptions",
17019
+ "optional": true
17020
+ }
17021
+ ],
16862
17022
  "returnType": "Promise<this>",
16863
17023
  "isStatic": false,
16864
17024
  "isPublic": true
@@ -16888,6 +17048,11 @@
16888
17048
  "name": "capability",
16889
17049
  "type": "DocumentMoneyWriteCapability",
16890
17050
  "optional": false
17051
+ },
17052
+ {
17053
+ "name": "options",
17054
+ "type": "SmrtSaveOptions",
17055
+ "optional": true
16891
17056
  }
16892
17057
  ],
16893
17058
  "returnType": "Promise<this>",
@@ -17254,7 +17419,13 @@
17254
17419
  "save": {
17255
17420
  "name": "save",
17256
17421
  "async": true,
17257
- "parameters": [],
17422
+ "parameters": [
17423
+ {
17424
+ "name": "options",
17425
+ "type": "SmrtSaveOptions",
17426
+ "optional": true
17427
+ }
17428
+ ],
17258
17429
  "returnType": "Promise<this>",
17259
17430
  "isStatic": false,
17260
17431
  "isPublic": true
@@ -17539,7 +17710,13 @@
17539
17710
  "save": {
17540
17711
  "name": "save",
17541
17712
  "async": true,
17542
- "parameters": [],
17713
+ "parameters": [
17714
+ {
17715
+ "name": "options",
17716
+ "type": "SmrtSaveOptions",
17717
+ "optional": true
17718
+ }
17719
+ ],
17543
17720
  "returnType": "Promise<this>",
17544
17721
  "isStatic": false,
17545
17722
  "isPublic": true
@@ -19163,7 +19340,13 @@
19163
19340
  "save": {
19164
19341
  "name": "save",
19165
19342
  "async": true,
19166
- "parameters": [],
19343
+ "parameters": [
19344
+ {
19345
+ "name": "options",
19346
+ "type": "SmrtSaveOptions",
19347
+ "optional": true
19348
+ }
19349
+ ],
19167
19350
  "returnType": "Promise<this>",
19168
19351
  "isStatic": false,
19169
19352
  "isPublic": true
@@ -19176,6 +19359,11 @@
19176
19359
  "name": "capability",
19177
19360
  "type": "DocumentMoneyWriteCapability",
19178
19361
  "optional": false
19362
+ },
19363
+ {
19364
+ "name": "options",
19365
+ "type": "SmrtSaveOptions",
19366
+ "optional": true
19179
19367
  }
19180
19368
  ],
19181
19369
  "returnType": "Promise<this>",
@@ -20071,7 +20259,13 @@
20071
20259
  "save": {
20072
20260
  "name": "save",
20073
20261
  "async": true,
20074
- "parameters": [],
20262
+ "parameters": [
20263
+ {
20264
+ "name": "options",
20265
+ "type": "SmrtSaveOptions",
20266
+ "optional": true
20267
+ }
20268
+ ],
20075
20269
  "returnType": "Promise<this>",
20076
20270
  "isStatic": false,
20077
20271
  "isPublic": true
@@ -20084,6 +20278,11 @@
20084
20278
  "name": "capability",
20085
20279
  "type": "DocumentMoneyWriteCapability",
20086
20280
  "optional": false
20281
+ },
20282
+ {
20283
+ "name": "options",
20284
+ "type": "SmrtSaveOptions",
20285
+ "optional": true
20087
20286
  }
20088
20287
  ],
20089
20288
  "returnType": "Promise<this>",
@@ -20723,7 +20922,13 @@
20723
20922
  "save": {
20724
20923
  "name": "save",
20725
20924
  "async": true,
20726
- "parameters": [],
20925
+ "parameters": [
20926
+ {
20927
+ "name": "options",
20928
+ "type": "SmrtSaveOptions",
20929
+ "optional": true
20930
+ }
20931
+ ],
20727
20932
  "returnType": "Promise<this>",
20728
20933
  "isStatic": false,
20729
20934
  "isPublic": true
@@ -21228,7 +21433,13 @@
21228
21433
  "save": {
21229
21434
  "name": "save",
21230
21435
  "async": true,
21231
- "parameters": [],
21436
+ "parameters": [
21437
+ {
21438
+ "name": "options",
21439
+ "type": "SmrtSaveOptions",
21440
+ "optional": true
21441
+ }
21442
+ ],
21232
21443
  "returnType": "Promise<this>",
21233
21444
  "isStatic": false,
21234
21445
  "isPublic": true
@@ -21863,7 +22074,13 @@
21863
22074
  "save": {
21864
22075
  "name": "save",
21865
22076
  "async": true,
21866
- "parameters": [],
22077
+ "parameters": [
22078
+ {
22079
+ "name": "options",
22080
+ "type": "SmrtSaveOptions",
22081
+ "optional": true
22082
+ }
22083
+ ],
21867
22084
  "returnType": "Promise<this>",
21868
22085
  "isStatic": false,
21869
22086
  "isPublic": true
@@ -22479,7 +22696,13 @@
22479
22696
  "save": {
22480
22697
  "name": "save",
22481
22698
  "async": true,
22482
- "parameters": [],
22699
+ "parameters": [
22700
+ {
22701
+ "name": "options",
22702
+ "type": "SmrtSaveOptions",
22703
+ "optional": true
22704
+ }
22705
+ ],
22483
22706
  "returnType": "Promise<this>",
22484
22707
  "isStatic": false,
22485
22708
  "isPublic": true
@@ -22718,7 +22941,13 @@
22718
22941
  "save": {
22719
22942
  "name": "save",
22720
22943
  "async": true,
22721
- "parameters": [],
22944
+ "parameters": [
22945
+ {
22946
+ "name": "_options",
22947
+ "type": "SmrtSaveOptions",
22948
+ "optional": true
22949
+ }
22950
+ ],
22722
22951
  "returnType": "Promise<this>",
22723
22952
  "isStatic": false,
22724
22953
  "isPublic": true
@@ -22732,6 +22961,11 @@
22732
22961
  "type": "any",
22733
22962
  "optional": false,
22734
22963
  "typeUnresolved": true
22964
+ },
22965
+ {
22966
+ "name": "options",
22967
+ "type": "SmrtSaveOptions",
22968
+ "optional": true
22735
22969
  }
22736
22970
  ],
22737
22971
  "returnType": "Promise<this>",
@@ -22931,7 +23165,13 @@
22931
23165
  "save": {
22932
23166
  "name": "save",
22933
23167
  "async": true,
22934
- "parameters": [],
23168
+ "parameters": [
23169
+ {
23170
+ "name": "options",
23171
+ "type": "SmrtSaveOptions",
23172
+ "optional": true
23173
+ }
23174
+ ],
22935
23175
  "returnType": "Promise<this>",
22936
23176
  "isStatic": false,
22937
23177
  "isPublic": true
@@ -23161,7 +23401,13 @@
23161
23401
  "save": {
23162
23402
  "name": "save",
23163
23403
  "async": true,
23164
- "parameters": [],
23404
+ "parameters": [
23405
+ {
23406
+ "name": "options",
23407
+ "type": "SmrtSaveOptions",
23408
+ "optional": true
23409
+ }
23410
+ ],
23165
23411
  "returnType": "Promise<this>",
23166
23412
  "isStatic": false,
23167
23413
  "isPublic": true
@@ -23387,7 +23633,13 @@
23387
23633
  "save": {
23388
23634
  "name": "save",
23389
23635
  "async": true,
23390
- "parameters": [],
23636
+ "parameters": [
23637
+ {
23638
+ "name": "options",
23639
+ "type": "SmrtSaveOptions",
23640
+ "optional": true
23641
+ }
23642
+ ],
23391
23643
  "returnType": "Promise<this>",
23392
23644
  "isStatic": false,
23393
23645
  "isPublic": true
@@ -2,7 +2,7 @@
2
2
  * Contract model with STI for different contract types
3
3
  * @packageDocumentation
4
4
  */
5
- import { type Meta, SmrtObject } from '@happyvertical/smrt-core';
5
+ import { type Meta, SmrtObject, type SmrtSaveOptions } from '@happyvertical/smrt-core';
6
6
  import type { DatabaseInterface } from '@happyvertical/smrt-core/migrations';
7
7
  import { type DocumentMoneyReadRebindCapability, type DocumentMoneyWriteCapability } from '../document-money-internal.js';
8
8
  import { type ContractOptions, ContractStatus, ContractType, type LicenseSaleOptions, type PurchaseContractOptions, type PurchaseOrderOptions, type SalesContractOptions, type TaxRegistrationOptions } from '../types/index.js';
@@ -170,14 +170,14 @@ export declare class Contract extends SmrtObject {
170
170
  * Validate the amounts and the status transition before persisting, then
171
171
  * save. Inherited by every STI subtype (Estimate/Order/Lease/.../LicenseSale),
172
172
  * so a forged `status` on any of them is caught here. LicenseSale layers its
173
- * own rights-immutability guard on top via `super.save()`. See S5 audit
173
+ * own rights-immutability guard on top via `super.save(options)`. See S5 audit
174
174
  * #1390.
175
175
  *
176
176
  * `subtotal` / `taxAmount` / `totalAmount` are mass-assignable on the
177
177
  * generated create/update routes, so the minor-units check runs on every
178
178
  * write surface (#2401).
179
179
  */
180
- save(): Promise<this>;
180
+ save(options?: SmrtSaveOptions): Promise<this>;
181
181
  /** Received purchase monetary history cannot be deleted. */
182
182
  delete(options?: {
183
183
  expectedUpdatedAt?: Date | string;
@@ -187,7 +187,7 @@ export declare class Contract extends SmrtObject {
187
187
  expectedUpdatedAt?: Date | string;
188
188
  }): Promise<void>;
189
189
  /** @internal Contract aggregate persistence only. */
190
- saveDerived(capability: DocumentMoneyWriteCapability): Promise<this>;
190
+ saveDerived(capability: DocumentMoneyWriteCapability, options?: SmrtSaveOptions): Promise<this>;
191
191
  /**
192
192
  * Reject an illegal status flip done via raw assignment. No-op transitions
193
193
  * and brand-new rows are always allowed.
@@ -490,7 +490,7 @@ export declare class LicenseSale extends SalesContract {
490
490
  * caller transitions to `ACCEPTED` and saves — `validateImmutable`
491
491
  * picks that up post-save on the next call.
492
492
  */
493
- save(): Promise<this>;
493
+ save(options?: SmrtSaveOptions): Promise<this>;
494
494
  /**
495
495
  * Compare the current rights against the captured snapshot
496
496
  * (populated either at load time by `initialize` or at first