@happyvertical/smrt-commerce 0.43.9 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.43.9",
6
+ "packageVersion": "0.44.0",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "e291b2ea7ddf2cde1d34c66a95f504d4d0ef02c0745e49f55a0f0f90e5c5b528",
11
- "packageJson": "8d09b30c949bf30b297097c2cb0426f041e6c13f986591107380e9bac976e76e",
10
+ "manifest": "26a2f0aa8a3f5402445b53eff6ae5221d742ab7ae488c0ebedddb3b873169848",
11
+ "packageJson": "a648c88190e02df0c43e139d6cb27996fe4e6941a7b460c4634bf0bf4314bc64",
12
12
  "agents": "f035496d82d1652a35ace8a3309637df43ce1aa5093b435c9c642f5f70ace02a"
13
13
  },
14
14
  "exports": [
@@ -1525,6 +1525,7 @@
1525
1525
  ],
1526
1526
  "methods": [
1527
1527
  "_setLoadedRelationship",
1528
+ "claimRevision",
1528
1529
  "classifyConstraintError",
1529
1530
  "clearEmbeddings",
1530
1531
  "delete",
@@ -1571,7 +1572,8 @@
1571
1572
  "toJSON",
1572
1573
  "toPlainObject",
1573
1574
  "toPublicJSON",
1574
- "withDatabase"
1575
+ "withDatabase",
1576
+ "withTransaction"
1575
1577
  ],
1576
1578
  "methodSignatures": [
1577
1579
  {
@@ -1582,6 +1584,14 @@
1582
1584
  ],
1583
1585
  "returns": "void"
1584
1586
  },
1587
+ {
1588
+ "name": "claimRevision",
1589
+ "async": true,
1590
+ "params": [
1591
+ "expectedUpdatedAt: Date | string"
1592
+ ],
1593
+ "returns": "Promise"
1594
+ },
1585
1595
  {
1586
1596
  "name": "classifyConstraintError",
1587
1597
  "static": true,
@@ -1871,6 +1881,14 @@
1871
1881
  "operation: Function"
1872
1882
  ],
1873
1883
  "returns": "Promise<T>"
1884
+ },
1885
+ {
1886
+ "name": "withTransaction",
1887
+ "async": true,
1888
+ "params": [
1889
+ "operation: Function"
1890
+ ],
1891
+ "returns": "Promise<T>"
1874
1892
  }
1875
1893
  ],
1876
1894
  "tenant": {
@@ -2113,6 +2131,7 @@
2113
2131
  ],
2114
2132
  "methods": [
2115
2133
  "_setLoadedRelationship",
2134
+ "claimRevision",
2116
2135
  "classifyConstraintError",
2117
2136
  "clearEmbeddings",
2118
2137
  "delete",
@@ -2159,7 +2178,8 @@
2159
2178
  "toJSON",
2160
2179
  "toPlainObject",
2161
2180
  "toPublicJSON",
2162
- "withDatabase"
2181
+ "withDatabase",
2182
+ "withTransaction"
2163
2183
  ],
2164
2184
  "methodSignatures": [
2165
2185
  {
@@ -2170,6 +2190,14 @@
2170
2190
  ],
2171
2191
  "returns": "void"
2172
2192
  },
2193
+ {
2194
+ "name": "claimRevision",
2195
+ "async": true,
2196
+ "params": [
2197
+ "expectedUpdatedAt: Date | string"
2198
+ ],
2199
+ "returns": "Promise"
2200
+ },
2173
2201
  {
2174
2202
  "name": "classifyConstraintError",
2175
2203
  "static": true,
@@ -2426,6 +2454,9 @@
2426
2454
  {
2427
2455
  "name": "save",
2428
2456
  "async": true,
2457
+ "params": [
2458
+ "options?: SmrtSaveOptions"
2459
+ ],
2429
2460
  "returns": "any"
2430
2461
  },
2431
2462
  {
@@ -2459,6 +2490,14 @@
2459
2490
  "operation: Function"
2460
2491
  ],
2461
2492
  "returns": "Promise<T>"
2493
+ },
2494
+ {
2495
+ "name": "withTransaction",
2496
+ "async": true,
2497
+ "params": [
2498
+ "operation: Function"
2499
+ ],
2500
+ "returns": "Promise<T>"
2462
2501
  }
2463
2502
  ],
2464
2503
  "tenant": {
@@ -2620,6 +2659,7 @@
2620
2659
  ],
