@periskope/types 0.6.69 → 0.6.71

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.
@@ -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: [];
@@ -1440,7 +1434,7 @@ export type Database = {
1440
1434
  Enums: {
1441
1435
  enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
1442
1436
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
1443
- enum_integration_name: "new_ticket";
1437
+ enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
1444
1438
  enum_member_role: "admin" | "member";
1445
1439
  };
1446
1440
  CompositeTypes: {
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
- trial_details: {
45
- pending_in_days: number;
46
- pending_in_hours: number;
47
- is_ended: boolean;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.69",
3
+ "version": "0.6.71",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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: []
@@ -1458,7 +1452,26 @@ export type Database = {
1458
1452
  | "#FF2E74"
1459
1453
  | "#DB2777"
1460
1454
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
1461
- enum_integration_name: "new_ticket"
1455
+ enum_integration_name:
1456
+ | "org.created"
1457
+ | "org.updated"
1458
+ | "org.member.created"
1459
+ | "org.member.updated"
1460
+ | "org.phone.created"
1461
+ | "org.phone.connected"
1462
+ | "org.phone.disconnected"
1463
+ | "org.subscription.trial_will_end"
1464
+ | "chat.created"
1465
+ | "chat.updated"
1466
+ | "message.created"
1467
+ | "message.updated"
1468
+ | "message.deleted"
1469
+ | "message.ack.updated"
1470
+ | "reaction.created"
1471
+ | "reaction.updated"
1472
+ | "ticket.created"
1473
+ | "ticket.updated"
1474
+ | "ticket.deleted"
1462
1475
  enum_member_role: "admin" | "member"
1463
1476
  }
1464
1477
  CompositeTypes: {
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
- Tables<'tbl_org'> & {
57
- user: Tables<'tbl_org_members'>;
58
- members: Tables<'tbl_org_members'>[];
59
- phones: Tables<'tbl_org_phones'>[];
60
- labels: Tables<'tbl_org_labels'>[];
61
- quick_replies: Tables<'tbl_quick_replies'>[];
62
- custom_properties: Tables<'tbl_custom_properties'>[];
63
- trial_details: {
64
- pending_in_days: number;
65
- pending_in_hours: number;
66
- is_ended: boolean;
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;