@periskope/types 0.6.142 → 0.6.143

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.
@@ -229,6 +229,7 @@ export type Database = {
229
229
  org_id: string;
230
230
  org_phone: string | null;
231
231
  read_count: number | null;
232
+ remarks: string | null;
232
233
  };
233
234
  Insert: {
234
235
  broadcast_id: string;
@@ -243,6 +244,7 @@ export type Database = {
243
244
  org_id: string;
244
245
  org_phone?: string | null;
245
246
  read_count?: number | null;
247
+ remarks?: string | null;
246
248
  };
247
249
  Update: {
248
250
  broadcast_id?: string;
@@ -257,6 +259,7 @@ export type Database = {
257
259
  org_id?: string;
258
260
  org_phone?: string | null;
259
261
  read_count?: number | null;
262
+ remarks?: string | null;
260
263
  };
261
264
  Relationships: [
262
265
  {
@@ -1513,6 +1516,39 @@ export type Database = {
1513
1516
  }
1514
1517
  ];
1515
1518
  };
1519
+ tbl_org_transactions: {
1520
+ Row: {
1521
+ amount: number;
1522
+ is_top_up: boolean | null;
1523
+ org_id: string;
1524
+ timestamp: string | null;
1525
+ transaction_id: string;
1526
+ transaction_metadata: Json | null;
1527
+ transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
1528
+ usage_metadata: Json | null;
1529
+ };
1530
+ Insert: {
1531
+ amount: number;
1532
+ is_top_up?: boolean | null;
1533
+ org_id: string;
1534
+ timestamp?: string | null;
1535
+ transaction_id?: string;
1536
+ transaction_metadata?: Json | null;
1537
+ transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
1538
+ usage_metadata?: Json | null;
1539
+ };
1540
+ Update: {
1541
+ amount?: number;
1542
+ is_top_up?: boolean | null;
1543
+ org_id?: string;
1544
+ timestamp?: string | null;
1545
+ transaction_id?: string;
1546
+ transaction_metadata?: Json | null;
1547
+ transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
1548
+ usage_metadata?: Json | null;
1549
+ };
1550
+ Relationships: [];
1551
+ };
1516
1552
  tbl_quick_replies: {
1517
1553
  Row: {
1518
1554
  command: string | null;
@@ -1933,6 +1969,12 @@ export type Database = {
1933
1969
  };
1934
1970
  Returns: Json;
1935
1971
  };
1972
+ get_org_credits: {
1973
+ Args: {
1974
+ org_id_input?: string;
1975
+ };
1976
+ Returns: Json;
1977
+ };
1936
1978
  get_org_phones: {
1937
1979
  Args: {
1938
1980
  org_id_input?: string;
@@ -2014,9 +2056,10 @@ export type Database = {
2014
2056
  };
2015
2057
  };
2016
2058
  Enums: {
2017
- enum_broadcast_status: "inprogress" | "completed" | "stopped";
2059
+ enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
2018
2060
  enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
2019
2061
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
2062
+ enum_credit_transaction_type: "credit" | "debit";
2020
2063
  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" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated";
2021
2064
  enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
2022
2065
  enum_member_role: "admin" | "member";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.142",
3
+ "version": "0.6.143",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -228,6 +228,7 @@ export type Database = {
228
228
  org_id: string
229
229
  org_phone: string | null
230
230
  read_count: number | null
231
+ remarks: string | null
231
232
  }
232
233
  Insert: {
233
234
  broadcast_id: string
@@ -242,6 +243,7 @@ export type Database = {
242
243
  org_id: string
243
244
  org_phone?: string | null
244
245
  read_count?: number | null
246
+ remarks?: string | null
245
247
  }
246
248
  Update: {
247
249
  broadcast_id?: string
@@ -256,6 +258,7 @@ export type Database = {
256
258
  org_id?: string
257
259
  org_phone?: string | null
258
260
  read_count?: number | null
261
+ remarks?: string | null
259
262
  }
260
263
  Relationships: [
261
264
  {
@@ -1522,6 +1525,39 @@ export type Database = {
1522
1525
  },
1523
1526
  ]
1524
1527
  }
1528
+ tbl_org_transactions: {
1529
+ Row: {
1530
+ amount: number
1531
+ is_top_up: boolean | null
1532
+ org_id: string
1533
+ timestamp: string | null
1534
+ transaction_id: string
1535
+ transaction_metadata: Json | null
1536
+ transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"]
1537
+ usage_metadata: Json | null
1538
+ }
1539
+ Insert: {
1540
+ amount: number
1541
+ is_top_up?: boolean | null
1542
+ org_id: string
1543
+ timestamp?: string | null
1544
+ transaction_id?: string
1545
+ transaction_metadata?: Json | null
1546
+ transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"]
1547
+ usage_metadata?: Json | null
1548
+ }
1549
+ Update: {
1550
+ amount?: number
1551
+ is_top_up?: boolean | null
1552
+ org_id?: string
1553
+ timestamp?: string | null
1554
+ transaction_id?: string
1555
+ transaction_metadata?: Json | null
1556
+ transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"]
1557
+ usage_metadata?: Json | null
1558
+ }
1559
+ Relationships: []
1560
+ }
1525
1561
  tbl_quick_replies: {
1526
1562
  Row: {
1527
1563
  command: string | null
@@ -1944,6 +1980,12 @@ export type Database = {
1944
1980
  }
1945
1981
  Returns: Json
1946
1982
  }
1983
+ get_org_credits: {
1984
+ Args: {
1985
+ org_id_input?: string
1986
+ }
1987
+ Returns: Json
1988
+ }
1947
1989
  get_org_phones: {
1948
1990
  Args: {
1949
1991
  org_id_input?: string
@@ -2025,7 +2067,7 @@ export type Database = {
2025
2067
  }
2026
2068
  }
2027
2069
  Enums: {
2028
- enum_broadcast_status: "inprogress" | "completed" | "stopped"
2070
+ enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired"
2029
2071
  enum_chat_colors:
2030
2072
  | "#B4876E"
2031
2073
  | "#A5B337"
@@ -2043,6 +2085,7 @@ export type Database = {
2043
2085
  | "#FF2E74"
2044
2086
  | "#DB2777"
2045
2087
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived"
2088
+ enum_credit_transaction_type: "credit" | "debit"
2046
2089
  enum_integration_name:
2047
2090
  | "org.created"
2048
2091
  | "org.updated"