@happyvertical/smrt-commerce 0.57.46 → 0.57.47
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +171 -1
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +16 -16
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.57.
|
|
5
|
+
"packageVersion": "0.57.47",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-commerce:ContractCollection": {
|
|
8
8
|
"name": "contractcollection",
|
|
@@ -237,6 +237,11 @@
|
|
|
237
237
|
"extendsTypeArg": "Contract",
|
|
238
238
|
"exportName": "ContractCollection",
|
|
239
239
|
"collectionExportName": "ContractCollectionCollection",
|
|
240
|
+
"collectionOf": "@happyvertical/smrt-commerce:Contract",
|
|
241
|
+
"inheritedExposure": [
|
|
242
|
+
"api",
|
|
243
|
+
"mcp"
|
|
244
|
+
],
|
|
240
245
|
"schema": {
|
|
241
246
|
"tableName": "contracts",
|
|
242
247
|
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"subtotal\" INTEGER DEFAULT 0,\n \"discount_total\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"money_authority\" TEXT DEFAULT 'calculated',\n \"received_purchase_money_json\" TEXT,\n \"billing_schedule_json\" TEXT DEFAULT '',\n \"line_amount_type\" TEXT DEFAULT 'exclusive',\n \"tax_rounding_scope\" TEXT DEFAULT 'line',\n \"seller_tax_registrations_json\" TEXT,\n \"party_tax_id\" TEXT,\n \"money_snapshot_id\" TEXT,\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT '',\n \"customer_id\" UUID,\n \"vendor_id\" UUID\n);",
|
|
@@ -568,6 +573,11 @@
|
|
|
568
573
|
"extendsTypeArg": "ContractLineItem",
|
|
569
574
|
"exportName": "ContractLineItemCollection",
|
|
570
575
|
"collectionExportName": "ContractLineItemCollectionCollection",
|
|
576
|
+
"collectionOf": "@happyvertical/smrt-commerce:ContractLineItem",
|
|
577
|
+
"inheritedExposure": [
|
|
578
|
+
"api",
|
|
579
|
+
"mcp"
|
|
580
|
+
],
|
|
571
581
|
"schema": {
|
|
572
582
|
"tableName": "contract_line_items",
|
|
573
583
|
"ddl": "CREATE TABLE IF NOT EXISTS \"contract_line_items\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"description\" TEXT DEFAULT '',\n \"quantity\" REAL DEFAULT 1,\n \"unit_price\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"discount_type\" TEXT DEFAULT 'none',\n \"discount_rate\" REAL,\n \"tax_rate\" REAL DEFAULT 0,\n \"tax_mode\" TEXT DEFAULT 'inherit',\n \"tax_code_id\" UUID,\n \"tax_code_code\" TEXT,\n \"tax_code_name\" TEXT,\n \"tax_components_json\" TEXT,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"money_snapshot_id\" TEXT,\n \"amount\" INTEGER DEFAULT 0,\n \"product_id\" UUID,\n \"sku\" TEXT DEFAULT '',\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"billing_period\" TEXT DEFAULT '',\n \"sort_order\" INTEGER DEFAULT 0\n);",
|
|
@@ -899,6 +909,11 @@
|
|
|
899
909
|
"extendsTypeArg": "Customer",
|
|
900
910
|
"exportName": "CustomerCollection",
|
|
901
911
|
"collectionExportName": "CustomerCollectionCollection",
|
|
912
|
+
"collectionOf": "@happyvertical/smrt-commerce:Customer",
|
|
913
|
+
"inheritedExposure": [
|
|
914
|
+
"api",
|
|
915
|
+
"mcp"
|
|
916
|
+
],
|
|
902
917
|
"schema": {
|
|
903
918
|
"tableName": "customers",
|
|
904
919
|
"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_tax_code_id\" UUID,\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);",
|
|
@@ -1141,6 +1156,12 @@
|
|
|
1141
1156
|
"extendsTypeArg": "DocumentTax",
|
|
1142
1157
|
"exportName": "DocumentTaxCollection",
|
|
1143
1158
|
"collectionExportName": "DocumentTaxCollectionCollection",
|
|
1159
|
+
"collectionOf": "@happyvertical/smrt-commerce:DocumentTax",
|
|
1160
|
+
"inheritedExposure": [
|
|
1161
|
+
"api",
|
|
1162
|
+
"mcp",
|
|
1163
|
+
"cli"
|
|
1164
|
+
],
|
|
1144
1165
|
"schema": {
|
|
1145
1166
|
"tableName": "document_taxes",
|
|
1146
1167
|
"ddl": "CREATE TABLE IF NOT EXISTS \"document_taxes\" (\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 NOT NULL,\n \"document_type\" TEXT NOT NULL DEFAULT 'invoice',\n \"document_id\" TEXT NOT NULL,\n \"currency\" TEXT NOT NULL,\n \"tax_code_id\" TEXT,\n \"tax_code_code\" TEXT,\n \"kind\" TEXT,\n \"tax_component_id\" TEXT,\n \"tax_component_name\" TEXT,\n \"percent\" REAL,\n \"liability_account_id\" TEXT,\n \"taxable_minor\" INTEGER NOT NULL DEFAULT 0,\n \"net_minor\" INTEGER,\n \"tax_minor\" INTEGER NOT NULL DEFAULT 0,\n \"recoverable_minor\" INTEGER NOT NULL DEFAULT 0\n);",
|
|
@@ -1439,6 +1460,11 @@
|
|
|
1439
1460
|
"extendsTypeArg": "Fulfillment",
|
|
1440
1461
|
"exportName": "FulfillmentCollection",
|
|
1441
1462
|
"collectionExportName": "FulfillmentCollectionCollection",
|
|
1463
|
+
"collectionOf": "@happyvertical/smrt-commerce:Fulfillment",
|
|
1464
|
+
"inheritedExposure": [
|
|
1465
|
+
"api",
|
|
1466
|
+
"mcp"
|
|
1467
|
+
],
|
|
1442
1468
|
"schema": {
|
|
1443
1469
|
"tableName": "fulfillments",
|
|
1444
1470
|
"ddl": "CREATE TABLE IF NOT EXISTS \"fulfillments\" (\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 \"contract_id\" UUID,\n \"fulfillment_type\" TEXT,\n \"status\" TEXT,\n \"tracking_number\" TEXT DEFAULT '',\n \"carrier\" TEXT DEFAULT '',\n \"shipping_address\" JSON,\n \"shipped_at\" TIMESTAMP,\n \"delivered_at\" TIMESTAMP,\n \"estimated_delivery\" TIMESTAMP,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
@@ -1673,6 +1699,11 @@
|
|
|
1673
1699
|
"extendsTypeArg": "FulfillmentLineItem",
|
|
1674
1700
|
"exportName": "FulfillmentLineItemCollection",
|
|
1675
1701
|
"collectionExportName": "FulfillmentLineItemCollectionCollection",
|
|
1702
|
+
"collectionOf": "@happyvertical/smrt-commerce:FulfillmentLineItem",
|
|
1703
|
+
"inheritedExposure": [
|
|
1704
|
+
"api",
|
|
1705
|
+
"mcp"
|
|
1706
|
+
],
|
|
1676
1707
|
"schema": {
|
|
1677
1708
|
"tableName": "fulfillment_line_items",
|
|
1678
1709
|
"ddl": "CREATE TABLE IF NOT EXISTS \"fulfillment_line_items\" (\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 \"fulfillment_id\" UUID,\n \"contract_line_item_id\" UUID,\n \"quantity_fulfilled\" REAL DEFAULT 1,\n \"notes\" TEXT DEFAULT ''\n);",
|
|
@@ -1814,6 +1845,12 @@
|
|
|
1814
1845
|
"extendsTypeArg": "HistoricalCustomerFunds",
|
|
1815
1846
|
"exportName": "HistoricalCustomerFundsCollection",
|
|
1816
1847
|
"collectionExportName": "HistoricalCustomerFundsCollectionCollection",
|
|
1848
|
+
"collectionOf": "@happyvertical/smrt-commerce:HistoricalCustomerFunds",
|
|
1849
|
+
"inheritedExposure": [
|
|
1850
|
+
"api",
|
|
1851
|
+
"mcp",
|
|
1852
|
+
"cli"
|
|
1853
|
+
],
|
|
1817
1854
|
"schema": {
|
|
1818
1855
|
"tableName": "historical_customer_funds",
|
|
1819
1856
|
"ddl": "CREATE TABLE IF NOT EXISTS \"historical_customer_funds\" (\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 NOT NULL,\n \"customer_id\" UUID,\n \"contract_id\" UUID,\n \"source_key_hash\" TEXT,\n \"kind\" TEXT DEFAULT 'receipt',\n \"origin\" TEXT DEFAULT 'historical',\n \"payment_id\" UUID,\n \"currency\" TEXT,\n \"amount_minor\" INTEGER NOT NULL DEFAULT 0,\n \"effective_on\" TEXT,\n \"source_receipt_id\" UUID,\n \"source_credit_note_id\" UUID,\n \"snapshot_json\" TEXT\n);",
|
|
@@ -2042,6 +2079,12 @@
|
|
|
2042
2079
|
"extendsTypeArg": "HistoricalCustomerFundsAllocation",
|
|
2043
2080
|
"exportName": "HistoricalCustomerFundsAllocationCollection",
|
|
2044
2081
|
"collectionExportName": "HistoricalCustomerFundsAllocationCollectionCollection",
|
|
2082
|
+
"collectionOf": "@happyvertical/smrt-commerce:HistoricalCustomerFundsAllocation",
|
|
2083
|
+
"inheritedExposure": [
|
|
2084
|
+
"api",
|
|
2085
|
+
"mcp",
|
|
2086
|
+
"cli"
|
|
2087
|
+
],
|
|
2045
2088
|
"schema": {
|
|
2046
2089
|
"tableName": "historical_customer_funds_allocations",
|
|
2047
2090
|
"ddl": "CREATE TABLE IF NOT EXISTS \"historical_customer_funds_allocations\" (\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 NOT NULL,\n \"receipt_id\" UUID,\n \"credit_note_id\" UUID,\n \"invoice_id\" UUID,\n \"source_key_hash\" TEXT,\n \"amount_minor\" INTEGER NOT NULL DEFAULT 0,\n \"effective_on\" TEXT,\n \"origin\" TEXT DEFAULT 'historical',\n \"effect\" TEXT DEFAULT 'payment',\n \"journal_id\" UUID,\n \"snapshot_json\" TEXT\n);",
|
|
@@ -2241,6 +2284,12 @@
|
|
|
2241
2284
|
"extendsTypeArg": "HistoricalSalesLine",
|
|
2242
2285
|
"exportName": "HistoricalSalesLineCollection",
|
|
2243
2286
|
"collectionExportName": "HistoricalSalesLineCollectionCollection",
|
|
2287
|
+
"collectionOf": "@happyvertical/smrt-commerce:HistoricalSalesLine",
|
|
2288
|
+
"inheritedExposure": [
|
|
2289
|
+
"api",
|
|
2290
|
+
"mcp",
|
|
2291
|
+
"cli"
|
|
2292
|
+
],
|
|
2244
2293
|
"schema": {
|
|
2245
2294
|
"tableName": "historical_sales_lines",
|
|
2246
2295
|
"ddl": "CREATE TABLE IF NOT EXISTS \"historical_sales_lines\" (\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 NOT NULL,\n \"invoice_id\" UUID,\n \"credited_line_id\" UUID,\n \"source_key\" TEXT,\n \"source_key_hash\" TEXT,\n \"description\" TEXT,\n \"net_minor\" INTEGER NOT NULL DEFAULT 0,\n \"tax_minor\" INTEGER,\n \"gross_minor\" INTEGER,\n \"quantity_text\" TEXT,\n \"unit_rate_text\" TEXT,\n \"source_fields_json\" TEXT,\n \"money_snapshot_id\" TEXT\n);",
|
|
@@ -2682,6 +2731,11 @@
|
|
|
2682
2731
|
"extendsTypeArg": "Invoice",
|
|
2683
2732
|
"exportName": "InvoiceCollection",
|
|
2684
2733
|
"collectionExportName": "InvoiceCollectionCollection",
|
|
2734
|
+
"collectionOf": "@happyvertical/smrt-commerce:Invoice",
|
|
2735
|
+
"inheritedExposure": [
|
|
2736
|
+
"api",
|
|
2737
|
+
"mcp"
|
|
2738
|
+
],
|
|
2685
2739
|
"schema": {
|
|
2686
2740
|
"tableName": "invoices",
|
|
2687
2741
|
"ddl": "CREATE TABLE IF NOT EXISTS \"invoices\" (\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 \"money_authority\" TEXT DEFAULT 'calculated',\n \"historical_sales_money_json\" TEXT,\n \"historical_source_key_hash\" TEXT,\n \"kind\" TEXT DEFAULT 'invoice',\n \"credited_invoice_id\" UUID,\n \"credited_amount\" INTEGER NOT NULL DEFAULT 0,\n \"retention_state_json\" TEXT,\n \"retention_accounting_state_json\" TEXT,\n \"ordinary_accounting_state_json\" TEXT,\n \"tenant_id\" UUID,\n \"customer_id\" UUID,\n \"contract_id\" UUID,\n \"invoice_number\" TEXT DEFAULT '',\n \"reference\" TEXT DEFAULT '',\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"paid_date\" TIMESTAMP,\n \"subtotal\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"provider_tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"amount_paid\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'CAD',\n \"line_amount_type\" TEXT DEFAULT 'exclusive',\n \"tax_rounding_scope\" TEXT DEFAULT 'line',\n \"discount_total\" INTEGER NOT NULL DEFAULT 0,\n \"seller_tax_registrations_json\" TEXT,\n \"party_tax_id\" TEXT,\n \"money_snapshot_id\" TEXT,\n \"status\" TEXT,\n \"ar_journal_id\" UUID,\n \"ar_reversal_journal_id\" UUID,\n \"revenue_journal_id\" UUID,\n \"external_id\" TEXT DEFAULT '',\n \"customer_external_id\" TEXT DEFAULT '',\n \"external_provider\" TEXT DEFAULT '',\n \"synced_at\" TIMESTAMP,\n \"accounting_sync_state_json\" TEXT,\n \"collection_method\" TEXT DEFAULT '',\n \"sent_at\" TIMESTAMP,\n \"viewed_at\" TIMESTAMP,\n \"reminders_sent\" INTEGER DEFAULT 0,\n \"last_reminder_at\" TIMESTAMP,\n \"notes\" TEXT DEFAULT '',\n \"customer_notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT ''\n);",
|
|
@@ -3240,6 +3294,11 @@
|
|
|
3240
3294
|
"extendsTypeArg": "InvoiceLineItem",
|
|
3241
3295
|
"exportName": "InvoiceLineItemCollection",
|
|
3242
3296
|
"collectionExportName": "InvoiceLineItemCollectionCollection",
|
|
3297
|
+
"collectionOf": "@happyvertical/smrt-commerce:InvoiceLineItem",
|
|
3298
|
+
"inheritedExposure": [
|
|
3299
|
+
"api",
|
|
3300
|
+
"mcp"
|
|
3301
|
+
],
|
|
3243
3302
|
"schema": {
|
|
3244
3303
|
"tableName": "invoice_line_items",
|
|
3245
3304
|
"ddl": "CREATE TABLE IF NOT EXISTS \"invoice_line_items\" (\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 \"invoice_id\" UUID,\n \"credited_line_id\" UUID,\n \"credit_calculation_basis_json\" TEXT,\n \"description\" TEXT DEFAULT '',\n \"sku\" TEXT DEFAULT '',\n \"product_id\" UUID,\n \"quantity\" REAL DEFAULT 1,\n \"unit_price\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"discount_type\" TEXT DEFAULT 'none',\n \"discount_rate\" REAL,\n \"tax_rate\" REAL DEFAULT 0,\n \"tax_mode\" TEXT DEFAULT 'inherit',\n \"tax_code_id\" UUID,\n \"tax_code_code\" TEXT,\n \"tax_code_name\" TEXT,\n \"tax_components_json\" TEXT,\n \"tax_amount\" INTEGER NOT NULL DEFAULT 0,\n \"money_snapshot_id\" TEXT,\n \"amount\" INTEGER DEFAULT 0,\n \"source_type\" TEXT DEFAULT '',\n \"source_id\" TEXT DEFAULT '',\n \"period_start\" TIMESTAMP,\n \"period_end\" TIMESTAMP,\n \"revenue_account_id\" UUID,\n \"sort_order\" INTEGER DEFAULT 0\n);",
|
|
@@ -3725,6 +3784,12 @@
|
|
|
3725
3784
|
"extendsTypeArg": "PaymentAllocation",
|
|
3726
3785
|
"exportName": "PaymentAllocationCollection",
|
|
3727
3786
|
"collectionExportName": "PaymentAllocationCollectionCollection",
|
|
3787
|
+
"collectionOf": "@happyvertical/smrt-commerce:PaymentAllocation",
|
|
3788
|
+
"inheritedExposure": [
|
|
3789
|
+
"api",
|
|
3790
|
+
"mcp",
|
|
3791
|
+
"cli"
|
|
3792
|
+
],
|
|
3728
3793
|
"schema": {
|
|
3729
3794
|
"tableName": "payment_allocations",
|
|
3730
3795
|
"ddl": "CREATE TABLE IF NOT EXISTS \"payment_allocations\" (\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 \"payment_id\" UUID,\n \"invoice_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"allocated_at\" TIMESTAMP,\n \"allocated_by\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT ''\n);",
|
|
@@ -4042,6 +4107,11 @@
|
|
|
4042
4107
|
"extendsTypeArg": "Payment",
|
|
4043
4108
|
"exportName": "PaymentCollection",
|
|
4044
4109
|
"collectionExportName": "PaymentCollectionCollection",
|
|
4110
|
+
"collectionOf": "@happyvertical/smrt-commerce:Payment",
|
|
4111
|
+
"inheritedExposure": [
|
|
4112
|
+
"api",
|
|
4113
|
+
"mcp"
|
|
4114
|
+
],
|
|
4045
4115
|
"schema": {
|
|
4046
4116
|
"tableName": "payments",
|
|
4047
4117
|
"ddl": "CREATE TABLE IF NOT EXISTS \"payments\" (\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 \"kind\" TEXT DEFAULT 'payment',\n \"customer_funds_json\" TEXT,\n \"retention_accounting_binding_json\" TEXT,\n \"ordinary_accounting_binding_json\" TEXT,\n \"tenant_id\" UUID,\n \"contract_id\" UUID,\n \"customer_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"method\" TEXT,\n \"status\" TEXT,\n \"transaction_id\" TEXT DEFAULT '',\n \"reference\" TEXT DEFAULT '',\n \"journal_id\" UUID,\n \"paid_at\" TIMESTAMP,\n \"notes\" TEXT DEFAULT '',\n \"external_id\" TEXT DEFAULT '',\n \"external_provider\" TEXT DEFAULT '',\n \"synced_at\" TIMESTAMP,\n \"backend_id\" TEXT DEFAULT '',\n \"backend_tx_ref\" TEXT DEFAULT '',\n \"native_amount\" INTEGER DEFAULT 0,\n \"native_currency\" TEXT DEFAULT '',\n \"usd_at_quote\" INTEGER DEFAULT 0,\n \"usd_at_confirmation\" INTEGER DEFAULT 0,\n \"connected_account_id\" TEXT DEFAULT '',\n \"connected_fee_policy_ref\" TEXT DEFAULT '',\n \"application_fee_cents\" INTEGER DEFAULT 0,\n \"refund_of_payment_id\" TEXT DEFAULT '',\n \"connected_refund_state\" TEXT DEFAULT '',\n \"application_fee_refunded\" BOOLEAN DEFAULT FALSE\n);",
|
|
@@ -4445,6 +4515,11 @@
|
|
|
4445
4515
|
"extendsTypeArg": "PaymentInstrument",
|
|
4446
4516
|
"exportName": "PaymentInstrumentCollection",
|
|
4447
4517
|
"collectionExportName": "PaymentInstrumentCollectionCollection",
|
|
4518
|
+
"collectionOf": "@happyvertical/smrt-commerce:PaymentInstrument",
|
|
4519
|
+
"inheritedExposure": [
|
|
4520
|
+
"api",
|
|
4521
|
+
"mcp"
|
|
4522
|
+
],
|
|
4448
4523
|
"schema": {
|
|
4449
4524
|
"tableName": "payment_instruments",
|
|
4450
4525
|
"ddl": "CREATE TABLE IF NOT EXISTS \"payment_instruments\" (\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 \"customer_id\" UUID,\n \"backend_id\" TEXT DEFAULT '',\n \"provider_customer_id\" TEXT DEFAULT '',\n \"provider_payment_method_id\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'card',\n \"brand\" TEXT DEFAULT '',\n \"last4\" TEXT DEFAULT '',\n \"exp_month\" INTEGER DEFAULT 0,\n \"exp_year\" INTEGER DEFAULT 0,\n \"is_default\" BOOLEAN DEFAULT FALSE,\n \"status\" TEXT\n);",
|
|
@@ -4733,6 +4808,11 @@
|
|
|
4733
4808
|
"extendsTypeArg": "PaymentIntent",
|
|
4734
4809
|
"exportName": "PaymentIntentCollection",
|
|
4735
4810
|
"collectionExportName": "PaymentIntentCollectionCollection",
|
|
4811
|
+
"collectionOf": "@happyvertical/smrt-commerce:PaymentIntent",
|
|
4812
|
+
"inheritedExposure": [
|
|
4813
|
+
"api",
|
|
4814
|
+
"mcp"
|
|
4815
|
+
],
|
|
4736
4816
|
"schema": {
|
|
4737
4817
|
"tableName": "payment_intents",
|
|
4738
4818
|
"ddl": "CREATE TABLE IF NOT EXISTS \"payment_intents\" (\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 \"sku_id\" TEXT DEFAULT '',\n \"offering_ref\" TEXT DEFAULT '',\n \"licensee_email\" TEXT DEFAULT '',\n \"customer_id\" TEXT DEFAULT '',\n \"payment_options\" JSON DEFAULT '[]',\n \"usd_price_locked\" INTEGER DEFAULT 0,\n \"price_lock_window_ms\" INTEGER,\n \"price_lock_expires_at\" TIMESTAMP,\n \"status\" TEXT,\n \"idempotency_key\" TEXT DEFAULT '',\n \"paid_option_backend_id\" TEXT DEFAULT '',\n \"payment_id\" TEXT DEFAULT '',\n \"paid_at\" TIMESTAMP,\n \"issued_at\" TIMESTAMP,\n \"expired_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"retired_at\" TIMESTAMP,\n \"notes\" TEXT DEFAULT '',\n \"connected_account_id\" TEXT DEFAULT '',\n \"connected_fee_policy_ref\" TEXT DEFAULT '',\n \"application_fee_cents\" INTEGER DEFAULT 0,\n \"connected_environment\" TEXT DEFAULT '',\n \"connected_amount\" INTEGER DEFAULT 0,\n \"connected_currency\" TEXT DEFAULT ''\n);",
|
|
@@ -5106,6 +5186,12 @@
|
|
|
5106
5186
|
"extendsTypeArg": "Payout",
|
|
5107
5187
|
"exportName": "PayoutCollection",
|
|
5108
5188
|
"collectionExportName": "PayoutCollectionCollection",
|
|
5189
|
+
"collectionOf": "@happyvertical/smrt-commerce:Payout",
|
|
5190
|
+
"inheritedExposure": [
|
|
5191
|
+
"api",
|
|
5192
|
+
"mcp",
|
|
5193
|
+
"cli"
|
|
5194
|
+
],
|
|
5109
5195
|
"schema": {
|
|
5110
5196
|
"tableName": "payouts",
|
|
5111
5197
|
"ddl": "CREATE TABLE IF NOT EXISTS \"payouts\" (\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 \"payment_id\" TEXT DEFAULT '',\n \"vendor_id\" UUID,\n \"gross_amount\" INTEGER DEFAULT 0,\n \"operator_fee\" INTEGER DEFAULT 0,\n \"supplier_net\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT '',\n \"backend_id\" TEXT DEFAULT '',\n \"backend_tx_ref\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"sent_at\" TIMESTAMP,\n \"confirmed_at\" TIMESTAMP,\n \"failed_at\" TIMESTAMP,\n \"failure_reason\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT ''\n);",
|
|
@@ -5323,6 +5409,11 @@
|
|
|
5323
5409
|
"extendsTypeArg": "PurchaseContract",
|
|
5324
5410
|
"exportName": "PurchaseContractCollection",
|
|
5325
5411
|
"collectionExportName": "PurchaseContractCollectionCollection",
|
|
5412
|
+
"collectionOf": "@happyvertical/smrt-commerce:PurchaseContract",
|
|
5413
|
+
"inheritedExposure": [
|
|
5414
|
+
"api",
|
|
5415
|
+
"mcp"
|
|
5416
|
+
],
|
|
5326
5417
|
"schema": {
|
|
5327
5418
|
"tableName": "contracts",
|
|
5328
5419
|
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"subtotal\" INTEGER DEFAULT 0,\n \"discount_total\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"money_authority\" TEXT DEFAULT 'calculated',\n \"received_purchase_money_json\" TEXT,\n \"billing_schedule_json\" TEXT DEFAULT '',\n \"line_amount_type\" TEXT DEFAULT 'exclusive',\n \"tax_rounding_scope\" TEXT DEFAULT 'line',\n \"seller_tax_registrations_json\" TEXT,\n \"party_tax_id\" TEXT,\n \"money_snapshot_id\" TEXT,\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT '',\n \"customer_id\" UUID,\n \"vendor_id\" UUID\n);",
|
|
@@ -5549,6 +5640,12 @@
|
|
|
5549
5640
|
"extendsTypeArg": "PurchasePriceObservation",
|
|
5550
5641
|
"exportName": "PurchasePriceObservationCollection",
|
|
5551
5642
|
"collectionExportName": "PurchasePriceObservationCollectionCollection",
|
|
5643
|
+
"collectionOf": "@happyvertical/smrt-commerce:PurchasePriceObservation",
|
|
5644
|
+
"inheritedExposure": [
|
|
5645
|
+
"api",
|
|
5646
|
+
"mcp",
|
|
5647
|
+
"cli"
|
|
5648
|
+
],
|
|
5552
5649
|
"schema": {
|
|
5553
5650
|
"tableName": "purchase_price_observations",
|
|
5554
5651
|
"ddl": "CREATE TABLE IF NOT EXISTS \"purchase_price_observations\" (\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 NOT NULL,\n \"source_identity\" TEXT,\n \"vendor_id\" TEXT,\n \"snapshot_json\" TEXT,\n \"completion_json\" TEXT\n);",
|
|
@@ -5693,6 +5790,11 @@
|
|
|
5693
5790
|
"extendsTypeArg": "SalesContract",
|
|
5694
5791
|
"exportName": "SalesContractCollection",
|
|
5695
5792
|
"collectionExportName": "SalesContractCollectionCollection",
|
|
5793
|
+
"collectionOf": "@happyvertical/smrt-commerce:SalesContract",
|
|
5794
|
+
"inheritedExposure": [
|
|
5795
|
+
"api",
|
|
5796
|
+
"mcp"
|
|
5797
|
+
],
|
|
5696
5798
|
"schema": {
|
|
5697
5799
|
"tableName": "contracts",
|
|
5698
5800
|
"ddl": "CREATE TABLE IF NOT EXISTS \"contracts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"contract_type\" TEXT,\n \"status\" TEXT,\n \"subtotal\" INTEGER DEFAULT 0,\n \"discount_total\" INTEGER DEFAULT 0,\n \"tax_amount\" INTEGER DEFAULT 0,\n \"total_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"money_authority\" TEXT DEFAULT 'calculated',\n \"received_purchase_money_json\" TEXT,\n \"billing_schedule_json\" TEXT DEFAULT '',\n \"line_amount_type\" TEXT DEFAULT 'exclusive',\n \"tax_rounding_scope\" TEXT DEFAULT 'line',\n \"seller_tax_registrations_json\" TEXT,\n \"party_tax_id\" TEXT,\n \"money_snapshot_id\" TEXT,\n \"issue_date\" TIMESTAMP,\n \"due_date\" TIMESTAMP,\n \"expiry_date\" TIMESTAMP,\n \"reference\" TEXT DEFAULT '',\n \"notes\" TEXT DEFAULT '',\n \"terms\" TEXT DEFAULT '',\n \"channel_id\" TEXT DEFAULT '',\n \"customer_id\" UUID,\n \"vendor_id\" UUID\n);",
|
|
@@ -5950,6 +6052,11 @@
|
|
|
5950
6052
|
"extendsTypeArg": "TaxCode",
|
|
5951
6053
|
"exportName": "TaxCodeCollection",
|
|
5952
6054
|
"collectionExportName": "TaxCodeCollectionCollection",
|
|
6055
|
+
"collectionOf": "@happyvertical/smrt-commerce:TaxCode",
|
|
6056
|
+
"inheritedExposure": [
|
|
6057
|
+
"api",
|
|
6058
|
+
"mcp"
|
|
6059
|
+
],
|
|
5953
6060
|
"schema": {
|
|
5954
6061
|
"tableName": "tax_codes",
|
|
5955
6062
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tax_codes\" (\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 NOT NULL,\n \"code\" TEXT,\n \"name\" TEXT,\n \"kind\" TEXT DEFAULT 'taxable',\n \"applies_to\" TEXT DEFAULT 'both',\n \"components_json\" TEXT,\n \"active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
|
|
@@ -6077,6 +6184,11 @@
|
|
|
6077
6184
|
"extendsTypeArg": "TaxComponent",
|
|
6078
6185
|
"exportName": "TaxComponentCollection",
|
|
6079
6186
|
"collectionExportName": "TaxComponentCollectionCollection",
|
|
6187
|
+
"collectionOf": "@happyvertical/smrt-commerce:TaxComponent",
|
|
6188
|
+
"inheritedExposure": [
|
|
6189
|
+
"api",
|
|
6190
|
+
"mcp"
|
|
6191
|
+
],
|
|
6080
6192
|
"schema": {
|
|
6081
6193
|
"tableName": "tax_components",
|
|
6082
6194
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tax_components\" (\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 NOT NULL,\n \"name\" TEXT,\n \"percent\" REAL,\n \"liability_account_id\" UUID,\n \"recoverable\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"active\" BOOLEAN NOT NULL DEFAULT TRUE\n);",
|
|
@@ -6239,6 +6351,11 @@
|
|
|
6239
6351
|
"extendsTypeArg": "TaxSettings",
|
|
6240
6352
|
"exportName": "TaxSettingsCollection",
|
|
6241
6353
|
"collectionExportName": "TaxSettingsCollectionCollection",
|
|
6354
|
+
"collectionOf": "@happyvertical/smrt-commerce:TaxSettings",
|
|
6355
|
+
"inheritedExposure": [
|
|
6356
|
+
"api",
|
|
6357
|
+
"mcp"
|
|
6358
|
+
],
|
|
6242
6359
|
"schema": {
|
|
6243
6360
|
"tableName": "tax_settings",
|
|
6244
6361
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tax_settings\" (\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 NOT NULL,\n \"default_sales_tax_code_id\" UUID,\n \"default_purchase_tax_code_id\" UUID,\n \"default_line_amount_type\" TEXT DEFAULT 'exclusive',\n \"tax_rounding_scope\" TEXT DEFAULT 'line',\n \"tax_registrations_json\" TEXT\n);",
|
|
@@ -6496,6 +6613,12 @@
|
|
|
6496
6613
|
"extendsTypeArg": "TaxSummaryReport",
|
|
6497
6614
|
"exportName": "TaxSummaryReportCollection",
|
|
6498
6615
|
"collectionExportName": "TaxSummaryReportCollectionCollection",
|
|
6616
|
+
"collectionOf": "@happyvertical/smrt-commerce:TaxSummaryReport",
|
|
6617
|
+
"inheritedExposure": [
|
|
6618
|
+
"api",
|
|
6619
|
+
"mcp",
|
|
6620
|
+
"cli"
|
|
6621
|
+
],
|
|
6499
6622
|
"schema": {
|
|
6500
6623
|
"tableName": "tax_summary_reports",
|
|
6501
6624
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tax_summary_reports\" (\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 \"refreshed_at\" TIMESTAMP,\n \"tenant_id\" UUID NOT NULL,\n \"period_from\" TIMESTAMP,\n \"period_to\" TIMESTAMP,\n \"currency\" TEXT,\n \"row_kind\" TEXT DEFAULT 'component',\n \"dimension_key\" TEXT,\n \"direction\" TEXT,\n \"tax_component_id\" TEXT,\n \"tax_code_kind\" TEXT,\n \"liability_account_id\" TEXT,\n \"taxable_minor\" INTEGER NOT NULL DEFAULT 0,\n \"tax_minor\" INTEGER NOT NULL DEFAULT 0,\n \"recoverable_minor\" INTEGER,\n \"ledger_movement_minor\" INTEGER,\n \"net_tax_minor\" INTEGER,\n \"difference_minor\" INTEGER,\n \"document_count\" INTEGER NOT NULL DEFAULT 0,\n \"source_scopes\" TEXT,\n \"complete\" BOOLEAN NOT NULL DEFAULT TRUE,\n \"warning_code\" TEXT,\n \"warning_source_type\" TEXT,\n \"warning_source_id\" TEXT,\n \"warning_message\" TEXT\n);",
|
|
@@ -6754,6 +6877,12 @@
|
|
|
6754
6877
|
"extendsTypeArg": "TenantPaymentAccount",
|
|
6755
6878
|
"exportName": "TenantPaymentAccountCollection",
|
|
6756
6879
|
"collectionExportName": "TenantPaymentAccountCollectionCollection",
|
|
6880
|
+
"collectionOf": "@happyvertical/smrt-commerce:TenantPaymentAccount",
|
|
6881
|
+
"inheritedExposure": [
|
|
6882
|
+
"api",
|
|
6883
|
+
"mcp",
|
|
6884
|
+
"cli"
|
|
6885
|
+
],
|
|
6757
6886
|
"schema": {
|
|
6758
6887
|
"tableName": "tenant_payment_accounts",
|
|
6759
6888
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tenant_payment_accounts\" (\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 NOT NULL,\n \"backend_id\" TEXT NOT NULL DEFAULT 'stripe',\n \"environment\" TEXT NOT NULL DEFAULT 'test',\n \"provider_account_id\" TEXT NOT NULL DEFAULT '',\n \"status\" TEXT DEFAULT 'pending',\n \"charges_enabled\" BOOLEAN DEFAULT FALSE,\n \"details_submitted\" BOOLEAN DEFAULT FALSE,\n \"payouts_enabled\" BOOLEAN DEFAULT FALSE,\n \"capabilities_json\" TEXT,\n \"capabilities_observed_at\" TIMESTAMP,\n \"fee_policy_ref\" TEXT DEFAULT '',\n \"disabled_at\" TIMESTAMP,\n \"disabled_reason\" TEXT DEFAULT ''\n);",
|
|
@@ -7024,6 +7153,11 @@
|
|
|
7024
7153
|
"extendsTypeArg": "Vendor",
|
|
7025
7154
|
"exportName": "VendorCollection",
|
|
7026
7155
|
"collectionExportName": "VendorCollectionCollection",
|
|
7156
|
+
"collectionOf": "@happyvertical/smrt-commerce:Vendor",
|
|
7157
|
+
"inheritedExposure": [
|
|
7158
|
+
"api",
|
|
7159
|
+
"mcp"
|
|
7160
|
+
],
|
|
7027
7161
|
"schema": {
|
|
7028
7162
|
"tableName": "vendors",
|
|
7029
7163
|
"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 \"tax_id\" TEXT DEFAULT '',\n \"default_tax_code_id\" UUID,\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);",
|
|
@@ -25030,6 +25164,12 @@
|
|
|
25030
25164
|
"extendsTypeArg": "TenantPaymentDispute",
|
|
25031
25165
|
"exportName": "TenantPaymentDisputeCollection",
|
|
25032
25166
|
"collectionExportName": "TenantPaymentDisputeCollectionCollection",
|
|
25167
|
+
"collectionOf": "@happyvertical/smrt-commerce:TenantPaymentDispute",
|
|
25168
|
+
"inheritedExposure": [
|
|
25169
|
+
"api",
|
|
25170
|
+
"mcp",
|
|
25171
|
+
"cli"
|
|
25172
|
+
],
|
|
25033
25173
|
"schema": {
|
|
25034
25174
|
"tableName": "tenant_payment_disputes",
|
|
25035
25175
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tenant_payment_disputes\" (\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 NOT NULL,\n \"backend_id\" TEXT DEFAULT '',\n \"environment\" TEXT DEFAULT 'test',\n \"provider_account_id\" TEXT DEFAULT '',\n \"dispute_id\" TEXT DEFAULT '',\n \"payment_id\" UUID,\n \"status\" TEXT DEFAULT 'unknown',\n \"snapshot_json\" TEXT\n);",
|
|
@@ -25452,6 +25592,12 @@
|
|
|
25452
25592
|
"extendsTypeArg": "TenantPaymentWebhookEvent",
|
|
25453
25593
|
"exportName": "TenantPaymentWebhookEventCollection",
|
|
25454
25594
|
"collectionExportName": "TenantPaymentWebhookEventCollectionCollection",
|
|
25595
|
+
"collectionOf": "@happyvertical/smrt-commerce:TenantPaymentWebhookEvent",
|
|
25596
|
+
"inheritedExposure": [
|
|
25597
|
+
"api",
|
|
25598
|
+
"mcp",
|
|
25599
|
+
"cli"
|
|
25600
|
+
],
|
|
25455
25601
|
"schema": {
|
|
25456
25602
|
"tableName": "_smrt_tenant_payment_webhook_events",
|
|
25457
25603
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_tenant_payment_webhook_events\" (\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 \"backend_id\" TEXT NOT NULL DEFAULT '',\n \"environment\" TEXT NOT NULL DEFAULT '',\n \"event_id\" TEXT NOT NULL DEFAULT '',\n \"event_type\" TEXT DEFAULT '',\n \"endpoint\" TEXT DEFAULT '',\n \"tenant_id\" UUID NOT NULL,\n \"provider_account_id\" TEXT DEFAULT '',\n \"outcome\" TEXT DEFAULT 'ignored',\n \"payment_intent_id\" TEXT DEFAULT '',\n \"payment_id\" TEXT DEFAULT '',\n \"application_fee_json\" TEXT,\n \"processed_at\" TIMESTAMP\n);",
|
|
@@ -27501,6 +27647,12 @@
|
|
|
27501
27647
|
"extendsTypeArg": "BillingAccount",
|
|
27502
27648
|
"exportName": "BillingAccountCollection",
|
|
27503
27649
|
"collectionExportName": "BillingAccountCollectionCollection",
|
|
27650
|
+
"collectionOf": "@happyvertical/smrt-commerce:BillingAccount",
|
|
27651
|
+
"inheritedExposure": [
|
|
27652
|
+
"api",
|
|
27653
|
+
"mcp",
|
|
27654
|
+
"cli"
|
|
27655
|
+
],
|
|
27504
27656
|
"schema": {
|
|
27505
27657
|
"tableName": "_smrt_billing_accounts",
|
|
27506
27658
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_billing_accounts\" (\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 \"seller_tenant_id\" UUID NOT NULL,\n \"payer_tenant_id\" UUID NOT NULL,\n \"customer_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"email\" TEXT DEFAULT '',\n \"provider\" TEXT DEFAULT '',\n \"provider_customer_id\" TEXT DEFAULT '',\n \"automatic_tax\" BOOLEAN DEFAULT TRUE,\n \"flat_discount_basis_points\" INTEGER DEFAULT 0,\n \"payment_terms_days\" INTEGER DEFAULT 30,\n \"standing\" TEXT DEFAULT 'current',\n \"billing_anchor_at\" TIMESTAMP,\n \"prorate_flat_plans\" BOOLEAN DEFAULT FALSE\n);",
|
|
@@ -27672,6 +27824,12 @@
|
|
|
27672
27824
|
"extendsTypeArg": "BillingPeriodClose",
|
|
27673
27825
|
"exportName": "BillingPeriodCloseCollection",
|
|
27674
27826
|
"collectionExportName": "BillingPeriodCloseCollectionCollection",
|
|
27827
|
+
"collectionOf": "@happyvertical/smrt-commerce:BillingPeriodClose",
|
|
27828
|
+
"inheritedExposure": [
|
|
27829
|
+
"api",
|
|
27830
|
+
"mcp",
|
|
27831
|
+
"cli"
|
|
27832
|
+
],
|
|
27675
27833
|
"schema": {
|
|
27676
27834
|
"tableName": "_smrt_billing_period_closes",
|
|
27677
27835
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_billing_period_closes\" (\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 \"seller_tenant_id\" UUID NOT NULL,\n \"kind\" TEXT DEFAULT 'provider',\n \"payer_tenant_id\" UUID NOT NULL,\n \"currency\" TEXT DEFAULT 'USD',\n \"period_start\" TIMESTAMP,\n \"period_end\" TIMESTAMP,\n \"billing_account_id\" UUID,\n \"status\" TEXT DEFAULT 'collecting',\n \"invoice_id\" UUID,\n \"provider_invoice_id\" TEXT DEFAULT '',\n \"subtotal\" INTEGER DEFAULT 0,\n \"line_count\" INTEGER DEFAULT 0,\n \"issued_at\" TIMESTAMP,\n \"lease_token\" TEXT,\n \"lease_expires_at\" TIMESTAMP,\n \"attempts\" INTEGER DEFAULT 0,\n \"last_error\" TEXT DEFAULT ''\n);",
|
|
@@ -27880,6 +28038,12 @@
|
|
|
27880
28038
|
"extendsTypeArg": "BillingLineSource",
|
|
27881
28039
|
"exportName": "BillingLineSourceCollection",
|
|
27882
28040
|
"collectionExportName": "BillingLineSourceCollectionCollection",
|
|
28041
|
+
"collectionOf": "@happyvertical/smrt-commerce:BillingLineSource",
|
|
28042
|
+
"inheritedExposure": [
|
|
28043
|
+
"api",
|
|
28044
|
+
"mcp",
|
|
28045
|
+
"cli"
|
|
28046
|
+
],
|
|
27883
28047
|
"schema": {
|
|
27884
28048
|
"tableName": "_smrt_billing_line_sources",
|
|
27885
28049
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_billing_line_sources\" (\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 \"seller_tenant_id\" UUID NOT NULL,\n \"period_close_id\" UUID,\n \"source_type\" TEXT DEFAULT 'client_charge',\n \"source_id\" TEXT DEFAULT '',\n \"line_key\" TEXT DEFAULT '',\n \"line_description\" TEXT DEFAULT '',\n \"amount\" INTEGER DEFAULT 0,\n \"discount\" INTEGER DEFAULT 0,\n \"quantity\" REAL DEFAULT 0,\n \"chain_sequence\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"period_start\" TIMESTAMP,\n \"period_end\" TIMESTAMP\n);",
|
|
@@ -28058,6 +28222,12 @@
|
|
|
28058
28222
|
"extendsTypeArg": "BillingPaymentAttempt",
|
|
28059
28223
|
"exportName": "BillingPaymentAttemptCollection",
|
|
28060
28224
|
"collectionExportName": "BillingPaymentAttemptCollectionCollection",
|
|
28225
|
+
"collectionOf": "@happyvertical/smrt-commerce:BillingPaymentAttempt",
|
|
28226
|
+
"inheritedExposure": [
|
|
28227
|
+
"api",
|
|
28228
|
+
"mcp",
|
|
28229
|
+
"cli"
|
|
28230
|
+
],
|
|
28061
28231
|
"schema": {
|
|
28062
28232
|
"tableName": "_smrt_billing_payment_attempts",
|
|
28063
28233
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_billing_payment_attempts\" (\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 \"seller_tenant_id\" UUID NOT NULL,\n \"payer_tenant_id\" UUID NOT NULL,\n \"billing_account_id\" TEXT DEFAULT '',\n \"purpose\" TEXT DEFAULT 'credit_purchase',\n \"invoice_id\" TEXT DEFAULT '',\n \"spending_policy_id\" TEXT DEFAULT '',\n \"provider\" TEXT DEFAULT '',\n \"order_id\" TEXT DEFAULT '',\n \"checkout_id\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'open',\n \"exception\" TEXT DEFAULT 'none',\n \"flag\" TEXT DEFAULT '',\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"amount_paid\" INTEGER DEFAULT 0,\n \"native_currency\" TEXT DEFAULT '',\n \"native_amount_due\" INTEGER DEFAULT 0,\n \"native_amount_paid\" INTEGER DEFAULT 0,\n \"rate\" TEXT DEFAULT '',\n \"rate_source\" TEXT DEFAULT '',\n \"checkout_url\" TEXT DEFAULT '',\n \"expires_at\" TIMESTAMP,\n \"payments\" JSON DEFAULT '[]',\n \"timeline\" JSON DEFAULT '[]',\n \"settled_at\" TIMESTAMP,\n \"payment_id\" TEXT DEFAULT '',\n \"credit_grant_id\" TEXT DEFAULT '',\n \"resolution\" TEXT DEFAULT '',\n \"resolved_at\" TIMESTAMP,\n \"out_of_band_requested_at\" TIMESTAMP,\n \"paused_standing\" TEXT DEFAULT '',\n \"excess_amount\" INTEGER DEFAULT 0,\n \"excess_revision\" INTEGER DEFAULT 0,\n \"settlement_outcome\" TEXT DEFAULT '',\n \"refunded_amount\" INTEGER DEFAULT 0,\n \"refunded_principal\" INTEGER DEFAULT 0,\n \"refunds\" JSON DEFAULT '[]'\n);",
|
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.47",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "67894286c15fdb53fdc0474a0e0dbcc97527871e6186579a53bfa233d904a2e3",
|
|
11
|
+
"packageJson": "5493ac870614cd729285d7a22bcf5b532a23f1797d3cb026b3bdacbbf00224e1",
|
|
12
12
|
"agents": "8fae989030badeabdb15109fab804aa7910c01570d449046c24a04678fe432a7",
|
|
13
13
|
"moduleDoc:agents/customer-vendor-ui.md": "2b22e519411a16d8c493496fc168da77b9acd25f6077ea8fbac00cfee3a3501c",
|
|
14
14
|
"moduleDoc:README.md": "beb2fada61d0babc7aa0528b883a9d47d6c827d876ace1cce04a908338fa01f8",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-commerce",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.47",
|
|
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.111.
|
|
67
|
-
"@happyvertical/payments": "^0.111.
|
|
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.111.
|
|
66
|
+
"@happyvertical/accounting": "^0.111.3",
|
|
67
|
+
"@happyvertical/payments": "^0.111.3",
|
|
68
|
+
"@happyvertical/smrt-agents": "0.57.47",
|
|
69
|
+
"@happyvertical/smrt-core": "0.57.47",
|
|
70
|
+
"@happyvertical/smrt-jobs": "0.57.47",
|
|
71
|
+
"@happyvertical/smrt-ledgers": "0.57.47",
|
|
72
|
+
"@happyvertical/smrt-products": "0.57.47",
|
|
73
|
+
"@happyvertical/smrt-reports": "0.57.47",
|
|
74
|
+
"@happyvertical/smrt-subscriptions": "0.57.47",
|
|
75
|
+
"@happyvertical/smrt-svelte": "0.57.47",
|
|
76
|
+
"@happyvertical/smrt-tenancy": "0.57.47",
|
|
77
|
+
"@happyvertical/smrt-types": "0.57.47",
|
|
78
|
+
"@happyvertical/smrt-ui": "0.57.47",
|
|
79
|
+
"@happyvertical/sql": "^0.111.3"
|
|
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.47",
|
|
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",
|