@periskope/types 0.6.144 → 0.6.145

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/types.d.ts CHANGED
@@ -419,6 +419,14 @@ export type DeliveryInfoType = {
419
419
  read_count: number;
420
420
  delivered_count: number;
421
421
  };
422
+ export type OrgCreditsType = {
423
+ org_id: string;
424
+ recurring_allowance: number;
425
+ recurring_balance: number;
426
+ topup_balance: number;
427
+ total_credits_used: number;
428
+ next_renewal_date: string;
429
+ };
422
430
  export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_archived' | 'is_exited' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
423
431
  has_flagged_messages: boolean;
424
432
  labels: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.144",
3
+ "version": "0.6.145",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -583,6 +583,17 @@ export type DeliveryInfoType = {
583
583
  delivered_count: number;
584
584
  };
585
585
 
586
+ /* ---------------------------- CREDITS SYSTEM ---------------------------- */
587
+
588
+ export type OrgCreditsType = {
589
+ org_id: string;
590
+ recurring_allowance: number; // recurring credits replenished every month
591
+ recurring_balance: number; // recurring credits remaining in current month
592
+ topup_balance: number; // topup credits remaining
593
+ total_credits_used: number; // total credits used in current month
594
+ next_renewal_date: string;
595
+ };
596
+
586
597
  /* --------------------------------- RULE INFO TYPE -------------------------------- */
587
598
 
588
599
  export type ChatRuleInfoType = Merge<