@lssm/example.saas-boilerplate 0.0.0-canary-20251206160926 → 0.0.0-canary-20251207012602
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/.turbo/turbo-build.log +73 -73
- package/CHANGELOG.md +8 -8
- package/dist/contracts/billing.d.ts +89 -89
- package/dist/contracts/project.d.ts +157 -157
- package/dist/entities/billing.d.ts +41 -41
- package/dist/entities/index.d.ts +85 -85
- package/dist/entities/project.d.ts +24 -24
- package/dist/entities/settings.d.ts +25 -25
- package/dist/events.d.ts +79 -79
- package/dist/index.d.ts +2 -2
- package/dist/presentations/index.d.ts +2 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema249 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/billing.d.ts
|
|
5
|
-
declare const FeatureAccessReasonEnum:
|
|
6
|
-
declare const SubscriptionModel:
|
|
5
|
+
declare const FeatureAccessReasonEnum: _lssm_lib_schema249.EnumType<[string, string, string, string]>;
|
|
6
|
+
declare const SubscriptionModel: _lssm_lib_schema249.SchemaModel<{
|
|
7
7
|
id: {
|
|
8
|
-
type:
|
|
8
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
9
9
|
isOptional: false;
|
|
10
10
|
};
|
|
11
11
|
organizationId: {
|
|
12
|
-
type:
|
|
12
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
13
13
|
isOptional: false;
|
|
14
14
|
};
|
|
15
15
|
planId: {
|
|
16
|
-
type:
|
|
16
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
17
17
|
isOptional: false;
|
|
18
18
|
};
|
|
19
19
|
planName: {
|
|
20
|
-
type:
|
|
20
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
21
21
|
isOptional: false;
|
|
22
22
|
};
|
|
23
23
|
status: {
|
|
24
|
-
type:
|
|
24
|
+
type: _lssm_lib_schema249.EnumType<[string, string, string, string, string]>;
|
|
25
25
|
isOptional: false;
|
|
26
26
|
};
|
|
27
27
|
currentPeriodStart: {
|
|
28
|
-
type:
|
|
28
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
29
29
|
isOptional: false;
|
|
30
30
|
};
|
|
31
31
|
currentPeriodEnd: {
|
|
32
|
-
type:
|
|
32
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
33
33
|
isOptional: false;
|
|
34
34
|
};
|
|
35
35
|
trialEndsAt: {
|
|
36
|
-
type:
|
|
36
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
37
37
|
isOptional: true;
|
|
38
38
|
};
|
|
39
39
|
cancelAtPeriodEnd: {
|
|
40
|
-
type:
|
|
40
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
41
41
|
isOptional: false;
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
|
-
declare const UsageSummaryModel:
|
|
44
|
+
declare const UsageSummaryModel: _lssm_lib_schema249.SchemaModel<{
|
|
45
45
|
feature: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
used: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
limit: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
unit: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
percentage: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
66
|
-
declare const RecordUsageInputModel:
|
|
66
|
+
declare const RecordUsageInputModel: _lssm_lib_schema249.SchemaModel<{
|
|
67
67
|
feature: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
quantity: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
sourceId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
sourceType: {
|
|
80
|
-
type:
|
|
80
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
81
81
|
isOptional: true;
|
|
82
82
|
};
|
|
83
83
|
metadata: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema249.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
85
85
|
isOptional: true;
|
|
86
86
|
};
|
|
87
87
|
}>;
|
|
88
|
-
declare const RecordUsageOutputModel:
|
|
88
|
+
declare const RecordUsageOutputModel: _lssm_lib_schema249.SchemaModel<{
|
|
89
89
|
recorded: {
|
|
90
|
-
type:
|
|
90
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
currentUsage: {
|
|
94
|
-
type:
|
|
94
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
limit: {
|
|
98
|
-
type:
|
|
98
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
limitReached: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
103
103
|
isOptional: false;
|
|
104
104
|
};
|
|
105
105
|
}>;
|
|
106
|
-
declare const UsageRecordedPayloadModel:
|
|
106
|
+
declare const UsageRecordedPayloadModel: _lssm_lib_schema249.SchemaModel<{
|
|
107
107
|
feature: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
quantity: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
}>;
|
|
116
|
-
declare const GetUsageSummaryInputModel:
|
|
116
|
+
declare const GetUsageSummaryInputModel: _lssm_lib_schema249.SchemaModel<{
|
|
117
117
|
billingPeriod: {
|
|
118
|
-
type:
|
|
118
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
119
119
|
isOptional: true;
|
|
120
120
|
};
|
|
121
121
|
}>;
|
|
122
|
-
declare const GetUsageSummaryOutputModel:
|
|
122
|
+
declare const GetUsageSummaryOutputModel: _lssm_lib_schema249.SchemaModel<{
|
|
123
123
|
billingPeriod: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
usage: {
|
|
128
|
-
type:
|
|
128
|
+
type: _lssm_lib_schema249.SchemaModel<{
|
|
129
129
|
feature: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
used: {
|
|
134
|
-
type:
|
|
134
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
limit: {
|
|
138
|
-
type:
|
|
138
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
139
139
|
isOptional: true;
|
|
140
140
|
};
|
|
141
141
|
unit: {
|
|
142
|
-
type:
|
|
142
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
143
143
|
isOptional: true;
|
|
144
144
|
};
|
|
145
145
|
percentage: {
|
|
146
|
-
type:
|
|
146
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
147
147
|
isOptional: true;
|
|
148
148
|
};
|
|
149
149
|
}>;
|
|
@@ -151,119 +151,119 @@ declare const GetUsageSummaryOutputModel: _lssm_lib_schema78.SchemaModel<{
|
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
}>;
|
|
154
|
-
declare const CheckFeatureAccessInputModel:
|
|
154
|
+
declare const CheckFeatureAccessInputModel: _lssm_lib_schema249.SchemaModel<{
|
|
155
155
|
feature: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
157
157
|
isOptional: false;
|
|
158
158
|
};
|
|
159
159
|
}>;
|
|
160
|
-
declare const CheckFeatureAccessOutputModel:
|
|
160
|
+
declare const CheckFeatureAccessOutputModel: _lssm_lib_schema249.SchemaModel<{
|
|
161
161
|
hasAccess: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
reason: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema249.EnumType<[string, string, string, string]>;
|
|
167
167
|
isOptional: true;
|
|
168
168
|
};
|
|
169
169
|
upgradeUrl: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
}>;
|
|
174
174
|
/**
|
|
175
175
|
* Get subscription status.
|
|
176
176
|
*/
|
|
177
|
-
declare const GetSubscriptionContract:
|
|
177
|
+
declare const GetSubscriptionContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema249.AnySchemaModel, _lssm_lib_schema249.SchemaModel<{
|
|
178
178
|
id: {
|
|
179
|
-
type:
|
|
179
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
180
180
|
isOptional: false;
|
|
181
181
|
};
|
|
182
182
|
organizationId: {
|
|
183
|
-
type:
|
|
183
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
184
184
|
isOptional: false;
|
|
185
185
|
};
|
|
186
186
|
planId: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
planName: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
status: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema249.EnumType<[string, string, string, string, string]>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
currentPeriodStart: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
200
200
|
isOptional: false;
|
|
201
201
|
};
|
|
202
202
|
currentPeriodEnd: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
204
204
|
isOptional: false;
|
|
205
205
|
};
|
|
206
206
|
trialEndsAt: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema249.FieldType<Date, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
cancelAtPeriodEnd: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
}>, undefined>;
|
|
215
215
|
/**
|
|
216
216
|
* Record feature usage.
|
|
217
217
|
*/
|
|
218
|
-
declare const RecordUsageContract:
|
|
218
|
+
declare const RecordUsageContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema249.SchemaModel<{
|
|
219
219
|
feature: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
quantity: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
227
|
sourceId: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
sourceType: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
metadata: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema249.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
237
237
|
isOptional: true;
|
|
238
238
|
};
|
|
239
|
-
}>,
|
|
239
|
+
}>, _lssm_lib_schema249.SchemaModel<{
|
|
240
240
|
recorded: {
|
|
241
|
-
type:
|
|
241
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
242
242
|
isOptional: false;
|
|
243
243
|
};
|
|
244
244
|
currentUsage: {
|
|
245
|
-
type:
|
|
245
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
246
246
|
isOptional: false;
|
|
247
247
|
};
|
|
248
248
|
limit: {
|
|
249
|
-
type:
|
|
249
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
250
250
|
isOptional: true;
|
|
251
251
|
};
|
|
252
252
|
limitReached: {
|
|
253
|
-
type:
|
|
253
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
254
254
|
isOptional: false;
|
|
255
255
|
};
|
|
256
256
|
}>, {
|
|
257
257
|
name: string;
|
|
258
258
|
version: number;
|
|
259
259
|
when: string;
|
|
260
|
-
payload:
|
|
260
|
+
payload: _lssm_lib_schema249.SchemaModel<{
|
|
261
261
|
feature: {
|
|
262
|
-
type:
|
|
262
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
263
263
|
isOptional: false;
|
|
264
264
|
};
|
|
265
265
|
quantity: {
|
|
266
|
-
type:
|
|
266
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
267
267
|
isOptional: false;
|
|
268
268
|
};
|
|
269
269
|
}>;
|
|
@@ -271,36 +271,36 @@ declare const RecordUsageContract: _lssm_lib_contracts13.ContractSpec<_lssm_lib_
|
|
|
271
271
|
/**
|
|
272
272
|
* Get usage summary.
|
|
273
273
|
*/
|
|
274
|
-
declare const GetUsageSummaryContract:
|
|
274
|
+
declare const GetUsageSummaryContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema249.SchemaModel<{
|
|
275
275
|
billingPeriod: {
|
|
276
|
-
type:
|
|
276
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
277
277
|
isOptional: true;
|
|
278
278
|
};
|
|
279
|
-
}>,
|
|
279
|
+
}>, _lssm_lib_schema249.SchemaModel<{
|
|
280
280
|
billingPeriod: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
usage: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema249.SchemaModel<{
|
|
286
286
|
feature: {
|
|
287
|
-
type:
|
|
287
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
288
288
|
isOptional: false;
|
|
289
289
|
};
|
|
290
290
|
used: {
|
|
291
|
-
type:
|
|
291
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
292
292
|
isOptional: false;
|
|
293
293
|
};
|
|
294
294
|
limit: {
|
|
295
|
-
type:
|
|
295
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
296
296
|
isOptional: true;
|
|
297
297
|
};
|
|
298
298
|
unit: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
300
300
|
isOptional: true;
|
|
301
301
|
};
|
|
302
302
|
percentage: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema249.FieldType<number, number>;
|
|
304
304
|
isOptional: true;
|
|
305
305
|
};
|
|
306
306
|
}>;
|
|
@@ -311,22 +311,22 @@ declare const GetUsageSummaryContract: _lssm_lib_contracts13.ContractSpec<_lssm_
|
|
|
311
311
|
/**
|
|
312
312
|
* Check feature access.
|
|
313
313
|
*/
|
|
314
|
-
declare const CheckFeatureAccessContract:
|
|
314
|
+
declare const CheckFeatureAccessContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema249.SchemaModel<{
|
|
315
315
|
feature: {
|
|
316
|
-
type:
|
|
316
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
317
317
|
isOptional: false;
|
|
318
318
|
};
|
|
319
|
-
}>,
|
|
319
|
+
}>, _lssm_lib_schema249.SchemaModel<{
|
|
320
320
|
hasAccess: {
|
|
321
|
-
type:
|
|
321
|
+
type: _lssm_lib_schema249.FieldType<boolean, boolean>;
|
|
322
322
|
isOptional: false;
|
|
323
323
|
};
|
|
324
324
|
reason: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema249.EnumType<[string, string, string, string]>;
|
|
326
326
|
isOptional: true;
|
|
327
327
|
};
|
|
328
328
|
upgradeUrl: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema249.FieldType<string, string>;
|
|
330
330
|
isOptional: true;
|
|
331
331
|
};
|
|
332
332
|
}>, undefined>;
|