@growflowstudio/growflowbilling-admin-core 2.1.1 → 2.2.0

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.mts CHANGED
@@ -28,6 +28,14 @@ interface AdminPlan {
28
28
  /** Per-feature UI visibility override. Empty/null means "all visible". */
29
29
  ui_visibility?: Record<string, Visibility> | null;
30
30
  trial_days: number;
31
+ /**
32
+ * Day — counted from signup, where day 1 is the signup day — on which the
33
+ * paid plan starts being billed. The backend keeps it in sync with
34
+ * `trial_days` (trial_days = paid_start_day - 1).
35
+ */
36
+ paid_start_day?: number;
37
+ /** Absolute billing start date (YYYY-MM-DD); overrides `paid_start_day`. */
38
+ paid_start_date?: string | null;
31
39
  is_active: boolean;
32
40
  contact_sales: boolean;
33
41
  color: string;
@@ -48,6 +56,8 @@ interface AdminPlanCreate {
48
56
  features?: string[];
49
57
  ui_visibility?: Record<string, Visibility>;
50
58
  trial_days?: number;
59
+ paid_start_day?: number;
60
+ paid_start_date?: string | null;
51
61
  is_active?: boolean;
52
62
  contact_sales?: boolean;
53
63
  color?: string;
@@ -63,6 +73,8 @@ interface AdminPlanUpdate {
63
73
  features?: string[];
64
74
  ui_visibility?: Record<string, Visibility>;
65
75
  trial_days?: number;
76
+ paid_start_day?: number;
77
+ paid_start_date?: string | null;
66
78
  is_active?: boolean;
67
79
  contact_sales?: boolean;
68
80
  color?: string;
package/dist/index.d.ts CHANGED
@@ -28,6 +28,14 @@ interface AdminPlan {
28
28
  /** Per-feature UI visibility override. Empty/null means "all visible". */
29
29
  ui_visibility?: Record<string, Visibility> | null;
30
30
  trial_days: number;
31
+ /**
32
+ * Day — counted from signup, where day 1 is the signup day — on which the
33
+ * paid plan starts being billed. The backend keeps it in sync with
34
+ * `trial_days` (trial_days = paid_start_day - 1).
35
+ */
36
+ paid_start_day?: number;
37
+ /** Absolute billing start date (YYYY-MM-DD); overrides `paid_start_day`. */
38
+ paid_start_date?: string | null;
31
39
  is_active: boolean;
32
40
  contact_sales: boolean;
33
41
  color: string;
@@ -48,6 +56,8 @@ interface AdminPlanCreate {
48
56
  features?: string[];
49
57
  ui_visibility?: Record<string, Visibility>;
50
58
  trial_days?: number;
59
+ paid_start_day?: number;
60
+ paid_start_date?: string | null;
51
61
  is_active?: boolean;
52
62
  contact_sales?: boolean;
53
63
  color?: string;
@@ -63,6 +73,8 @@ interface AdminPlanUpdate {
63
73
  features?: string[];
64
74
  ui_visibility?: Record<string, Visibility>;
65
75
  trial_days?: number;
76
+ paid_start_day?: number;
77
+ paid_start_date?: string | null;
66
78
  is_active?: boolean;
67
79
  contact_sales?: boolean;
68
80
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growflowstudio/growflowbilling-admin-core",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Headless billing admin core - types, API client, React Query hooks, and utilities for GrowFlow Billing",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",