@periskope/types 0.6.389 → 0.6.390

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.
@@ -0,0 +1,14 @@
1
+ export type PeriskopePlanInvoice = {
2
+ lines: {
3
+ data: {
4
+ id: string;
5
+ description: string;
6
+ amount: number;
7
+ }[];
8
+ };
9
+ total: number;
10
+ starting_balance: number;
11
+ ending_balance: number;
12
+ amount_due: number;
13
+ };
14
+ //# sourceMappingURL=billing.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"billing.types.d.ts","sourceRoot":"","sources":["../src/billing.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,WAAW,EAAE,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAA;SACf,EAAE,CAAC;KACL,CAAA;IACD,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -52,6 +52,30 @@ export type Database = {
52
52
  };
53
53
  Relationships: [];
54
54
  };
55
+ tbl_billing_updates: {
56
+ Row: {
57
+ created_at: string;
58
+ new_plan: Json | null;
59
+ old_plan: Json | null;
60
+ org_id: string;
61
+ trace_id: string;
62
+ };
63
+ Insert: {
64
+ created_at?: string;
65
+ new_plan?: Json | null;
66
+ old_plan?: Json | null;
67
+ org_id: string;
68
+ trace_id?: string;
69
+ };
70
+ Update: {
71
+ created_at?: string;
72
+ new_plan?: Json | null;
73
+ old_plan?: Json | null;
74
+ org_id?: string;
75
+ trace_id?: string;
76
+ };
77
+ Relationships: [];
78
+ };
55
79
  tbl_communication_logs: {
56
80
  Row: {
57
81
  communication_type: string | null;
@@ -264,7 +288,34 @@ export type Database = {
264
288
  };
265
289
  };
266
290
  Views: {
267
- [_ in never]: never;
291
+ view_billing_updates: {
292
+ Row: {
293
+ change_arr: number | null;
294
+ created_at: string | null;
295
+ new_arr: number | null;
296
+ new_discount: number | null;
297
+ new_phones: number | null;
298
+ new_plan: Json | null;
299
+ new_plan_id: string | null;
300
+ new_plan_type: string | null;
301
+ new_price: number | null;
302
+ new_users: number | null;
303
+ old_arr: number | null;
304
+ old_discount: number | null;
305
+ old_phones: number | null;
306
+ old_plan: Json | null;
307
+ old_plan_id: string | null;
308
+ old_plan_type: string | null;
309
+ old_price: number | null;
310
+ old_users: number | null;
311
+ org_alias: string | null;
312
+ org_id: string | null;
313
+ org_name: string | null;
314
+ trace_id: string | null;
315
+ type: string | null;
316
+ };
317
+ Relationships: [];
318
+ };
268
319
  };
269
320
  Functions: {
270
321
  [_ in never]: never;
@@ -2944,6 +2995,14 @@ export type Database = {
2944
2995
  };
2945
2996
  Returns: Json;
2946
2997
  };
2998
+ get_storage_items: {
2999
+ Args: {
3000
+ bucket: string;
3001
+ path_items?: string[];
3002
+ org_id_input?: string;
3003
+ };
3004
+ Returns: Json;
3005
+ };
2947
3006
  get_task_rule_info: {
2948
3007
  Args: {
2949
3008
  chat_id_input?: string;