@happyvertical/smrt-subscriptions 0.43.10 → 0.44.1
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/manifest.json +417 -417
- package/dist/smrt-knowledge.json +171 -171
- package/package.json +5 -5
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.
|
|
6
|
+
"packageVersion": "0.44.1",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "820f770f017742d3c9092d0a3603b0d20ee41373f71d45d848d91d7a5d6452d1",
|
|
11
|
+
"packageJson": "d5081fa3cc7be33342debca0cf0cb9cafb9c445acf9e041677fa3180443ecd5e",
|
|
12
12
|
"agents": "149a45af3f2a142302dae957dd80c29dc11c30a3f40520679aad1e0029f6c4f8"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -43,174 +43,6 @@
|
|
|
43
43
|
"tags": [],
|
|
44
44
|
"risks": [],
|
|
45
45
|
"objects": [
|
|
46
|
-
{
|
|
47
|
-
"name": "SubscriptionPlanCollection",
|
|
48
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection",
|
|
49
|
-
"collection": "subscriptionplans",
|
|
50
|
-
"tableName": "_smrt_subscription_plans",
|
|
51
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
52
|
-
"extends": "SmrtCollection",
|
|
53
|
-
"fields": [],
|
|
54
|
-
"relationships": [],
|
|
55
|
-
"methods": [
|
|
56
|
-
"findActive",
|
|
57
|
-
"findByPlanKey",
|
|
58
|
-
"findByStripePriceId"
|
|
59
|
-
],
|
|
60
|
-
"methodSignatures": [
|
|
61
|
-
{
|
|
62
|
-
"name": "findActive",
|
|
63
|
-
"async": true,
|
|
64
|
-
"returns": "Promise<SubscriptionPlan[]>"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "findByPlanKey",
|
|
68
|
-
"async": true,
|
|
69
|
-
"params": [
|
|
70
|
-
"planKey: string"
|
|
71
|
-
],
|
|
72
|
-
"returns": "Promise<SubscriptionPlan | null>"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "findByStripePriceId",
|
|
76
|
-
"async": true,
|
|
77
|
-
"params": [
|
|
78
|
-
"stripePriceId: string"
|
|
79
|
-
],
|
|
80
|
-
"returns": "Promise<SubscriptionPlan | null>"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"surfaces": [],
|
|
84
|
-
"relationshipFeatures": [
|
|
85
|
-
"uuidColumns"
|
|
86
|
-
],
|
|
87
|
-
"tags": [],
|
|
88
|
-
"risks": []
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "TenantSubscriptionCollection",
|
|
92
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection",
|
|
93
|
-
"collection": "tenantsubscriptions",
|
|
94
|
-
"tableName": "_smrt_tenant_subscriptions",
|
|
95
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
96
|
-
"extends": "SmrtCollection",
|
|
97
|
-
"fields": [],
|
|
98
|
-
"relationships": [],
|
|
99
|
-
"methods": [
|
|
100
|
-
"findByStripeSubscriptionId",
|
|
101
|
-
"findByTenant",
|
|
102
|
-
"findCurrentForSubscriber",
|
|
103
|
-
"findCurrentForTenant"
|
|
104
|
-
],
|
|
105
|
-
"methodSignatures": [
|
|
106
|
-
{
|
|
107
|
-
"name": "findByStripeSubscriptionId",
|
|
108
|
-
"async": true,
|
|
109
|
-
"params": [
|
|
110
|
-
"stripeSubscriptionId: string"
|
|
111
|
-
],
|
|
112
|
-
"returns": "Promise<TenantSubscription | null>"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "findByTenant",
|
|
116
|
-
"async": true,
|
|
117
|
-
"params": [
|
|
118
|
-
"tenantId: string"
|
|
119
|
-
],
|
|
120
|
-
"returns": "Promise<TenantSubscription[]>"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"name": "findCurrentForSubscriber",
|
|
124
|
-
"async": true,
|
|
125
|
-
"params": [
|
|
126
|
-
"subscriber: Subscriber",
|
|
127
|
-
"now?: any"
|
|
128
|
-
],
|
|
129
|
-
"returns": "Promise<TenantSubscription | null>"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "findCurrentForTenant",
|
|
133
|
-
"async": true,
|
|
134
|
-
"params": [
|
|
135
|
-
"tenantId: string",
|
|
136
|
-
"now?: any"
|
|
137
|
-
],
|
|
138
|
-
"returns": "Promise<TenantSubscription | null>"
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"surfaces": [],
|
|
142
|
-
"relationshipFeatures": [
|
|
143
|
-
"uuidColumns"
|
|
144
|
-
],
|
|
145
|
-
"tags": [],
|
|
146
|
-
"risks": []
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "TenantUsageMetricCollection",
|
|
150
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection",
|
|
151
|
-
"collection": "tenantusagemetrics",
|
|
152
|
-
"tableName": "_smrt_tenant_usage_metrics",
|
|
153
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
154
|
-
"extends": "SmrtCollection",
|
|
155
|
-
"fields": [],
|
|
156
|
-
"relationships": [],
|
|
157
|
-
"methods": [
|
|
158
|
-
"findByTenantAndMetric",
|
|
159
|
-
"recordUsage",
|
|
160
|
-
"summarizeTenantAiUsage",
|
|
161
|
-
"summarizeUsage",
|
|
162
|
-
"summarizeUsageBatch"
|
|
163
|
-
],
|
|
164
|
-
"methodSignatures": [
|
|
165
|
-
{
|
|
166
|
-
"name": "findByTenantAndMetric",
|
|
167
|
-
"async": true,
|
|
168
|
-
"params": [
|
|
169
|
-
"tenantId: string",
|
|
170
|
-
"metricKey: string"
|
|
171
|
-
],
|
|
172
|
-
"returns": "Promise<TenantUsageMetric[]>"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "recordUsage",
|
|
176
|
-
"async": true,
|
|
177
|
-
"params": [
|
|
178
|
-
"options: RecordUsageOptions"
|
|
179
|
-
],
|
|
180
|
-
"returns": "Promise<TenantUsageMetric>"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"name": "summarizeTenantAiUsage",
|
|
184
|
-
"async": true,
|
|
185
|
-
"params": [
|
|
186
|
-
"options: SummarizeAiUsageOptions"
|
|
187
|
-
],
|
|
188
|
-
"returns": "Promise<AiUsageSummary>"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"name": "summarizeUsage",
|
|
192
|
-
"async": true,
|
|
193
|
-
"params": [
|
|
194
|
-
"options: SummarizeUsageOptions"
|
|
195
|
-
],
|
|
196
|
-
"returns": "Promise<UsageSummary>"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "summarizeUsageBatch",
|
|
200
|
-
"async": true,
|
|
201
|
-
"params": [
|
|
202
|
-
"options: SummarizeUsageBatchOptions"
|
|
203
|
-
],
|
|
204
|
-
"returns": "Promise<UsageSummary[]>"
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"surfaces": [],
|
|
208
|
-
"relationshipFeatures": [
|
|
209
|
-
"uuidColumns"
|
|
210
|
-
],
|
|
211
|
-
"tags": [],
|
|
212
|
-
"risks": []
|
|
213
|
-
},
|
|
214
46
|
{
|
|
215
47
|
"name": "SubscriptionPlan",
|
|
216
48
|
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
@@ -1772,6 +1604,174 @@
|
|
|
1772
1604
|
],
|
|
1773
1605
|
"tags": [],
|
|
1774
1606
|
"risks": []
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "SubscriptionPlanCollection",
|
|
1610
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection",
|
|
1611
|
+
"collection": "subscriptionplans",
|
|
1612
|
+
"tableName": "_smrt_subscription_plans",
|
|
1613
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
1614
|
+
"extends": "SmrtCollection",
|
|
1615
|
+
"fields": [],
|
|
1616
|
+
"relationships": [],
|
|
1617
|
+
"methods": [
|
|
1618
|
+
"findActive",
|
|
1619
|
+
"findByPlanKey",
|
|
1620
|
+
"findByStripePriceId"
|
|
1621
|
+
],
|
|
1622
|
+
"methodSignatures": [
|
|
1623
|
+
{
|
|
1624
|
+
"name": "findActive",
|
|
1625
|
+
"async": true,
|
|
1626
|
+
"returns": "Promise<SubscriptionPlan[]>"
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"name": "findByPlanKey",
|
|
1630
|
+
"async": true,
|
|
1631
|
+
"params": [
|
|
1632
|
+
"planKey: string"
|
|
1633
|
+
],
|
|
1634
|
+
"returns": "Promise<SubscriptionPlan | null>"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"name": "findByStripePriceId",
|
|
1638
|
+
"async": true,
|
|
1639
|
+
"params": [
|
|
1640
|
+
"stripePriceId: string"
|
|
1641
|
+
],
|
|
1642
|
+
"returns": "Promise<SubscriptionPlan | null>"
|
|
1643
|
+
}
|
|
1644
|
+
],
|
|
1645
|
+
"surfaces": [],
|
|
1646
|
+
"relationshipFeatures": [
|
|
1647
|
+
"uuidColumns"
|
|
1648
|
+
],
|
|
1649
|
+
"tags": [],
|
|
1650
|
+
"risks": []
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"name": "TenantSubscriptionCollection",
|
|
1654
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection",
|
|
1655
|
+
"collection": "tenantsubscriptions",
|
|
1656
|
+
"tableName": "_smrt_tenant_subscriptions",
|
|
1657
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
1658
|
+
"extends": "SmrtCollection",
|
|
1659
|
+
"fields": [],
|
|
1660
|
+
"relationships": [],
|
|
1661
|
+
"methods": [
|
|
1662
|
+
"findByStripeSubscriptionId",
|
|
1663
|
+
"findByTenant",
|
|
1664
|
+
"findCurrentForSubscriber",
|
|
1665
|
+
"findCurrentForTenant"
|
|
1666
|
+
],
|
|
1667
|
+
"methodSignatures": [
|
|
1668
|
+
{
|
|
1669
|
+
"name": "findByStripeSubscriptionId",
|
|
1670
|
+
"async": true,
|
|
1671
|
+
"params": [
|
|
1672
|
+
"stripeSubscriptionId: string"
|
|
1673
|
+
],
|
|
1674
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"name": "findByTenant",
|
|
1678
|
+
"async": true,
|
|
1679
|
+
"params": [
|
|
1680
|
+
"tenantId: string"
|
|
1681
|
+
],
|
|
1682
|
+
"returns": "Promise<TenantSubscription[]>"
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"name": "findCurrentForSubscriber",
|
|
1686
|
+
"async": true,
|
|
1687
|
+
"params": [
|
|
1688
|
+
"subscriber: Subscriber",
|
|
1689
|
+
"now?: any"
|
|
1690
|
+
],
|
|
1691
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "findCurrentForTenant",
|
|
1695
|
+
"async": true,
|
|
1696
|
+
"params": [
|
|
1697
|
+
"tenantId: string",
|
|
1698
|
+
"now?: any"
|
|
1699
|
+
],
|
|
1700
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
1701
|
+
}
|
|
1702
|
+
],
|
|
1703
|
+
"surfaces": [],
|
|
1704
|
+
"relationshipFeatures": [
|
|
1705
|
+
"uuidColumns"
|
|
1706
|
+
],
|
|
1707
|
+
"tags": [],
|
|
1708
|
+
"risks": []
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "TenantUsageMetricCollection",
|
|
1712
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection",
|
|
1713
|
+
"collection": "tenantusagemetrics",
|
|
1714
|
+
"tableName": "_smrt_tenant_usage_metrics",
|
|
1715
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
1716
|
+
"extends": "SmrtCollection",
|
|
1717
|
+
"fields": [],
|
|
1718
|
+
"relationships": [],
|
|
1719
|
+
"methods": [
|
|
1720
|
+
"findByTenantAndMetric",
|
|
1721
|
+
"recordUsage",
|
|
1722
|
+
"summarizeTenantAiUsage",
|
|
1723
|
+
"summarizeUsage",
|
|
1724
|
+
"summarizeUsageBatch"
|
|
1725
|
+
],
|
|
1726
|
+
"methodSignatures": [
|
|
1727
|
+
{
|
|
1728
|
+
"name": "findByTenantAndMetric",
|
|
1729
|
+
"async": true,
|
|
1730
|
+
"params": [
|
|
1731
|
+
"tenantId: string",
|
|
1732
|
+
"metricKey: string"
|
|
1733
|
+
],
|
|
1734
|
+
"returns": "Promise<TenantUsageMetric[]>"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"name": "recordUsage",
|
|
1738
|
+
"async": true,
|
|
1739
|
+
"params": [
|
|
1740
|
+
"options: RecordUsageOptions"
|
|
1741
|
+
],
|
|
1742
|
+
"returns": "Promise<TenantUsageMetric>"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "summarizeTenantAiUsage",
|
|
1746
|
+
"async": true,
|
|
1747
|
+
"params": [
|
|
1748
|
+
"options: SummarizeAiUsageOptions"
|
|
1749
|
+
],
|
|
1750
|
+
"returns": "Promise<AiUsageSummary>"
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"name": "summarizeUsage",
|
|
1754
|
+
"async": true,
|
|
1755
|
+
"params": [
|
|
1756
|
+
"options: SummarizeUsageOptions"
|
|
1757
|
+
],
|
|
1758
|
+
"returns": "Promise<UsageSummary>"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "summarizeUsageBatch",
|
|
1762
|
+
"async": true,
|
|
1763
|
+
"params": [
|
|
1764
|
+
"options: SummarizeUsageBatchOptions"
|
|
1765
|
+
],
|
|
1766
|
+
"returns": "Promise<UsageSummary[]>"
|
|
1767
|
+
}
|
|
1768
|
+
],
|
|
1769
|
+
"surfaces": [],
|
|
1770
|
+
"relationshipFeatures": [
|
|
1771
|
+
"uuidColumns"
|
|
1772
|
+
],
|
|
1773
|
+
"tags": [],
|
|
1774
|
+
"risks": []
|
|
1775
1775
|
}
|
|
1776
1776
|
],
|
|
1777
1777
|
"surfaces": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-subscriptions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "Tenant subscriptions, entitlement resolution, usage thresholds, and subscription UI for SMRT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@happyvertical/sql": "^0.89.4",
|
|
30
|
-
"@happyvertical/smrt-tenancy": "0.
|
|
31
|
-
"@happyvertical/smrt-
|
|
32
|
-
"@happyvertical/smrt-
|
|
30
|
+
"@happyvertical/smrt-tenancy": "0.44.1",
|
|
31
|
+
"@happyvertical/smrt-ui": "0.44.1",
|
|
32
|
+
"@happyvertical/smrt-core": "0.44.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"svelte": "^5.56.4"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "5.9.3",
|
|
48
48
|
"vite": "8.1.4",
|
|
49
49
|
"vitest": "4.1.10",
|
|
50
|
-
"@happyvertical/smrt-vitest": "0.
|
|
50
|
+
"@happyvertical/smrt-vitest": "0.44.1"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"smrt",
|