2621
2660
  "methods": [
2622
2661
  "_setLoadedRelationship",
2662
+ "claimRevision",
2623
2663
  "classifyConstraintError",
2624
2664
  "clearEmbeddings",
2625
2665
  "delete",
@@ -2666,7 +2706,8 @@
2666
2706
  "toJSON",
2667
2707
  "toPlainObject",
2668
2708
  "toPublicJSON",
2669
- "withDatabase"
2709
+ "withDatabase",
2710
+ "withTransaction"
2670
2711
  ],
2671
2712
  "methodSignatures": [
2672
2713
  {
@@ -2677,6 +2718,14 @@
2677
2718
  ],
2678
2719
  "returns": "void"
2679
2720
  },
2721
+ {
2722
+ "name": "claimRevision",
2723
+ "async": true,
2724
+ "params": [
2725
+ "expectedUpdatedAt: Date | string"
2726
+ ],
2727
+ "returns": "Promise"
2728
+ },
2680
2729
  {
2681
2730
  "name": "classifyConstraintError",
2682
2731
  "static": true,
@@ -2933,6 +2982,9 @@
2933
2982
  {
2934
2983
  "name": "save",
2935
2984
  "async": true,
2985
+ "params": [
2986
+ "options?: SmrtSaveOptions"
2987
+ ],
2936
2988
  "returns": "any"
2937
2989
  },
2938
2990
  {
@@ -2966,6 +3018,14 @@
2966
3018
  "operation: Function"
2967
3019
  ],
2968
3020
  "returns": "Promise<T>"
3021
+ },
3022
+ {
3023
+ "name": "withTransaction",
3024
+ "async": true,
3025
+ "params": [
3026
+ "operation: Function"
3027
+ ],
3028
+ "returns": "Promise<T>"
2969
3029
  }
2970
3030
  ],
2971
3031
  "tenant": {
@@ -3127,6 +3187,7 @@
3127
3187
  ],
3128
3188
  "methods": [
3129
3189
  "_setLoadedRelationship",
3190
+ "claimRevision",
3130
3191
  "classifyConstraintError",
3131
3192
  "clearEmbeddings",
3132
3193
  "delete",
@@ -3173,7 +3234,8 @@
3173
3234
  "toJSON",
3174
3235
  "toPlainObject",
3175
3236
  "toPublicJSON",
3176
- "withDatabase"
3237
+ "withDatabase",
3238
+ "withTransaction"
3177
3239
  ],
3178
3240
  "methodSignatures": [
3179
3241
  {
@@ -3184,6 +3246,14 @@
3184
3246
  ],
3185
3247
  "returns": "void"
3186
3248
  },
3249
+ {
3250
+ "name": "claimRevision",
3251
+ "async": true,
3252
+ "params": [
3253
+ "expectedUpdatedAt: Date | string"
3254
+ ],
3255
+ "returns": "Promise"
3256
+ },
3187
3257
  {
3188
3258
  "name": "classifyConstraintError",
3189
3259
  "static": true,
@@ -3440,6 +3510,9 @@
3440
3510
  {
3441
3511
  "name": "save",
3442
3512
  "async": true,
3513
+ "params": [
3514
+ "options?: SmrtSaveOptions"
3515
+ ],
3443
3516
  "returns": "any"
3444
3517
  },
3445
3518
  {
@@ -3473,6 +3546,14 @@
3473
3546
  "operation: Function"
3474
3547
  ],
3475
3548
  "returns": "Promise<T>"
3549
+ },
3550
+ {
3551
+ "name": "withTransaction",
3552
+ "async": true,
3553
+ "params": [
3554
+ "operation: Function"
3555
+ ],
3556
+ "returns": "Promise<T>"
3476
3557
  }
3477
3558
  ],
3478
3559
  "tenant": {
@@ -3634,6 +3715,7 @@
3634
3715
  ],
3635
3716
  "methods": [
3636
3717
  "_setLoadedRelationship",
3718
+ "claimRevision",
3637
3719
  "classifyConstraintError",
3638
3720
  "clearEmbeddings",
3639
3721
  "delete",
@@ -3680,7 +3762,8 @@
3680
3762
  "toJSON",
3681
3763
  "toPlainObject",
3682
3764
  "toPublicJSON",
3683
- "withDatabase"
3765
+ "withDatabase",
3766
+ "withTransaction"
3684
3767
  ],
3685
3768
  "methodSignatures": [
3686
3769
  {
@@ -3691,6 +3774,14 @@
3691
3774
  ],
3692
3775
  "returns": "void"
3693
3776
  },
