@periskope/types 0.6.69 → 0.6.70
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/supabase.types.d.ts +0 -6
- package/dist/types.d.ts +5 -7
- package/package.json +1 -1
- package/supabase.types.ts +0 -6
- package/types.ts +14 -13
package/dist/supabase.types.d.ts
CHANGED
|
@@ -981,7 +981,6 @@ export type Database = {
|
|
|
981
981
|
tbl_org: {
|
|
982
982
|
Row: {
|
|
983
983
|
created_at: string;
|
|
984
|
-
is_subscription_active: boolean | null;
|
|
985
984
|
org_id: string;
|
|
986
985
|
org_image: string | null;
|
|
987
986
|
org_metadata: Json | null;
|
|
@@ -990,12 +989,10 @@ export type Database = {
|
|
|
990
989
|
stripe_customer_details: Json | null;
|
|
991
990
|
stripe_customer_id: string | null;
|
|
992
991
|
stripe_subscription_details: Json | null;
|
|
993
|
-
subscription_status: string | null;
|
|
994
992
|
support_link: string | null;
|
|
995
993
|
};
|
|
996
994
|
Insert: {
|
|
997
995
|
created_at?: string;
|
|
998
|
-
is_subscription_active?: boolean | null;
|
|
999
996
|
org_id?: string;
|
|
1000
997
|
org_image?: string | null;
|
|
1001
998
|
org_metadata?: Json | null;
|
|
@@ -1004,12 +1001,10 @@ export type Database = {
|
|
|
1004
1001
|
stripe_customer_details?: Json | null;
|
|
1005
1002
|
stripe_customer_id?: string | null;
|
|
1006
1003
|
stripe_subscription_details?: Json | null;
|
|
1007
|
-
subscription_status?: string | null;
|
|
1008
1004
|
support_link?: string | null;
|
|
1009
1005
|
};
|
|
1010
1006
|
Update: {
|
|
1011
1007
|
created_at?: string;
|
|
1012
|
-
is_subscription_active?: boolean | null;
|
|
1013
1008
|
org_id?: string;
|
|
1014
1009
|
org_image?: string | null;
|
|
1015
1010
|
org_metadata?: Json | null;
|
|
@@ -1018,7 +1013,6 @@ export type Database = {
|
|
|
1018
1013
|
stripe_customer_details?: Json | null;
|
|
1019
1014
|
stripe_customer_id?: string | null;
|
|
1020
1015
|
stripe_subscription_details?: Json | null;
|
|
1021
|
-
subscription_status?: string | null;
|
|
1022
1016
|
support_link?: string | null;
|
|
1023
1017
|
};
|
|
1024
1018
|
Relationships: [];
|
package/dist/types.d.ts
CHANGED
|
@@ -34,19 +34,17 @@ export type OrgPlanNonEnterprise = {
|
|
|
34
34
|
percent_off: number | null;
|
|
35
35
|
};
|
|
36
36
|
export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise ? OrgPlanEnterprise : T extends AllPlans ? OrgPlanNonEnterprise : never;
|
|
37
|
-
export type OrgType = OverrideProperties<Tables<'tbl_org'
|
|
37
|
+
export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
|
|
38
38
|
user: Tables<'tbl_org_members'>;
|
|
39
39
|
members: Tables<'tbl_org_members'>[];
|
|
40
40
|
phones: Tables<'tbl_org_phones'>[];
|
|
41
41
|
labels: Tables<'tbl_org_labels'>[];
|
|
42
42
|
quick_replies: Tables<'tbl_quick_replies'>[];
|
|
43
43
|
custom_properties: Tables<'tbl_custom_properties'>[];
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
}, {
|
|
44
|
+
subscription_status: 'active' | 'inactive' | 'unpaid';
|
|
45
|
+
is_enterprise: boolean;
|
|
46
|
+
is_free_trial: boolean;
|
|
47
|
+
}>, {
|
|
50
48
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
51
49
|
stripe_customer_details: _Stripe.Customer | null;
|
|
52
50
|
stripe_subscription_details: Array<_Stripe.Subscription> | null;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -984,7 +984,6 @@ export type Database = {
|
|
|
984
984
|
tbl_org: {
|
|
985
985
|
Row: {
|
|
986
986
|
created_at: string
|
|
987
|
-
is_subscription_active: boolean | null
|
|
988
987
|
org_id: string
|
|
989
988
|
org_image: string | null
|
|
990
989
|
org_metadata: Json | null
|
|
@@ -993,12 +992,10 @@ export type Database = {
|
|
|
993
992
|
stripe_customer_details: Json | null
|
|
994
993
|
stripe_customer_id: string | null
|
|
995
994
|
stripe_subscription_details: Json | null
|
|
996
|
-
subscription_status: string | null
|
|
997
995
|
support_link: string | null
|
|
998
996
|
}
|
|
999
997
|
Insert: {
|
|
1000
998
|
created_at?: string
|
|
1001
|
-
is_subscription_active?: boolean | null
|
|
1002
999
|
org_id?: string
|
|
1003
1000
|
org_image?: string | null
|
|
1004
1001
|
org_metadata?: Json | null
|
|
@@ -1007,12 +1004,10 @@ export type Database = {
|
|
|
1007
1004
|
stripe_customer_details?: Json | null
|
|
1008
1005
|
stripe_customer_id?: string | null
|
|
1009
1006
|
stripe_subscription_details?: Json | null
|
|
1010
|
-
subscription_status?: string | null
|
|
1011
1007
|
support_link?: string | null
|
|
1012
1008
|
}
|
|
1013
1009
|
Update: {
|
|
1014
1010
|
created_at?: string
|
|
1015
|
-
is_subscription_active?: boolean | null
|
|
1016
1011
|
org_id?: string
|
|
1017
1012
|
org_image?: string | null
|
|
1018
1013
|
org_metadata?: Json | null
|
|
@@ -1021,7 +1016,6 @@ export type Database = {
|
|
|
1021
1016
|
stripe_customer_details?: Json | null
|
|
1022
1017
|
stripe_customer_id?: string | null
|
|
1023
1018
|
stripe_subscription_details?: Json | null
|
|
1024
|
-
subscription_status?: string | null
|
|
1025
1019
|
support_link?: string | null
|
|
1026
1020
|
}
|
|
1027
1021
|
Relationships: []
|
package/types.ts
CHANGED
|
@@ -53,19 +53,20 @@ export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise
|
|
|
53
53
|
: never;
|
|
54
54
|
|
|
55
55
|
export type OrgType = OverrideProperties<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
Merge<
|
|
57
|
+
Tables<'tbl_org'>,
|
|
58
|
+
{
|
|
59
|
+
user: Tables<'tbl_org_members'>;
|
|
60
|
+
members: Tables<'tbl_org_members'>[];
|
|
61
|
+
phones: Tables<'tbl_org_phones'>[];
|
|
62
|
+
labels: Tables<'tbl_org_labels'>[];
|
|
63
|
+
quick_replies: Tables<'tbl_quick_replies'>[];
|
|
64
|
+
custom_properties: Tables<'tbl_custom_properties'>[];
|
|
65
|
+
subscription_status: 'active' | 'inactive' | 'unpaid',
|
|
66
|
+
is_enterprise: boolean;
|
|
67
|
+
is_free_trial: boolean;
|
|
68
|
+
}
|
|
69
|
+
>,
|
|
69
70
|
{
|
|
70
71
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
71
72
|
stripe_customer_details: _Stripe.Customer | null;
|