lancer-shared 1.2.287 → 1.2.288

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.
@@ -6,17 +6,14 @@ export declare const planStripeMetadataSchema: z.ZodObject<{
6
6
  id: z.ZodString;
7
7
  nickname: z.ZodString;
8
8
  lookup_key: z.ZodString;
9
- billing_interval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
10
9
  }, "strip", z.ZodTypeAny, {
11
10
  id: string;
12
11
  nickname: string;
13
12
  lookup_key: string;
14
- billing_interval: "monthly" | "quarterly" | "yearly";
15
13
  }, {
16
14
  id: string;
17
15
  nickname: string;
18
16
  lookup_key: string;
19
- billing_interval: "monthly" | "quarterly" | "yearly";
20
17
  }>, "many">;
21
18
  }, "strip", z.ZodTypeAny, {
22
19
  id: string;
@@ -25,7 +22,6 @@ export declare const planStripeMetadataSchema: z.ZodObject<{
25
22
  id: string;
26
23
  nickname: string;
27
24
  lookup_key: string;
28
- billing_interval: "monthly" | "quarterly" | "yearly";
29
25
  }[];
30
26
  }, {
31
27
  id: string;
@@ -34,7 +30,6 @@ export declare const planStripeMetadataSchema: z.ZodObject<{
34
30
  id: string;
35
31
  nickname: string;
36
32
  lookup_key: string;
37
- billing_interval: "monthly" | "quarterly" | "yearly";
38
33
  }[];
39
34
  }>;