3777
+ {
3778
+ "name": "claimRevision",
3779
+ "async": true,
3780
+ "params": [
3781
+ "expectedUpdatedAt: Date | string"
3782
+ ],
3783
+ "returns": "Promise"
3784
+ },
3694
3785
  {
3695
3786
  "name": "classifyConstraintError",
3696
3787
  "static": true,
@@ -3947,6 +4038,9 @@
3947
4038
  {
3948
4039
  "name": "save",
3949
4040
  "async": true,
4041
+ "params": [
4042
+ "options?: SmrtSaveOptions"
4043
+ ],
3950
4044
  "returns": "any"
3951
4045
  },
3952
4046
  {
@@ -3980,6 +4074,14 @@
3980
4074
  "operation: Function"
3981
4075
  ],
3982
4076
  "returns": "Promise<T>"
4077
+ },
4078
+ {
4079
+ "name": "withTransaction",
4080
+ "async": true,
4081
+ "params": [
4082
+ "operation: Function"
4083
+ ],
4084
+ "returns": "Promise<T>"
3983
4085
  }
3984
4086
  ],
3985
4087
  "tenant": {
@@ -4141,6 +4243,7 @@
4141
4243
  ],
4142
4244
  "methods": [
4143
4245
  "_setLoadedRelationship",
4246
+ "claimRevision",
4144
4247
  "classifyConstraintError",
4145
4248
  "clearEmbeddings",
4146
4249
  "delete",
@@ -4187,7 +4290,8 @@
4187
4290
  "toJSON",
4188
4291
  "toPlainObject",
4189
4292
  "toPublicJSON",
4190
- "withDatabase"
4293
+ "withDatabase",
4294
+ "withTransaction"
4191
4295
  ],
4192
4296
  "methodSignatures": [
4193
4297
  {
@@ -4198,6 +4302,14 @@
4198
4302
  ],
4199
4303
  "returns": "void"
4200
4304
  },
4305
+ {
4306
+ "name": "claimRevision",
4307
+ "async": true,
4308
+ "params": [
4309
+ "expectedUpdatedAt: Date | string"
4310
+ ],
4311
+ "returns": "Promise"
4312
+ },
4201
4313
  {
4202
4314
  "name": "classifyConstraintError",
4203
4315
  "static": true,
@@ -4454,6 +4566,9 @@
4454
4566
  {
4455
4567
  "name": "save",
4456
4568
  "async": true,
4569
+ "params": [
4570
+ "options?: SmrtSaveOptions"
4571
+ ],
4457
4572
  "returns": "any"
4458
4573
  },
4459
4574
  {
@@ -4487,6 +4602,14 @@
4487
4602
  "operation: Function"
4488
4603
  ],
4489
4604
  "returns": "Promise<T>"
4605
+ },
4606
+ {
4607
+ "name": "withTransaction",
4608
+ "async": true,
4609
+ "params": [
4610
+ "operation: Function"
4611
+ ],
4612
+ "returns": "Promise<T>"
4490
4613
  }
4491
4614
  ],
4492
4615
  "tenant": {
@@ -4648,6 +4771,7 @@
4648
4771
  ],
4649
4772
  "methods": [
4650
4773
  "_setLoadedRelationship",
4774
+ "claimRevision",
4651
4775
  "classifyConstraintError",
4652
4776
  "clearEmbeddings",
4653
4777
  "delete",
@@ -4694,7 +4818,8 @@
4694
4818
  "toJSON",
4695
4819
  "toPlainObject",
4696
4820
  "toPublicJSON",
4697
- "withDatabase"
4821
+ "withDatabase",
4822
+ "withTransaction"
4698
4823
  ],
4699
4824
  "methodSignatures": [
4700
4825
  {
@@ -4705,6 +4830,14 @@
4705
4830
  ],
4706
4831
  "returns": "void"
4707
4832
  },
4833
+ {
4834
+ "name": "claimRevision",
4835
+ "async": true,
4836
+ "params": [
4837
+ "expectedUpdatedAt: Date | string"
4838
+ ],
4839
+ "returns": "Promise"
4840
+ },
4708
4841
  {
4709
4842
  "name": "classifyConstraintError",
4710
4843
  "static": true,
@@ -4961,6 +5094,9 @@
4961
5094
  {
4962
5095
  "name": "save",
4963
5096
  "async": true,
5097
+ "params": [
5098
+ "options?: SmrtSaveOptions"
5099
+ ],
4964
5100
  "returns": "any"
4965
5101
  },
4966
5102
  {
@@ -4994,6 +5130,14 @@
4994
5130
  "operation: Function"
4995
5131
  ],
4996
5132
  "returns": "Promise<T>"
5133
+ },
5134
+ {
5135
+ "name": "withTransaction",
5136
+ "async": true,
5137
+ "params": [
5138
+ "operation: Function"
5139
+ ],
5140
+ "returns": "Promise<T>"
4997
5141
  }
