@happyvertical/smrt-commerce 0.57.36 → 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.
- package/dist/allocation-integrity.d.ts +1 -1
- package/dist/allocation-integrity.d.ts.map +1 -1
- package/dist/chunks/{ContractLineItemCollection-DKcR46vL.js → ContractLineItemCollection-D74LbDOI.js} +8 -8
- package/dist/chunks/ContractLineItemCollection-D74LbDOI.js.map +1 -0
- package/dist/chunks/{DocumentTaxCollection-BjY9L6lc.js → DocumentTaxCollection-BmKyJGZi.js} +30 -30
- package/dist/chunks/DocumentTaxCollection-BmKyJGZi.js.map +1 -0
- package/dist/chunks/{InvoiceCollection-C50Hsu6G.js → InvoiceCollection-BPEzXaKm.js} +19 -14
- package/dist/chunks/InvoiceCollection-BPEzXaKm.js.map +1 -0
- package/dist/chunks/{TaxCodeCollection-CT09VQ9n.js → TaxCodeCollection-DpQeIqP4.js} +4 -4
- package/dist/chunks/TaxCodeCollection-DpQeIqP4.js.map +1 -0
- package/dist/chunks/{TaxComponentCollection-D8sFp8ZD.js → TaxComponentCollection-wFGWOaxy.js} +13 -8
- package/dist/chunks/TaxComponentCollection-wFGWOaxy.js.map +1 -0
- package/dist/chunks/{allocation-integrity-DrFgfSMd.js → allocation-integrity-DgnPec2a.js} +8 -8
- package/dist/chunks/allocation-integrity-DgnPec2a.js.map +1 -0
- package/dist/chunks/{contract-money-Cnezm9sA.js → contract-money-BxvY2Kcp.js} +14 -14
- package/dist/chunks/contract-money-BxvY2Kcp.js.map +1 -0
- package/dist/chunks/{invoice-posting-Dx-mfaRX.js → invoice-posting-C1q3CIYz.js} +3 -3
- package/dist/chunks/{invoice-posting-Dx-mfaRX.js.map → invoice-posting-C1q3CIYz.js.map} +1 -1
- package/dist/chunks/{retention-accounting-CvfeisFJ.js → retention-accounting-BAKsmbwJ.js} +18 -13
- package/dist/chunks/retention-accounting-BAKsmbwJ.js.map +1 -0
- package/dist/chunks/{tenant-money-barrier-DTELupG0.js → tenant-money-barrier-j1m0r6pe.js} +5 -5
- package/dist/chunks/tenant-money-barrier-j1m0r6pe.js.map +1 -0
- package/dist/contract-money.d.ts +3 -2
- package/dist/contract-money.d.ts.map +1 -1
- package/dist/document-money.d.ts +3 -2
- package/dist/document-money.d.ts.map +1 -1
- package/dist/index.js +23 -23
- package/dist/index.js.map +1 -1
- package/dist/invoices.js +1 -1
- package/dist/manifest.json +280 -28
- package/dist/models/Contract.d.ts +5 -5
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/ContractLineItem.d.ts +3 -3
- package/dist/models/ContractLineItem.d.ts.map +1 -1
- package/dist/models/DocumentTax.d.ts +3 -3
- package/dist/models/DocumentTax.d.ts.map +1 -1
- package/dist/models/Fulfillment.d.ts +2 -2
- package/dist/models/Fulfillment.d.ts.map +1 -1
- package/dist/models/FulfillmentLineItem.d.ts +2 -2
- package/dist/models/FulfillmentLineItem.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts +3 -3
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/InvoiceLineItem.d.ts +3 -3
- package/dist/models/InvoiceLineItem.d.ts.map +1 -1
- package/dist/models/Payment.d.ts +2 -2
- package/dist/models/Payment.d.ts.map +1 -1
- package/dist/models/PaymentAllocation.d.ts +2 -2
- package/dist/models/PaymentAllocation.d.ts.map +1 -1
- package/dist/models/PaymentIntent.d.ts +2 -2
- package/dist/models/PaymentIntent.d.ts.map +1 -1
- package/dist/models/Payout.d.ts +2 -2
- package/dist/models/Payout.d.ts.map +1 -1
- package/dist/models/PurchasePriceObservation.d.ts +3 -3
- package/dist/models/PurchasePriceObservation.d.ts.map +1 -1
- package/dist/models/TaxCode.d.ts +2 -2
- package/dist/models/TaxCode.d.ts.map +1 -1
- package/dist/models/TaxComponent.d.ts +2 -2
- package/dist/models/TaxComponent.d.ts.map +1 -1
- package/dist/models/TaxSettings.d.ts +2 -2
- package/dist/models/TaxSettings.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +120 -21
- package/package.json +16 -16
- package/dist/chunks/ContractLineItemCollection-DKcR46vL.js.map +0 -1
- package/dist/chunks/DocumentTaxCollection-BjY9L6lc.js.map +0 -1
- package/dist/chunks/InvoiceCollection-C50Hsu6G.js.map +0 -1
- package/dist/chunks/TaxCodeCollection-CT09VQ9n.js.map +0 -1
- package/dist/chunks/TaxComponentCollection-D8sFp8ZD.js.map +0 -1
- package/dist/chunks/allocation-integrity-DrFgfSMd.js.map +0 -1
- package/dist/chunks/contract-money-Cnezm9sA.js.map +0 -1
- package/dist/chunks/retention-accounting-CvfeisFJ.js.map +0 -1
- package/dist/chunks/tenant-money-barrier-DTELupG0.js.map +0 -1
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-commerce",
|
|
6
|
-
"packageVersion": "0.57.
|
|
6
|
+
"packageVersion": "0.57.38",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "37c07eca3483836a81c2a3ec782216efd083b51a05915594ac27c08e86047a8a",
|
|
11
|
+
"packageJson": "c5c5f2be98ceecc28cd9ef5f4ec00935f7b2f87993caa8a53d42c98effd3bf0d",
|
|
12
12
|
"agents": "8fae989030badeabdb15109fab804aa7910c01570d449046c24a04678fe432a7",
|
|
13
13
|
"moduleDoc:agents/customer-vendor-ui.md": "2b22e519411a16d8c493496fc168da77b9acd25f6077ea8fbac00cfee3a3501c",
|
|
14
14
|
"moduleDoc:README.md": "beb2fada61d0babc7aa0528b883a9d47d6c827d876ace1cce04a908338fa01f8",
|
|
@@ -3868,13 +3868,17 @@
|
|
|
3868
3868
|
{
|
|
3869
3869
|
"name": "save",
|
|
3870
3870
|
"async": true,
|
|
3871
|
+
"params": [
|
|
3872
|
+
"options?: SmrtSaveOptions"
|
|
3873
|
+
],
|
|
3871
3874
|
"returns": "Promise<this>"
|
|
3872
3875
|
},
|
|
3873
3876
|
{
|
|
3874
3877
|
"name": "saveDerived",
|
|
3875
3878
|
"async": true,
|
|
3876
3879
|
"params": [
|
|
3877
|
-
"capability: DocumentMoneyWriteCapability"
|
|
3880
|
+
"capability: DocumentMoneyWriteCapability",
|
|
3881
|
+
"options?: SmrtSaveOptions"
|
|
3878
3882
|
],
|
|
3879
3883
|
"returns": "Promise<this>"
|
|
3880
3884
|
}
|
|
@@ -4383,13 +4387,17 @@
|
|
|
4383
4387
|
{
|
|
4384
4388
|
"name": "save",
|
|
4385
4389
|
"async": true,
|
|
4390
|
+
"params": [
|
|
4391
|
+
"options?: SmrtSaveOptions"
|
|
4392
|
+
],
|
|
4386
4393
|
"returns": "Promise<this>"
|
|
4387
4394
|
},
|
|
4388
4395
|
{
|
|
4389
4396
|
"name": "saveDerived",
|
|
4390
4397
|
"async": true,
|
|
4391
4398
|
"params": [
|
|
4392
|
-
"capability: DocumentMoneyWriteCapability"
|
|
4399
|
+
"capability: DocumentMoneyWriteCapability",
|
|
4400
|
+
"options?: SmrtSaveOptions"
|
|
4393
4401
|
],
|
|
4394
4402
|
"returns": "Promise<this>"
|
|
4395
4403
|
}
|
|
@@ -4805,13 +4813,17 @@
|
|
|
4805
4813
|
{
|
|
4806
4814
|
"name": "save",
|
|
4807
4815
|
"async": true,
|
|
4816
|
+
"params": [
|
|
4817
|
+
"options?: SmrtSaveOptions"
|
|
4818
|
+
],
|
|
4808
4819
|
"returns": "Promise<this>"
|
|
4809
4820
|
},
|
|
4810
4821
|
{
|
|
4811
4822
|
"name": "saveDerived",
|
|
4812
4823
|
"async": true,
|
|
4813
4824
|
"params": [
|
|
4814
|
-
"capability: DocumentMoneyWriteCapability"
|
|
4825
|
+
"capability: DocumentMoneyWriteCapability",
|
|
4826
|
+
"options?: SmrtSaveOptions"
|
|
4815
4827
|
],
|
|
4816
4828
|
"returns": "Promise<this>"
|
|
4817
4829
|
}
|
|
@@ -5226,13 +5238,17 @@
|
|
|
5226
5238
|
{
|
|
5227
5239
|
"name": "save",
|
|
5228
5240
|
"async": true,
|
|
5241
|
+
"params": [
|
|
5242
|
+
"options?: SmrtSaveOptions"
|
|
5243
|
+
],
|
|
5229
5244
|
"returns": "Promise<this>"
|
|
5230
5245
|
},
|
|
5231
5246
|
{
|
|
5232
5247
|
"name": "saveDerived",
|
|
5233
5248
|
"async": true,
|
|
5234
5249
|
"params": [
|
|
5235
|
-
"capability: DocumentMoneyWriteCapability"
|
|
5250
|
+
"capability: DocumentMoneyWriteCapability",
|
|
5251
|
+
"options?: SmrtSaveOptions"
|
|
5236
5252
|
],
|
|
5237
5253
|
"returns": "Promise<this>"
|
|
5238
5254
|
}
|
|
@@ -5735,13 +5751,17 @@
|
|
|
5735
5751
|
{
|
|
5736
5752
|
"name": "save",
|
|
5737
5753
|
"async": true,
|
|
5754
|
+
"params": [
|
|
5755
|
+
"options?: SmrtSaveOptions"
|
|
5756
|
+
],
|
|
5738
5757
|
"returns": "Promise<this>"
|
|
5739
5758
|
},
|
|
5740
5759
|
{
|
|
5741
5760
|
"name": "saveDerived",
|
|
5742
5761
|
"async": true,
|
|
5743
5762
|
"params": [
|
|
5744
|
-
"capability: DocumentMoneyWriteCapability"
|
|
5763
|
+
"capability: DocumentMoneyWriteCapability",
|
|
5764
|
+
"options?: SmrtSaveOptions"
|
|
5745
5765
|
],
|
|
5746
5766
|
"returns": "Promise<this>"
|
|
5747
5767
|
}
|
|
@@ -6244,13 +6264,17 @@
|
|
|
6244
6264
|
{
|
|
6245
6265
|
"name": "save",
|
|
6246
6266
|
"async": true,
|
|
6267
|
+
"params": [
|
|
6268
|
+
"options?: SmrtSaveOptions"
|
|
6269
|
+
],
|
|
6247
6270
|
"returns": "Promise<this>"
|
|
6248
6271
|
},
|
|
6249
6272
|
{
|
|
6250
6273
|
"name": "saveDerived",
|
|
6251
6274
|
"async": true,
|
|
6252
6275
|
"params": [
|
|
6253
|
-
"capability: DocumentMoneyWriteCapability"
|
|
6276
|
+
"capability: DocumentMoneyWriteCapability",
|
|
6277
|
+
"options?: SmrtSaveOptions"
|
|
6254
6278
|
],
|
|
6255
6279
|
"returns": "Promise<this>"
|
|
6256
6280
|
}
|
|
@@ -6753,13 +6777,17 @@
|
|
|
6753
6777
|
{
|
|
6754
6778
|
"name": "save",
|
|
6755
6779
|
"async": true,
|
|
6780
|
+
"params": [
|
|
6781
|
+
"options?: SmrtSaveOptions"
|
|
6782
|
+
],
|
|
6756
6783
|
"returns": "Promise<this>"
|
|
6757
6784
|
},
|
|
6758
6785
|
{
|
|
6759
6786
|
"name": "saveDerived",
|
|
6760
6787
|
"async": true,
|
|
6761
6788
|
"params": [
|
|
6762
|
-
"capability: DocumentMoneyWriteCapability"
|
|
6789
|
+
"capability: DocumentMoneyWriteCapability",
|
|
6790
|
+
"options?: SmrtSaveOptions"
|
|
6763
6791
|
],
|
|
6764
6792
|
"returns": "Promise<this>"
|
|
6765
6793
|
}
|
|
@@ -7262,13 +7290,17 @@
|
|
|
7262
7290
|
{
|
|
7263
7291
|
"name": "save",
|
|
7264
7292
|
"async": true,
|
|
7293
|
+
"params": [
|
|
7294
|
+
"options?: SmrtSaveOptions"
|
|
7295
|
+
],
|
|
7265
7296
|
"returns": "Promise<this>"
|
|
7266
7297
|
},
|
|
7267
7298
|
{
|
|
7268
7299
|
"name": "saveDerived",
|
|
7269
7300
|
"async": true,
|
|
7270
7301
|
"params": [
|
|
7271
|
-
"capability: DocumentMoneyWriteCapability"
|
|
7302
|
+
"capability: DocumentMoneyWriteCapability",
|
|
7303
|
+
"options?: SmrtSaveOptions"
|
|
7272
7304
|
],
|
|
7273
7305
|
"returns": "Promise<this>"
|
|
7274
7306
|
}
|
|
@@ -7785,13 +7817,17 @@
|
|
|
7785
7817
|
{
|
|
7786
7818
|
"name": "save",
|
|
7787
7819
|
"async": true,
|
|
7820
|
+
"params": [
|
|
7821
|
+
"options?: SmrtSaveOptions"
|
|
7822
|
+
],
|
|
7788
7823
|
"returns": "Promise<this>"
|
|
7789
7824
|
},
|
|
7790
7825
|
{
|
|
7791
7826
|
"name": "saveDerived",
|
|
7792
7827
|
"async": true,
|
|
7793
7828
|
"params": [
|
|
7794
|
-
"capability: DocumentMoneyWriteCapability"
|
|
7829
|
+
"capability: DocumentMoneyWriteCapability",
|
|
7830
|
+
"options?: SmrtSaveOptions"
|
|
7795
7831
|
],
|
|
7796
7832
|
"returns": "Promise<this>"
|
|
7797
7833
|
}
|
|
@@ -8294,13 +8330,17 @@
|
|
|
8294
8330
|
{
|
|
8295
8331
|
"name": "save",
|
|
8296
8332
|
"async": true,
|
|
8333
|
+
"params": [
|
|
8334
|
+
"options?: SmrtSaveOptions"
|
|
8335
|
+
],
|
|
8297
8336
|
"returns": "Promise<this>"
|
|
8298
8337
|
},
|
|
8299
8338
|
{
|
|
8300
8339
|
"name": "saveDerived",
|
|
8301
8340
|
"async": true,
|
|
8302
8341
|
"params": [
|
|
8303
|
-
"capability: DocumentMoneyWriteCapability"
|
|
8342
|
+
"capability: DocumentMoneyWriteCapability",
|
|
8343
|
+
"options?: SmrtSaveOptions"
|
|
8304
8344
|
],
|
|
8305
8345
|
"returns": "Promise<this>"
|
|
8306
8346
|
}
|
|
@@ -8816,13 +8856,17 @@
|
|
|
8816
8856
|
{
|
|
8817
8857
|
"name": "save",
|
|
8818
8858
|
"async": true,
|
|
8859
|
+
"params": [
|
|
8860
|
+
"options?: SmrtSaveOptions"
|
|
8861
|
+
],
|
|
8819
8862
|
"returns": "Promise<this>"
|
|
8820
8863
|
},
|
|
8821
8864
|
{
|
|
8822
8865
|
"name": "saveDerived",
|
|
8823
8866
|
"async": true,
|
|
8824
8867
|
"params": [
|
|
8825
|
-
"capability: DocumentMoneyWriteCapability"
|
|
8868
|
+
"capability: DocumentMoneyWriteCapability",
|
|
8869
|
+
"options?: SmrtSaveOptions"
|
|
8826
8870
|
],
|
|
8827
8871
|
"returns": "Promise<this>"
|
|
8828
8872
|
}
|
|
@@ -9326,13 +9370,17 @@
|
|
|
9326
9370
|
{
|
|
9327
9371
|
"name": "save",
|
|
9328
9372
|
"async": true,
|
|
9373
|
+
"params": [
|
|
9374
|
+
"options?: SmrtSaveOptions"
|
|
9375
|
+
],
|
|
9329
9376
|
"returns": "Promise<this>"
|
|
9330
9377
|
},
|
|
9331
9378
|
{
|
|
9332
9379
|
"name": "saveDerived",
|
|
9333
9380
|
"async": true,
|
|
9334
9381
|
"params": [
|
|
9335
|
-
"capability: DocumentMoneyWriteCapability"
|
|
9382
|
+
"capability: DocumentMoneyWriteCapability",
|
|
9383
|
+
"options?: SmrtSaveOptions"
|
|
9336
9384
|
],
|
|
9337
9385
|
"returns": "Promise<this>"
|
|
9338
9386
|
}
|
|
@@ -9936,13 +9984,17 @@
|
|
|
9936
9984
|
{
|
|
9937
9985
|
"name": "save",
|
|
9938
9986
|
"async": true,
|
|
9987
|
+
"params": [
|
|
9988
|
+
"options?: SmrtSaveOptions"
|
|
9989
|
+
],
|
|
9939
9990
|
"returns": "Promise<this>"
|
|
9940
9991
|
},
|
|
9941
9992
|
{
|
|
9942
9993
|
"name": "saveDerived",
|
|
9943
9994
|
"async": true,
|
|
9944
9995
|
"params": [
|
|
9945
|
-
"capability: DocumentMoneyWriteCapability"
|
|
9996
|
+
"capability: DocumentMoneyWriteCapability",
|
|
9997
|
+
"options?: SmrtSaveOptions"
|
|
9946
9998
|
],
|
|
9947
9999
|
"returns": "Promise<this>"
|
|
9948
10000
|
}
|
|
@@ -10452,13 +10504,17 @@
|
|
|
10452
10504
|
{
|
|
10453
10505
|
"name": "save",
|
|
10454
10506
|
"async": true,
|
|
10507
|
+
"params": [
|
|
10508
|
+
"options?: SmrtSaveOptions"
|
|
10509
|
+
],
|
|
10455
10510
|
"returns": "Promise<this>"
|
|
10456
10511
|
},
|
|
10457
10512
|
{
|
|
10458
10513
|
"name": "saveDerived",
|
|
10459
10514
|
"async": true,
|
|
10460
10515
|
"params": [
|
|
10461
|
-
"capability: DocumentMoneyWriteCapability"
|
|
10516
|
+
"capability: DocumentMoneyWriteCapability",
|
|
10517
|
+
"options?: SmrtSaveOptions"
|
|
10462
10518
|
],
|
|
10463
10519
|
"returns": "Promise<this>"
|
|
10464
10520
|
}
|
|
@@ -11103,13 +11159,17 @@
|
|
|
11103
11159
|
{
|
|
11104
11160
|
"name": "save",
|
|
11105
11161
|
"async": true,
|
|
11162
|
+
"params": [
|
|
11163
|
+
"_options?: SmrtSaveOptions"
|
|
11164
|
+
],
|
|
11106
11165
|
"returns": "Promise<this>"
|
|
11107
11166
|
},
|
|
11108
11167
|
{
|
|
11109
11168
|
"name": "saveDerived",
|
|
11110
11169
|
"async": true,
|
|
11111
11170
|
"params": [
|
|
11112
|
-
"capability: DocumentMoneyWriteCapability"
|
|
11171
|
+
"capability: DocumentMoneyWriteCapability",
|
|
11172
|
+
"options?: SmrtSaveOptions"
|
|
11113
11173
|
],
|
|
11114
11174
|
"returns": "Promise<this>"
|
|
11115
11175
|
}
|
|
@@ -11340,6 +11400,9 @@
|
|
|
11340
11400
|
{
|
|
11341
11401
|
"name": "save",
|
|
11342
11402
|
"async": true,
|
|
11403
|
+
"params": [
|
|
11404
|
+
"options?: SmrtSaveOptions"
|
|
11405
|
+
],
|
|
11343
11406
|
"returns": "Promise<this>"
|
|
11344
11407
|
}
|
|
11345
11408
|
],
|
|
@@ -11600,6 +11663,9 @@
|
|
|
11600
11663
|
{
|
|
11601
11664
|
"name": "save",
|
|
11602
11665
|
"async": true,
|
|
11666
|
+
"params": [
|
|
11667
|
+
"options?: SmrtSaveOptions"
|
|
11668
|
+
],
|
|
11603
11669
|
"returns": "Promise<this>"
|
|
11604
11670
|
}
|
|
11605
11671
|
],
|
|
@@ -12809,13 +12875,17 @@
|
|
|
12809
12875
|
{
|
|
12810
12876
|
"name": "save",
|
|
12811
12877
|
"async": true,
|
|
12878
|
+
"params": [
|
|
12879
|
+
"options?: SmrtSaveOptions"
|
|
12880
|
+
],
|
|
12812
12881
|
"returns": "Promise<this>"
|
|
12813
12882
|
},
|
|
12814
12883
|
{
|
|
12815
12884
|
"name": "saveDerived",
|
|
12816
12885
|
"async": true,
|
|
12817
12886
|
"params": [
|
|
12818
|
-
"capability: DocumentMoneyWriteCapability"
|
|
12887
|
+
"capability: DocumentMoneyWriteCapability",
|
|
12888
|
+
"options?: SmrtSaveOptions"
|
|
12819
12889
|
],
|
|
12820
12890
|
"returns": "Promise<this>"
|
|
12821
12891
|
},
|
|
@@ -13495,13 +13565,17 @@
|
|
|
13495
13565
|
{
|
|
13496
13566
|
"name": "save",
|
|
13497
13567
|
"async": true,
|
|
13568
|
+
"params": [
|
|
13569
|
+
"options?: SmrtSaveOptions"
|
|
13570
|
+
],
|
|
13498
13571
|
"returns": "Promise<this>"
|
|
13499
13572
|
},
|
|
13500
13573
|
{
|
|
13501
13574
|
"name": "saveDerived",
|
|
13502
13575
|
"async": true,
|
|
13503
13576
|
"params": [
|
|
13504
|
-
"capability: DocumentMoneyWriteCapability"
|
|
13577
|
+
"capability: DocumentMoneyWriteCapability",
|
|
13578
|
+
"options?: SmrtSaveOptions"
|
|
13505
13579
|
],
|
|
13506
13580
|
"returns": "Promise<this>"
|
|
13507
13581
|
}
|
|
@@ -14003,6 +14077,9 @@
|
|
|
14003
14077
|
{
|
|
14004
14078
|
"name": "save",
|
|
14005
14079
|
"async": true,
|
|
14080
|
+
"params": [
|
|
14081
|
+
"options?: SmrtSaveOptions"
|
|
14082
|
+
],
|
|
14006
14083
|
"returns": "Promise<this>"
|
|
14007
14084
|
},
|
|
14008
14085
|
{
|
|
@@ -14331,6 +14408,9 @@
|
|
|
14331
14408
|
{
|
|
14332
14409
|
"name": "save",
|
|
14333
14410
|
"async": true,
|
|
14411
|
+
"params": [
|
|
14412
|
+
"options?: SmrtSaveOptions"
|
|
14413
|
+
],
|
|
14334
14414
|
"returns": "Promise<this>"
|
|
14335
14415
|
}
|
|
14336
14416
|
],
|
|
@@ -14972,6 +15052,9 @@
|
|
|
14972
15052
|
{
|
|
14973
15053
|
"name": "save",
|
|
14974
15054
|
"async": true,
|
|
15055
|
+
"params": [
|
|
15056
|
+
"options?: SmrtSaveOptions"
|
|
15057
|
+
],
|
|
14975
15058
|
"returns": "Promise<this>"
|
|
14976
15059
|
},
|
|
14977
15060
|
{
|
|
@@ -15478,6 +15561,9 @@
|
|
|
15478
15561
|
{
|
|
15479
15562
|
"name": "save",
|
|
15480
15563
|
"async": true,
|
|
15564
|
+
"params": [
|
|
15565
|
+
"options?: SmrtSaveOptions"
|
|
15566
|
+
],
|
|
15481
15567
|
"returns": "Promise<this>"
|
|
15482
15568
|
},
|
|
15483
15569
|
{
|
|
@@ -15678,13 +15764,17 @@
|
|
|
15678
15764
|
{
|
|
15679
15765
|
"name": "save",
|
|
15680
15766
|
"async": true,
|
|
15767
|
+
"params": [
|
|
15768
|
+
"_options?: SmrtSaveOptions"
|
|
15769
|
+
],
|
|
15681
15770
|
"returns": "Promise<this>"
|
|
15682
15771
|
},
|
|
15683
15772
|
{
|
|
15684
15773
|
"name": "saveObserved",
|
|
15685
15774
|
"async": true,
|
|
15686
15775
|
"params": [
|
|
15687
|
-
"capability: any"
|
|
15776
|
+
"capability: any",
|
|
15777
|
+
"options?: SmrtSaveOptions"
|
|
15688
15778
|
],
|
|
15689
15779
|
"returns": "Promise<this>"
|
|
15690
15780
|
}
|
|
@@ -15798,6 +15888,9 @@
|
|
|
15798
15888
|
{
|
|
15799
15889
|
"name": "save",
|
|
15800
15890
|
"async": true,
|
|
15891
|
+
"params": [
|
|
15892
|
+
"options?: SmrtSaveOptions"
|
|
15893
|
+
],
|
|
15801
15894
|
"returns": "Promise<this>"
|
|
15802
15895
|
}
|
|
15803
15896
|
],
|
|
@@ -15978,6 +16071,9 @@
|
|
|
15978
16071
|
{
|
|
15979
16072
|
"name": "save",
|
|
15980
16073
|
"async": true,
|
|
16074
|
+
"params": [
|
|
16075
|
+
"options?: SmrtSaveOptions"
|
|
16076
|
+
],
|
|
15981
16077
|
"returns": "Promise<this>"
|
|
15982
16078
|
}
|
|
15983
16079
|
],
|
|
@@ -16167,6 +16263,9 @@
|
|
|
16167
16263
|
{
|
|
16168
16264
|
"name": "save",
|
|
16169
16265
|
"async": true,
|
|
16266
|
+
"params": [
|
|
16267
|
+
"options?: SmrtSaveOptions"
|
|
16268
|
+
],
|
|
16170
16269
|
"returns": "Promise<this>"
|
|
16171
16270
|
}
|
|
16172
16271
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.38",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
|
|
6
6
|
"type": "module",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@happyvertical/accounting": "^0.
|
|
67
|
-
"@happyvertical/payments": "^0.
|
|
68
|
-
"@happyvertical/smrt-agents": "0.57.
|
|
69
|
-
"@happyvertical/smrt-core": "0.57.
|
|
70
|
-
"@happyvertical/smrt-jobs": "0.57.
|
|
71
|
-
"@happyvertical/smrt-ledgers": "0.57.
|
|
72
|
-
"@happyvertical/smrt-products": "0.57.
|
|
73
|
-
"@happyvertical/smrt-reports": "0.57.
|
|
74
|
-
"@happyvertical/smrt-subscriptions": "0.57.
|
|
75
|
-
"@happyvertical/smrt-svelte": "0.57.
|
|
76
|
-
"@happyvertical/smrt-tenancy": "0.57.
|
|
77
|
-
"@happyvertical/smrt-types": "0.57.
|
|
78
|
-
"@happyvertical/smrt-ui": "0.57.
|
|
79
|
-
"@happyvertical/sql": "^0.
|
|
66
|
+
"@happyvertical/accounting": "^0.110.0",
|
|
67
|
+
"@happyvertical/payments": "^0.110.0",
|
|
68
|
+
"@happyvertical/smrt-agents": "0.57.38",
|
|
69
|
+
"@happyvertical/smrt-core": "0.57.38",
|
|
70
|
+
"@happyvertical/smrt-jobs": "0.57.38",
|
|
71
|
+
"@happyvertical/smrt-ledgers": "0.57.38",
|
|
72
|
+
"@happyvertical/smrt-products": "0.57.38",
|
|
73
|
+
"@happyvertical/smrt-reports": "0.57.38",
|
|
74
|
+
"@happyvertical/smrt-subscriptions": "0.57.38",
|
|
75
|
+
"@happyvertical/smrt-svelte": "0.57.38",
|
|
76
|
+
"@happyvertical/smrt-tenancy": "0.57.38",
|
|
77
|
+
"@happyvertical/smrt-types": "0.57.38",
|
|
78
|
+
"@happyvertical/smrt-ui": "0.57.38",
|
|
79
|
+
"@happyvertical/sql": "^0.110.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"svelte": "^5.57.0"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@happyvertical/smrt-vitest": "0.57.
|
|
90
|
+
"@happyvertical/smrt-vitest": "0.57.38",
|
|
91
91
|
"@sveltejs/package": "^2.5.8",
|
|
92
92
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
93
93
|
"@testing-library/jest-dom": "^7.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContractLineItemCollection-DKcR46vL.js","names":["field"],"sources":["../../src/models/ContractLineItem.ts","../../src/collections/ContractLineItemCollection.ts"],"sourcesContent":["/**\n * ContractLineItem model - individual items on a contract\n * @packageDocumentation\n */\n\nimport {\n crossPackageRef,\n field,\n foreignKey,\n SmrtObject,\n smrt,\n} from '@happyvertical/smrt-core';\nimport type { DatabaseInterface } from '@happyvertical/smrt-core/migrations';\nimport { TenantScoped, tenantId } from '@happyvertical/smrt-tenancy';\nimport {\n DOCUMENT_MONEY_READ_REBIND,\n DOCUMENT_MONEY_WRITE,\n type DocumentMoneyReadRebindCapability,\n type DocumentMoneyWriteCapability,\n} from '../document-money-internal.js';\nimport { MoneyValidationError } from '../money.js';\nimport type {\n ContractLineItemOptions,\n ContractTaxComponentSnapshot,\n} from '../types/index.js';\n\n/**\n * ContractLineItem represents a single line item on a contract.\n *\n * Line items contain the details of what is being sold/purchased,\n * including quantity, pricing, and optional subscription details.\n *\n * @example\n * ```typescript\n * const lineItem = await lineItems.create({\n * contractId: order.id,\n * description: 'Widget Pro',\n * quantity: 10,\n * unitPrice: 4999, // $49.99 in cents\n * taxRate: 0.08\n * });\n * ```\n */\n@TenantScoped({ mode: 'optional' })\n@smrt({\n tableStrategy: 'sti',\n api: { include: ['list', 'get', 'create', 'update', 'delete'] },\n mcp: { include: ['list', 'get'] },\n cli: { skipApiCheck: true },\n})\nexport class ContractLineItem extends SmrtObject { static __smrtPackage__ = \"@happyvertical/smrt-commerce\";\n /** @internal Collection read guard returns this snapshot on its root DB. */\n rebindMoneyRead(\n capability: DocumentMoneyReadRebindCapability,\n db: DatabaseInterface,\n ): this {\n if (capability !== DOCUMENT_MONEY_READ_REBIND)\n throw new Error(\n 'Contract line read rebinding requires the owning capability',\n );\n this._db = db;\n this.options.db = db;\n return this;\n }\n\n /**\n * Tenant ID for multi-tenant isolation\n * Nullable to support both tenant-scoped and global line items\n */\n @tenantId({ nullable: true })\n tenantId: string | null = null;\n\n /**\n * Parent contract\n */\n @field({ description: 'The order, quote or agreement this line belongs to.' })\n @foreignKey('Contract', { role: 'items' })\n contractId: string = '';\n\n /**\n * Item description\n */\n @field({ description: 'What is being sold or bought on this line.' })\n description: string = '';\n\n /**\n * Quantity ordered. Decimal on purpose — contracts price fractional\n * quantities (hours, weight, bandwidth), as do invoice line items.\n */\n @field({ description: 'How many.' })\n quantity: number = 1.0;\n\n /**\n * Unit price before discount, in **integer minor units** (cents, satoshis),\n * in the document's pricing mode: tax-inclusive when its `lineAmountType`\n * is `inclusive`.\n *\n * The `= 0` initializer is load-bearing: SMRT maps an integer literal to\n * INTEGER and a decimal literal to DECIMAL. Money is exact, so `$49.99` is\n * `4999` (#2401).\n */\n @field({\n description:\n \"The price of one, before discount; includes tax when the document's prices include tax.\",\n ui: { format: 'money' },\n })\n unitPrice: number = 0;\n\n /**\n * Discount amount (flat, not percentage), in integer minor units (#2401).\n */\n @field({ ui: { format: 'money' } })\n discount: number = 0;\n\n discountType: 'none' | 'percent' | 'amount' = 'none';\n\n @field({ type: 'decimal' })\n discountRate = '0.0';\n\n /**\n * Tax rate as decimal (e.g., 0.08 for 8%). A rate is inherently fractional,\n * so it stays DECIMAL — INTEGER would truncate every meaningful value.\n */\n @field({\n description:\n 'The stored fractional tax rate for this line (0.05 means 5%).',\n })\n taxRate: number = 0.0;\n\n taxMode: 'inherit' | 'override' = 'inherit';\n\n @foreignKey('TaxCode', { nullable: true })\n taxCodeId: string | null = null;\n\n taxCodeCode: string | null = null;\n\n taxCodeName: string | null = null;\n\n taxComponentsJson: string | null = null;\n\n get taxComponents(): ContractTaxComponentSnapshot[] {\n if (this.taxComponentsJson === null) return [];\n try {\n const value: unknown = JSON.parse(this.taxComponentsJson);\n if (!Array.isArray(value)) return [];\n return value.filter(\n (entry): entry is ContractTaxComponentSnapshot =>\n !!entry &&\n typeof entry === 'object' &&\n typeof (entry as ContractTaxComponentSnapshot).taxComponentId ===\n 'string' &&\n typeof (entry as ContractTaxComponentSnapshot).name === 'string' &&\n typeof (entry as ContractTaxComponentSnapshot).percent === 'string' &&\n Number.isSafeInteger(\n (entry as ContractTaxComponentSnapshot).taxMinor,\n ),\n );\n } catch {\n return [];\n }\n }\n\n set taxComponents(value: ContractTaxComponentSnapshot[]) {\n this.taxComponentsJson = JSON.stringify(value);\n }\n\n /** Exact sum of frozen component taxes, in integer minor units. */\n @field({ ui: { format: 'money' } })\n taxAmount = 0;\n\n /** Stable issue/freeze identity, independent of lifecycle updated_at. */\n moneySnapshotId = '';\n\n /**\n * Line amount in integer minor units: net of discount and before tax for\n * `exclusive` / `none` documents, and tax-inclusive for `inclusive` ones;\n * {@link taxAmount} holds the tax. Derived by the Contract money aggregate\n * on every save.\n */\n @field({\n description:\n \"The line amount: net of discount, and including tax only when the document's prices include tax.\",\n ui: { format: 'money' },\n })\n amount: number = 0;\n\n /**\n * Optional product reference (cross-package, plain string)\n */\n @field({\n description: 'The product this line is for, if it is one you list.',\n })\n @crossPackageRef('@happyvertical/smrt-products:Product')\n productId: string = '';\n\n /**\n * SKU or item code\n */\n sku: string = '';\n\n /**\n * Start date (for lease/subscription items)\n */\n startDate: Date | null = null;\n\n /**\n * End date (for lease/subscription items)\n */\n endDate: Date | null = null;\n\n /**\n * Billing period (for subscriptions: 'monthly', 'yearly', etc.)\n */\n billingPeriod: string = '';\n\n /**\n * Sort order within the contract\n */\n sortOrder: number = 0;\n\n constructor(options: ContractLineItemOptions = {}) {\n super(options);\n if (options.tenantId !== undefined) this.tenantId = options.tenantId;\n if (options.contractId !== undefined) this.contractId = options.contractId;\n if (options.description !== undefined)\n this.description = options.description;\n if (options.quantity !== undefined) this.quantity = options.quantity;\n if (options.unitPrice !== undefined) this.unitPrice = options.unitPrice;\n if (options.discount !== undefined) this.discount = options.discount;\n if (options.discountType !== undefined)\n this.discountType = options.discountType;\n if (options.discountRate !== undefined)\n this.discountRate = options.discountRate;\n if (options.taxRate !== undefined) this.taxRate = options.taxRate;\n if (options.taxMode !== undefined) this.taxMode = options.taxMode;\n if (options.taxCodeId !== undefined) this.taxCodeId = options.taxCodeId;\n if (options.taxCodeCode !== undefined)\n this.taxCodeCode = options.taxCodeCode;\n if (options.taxCodeName !== undefined)\n this.taxCodeName = options.taxCodeName;\n if (options.taxComponentsJson !== undefined)\n this.taxComponentsJson = options.taxComponentsJson;\n if (options.taxComponents !== undefined)\n this.taxComponents = structuredClone(options.taxComponents);\n if (options.taxAmount !== undefined) this.taxAmount = options.taxAmount;\n if (options.moneySnapshotId !== undefined)\n this.moneySnapshotId = options.moneySnapshotId;\n if (options.amount !== undefined) this.amount = options.amount;\n if (options.productId !== undefined) this.productId = options.productId;\n if (options.sku !== undefined) this.sku = options.sku;\n if (options.startDate !== undefined) this.startDate = options.startDate;\n if (options.endDate !== undefined) this.endDate = options.endDate;\n if (options.billingPeriod !== undefined)\n this.billingPeriod = options.billingPeriod;\n if (options.sortOrder !== undefined) this.sortOrder = options.sortOrder;\n }\n\n override async initialize(): Promise<this> {\n await super.initialize();\n // A row read from the database must not be old-format money data.\n if (this.isPersisted) {\n const { assertHydratedMoneyRowCurrent } = await import(\n '../upgrade/detect.js'\n );\n await assertHydratedMoneyRowCurrent(this);\n }\n return this;\n }\n\n override async save(): Promise<this> {\n const { saveContractLineItem } = await import('../contract-money.js');\n return (await saveContractLineItem(this)) as this;\n }\n\n /** @internal Contract aggregate persistence only. */\n async saveDerived(capability: DocumentMoneyWriteCapability): Promise<this> {\n if (capability !== DOCUMENT_MONEY_WRITE)\n throw new Error('Contract line money write capability is required');\n // Money is integer minor units: refuse a major-unit price before it can\n // reach the database (#2401), ahead of the aggregate recompute.\n for (const [field, value] of [\n ['unitPrice', this.unitPrice],\n ['discount', this.discount],\n ] as const)\n if (!Number.isSafeInteger(value))\n throw new MoneyValidationError(\n 'UNSAFE_MONEY',\n `Contract line ${field} ${value} must be a safe integer number of minor units`,\n );\n return (await super.save()) as this;\n }\n\n override async delete(\n options: { expectedUpdatedAt?: Date | string } = {},\n ): Promise<void> {\n const { deleteContractLineItem } = await import('../contract-money.js');\n await deleteContractLineItem(this, options);\n }\n\n /** @internal Contract aggregate persistence only. */\n async deleteDerived(\n capability: DocumentMoneyWriteCapability,\n options: { expectedUpdatedAt?: Date | string } = {},\n ): Promise<void> {\n if (capability !== DOCUMENT_MONEY_WRITE)\n throw new Error('Contract line money write capability is required');\n await super.delete(options);\n }\n\n /**\n * Check if this is a subscription/recurring item\n */\n isRecurring(): boolean {\n return !!this.billingPeriod && !!this.startDate;\n }\n\n /**\n * Check if subscription is active\n */\n isSubscriptionActive(): boolean {\n if (!this.isRecurring()) return false;\n if (!this.startDate) return false;\n\n const now = new Date();\n if (now < this.startDate) return false;\n if (this.endDate && now > this.endDate) return false;\n\n return true;\n }\n}\n\nexport default ContractLineItem;\n","/**\n * ContractLineItemCollection - Collection manager for ContractLineItem objects\n * @packageDocumentation\n */\n\nimport {\n SmrtCollection,\n type SmrtListOptions,\n type SmrtObject,\n type SmrtSelectedRow,\n type SmrtSelectField,\n type SmrtStiReadScope,\n type SmrtWhereClause,\n} from '@happyvertical/smrt-core';\nimport {\n getTenantId,\n queryGlobal,\n queryWithGlobals,\n} from '@happyvertical/smrt-tenancy';\nimport { DOCUMENT_MONEY_READ_REBIND } from '../document-money-internal.js';\nimport { ContractLineItem } from '../models/ContractLineItem.js';\nimport { withTenantMoneyCollectionRead } from '../tenant-money-barrier.js';\nimport { assertCommerceMoneySchemaCurrent } from '../upgrade/detect.js';\n\nexport class ContractLineItemCollection extends SmrtCollection<ContractLineItem> {\n static readonly _itemClass = ContractLineItem;\n\n private async withMoneyRead<T>(operation: () => Promise<T>): Promise<T> {\n const rootDb = this.db;\n const tenantId = getTenantId();\n if (!tenantId) {\n // Without a tenant, still refuse a database with old money storage.\n await assertCommerceMoneySchemaCurrent(rootDb);\n return operation();\n }\n const result = await withTenantMoneyCollectionRead(\n rootDb,\n tenantId,\n (boundDb) => this.withDatabase(boundDb, operation),\n );\n if (result instanceof ContractLineItem)\n result.rebindMoneyRead(DOCUMENT_MONEY_READ_REBIND, rootDb);\n else if (Array.isArray(result))\n for (const item of result)\n if (item instanceof ContractLineItem)\n item.rebindMoneyRead(DOCUMENT_MONEY_READ_REBIND, rootDb);\n return result;\n }\n\n override async get(\n filter: string | SmrtWhereClause<ContractLineItem>,\n options: Parameters<SmrtCollection<ContractLineItem>['get']>[1] = {},\n ): Promise<ContractLineItem | null> {\n return this.withMoneyRead(() => super.get(filter, options));\n }\n\n override async list<\n const Select extends readonly SmrtSelectField<ContractLineItem>[],\n >(\n options: Omit<SmrtListOptions<ContractLineItem>, 'select' | 'stiScope'> & {\n select: Select;\n include?: never;\n stiScope: SmrtStiReadScope;\n },\n ): Promise<Record<string, unknown>[]>;\n override async list<\n const Select extends readonly SmrtSelectField<ContractLineItem>[],\n >(\n options: Omit<SmrtListOptions<ContractLineItem>, 'select' | 'stiScope'> & {\n select: Select;\n include?: never;\n stiScope?: undefined;\n },\n ): Promise<SmrtSelectedRow<ContractLineItem, Select>[]>;\n override async list(\n options: Omit<SmrtListOptions<ContractLineItem>, 'select' | 'stiScope'> & {\n select?: undefined;\n stiScope: SmrtStiReadScope;\n },\n ): Promise<SmrtObject[]>;\n override async list(options?: undefined): Promise<ContractLineItem[]>;\n override async list(\n options: Omit<SmrtListOptions<ContractLineItem>, 'select' | 'stiScope'> & {\n select?: undefined;\n stiScope?: undefined;\n },\n ): Promise<ContractLineItem[]>;\n override async list(\n options:\n | (Omit<SmrtListOptions<ContractLineItem>, 'select'> & {\n select?: undefined;\n })\n | undefined,\n ): Promise<SmrtObject[]>;\n override async list(\n options: SmrtListOptions<ContractLineItem> | undefined,\n ): Promise<SmrtObject[] | Record<string, unknown>[]>;\n override async list(\n options: SmrtListOptions<ContractLineItem> = {},\n ): Promise<SmrtObject[] | Record<string, unknown>[]> {\n return this.withMoneyRead(() => super.list(options));\n }\n\n /**\n * Find contract line items by their parent contract.\n *\n * @param contractId - Contract ID\n * @returns Array of contract line items, sorted by sortOrder\n */\n async findByContract(contractId: string): Promise<ContractLineItem[]> {\n return await this.list({\n where: { contractId },\n orderBy: 'sortOrder ASC',\n });\n }\n\n // ============================================================================\n // Tenant Helper Methods\n // ============================================================================\n\n /**\n * Find all contract line items belonging to a specific tenant\n *\n * @param tenantId - Tenant ID\n * @returns Array of contract line items for the tenant\n */\n async findByTenant(tenantId: string): Promise<ContractLineItem[]> {\n return this.list({ where: { tenantId } });\n }\n\n /**\n * Find all global contract line items (not associated with any tenant).\n *\n * Routes through the shared tenant-global helper so it does not throw under\n * an active tenant context (an explicit `tenant_id IS NULL` filter would be\n * flagged as an isolation violation). (#1600)\n *\n * @returns Array of global contract line items\n */\n async findGlobal(): Promise<ContractLineItem[]> {\n return queryGlobal<ContractLineItem>(this);\n }\n\n /**\n * Find contract line items for a tenant including global line items.\n *\n * Fails closed if an active tenant context requests a different tenant's\n * rows; the admin/system path keeps the cross-tenant capability. (#1600)\n *\n * @param tenantId - Tenant ID\n * @returns Array of tenant-specific and global contract line items\n */\n async findWithGlobals(tenantId: string): Promise<ContractLineItem[]> {\n return queryWithGlobals<ContractLineItem>(\n this,\n tenantId,\n 'ContractLineItem.findWithGlobals',\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkDO,IAAM,mBAAN,cAA+B,WAAW;;CAE/C,gBACE,YACA,IACM;EACN,IAAI,eAAe,4BACjB,MAAM,IAAI,MACR,6DACF;EACF,KAAK,MAAM;EACX,KAAK,QAAQ,KAAK;EAClB,OAAO;CACT;CAOA,WAA0B;CAO1B,aAAqB;CAMrB,cAAsB;CAOtB,WAAmB;CAgBnB,YAAoB;CAMpB,WAAmB;CAEnB,eAA8C;CAG9C,eAAe;CAUf,UAAkB;CAElB,UAAkC;CAGlC,YAA2B;CAE3B,cAA6B;CAE7B,cAA6B;CAE7B,oBAAmC;CAEnC,IAAI,gBAAgD;EAClD,IAAI,KAAK,sBAAsB,MAAM,OAAO,CAAC;EAC7C,IAAI;GACF,MAAM,QAAiB,KAAK,MAAM,KAAK,iBAAiB;GACxD,IAAI,CAAC,MAAM,QAAQ,KAAK,GAAG,OAAO,CAAC;GACnC,OAAO,MAAM,QACV,UACC,CAAC,CAAC,SACF,OAAO,UAAU,YACjB,OAAQ,MAAuC,mBAC7C,YACF,OAAQ,MAAuC,SAAS,YACxD,OAAQ,MAAuC,YAAY,YAC3D,OAAO,cACJ,MAAuC,QAC1C,CACJ;EACF,QAAQ;GACN,OAAO,CAAC;EACV;CACF;CAEA,IAAI,cAAc,OAAuC;EACvD,KAAK,oBAAo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