40
35
  export declare const planFeatureSchema: z.ZodObject<{
@@ -52,114 +47,166 @@ export declare const planFeatureSchema: z.ZodObject<{
52
47
  }>;
53
48
  export declare const planPricingIntervalSchema: z.ZodObject<{
54
49
  amount: z.ZodNumber;
55
- label: z.ZodString;
50
+ currency: z.ZodString;
56
51
  priceId: z.ZodString;
57
52
  lookupKey: z.ZodString;
53
+ isLegacyPricing: z.ZodBoolean;
58
54
  }, "strip", z.ZodTypeAny, {
59
- label: string;
55
+ currency: string;
60
56
  amount: number;
61
57
  priceId: string;
62
58
  lookupKey: string;
59
+ isLegacyPricing: boolean;
63
60
  }, {
64
- label: string;
61
+ currency: string;
65
62
  amount: number;
66
63
  priceId: string;
67
64
  lookupKey: string;
65
+ isLegacyPricing: boolean;
68
66
  }>;
69
67
  export declare const planPricingSchema: z.ZodObject<{
70
- monthly: z.ZodArray<z.ZodObject<{
68
+ monthly: z.ZodObject<{
71
69
  amount: z.ZodNumber;
72
- label: z.ZodString;
70
+ currency: z.ZodString;
73
71
  priceId: z.ZodString;
74
72
  lookupKey: z.ZodString;
73
+ isLegacyPricing: z.ZodBoolean;
75
74
  }, "strip", z.ZodTypeAny, {
76
- label: string;
75
+ currency: string;
77
76
  amount: number;
78
77
  priceId: string;
79
78
  lookupKey: string;
79
+ isLegacyPricing: boolean;
80
80
  }, {
81
- label: string;
81
+ currency: string;
82
82
  amount: number;
83
83
  priceId: string;
84
84
  lookupKey: string;
85
- }>, "many">;
86
- quarterly: z.ZodOptional<z.ZodArray<z.ZodObject<{
85
+ isLegacyPricing: boolean;
86
+ }>;
87
+ quarterly: z.ZodOptional<z.ZodObject<{
87
88
  amount: z.ZodNumber;
88
- label: z.ZodString;
89
+ currency: z.ZodString;
89
90
  priceId: z.ZodString;
90
91
  lookupKey: z.ZodString;
92
+ isLegacyPricing: z.ZodBoolean;
91
93
  }, "strip", z.ZodTypeAny, {
92
- label: string;
94
+ currency: string;
93
95
  amount: number;
94
96
  priceId: string;
95
97
  lookupKey: string;
98
+ isLegacyPricing: boolean;
96
99
  }, {
97
- label: string;
100
+ currency: string;
98
101
  amount: number;
99
102
  priceId: string;
100
103
  lookupKey: string;
101
- }>, "many">>;
102
- yearly: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ isLegacyPricing: boolean;
105
+ }>>;
106
+ yearly: z.ZodOptional<z.ZodObject<{
103
107
  amount: z.ZodNumber;
104
- label: z.ZodString;
108
+ currency: z.ZodString;
105
109
  priceId: z.ZodString;
106
110
  lookupKey: z.ZodString;
111
+ isLegacyPricing: z.ZodBoolean;
107
112
  }, "strip", z.ZodTypeAny, {
108
- label: string;
113
+ currency: string;
109
114
  amount: number;
110
115
  priceId: string;
111
116
  lookupKey: string;
117
+ isLegacyPricing: boolean;
112
118
  }, {
113
- label: string;
119
+ currency: string;
114
120
  amount: number;
115
121
  priceId: string;
116
122
  lookupKey: string;
117
- }>, "many">>;
123
+ isLegacyPricing: boolean;
124
+ }>>;
118
125
  }, "strip", z.ZodTypeAny, {
119
126
  monthly: {
120
- label: string;
127
+ currency: string;
121
128
  amount: number;
122
129
  priceId: string;
123
130
  lookupKey: string;
124
- }[];
131
+ isLegacyPricing: boolean;
132
+ };
125
133
  quarterly?: {
126
- label: string;
134
+ currency: string;
127
135
  amount: number;
128
136
  priceId: string;
129
137
  lookupKey: string;
130
- }[] | undefined;
138
+ isLegacyPricing: boolean;
139
+ } | undefined;
131
140
  yearly?: {
132
- label: string;
141
+ currency: string;
133
142
  amount: number;
134
143
  priceId: string;
135
144
  lookupKey: string;
136
- }[] | undefined;
145
+ isLegacyPricing: boolean;
146
+ } | undefined;
137
147
  }, {
138
148
  monthly: {
139
- label: string;
149
+ currency: string;
140
150
  amount: number;
141
151
  priceId: string;
142
152
  lookupKey: string;
143
- }[];
153
+ isLegacyPricing: boolean;
154
+ };
144
155
  quarterly?: {
145
- label: string;
156
+ currency: string;
146
157
  amount: number;
147
158
  priceId: string;
148
159
  lookupKey: string;
149
- }[] | undefined;
160
+ isLegacyPricing: boolean;
161
+ } | undefined;
150
162
  yearly?: {
151
- label: string;
163
+ currency: string;
152
164
  amount: number;
153
165
  priceId: string;
154
166
  lookupKey: string;
155
- }[] | undefined;
167
+ isLegacyPricing: boolean;
168
+ } | undefined;
156
169
  }>;
157
170
  export declare const planSchema: z.ZodObject<{
158
171
  id: z.ZodString;
159
172
  name: z.ZodString;
173
+ displayName: z.ZodString;
160
174
  slug: z.ZodString;
161
175
  description: z.ZodString;
162
176
  price: z.ZodNumber;
177
+ stripe: z.ZodObject<{
178
+ id: z.ZodString;
179
+ name: z.ZodString;
180
+ prices: z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ nickname: z.ZodString;
183
+ lookup_key: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ id: string;
186
+ nickname: string;
187
+ lookup_key: string;
188
+ }, {
189
+ id: string;
190
+ nickname: string;
191
+ lookup_key: string;
192
+ }>, "many">;
193
+ }, "strip", z.ZodTypeAny, {
194
+ id: string;
195
+ name: string;
196
+ prices: {
197
+ id: string;
198
+ nickname: string;
199
+ lookup_key: string;
200
+ }[];
201
+ }, {
202
+ id: string;
203
+ name: string;
204
+ prices: {
205
+ id: string;
206
+ nickname: string;
207
+ lookup_key: string;
208
+ }[];
209
+ }>;
163
210
  version: z.ZodNumber;