4998
5142
  ],
4999
5143
  "tenant": {
@@ -5167,6 +5311,7 @@
5167
5311
  ],
5168
5312
  "methods": [
5169
5313
  "_setLoadedRelationship",
5314
+ "claimRevision",
5170
5315
  "classifyConstraintError",
5171
5316
  "clearEmbeddings",
5172
5317
  "delete",
@@ -5213,7 +5358,8 @@
5213
5358
  "toJSON",
5214
5359
  "toPlainObject",
5215
5360
  "toPublicJSON",
5216
- "withDatabase"
5361
+ "withDatabase",
5362
+ "withTransaction"
5217
5363
  ],
5218
5364
  "methodSignatures": [
5219
5365
  {
@@ -5224,6 +5370,14 @@
5224
5370
  ],
5225
5371
  "returns": "void"
5226
5372
  },
5373
+ {
5374
+ "name": "claimRevision",
5375
+ "async": true,
5376
+ "params": [
5377
+ "expectedUpdatedAt: Date | string"
5378
+ ],
5379
+ "returns": "Promise"
5380
+ },
5227
5381
  {
5228
5382
  "name": "classifyConstraintError",
5229
5383
  "static": true,
@@ -5480,6 +5634,9 @@
5480
5634
  {
5481
5635
  "name": "save",
5482
5636
  "async": true,
5637
+ "params": [
5638
+ "options?: SmrtSaveOptions"
5639
+ ],
5483
5640
  "returns": "any"
5484
5641
  },
5485
5642
  {
@@ -5513,6 +5670,14 @@
5513
5670
  "operation: Function"
5514
5671
  ],
5515
5672
  "returns": "Promise<T>"
5673
+ },
5674
+ {
5675
+ "name": "withTransaction",
5676
+ "async": true,
5677
+ "params": [
5678
+ "operation: Function"
5679
+ ],
5680
+ "returns": "Promise<T>"
5516
5681
  }
5517
5682
  ],
5518
5683
  "tenant": {
@@ -5674,6 +5839,7 @@
5674
5839
  ],
5675
5840
  "methods": [
5676
5841
  "_setLoadedRelationship",
5842
+ "claimRevision",
5677
5843
  "classifyConstraintError",
5678
5844
  "clearEmbeddings",
5679
5845
  "delete",
@@ -5720,7 +5886,8 @@
5720
5886
  "toJSON",
5721
5887
  "toPlainObject",
5722
5888
  "toPublicJSON",
5723
- "withDatabase"
5889
+ "withDatabase",
5890
+ "withTransaction"
5724
5891
  ],
5725
5892
  "methodSignatures": [
5726
5893
  {
@@ -5731,6 +5898,14 @@
5731
5898
  ],
5732
5899
  "returns": "void"
5733
5900
  },
5901
+ {
5902
+ "name": "claimRevision",
5903
+ "async": true,
5904
+ "params": [
5905
+ "expectedUpdatedAt: Date | string"
5906
+ ],
5907
+ "returns": "Promise"
5908
+ },
5734
5909
  {
5735
5910
  "name": "classifyConstraintError",
5736
5911
  "static": true,
@@ -5987,6 +6162,9 @@
5987
6162
  {
5988
6163
  "name": "save",
5989
6164
  "async": true,
6165
+ "params": [
6166
+ "options?: SmrtSaveOptions"
6167
+ ],
5990
6168
  "returns": "any"
5991
6169
  },
5992
6170
  {
@@ -6020,6 +6198,14 @@
6020
6198
  "operation: Function"
6021
6199
  ],
6022
6200
  "returns": "Promise<T>"
6201
+ },
6202
+ {
6203
+ "name": "withTransaction",
6204
+ "async": true,
6205
+ "params": [
6206
+ "operation: Function"
6207
+ ],
6208
+ "returns": "Promise<T>"
6023
6209
  }
6024
6210
  ],
6025
6211
  "tenant": {
@@ -6271,6 +6457,7 @@
6271
6457
  ],
6272
6458
  "methods": [
6273
6459
  "_setLoadedRelationship",
6460
+ "claimRevision",
6274
6461
  "classifyConstraintError",
6275
6462
  "clearEmbeddings",
6276
6463
  "delete",
@@ -6319,7 +6506,8 @@
6319
6506
  "toJSON",
6320
6507
  "toPlainObject",
6321
6508
  "toPublicJSON",
6322
- "withDatabase"
6509
+ "withDatabase",
6510
+ "withTransaction"
6323
6511
  ],
