@buildbase/sdk 0.0.37 → 0.0.38
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.d.ts +8 -0
- package/dist/react/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -436,6 +436,8 @@ interface IPublicPlanVersion {
|
|
|
436
436
|
_id: string;
|
|
437
437
|
/** Plan display name (e.g. "Pro", "Base Plan"). */
|
|
438
438
|
name: string;
|
|
439
|
+
/** Whether this is a free ($0) plan with no seat billing or trial. */
|
|
440
|
+
isFreemium: boolean;
|
|
439
441
|
version: number;
|
|
440
442
|
status: 'draft' | 'published';
|
|
441
443
|
/** Multi-currency pricing. Use getBasePriceCents(plan, currency, interval) and getQuotaDisplayWithVariant for display. */
|
|
@@ -444,6 +446,12 @@ interface IPublicPlanVersion {
|
|
|
444
446
|
quotas: Record<string, IQuotaByInterval>;
|
|
445
447
|
features: Record<string, boolean>;
|
|
446
448
|
limits: Record<string, number>;
|
|
449
|
+
/** Trial config. Only present when the plan has trials enabled. */
|
|
450
|
+
trial?: {
|
|
451
|
+
enabled: boolean;
|
|
452
|
+
durationDays: number;
|
|
453
|
+
requireCard: boolean;
|
|
454
|
+
};
|
|
447
455
|
}
|
|
448
456
|
interface IPublicPlansResponse {
|
|
449
457
|
items: IPublicPlanItem[];
|
package/dist/react/index.d.ts
CHANGED
|
@@ -440,6 +440,8 @@ interface IPublicPlanVersion {
|
|
|
440
440
|
_id: string;
|
|
441
441
|
/** Plan display name (e.g. "Pro", "Base Plan"). */
|
|
442
442
|
name: string;
|
|
443
|
+
/** Whether this is a free ($0) plan with no seat billing or trial. */
|
|
444
|
+
isFreemium: boolean;
|
|
443
445
|
version: number;
|
|
444
446
|
status: 'draft' | 'published';
|
|
445
447
|
/** Multi-currency pricing. Use getBasePriceCents(plan, currency, interval) and getQuotaDisplayWithVariant for display. */
|
|
@@ -448,6 +450,12 @@ interface IPublicPlanVersion {
|
|
|
448
450
|
quotas: Record<string, IQuotaByInterval>;
|
|
449
451
|
features: Record<string, boolean>;
|
|
450
452
|
limits: Record<string, number>;
|
|
453
|
+
/** Trial config. Only present when the plan has trials enabled. */
|
|
454
|
+
trial?: {
|
|
455
|
+
enabled: boolean;
|
|
456
|
+
durationDays: number;
|
|
457
|
+
requireCard: boolean;
|
|
458
|
+
};
|
|
451
459
|
}
|
|
452
460
|
interface IPublicPlansResponse {
|
|
453
461
|
items: IPublicPlanItem[];
|