164
211
  features: z.ZodArray<z.ZodObject<{
165
212
  id: z.ZodString;
@@ -178,94 +225,108 @@ export declare const planSchema: z.ZodObject<{
178
225
  isActive: z.ZodBoolean;
179
226
  createdAt: z.ZodNumber;
180
227
  archivedAt: z.ZodNullable<z.ZodNumber>;
181
- hasFreeTrial: z.ZodBoolean;
182
228
  pricing: z.ZodObject<{
183
- monthly: z.ZodArray<z.ZodObject<{
229
+ monthly: z.ZodObject<{
184
230
  amount: z.ZodNumber;
185
- label: z.ZodString;
231
+ currency: z.ZodString;
186
232
  priceId: z.ZodString;
187
233
  lookupKey: z.ZodString;
234
+ isLegacyPricing: z.ZodBoolean;
188
235
  }, "strip", z.ZodTypeAny, {
189
- label: string;
236
+ currency: string;
190
237
  amount: number;
191
238
  priceId: string;
192
239
  lookupKey: string;
240
+ isLegacyPricing: boolean;
193
241
  }, {
194
- label: string;
242
+ currency: string;
195
243
  amount: number;
196
244
  priceId: string;
197
245
  lookupKey: string;
198
- }>, "many">;
199
- quarterly: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ isLegacyPricing: boolean;
247
+ }>;
248
+ quarterly: z.ZodOptional<z.ZodObject<{
200
249
  amount: z.ZodNumber;
201
- label: z.ZodString;
250
+ currency: z.ZodString;
202
251
  priceId: z.ZodString;
203
252
  lookupKey: z.ZodString;
253
+ isLegacyPricing: z.ZodBoolean;
204
254
  }, "strip", z.ZodTypeAny, {
205
- label: string;
255
+ currency: string;
206
256
  amount: number;
207
257
  priceId: string;
208
258
  lookupKey: string;
259
+ isLegacyPricing: boolean;
209
260
  }, {
210
- label: string;
261
+ currency: string;
211
262
  amount: number;
212
263
  priceId: string;
213
264
  lookupKey: string;
214
- }>, "many">>;
215
- yearly: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ isLegacyPricing: boolean;
266
+ }>>;
267
+ yearly: z.ZodOptional<z.ZodObject<{
216
268
  amount: z.ZodNumber;
217
- label: z.ZodString;
269
+ currency: z.ZodString;
218
270
  priceId: z.ZodString;
219
271
  lookupKey: z.ZodString;
272
+ isLegacyPricing: z.ZodBoolean;
220
273
  }, "strip", z.ZodTypeAny, {
221
- label: string;
274
+ currency: string;
222
275
  amount: number;
223
276
  priceId: string;
224
277
  lookupKey: string;
278
+ isLegacyPricing: boolean;
225
279
  }, {
226
- label: string;
280
+ currency: string;
227
281
  amount: number;
228
282
  priceId: string;
229
283
  lookupKey: string;
230
- }>, "many">>;
284
+ isLegacyPricing: boolean;
285
+ }>>;
231
286
  }, "strip", z.ZodTypeAny, {
232
287
  monthly: {
233
- label: string;
288
+ currency: string;
234
289
  amount: number;
235
290
  priceId: string;
236
291
  lookupKey: string;
237
- }[];
292
+ isLegacyPricing: boolean;
293
+ };
238
294
  quarterly?: {
239
- label: string;
295
+ currency: string;
240
296
  amount: number;
241
297
  priceId: string;
242
298
  lookupKey: string;
243
- }[] | undefined;
299
+ isLegacyPricing: boolean;
300
+ } | undefined;
244
301
  yearly?: {
245
- label: string;
302
+ currency: string;
246
303
  amount: number;
247
304
  priceId: string;
248
305
  lookupKey: string;
249
- }[] | undefined;
306
+ isLegacyPricing: boolean;
307
+ } | undefined;
250
308
  }, {
251
309
  monthly: {
252
- label: string;
310
+ currency: string;
253
311
  amount: number;
254
312
  priceId: string;
255
313
  lookupKey: string;
256
- }[];
314
+ isLegacyPricing: boolean;
315
+ };
257
316
  quarterly?: {
258
- label: string;
317
+ currency: string;
259
318
  amount: number;
260
319
  priceId: string;
261
320
  lookupKey: string;
262
- }[] | undefined;
321
+ isLegacyPricing: boolean;
322
+ } | undefined;
263
323
  yearly?: {
264
- label: string;
324
+ currency: string;
265
325
  amount: number;
266
326
  priceId: string;
267
327
  lookupKey: string;
268
- }[] | undefined;
328
+ isLegacyPricing: boolean;
329
+ } | undefined;
269
330
  }>;