6324
6512
  "methodSignatures": [
6325
6513
  {
@@ -6330,6 +6518,14 @@
6330
6518
  ],
6331
6519
  "returns": "void"
6332
6520
  },
6521
+ {
6522
+ "name": "claimRevision",
6523
+ "async": true,
6524
+ "params": [
6525
+ "expectedUpdatedAt: Date | string"
6526
+ ],
6527
+ "returns": "Promise"
6528
+ },
6333
6529
  {
6334
6530
  "name": "classifyConstraintError",
6335
6531
  "static": true,
@@ -6627,6 +6823,14 @@
6627
6823
  "operation: Function"
6628
6824
  ],
6629
6825
  "returns": "Promise<T>"
6826
+ },
6827
+ {
6828
+ "name": "withTransaction",
6829
+ "async": true,
6830
+ "params": [
6831
+ "operation: Function"
6832
+ ],
6833
+ "returns": "Promise<T>"
6630
6834
  }
6631
6835
  ],
6632
6836
  "tenant": {
@@ -6778,6 +6982,7 @@
6778
6982
  "methods": [
6779
6983
  "_setLoadedRelationship",
6780
6984
  "calculateAmount",
6985
+ "claimRevision",
6781
6986
  "classifyConstraintError",
6782
6987
  "clearEmbeddings",
6783
6988
  "delete",
@@ -6820,7 +7025,8 @@
6820
7025
  "toJSON",
6821
7026
  "toPlainObject",
6822
7027
  "toPublicJSON",
6823
- "withDatabase"
7028
+ "withDatabase",
7029
+ "withTransaction"
6824
7030
  ],
6825
7031
  "methodSignatures": [
6826
7032
  {
@@ -6835,6 +7041,14 @@
6835
7041
  "name": "calculateAmount",
6836
7042
  "returns": "number"
6837
7043
  },
7044
+ {
7045
+ "name": "claimRevision",
7046
+ "async": true,
7047
+ "params": [
7048
+ "expectedUpdatedAt: Date | string"
7049
+ ],
7050
+ "returns": "Promise"
7051
+ },
6838
7052
  {
6839
7053
  "name": "classifyConstraintError",
6840
7054
  "static": true,
@@ -7074,6 +7288,9 @@
7074
7288
  {
7075
7289
  "name": "save",
7076
7290
  "async": true,
7291
+ "params": [
7292
+ "options?: SmrtSaveOptions"
7293
+ ],
7077
7294
  "returns": "any"
7078
7295
  },
7079
7296
  {
@@ -7107,6 +7324,14 @@
7107
7324
  "operation: Function"
7108
7325
  ],
7109
7326
  "returns": "Promise<T>"
7327
+ },
7328
+ {
7329
+ "name": "withTransaction",
7330
+ "async": true,
7331
+ "params": [
7332
+ "operation: Function"
7333
+ ],
7334
+ "returns": "Promise<T>"
7110
7335
  }
7111
7336
  ],
7112
7337
  "tenant": {
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-commerce",
3
- "version": "0.43.9",
3
+ "version": "0.44.0",
4
+ "smrtJsdoc": "strict",
4
5
  "description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
5
6
  "type": "module",
6
7
  "smrtRawPrimitives": "strict",
@@ -49,11 +50,11 @@
49
50
  "access": "public"
50
51
  },
51
52
  "dependencies": {
52
- "@happyvertical/smrt-core": "0.43.9",
53
- "@happyvertical/smrt-ledgers": "0.43.9",
54
- "@happyvertical/smrt-tenancy": "0.43.9",
55
- "@happyvertical/smrt-types": "0.43.9",
56
- "@happyvertical/smrt-ui": "0.43.9"
53
+ "@happyvertical/smrt-core": "0.44.0",
54
+ "@happyvertical/smrt-ledgers": "0.44.0",
55
+ "@happyvertical/smrt-tenancy": "0.44.0",
56
+ "@happyvertical/smrt-types": "0.44.0",
57
+ "@happyvertical/smrt-ui": "0.44.0"
57
58
  },
58
59
  "peerDependencies": {
59
60
  "svelte": "^5.56.4"
@@ -73,7 +74,7 @@
73
74
  "typescript": "5.9.3",
74
75
  "vite": "8.1.4",
75
76
  "vitest": "4.1.10",
76
- "@happyvertical/smrt-vitest": "0.43.9"
77
+ "@happyvertical/smrt-vitest": "0.44.0"
77
78
  },
78
79
  "scripts": {
79
80
  "build": "vite build --mode library && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json",