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