@periskope/types 0.6.166 → 0.6.168

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.
@@ -118,6 +118,7 @@ export interface Conditions {
118
118
  variables: string[];
119
119
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
120
120
  org_phones: string[];
121
+ allow_messages_from_org_phones?: boolean;
121
122
  }
122
123
  export type SendMessageAction = {
123
124
  id: string;
@@ -669,18 +669,19 @@ exports.ActionNameMap = {
669
669
  debounce_messages: {
670
670
  id: 'debounce_messages',
671
671
  type: 'dropdown',
672
- label: 'Debounce Messages',
672
+ label: 'Enable Cooldown Period',
673
673
  placeholder: 'Select...',
674
674
  value: [
675
675
  { id: 'true', value: 'true', label: 'True' },
676
676
  { id: 'false', value: 'false', label: 'False' },
677
677
  ],
678
+ info: 'If enabled, only one message per chat will be sent in the specified cooldown period',
678
679
  required: false,
679
680
  },
680
681
  debounce_message_time: {
681
682
  id: 'debounce_message_time',
682
683
  type: 'dynamic',
683
- label: 'Debounce Messages Time',
684
+ label: 'Cooldown Period',
684
685
  placeholder: 'Enter time',
685
686
  value: 'debounce_messages',
686
687
  required: false,
@@ -731,18 +732,19 @@ exports.ActionNameMap = {
731
732
  debounce_messages: {
732
733
  id: 'debounce_messages',
733
734
  type: 'dropdown',
734
- label: 'Debounce Messages',
735
+ label: 'Enable Cooldown Period',
735
736
  placeholder: 'Select...',
736
737
  value: [
737
738
  { id: 'true', value: 'true', label: 'True' },
738
739
  { id: 'false', value: 'false', label: 'False' },
739
740
  ],
741
+ info: 'If enabled, only one message per chat will be sent in the specified cooldown period',
740
742
  required: false,
741
743
  },
742
744
  debounce_message_time: {
743
745
  id: 'debounce_message_time',
744
746
  type: 'dynamic',
745
- label: 'Debounce Messages Time',
747
+ label: 'Cooldown Period',
746
748
  placeholder: 'Enter time',
747
749
  value: 'debounce_messages',
748
750
  required: false,
@@ -2,31 +2,6 @@ export type Json = {
2
2
  [key: string]: any;
3
3
  } | any;
4
4
  export type Database = {
5
- graphql_public: {
6
- Tables: {
7
- [_ in never]: never;
8
- };
9
- Views: {
10
- [_ in never]: never;
11
- };
12
- Functions: {
13
- graphql: {
14
- Args: {
15
- operationName?: string;
16
- query?: string;
17
- variables?: Json;
18
- extensions?: Json;
19
- };
20
- Returns: Json;
21
- };
22
- };
23
- Enums: {
24
- [_ in never]: never;
25
- };
26
- CompositeTypes: {
27
- [_ in never]: never;
28
- };
29
- };
30
5
  internal: {
31
6
  Tables: {
32
7
  config: {
@@ -2359,6 +2334,7 @@ export type Database = {
2359
2334
  owner_id: string | null;
2360
2335
  path_tokens: string[] | null;
2361
2336
  updated_at: string | null;
2337
+ user_metadata: Json | null;
2362
2338
  version: string | null;
2363
2339
  };
2364
2340
  Insert: {
@@ -2372,6 +2348,7 @@ export type Database = {
2372
2348
  owner_id?: string | null;
2373
2349
  path_tokens?: string[] | null;
2374
2350
  updated_at?: string | null;
2351
+ user_metadata?: Json | null;
2375
2352
  version?: string | null;
2376
2353
  };
2377
2354
  Update: {
@@ -2385,6 +2362,7 @@ export type Database = {
2385
2362
  owner_id?: string | null;
2386
2363
  path_tokens?: string[] | null;
2387
2364
  updated_at?: string | null;
2365
+ user_metadata?: Json | null;
2388
2366
  version?: string | null;
2389
2367
  };
2390
2368
  Relationships: [
@@ -2406,6 +2384,7 @@ export type Database = {
2406
2384
  key: string;
2407
2385
  owner_id: string | null;
2408
2386
  upload_signature: string;
2387
+ user_metadata: Json | null;
2409
2388
  version: string;
2410
2389
  };
2411
2390
  Insert: {
@@ -2416,6 +2395,7 @@ export type Database = {
2416
2395
  key: string;
2417
2396
  owner_id?: string | null;
2418
2397
  upload_signature: string;
2398
+ user_metadata?: Json | null;
2419
2399
  version: string;
2420
2400
  };
2421
2401
  Update: {
@@ -2426,6 +2406,7 @@ export type Database = {
2426
2406
  key?: string;
2427
2407
  owner_id?: string | null;
2428
2408
  upload_signature?: string;
2409
+ user_metadata?: Json | null;
2429
2410
  version?: string;
2430
2411
  };
2431
2412
  Relationships: [
@@ -2562,6 +2543,10 @@ export type Database = {
2562
2543
  updated_at: string;
2563
2544
  }[];
2564
2545
  };
2546
+ operation: {
2547
+ Args: Record<PropertyKey, never>;
2548
+ Returns: string;
2549
+ };
2565
2550
  search: {
2566
2551
  Args: {
2567
2552
  prefix: string;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.166",
3
+ "version": "0.6.168",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "dependencies": {
8
- "@periskope/whatsapp-web.js": "1.23.1-alpha.exodus.8",
9
8
  "@types/pg": "8.11.2",
10
9
  "pg": "^8.11.3",
11
10
  "stripe": "^14.19.0",
package/rules.types.ts CHANGED
@@ -762,6 +762,7 @@ export interface Conditions {
762
762
  variables: string[];
763
763
  delay: `${number} ${'seconds' | 'minutes' | 'hours' | 'days'}`;
764
764
  org_phones: string[];
765
+ allow_messages_from_org_phones?: boolean;
765
766
  }
766
767
 
767
768
  export type SendMessageAction = {
@@ -1099,18 +1100,19 @@ export const ActionNameMap: Record<
1099
1100
  debounce_messages: {
1100
1101
  id: 'debounce_messages',
1101
1102
  type: 'dropdown',
1102
- label: 'Debounce Messages',
1103
+ label: 'Enable Cooldown Period',
1103
1104
  placeholder: 'Select...',
1104
1105
  value: [
1105
1106
  { id: 'true', value: 'true', label: 'True' },
1106
1107
  { id: 'false', value: 'false', label: 'False' },
1107
1108
  ],
1109
+ info: 'If enabled, only one message per chat will be sent in the specified cooldown period',
1108
1110
  required: false,
1109
1111
  },
1110
1112
  debounce_message_time: {
1111
1113
  id: 'debounce_message_time',
1112
1114
  type: 'dynamic',
1113
- label: 'Debounce Messages Time',
1115
+ label: 'Cooldown Period',
1114
1116
  placeholder: 'Enter time',
1115
1117
  value: 'debounce_messages',
1116
1118
  required: false,
@@ -1161,18 +1163,19 @@ export const ActionNameMap: Record<
1161
1163
  debounce_messages: {
1162
1164
  id: 'debounce_messages',
1163
1165
  type: 'dropdown',
1164
- label: 'Debounce Messages',
1166
+ label: 'Enable Cooldown Period',
1165
1167
  placeholder: 'Select...',
1166
1168
  value: [
1167
1169
  { id: 'true', value: 'true', label: 'True' },
1168
1170
  { id: 'false', value: 'false', label: 'False' },
1169
1171
  ],
1172
+ info: 'If enabled, only one message per chat will be sent in the specified cooldown period',
1170
1173
  required: false,
1171
1174
  },
1172
1175
  debounce_message_time: {
1173
1176
  id: 'debounce_message_time',
1174
1177
  type: 'dynamic',
1175
- label: 'Debounce Messages Time',
1178
+ label: 'Cooldown Period',
1176
1179
  placeholder: 'Enter time',
1177
1180
  value: 'debounce_messages',
1178
1181
  required: false,