@happyvertical/smrt-subscriptions 0.61.3 → 0.61.4
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/chunks/{SubscriptionPlanCollection-Dmkorx_Q.js → SubscriptionPlanCollection-BZnAy9Hh.js} +3 -3
- package/dist/chunks/{SubscriptionPlanCollection-Dmkorx_Q.js.map → SubscriptionPlanCollection-BZnAy9Hh.js.map} +1 -1
- package/dist/chunks/{SubscriptionPlanVersionCollection-yTE_Y-2z.js → SubscriptionPlanVersionCollection-UOKqST93.js} +2 -2
- package/dist/chunks/{SubscriptionPlanVersionCollection-yTE_Y-2z.js.map → SubscriptionPlanVersionCollection-UOKqST93.js.map} +1 -1
- package/dist/chunks/{plan-versioning-ChDyHPvn.js → plan-versioning-DSCBIici.js} +5 -4
- package/dist/chunks/plan-versioning-DSCBIici.js.map +1 -0
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2253 -1428
- package/dist/models/reseller.d.ts.map +1 -1
- package/dist/plan-versioning.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +858 -858
- package/package.json +9 -9
- package/dist/chunks/plan-versioning-ChDyHPvn.js.map +0 -1
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.61.
|
|
6
|
+
"packageVersion": "0.61.4",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "7ca2901654f941259b5c7ae95ee119ede6290fd3ee58ec7e208ddb5ebdcb73b2",
|
|
11
|
+
"packageJson": "f188a49061ea20145acb0fd8d39131073e9d05e250834d7e01cd5295fb7f7e4e",
|
|
12
12
|
"agents": "920c91705242b95baed544fa2b33223935353a247a9b9946c5776a315525e642"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -59,308 +59,365 @@
|
|
|
59
59
|
],
|
|
60
60
|
"objects": [
|
|
61
61
|
{
|
|
62
|
-
"name": "
|
|
63
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:
|
|
64
|
-
"
|
|
65
|
-
"
|
|
62
|
+
"name": "SubscriptionPlanVersion",
|
|
63
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
64
|
+
"displayLabelField": "name",
|
|
65
|
+
"collection": "subscriptionplanversions",
|
|
66
|
+
"description": "An immutable, effective-dated snapshot of a plan's terms (#4032).",
|
|
67
|
+
"tableName": "_smrt_subscription_plan_versions",
|
|
66
68
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
67
|
-
"extends": "
|
|
68
|
-
"fields": [
|
|
69
|
-
|
|
69
|
+
"extends": "SmrtObject",
|
|
70
|
+
"fields": [
|
|
71
|
+
{
|
|
72
|
+
"name": "tenantId",
|
|
73
|
+
"type": "text",
|
|
74
|
+
"required": false,
|
|
75
|
+
"columnType": "UUID"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "planId",
|
|
79
|
+
"type": "foreignKey",
|
|
80
|
+
"required": false,
|
|
81
|
+
"related": "SubscriptionPlan",
|
|
82
|
+
"columnType": "UUID",
|
|
83
|
+
"description": "The plan this version belongs to."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "planKey",
|
|
87
|
+
"type": "text",
|
|
88
|
+
"required": false,
|
|
89
|
+
"columnType": "TEXT",
|
|
90
|
+
"default": "",
|
|
91
|
+
"description": "The plan code at the time this version was published."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "version",
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"required": false,
|
|
97
|
+
"columnType": "INTEGER",
|
|
98
|
+
"default": 0,
|
|
99
|
+
"description": "Which version of the plan this is, counting from 1."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "effectiveFrom",
|
|
103
|
+
"type": "datetime",
|
|
104
|
+
"required": false,
|
|
105
|
+
"columnType": "TIMESTAMP",
|
|
106
|
+
"description": "The date and time from which these terms apply."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "name",
|
|
110
|
+
"type": "text",
|
|
111
|
+
"required": false,
|
|
112
|
+
"columnType": "TEXT",
|
|
113
|
+
"default": "",
|
|
114
|
+
"description": "What the plan was called when this version was published."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "status",
|
|
118
|
+
"type": "text",
|
|
119
|
+
"required": false,
|
|
120
|
+
"columnType": "TEXT",
|
|
121
|
+
"default": "active",
|
|
122
|
+
"description": "Whether the plan was a draft, on sale (active) or archived under this version."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "priceAmount",
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"required": false,
|
|
128
|
+
"columnType": "INTEGER",
|
|
129
|
+
"default": 0,
|
|
130
|
+
"description": "What the plan cost each billing period under this version, in cents."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "currency",
|
|
134
|
+
"type": "text",
|
|
135
|
+
"required": false,
|
|
136
|
+
"columnType": "TEXT",
|
|
137
|
+
"default": "USD",
|
|
138
|
+
"description": "The currency the price is in, such as USD."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "billingInterval",
|
|
142
|
+
"type": "text",
|
|
143
|
+
"required": false,
|
|
144
|
+
"columnType": "TEXT",
|
|
145
|
+
"default": "month",
|
|
146
|
+
"description": "How often the subscriber was billed: every day, week, month or year."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "pricingMode",
|
|
150
|
+
"type": "text",
|
|
151
|
+
"required": false,
|
|
152
|
+
"columnType": "TEXT",
|
|
153
|
+
"default": "fixed",
|
|
154
|
+
"description": "Whether the plan was free, had a fixed price, or let the subscriber choose what to pay."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "minimumAmount",
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"required": false,
|
|
160
|
+
"columnType": "INTEGER",
|
|
161
|
+
"default": 0,
|
|
162
|
+
"description": "For a pay-what-you-can plan, the least a subscriber could pay, in cents."
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "suggestedAmount",
|
|
166
|
+
"type": "integer",
|
|
167
|
+
"required": false,
|
|
168
|
+
"columnType": "INTEGER",
|
|
169
|
+
"default": 0,
|
|
170
|
+
"description": "For a pay-what-you-can plan, the amount suggested to the subscriber, in cents."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "features",
|
|
174
|
+
"type": "text",
|
|
175
|
+
"required": false,
|
|
176
|
+
"columnType": "TEXT",
|
|
177
|
+
"default": "[]"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "thresholds",
|
|
181
|
+
"type": "text",
|
|
182
|
+
"required": false,
|
|
183
|
+
"columnType": "TEXT",
|
|
184
|
+
"default": "[]"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"relationships": [
|
|
188
|
+
{
|
|
189
|
+
"name": "planId",
|
|
190
|
+
"type": "foreignKey",
|
|
191
|
+
"required": false,
|
|
192
|
+
"related": "SubscriptionPlan",
|
|
193
|
+
"columnType": "UUID"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
70
196
|
"methods": [
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
197
|
+
"getFeatureGrants",
|
|
198
|
+
"getFeatureKeys",
|
|
199
|
+
"getTerms",
|
|
200
|
+
"getThresholds",
|
|
201
|
+
"isActive"
|
|
75
202
|
],
|
|
76
203
|
"methodSignatures": [
|
|
77
204
|
{
|
|
78
|
-
"name": "
|
|
79
|
-
"
|
|
80
|
-
"returns": "Promise<SubscriptionPlan[]>"
|
|
205
|
+
"name": "getFeatureGrants",
|
|
206
|
+
"returns": "PlanFeatureGrant[]"
|
|
81
207
|
},
|
|
82
208
|
{
|
|
83
|
-
"name": "
|
|
84
|
-
"
|
|
85
|
-
"params": [
|
|
86
|
-
"tenantId: string | null",
|
|
87
|
-
"planKey: string"
|
|
88
|
-
],
|
|
89
|
-
"returns": "Promise<SubscriptionPlan | null>"
|
|
209
|
+
"name": "getFeatureKeys",
|
|
210
|
+
"returns": "string[]"
|
|
90
211
|
},
|
|
91
212
|
{
|
|
92
|
-
"name": "
|
|
93
|
-
"
|
|
94
|
-
"params": [
|
|
95
|
-
"providerPriceId: string"
|
|
96
|
-
],
|
|
97
|
-
"returns": "Promise<SubscriptionPlan | null>"
|
|
213
|
+
"name": "getTerms",
|
|
214
|
+
"returns": "PlanTerms"
|
|
98
215
|
},
|
|
99
216
|
{
|
|
100
|
-
"name": "
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"returns": "
|
|
217
|
+
"name": "getThresholds",
|
|
218
|
+
"returns": "PlanThreshold[]"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "isActive",
|
|
222
|
+
"returns": "boolean"
|
|
106
223
|
}
|
|
107
224
|
],
|
|
225
|
+
"tenant": {
|
|
226
|
+
"scoped": true,
|
|
227
|
+
"mode": "optional",
|
|
228
|
+
"field": "tenantId"
|
|
229
|
+
},
|
|
230
|
+
"conflictColumns": [
|
|
231
|
+
"plan_id",
|
|
232
|
+
"version"
|
|
233
|
+
],
|
|
108
234
|
"surfaces": [
|
|
109
235
|
{
|
|
110
|
-
"kind": "
|
|
111
|
-
"name": "
|
|
112
|
-
"operation": "
|
|
113
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
236
|
+
"kind": "api",
|
|
237
|
+
"name": "subscriptionplanversions.list",
|
|
238
|
+
"operation": "list",
|
|
239
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
240
|
+
"path": "/subscriptionplanversions",
|
|
241
|
+
"method": "GET"
|
|
114
242
|
},
|
|
115
243
|
{
|
|
116
|
-
"kind": "
|
|
117
|
-
"name": "
|
|
118
|
-
"operation": "
|
|
119
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
244
|
+
"kind": "api",
|
|
245
|
+
"name": "subscriptionplanversions.get",
|
|
246
|
+
"operation": "get",
|
|
247
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
248
|
+
"path": "/subscriptionplanversions/[id]",
|
|
249
|
+
"method": "GET"
|
|
120
250
|
},
|
|
121
251
|
{
|
|
122
252
|
"kind": "cli",
|
|
123
|
-
"name": "
|
|
124
|
-
"operation": "
|
|
125
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
253
|
+
"name": "subscriptionplanversion_list",
|
|
254
|
+
"operation": "list",
|
|
255
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
126
256
|
},
|
|
127
257
|
{
|
|
128
258
|
"kind": "cli",
|
|
129
|
-
"name": "
|
|
130
|
-
"operation": "
|
|
131
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
259
|
+
"name": "subscriptionplanversion_get",
|
|
260
|
+
"operation": "get",
|
|
261
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"kind": "mcp",
|
|
265
|
+
"name": "subscriptionplanversion_list",
|
|
266
|
+
"operation": "list",
|
|
267
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "mcp",
|
|
271
|
+
"name": "subscriptionplanversion_get",
|
|
272
|
+
"operation": "get",
|
|
273
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
132
274
|
}
|
|
133
275
|
],
|
|
134
276
|
"withheldSurfaces": [
|
|
135
277
|
{
|
|
136
278
|
"kind": "api",
|
|
137
|
-
"operation": "
|
|
279
|
+
"operation": "getFeatureGrants",
|
|
138
280
|
"code": "not-included",
|
|
139
281
|
"reason": "not listed in api.include",
|
|
140
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
282
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
141
283
|
},
|
|
142
284
|
{
|
|
143
285
|
"kind": "api",
|
|
144
|
-
"operation": "
|
|
286
|
+
"operation": "getFeatureKeys",
|
|
145
287
|
"code": "not-included",
|
|
146
288
|
"reason": "not listed in api.include",
|
|
147
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
289
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
148
290
|
},
|
|
149
291
|
{
|
|
150
292
|
"kind": "api",
|
|
151
|
-
"operation": "
|
|
293
|
+
"operation": "getTerms",
|
|
152
294
|
"code": "not-included",
|
|
153
295
|
"reason": "not listed in api.include",
|
|
154
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
296
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
155
297
|
},
|
|
156
298
|
{
|
|
157
299
|
"kind": "api",
|
|
158
|
-
"operation": "
|
|
300
|
+
"operation": "getThresholds",
|
|
159
301
|
"code": "not-included",
|
|
160
302
|
"reason": "not listed in api.include",
|
|
161
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
"relationshipFeatures": [
|
|
165
|
-
"uuidColumns"
|
|
166
|
-
],
|
|
167
|
-
"tags": [],
|
|
168
|
-
"risks": []
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "SubscriptionPlanVersionCollection",
|
|
172
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection",
|
|
173
|
-
"collection": "subscriptionplanversions",
|
|
174
|
-
"description": "Effective-dated plan versions (#4032).",
|
|
175
|
-
"tableName": "_smrt_subscription_plan_versions",
|
|
176
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
177
|
-
"extends": "SmrtCollection",
|
|
178
|
-
"fields": [],
|
|
179
|
-
"relationships": [],
|
|
180
|
-
"methods": [
|
|
181
|
-
"findInForce",
|
|
182
|
-
"findLatest",
|
|
183
|
-
"findVisibleById",
|
|
184
|
-
"listForPlan"
|
|
185
|
-
],
|
|
186
|
-
"methodSignatures": [
|
|
187
|
-
{
|
|
188
|
-
"name": "findInForce",
|
|
189
|
-
"async": true,
|
|
190
|
-
"params": [
|
|
191
|
-
"planId: string",
|
|
192
|
-
"at: Date"
|
|
193
|
-
],
|
|
194
|
-
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "findLatest",
|
|
198
|
-
"async": true,
|
|
199
|
-
"params": [
|
|
200
|
-
"planId: string",
|
|
201
|
-
"tenantId?: string | null"
|
|
202
|
-
],
|
|
203
|
-
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"name": "findVisibleById",
|
|
207
|
-
"async": true,
|
|
208
|
-
"params": [
|
|
209
|
-
"id: string"
|
|
210
|
-
],
|
|
211
|
-
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"name": "listForPlan",
|
|
215
|
-
"async": true,
|
|
216
|
-
"params": [
|
|
217
|
-
"planId: string"
|
|
218
|
-
],
|
|
219
|
-
"returns": "Promise<SubscriptionPlanVersion[]>"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"surfaces": [],
|
|
223
|
-
"withheldSurfaces": [
|
|
224
|
-
{
|
|
225
|
-
"kind": "api",
|
|
226
|
-
"operation": "findInForce",
|
|
227
|
-
"code": "not-included",
|
|
228
|
-
"reason": "not listed in api.include",
|
|
229
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"kind": "api",
|
|
233
|
-
"operation": "findLatest",
|
|
234
|
-
"code": "not-included",
|
|
235
|
-
"reason": "not listed in api.include",
|
|
236
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"kind": "api",
|
|
240
|
-
"operation": "findVisibleById",
|
|
241
|
-
"code": "not-included",
|
|
242
|
-
"reason": "not listed in api.include",
|
|
243
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
303
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
244
304
|
},
|
|
245
305
|
{
|
|
246
306
|
"kind": "api",
|
|
247
|
-
"operation": "
|
|
307
|
+
"operation": "isActive",
|
|
248
308
|
"code": "not-included",
|
|
249
309
|
"reason": "not listed in api.include",
|
|
250
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
310
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
251
311
|
}
|
|
252
312
|
],
|
|
253
313
|
"relationshipFeatures": [
|
|
314
|
+
"foreignKey",
|
|
254
315
|
"uuidColumns"
|
|
255
316
|
],
|
|
256
317
|
"tags": [],
|
|
257
318
|
"risks": []
|
|
258
319
|
},
|
|
259
320
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:
|
|
262
|
-
"collection": "
|
|
263
|
-
"tableName": "
|
|
321
|
+
"name": "SubscriptionPlanCollection",
|
|
322
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection",
|
|
323
|
+
"collection": "subscriptionplans",
|
|
324
|
+
"tableName": "_smrt_subscription_plans",
|
|
264
325
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
265
326
|
"extends": "SmrtCollection",
|
|
266
327
|
"fields": [],
|
|
267
328
|
"relationships": [],
|
|
268
329
|
"methods": [
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
330
|
+
"findActive",
|
|
331
|
+
"findByPlanKey",
|
|
332
|
+
"findByProviderPriceId",
|
|
333
|
+
"findByStripePriceId"
|
|
273
334
|
],
|
|
274
335
|
"methodSignatures": [
|
|
275
336
|
{
|
|
276
|
-
"name": "
|
|
337
|
+
"name": "findActive",
|
|
277
338
|
"async": true,
|
|
278
|
-
"
|
|
279
|
-
"stripeSubscriptionId: string"
|
|
280
|
-
],
|
|
281
|
-
"returns": "Promise<TenantSubscription | null>"
|
|
339
|
+
"returns": "Promise<SubscriptionPlan[]>"
|
|
282
340
|
},
|
|
283
341
|
{
|
|
284
|
-
"name": "
|
|
342
|
+
"name": "findByPlanKey",
|
|
285
343
|
"async": true,
|
|
286
344
|
"params": [
|
|
287
|
-
"tenantId: string"
|
|
345
|
+
"tenantId: string | null",
|
|
346
|
+
"planKey: string"
|
|
288
347
|
],
|
|
289
|
-
"returns": "Promise<
|
|
348
|
+
"returns": "Promise<SubscriptionPlan | null>"
|
|
290
349
|
},
|
|
291
350
|
{
|
|
292
|
-
"name": "
|
|
351
|
+
"name": "findByProviderPriceId",
|
|
293
352
|
"async": true,
|
|
294
353
|
"params": [
|
|
295
|
-
"
|
|
296
|
-
"now?: any"
|
|
354
|
+
"providerPriceId: string"
|
|
297
355
|
],
|
|
298
|
-
"returns": "Promise<
|
|
356
|
+
"returns": "Promise<SubscriptionPlan | null>"
|
|
299
357
|
},
|
|
300
358
|
{
|
|
301
|
-
"name": "
|
|
359
|
+
"name": "findByStripePriceId",
|
|
302
360
|
"async": true,
|
|
303
361
|
"params": [
|
|
304
|
-
"
|
|
305
|
-
"now?: any"
|
|
362
|
+
"stripePriceId: string"
|
|
306
363
|
],
|
|
307
|
-
"returns": "Promise<
|
|
364
|
+
"returns": "Promise<SubscriptionPlan | null>"
|
|
308
365
|
}
|
|
309
366
|
],
|
|
310
367
|
"surfaces": [
|
|
311
368
|
{
|
|
312
369
|
"kind": "cli",
|
|
313
|
-
"name": "
|
|
314
|
-
"operation": "
|
|
315
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
370
|
+
"name": "subscriptionplancollection_findByPlanKey",
|
|
371
|
+
"operation": "findByPlanKey",
|
|
372
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
316
373
|
},
|
|
317
374
|
{
|
|
318
375
|
"kind": "cli",
|
|
319
|
-
"name": "
|
|
320
|
-
"operation": "
|
|
321
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
376
|
+
"name": "subscriptionplancollection_findActive",
|
|
377
|
+
"operation": "findActive",
|
|
378
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
322
379
|
},
|
|
323
380
|
{
|
|
324
381
|
"kind": "cli",
|
|
325
|
-
"name": "
|
|
326
|
-
"operation": "
|
|
327
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
382
|
+
"name": "subscriptionplancollection_findByProviderPriceId",
|
|
383
|
+
"operation": "findByProviderPriceId",
|
|
384
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
328
385
|
},
|
|
329
386
|
{
|
|
330
387
|
"kind": "cli",
|
|
331
|
-
"name": "
|
|
332
|
-
"operation": "
|
|
333
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
388
|
+
"name": "subscriptionplancollection_findByStripePriceId",
|
|
389
|
+
"operation": "findByStripePriceId",
|
|
390
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
334
391
|
}
|
|
335
392
|
],
|
|
336
393
|
"withheldSurfaces": [
|
|
337
394
|
{
|
|
338
395
|
"kind": "api",
|
|
339
|
-
"operation": "
|
|
396
|
+
"operation": "findActive",
|
|
340
397
|
"code": "not-included",
|
|
341
398
|
"reason": "not listed in api.include",
|
|
342
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
399
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
343
400
|
},
|
|
344
401
|
{
|
|
345
402
|
"kind": "api",
|
|
346
|
-
"operation": "
|
|
403
|
+
"operation": "findByPlanKey",
|
|
347
404
|
"code": "not-included",
|
|
348
405
|
"reason": "not listed in api.include",
|
|
349
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
406
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
350
407
|
},
|
|
351
408
|
{
|
|
352
409
|
"kind": "api",
|
|
353
|
-
"operation": "
|
|
410
|
+
"operation": "findByProviderPriceId",
|
|
354
411
|
"code": "not-included",
|
|
355
412
|
"reason": "not listed in api.include",
|
|
356
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
413
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
357
414
|
},
|
|
358
415
|
{
|
|
359
416
|
"kind": "api",
|
|
360
|
-
"operation": "
|
|
417
|
+
"operation": "findByStripePriceId",
|
|
361
418
|
"code": "not-included",
|
|
362
419
|
"reason": "not listed in api.include",
|
|
363
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
420
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanCollection"
|
|
364
421
|
}
|
|
365
422
|
],
|
|
366
423
|
"relationshipFeatures": [
|
|
@@ -370,100 +427,86 @@
|
|
|
370
427
|
"risks": []
|
|
371
428
|
},
|
|
372
429
|
{
|
|
373
|
-
"name": "
|
|
374
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:
|
|
375
|
-
"collection": "
|
|
376
|
-
"
|
|
430
|
+
"name": "SubscriptionPlanVersionCollection",
|
|
431
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection",
|
|
432
|
+
"collection": "subscriptionplanversions",
|
|
433
|
+
"description": "Effective-dated plan versions (#4032).",
|
|
434
|
+
"tableName": "_smrt_subscription_plan_versions",
|
|
377
435
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
378
436
|
"extends": "SmrtCollection",
|
|
379
437
|
"fields": [],
|
|
380
438
|
"relationships": [],
|
|
381
439
|
"methods": [
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
"summarizeUsageBatch"
|
|
440
|
+
"findInForce",
|
|
441
|
+
"findLatest",
|
|
442
|
+
"findVisibleById",
|
|
443
|
+
"listForPlan"
|
|
387
444
|
],
|
|
388
445
|
"methodSignatures": [
|
|
389
446
|
{
|
|
390
|
-
"name": "
|
|
391
|
-
"async": true,
|
|
392
|
-
"params": [
|
|
393
|
-
"tenantId: string",
|
|
394
|
-
"metricKey: string"
|
|
395
|
-
],
|
|
396
|
-
"returns": "Promise<TenantUsageMetric[]>"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"name": "recordUsage",
|
|
447
|
+
"name": "findInForce",
|
|
400
448
|
"async": true,
|
|
401
449
|
"params": [
|
|
402
|
-
"
|
|
450
|
+
"planId: string",
|
|
451
|
+
"at: Date"
|
|
403
452
|
],
|
|
404
|
-
"returns": "Promise<
|
|
453
|
+
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
405
454
|
},
|
|
406
455
|
{
|
|
407
|
-
"name": "
|
|
456
|
+
"name": "findLatest",
|
|
408
457
|
"async": true,
|
|
409
458
|
"params": [
|
|
410
|
-
"
|
|
459
|
+
"planId: string",
|
|
460
|
+
"tenantId?: string | null"
|
|
411
461
|
],
|
|
412
|
-
"returns": "Promise<
|
|
462
|
+
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
413
463
|
},
|
|
414
464
|
{
|
|
415
|
-
"name": "
|
|
465
|
+
"name": "findVisibleById",
|
|
416
466
|
"async": true,
|
|
417
467
|
"params": [
|
|
418
|
-
"
|
|
468
|
+
"id: string"
|
|
419
469
|
],
|
|
420
|
-
"returns": "Promise<
|
|
470
|
+
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
421
471
|
},
|
|
422
472
|
{
|
|
423
|
-
"name": "
|
|
473
|
+
"name": "listForPlan",
|
|
424
474
|
"async": true,
|
|
425
475
|
"params": [
|
|
426
|
-
"
|
|
476
|
+
"planId: string"
|
|
427
477
|
],
|
|
428
|
-
"returns": "Promise<
|
|
478
|
+
"returns": "Promise<SubscriptionPlanVersion[]>"
|
|
429
479
|
}
|
|
430
480
|
],
|
|
431
481
|
"surfaces": [],
|
|
432
482
|
"withheldSurfaces": [
|
|
433
483
|
{
|
|
434
484
|
"kind": "api",
|
|
435
|
-
"operation": "
|
|
436
|
-
"code": "not-included",
|
|
437
|
-
"reason": "not listed in api.include",
|
|
438
|
-
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"kind": "api",
|
|
442
|
-
"operation": "recordUsage",
|
|
485
|
+
"operation": "findInForce",
|
|
443
486
|
"code": "not-included",
|
|
444
487
|
"reason": "not listed in api.include",
|
|
445
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
488
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
446
489
|
},
|
|
447
490
|
{
|
|
448
491
|
"kind": "api",
|
|
449
|
-
"operation": "
|
|
492
|
+
"operation": "findLatest",
|
|
450
493
|
"code": "not-included",
|
|
451
494
|
"reason": "not listed in api.include",
|
|
452
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
495
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
453
496
|
},
|
|
454
497
|
{
|
|
455
498
|
"kind": "api",
|
|
456
|
-
"operation": "
|
|
499
|
+
"operation": "findVisibleById",
|
|
457
500
|
"code": "not-included",
|
|
458
501
|
"reason": "not listed in api.include",
|
|
459
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
502
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
460
503
|
},
|
|
461
504
|
{
|
|
462
505
|
"kind": "api",
|
|
463
|
-
"operation": "
|
|
506
|
+
"operation": "listForPlan",
|
|
464
507
|
"code": "not-included",
|
|
465
508
|
"reason": "not listed in api.include",
|
|
466
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
509
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersionCollection"
|
|
467
510
|
}
|
|
468
511
|
],
|
|
469
512
|
"relationshipFeatures": [
|
|
@@ -473,568 +516,213 @@
|
|
|
473
516
|
"risks": []
|
|
474
517
|
},
|
|
475
518
|
{
|
|
476
|
-
"name": "
|
|
477
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:
|
|
478
|
-
"collection": "
|
|
479
|
-
"
|
|
480
|
-
"tableName": "_smrt_billing_checkout_sessions",
|
|
481
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
482
|
-
"extends": "SmrtObject",
|
|
483
|
-
"fields": [
|
|
484
|
-
{
|
|
485
|
-
"name": "sessionId",
|
|
486
|
-
"type": "text",
|
|
487
|
-
"required": true,
|
|
488
|
-
"columnType": "TEXT",
|
|
489
|
-
"default": ""
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "targetTenantId",
|
|
493
|
-
"type": "text",
|
|
494
|
-
"required": false,
|
|
495
|
-
"columnType": "TEXT",
|
|
496
|
-
"default": "",
|
|
497
|
-
"description": "The tenant the host created the session for."
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
"name": "status",
|
|
501
|
-
"type": "text",
|
|
502
|
-
"required": false,
|
|
503
|
-
"columnType": "TEXT",
|
|
504
|
-
"default": "pending"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"name": "expiresAt",
|
|
508
|
-
"type": "datetime",
|
|
509
|
-
"required": false,
|
|
510
|
-
"columnType": "TIMESTAMP"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"name": "completedAt",
|
|
514
|
-
"type": "datetime",
|
|
515
|
-
"required": false,
|
|
516
|
-
"columnType": "TIMESTAMP"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
"name": "reason",
|
|
520
|
-
"type": "text",
|
|
521
|
-
"required": false,
|
|
522
|
-
"columnType": "TEXT",
|
|
523
|
-
"default": ""
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"name": "detail",
|
|
527
|
-
"type": "text",
|
|
528
|
-
"required": false,
|
|
529
|
-
"columnType": "TEXT",
|
|
530
|
-
"default": "{}"
|
|
531
|
-
}
|
|
532
|
-
],
|
|
533
|
-
"relationships": [],
|
|
534
|
-
"methods": [],
|
|
535
|
-
"conflictColumns": [
|
|
536
|
-
"session_id"
|
|
537
|
-
],
|
|
538
|
-
"surfaces": [],
|
|
539
|
-
"relationshipFeatures": [
|
|
540
|
-
"uuidColumns"
|
|
541
|
-
],
|
|
542
|
-
"tags": [],
|
|
543
|
-
"risks": []
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "BillingCheckoutSessionCollection",
|
|
547
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:BillingCheckoutSessionCollection",
|
|
548
|
-
"collection": "billingcheckoutsessions",
|
|
549
|
-
"tableName": "_smrt_billing_checkout_sessions",
|
|
519
|
+
"name": "TenantSubscriptionCollection",
|
|
520
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection",
|
|
521
|
+
"collection": "tenantsubscriptions",
|
|
522
|
+
"tableName": "_smrt_tenant_subscriptions",
|
|
550
523
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
551
524
|
"extends": "SmrtCollection",
|
|
552
525
|
"fields": [],
|
|
553
526
|
"relationships": [],
|
|
554
|
-
"methods": [],
|
|
555
|
-
"surfaces": [],
|
|
556
|
-
"relationshipFeatures": [
|
|
557
|
-
"uuidColumns"
|
|
558
|
-
],
|
|
559
|
-
"tags": [],
|
|
560
|
-
"risks": []
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"name": "SubscriptionPlan",
|
|
564
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
565
|
-
"displayLabelField": "name",
|
|
566
|
-
"collection": "subscriptionplans",
|
|
567
|
-
"tableName": "_smrt_subscription_plans",
|
|
568
|
-
"packageName": "@happyvertical/smrt-subscriptions",
|
|
569
|
-
"extends": "SmrtObject",
|
|
570
|
-
"fields": [
|
|
571
|
-
{
|
|
572
|
-
"name": "tenantId",
|
|
573
|
-
"type": "text",
|
|
574
|
-
"required": false,
|
|
575
|
-
"columnType": "UUID"
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
"name": "planKey",
|
|
579
|
-
"type": "text",
|
|
580
|
-
"required": false,
|
|
581
|
-
"columnType": "TEXT",
|
|
582
|
-
"default": "",
|
|
583
|
-
"description": "A short code that identifies the plan, such as starter or pro."
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"name": "name",
|
|
587
|
-
"type": "text",
|
|
588
|
-
"required": false,
|
|
589
|
-
"columnType": "TEXT",
|
|
590
|
-
"default": "",
|
|
591
|
-
"description": "What the plan is called, as customers see it."
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
"name": "description",
|
|
595
|
-
"type": "text",
|
|
596
|
-
"required": false,
|
|
597
|
-
"columnType": "TEXT",
|
|
598
|
-
"default": "",
|
|
599
|
-
"description": "A sentence or two about what the plan offers."
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"name": "status",
|
|
603
|
-
"type": "text",
|
|
604
|
-
"required": false,
|
|
605
|
-
"columnType": "TEXT",
|
|
606
|
-
"default": "active",
|
|
607
|
-
"description": "Whether the plan is a draft, on sale (active) or archived."
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
"name": "sortOrder",
|
|
611
|
-
"type": "integer",
|
|
612
|
-
"required": false,
|
|
613
|
-
"columnType": "INTEGER",
|
|
614
|
-
"default": 0,
|
|
615
|
-
"description": "Where the plan sits when plans are listed; lower numbers come first."
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "priceAmount",
|
|
619
|
-
"type": "integer",
|
|
620
|
-
"required": false,
|
|
621
|
-
"columnType": "INTEGER",
|
|
622
|
-
"default": 0,
|
|
623
|
-
"description": "What the plan costs each billing period, in cents, as a whole number."
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
"name": "currency",
|
|
627
|
-
"type": "text",
|
|
628
|
-
"required": false,
|
|
629
|
-
"columnType": "TEXT",
|
|
630
|
-
"default": "USD",
|
|
631
|
-
"description": "The currency the price is in, such as USD."
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
"name": "billingInterval",
|
|
635
|
-
"type": "text",
|
|
636
|
-
"required": false,
|
|
637
|
-
"columnType": "TEXT",
|
|
638
|
-
"default": "month",
|
|
639
|
-
"description": "How often the subscriber is billed: every day, week, month or year."
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
"name": "pricingMode",
|
|
643
|
-
"type": "text",
|
|
644
|
-
"required": false,
|
|
645
|
-
"columnType": "TEXT",
|
|
646
|
-
"default": "fixed",
|
|
647
|
-
"description": "Whether the plan is free, has a fixed price, or lets the subscriber choose what to pay. It cannot change once the plan is saved."
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"name": "minimumAmount",
|
|
651
|
-
"type": "integer",
|
|
652
|
-
"required": false,
|
|
653
|
-
"columnType": "INTEGER",
|
|
654
|
-
"default": 0,
|
|
655
|
-
"description": "For a pay-what-you-can plan, the least a subscriber may pay, in cents."
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"name": "suggestedAmount",
|
|
659
|
-
"type": "integer",
|
|
660
|
-
"required": false,
|
|
661
|
-
"columnType": "INTEGER",
|
|
662
|
-
"default": 0,
|
|
663
|
-
"description": "For a pay-what-you-can plan, the amount suggested to the subscriber, in cents."
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"name": "externalProvider",
|
|
667
|
-
"type": "text",
|
|
668
|
-
"required": false,
|
|
669
|
-
"columnType": "TEXT"
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"name": "providerProductId",
|
|
673
|
-
"type": "text",
|
|
674
|
-
"required": false,
|
|
675
|
-
"columnType": "TEXT"
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
"name": "providerPriceId",
|
|
679
|
-
"type": "text",
|
|
680
|
-
"required": false,
|
|
681
|
-
"columnType": "TEXT"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"name": "stripeProductId",
|
|
685
|
-
"type": "text",
|
|
686
|
-
"required": false,
|
|
687
|
-
"columnType": "TEXT"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
"name": "stripePriceId",
|
|
691
|
-
"type": "text",
|
|
692
|
-
"required": false,
|
|
693
|
-
"columnType": "TEXT"
|
|
694
|
-
},
|
|
695
|
-
{
|
|
696
|
-
"name": "features",
|
|
697
|
-
"type": "text",
|
|
698
|
-
"required": false,
|
|
699
|
-
"columnType": "TEXT",
|
|
700
|
-
"default": "[]"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"name": "thresholds",
|
|
704
|
-
"type": "text",
|
|
705
|
-
"required": false,
|
|
706
|
-
"columnType": "TEXT",
|
|
707
|
-
"default": "[]"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "metadata",
|
|
711
|
-
"type": "text",
|
|
712
|
-
"required": false,
|
|
713
|
-
"columnType": "TEXT",
|
|
714
|
-
"default": "{}"
|
|
715
|
-
}
|
|
716
|
-
],
|
|
717
|
-
"relationships": [],
|
|
718
527
|
"methods": [
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
"
|
|
722
|
-
"
|
|
723
|
-
"getThresholds",
|
|
724
|
-
"getVersionInForce",
|
|
725
|
-
"isActive",
|
|
726
|
-
"publishTerms",
|
|
727
|
-
"save",
|
|
728
|
-
"setFeatureGrants",
|
|
729
|
-
"setMetadata",
|
|
730
|
-
"setThresholds"
|
|
528
|
+
"findByStripeSubscriptionId",
|
|
529
|
+
"findByTenant",
|
|
530
|
+
"findCurrentForSubscriber",
|
|
531
|
+
"findCurrentForTenant"
|
|
731
532
|
],
|
|
732
533
|
"methodSignatures": [
|
|
733
534
|
{
|
|
734
|
-
"name": "
|
|
735
|
-
"returns": "PlanFeatureGrant[]"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"name": "getFeatureKeys",
|
|
739
|
-
"returns": "string[]"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"name": "getMetadata",
|
|
743
|
-
"returns": "JsonObject"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"name": "getTerms",
|
|
747
|
-
"returns": "PlanTerms"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"name": "getThresholds",
|
|
751
|
-
"returns": "PlanThreshold[]"
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
"name": "getVersionInForce",
|
|
535
|
+
"name": "findByStripeSubscriptionId",
|
|
755
536
|
"async": true,
|
|
756
537
|
"params": [
|
|
757
|
-
"
|
|
538
|
+
"stripeSubscriptionId: string"
|
|
758
539
|
],
|
|
759
|
-
"returns": "Promise<
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "isActive",
|
|
763
|
-
"returns": "boolean"
|
|
540
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
764
541
|
},
|
|
765
542
|
{
|
|
766
|
-
"name": "
|
|
543
|
+
"name": "findByTenant",
|
|
767
544
|
"async": true,
|
|
768
545
|
"params": [
|
|
769
|
-
"
|
|
546
|
+
"tenantId: string"
|
|
770
547
|
],
|
|
771
|
-
"returns": "Promise<
|
|
548
|
+
"returns": "Promise<TenantSubscription[]>"
|
|
772
549
|
},
|
|
773
550
|
{
|
|
774
|
-
"name": "
|
|
551
|
+
"name": "findCurrentForSubscriber",
|
|
775
552
|
"async": true,
|
|
776
553
|
"params": [
|
|
777
|
-
"
|
|
778
|
-
|
|
779
|
-
"returns": "Promise<this>"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"name": "setFeatureGrants",
|
|
783
|
-
"params": [
|
|
784
|
-
"grants: Array<string | PlanFeatureGrant>"
|
|
785
|
-
],
|
|
786
|
-
"returns": "void"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"name": "setMetadata",
|
|
790
|
-
"params": [
|
|
791
|
-
"metadata: JsonObject"
|
|
792
|
-
],
|
|
793
|
-
"returns": "void"
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
"name": "setThresholds",
|
|
797
|
-
"params": [
|
|
798
|
-
"thresholds: PlanThreshold[]"
|
|
554
|
+
"subscriber: Subscriber",
|
|
555
|
+
"now?: any"
|
|
799
556
|
],
|
|
800
|
-
"returns": "
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
"tenant": {
|
|
804
|
-
"scoped": true,
|
|
805
|
-
"mode": "optional",
|
|
806
|
-
"field": "tenantId"
|
|
807
|
-
},
|
|
808
|
-
"conflictColumns": [
|
|
809
|
-
"tenant_id",
|
|
810
|
-
"plan_key"
|
|
811
|
-
],
|
|
812
|
-
"surfaces": [
|
|
813
|
-
{
|
|
814
|
-
"kind": "api",
|
|
815
|
-
"name": "subscriptionplans.list",
|
|
816
|
-
"operation": "list",
|
|
817
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
818
|
-
"path": "/subscriptionplans",
|
|
819
|
-
"method": "GET"
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
"kind": "api",
|
|
823
|
-
"name": "subscriptionplans.get",
|
|
824
|
-
"operation": "get",
|
|
825
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
826
|
-
"path": "/subscriptionplans/[id]",
|
|
827
|
-
"method": "GET"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
"kind": "api",
|
|
831
|
-
"name": "subscriptionplans.create",
|
|
832
|
-
"operation": "create",
|
|
833
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
834
|
-
"path": "/subscriptionplans",
|
|
835
|
-
"method": "POST"
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
"kind": "api",
|
|
839
|
-
"name": "subscriptionplans.update",
|
|
840
|
-
"operation": "update",
|
|
841
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
842
|
-
"path": "/subscriptionplans/[id]",
|
|
843
|
-
"method": "PATCH"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"kind": "cli",
|
|
847
|
-
"name": "subscriptionplan_list",
|
|
848
|
-
"operation": "list",
|
|
849
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
"kind": "cli",
|
|
853
|
-
"name": "subscriptionplan_get",
|
|
854
|
-
"operation": "get",
|
|
855
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
"kind": "cli",
|
|
859
|
-
"name": "subscriptionplan_create",
|
|
860
|
-
"operation": "create",
|
|
861
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
"kind": "cli",
|
|
865
|
-
"name": "subscriptionplan_update",
|
|
866
|
-
"operation": "update",
|
|
867
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
868
|
-
},
|
|
869
|
-
{
|
|
870
|
-
"kind": "cli",
|
|
871
|
-
"name": "subscriptionplan_delete",
|
|
872
|
-
"operation": "delete",
|
|
873
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
874
|
-
},
|
|
875
|
-
{
|
|
876
|
-
"kind": "cli",
|
|
877
|
-
"name": "subscriptionplan_isActive",
|
|
878
|
-
"operation": "isActive",
|
|
879
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
"kind": "cli",
|
|
883
|
-
"name": "subscriptionplan_getTerms",
|
|
884
|
-
"operation": "getTerms",
|
|
885
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
"kind": "cli",
|
|
889
|
-
"name": "subscriptionplan_publishTerms",
|
|
890
|
-
"operation": "publishTerms",
|
|
891
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"kind": "cli",
|
|
895
|
-
"name": "subscriptionplan_getVersionInForce",
|
|
896
|
-
"operation": "getVersionInForce",
|
|
897
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
"kind": "cli",
|
|
901
|
-
"name": "subscriptionplan_getFeatureGrants",
|
|
902
|
-
"operation": "getFeatureGrants",
|
|
903
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
"kind": "cli",
|
|
907
|
-
"name": "subscriptionplan_setFeatureGrants",
|
|
908
|
-
"operation": "setFeatureGrants",
|
|
909
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"kind": "cli",
|
|
913
|
-
"name": "subscriptionplan_getFeatureKeys",
|
|
914
|
-
"operation": "getFeatureKeys",
|
|
915
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
916
|
-
},
|
|
917
|
-
{
|
|
918
|
-
"kind": "cli",
|
|
919
|
-
"name": "subscriptionplan_getThresholds",
|
|
920
|
-
"operation": "getThresholds",
|
|
921
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
557
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
922
558
|
},
|
|
923
559
|
{
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
"
|
|
927
|
-
|
|
928
|
-
|
|
560
|
+
"name": "findCurrentForTenant",
|
|
561
|
+
"async": true,
|
|
562
|
+
"params": [
|
|
563
|
+
"tenantId: string",
|
|
564
|
+
"now?: any"
|
|
565
|
+
],
|
|
566
|
+
"returns": "Promise<TenantSubscription | null>"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"surfaces": [
|
|
929
570
|
{
|
|
930
571
|
"kind": "cli",
|
|
931
|
-
"name": "
|
|
932
|
-
"operation": "
|
|
933
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
572
|
+
"name": "tenantsubscriptioncollection_findByTenant",
|
|
573
|
+
"operation": "findByTenant",
|
|
574
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
934
575
|
},
|
|
935
576
|
{
|
|
936
577
|
"kind": "cli",
|
|
937
|
-
"name": "
|
|
938
|
-
"operation": "
|
|
939
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
578
|
+
"name": "tenantsubscriptioncollection_findCurrentForTenant",
|
|
579
|
+
"operation": "findCurrentForTenant",
|
|
580
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
940
581
|
},
|
|
941
582
|
{
|
|
942
|
-
"kind": "
|
|
943
|
-
"name": "
|
|
944
|
-
"operation": "
|
|
945
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
583
|
+
"kind": "cli",
|
|
584
|
+
"name": "tenantsubscriptioncollection_findCurrentForSubscriber",
|
|
585
|
+
"operation": "findCurrentForSubscriber",
|
|
586
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
946
587
|
},
|
|
947
588
|
{
|
|
948
|
-
"kind": "
|
|
949
|
-
"name": "
|
|
950
|
-
"operation": "
|
|
951
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
589
|
+
"kind": "cli",
|
|
590
|
+
"name": "tenantsubscriptioncollection_findByStripeSubscriptionId",
|
|
591
|
+
"operation": "findByStripeSubscriptionId",
|
|
592
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
952
593
|
}
|
|
953
594
|
],
|
|
954
595
|
"withheldSurfaces": [
|
|
955
596
|
{
|
|
956
597
|
"kind": "api",
|
|
957
|
-
"operation": "
|
|
598
|
+
"operation": "findByStripeSubscriptionId",
|
|
958
599
|
"code": "not-included",
|
|
959
600
|
"reason": "not listed in api.include",
|
|
960
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
601
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
961
602
|
},
|
|
962
603
|
{
|
|
963
604
|
"kind": "api",
|
|
964
|
-
"operation": "
|
|
605
|
+
"operation": "findByTenant",
|
|
965
606
|
"code": "not-included",
|
|
966
607
|
"reason": "not listed in api.include",
|
|
967
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
608
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
968
609
|
},
|
|
969
610
|
{
|
|
970
611
|
"kind": "api",
|
|
971
|
-
"operation": "
|
|
612
|
+
"operation": "findCurrentForSubscriber",
|
|
972
613
|
"code": "not-included",
|
|
973
614
|
"reason": "not listed in api.include",
|
|
974
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
615
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
975
616
|
},
|
|
976
617
|
{
|
|
977
618
|
"kind": "api",
|
|
978
|
-
"operation": "
|
|
619
|
+
"operation": "findCurrentForTenant",
|
|
979
620
|
"code": "not-included",
|
|
980
621
|
"reason": "not listed in api.include",
|
|
981
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
622
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantSubscriptionCollection"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"relationshipFeatures": [
|
|
626
|
+
"uuidColumns"
|
|
627
|
+
],
|
|
628
|
+
"tags": [],
|
|
629
|
+
"risks": []
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "TenantUsageMetricCollection",
|
|
633
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection",
|
|
634
|
+
"collection": "tenantusagemetrics",
|
|
635
|
+
"tableName": "_smrt_tenant_usage_metrics",
|
|
636
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
637
|
+
"extends": "SmrtCollection",
|
|
638
|
+
"fields": [],
|
|
639
|
+
"relationships": [],
|
|
640
|
+
"methods": [
|
|
641
|
+
"findByTenantAndMetric",
|
|
642
|
+
"recordUsage",
|
|
643
|
+
"summarizeTenantAiUsage",
|
|
644
|
+
"summarizeUsage",
|
|
645
|
+
"summarizeUsageBatch"
|
|
646
|
+
],
|
|
647
|
+
"methodSignatures": [
|
|
648
|
+
{
|
|
649
|
+
"name": "findByTenantAndMetric",
|
|
650
|
+
"async": true,
|
|
651
|
+
"params": [
|
|
652
|
+
"tenantId: string",
|
|
653
|
+
"metricKey: string"
|
|
654
|
+
],
|
|
655
|
+
"returns": "Promise<TenantUsageMetric[]>"
|
|
982
656
|
},
|
|
983
657
|
{
|
|
984
|
-
"
|
|
985
|
-
"
|
|
986
|
-
"
|
|
987
|
-
|
|
988
|
-
|
|
658
|
+
"name": "recordUsage",
|
|
659
|
+
"async": true,
|
|
660
|
+
"params": [
|
|
661
|
+
"options: RecordUsageOptions"
|
|
662
|
+
],
|
|
663
|
+
"returns": "Promise<TenantUsageMetric>"
|
|
989
664
|
},
|
|
990
665
|
{
|
|
991
|
-
"
|
|
992
|
-
"
|
|
993
|
-
"
|
|
994
|
-
|
|
995
|
-
|
|
666
|
+
"name": "summarizeTenantAiUsage",
|
|
667
|
+
"async": true,
|
|
668
|
+
"params": [
|
|
669
|
+
"options: SummarizeAiUsageOptions"
|
|
670
|
+
],
|
|
671
|
+
"returns": "Promise<AiUsageSummary>"
|
|
996
672
|
},
|
|
997
673
|
{
|
|
998
|
-
"
|
|
999
|
-
"
|
|
1000
|
-
"
|
|
1001
|
-
|
|
1002
|
-
|
|
674
|
+
"name": "summarizeUsage",
|
|
675
|
+
"async": true,
|
|
676
|
+
"params": [
|
|
677
|
+
"options: SummarizeUsageOptions"
|
|
678
|
+
],
|
|
679
|
+
"returns": "Promise<UsageSummary>"
|
|
1003
680
|
},
|
|
681
|
+
{
|
|
682
|
+
"name": "summarizeUsageBatch",
|
|
683
|
+
"async": true,
|
|
684
|
+
"params": [
|
|
685
|
+
"options: SummarizeUsageBatchOptions"
|
|
686
|
+
],
|
|
687
|
+
"returns": "Promise<UsageSummary[]>"
|
|
688
|
+
}
|
|
689
|
+
],
|
|
690
|
+
"surfaces": [],
|
|
691
|
+
"withheldSurfaces": [
|
|
1004
692
|
{
|
|
1005
693
|
"kind": "api",
|
|
1006
|
-
"operation": "
|
|
694
|
+
"operation": "findByTenantAndMetric",
|
|
1007
695
|
"code": "not-included",
|
|
1008
696
|
"reason": "not listed in api.include",
|
|
1009
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
697
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
1010
698
|
},
|
|
1011
699
|
{
|
|
1012
700
|
"kind": "api",
|
|
1013
|
-
"operation": "
|
|
1014
|
-
"code": "
|
|
1015
|
-
"reason": "
|
|
1016
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
701
|
+
"operation": "recordUsage",
|
|
702
|
+
"code": "not-included",
|
|
703
|
+
"reason": "not listed in api.include",
|
|
704
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
1017
705
|
},
|
|
1018
706
|
{
|
|
1019
707
|
"kind": "api",
|
|
1020
|
-
"operation": "
|
|
708
|
+
"operation": "summarizeTenantAiUsage",
|
|
1021
709
|
"code": "not-included",
|
|
1022
710
|
"reason": "not listed in api.include",
|
|
1023
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
711
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
1024
712
|
},
|
|
1025
713
|
{
|
|
1026
714
|
"kind": "api",
|
|
1027
|
-
"operation": "
|
|
715
|
+
"operation": "summarizeUsage",
|
|
1028
716
|
"code": "not-included",
|
|
1029
717
|
"reason": "not listed in api.include",
|
|
1030
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
718
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
1031
719
|
},
|
|
1032
720
|
{
|
|
1033
721
|
"kind": "api",
|
|
1034
|
-
"operation": "
|
|
722
|
+
"operation": "summarizeUsageBatch",
|
|
1035
723
|
"code": "not-included",
|
|
1036
724
|
"reason": "not listed in api.include",
|
|
1037
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
725
|
+
"objectName": "@happyvertical/smrt-subscriptions:TenantUsageMetricCollection"
|
|
1038
726
|
}
|
|
1039
727
|
],
|
|
1040
728
|
"relationshipFeatures": [
|
|
@@ -1044,12 +732,98 @@
|
|
|
1044
732
|
"risks": []
|
|
1045
733
|
},
|
|
1046
734
|
{
|
|
1047
|
-
"name": "
|
|
1048
|
-
"qualifiedName": "@happyvertical/smrt-subscriptions:
|
|
735
|
+
"name": "BillingCheckoutSession",
|
|
736
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:BillingCheckoutSession",
|
|
737
|
+
"collection": "billingcheckoutsessions",
|
|
738
|
+
"description": "One Checkout session created by the billing host, recorded when the host creates it and required when the paid session completes, so signed metadata copied onto another integration's session is never…",
|
|
739
|
+
"tableName": "_smrt_billing_checkout_sessions",
|
|
740
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
741
|
+
"extends": "SmrtObject",
|
|
742
|
+
"fields": [
|
|
743
|
+
{
|
|
744
|
+
"name": "sessionId",
|
|
745
|
+
"type": "text",
|
|
746
|
+
"required": true,
|
|
747
|
+
"columnType": "TEXT",
|
|
748
|
+
"default": ""
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "targetTenantId",
|
|
752
|
+
"type": "text",
|
|
753
|
+
"required": false,
|
|
754
|
+
"columnType": "TEXT",
|
|
755
|
+
"default": "",
|
|
756
|
+
"description": "The tenant the host created the session for."
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "status",
|
|
760
|
+
"type": "text",
|
|
761
|
+
"required": false,
|
|
762
|
+
"columnType": "TEXT",
|
|
763
|
+
"default": "pending"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "expiresAt",
|
|
767
|
+
"type": "datetime",
|
|
768
|
+
"required": false,
|
|
769
|
+
"columnType": "TIMESTAMP"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "completedAt",
|
|
773
|
+
"type": "datetime",
|
|
774
|
+
"required": false,
|
|
775
|
+
"columnType": "TIMESTAMP"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "reason",
|
|
779
|
+
"type": "text",
|
|
780
|
+
"required": false,
|
|
781
|
+
"columnType": "TEXT",
|
|
782
|
+
"default": ""
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "detail",
|
|
786
|
+
"type": "text",
|
|
787
|
+
"required": false,
|
|
788
|
+
"columnType": "TEXT",
|
|
789
|
+
"default": "{}"
|
|
790
|
+
}
|
|
791
|
+
],
|
|
792
|
+
"relationships": [],
|
|
793
|
+
"methods": [],
|
|
794
|
+
"conflictColumns": [
|
|
795
|
+
"session_id"
|
|
796
|
+
],
|
|
797
|
+
"surfaces": [],
|
|
798
|
+
"relationshipFeatures": [
|
|
799
|
+
"uuidColumns"
|
|
800
|
+
],
|
|
801
|
+
"tags": [],
|
|
802
|
+
"risks": []
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "BillingCheckoutSessionCollection",
|
|
806
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:BillingCheckoutSessionCollection",
|
|
807
|
+
"collection": "billingcheckoutsessions",
|
|
808
|
+
"tableName": "_smrt_billing_checkout_sessions",
|
|
809
|
+
"packageName": "@happyvertical/smrt-subscriptions",
|
|
810
|
+
"extends": "SmrtCollection",
|
|
811
|
+
"fields": [],
|
|
812
|
+
"relationships": [],
|
|
813
|
+
"methods": [],
|
|
814
|
+
"surfaces": [],
|
|
815
|
+
"relationshipFeatures": [
|
|
816
|
+
"uuidColumns"
|
|
817
|
+
],
|
|
818
|
+
"tags": [],
|
|
819
|
+
"risks": []
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "SubscriptionPlan",
|
|
823
|
+
"qualifiedName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
1049
824
|
"displayLabelField": "name",
|
|
1050
|
-
"collection": "
|
|
1051
|
-
"
|
|
1052
|
-
"tableName": "_smrt_subscription_plan_versions",
|
|
825
|
+
"collection": "subscriptionplans",
|
|
826
|
+
"tableName": "_smrt_subscription_plans",
|
|
1053
827
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
1054
828
|
"extends": "SmrtObject",
|
|
1055
829
|
"fields": [
|
|
@@ -1059,44 +833,29 @@
|
|
|
1059
833
|
"required": false,
|
|
1060
834
|
"columnType": "UUID"
|
|
1061
835
|
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "planId",
|
|
1064
|
-
"type": "foreignKey",
|
|
1065
|
-
"required": false,
|
|
1066
|
-
"related": "SubscriptionPlan",
|
|
1067
|
-
"columnType": "UUID",
|
|
1068
|
-
"description": "The plan this version belongs to."
|
|
1069
|
-
},
|
|
1070
836
|
{
|
|
1071
837
|
"name": "planKey",
|
|
1072
838
|
"type": "text",
|
|
1073
839
|
"required": false,
|
|
1074
840
|
"columnType": "TEXT",
|
|
1075
841
|
"default": "",
|
|
1076
|
-
"description": "
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
"name": "version",
|
|
1080
|
-
"type": "integer",
|
|
1081
|
-
"required": false,
|
|
1082
|
-
"columnType": "INTEGER",
|
|
1083
|
-
"default": 0,
|
|
1084
|
-
"description": "Which version of the plan this is, counting from 1."
|
|
842
|
+
"description": "A short code that identifies the plan, such as starter or pro."
|
|
1085
843
|
},
|
|
1086
844
|
{
|
|
1087
|
-
"name": "
|
|
1088
|
-
"type": "
|
|
845
|
+
"name": "name",
|
|
846
|
+
"type": "text",
|
|
1089
847
|
"required": false,
|
|
1090
|
-
"columnType": "
|
|
1091
|
-
"
|
|
848
|
+
"columnType": "TEXT",
|
|
849
|
+
"default": "",
|
|
850
|
+
"description": "What the plan is called, as customers see it."
|
|
1092
851
|
},
|
|
1093
852
|
{
|
|
1094
|
-
"name": "
|
|
853
|
+
"name": "description",
|
|
1095
854
|
"type": "text",
|
|
1096
855
|
"required": false,
|
|
1097
856
|
"columnType": "TEXT",
|
|
1098
857
|
"default": "",
|
|
1099
|
-
"description": "
|
|
858
|
+
"description": "A sentence or two about what the plan offers."
|
|
1100
859
|
},
|
|
1101
860
|
{
|
|
1102
861
|
"name": "status",
|
|
@@ -1104,7 +863,15 @@
|
|
|
1104
863
|
"required": false,
|
|
1105
864
|
"columnType": "TEXT",
|
|
1106
865
|
"default": "active",
|
|
1107
|
-
"description": "Whether the plan
|
|
866
|
+
"description": "Whether the plan is a draft, on sale (active) or archived."
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "sortOrder",
|
|
870
|
+
"type": "integer",
|
|
871
|
+
"required": false,
|
|
872
|
+
"columnType": "INTEGER",
|
|
873
|
+
"default": 0,
|
|
874
|
+
"description": "Where the plan sits when plans are listed; lower numbers come first."
|
|
1108
875
|
},
|
|
1109
876
|
{
|
|
1110
877
|
"name": "priceAmount",
|
|
@@ -1112,7 +879,7 @@
|
|
|
1112
879
|
"required": false,
|
|
1113
880
|
"columnType": "INTEGER",
|
|
1114
881
|
"default": 0,
|
|
1115
|
-
"description": "What the plan
|
|
882
|
+
"description": "What the plan costs each billing period, in cents, as a whole number."
|
|
1116
883
|
},
|
|
1117
884
|
{
|
|
1118
885
|
"name": "currency",
|
|
@@ -1128,7 +895,7 @@
|
|
|
1128
895
|
"required": false,
|
|
1129
896
|
"columnType": "TEXT",
|
|
1130
897
|
"default": "month",
|
|
1131
|
-
"description": "How often the subscriber
|
|
898
|
+
"description": "How often the subscriber is billed: every day, week, month or year."
|
|
1132
899
|
},
|
|
1133
900
|
{
|
|
1134
901
|
"name": "pricingMode",
|
|
@@ -1136,7 +903,7 @@
|
|
|
1136
903
|
"required": false,
|
|
1137
904
|
"columnType": "TEXT",
|
|
1138
905
|
"default": "fixed",
|
|
1139
|
-
"description": "Whether the plan
|
|
906
|
+
"description": "Whether the plan is free, has a fixed price, or lets the subscriber choose what to pay. It cannot change once the plan is saved."
|
|
1140
907
|
},
|
|
1141
908
|
{
|
|
1142
909
|
"name": "minimumAmount",
|
|
@@ -1144,7 +911,7 @@
|
|
|
1144
911
|
"required": false,
|
|
1145
912
|
"columnType": "INTEGER",
|
|
1146
913
|
"default": 0,
|
|
1147
|
-
"description": "For a pay-what-you-can plan, the least a subscriber
|
|
914
|
+
"description": "For a pay-what-you-can plan, the least a subscriber may pay, in cents."
|
|
1148
915
|
},
|
|
1149
916
|
{
|
|
1150
917
|
"name": "suggestedAmount",
|
|
@@ -1154,6 +921,36 @@
|
|
|
1154
921
|
"default": 0,
|
|
1155
922
|
"description": "For a pay-what-you-can plan, the amount suggested to the subscriber, in cents."
|
|
1156
923
|
},
|
|
924
|
+
{
|
|
925
|
+
"name": "externalProvider",
|
|
926
|
+
"type": "text",
|
|
927
|
+
"required": false,
|
|
928
|
+
"columnType": "TEXT"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "providerProductId",
|
|
932
|
+
"type": "text",
|
|
933
|
+
"required": false,
|
|
934
|
+
"columnType": "TEXT"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "providerPriceId",
|
|
938
|
+
"type": "text",
|
|
939
|
+
"required": false,
|
|
940
|
+
"columnType": "TEXT"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "stripeProductId",
|
|
944
|
+
"type": "text",
|
|
945
|
+
"required": false,
|
|
946
|
+
"columnType": "TEXT"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"name": "stripePriceId",
|
|
950
|
+
"type": "text",
|
|
951
|
+
"required": false,
|
|
952
|
+
"columnType": "TEXT"
|
|
953
|
+
},
|
|
1157
954
|
{
|
|
1158
955
|
"name": "features",
|
|
1159
956
|
"type": "text",
|
|
@@ -1162,100 +959,255 @@
|
|
|
1162
959
|
"default": "[]"
|
|
1163
960
|
},
|
|
1164
961
|
{
|
|
1165
|
-
"name": "thresholds",
|
|
1166
|
-
"type": "text",
|
|
1167
|
-
"required": false,
|
|
1168
|
-
"columnType": "TEXT",
|
|
1169
|
-
"default": "[]"
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
"
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
"
|
|
1183
|
-
"
|
|
1184
|
-
"getTerms",
|
|
1185
|
-
"getThresholds",
|
|
1186
|
-
"
|
|
1187
|
-
|
|
1188
|
-
|
|
962
|
+
"name": "thresholds",
|
|
963
|
+
"type": "text",
|
|
964
|
+
"required": false,
|
|
965
|
+
"columnType": "TEXT",
|
|
966
|
+
"default": "[]"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "metadata",
|
|
970
|
+
"type": "text",
|
|
971
|
+
"required": false,
|
|
972
|
+
"columnType": "TEXT",
|
|
973
|
+
"default": "{}"
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"relationships": [],
|
|
977
|
+
"methods": [
|
|
978
|
+
"getFeatureGrants",
|
|
979
|
+
"getFeatureKeys",
|
|
980
|
+
"getMetadata",
|
|
981
|
+
"getTerms",
|
|
982
|
+
"getThresholds",
|
|
983
|
+
"getVersionInForce",
|
|
984
|
+
"isActive",
|
|
985
|
+
"publishTerms",
|
|
986
|
+
"save",
|
|
987
|
+
"setFeatureGrants",
|
|
988
|
+
"setMetadata",
|
|
989
|
+
"setThresholds"
|
|
990
|
+
],
|
|
991
|
+
"methodSignatures": [
|
|
992
|
+
{
|
|
993
|
+
"name": "getFeatureGrants",
|
|
994
|
+
"returns": "PlanFeatureGrant[]"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "getFeatureKeys",
|
|
998
|
+
"returns": "string[]"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"name": "getMetadata",
|
|
1002
|
+
"returns": "JsonObject"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "getTerms",
|
|
1006
|
+
"returns": "PlanTerms"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "getThresholds",
|
|
1010
|
+
"returns": "PlanThreshold[]"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "getVersionInForce",
|
|
1014
|
+
"async": true,
|
|
1015
|
+
"params": [
|
|
1016
|
+
"at?: any"
|
|
1017
|
+
],
|
|
1018
|
+
"returns": "Promise<SubscriptionPlanVersion | null>"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "isActive",
|
|
1022
|
+
"returns": "boolean"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "publishTerms",
|
|
1026
|
+
"async": true,
|
|
1027
|
+
"params": [
|
|
1028
|
+
"options?: object"
|
|
1029
|
+
],
|
|
1030
|
+
"returns": "Promise<SubscriptionPlanVersion>"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "save",
|
|
1034
|
+
"async": true,
|
|
1035
|
+
"params": [
|
|
1036
|
+
"options?: SmrtSaveOptions"
|
|
1037
|
+
],
|
|
1038
|
+
"returns": "Promise<this>"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "setFeatureGrants",
|
|
1042
|
+
"params": [
|
|
1043
|
+
"grants: Array<string | PlanFeatureGrant>"
|
|
1044
|
+
],
|
|
1045
|
+
"returns": "void"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "setMetadata",
|
|
1049
|
+
"params": [
|
|
1050
|
+
"metadata: JsonObject"
|
|
1051
|
+
],
|
|
1052
|
+
"returns": "void"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "setThresholds",
|
|
1056
|
+
"params": [
|
|
1057
|
+
"thresholds: PlanThreshold[]"
|
|
1058
|
+
],
|
|
1059
|
+
"returns": "void"
|
|
1060
|
+
}
|
|
1061
|
+
],
|
|
1062
|
+
"tenant": {
|
|
1063
|
+
"scoped": true,
|
|
1064
|
+
"mode": "optional",
|
|
1065
|
+
"field": "tenantId"
|
|
1066
|
+
},
|
|
1067
|
+
"conflictColumns": [
|
|
1068
|
+
"tenant_id",
|
|
1069
|
+
"plan_key"
|
|
1070
|
+
],
|
|
1071
|
+
"surfaces": [
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "api",
|
|
1074
|
+
"name": "subscriptionplans.list",
|
|
1075
|
+
"operation": "list",
|
|
1076
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
1077
|
+
"path": "/subscriptionplans",
|
|
1078
|
+
"method": "GET"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"kind": "api",
|
|
1082
|
+
"name": "subscriptionplans.get",
|
|
1083
|
+
"operation": "get",
|
|
1084
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
1085
|
+
"path": "/subscriptionplans/[id]",
|
|
1086
|
+
"method": "GET"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"kind": "api",
|
|
1090
|
+
"name": "subscriptionplans.create",
|
|
1091
|
+
"operation": "create",
|
|
1092
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
1093
|
+
"path": "/subscriptionplans",
|
|
1094
|
+
"method": "POST"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"kind": "api",
|
|
1098
|
+
"name": "subscriptionplans.update",
|
|
1099
|
+
"operation": "update",
|
|
1100
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan",
|
|
1101
|
+
"path": "/subscriptionplans/[id]",
|
|
1102
|
+
"method": "PATCH"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"kind": "cli",
|
|
1106
|
+
"name": "subscriptionplan_list",
|
|
1107
|
+
"operation": "list",
|
|
1108
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"kind": "cli",
|
|
1112
|
+
"name": "subscriptionplan_get",
|
|
1113
|
+
"operation": "get",
|
|
1114
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"kind": "cli",
|
|
1118
|
+
"name": "subscriptionplan_create",
|
|
1119
|
+
"operation": "create",
|
|
1120
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"kind": "cli",
|
|
1124
|
+
"name": "subscriptionplan_update",
|
|
1125
|
+
"operation": "update",
|
|
1126
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"kind": "cli",
|
|
1130
|
+
"name": "subscriptionplan_delete",
|
|
1131
|
+
"operation": "delete",
|
|
1132
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"kind": "cli",
|
|
1136
|
+
"name": "subscriptionplan_isActive",
|
|
1137
|
+
"operation": "isActive",
|
|
1138
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"kind": "cli",
|
|
1142
|
+
"name": "subscriptionplan_getTerms",
|
|
1143
|
+
"operation": "getTerms",
|
|
1144
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1145
|
+
},
|
|
1189
1146
|
{
|
|
1190
|
-
"
|
|
1191
|
-
"
|
|
1147
|
+
"kind": "cli",
|
|
1148
|
+
"name": "subscriptionplan_publishTerms",
|
|
1149
|
+
"operation": "publishTerms",
|
|
1150
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1192
1151
|
},
|
|
1193
1152
|
{
|
|
1194
|
-
"
|
|
1195
|
-
"
|
|
1153
|
+
"kind": "cli",
|
|
1154
|
+
"name": "subscriptionplan_getVersionInForce",
|
|
1155
|
+
"operation": "getVersionInForce",
|
|
1156
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1196
1157
|
},
|
|
1197
1158
|
{
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1159
|
+
"kind": "cli",
|
|
1160
|
+
"name": "subscriptionplan_getFeatureGrants",
|
|
1161
|
+
"operation": "getFeatureGrants",
|
|
1162
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1200
1163
|
},
|
|
1201
1164
|
{
|
|
1202
|
-
"
|
|
1203
|
-
"
|
|
1165
|
+
"kind": "cli",
|
|
1166
|
+
"name": "subscriptionplan_setFeatureGrants",
|
|
1167
|
+
"operation": "setFeatureGrants",
|
|
1168
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1204
1169
|
},
|
|
1205
1170
|
{
|
|
1206
|
-
"
|
|
1207
|
-
"
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
"scoped": true,
|
|
1212
|
-
"mode": "optional",
|
|
1213
|
-
"field": "tenantId"
|
|
1214
|
-
},
|
|
1215
|
-
"conflictColumns": [
|
|
1216
|
-
"plan_id",
|
|
1217
|
-
"version"
|
|
1218
|
-
],
|
|
1219
|
-
"surfaces": [
|
|
1171
|
+
"kind": "cli",
|
|
1172
|
+
"name": "subscriptionplan_getFeatureKeys",
|
|
1173
|
+
"operation": "getFeatureKeys",
|
|
1174
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1175
|
+
},
|
|
1220
1176
|
{
|
|
1221
|
-
"kind": "
|
|
1222
|
-
"name": "
|
|
1223
|
-
"operation": "
|
|
1224
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1225
|
-
"path": "/subscriptionplanversions",
|
|
1226
|
-
"method": "GET"
|
|
1177
|
+
"kind": "cli",
|
|
1178
|
+
"name": "subscriptionplan_getThresholds",
|
|
1179
|
+
"operation": "getThresholds",
|
|
1180
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1227
1181
|
},
|
|
1228
1182
|
{
|
|
1229
|
-
"kind": "
|
|
1230
|
-
"name": "
|
|
1231
|
-
"operation": "
|
|
1232
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1233
|
-
"path": "/subscriptionplanversions/[id]",
|
|
1234
|
-
"method": "GET"
|
|
1183
|
+
"kind": "cli",
|
|
1184
|
+
"name": "subscriptionplan_setThresholds",
|
|
1185
|
+
"operation": "setThresholds",
|
|
1186
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1235
1187
|
},
|
|
1236
1188
|
{
|
|
1237
1189
|
"kind": "cli",
|
|
1238
|
-
"name": "
|
|
1239
|
-
"operation": "
|
|
1240
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1190
|
+
"name": "subscriptionplan_getMetadata",
|
|
1191
|
+
"operation": "getMetadata",
|
|
1192
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1241
1193
|
},
|
|
1242
1194
|
{
|
|
1243
1195
|
"kind": "cli",
|
|
1244
|
-
"name": "
|
|
1245
|
-
"operation": "
|
|
1246
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1196
|
+
"name": "subscriptionplan_setMetadata",
|
|
1197
|
+
"operation": "setMetadata",
|
|
1198
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1247
1199
|
},
|
|
1248
1200
|
{
|
|
1249
1201
|
"kind": "mcp",
|
|
1250
|
-
"name": "
|
|
1202
|
+
"name": "subscriptionplan_list",
|
|
1251
1203
|
"operation": "list",
|
|
1252
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1204
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1253
1205
|
},
|
|
1254
1206
|
{
|
|
1255
1207
|
"kind": "mcp",
|
|
1256
|
-
"name": "
|
|
1208
|
+
"name": "subscriptionplan_get",
|
|
1257
1209
|
"operation": "get",
|
|
1258
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1210
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1259
1211
|
}
|
|
1260
1212
|
],
|
|
1261
1213
|
"withheldSurfaces": [
|
|
@@ -1264,39 +1216,87 @@
|
|
|
1264
1216
|
"operation": "getFeatureGrants",
|
|
1265
1217
|
"code": "not-included",
|
|
1266
1218
|
"reason": "not listed in api.include",
|
|
1267
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1219
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1268
1220
|
},
|
|
1269
1221
|
{
|
|
1270
1222
|
"kind": "api",
|
|
1271
1223
|
"operation": "getFeatureKeys",
|
|
1272
1224
|
"code": "not-included",
|
|
1273
1225
|
"reason": "not listed in api.include",
|
|
1274
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1226
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "api",
|
|
1230
|
+
"operation": "getMetadata",
|
|
1231
|
+
"code": "not-included",
|
|
1232
|
+
"reason": "not listed in api.include",
|
|
1233
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1275
1234
|
},
|
|
1276
1235
|
{
|
|
1277
1236
|
"kind": "api",
|
|
1278
1237
|
"operation": "getTerms",
|
|
1279
1238
|
"code": "not-included",
|
|
1280
1239
|
"reason": "not listed in api.include",
|
|
1281
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1240
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1282
1241
|
},
|
|
1283
1242
|
{
|
|
1284
1243
|
"kind": "api",
|
|
1285
1244
|
"operation": "getThresholds",
|
|
1286
1245
|
"code": "not-included",
|
|
1287
1246
|
"reason": "not listed in api.include",
|
|
1288
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1247
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"kind": "api",
|
|
1251
|
+
"operation": "getVersionInForce",
|
|
1252
|
+
"code": "not-included",
|
|
1253
|
+
"reason": "not listed in api.include",
|
|
1254
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1289
1255
|
},
|
|
1290
1256
|
{
|
|
1291
1257
|
"kind": "api",
|
|
1292
1258
|
"operation": "isActive",
|
|
1293
1259
|
"code": "not-included",
|
|
1294
1260
|
"reason": "not listed in api.include",
|
|
1295
|
-
"objectName": "@happyvertical/smrt-subscriptions:
|
|
1261
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"kind": "api",
|
|
1265
|
+
"operation": "publishTerms",
|
|
1266
|
+
"code": "not-included",
|
|
1267
|
+
"reason": "not listed in api.include",
|
|
1268
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"kind": "api",
|
|
1272
|
+
"operation": "save",
|
|
1273
|
+
"code": "lifecycle-method",
|
|
1274
|
+
"reason": "`save` is a framework lifecycle method, not a distinct operation",
|
|
1275
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"kind": "api",
|
|
1279
|
+
"operation": "setFeatureGrants",
|
|
1280
|
+
"code": "not-included",
|
|
1281
|
+
"reason": "not listed in api.include",
|
|
1282
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"kind": "api",
|
|
1286
|
+
"operation": "setMetadata",
|
|
1287
|
+
"code": "not-included",
|
|
1288
|
+
"reason": "not listed in api.include",
|
|
1289
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"kind": "api",
|
|
1293
|
+
"operation": "setThresholds",
|
|
1294
|
+
"code": "not-included",
|
|
1295
|
+
"reason": "not listed in api.include",
|
|
1296
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
1296
1297
|
}
|
|
1297
1298
|
],
|
|
1298
1299
|
"relationshipFeatures": [
|
|
1299
|
-
"foreignKey",
|
|
1300
1300
|
"uuidColumns"
|
|
1301
1301
|
],
|
|
1302
1302
|
"tags": [],
|
|
@@ -2914,7 +2914,7 @@
|
|
|
2914
2914
|
{
|
|
2915
2915
|
"name": "bookKey",
|
|
2916
2916
|
"type": "text",
|
|
2917
|
-
"required":
|
|
2917
|
+
"required": true,
|
|
2918
2918
|
"columnType": "TEXT",
|
|
2919
2919
|
"default": ""
|
|
2920
2920
|
},
|
|
@@ -3526,6 +3526,46 @@
|
|
|
3526
3526
|
}
|
|
3527
3527
|
],
|
|
3528
3528
|
"surfaces": [
|
|
3529
|
+
{
|
|
3530
|
+
"kind": "api",
|
|
3531
|
+
"name": "subscriptionplanversions.list",
|
|
3532
|
+
"operation": "list",
|
|
3533
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
3534
|
+
"path": "/subscriptionplanversions",
|
|
3535
|
+
"method": "GET"
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
"kind": "api",
|
|
3539
|
+
"name": "subscriptionplanversions.get",
|
|
3540
|
+
"operation": "get",
|
|
3541
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
3542
|
+
"path": "/subscriptionplanversions/[id]",
|
|
3543
|
+
"method": "GET"
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
"kind": "cli",
|
|
3547
|
+
"name": "subscriptionplanversion_list",
|
|
3548
|
+
"operation": "list",
|
|
3549
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"kind": "cli",
|
|
3553
|
+
"name": "subscriptionplanversion_get",
|
|
3554
|
+
"operation": "get",
|
|
3555
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"kind": "mcp",
|
|
3559
|
+
"name": "subscriptionplanversion_list",
|
|
3560
|
+
"operation": "list",
|
|
3561
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"kind": "mcp",
|
|
3565
|
+
"name": "subscriptionplanversion_get",
|
|
3566
|
+
"operation": "get",
|
|
3567
|
+
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3568
|
+
},
|
|
3529
3569
|
{
|
|
3530
3570
|
"kind": "cli",
|
|
3531
3571
|
"name": "subscriptionplancollection_findByPlanKey",
|
|
@@ -3714,46 +3754,6 @@
|
|
|
3714
3754
|
"operation": "get",
|
|
3715
3755
|
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlan"
|
|
3716
3756
|
},
|
|
3717
|
-
{
|
|
3718
|
-
"kind": "api",
|
|
3719
|
-
"name": "subscriptionplanversions.list",
|
|
3720
|
-
"operation": "list",
|
|
3721
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
3722
|
-
"path": "/subscriptionplanversions",
|
|
3723
|
-
"method": "GET"
|
|
3724
|
-
},
|
|
3725
|
-
{
|
|
3726
|
-
"kind": "api",
|
|
3727
|
-
"name": "subscriptionplanversions.get",
|
|
3728
|
-
"operation": "get",
|
|
3729
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion",
|
|
3730
|
-
"path": "/subscriptionplanversions/[id]",
|
|
3731
|
-
"method": "GET"
|
|
3732
|
-
},
|
|
3733
|
-
{
|
|
3734
|
-
"kind": "cli",
|
|
3735
|
-
"name": "subscriptionplanversion_list",
|
|
3736
|
-
"operation": "list",
|
|
3737
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3738
|
-
},
|
|
3739
|
-
{
|
|
3740
|
-
"kind": "cli",
|
|
3741
|
-
"name": "subscriptionplanversion_get",
|
|
3742
|
-
"operation": "get",
|
|
3743
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3744
|
-
},
|
|
3745
|
-
{
|
|
3746
|
-
"kind": "mcp",
|
|
3747
|
-
"name": "subscriptionplanversion_list",
|
|
3748
|
-
"operation": "list",
|
|
3749
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3750
|
-
},
|
|
3751
|
-
{
|
|
3752
|
-
"kind": "mcp",
|
|
3753
|
-
"name": "subscriptionplanversion_get",
|
|
3754
|
-
"operation": "get",
|
|
3755
|
-
"objectName": "@happyvertical/smrt-subscriptions:SubscriptionPlanVersion"
|
|
3756
|
-
},
|
|
3757
3757
|
{
|
|
3758
3758
|
"kind": "api",
|
|
3759
3759
|
"name": "tenantsubscriptions.list",
|