270
331
  }, "strip", z.ZodTypeAny, {
271
332
  id: string;
@@ -275,35 +336,47 @@ export declare const planSchema: z.ZodObject<{
275
336
  sortOrder: number;
276
337
  pricing: {
277
338
  monthly: {
278
- label: string;
339
+ currency: string;
279
340
  amount: number;
280
341
  priceId: string;
281
342
  lookupKey: string;
282
- }[];
343
+ isLegacyPricing: boolean;
344
+ };
283
345
  quarterly?: {
284
- label: string;
346
+ currency: string;
285
347
  amount: number;
286
348
  priceId: string;
287
349
  lookupKey: string;
288
- }[] | undefined;
350
+ isLegacyPricing: boolean;
351
+ } | undefined;
289
352
  yearly?: {
290
- label: string;
353
+ currency: string;
291
354
  amount: number;
292
355
  priceId: string;
293
356
  lookupKey: string;
294
- }[] | undefined;
357
+ isLegacyPricing: boolean;
358
+ } | undefined;
295
359
  };
296
360
  price: number;
297
361
  createdAt: number;
298
362
  isActive: boolean;
299
363
  archivedAt: number | null;
364
+ stripe: {
365
+ id: string;
366
+ name: string;
367
+ prices: {
368
+ id: string;
369
+ nickname: string;
370
+ lookup_key: string;
371
+ }[];
372
+ };
373
+ displayName: string;
300
374
  slug: string;
301
375
  features: {
302
376
  id: string;
303
377
  description: string;
304
378
  tooltipContent: string | null;
305
379
  }[];
306
- hasFreeTrial: boolean;
307
380
  }, {
308
381
  id: string;
309
382
  name: string;
@@ -312,35 +385,47 @@ export declare const planSchema: z.ZodObject<{
312
385
  sortOrder: number;
313
386
  pricing: {
314
387
  monthly: {
315
- label: string;
388
+ currency: string;
316
389
  amount: number;
317
390
  priceId: string;
318
391
  lookupKey: string;
319
- }[];
392
+ isLegacyPricing: boolean;
393
+ };
320
394
  quarterly?: {
321
- label: string;
395
+ currency: string;
322
396
  amount: number;
323
397
  priceId: string;
324
398
  lookupKey: string;
325
- }[] | undefined;
399
+ isLegacyPricing: boolean;
400
+ } | undefined;
326
401
  yearly?: {
327
- label: string;
402
+ currency: string;
328
403
  amount: number;
329
404
  priceId: string;
330
405
  lookupKey: string;
331
- }[] | undefined;
406
+ isLegacyPricing: boolean;
407
+ } | undefined;
332
408
  };
333
409
  price: number;
334
410
  createdAt: number;
335
411
  isActive: boolean;
336
412
  archivedAt: number | null;
413
+ stripe: {
414
+ id: string;
415
+ name: string;
416
+ prices: {
417
+ id: string;
418
+ nickname: string;
419
+ lookup_key: string;
420
+ }[];
421
+ };
422
+ displayName: string;
337
423
  slug: string;
338
424
  features: {
339
425
  id: string;
340
426
  description: string;
341
427
  tooltipContent: string | null;
342
428
  }[];
343
- hasFreeTrial: boolean;
344
429
  }>;
345
430
  export declare const planSlugEnum: z.ZodEnum<["lancer-unlimited-launch-offer"]>;
346
431
  export interface PlanStripeMetadata extends infer<typeof planStripeMetadataSchema> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.287",
3
+ "version": "1.2.288",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",