@happyvertical/smrt-commerce 0.55.22 → 0.55.24
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 +7 -8
- package/README.md +37 -2
- package/agents/customer-vendor-ui.md +61 -2
- package/dist/chunks/types-zVnIjSOk.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +276 -33
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +259 -57
- package/dist/models/Contract.d.ts.map +1 -1
- package/dist/models/ContractLineItem.d.ts.map +1 -1
- package/dist/models/Customer.d.ts +13 -1
- package/dist/models/Customer.d.ts.map +1 -1
- package/dist/models/Invoice.d.ts.map +1 -1
- package/dist/models/InvoiceLineItem.d.ts.map +1 -1
- package/dist/models/PaymentAllocation.d.ts.map +1 -1
- package/dist/models/Vendor.d.ts +6 -1
- package/dist/models/Vendor.d.ts.map +1 -1
- package/dist/party-contacts.d.ts +146 -0
- package/dist/party-contacts.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +54 -12
- package/dist/svelte/components/CustomerDetail.svelte +16 -5
- package/dist/svelte/components/CustomerDetail.svelte.d.ts +5 -0
- package/dist/svelte/components/CustomerDetail.svelte.d.ts.map +1 -1
- package/dist/svelte/components/CustomerDirectory.svelte +16 -5
- package/dist/svelte/components/CustomerDirectory.svelte.d.ts +5 -0
- package/dist/svelte/components/CustomerDirectory.svelte.d.ts.map +1 -1
- package/dist/svelte/components/CustomerForm.svelte +23 -0
- package/dist/svelte/components/CustomerForm.svelte.d.ts +9 -2
- package/dist/svelte/components/CustomerForm.svelte.d.ts.map +1 -1
- package/dist/svelte/components/PartyContactFields.svelte +4 -0
- package/dist/svelte/components/PartyContactFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/VendorDetail.svelte +16 -5
- package/dist/svelte/components/VendorDetail.svelte.d.ts +5 -0
- package/dist/svelte/components/VendorDetail.svelte.d.ts.map +1 -1
- package/dist/svelte/components/VendorDirectory.svelte +16 -5
- package/dist/svelte/components/VendorDirectory.svelte.d.ts +5 -0
- package/dist/svelte/components/VendorDirectory.svelte.d.ts.map +1 -1
- package/dist/svelte/components/VendorForm.svelte +23 -0
- package/dist/svelte/components/VendorForm.svelte.d.ts +9 -2
- package/dist/svelte/components/VendorForm.svelte.d.ts.map +1 -1
- package/dist/svelte/index.d.ts +1 -1
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/party-types.d.ts +15 -1
- package/dist/svelte/party-types.d.ts.map +1 -1
- package/dist/svelte/party-types.js +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-commerce",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.24",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
"collectionExportName": "CustomerCollectionCollection",
|
|
661
661
|
"schema": {
|
|
662
662
|
"tableName": "customers",
|
|
663
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"tax_exempt\" BOOLEAN DEFAULT FALSE,\n \"tax_id\" TEXT DEFAULT '',\n \"default_shipping_address\" JSON,\n \"default_billing_address\" JSON,\n \"status\" TEXT,\n \"customer_type\" TEXT,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
663
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"tax_exempt\" BOOLEAN DEFAULT FALSE,\n \"tax_id\" TEXT DEFAULT '',\n \"default_shipping_address\" JSON,\n \"default_billing_address\" JSON,\n \"status\" TEXT,\n \"customer_type\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"contacts\" JSON DEFAULT '[]'\n);",
|
|
664
664
|
"columns": {
|
|
665
665
|
"id": {
|
|
666
666
|
"type": "UUID",
|
|
@@ -748,6 +748,12 @@
|
|
|
748
748
|
"notNull": false,
|
|
749
749
|
"unique": false,
|
|
750
750
|
"default": ""
|
|
751
|
+
},
|
|
752
|
+
"contacts": {
|
|
753
|
+
"type": "JSON",
|
|
754
|
+
"notNull": false,
|
|
755
|
+
"unique": false,
|
|
756
|
+
"default": []
|
|
751
757
|
}
|
|
752
758
|
},
|
|
753
759
|
"indexes": [
|
|
@@ -775,7 +781,7 @@
|
|
|
775
781
|
]
|
|
776
782
|
}
|
|
777
783
|
],
|
|
778
|
-
"version": "
|
|
784
|
+
"version": "49587ccf"
|
|
779
785
|
},
|
|
780
786
|
"importPath": "@happyvertical/smrt-commerce"
|
|
781
787
|
},
|
|
@@ -3762,7 +3768,7 @@
|
|
|
3762
3768
|
"collectionExportName": "VendorCollectionCollection",
|
|
3763
3769
|
"schema": {
|
|
3764
3770
|
"tableName": "vendors",
|
|
3765
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD',\n \"default_contact_email\" TEXT DEFAULT '',\n \"default_contact_phone\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"payout_addresses\" JSON DEFAULT '{}'\n);",
|
|
3771
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD',\n \"default_contact_email\" TEXT DEFAULT '',\n \"default_contact_phone\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"payout_addresses\" JSON DEFAULT '{}',\n \"contacts\" JSON DEFAULT '[]'\n);",
|
|
3766
3772
|
"columns": {
|
|
3767
3773
|
"id": {
|
|
3768
3774
|
"type": "UUID",
|
|
@@ -3853,6 +3859,12 @@
|
|
|
3853
3859
|
"notNull": false,
|
|
3854
3860
|
"unique": false,
|
|
3855
3861
|
"default": {}
|
|
3862
|
+
},
|
|
3863
|
+
"contacts": {
|
|
3864
|
+
"type": "JSON",
|
|
3865
|
+
"notNull": false,
|
|
3866
|
+
"unique": false,
|
|
3867
|
+
"default": []
|
|
3856
3868
|
}
|
|
3857
3869
|
},
|
|
3858
3870
|
"indexes": [
|
|
@@ -3880,7 +3892,7 @@
|
|
|
3880
3892
|
]
|
|
3881
3893
|
}
|
|
3882
3894
|
],
|
|
3883
|
-
"version": "
|
|
3895
|
+
"version": "0963c71f"
|
|
3884
3896
|
},
|
|
3885
3897
|
"importPath": "@happyvertical/smrt-commerce"
|
|
3886
3898
|
},
|
|
@@ -3976,7 +3988,10 @@
|
|
|
3976
3988
|
"default": 0,
|
|
3977
3989
|
"description": "The amount before tax.",
|
|
3978
3990
|
"_meta": {
|
|
3979
|
-
"description": "The amount before tax."
|
|
3991
|
+
"description": "The amount before tax.",
|
|
3992
|
+
"ui": {
|
|
3993
|
+
"format": "money"
|
|
3994
|
+
}
|
|
3980
3995
|
}
|
|
3981
3996
|
},
|
|
3982
3997
|
"taxAmount": {
|
|
@@ -3985,7 +4000,10 @@
|
|
|
3985
4000
|
"default": 0,
|
|
3986
4001
|
"description": "The tax charged.",
|
|
3987
4002
|
"_meta": {
|
|
3988
|
-
"description": "The tax charged."
|
|
4003
|
+
"description": "The tax charged.",
|
|
4004
|
+
"ui": {
|
|
4005
|
+
"format": "money"
|
|
4006
|
+
}
|
|
3989
4007
|
}
|
|
3990
4008
|
},
|
|
3991
4009
|
"totalAmount": {
|
|
@@ -3994,7 +4012,10 @@
|
|
|
3994
4012
|
"default": 0,
|
|
3995
4013
|
"description": "The full amount, tax included.",
|
|
3996
4014
|
"_meta": {
|
|
3997
|
-
"description": "The full amount, tax included."
|
|
4015
|
+
"description": "The full amount, tax included.",
|
|
4016
|
+
"ui": {
|
|
4017
|
+
"format": "money"
|
|
4018
|
+
}
|
|
3998
4019
|
}
|
|
3999
4020
|
},
|
|
4000
4021
|
"currency": {
|
|
@@ -4433,7 +4454,10 @@
|
|
|
4433
4454
|
"default": 0,
|
|
4434
4455
|
"description": "The amount before tax.",
|
|
4435
4456
|
"_meta": {
|
|
4436
|
-
"description": "The amount before tax."
|
|
4457
|
+
"description": "The amount before tax.",
|
|
4458
|
+
"ui": {
|
|
4459
|
+
"format": "money"
|
|
4460
|
+
}
|
|
4437
4461
|
}
|
|
4438
4462
|
},
|
|
4439
4463
|
"taxAmount": {
|
|
@@ -4442,7 +4466,10 @@
|
|
|
4442
4466
|
"default": 0,
|
|
4443
4467
|
"description": "The tax charged.",
|
|
4444
4468
|
"_meta": {
|
|
4445
|
-
"description": "The tax charged."
|
|
4469
|
+
"description": "The tax charged.",
|
|
4470
|
+
"ui": {
|
|
4471
|
+
"format": "money"
|
|
4472
|
+
}
|
|
4446
4473
|
}
|
|
4447
4474
|
},
|
|
4448
4475
|
"totalAmount": {
|
|
@@ -4451,7 +4478,10 @@
|
|
|
4451
4478
|
"default": 0,
|
|
4452
4479
|
"description": "The full amount, tax included.",
|
|
4453
4480
|
"_meta": {
|
|
4454
|
-
"description": "The full amount, tax included."
|
|
4481
|
+
"description": "The full amount, tax included.",
|
|
4482
|
+
"ui": {
|
|
4483
|
+
"format": "money"
|
|
4484
|
+
}
|
|
4455
4485
|
}
|
|
4456
4486
|
},
|
|
4457
4487
|
"currency": {
|
|
@@ -4868,7 +4898,10 @@
|
|
|
4868
4898
|
"default": 0,
|
|
4869
4899
|
"description": "The amount before tax.",
|
|
4870
4900
|
"_meta": {
|
|
4871
|
-
"description": "The amount before tax."
|
|
4901
|
+
"description": "The amount before tax.",
|
|
4902
|
+
"ui": {
|
|
4903
|
+
"format": "money"
|
|
4904
|
+
}
|
|
4872
4905
|
}
|
|
4873
4906
|
},
|
|
4874
4907
|
"taxAmount": {
|
|
@@ -4877,7 +4910,10 @@
|
|
|
4877
4910
|
"default": 0,
|
|
4878
4911
|
"description": "The tax charged.",
|
|
4879
4912
|
"_meta": {
|
|
4880
|
-
"description": "The tax charged."
|
|
4913
|
+
"description": "The tax charged.",
|
|
4914
|
+
"ui": {
|
|
4915
|
+
"format": "money"
|
|
4916
|
+
}
|
|
4881
4917
|
}
|
|
4882
4918
|
},
|
|
4883
4919
|
"totalAmount": {
|
|
@@ -4886,7 +4922,10 @@
|
|
|
4886
4922
|
"default": 0,
|
|
4887
4923
|
"description": "The full amount, tax included.",
|
|
4888
4924
|
"_meta": {
|
|
4889
|
-
"description": "The full amount, tax included."
|
|
4925
|
+
"description": "The full amount, tax included.",
|
|
4926
|
+
"ui": {
|
|
4927
|
+
"format": "money"
|
|
4928
|
+
}
|
|
4890
4929
|
}
|
|
4891
4930
|
},
|
|
4892
4931
|
"currency": {
|
|
@@ -5303,7 +5342,10 @@
|
|
|
5303
5342
|
"default": 0,
|
|
5304
5343
|
"description": "The amount before tax.",
|
|
5305
5344
|
"_meta": {
|
|
5306
|
-
"description": "The amount before tax."
|
|
5345
|
+
"description": "The amount before tax.",
|
|
5346
|
+
"ui": {
|
|
5347
|
+
"format": "money"
|
|
5348
|
+
}
|
|
5307
5349
|
}
|
|
5308
5350
|
},
|
|
5309
5351
|
"taxAmount": {
|
|
@@ -5312,7 +5354,10 @@
|
|
|
5312
5354
|
"default": 0,
|
|
5313
5355
|
"description": "The tax charged.",
|
|
5314
5356
|
"_meta": {
|
|
5315
|
-
"description": "The tax charged."
|
|
5357
|
+
"description": "The tax charged.",
|
|
5358
|
+
"ui": {
|
|
5359
|
+
"format": "money"
|
|
5360
|
+
}
|
|
5316
5361
|
}
|
|
5317
5362
|
},
|
|
5318
5363
|
"totalAmount": {
|
|
@@ -5321,7 +5366,10 @@
|
|
|
5321
5366
|
"default": 0,
|
|
5322
5367
|
"description": "The full amount, tax included.",
|
|
5323
5368
|
"_meta": {
|
|
5324
|
-
"description": "The full amount, tax included."
|
|
5369
|
+
"description": "The full amount, tax included.",
|
|
5370
|
+
"ui": {
|
|
5371
|
+
"format": "money"
|
|
5372
|
+
}
|
|
5325
5373
|
}
|
|
5326
5374
|
},
|
|
5327
5375
|
"currency": {
|
|
@@ -5738,7 +5786,10 @@
|
|
|
5738
5786
|
"default": 0,
|
|
5739
5787
|
"description": "The amount before tax.",
|
|
5740
5788
|
"_meta": {
|
|
5741
|
-
"description": "The amount before tax."
|
|
5789
|
+
"description": "The amount before tax.",
|
|
5790
|
+
"ui": {
|
|
5791
|
+
"format": "money"
|
|
5792
|
+
}
|
|
5742
5793
|
}
|
|
5743
5794
|
},
|
|
5744
5795
|
"taxAmount": {
|
|
@@ -5747,7 +5798,10 @@
|
|
|
5747
5798
|
"default": 0,
|
|
5748
5799
|
"description": "The tax charged.",
|
|
5749
5800
|
"_meta": {
|
|
5750
|
-
"description": "The tax charged."
|
|
5801
|
+
"description": "The tax charged.",
|
|
5802
|
+
"ui": {
|
|
5803
|
+
"format": "money"
|
|
5804
|
+
}
|
|
5751
5805
|
}
|
|
5752
5806
|
},
|
|
5753
5807
|
"totalAmount": {
|
|
@@ -5756,7 +5810,10 @@
|
|
|
5756
5810
|
"default": 0,
|
|
5757
5811
|
"description": "The full amount, tax included.",
|
|
5758
5812
|
"_meta": {
|
|
5759
|
-
"description": "The full amount, tax included."
|
|
5813
|
+
"description": "The full amount, tax included.",
|
|
5814
|
+
"ui": {
|
|
5815
|
+
"format": "money"
|
|
5816
|
+
}
|
|
5760
5817
|
}
|
|
5761
5818
|
},
|
|
5762
5819
|
"currency": {
|
|
@@ -6173,7 +6230,10 @@
|
|
|
6173
6230
|
"default": 0,
|
|
6174
6231
|
"description": "The amount before tax.",
|
|
6175
6232
|
"_meta": {
|
|
6176
|
-
"description": "The amount before tax."
|
|
6233
|
+
"description": "The amount before tax.",
|
|
6234
|
+
"ui": {
|
|
6235
|
+
"format": "money"
|
|
6236
|
+
}
|
|
6177
6237
|
}
|
|
6178
6238
|
},
|
|
6179
6239
|
"taxAmount": {
|
|
@@ -6182,7 +6242,10 @@
|
|
|
6182
6242
|
"default": 0,
|
|
6183
6243
|
"description": "The tax charged.",
|
|
6184
6244
|
"_meta": {
|
|
6185
|
-
"description": "The tax charged."
|
|
6245
|
+
"description": "The tax charged.",
|
|
6246
|
+
"ui": {
|
|
6247
|
+
"format": "money"
|
|
6248
|
+
}
|
|
6186
6249
|
}
|
|
6187
6250
|
},
|
|
6188
6251
|
"totalAmount": {
|
|
@@ -6191,7 +6254,10 @@
|
|
|
6191
6254
|
"default": 0,
|
|
6192
6255
|
"description": "The full amount, tax included.",
|
|
6193
6256
|
"_meta": {
|
|
6194
|
-
"description": "The full amount, tax included."
|
|
6257
|
+
"description": "The full amount, tax included.",
|
|
6258
|
+
"ui": {
|
|
6259
|
+
"format": "money"
|
|
6260
|
+
}
|
|
6195
6261
|
}
|
|
6196
6262
|
},
|
|
6197
6263
|
"currency": {
|
|
@@ -6628,7 +6694,10 @@
|
|
|
6628
6694
|
"default": 0,
|
|
6629
6695
|
"description": "The amount before tax.",
|
|
6630
6696
|
"_meta": {
|
|
6631
|
-
"description": "The amount before tax."
|
|
6697
|
+
"description": "The amount before tax.",
|
|
6698
|
+
"ui": {
|
|
6699
|
+
"format": "money"
|
|
6700
|
+
}
|
|
6632
6701
|
}
|
|
6633
6702
|
},
|
|
6634
6703
|
"taxAmount": {
|
|
@@ -6637,7 +6706,10 @@
|
|
|
6637
6706
|
"default": 0,
|
|
6638
6707
|
"description": "The tax charged.",
|
|
6639
6708
|
"_meta": {
|
|
6640
|
-
"description": "The tax charged."
|
|
6709
|
+
"description": "The tax charged.",
|
|
6710
|
+
"ui": {
|
|
6711
|
+
"format": "money"
|
|
6712
|
+
}
|
|
6641
6713
|
}
|
|
6642
6714
|
},
|
|
6643
6715
|
"totalAmount": {
|
|
@@ -6646,7 +6718,10 @@
|
|
|
6646
6718
|
"default": 0,
|
|
6647
6719
|
"description": "The full amount, tax included.",
|
|
6648
6720
|
"_meta": {
|
|
6649
|
-
"description": "The full amount, tax included."
|
|
6721
|
+
"description": "The full amount, tax included.",
|
|
6722
|
+
"ui": {
|
|
6723
|
+
"format": "money"
|
|
6724
|
+
}
|
|
6650
6725
|
}
|
|
6651
6726
|
},
|
|
6652
6727
|
"currency": {
|
|
@@ -7063,7 +7138,10 @@
|
|
|
7063
7138
|
"default": 0,
|
|
7064
7139
|
"description": "The amount before tax.",
|
|
7065
7140
|
"_meta": {
|
|
7066
|
-
"description": "The amount before tax."
|
|
7141
|
+
"description": "The amount before tax.",
|
|
7142
|
+
"ui": {
|
|
7143
|
+
"format": "money"
|
|
7144
|
+
}
|
|
7067
7145
|
}
|
|
7068
7146
|
},
|
|
7069
7147
|
"taxAmount": {
|
|
@@ -7072,7 +7150,10 @@
|
|
|
7072
7150
|
"default": 0,
|
|
7073
7151
|
"description": "The tax charged.",
|
|
7074
7152
|
"_meta": {
|
|
7075
|
-
"description": "The tax charged."
|
|
7153
|
+
"description": "The tax charged.",
|
|
7154
|
+
"ui": {
|
|
7155
|
+
"format": "money"
|
|
7156
|
+
}
|
|
7076
7157
|
}
|
|
7077
7158
|
},
|
|
7078
7159
|
"totalAmount": {
|
|
@@ -7081,7 +7162,10 @@
|
|
|
7081
7162
|
"default": 0,
|
|
7082
7163
|
"description": "The full amount, tax included.",
|
|
7083
7164
|
"_meta": {
|
|
7084
|
-
"description": "The full amount, tax included."
|
|
7165
|
+
"description": "The full amount, tax included.",
|
|
7166
|
+
"ui": {
|
|
7167
|
+
"format": "money"
|
|
7168
|
+
}
|
|
7085
7169
|
}
|
|
7086
7170
|
},
|
|
7087
7171
|
"currency": {
|
|
@@ -7514,7 +7598,10 @@
|
|
|
7514
7598
|
"default": 0,
|
|
7515
7599
|
"description": "The amount before tax.",
|
|
7516
7600
|
"_meta": {
|
|
7517
|
-
"description": "The amount before tax."
|
|
7601
|
+
"description": "The amount before tax.",
|
|
7602
|
+
"ui": {
|
|
7603
|
+
"format": "money"
|
|
7604
|
+
}
|
|
7518
7605
|
}
|
|
7519
7606
|
},
|
|
7520
7607
|
"taxAmount": {
|
|
@@ -7523,7 +7610,10 @@
|
|
|
7523
7610
|
"default": 0,
|
|
7524
7611
|
"description": "The tax charged.",
|
|
7525
7612
|
"_meta": {
|
|
7526
|
-
"description": "The tax charged."
|
|
7613
|
+
"description": "The tax charged.",
|
|
7614
|
+
"ui": {
|
|
7615
|
+
"format": "money"
|
|
7616
|
+
}
|
|
7527
7617
|
}
|
|
7528
7618
|
},
|
|
7529
7619
|
"totalAmount": {
|
|
@@ -7532,7 +7622,10 @@
|
|
|
7532
7622
|
"default": 0,
|
|
7533
7623
|
"description": "The full amount, tax included.",
|
|
7534
7624
|
"_meta": {
|
|
7535
|
-
"description": "The full amount, tax included."
|
|
7625
|
+
"description": "The full amount, tax included.",
|
|
7626
|
+
"ui": {
|
|
7627
|
+
"format": "money"
|
|
7628
|
+
}
|
|
7536
7629
|
}
|
|
7537
7630
|
},
|
|
7538
7631
|
"currency": {
|
|
@@ -7949,7 +8042,10 @@
|
|
|
7949
8042
|
"default": 0,
|
|
7950
8043
|
"description": "The amount before tax.",
|
|
7951
8044
|
"_meta": {
|
|
7952
|
-
"description": "The amount before tax."
|
|
8045
|
+
"description": "The amount before tax.",
|
|
8046
|
+
"ui": {
|
|
8047
|
+
"format": "money"
|
|
8048
|
+
}
|
|
7953
8049
|
}
|
|
7954
8050
|
},
|
|
7955
8051
|
"taxAmount": {
|
|
@@ -7958,7 +8054,10 @@
|
|
|
7958
8054
|
"default": 0,
|
|
7959
8055
|
"description": "The tax charged.",
|
|
7960
8056
|
"_meta": {
|
|
7961
|
-
"description": "The tax charged."
|
|
8057
|
+
"description": "The tax charged.",
|
|
8058
|
+
"ui": {
|
|
8059
|
+
"format": "money"
|
|
8060
|
+
}
|
|
7962
8061
|
}
|
|
7963
8062
|
},
|
|
7964
8063
|
"totalAmount": {
|
|
@@ -7967,7 +8066,10 @@
|
|
|
7967
8066
|
"default": 0,
|
|
7968
8067
|
"description": "The full amount, tax included.",
|
|
7969
8068
|
"_meta": {
|
|
7970
|
-
"description": "The full amount, tax included."
|
|
8069
|
+
"description": "The full amount, tax included.",
|
|
8070
|
+
"ui": {
|
|
8071
|
+
"format": "money"
|
|
8072
|
+
}
|
|
7971
8073
|
}
|
|
7972
8074
|
},
|
|
7973
8075
|
"currency": {
|
|
@@ -8469,7 +8571,8 @@
|
|
|
8469
8571
|
"related": "Contract",
|
|
8470
8572
|
"description": "The order, quote or agreement this line belongs to.",
|
|
8471
8573
|
"_meta": {
|
|
8472
|
-
"description": "The order, quote or agreement this line belongs to."
|
|
8574
|
+
"description": "The order, quote or agreement this line belongs to.",
|
|
8575
|
+
"role": "items"
|
|
8473
8576
|
}
|
|
8474
8577
|
},
|
|
8475
8578
|
"description": {
|
|
@@ -8496,13 +8599,21 @@
|
|
|
8496
8599
|
"default": 0,
|
|
8497
8600
|
"description": "The price of one, before tax.",
|
|
8498
8601
|
"_meta": {
|
|
8499
|
-
"description": "The price of one, before tax."
|
|
8602
|
+
"description": "The price of one, before tax.",
|
|
8603
|
+
"ui": {
|
|
8604
|
+
"format": "money"
|
|
8605
|
+
}
|
|
8500
8606
|
}
|
|
8501
8607
|
},
|
|
8502
8608
|
"discount": {
|
|
8503
8609
|
"type": "integer",
|
|
8504
8610
|
"required": false,
|
|
8505
|
-
"default": 0
|
|
8611
|
+
"default": 0,
|
|
8612
|
+
"_meta": {
|
|
8613
|
+
"ui": {
|
|
8614
|
+
"format": "money"
|
|
8615
|
+
}
|
|
8616
|
+
}
|
|
8506
8617
|
},
|
|
8507
8618
|
"taxRate": {
|
|
8508
8619
|
"type": "decimal",
|
|
@@ -8519,7 +8630,10 @@
|
|
|
8519
8630
|
"default": 0,
|
|
8520
8631
|
"description": "The line total.",
|
|
8521
8632
|
"_meta": {
|
|
8522
|
-
"description": "The line total."
|
|
8633
|
+
"description": "The line total.",
|
|
8634
|
+
"ui": {
|
|
8635
|
+
"format": "money"
|
|
8636
|
+
}
|
|
8523
8637
|
}
|
|
8524
8638
|
},
|
|
8525
8639
|
"productId": {
|
|
@@ -8809,7 +8923,10 @@
|
|
|
8809
8923
|
"default": 0,
|
|
8810
8924
|
"description": "The most this customer may owe you at one time. Leave it at zero if you do not set limits.",
|
|
8811
8925
|
"_meta": {
|
|
8812
|
-
"description": "The most this customer may owe you at one time. Leave it at zero if you do not set limits."
|
|
8926
|
+
"description": "The most this customer may owe you at one time. Leave it at zero if you do not set limits.",
|
|
8927
|
+
"ui": {
|
|
8928
|
+
"format": "money"
|
|
8929
|
+
}
|
|
8813
8930
|
}
|
|
8814
8931
|
},
|
|
8815
8932
|
"paymentTerms": {
|
|
@@ -8894,9 +9011,34 @@
|
|
|
8894
9011
|
"widget": "textarea"
|
|
8895
9012
|
}
|
|
8896
9013
|
}
|
|
9014
|
+
},
|
|
9015
|
+
"contacts": {
|
|
9016
|
+
"type": "json",
|
|
9017
|
+
"required": false,
|
|
9018
|
+
"default": [],
|
|
9019
|
+
"description": "The people you deal with at this customer, with their role and how to reach them.",
|
|
9020
|
+
"_meta": {
|
|
9021
|
+
"description": "The people you deal with at this customer, with their role and how to reach them."
|
|
9022
|
+
}
|
|
8897
9023
|
}
|
|
8898
9024
|
},
|
|
8899
9025
|
"methods": {
|
|
9026
|
+
"initialize": {
|
|
9027
|
+
"name": "initialize",
|
|
9028
|
+
"async": true,
|
|
9029
|
+
"parameters": [],
|
|
9030
|
+
"returnType": "Promise<this>",
|
|
9031
|
+
"isStatic": false,
|
|
9032
|
+
"isPublic": true
|
|
9033
|
+
},
|
|
9034
|
+
"save": {
|
|
9035
|
+
"name": "save",
|
|
9036
|
+
"async": true,
|
|
9037
|
+
"parameters": [],
|
|
9038
|
+
"returnType": "Promise<this>",
|
|
9039
|
+
"isStatic": false,
|
|
9040
|
+
"isPublic": true
|
|
9041
|
+
},
|
|
8900
9042
|
"isWholesale": {
|
|
8901
9043
|
"name": "isWholesale",
|
|
8902
9044
|
"async": false,
|
|
@@ -8968,7 +9110,7 @@
|
|
|
8968
9110
|
"collectionExportName": "CustomerCollection",
|
|
8969
9111
|
"schema": {
|
|
8970
9112
|
"tableName": "customers",
|
|
8971
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"tax_exempt\" BOOLEAN DEFAULT FALSE,\n \"tax_id\" TEXT DEFAULT '',\n \"default_shipping_address\" JSON,\n \"default_billing_address\" JSON,\n \"status\" TEXT,\n \"customer_type\" TEXT,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
9113
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"customers\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"credit_limit\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"tax_exempt\" BOOLEAN DEFAULT FALSE,\n \"tax_id\" TEXT DEFAULT '',\n \"default_shipping_address\" JSON,\n \"default_billing_address\" JSON,\n \"status\" TEXT,\n \"customer_type\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"contacts\" JSON DEFAULT '[]'\n);",
|
|
8972
9114
|
"columns": {
|
|
8973
9115
|
"id": {
|
|
8974
9116
|
"type": "UUID",
|
|
@@ -9056,6 +9198,12 @@
|
|
|
9056
9198
|
"notNull": false,
|
|
9057
9199
|
"unique": false,
|
|
9058
9200
|
"default": ""
|
|
9201
|
+
},
|
|
9202
|
+
"contacts": {
|
|
9203
|
+
"type": "JSON",
|
|
9204
|
+
"notNull": false,
|
|
9205
|
+
"unique": false,
|
|
9206
|
+
"default": []
|
|
9059
9207
|
}
|
|
9060
9208
|
},
|
|
9061
9209
|
"indexes": [
|
|
@@ -9083,7 +9231,7 @@
|
|
|
9083
9231
|
]
|
|
9084
9232
|
}
|
|
9085
9233
|
],
|
|
9086
|
-
"version": "
|
|
9234
|
+
"version": "49587ccf"
|
|
9087
9235
|
},
|
|
9088
9236
|
"importPath": "@happyvertical/smrt-commerce"
|
|
9089
9237
|
},
|
|
@@ -9470,7 +9618,8 @@
|
|
|
9470
9618
|
"related": "Fulfillment",
|
|
9471
9619
|
"description": "The shipment this line belongs to.",
|
|
9472
9620
|
"_meta": {
|
|
9473
|
-
"description": "The shipment this line belongs to."
|
|
9621
|
+
"description": "The shipment this line belongs to.",
|
|
9622
|
+
"role": "items"
|
|
9474
9623
|
}
|
|
9475
9624
|
},
|
|
9476
9625
|
"contractLineItemId": {
|
|
@@ -9732,7 +9881,10 @@
|
|
|
9732
9881
|
"default": 0,
|
|
9733
9882
|
"description": "The amount before tax.",
|
|
9734
9883
|
"_meta": {
|
|
9735
|
-
"description": "The amount before tax."
|
|
9884
|
+
"description": "The amount before tax.",
|
|
9885
|
+
"ui": {
|
|
9886
|
+
"format": "money"
|
|
9887
|
+
}
|
|
9736
9888
|
}
|
|
9737
9889
|
},
|
|
9738
9890
|
"taxAmount": {
|
|
@@ -9741,13 +9893,21 @@
|
|
|
9741
9893
|
"default": 0,
|
|
9742
9894
|
"description": "The tax charged.",
|
|
9743
9895
|
"_meta": {
|
|
9744
|
-
"description": "The tax charged."
|
|
9896
|
+
"description": "The tax charged.",
|
|
9897
|
+
"ui": {
|
|
9898
|
+
"format": "money"
|
|
9899
|
+
}
|
|
9745
9900
|
}
|
|
9746
9901
|
},
|
|
9747
9902
|
"providerTaxAmount": {
|
|
9748
9903
|
"type": "integer",
|
|
9749
9904
|
"required": false,
|
|
9750
|
-
"default": 0
|
|
9905
|
+
"default": 0,
|
|
9906
|
+
"_meta": {
|
|
9907
|
+
"ui": {
|
|
9908
|
+
"format": "money"
|
|
9909
|
+
}
|
|
9910
|
+
}
|
|
9751
9911
|
},
|
|
9752
9912
|
"totalAmount": {
|
|
9753
9913
|
"type": "integer",
|
|
@@ -9755,7 +9915,10 @@
|
|
|
9755
9915
|
"default": 0,
|
|
9756
9916
|
"description": "What the customer owes in all, tax included.",
|
|
9757
9917
|
"_meta": {
|
|
9758
|
-
"description": "What the customer owes in all, tax included."
|
|
9918
|
+
"description": "What the customer owes in all, tax included.",
|
|
9919
|
+
"ui": {
|
|
9920
|
+
"format": "money"
|
|
9921
|
+
}
|
|
9759
9922
|
}
|
|
9760
9923
|
},
|
|
9761
9924
|
"amountPaid": {
|
|
@@ -9764,7 +9927,10 @@
|
|
|
9764
9927
|
"default": 0,
|
|
9765
9928
|
"description": "How much of the total has been paid so far.",
|
|
9766
9929
|
"_meta": {
|
|
9767
|
-
"description": "How much of the total has been paid so far."
|
|
9930
|
+
"description": "How much of the total has been paid so far.",
|
|
9931
|
+
"ui": {
|
|
9932
|
+
"format": "money"
|
|
9933
|
+
}
|
|
9768
9934
|
}
|
|
9769
9935
|
},
|
|
9770
9936
|
"currency": {
|
|
@@ -10365,7 +10531,8 @@
|
|
|
10365
10531
|
"related": "Invoice",
|
|
10366
10532
|
"description": "The invoice this line belongs to.",
|
|
10367
10533
|
"_meta": {
|
|
10368
|
-
"description": "The invoice this line belongs to."
|
|
10534
|
+
"description": "The invoice this line belongs to.",
|
|
10535
|
+
"role": "items"
|
|
10369
10536
|
}
|
|
10370
10537
|
},
|
|
10371
10538
|
"description": {
|
|
@@ -10402,13 +10569,21 @@
|
|
|
10402
10569
|
"default": 0,
|
|
10403
10570
|
"description": "The price of one, before tax.",
|
|
10404
10571
|
"_meta": {
|
|
10405
|
-
"description": "The price of one, before tax."
|
|
10572
|
+
"description": "The price of one, before tax.",
|
|
10573
|
+
"ui": {
|
|
10574
|
+
"format": "money"
|
|
10575
|
+
}
|
|
10406
10576
|
}
|
|
10407
10577
|
},
|
|
10408
10578
|
"discount": {
|
|
10409
10579
|
"type": "integer",
|
|
10410
10580
|
"required": false,
|
|
10411
|
-
"default": 0
|
|
10581
|
+
"default": 0,
|
|
10582
|
+
"_meta": {
|
|
10583
|
+
"ui": {
|
|
10584
|
+
"format": "money"
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10412
10587
|
},
|
|
10413
10588
|
"taxRate": {
|
|
10414
10589
|
"type": "decimal",
|
|
@@ -10425,7 +10600,10 @@
|
|
|
10425
10600
|
"default": 0,
|
|
10426
10601
|
"description": "The line total.",
|
|
10427
10602
|
"_meta": {
|
|
10428
|
-
"description": "The line total."
|
|
10603
|
+
"description": "The line total.",
|
|
10604
|
+
"ui": {
|
|
10605
|
+
"format": "money"
|
|
10606
|
+
}
|
|
10429
10607
|
}
|
|
10430
10608
|
},
|
|
10431
10609
|
"sourceType": {
|
|
@@ -10801,7 +10979,10 @@
|
|
|
10801
10979
|
"default": 0,
|
|
10802
10980
|
"description": "How much was paid.",
|
|
10803
10981
|
"_meta": {
|
|
10804
|
-
"description": "How much was paid."
|
|
10982
|
+
"description": "How much was paid.",
|
|
10983
|
+
"ui": {
|
|
10984
|
+
"format": "money"
|
|
10985
|
+
}
|
|
10805
10986
|
}
|
|
10806
10987
|
},
|
|
10807
10988
|
"currency": {
|
|
@@ -11329,7 +11510,10 @@
|
|
|
11329
11510
|
"default": 0,
|
|
11330
11511
|
"description": "How much of the payment goes to this invoice.",
|
|
11331
11512
|
"_meta": {
|
|
11332
|
-
"description": "How much of the payment goes to this invoice."
|
|
11513
|
+
"description": "How much of the payment goes to this invoice.",
|
|
11514
|
+
"ui": {
|
|
11515
|
+
"format": "money"
|
|
11516
|
+
}
|
|
11333
11517
|
}
|
|
11334
11518
|
},
|
|
11335
11519
|
"allocatedAt": {
|
|
@@ -12768,7 +12952,10 @@
|
|
|
12768
12952
|
"default": 0,
|
|
12769
12953
|
"description": "The smallest order the vendor will accept.",
|
|
12770
12954
|
"_meta": {
|
|
12771
|
-
"description": "The smallest order the vendor will accept."
|
|
12955
|
+
"description": "The smallest order the vendor will accept.",
|
|
12956
|
+
"ui": {
|
|
12957
|
+
"format": "money"
|
|
12958
|
+
}
|
|
12772
12959
|
}
|
|
12773
12960
|
},
|
|
12774
12961
|
"paymentTerms": {
|
|
@@ -12851,6 +13038,15 @@
|
|
|
12851
13038
|
"description": "Where payments to this vendor should be sent."
|
|
12852
13039
|
},
|
|
12853
13040
|
"sensitive": true
|
|
13041
|
+
},
|
|
13042
|
+
"contacts": {
|
|
13043
|
+
"type": "json",
|
|
13044
|
+
"required": false,
|
|
13045
|
+
"default": [],
|
|
13046
|
+
"description": "The people you deal with at this vendor, with their role and how to reach them.",
|
|
13047
|
+
"_meta": {
|
|
13048
|
+
"description": "The people you deal with at this vendor, with their role and how to reach them."
|
|
13049
|
+
}
|
|
12854
13050
|
}
|
|
12855
13051
|
},
|
|
12856
13052
|
"methods": {
|
|
@@ -12980,7 +13176,7 @@
|
|
|
12980
13176
|
"collectionExportName": "VendorCollection",
|
|
12981
13177
|
"schema": {
|
|
12982
13178
|
"tableName": "vendors",
|
|
12983
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD',\n \"default_contact_email\" TEXT DEFAULT '',\n \"default_contact_phone\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"payout_addresses\" JSON DEFAULT '{}'\n);",
|
|
13179
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"vendors\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID,\n \"lead_time_days\" INTEGER DEFAULT 0,\n \"minimum_order_amount\" INTEGER DEFAULT 0,\n \"payment_terms\" TEXT DEFAULT '',\n \"currency\" TEXT DEFAULT 'USD',\n \"default_contact_email\" TEXT DEFAULT '',\n \"default_contact_phone\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"notes\" TEXT DEFAULT '',\n \"payout_addresses\" JSON DEFAULT '{}',\n \"contacts\" JSON DEFAULT '[]'\n);",
|
|
12984
13180
|
"columns": {
|
|
12985
13181
|
"id": {
|
|
12986
13182
|
"type": "UUID",
|
|
@@ -13071,6 +13267,12 @@
|
|
|
13071
13267
|
"notNull": false,
|
|
13072
13268
|
"unique": false,
|
|
13073
13269
|
"default": {}
|
|
13270
|
+
},
|
|
13271
|
+
"contacts": {
|
|
13272
|
+
"type": "JSON",
|
|
13273
|
+
"notNull": false,
|
|
13274
|
+
"unique": false,
|
|
13275
|
+
"default": []
|
|
13074
13276
|
}
|
|
13075
13277
|
},
|
|
13076
13278
|
"indexes": [
|
|
@@ -13098,7 +13300,7 @@
|
|
|
13098
13300
|
]
|
|
13099
13301
|
}
|
|
13100
13302
|
],
|
|
13101
|
-
"version": "
|
|
13303
|
+
"version": "0963c71f"
|
|
13102
13304
|
},
|
|
13103
13305
|
"importPath": "@happyvertical/smrt-commerce"
|
|
13104
13306
|
},
|