@happyvertical/smrt-subscriptions 0.40.64 → 0.40.66
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 +1 -1
- package/dist/smrt-knowledge.json +413 -77
- package/package.json +6 -6
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
+
"sensitiveFieldsExcluded": true,
|
|
3
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
4
5
|
"packageName": "@happyvertical/smrt-subscriptions",
|
|
5
|
-
"packageVersion": "0.40.
|
|
6
|
+
"packageVersion": "0.40.66",
|
|
6
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
8
|
"agentDocPath": "AGENTS.md",
|
|
8
9
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
10
|
+
"manifest": "609f0b85bb72e10eba6f4c78426ba6921edeeaa19ee0d4c2c98843ec71c3a447",
|
|
11
|
+
"packageJson": "25f84f9e3d683115d1192f4f3e867ea419b4f94a34890f17d2b151c3bc1819de",
|
|
11
12
|
"agents": "065d7d121a55a300284b8cff9e9a1c3ac1cc87187634377af82fdf8a9b9c27f8"
|
|
12
13
|
},
|
|
13
14
|
"exports": [
|
|
@@ -56,6 +57,29 @@
|
|
|
56
57
|
"findByPlanKey",
|
|
57
58
|
"findByStripePriceId"
|
|
58
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
|
+
],
|
|
59
83
|
"surfaces": [],
|
|
60
84
|
"relationshipFeatures": [
|
|
61
85
|
"uuidColumns"
|
|
@@ -78,6 +102,42 @@
|
|
|
78
102
|
"findCurrentForSubscriber",
|
|
79
103
|
"findCurrentForTenant"
|
|
80
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
|
+
],
|
|
81
141
|
"surfaces": [],
|
|
82
142
|
"relationshipFeatures": [
|
|
83
143
|
"uuidColumns"
|
|
@@ -101,6 +161,49 @@
|
|
|
101
161
|
"summarizeUsage",
|
|
102
162
|
"summarizeUsageBatch"
|
|
103
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
|
+
],
|
|
104
207
|
"surfaces": [],
|
|
105
208
|
"relationshipFeatures": [
|
|
106
209
|
"uuidColumns"
|
|
@@ -126,85 +229,99 @@
|
|
|
126
229
|
"name": "planKey",
|
|
127
230
|
"type": "text",
|
|
128
231
|
"required": false,
|
|
129
|
-
"columnType": "TEXT"
|
|
232
|
+
"columnType": "TEXT",
|
|
233
|
+
"default": ""
|
|
130
234
|
},
|
|
131
235
|
{
|
|
132
236
|
"name": "name",
|
|
133
237
|
"type": "text",
|
|
134
238
|
"required": false,
|
|
135
|
-
"columnType": "TEXT"
|
|
239
|
+
"columnType": "TEXT",
|
|
240
|
+
"default": ""
|
|
136
241
|
},
|
|
137
242
|
{
|
|
138
243
|
"name": "description",
|
|
139
244
|
"type": "text",
|
|
140
245
|
"required": false,
|
|
141
|
-
"columnType": "TEXT"
|
|
246
|
+
"columnType": "TEXT",
|
|
247
|
+
"default": ""
|
|
142
248
|
},
|
|
143
249
|
{
|
|
144
250
|
"name": "status",
|
|
145
251
|
"type": "text",
|
|
146
252
|
"required": false,
|
|
147
|
-
"columnType": "TEXT"
|
|
253
|
+
"columnType": "TEXT",
|
|
254
|
+
"default": "active"
|
|
148
255
|
},
|
|
149
256
|
{
|
|
150
257
|
"name": "sortOrder",
|
|
151
258
|
"type": "integer",
|
|
152
259
|
"required": false,
|
|
153
|
-
"columnType": "INTEGER"
|
|
260
|
+
"columnType": "INTEGER",
|
|
261
|
+
"default": 0
|
|
154
262
|
},
|
|
155
263
|
{
|
|
156
264
|
"name": "priceAmount",
|
|
157
265
|
"type": "decimal",
|
|
158
266
|
"required": false,
|
|
159
|
-
"columnType": "REAL"
|
|
267
|
+
"columnType": "REAL",
|
|
268
|
+
"default": 0
|
|
160
269
|
},
|
|
161
270
|
{
|
|
162
271
|
"name": "currency",
|
|
163
272
|
"type": "text",
|
|
164
273
|
"required": false,
|
|
165
|
-
"columnType": "TEXT"
|
|
274
|
+
"columnType": "TEXT",
|
|
275
|
+
"default": "USD"
|
|
166
276
|
},
|
|
167
277
|
{
|
|
168
278
|
"name": "billingInterval",
|
|
169
279
|
"type": "text",
|
|
170
280
|
"required": false,
|
|
171
|
-
"columnType": "TEXT"
|
|
281
|
+
"columnType": "TEXT",
|
|
282
|
+
"default": "month"
|
|
172
283
|
},
|
|
173
284
|
{
|
|
174
285
|
"name": "externalProvider",
|
|
175
286
|
"type": "text",
|
|
176
287
|
"required": false,
|
|
177
|
-
"columnType": "TEXT"
|
|
288
|
+
"columnType": "TEXT",
|
|
289
|
+
"default": "stripe"
|
|
178
290
|
},
|
|
179
291
|
{
|
|
180
292
|
"name": "stripeProductId",
|
|
181
293
|
"type": "text",
|
|
182
294
|
"required": false,
|
|
183
|
-
"columnType": "TEXT"
|
|
295
|
+
"columnType": "TEXT",
|
|
296
|
+
"default": ""
|
|
184
297
|
},
|
|
185
298
|
{
|
|
186
299
|
"name": "stripePriceId",
|
|
187
300
|
"type": "text",
|
|
188
301
|
"required": false,
|
|
189
|
-
"columnType": "TEXT"
|
|
302
|
+
"columnType": "TEXT",
|
|
303
|
+
"default": ""
|
|
190
304
|
},
|
|
191
305
|
{
|
|
192
306
|
"name": "features",
|
|
193
307
|
"type": "text",
|
|
194
308
|
"required": false,
|
|
195
|
-
"columnType": "TEXT"
|
|
309
|
+
"columnType": "TEXT",
|
|
310
|
+
"default": "[]"
|
|
196
311
|
},
|
|
197
312
|
{
|
|
198
313
|
"name": "thresholds",
|
|
199
314
|
"type": "text",
|
|
200
315
|
"required": false,
|
|
201
|
-
"columnType": "TEXT"
|
|
316
|
+
"columnType": "TEXT",
|
|
317
|
+
"default": "[]"
|
|
202
318
|
},
|
|
203
319
|
{
|
|
204
320
|
"name": "metadata",
|
|
205
321
|
"type": "text",
|
|
206
322
|
"required": false,
|
|
207
|
-
"columnType": "TEXT"
|
|
323
|
+
"columnType": "TEXT",
|
|
324
|
+
"default": "{}"
|
|
208
325
|
}
|
|
209
326
|
],
|
|
210
327
|
"relationships": [],
|
|
@@ -218,6 +335,57 @@
|
|
|
218
335
|
"setMetadata",
|
|
219
336
|
"setThresholds"
|
|
220
337
|
],
|
|
338
|
+
"methodSignatures": [
|
|
339
|
+
{
|
|
340
|
+
"name": "getFeatureGrants",
|
|
341
|
+
"returns": "PlanFeatureGrant[]"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "getFeatureKeys",
|
|
345
|
+
"returns": "string[]"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "getMetadata",
|
|
349
|
+
"returns": "JsonObject"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "getThresholds",
|
|
353
|
+
"returns": "PlanThreshold[]"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "isActive",
|
|
357
|
+
"returns": "boolean"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "setFeatureGrants",
|
|
361
|
+
"params": [
|
|
362
|
+
"grants: Array<string | PlanFeatureGrant>"
|
|
363
|
+
],
|
|
364
|
+
"returns": "void"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "setMetadata",
|
|
368
|
+
"params": [
|
|
369
|
+
"metadata: JsonObject"
|
|
370
|
+
],
|
|
371
|
+
"returns": "void"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "setThresholds",
|
|
375
|
+
"params": [
|
|
376
|
+
"thresholds: PlanThreshold[]"
|
|
377
|
+
],
|
|
378
|
+
"returns": "void"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"tenant": {
|
|
382
|
+
"scoped": true,
|
|
383
|
+
"mode": "optional",
|
|
384
|
+
"field": "tenantId"
|
|
385
|
+
},
|
|
386
|
+
"conflictColumns": [
|
|
387
|
+
"plan_key"
|
|
388
|
+
],
|
|
221
389
|
"surfaces": [
|
|
222
390
|
{
|
|
223
391
|
"kind": "api",
|
|
@@ -318,13 +486,15 @@
|
|
|
318
486
|
"name": "subscriberKind",
|
|
319
487
|
"type": "text",
|
|
320
488
|
"required": false,
|
|
321
|
-
"columnType": "TEXT"
|
|
489
|
+
"columnType": "TEXT",
|
|
490
|
+
"default": "tenant"
|
|
322
491
|
},
|
|
323
492
|
{
|
|
324
493
|
"name": "subscriberExternalId",
|
|
325
494
|
"type": "text",
|
|
326
495
|
"required": false,
|
|
327
|
-
"columnType": "TEXT"
|
|
496
|
+
"columnType": "TEXT",
|
|
497
|
+
"default": ""
|
|
328
498
|
},
|
|
329
499
|
{
|
|
330
500
|
"name": "planId",
|
|
@@ -337,7 +507,8 @@
|
|
|
337
507
|
"name": "status",
|
|
338
508
|
"type": "text",
|
|
339
509
|
"required": false,
|
|
340
|
-
"columnType": "TEXT"
|
|
510
|
+
"columnType": "TEXT",
|
|
511
|
+
"default": "incomplete"
|
|
341
512
|
},
|
|
342
513
|
{
|
|
343
514
|
"name": "startedAt",
|
|
@@ -367,7 +538,8 @@
|
|
|
367
538
|
"name": "cancelAtPeriodEnd",
|
|
368
539
|
"type": "boolean",
|
|
369
540
|
"required": false,
|
|
370
|
-
"columnType": "BOOLEAN"
|
|
541
|
+
"columnType": "BOOLEAN",
|
|
542
|
+
"default": false
|
|
371
543
|
},
|
|
372
544
|
{
|
|
373
545
|
"name": "canceledAt",
|
|
@@ -379,31 +551,36 @@
|
|
|
379
551
|
"name": "externalProvider",
|
|
380
552
|
"type": "text",
|
|
381
553
|
"required": false,
|
|
382
|
-
"columnType": "TEXT"
|
|
554
|
+
"columnType": "TEXT",
|
|
555
|
+
"default": "stripe"
|
|
383
556
|
},
|
|
384
557
|
{
|
|
385
558
|
"name": "stripeCustomerId",
|
|
386
559
|
"type": "text",
|
|
387
560
|
"required": false,
|
|
388
|
-
"columnType": "TEXT"
|
|
561
|
+
"columnType": "TEXT",
|
|
562
|
+
"default": ""
|
|
389
563
|
},
|
|
390
564
|
{
|
|
391
565
|
"name": "stripeSubscriptionId",
|
|
392
566
|
"type": "text",
|
|
393
567
|
"required": false,
|
|
394
|
-
"columnType": "TEXT"
|
|
568
|
+
"columnType": "TEXT",
|
|
569
|
+
"default": ""
|
|
395
570
|
},
|
|
396
571
|
{
|
|
397
572
|
"name": "stripeCheckoutSessionId",
|
|
398
573
|
"type": "text",
|
|
399
574
|
"required": false,
|
|
400
|
-
"columnType": "TEXT"
|
|
575
|
+
"columnType": "TEXT",
|
|
576
|
+
"default": ""
|
|
401
577
|
},
|
|
402
578
|
{
|
|
403
579
|
"name": "metadata",
|
|
404
580
|
"type": "text",
|
|
405
581
|
"required": false,
|
|
406
|
-
"columnType": "TEXT"
|
|
582
|
+
"columnType": "TEXT",
|
|
583
|
+
"default": "{}"
|
|
407
584
|
}
|
|
408
585
|
],
|
|
409
586
|
"relationships": [
|
|
@@ -421,6 +598,40 @@
|
|
|
421
598
|
"isEntitled",
|
|
422
599
|
"setMetadata"
|
|
423
600
|
],
|
|
601
|
+
"methodSignatures": [
|
|
602
|
+
{
|
|
603
|
+
"name": "getMetadata",
|
|
604
|
+
"returns": "JsonObject"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "getSubscriber",
|
|
608
|
+
"returns": "Subscriber | null"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "isEntitled",
|
|
612
|
+
"params": [
|
|
613
|
+
"now?: any"
|
|
614
|
+
],
|
|
615
|
+
"returns": "boolean"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "setMetadata",
|
|
619
|
+
"params": [
|
|
620
|
+
"metadata: JsonObject"
|
|
621
|
+
],
|
|
622
|
+
"returns": "void"
|
|
623
|
+
}
|
|
624
|
+
],
|
|
625
|
+
"tenant": {
|
|
626
|
+
"scoped": true,
|
|
627
|
+
"mode": "required",
|
|
628
|
+
"field": "tenantId"
|
|
629
|
+
},
|
|
630
|
+
"conflictColumns": [
|
|
631
|
+
"tenant_id",
|
|
632
|
+
"subscriber_kind",
|
|
633
|
+
"subscriber_external_id"
|
|
634
|
+
],
|
|
424
635
|
"surfaces": [
|
|
425
636
|
{
|
|
426
637
|
"kind": "api",
|
|
@@ -522,25 +733,29 @@
|
|
|
522
733
|
"name": "subscriberKind",
|
|
523
734
|
"type": "text",
|
|
524
735
|
"required": false,
|
|
525
|
-
"columnType": "TEXT"
|
|
736
|
+
"columnType": "TEXT",
|
|
737
|
+
"default": "tenant"
|
|
526
738
|
},
|
|
527
739
|
{
|
|
528
740
|
"name": "subscriberExternalId",
|
|
529
741
|
"type": "text",
|
|
530
742
|
"required": false,
|
|
531
|
-
"columnType": "TEXT"
|
|
743
|
+
"columnType": "TEXT",
|
|
744
|
+
"default": ""
|
|
532
745
|
},
|
|
533
746
|
{
|
|
534
747
|
"name": "metricKey",
|
|
535
748
|
"type": "text",
|
|
536
749
|
"required": false,
|
|
537
|
-
"columnType": "TEXT"
|
|
750
|
+
"columnType": "TEXT",
|
|
751
|
+
"default": ""
|
|
538
752
|
},
|
|
539
753
|
{
|
|
540
754
|
"name": "quantity",
|
|
541
755
|
"type": "decimal",
|
|
542
756
|
"required": false,
|
|
543
|
-
"columnType": "REAL"
|
|
757
|
+
"columnType": "REAL",
|
|
758
|
+
"default": 0
|
|
544
759
|
},
|
|
545
760
|
{
|
|
546
761
|
"name": "windowStart",
|
|
@@ -558,43 +773,50 @@
|
|
|
558
773
|
"name": "source",
|
|
559
774
|
"type": "text",
|
|
560
775
|
"required": false,
|
|
561
|
-
"columnType": "TEXT"
|
|
776
|
+
"columnType": "TEXT",
|
|
777
|
+
"default": ""
|
|
562
778
|
},
|
|
563
779
|
{
|
|
564
780
|
"name": "sourceId",
|
|
565
781
|
"type": "text",
|
|
566
782
|
"required": false,
|
|
567
|
-
"columnType": "TEXT"
|
|
783
|
+
"columnType": "TEXT",
|
|
784
|
+
"default": ""
|
|
568
785
|
},
|
|
569
786
|
{
|
|
570
787
|
"name": "projectId",
|
|
571
788
|
"type": "text",
|
|
572
789
|
"required": false,
|
|
573
|
-
"columnType": "TEXT"
|
|
790
|
+
"columnType": "TEXT",
|
|
791
|
+
"default": ""
|
|
574
792
|
},
|
|
575
793
|
{
|
|
576
794
|
"name": "workRefType",
|
|
577
795
|
"type": "text",
|
|
578
796
|
"required": false,
|
|
579
|
-
"columnType": "TEXT"
|
|
797
|
+
"columnType": "TEXT",
|
|
798
|
+
"default": ""
|
|
580
799
|
},
|
|
581
800
|
{
|
|
582
801
|
"name": "workRefId",
|
|
583
802
|
"type": "text",
|
|
584
803
|
"required": false,
|
|
585
|
-
"columnType": "TEXT"
|
|
804
|
+
"columnType": "TEXT",
|
|
805
|
+
"default": ""
|
|
586
806
|
},
|
|
587
807
|
{
|
|
588
808
|
"name": "provider",
|
|
589
809
|
"type": "text",
|
|
590
810
|
"required": false,
|
|
591
|
-
"columnType": "TEXT"
|
|
811
|
+
"columnType": "TEXT",
|
|
812
|
+
"default": ""
|
|
592
813
|
},
|
|
593
814
|
{
|
|
594
815
|
"name": "dimensions",
|
|
595
816
|
"type": "text",
|
|
596
817
|
"required": false,
|
|
597
|
-
"columnType": "TEXT"
|
|
818
|
+
"columnType": "TEXT",
|
|
819
|
+
"default": "{}"
|
|
598
820
|
}
|
|
599
821
|
],
|
|
600
822
|
"relationships": [],
|
|
@@ -603,6 +825,28 @@
|
|
|
603
825
|
"getSubscriber",
|
|
604
826
|
"setDimensions"
|
|
605
827
|
],
|
|
828
|
+
"methodSignatures": [
|
|
829
|
+
{
|
|
830
|
+
"name": "getDimensions",
|
|
831
|
+
"returns": "JsonObject"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "getSubscriber",
|
|
835
|
+
"returns": "Subscriber | null"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "setDimensions",
|
|
839
|
+
"params": [
|
|
840
|
+
"dimensions: JsonObject"
|
|
841
|
+
],
|
|
842
|
+
"returns": "void"
|
|
843
|
+
}
|
|
844
|
+
],
|
|
845
|
+
"tenant": {
|
|
846
|
+
"scoped": true,
|
|
847
|
+
"mode": "required",
|
|
848
|
+
"field": "tenantId"
|
|
849
|
+
},
|
|
606
850
|
"surfaces": [
|
|
607
851
|
{
|
|
608
852
|
"kind": "api",
|
|
@@ -683,31 +927,36 @@
|
|
|
683
927
|
"name": "ruleKey",
|
|
684
928
|
"type": "text",
|
|
685
929
|
"required": false,
|
|
686
|
-
"columnType": "TEXT"
|
|
930
|
+
"columnType": "TEXT",
|
|
931
|
+
"default": ""
|
|
687
932
|
},
|
|
688
933
|
{
|
|
689
934
|
"name": "metricKey",
|
|
690
935
|
"type": "text",
|
|
691
936
|
"required": false,
|
|
692
|
-
"columnType": "TEXT"
|
|
937
|
+
"columnType": "TEXT",
|
|
938
|
+
"default": ""
|
|
693
939
|
},
|
|
694
940
|
{
|
|
695
941
|
"name": "serviceKey",
|
|
696
942
|
"type": "text",
|
|
697
943
|
"required": false,
|
|
698
|
-
"columnType": "TEXT"
|
|
944
|
+
"columnType": "TEXT",
|
|
945
|
+
"default": ""
|
|
699
946
|
},
|
|
700
947
|
{
|
|
701
948
|
"name": "strategy",
|
|
702
949
|
"type": "text",
|
|
703
950
|
"required": false,
|
|
704
|
-
"columnType": "TEXT"
|
|
951
|
+
"columnType": "TEXT",
|
|
952
|
+
"default": "fixed_unit"
|
|
705
953
|
},
|
|
706
954
|
{
|
|
707
955
|
"name": "currency",
|
|
708
956
|
"type": "text",
|
|
709
957
|
"required": false,
|
|
710
|
-
"columnType": "TEXT"
|
|
958
|
+
"columnType": "TEXT",
|
|
959
|
+
"default": "USD"
|
|
711
960
|
},
|
|
712
961
|
{
|
|
713
962
|
"name": "effectiveFrom",
|
|
@@ -725,19 +974,22 @@
|
|
|
725
974
|
"name": "priority",
|
|
726
975
|
"type": "integer",
|
|
727
976
|
"required": false,
|
|
728
|
-
"columnType": "INTEGER"
|
|
977
|
+
"columnType": "INTEGER",
|
|
978
|
+
"default": 0
|
|
729
979
|
},
|
|
730
980
|
{
|
|
731
981
|
"name": "terms",
|
|
732
982
|
"type": "text",
|
|
733
983
|
"required": false,
|
|
734
|
-
"columnType": "TEXT"
|
|
984
|
+
"columnType": "TEXT",
|
|
985
|
+
"default": "{}"
|
|
735
986
|
},
|
|
736
987
|
{
|
|
737
988
|
"name": "active",
|
|
738
989
|
"type": "boolean",
|
|
739
990
|
"required": false,
|
|
740
|
-
"columnType": "BOOLEAN"
|
|
991
|
+
"columnType": "BOOLEAN",
|
|
992
|
+
"default": true
|
|
741
993
|
}
|
|
742
994
|
],
|
|
743
995
|
"relationships": [],
|
|
@@ -745,6 +997,24 @@
|
|
|
745
997
|
"getTerms",
|
|
746
998
|
"setTerms"
|
|
747
999
|
],
|
|
1000
|
+
"methodSignatures": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": "getTerms",
|
|
1003
|
+
"returns": "Record<string>"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"name": "setTerms",
|
|
1007
|
+
"params": [
|
|
1008
|
+
"value: Record<string>"
|
|
1009
|
+
],
|
|
1010
|
+
"returns": "void"
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
"tenant": {
|
|
1014
|
+
"scoped": true,
|
|
1015
|
+
"mode": "required",
|
|
1016
|
+
"field": "tenantId"
|
|
1017
|
+
},
|
|
748
1018
|
"surfaces": [
|
|
749
1019
|
{
|
|
750
1020
|
"kind": "api",
|
|
@@ -878,67 +1148,78 @@
|
|
|
878
1148
|
"name": "subscriberKind",
|
|
879
1149
|
"type": "text",
|
|
880
1150
|
"required": false,
|
|
881
|
-
"columnType": "TEXT"
|
|
1151
|
+
"columnType": "TEXT",
|
|
1152
|
+
"default": "tenant"
|
|
882
1153
|
},
|
|
883
1154
|
{
|
|
884
1155
|
"name": "subscriberExternalId",
|
|
885
1156
|
"type": "text",
|
|
886
1157
|
"required": false,
|
|
887
|
-
"columnType": "TEXT"
|
|
1158
|
+
"columnType": "TEXT",
|
|
1159
|
+
"default": ""
|
|
888
1160
|
},
|
|
889
1161
|
{
|
|
890
1162
|
"name": "projectId",
|
|
891
1163
|
"type": "text",
|
|
892
1164
|
"required": false,
|
|
893
|
-
"columnType": "TEXT"
|
|
1165
|
+
"columnType": "TEXT",
|
|
1166
|
+
"default": ""
|
|
894
1167
|
},
|
|
895
1168
|
{
|
|
896
1169
|
"name": "workRefType",
|
|
897
1170
|
"type": "text",
|
|
898
1171
|
"required": false,
|
|
899
|
-
"columnType": "TEXT"
|
|
1172
|
+
"columnType": "TEXT",
|
|
1173
|
+
"default": ""
|
|
900
1174
|
},
|
|
901
1175
|
{
|
|
902
1176
|
"name": "workRefId",
|
|
903
1177
|
"type": "text",
|
|
904
1178
|
"required": false,
|
|
905
|
-
"columnType": "TEXT"
|
|
1179
|
+
"columnType": "TEXT",
|
|
1180
|
+
"default": ""
|
|
906
1181
|
},
|
|
907
1182
|
{
|
|
908
1183
|
"name": "provider",
|
|
909
1184
|
"type": "text",
|
|
910
1185
|
"required": false,
|
|
911
|
-
"columnType": "TEXT"
|
|
1186
|
+
"columnType": "TEXT",
|
|
1187
|
+
"default": ""
|
|
912
1188
|
},
|
|
913
1189
|
{
|
|
914
1190
|
"name": "serviceKey",
|
|
915
1191
|
"type": "text",
|
|
916
1192
|
"required": false,
|
|
917
|
-
"columnType": "TEXT"
|
|
1193
|
+
"columnType": "TEXT",
|
|
1194
|
+
"default": ""
|
|
918
1195
|
},
|
|
919
1196
|
{
|
|
920
1197
|
"name": "metricKey",
|
|
921
1198
|
"type": "text",
|
|
922
1199
|
"required": false,
|
|
923
|
-
"columnType": "TEXT"
|
|
1200
|
+
"columnType": "TEXT",
|
|
1201
|
+
"default": ""
|
|
924
1202
|
},
|
|
925
1203
|
{
|
|
926
1204
|
"name": "quantity",
|
|
927
1205
|
"type": "decimal",
|
|
928
1206
|
"required": false,
|
|
929
|
-
"columnType": "REAL"
|
|
1207
|
+
"columnType": "REAL",
|
|
1208
|
+
"default": 0
|
|
930
1209
|
},
|
|
931
1210
|
{
|
|
932
1211
|
"name": "amount",
|
|
933
1212
|
"type": "decimal",
|
|
934
1213
|
"required": false,
|
|
935
|
-
"columnType": "REAL"
|
|
1214
|
+
"columnType": "REAL",
|
|
1215
|
+
"default": 0
|
|
936
1216
|
},
|
|
937
1217
|
{
|
|
938
1218
|
"name": "currency",
|
|
939
1219
|
"type": "text",
|
|
940
1220
|
"required": false,
|
|
941
|
-
"columnType": "TEXT"
|
|
1221
|
+
"columnType": "TEXT",
|
|
1222
|
+
"default": "USD"
|
|
942
1223
|
},
|
|
943
1224
|
{
|
|
944
1225
|
"name": "pricingRuleId",
|
|
@@ -951,13 +1232,15 @@
|
|
|
951
1232
|
"name": "pricingSnapshot",
|
|
952
1233
|
"type": "text",
|
|
953
1234
|
"required": false,
|
|
954
|
-
"columnType": "TEXT"
|
|
1235
|
+
"columnType": "TEXT",
|
|
1236
|
+
"default": "{}"
|
|
955
1237
|
},
|
|
956
1238
|
{
|
|
957
1239
|
"name": "status",
|
|
958
1240
|
"type": "text",
|
|
959
1241
|
"required": false,
|
|
960
|
-
"columnType": "TEXT"
|
|
1242
|
+
"columnType": "TEXT",
|
|
1243
|
+
"default": "draft"
|
|
961
1244
|
},
|
|
962
1245
|
{
|
|
963
1246
|
"name": "approvedAt",
|
|
@@ -985,6 +1268,20 @@
|
|
|
985
1268
|
"methods": [
|
|
986
1269
|
"getPricingSnapshot"
|
|
987
1270
|
],
|
|
1271
|
+
"methodSignatures": [
|
|
1272
|
+
{
|
|
1273
|
+
"name": "getPricingSnapshot",
|
|
1274
|
+
"returns": "Record<string>"
|
|
1275
|
+
}
|
|
1276
|
+
],
|
|
1277
|
+
"tenant": {
|
|
1278
|
+
"scoped": true,
|
|
1279
|
+
"mode": "required",
|
|
1280
|
+
"field": "tenantId"
|
|
1281
|
+
},
|
|
1282
|
+
"conflictColumns": [
|
|
1283
|
+
"usage_event_id"
|
|
1284
|
+
],
|
|
988
1285
|
"surfaces": [
|
|
989
1286
|
{
|
|
990
1287
|
"kind": "api",
|
|
@@ -1059,37 +1356,43 @@
|
|
|
1059
1356
|
"name": "amount",
|
|
1060
1357
|
"type": "decimal",
|
|
1061
1358
|
"required": false,
|
|
1062
|
-
"columnType": "REAL"
|
|
1359
|
+
"columnType": "REAL",
|
|
1360
|
+
"default": 0
|
|
1063
1361
|
},
|
|
1064
1362
|
{
|
|
1065
1363
|
"name": "currency",
|
|
1066
1364
|
"type": "text",
|
|
1067
1365
|
"required": false,
|
|
1068
|
-
"columnType": "TEXT"
|
|
1366
|
+
"columnType": "TEXT",
|
|
1367
|
+
"default": "USD"
|
|
1069
1368
|
},
|
|
1070
1369
|
{
|
|
1071
1370
|
"name": "reason",
|
|
1072
1371
|
"type": "text",
|
|
1073
1372
|
"required": false,
|
|
1074
|
-
"columnType": "TEXT"
|
|
1373
|
+
"columnType": "TEXT",
|
|
1374
|
+
"default": ""
|
|
1075
1375
|
},
|
|
1076
1376
|
{
|
|
1077
1377
|
"name": "source",
|
|
1078
1378
|
"type": "text",
|
|
1079
1379
|
"required": false,
|
|
1080
|
-
"columnType": "TEXT"
|
|
1380
|
+
"columnType": "TEXT",
|
|
1381
|
+
"default": ""
|
|
1081
1382
|
},
|
|
1082
1383
|
{
|
|
1083
1384
|
"name": "sourceId",
|
|
1084
1385
|
"type": "text",
|
|
1085
1386
|
"required": false,
|
|
1086
|
-
"columnType": "TEXT"
|
|
1387
|
+
"columnType": "TEXT",
|
|
1388
|
+
"default": ""
|
|
1087
1389
|
},
|
|
1088
1390
|
{
|
|
1089
1391
|
"name": "createdBy",
|
|
1090
1392
|
"type": "text",
|
|
1091
1393
|
"required": false,
|
|
1092
|
-
"columnType": "TEXT"
|
|
1394
|
+
"columnType": "TEXT",
|
|
1395
|
+
"default": ""
|
|
1093
1396
|
}
|
|
1094
1397
|
],
|
|
1095
1398
|
"relationships": [
|
|
@@ -1102,6 +1405,11 @@
|
|
|
1102
1405
|
}
|
|
1103
1406
|
],
|
|
1104
1407
|
"methods": [],
|
|
1408
|
+
"tenant": {
|
|
1409
|
+
"scoped": true,
|
|
1410
|
+
"mode": "required",
|
|
1411
|
+
"field": "tenantId"
|
|
1412
|
+
},
|
|
1105
1413
|
"surfaces": [
|
|
1106
1414
|
{
|
|
1107
1415
|
"kind": "api",
|
|
@@ -1169,83 +1477,111 @@
|
|
|
1169
1477
|
"name": "name",
|
|
1170
1478
|
"type": "text",
|
|
1171
1479
|
"required": false,
|
|
1172
|
-
"columnType": "TEXT"
|
|
1480
|
+
"columnType": "TEXT",
|
|
1481
|
+
"default": ""
|
|
1173
1482
|
},
|
|
1174
1483
|
{
|
|
1175
1484
|
"name": "subscriberKind",
|
|
1176
1485
|
"type": "text",
|
|
1177
1486
|
"required": false,
|
|
1178
|
-
"columnType": "TEXT"
|
|
1487
|
+
"columnType": "TEXT",
|
|
1488
|
+
"default": ""
|
|
1179
1489
|
},
|
|
1180
1490
|
{
|
|
1181
1491
|
"name": "subscriberExternalId",
|
|
1182
1492
|
"type": "text",
|
|
1183
1493
|
"required": false,
|
|
1184
|
-
"columnType": "TEXT"
|
|
1494
|
+
"columnType": "TEXT",
|
|
1495
|
+
"default": ""
|
|
1185
1496
|
},
|
|
1186
1497
|
{
|
|
1187
1498
|
"name": "projectId",
|
|
1188
1499
|
"type": "text",
|
|
1189
1500
|
"required": false,
|
|
1190
|
-
"columnType": "TEXT"
|
|
1501
|
+
"columnType": "TEXT",
|
|
1502
|
+
"default": ""
|
|
1191
1503
|
},
|
|
1192
1504
|
{
|
|
1193
1505
|
"name": "serviceKey",
|
|
1194
1506
|
"type": "text",
|
|
1195
1507
|
"required": false,
|
|
1196
|
-
"columnType": "TEXT"
|
|
1508
|
+
"columnType": "TEXT",
|
|
1509
|
+
"default": ""
|
|
1197
1510
|
},
|
|
1198
1511
|
{
|
|
1199
1512
|
"name": "metricKey",
|
|
1200
1513
|
"type": "text",
|
|
1201
1514
|
"required": false,
|
|
1202
|
-
"columnType": "TEXT"
|
|
1515
|
+
"columnType": "TEXT",
|
|
1516
|
+
"default": ""
|
|
1203
1517
|
},
|
|
1204
1518
|
{
|
|
1205
1519
|
"name": "period",
|
|
1206
1520
|
"type": "text",
|
|
1207
1521
|
"required": false,
|
|
1208
|
-
"columnType": "TEXT"
|
|
1522
|
+
"columnType": "TEXT",
|
|
1523
|
+
"default": "month"
|
|
1209
1524
|
},
|
|
1210
1525
|
{
|
|
1211
1526
|
"name": "rollingSeconds",
|
|
1212
1527
|
"type": "integer",
|
|
1213
1528
|
"required": false,
|
|
1214
|
-
"columnType": "INTEGER"
|
|
1529
|
+
"columnType": "INTEGER",
|
|
1530
|
+
"default": 0
|
|
1215
1531
|
},
|
|
1216
1532
|
{
|
|
1217
1533
|
"name": "limitAmount",
|
|
1218
1534
|
"type": "decimal",
|
|
1219
1535
|
"required": false,
|
|
1220
|
-
"columnType": "REAL"
|
|
1536
|
+
"columnType": "REAL",
|
|
1537
|
+
"default": 0
|
|
1221
1538
|
},
|
|
1222
1539
|
{
|
|
1223
1540
|
"name": "currency",
|
|
1224
1541
|
"type": "text",
|
|
1225
1542
|
"required": false,
|
|
1226
|
-
"columnType": "TEXT"
|
|
1543
|
+
"columnType": "TEXT",
|
|
1544
|
+
"default": "USD"
|
|
1227
1545
|
},
|
|
1228
1546
|
{
|
|
1229
1547
|
"name": "behavior",
|
|
1230
1548
|
"type": "text",
|
|
1231
1549
|
"required": false,
|
|
1232
|
-
"columnType": "TEXT"
|
|
1550
|
+
"columnType": "TEXT",
|
|
1551
|
+
"default": "observe"
|
|
1233
1552
|
},
|
|
1234
1553
|
{
|
|
1235
1554
|
"name": "priority",
|
|
1236
1555
|
"type": "integer",
|
|
1237
1556
|
"required": false,
|
|
1238
|
-
"columnType": "INTEGER"
|
|
1557
|
+
"columnType": "INTEGER",
|
|
1558
|
+
"default": 0
|
|
1239
1559
|
},
|
|
1240
1560
|
{
|
|
1241
1561
|
"name": "active",
|
|
1242
1562
|
"type": "boolean",
|
|
1243
1563
|
"required": false,
|
|
1244
|
-
"columnType": "BOOLEAN"
|
|
1564
|
+
"columnType": "BOOLEAN",
|
|
1565
|
+
"default": true
|
|
1245
1566
|
}
|
|
1246
1567
|
],
|
|
1247
1568
|
"relationships": [],
|
|
1248
1569
|
"methods": [],
|
|
1570
|
+
"tenant": {
|
|
1571
|
+
"scoped": true,
|
|
1572
|
+
"mode": "required",
|
|
1573
|
+
"field": "tenantId"
|
|
1574
|
+
},
|
|
1575
|
+
"conflictColumns": [
|
|
1576
|
+
"tenant_id",
|
|
1577
|
+
"subscriber_kind",
|
|
1578
|
+
"subscriber_external_id",
|
|
1579
|
+
"project_id",
|
|
1580
|
+
"service_key",
|
|
1581
|
+
"metric_key",
|
|
1582
|
+
"period",
|
|
1583
|
+
"name"
|
|
1584
|
+
],
|
|
1249
1585
|
"surfaces": [
|
|
1250
1586
|
{
|
|
1251
1587
|
"kind": "api",
|