@happyvertical/smrt-subscriptions 0.55.1 → 0.55.3
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 +84 -13
- package/dist/smrt-knowledge.json +6 -3
- package/package.json +6 -6
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.3",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-subscriptions:SubscriptionPlanCollection": {
|
|
8
8
|
"name": "subscriptionplancollection",
|
|
@@ -721,7 +721,12 @@
|
|
|
721
721
|
"status": {
|
|
722
722
|
"type": "text",
|
|
723
723
|
"required": false,
|
|
724
|
-
"default": "active"
|
|
724
|
+
"default": "active",
|
|
725
|
+
"enum": [
|
|
726
|
+
"active",
|
|
727
|
+
"archived",
|
|
728
|
+
"draft"
|
|
729
|
+
]
|
|
725
730
|
},
|
|
726
731
|
"sortOrder": {
|
|
727
732
|
"type": "integer",
|
|
@@ -741,7 +746,13 @@
|
|
|
741
746
|
"billingInterval": {
|
|
742
747
|
"type": "text",
|
|
743
748
|
"required": false,
|
|
744
|
-
"default": "month"
|
|
749
|
+
"default": "month",
|
|
750
|
+
"enum": [
|
|
751
|
+
"day",
|
|
752
|
+
"week",
|
|
753
|
+
"month",
|
|
754
|
+
"year"
|
|
755
|
+
]
|
|
745
756
|
},
|
|
746
757
|
"externalProvider": {
|
|
747
758
|
"type": "text",
|
|
@@ -887,6 +898,7 @@
|
|
|
887
898
|
"extends": "SmrtObject",
|
|
888
899
|
"exportName": "SubscriptionPlan",
|
|
889
900
|
"collectionExportName": "SubscriptionPlanCollection",
|
|
901
|
+
"displayLabelField": "name",
|
|
890
902
|
"schema": {
|
|
891
903
|
"tableName": "_smrt_subscription_plans",
|
|
892
904
|
"ddl": "CREATE TABLE IF NOT EXISTS \"_smrt_subscription_plans\" (\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 \"plan_key\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'active',\n \"sort_order\" INTEGER DEFAULT 0,\n \"price_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"billing_interval\" TEXT DEFAULT 'month',\n \"external_provider\" TEXT DEFAULT 'stripe',\n \"stripe_product_id\" TEXT DEFAULT '',\n \"stripe_price_id\" TEXT DEFAULT '',\n \"features\" TEXT DEFAULT '[]',\n \"thresholds\" TEXT DEFAULT '[]',\n \"metadata\" TEXT DEFAULT '{}'\n);",
|
|
@@ -1063,7 +1075,11 @@
|
|
|
1063
1075
|
"subscriberKind": {
|
|
1064
1076
|
"type": "text",
|
|
1065
1077
|
"required": false,
|
|
1066
|
-
"default": "tenant"
|
|
1078
|
+
"default": "tenant",
|
|
1079
|
+
"enum": [
|
|
1080
|
+
"tenant",
|
|
1081
|
+
"external"
|
|
1082
|
+
]
|
|
1067
1083
|
},
|
|
1068
1084
|
"subscriberExternalId": {
|
|
1069
1085
|
"type": "text",
|
|
@@ -1078,7 +1094,15 @@
|
|
|
1078
1094
|
"status": {
|
|
1079
1095
|
"type": "text",
|
|
1080
1096
|
"required": false,
|
|
1081
|
-
"default": "incomplete"
|
|
1097
|
+
"default": "incomplete",
|
|
1098
|
+
"enum": [
|
|
1099
|
+
"active",
|
|
1100
|
+
"canceled",
|
|
1101
|
+
"incomplete",
|
|
1102
|
+
"past_due",
|
|
1103
|
+
"trialing",
|
|
1104
|
+
"unpaid"
|
|
1105
|
+
]
|
|
1082
1106
|
},
|
|
1083
1107
|
"startedAt": {
|
|
1084
1108
|
"type": "datetime",
|
|
@@ -1400,7 +1424,11 @@
|
|
|
1400
1424
|
"subscriberKind": {
|
|
1401
1425
|
"type": "text",
|
|
1402
1426
|
"required": false,
|
|
1403
|
-
"default": "tenant"
|
|
1427
|
+
"default": "tenant",
|
|
1428
|
+
"enum": [
|
|
1429
|
+
"tenant",
|
|
1430
|
+
"external"
|
|
1431
|
+
]
|
|
1404
1432
|
},
|
|
1405
1433
|
"subscriberExternalId": {
|
|
1406
1434
|
"type": "text",
|
|
@@ -1705,7 +1733,16 @@
|
|
|
1705
1733
|
"strategy": {
|
|
1706
1734
|
"type": "text",
|
|
1707
1735
|
"required": false,
|
|
1708
|
-
"default": "fixed_unit"
|
|
1736
|
+
"default": "fixed_unit",
|
|
1737
|
+
"enum": [
|
|
1738
|
+
"fixed_unit",
|
|
1739
|
+
"cost_plus",
|
|
1740
|
+
"multiplier",
|
|
1741
|
+
"tiered",
|
|
1742
|
+
"included_overage",
|
|
1743
|
+
"flat",
|
|
1744
|
+
"custom"
|
|
1745
|
+
]
|
|
1709
1746
|
},
|
|
1710
1747
|
"currency": {
|
|
1711
1748
|
"type": "text",
|
|
@@ -2025,7 +2062,12 @@
|
|
|
2025
2062
|
"status": {
|
|
2026
2063
|
"type": "text",
|
|
2027
2064
|
"required": false,
|
|
2028
|
-
"default": "draft"
|
|
2065
|
+
"default": "draft",
|
|
2066
|
+
"enum": [
|
|
2067
|
+
"draft",
|
|
2068
|
+
"approved",
|
|
2069
|
+
"adjusted"
|
|
2070
|
+
]
|
|
2029
2071
|
},
|
|
2030
2072
|
"approvedAt": {
|
|
2031
2073
|
"type": "datetime",
|
|
@@ -2545,7 +2587,15 @@
|
|
|
2545
2587
|
"period": {
|
|
2546
2588
|
"type": "text",
|
|
2547
2589
|
"required": false,
|
|
2548
|
-
"default": "month"
|
|
2590
|
+
"default": "month",
|
|
2591
|
+
"enum": [
|
|
2592
|
+
"day",
|
|
2593
|
+
"week",
|
|
2594
|
+
"month",
|
|
2595
|
+
"year",
|
|
2596
|
+
"rolling",
|
|
2597
|
+
"balance"
|
|
2598
|
+
]
|
|
2549
2599
|
},
|
|
2550
2600
|
"rollingSeconds": {
|
|
2551
2601
|
"type": "integer",
|
|
@@ -2565,7 +2615,13 @@
|
|
|
2565
2615
|
"behavior": {
|
|
2566
2616
|
"type": "text",
|
|
2567
2617
|
"required": false,
|
|
2568
|
-
"default": "observe"
|
|
2618
|
+
"default": "observe",
|
|
2619
|
+
"enum": [
|
|
2620
|
+
"observe",
|
|
2621
|
+
"warn",
|
|
2622
|
+
"block",
|
|
2623
|
+
"approval_required"
|
|
2624
|
+
]
|
|
2569
2625
|
},
|
|
2570
2626
|
"priority": {
|
|
2571
2627
|
"type": "integer",
|
|
@@ -2580,7 +2636,12 @@
|
|
|
2580
2636
|
"basis": {
|
|
2581
2637
|
"type": "text",
|
|
2582
2638
|
"required": false,
|
|
2583
|
-
"default": "billed"
|
|
2639
|
+
"default": "billed",
|
|
2640
|
+
"enum": [
|
|
2641
|
+
"billed",
|
|
2642
|
+
"retail",
|
|
2643
|
+
"wholesale"
|
|
2644
|
+
]
|
|
2584
2645
|
},
|
|
2585
2646
|
"setByTenantId": {
|
|
2586
2647
|
"type": "crossPackageRef",
|
|
@@ -2618,6 +2679,7 @@
|
|
|
2618
2679
|
"extends": "SmrtObject",
|
|
2619
2680
|
"exportName": "SpendingPolicy",
|
|
2620
2681
|
"collectionExportName": "SpendingPolicyCollection",
|
|
2682
|
+
"displayLabelField": "name",
|
|
2621
2683
|
"validationRules": [],
|
|
2622
2684
|
"schema": {
|
|
2623
2685
|
"tableName": "_smrt_spending_policies",
|
|
@@ -3518,7 +3580,11 @@
|
|
|
3518
3580
|
"kind": {
|
|
3519
3581
|
"type": "text",
|
|
3520
3582
|
"required": false,
|
|
3521
|
-
"default": "retail"
|
|
3583
|
+
"default": "retail",
|
|
3584
|
+
"enum": [
|
|
3585
|
+
"wholesale",
|
|
3586
|
+
"retail"
|
|
3587
|
+
]
|
|
3522
3588
|
},
|
|
3523
3589
|
"active": {
|
|
3524
3590
|
"type": "boolean",
|
|
@@ -3543,6 +3609,7 @@
|
|
|
3543
3609
|
"extends": "SmrtObject",
|
|
3544
3610
|
"exportName": "PriceBook",
|
|
3545
3611
|
"collectionExportName": "PriceBookCollection",
|
|
3612
|
+
"displayLabelField": "name",
|
|
3546
3613
|
"validationRules": [],
|
|
3547
3614
|
"schema": {
|
|
3548
3615
|
"tableName": "_smrt_price_books",
|
|
@@ -3938,7 +4005,11 @@
|
|
|
3938
4005
|
"status": {
|
|
3939
4006
|
"type": "text",
|
|
3940
4007
|
"required": false,
|
|
3941
|
-
"default": "draft"
|
|
4008
|
+
"default": "draft",
|
|
4009
|
+
"enum": [
|
|
4010
|
+
"draft",
|
|
4011
|
+
"approved"
|
|
4012
|
+
]
|
|
3942
4013
|
},
|
|
3943
4014
|
"approvedAt": {
|
|
3944
4015
|
"type": "datetime",
|
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-subscriptions",
|
|
6
|
-
"packageVersion": "0.55.
|
|
6
|
+
"packageVersion": "0.55.3",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "543d821941c99f5ef4442e962d0633b95d998ffc2bb5a18d41eb2f16097e6b4b",
|
|
11
|
+
"packageJson": "1470a161bdc918fbf73731529e79893b34e6c3b27cafda4235969ac7d7d815bc",
|
|
12
12
|
"agents": "89ab9b5f7047d2f7f316a4bbbb1eef225f3fa8e85f21cb9a699ec3ce18bdb9cd"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -467,6 +467,7 @@
|
|
|
467
467
|
{
|
|
468
468
|
"name": "SubscriptionPlan",
|
|
469
469
|
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
470
|
+
"displayLabelField": "name",
|
|
470
471
|
"collection": "subscriptionplans",
|
|
471
472
|
"tableName": "_smrt_subscription_plans",
|
|
472
473
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
@@ -2007,6 +2008,7 @@
|
|
|
2007
2008
|
{
|
|
2008
2009
|
"name": "SpendingPolicy",
|
|
2009
2010
|
"qualifiedName": "@happyvertical/smrt-subscriptions:SpendingPolicy",
|
|
2011
|
+
"displayLabelField": "name",
|
|
2010
2012
|
"collection": "spendingpolicies",
|
|
2011
2013
|
"tableName": "_smrt_spending_policies",
|
|
2012
2014
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
@@ -2335,6 +2337,7 @@
|
|
|
2335
2337
|
{
|
|
2336
2338
|
"name": "PriceBook",
|
|
2337
2339
|
"qualifiedName": "@happyvertical/smrt-subscriptions:PriceBook",
|
|
2340
|
+
"displayLabelField": "name",
|
|
2338
2341
|
"collection": "pricebooks",
|
|
2339
2342
|
"tableName": "_smrt_price_books",
|
|
2340
2343
|
"packageName": "@happyvertical/smrt-subscriptions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-subscriptions",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.3",
|
|
4
4
|
"description": "Tenant subscriptions, entitlement resolution, usage thresholds, and subscription UI for SMRT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@happyvertical/smrt-core": "0.55.
|
|
30
|
-
"@happyvertical/smrt-tenancy": "0.55.
|
|
31
|
-
"@happyvertical/smrt-ui": "0.55.
|
|
32
|
-
"@happyvertical/sql": "^0.102.
|
|
29
|
+
"@happyvertical/smrt-core": "0.55.3",
|
|
30
|
+
"@happyvertical/smrt-tenancy": "0.55.3",
|
|
31
|
+
"@happyvertical/smrt-ui": "0.55.3",
|
|
32
|
+
"@happyvertical/sql": "^0.102.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"svelte": "^5.57.0"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@happyvertical/smrt-vitest": "0.55.
|
|
43
|
+
"@happyvertical/smrt-vitest": "0.55.3",
|
|
44
44
|
"@sveltejs/package": "^2.5.8",
|
|
45
45
|
"@types/node": "24.13.6",
|
|
46
46
|
"svelte": "^5.57.1",
|