@periskope/types 0.6.77 → 0.6.79

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/tsconfig.json CHANGED
@@ -1,106 +1,106 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
- /* Projects */
5
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
6
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
8
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
9
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
10
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
11
- /* Language and Environment */
12
- "target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
14
- // "jsx": "preserve", /* Specify what JSX code is generated. */
15
- // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
16
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
17
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
18
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
19
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
20
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
21
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
22
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
23
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
24
- /* Modules */
25
- "module": "CommonJS", /* Specify what module code is generated. */
26
- // "rootDir": "./", /* Specify the root folder within your source files. */
27
- // "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
28
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
30
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
33
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
34
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
35
- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
36
- // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
37
- // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
38
- // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
39
- // "resolveJsonModule": true, /* Enable importing .json files. */
40
- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
41
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
42
- /* JavaScript Support */
43
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
44
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
46
- /* Emit */
47
- "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
52
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
53
- "outDir": "dist/", /* Specify an output folder for all emitted files. */
54
- // "removeComments": true, /* Disable emitting comments. */
55
- // "noEmit": true, /* Disable emitting files from a compilation. */
56
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
58
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
- // "newLine": "crlf", /* Set the newline character for emitting files. */
64
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
- /* Interop Constraints */
71
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
72
- // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
73
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
77
- /* Type Checking */
78
- "strict": true, /* Enable all strict type-checking options. */
79
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
80
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
81
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
82
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
83
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
84
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
85
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
86
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
87
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
88
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
89
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
90
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
91
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
92
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
93
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
94
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
95
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
96
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
97
- /* Completeness */
98
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
100
- },
101
- "exclude": [
102
- "node_modules",
103
- "dist",
104
- "scripts"
105
- ]
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+ /* Projects */
5
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
6
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
8
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
9
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
10
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
11
+ /* Language and Environment */
12
+ "target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
14
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
15
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
16
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
17
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
18
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
19
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
20
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
21
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
22
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
23
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
24
+ /* Modules */
25
+ "module": "CommonJS", /* Specify what module code is generated. */
26
+ // "rootDir": "./", /* Specify the root folder within your source files. */
27
+ // "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
28
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
29
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
30
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
31
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
32
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
33
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
34
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
35
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
36
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
37
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
38
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
39
+ // "resolveJsonModule": true, /* Enable importing .json files. */
40
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
41
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
42
+ /* JavaScript Support */
43
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
44
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
46
+ /* Emit */
47
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
52
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
53
+ "outDir": "dist/", /* Specify an output folder for all emitted files. */
54
+ // "removeComments": true, /* Disable emitting comments. */
55
+ // "noEmit": true, /* Disable emitting files from a compilation. */
56
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
58
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
64
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
+ /* Interop Constraints */
71
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
72
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
73
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
77
+ /* Type Checking */
78
+ "strict": true, /* Enable all strict type-checking options. */
79
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
80
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
81
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
82
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
83
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
84
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
85
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
86
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
87
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
88
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
89
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
90
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
91
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
92
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
93
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
94
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
95
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
96
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
97
+ /* Completeness */
98
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
99
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
100
+ },
101
+ "exclude": [
102
+ "node_modules",
103
+ "dist",
104
+ "scripts"
105
+ ]
106
106
  }
package/types.ts CHANGED
@@ -314,12 +314,13 @@ export enum IntegrationLogType {
314
314
  NEW_CHAT = 'chat.created',
315
315
  NEW_MESSAGE = 'message.created',
316
316
  MESSAGE_UPDATED = 'message.updated',
317
+ MESSAGE_DELETED = 'message.deleted',
317
318
  MESSAGE_ACK_UPDATED = 'message.ack.updated',
318
319
  REACTION_CREATED = 'reaction.created',
319
320
  REACTION_UPDATED = 'reaction.updated',
320
- REACTION_DELETED = 'reaction.deleted',
321
321
  NEW_TICKET = 'ticket.created',
322
322
  TICKET_UPDATED = 'ticket.updated',
323
+ TICKET_DELETED = 'ticket.deleted',
323
324
  }
324
325
 
325
326
  export type IntegrationLogMetadataType<T extends IntegrationLogType> =
@@ -330,12 +331,12 @@ export type IntegrationLogMetadataType<T extends IntegrationLogType> =
330
331
  : T extends
331
332
  | IntegrationLogType.NEW_MESSAGE
332
333
  | IntegrationLogType.MESSAGE_UPDATED
334
+ | IntegrationLogType.MESSAGE_DELETED
333
335
  | IntegrationLogType.MESSAGE_ACK_UPDATED
334
336
  ? Tables<'tbl_chat_messages'>
335
337
  : T extends
336
338
  | IntegrationLogType.REACTION_CREATED
337
339
  | IntegrationLogType.REACTION_UPDATED
338
- | IntegrationLogType.REACTION_DELETED
339
340
  ? Tables<'tbl_chat_reactions'>
340
341
  : {
341
342
  [key: string]: unknown;
@@ -366,6 +367,13 @@ export type APIAuthDetails = {
366
367
  token_details: Tables<'tbl_integration_tokens'> | null;
367
368
  };
368
369
 
370
+ export type WebhookDataType = OverrideProperties<
371
+ Tables<'tbl_integration_hooks'>,
372
+ {
373
+ integration_name: string[];
374
+ }
375
+ >;
376
+
369
377
  /* ---------------------------- USER PREFERENCES ---------------------------- */
370
378
 
371
379
  export type UserPreferences = {
@@ -374,4 +382,4 @@ export type UserPreferences = {
374
382
  left_sidebar_open: boolean;
375
383
  right_sidepanel_open: boolean;
376
384
  sync_wa_unread_count: boolean;
377
- };
385
+ };
@@ -1,21 +1,21 @@
1
- # Define the path to your package.json file
2
- $packageJsonPath = "./package.json"
3
-
4
- # Read the package.json file
5
- $packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
6
-
7
- # Increment the patch version
8
- $versionParts = $packageJson.version -split '\.'
9
- $versionParts[2] = [int]$versionParts[2] + 1
10
- $newVersion = $versionParts -join '.'
11
-
12
- Write-Host "Updating package version to $newVersion"
13
-
14
- # Update the version in the object
15
- $packageJson.version = $newVersion
16
-
17
- # Convert the object back to JSON and save
18
- $packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath
19
-
20
- # Run npm command
21
- npm run update-package
1
+ # Define the path to your package.json file
2
+ $packageJsonPath = "./package.json"
3
+
4
+ # Read the package.json file
5
+ $packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
6
+
7
+ # Increment the patch version
8
+ $versionParts = $packageJson.version -split '\.'
9
+ $versionParts[2] = [int]$versionParts[2] + 1
10
+ $newVersion = $versionParts -join '.'
11
+
12
+ Write-Host "Updating package version to $newVersion"
13
+
14
+ # Update the version in the object
15
+ $packageJson.version = $newVersion
16
+
17
+ # Convert the object back to JSON and save
18
+ $packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath
19
+
20
+ # Run npm command
21
+ npm run update-package
@@ -1,18 +0,0 @@
1
- export declare const TableColumns: {
2
- readonly tbl_broadcast_messages: readonly ["broadcast_id", "created_at", "chat_ids", "scheduled_at", "org_id", "message_payload", "completed_at", "performed_by"];
3
- readonly tbl_broadcast_templates: readonly ["template_id", "created_at", "template_name", "org_id", "updated_at", "message_payload"];
4
- readonly tbl_chat_access: readonly ["org_id", "email", "chat_id", "has_access", "last_read_timestamp", "active_phone"];
5
- readonly tbl_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "from_me", "invite_v4", "links", "location", "mentioned_ids", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sender_phone", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id", "unique_id", "is_gif", "is_forwarded", "is_starred"];
6
- readonly tbl_chat_notifications: readonly ["org_id", "notification_id", "chat_id", "author", "body", "id", "recipientids", "type", "timestamp", "org_phone"];
7
- readonly tbl_chat_participants: readonly ["org_id", "chat_id", "contact_id", "id", "is_admin", "is_super_admin", "org_phone"];
8
- readonly tbl_chat_reactions: readonly ["org_id", "message_id", "ack", "id", "orphan", "reaction", "read", "reaction_id", "timestamp", "msg_id", "orphan_reason", "sender_id", "org_phone"];
9
- readonly tbl_chat_tickets: readonly ["created_at", "ticket_id", "subject", "status", "assignee", "assigned_by", "chat_id", "due_date", "org_id", "label_ids", "quoted_message_id", "raised_by", "priority", "last_updated_at", "is_deleted"];
10
- readonly tbl_chats: readonly ["org_id", "chat_id", "archived", "id", "is_group", "is_muted", "is_read_only", "mute_expiration", "name", "pinned", "unread_count", "group_metadata", "chat_image", "timestamp", "invite_link", "org_phone", "label_ids", "updated_at", "latest_message", "member_count"];
11
- readonly tbl_contacts: readonly ["org_id", "contact_id", "id", "number", "is_business", "is_enterprise", "name", "pushname", "short_name", "contact_type", "is_me", "is_user", "is_group", "is_wa_contact", "is_my_contact", "is_blocked", "contact_image", "contact_color", "business_profile", "verified_name", "is_internal", "label_ids", "verified_level", "updated_at"];
12
- readonly tbl_org: readonly ["org_id", "created_at", "org_image", "org_name", "support_link", "org_metadata", "org_plan", "stripe_customer_details", "stripe_customer_id", "stripe_subscription_details"];
13
- readonly tbl_org_labels: readonly ["label_id", "created_at", "org_id", "name", "color", "type"];
14
- readonly tbl_org_members: readonly ["created_at", "email", "user_id", "invited_at", "invited_by", "org_id", "role", "member_image", "member_name", "is_active", "member_color"];
15
- readonly tbl_org_phones: readonly ["org_id", "org_phone", "created_at", "updated_at", "wa_state", "phone_id", "qr_code", "phone_image", "phone_name", "server_ip"];
16
- readonly view_broadcast_logs: readonly ["broadcast_id", "org_id", "message_payload", "created_at", "total_chats", "sent_chats", "failed_chats", "total_member_count", "delivered_member_count", "read_member_count", "completed_at", "scheduled_at", "performed_by", "delivery_percentage", "read_percentage"];
17
- readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone", "group_description"];
18
- };
@@ -1,291 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TableColumns = void 0;
4
- exports.TableColumns = {
5
- "tbl_broadcast_messages": [
6
- "broadcast_id",
7
- "created_at",
8
- "chat_ids",
9
- "scheduled_at",
10
- "org_id",
11
- "message_payload",
12
- "completed_at",
13
- "performed_by"
14
- ],
15
- "tbl_broadcast_templates": [
16
- "template_id",
17
- "created_at",
18
- "template_name",
19
- "org_id",
20
- "updated_at",
21
- "message_payload"
22
- ],
23
- "tbl_chat_access": [
24
- "org_id",
25
- "email",
26
- "chat_id",
27
- "has_access",
28
- "last_read_timestamp",
29
- "active_phone"
30
- ],
31
- "tbl_chat_messages": [
32
- "message_id",
33
- "org_id",
34
- "ack",
35
- "author",
36
- "body",
37
- "broadcast",
38
- "device_type",
39
- "duration",
40
- "forwarding_score",
41
- "from",
42
- "from_me",
43
- "has_media",
44
- "has_quoted_msg",
45
- "has_reaction",
46
- "id",
47
- "invite_v4",
48
- "is_ephemeral",
49
- "is_forwarded",
50
- "is_gif",
51
- "is_starred",
52
- "is_status",
53
- "links",
54
- "location",
55
- "media_key",
56
- "mentioned_ids",
57
- "order_id",
58
- "raw_data",
59
- "to",
60
- "token",
61
- "message_type",
62
- "vcards",
63
- "chat_id",
64
- "timestamp",
65
- "org_phone",
66
- "broadcast_id",
67
- "is_deleted",
68
- "media",
69
- "performed_by",
70
- "prev_body",
71
- "quoted_message_id",
72
- "sent_message_id",
73
- "delivery_info",
74
- "updated_at",
75
- "message_ticket_id"
76
- ],
77
- "tbl_chat_notifications": [
78
- "org_id",
79
- "notification_id",
80
- "chat_id",
81
- "author",
82
- "body",
83
- "id",
84
- "recipientids",
85
- "type",
86
- "timestamp",
87
- "org_phone"
88
- ],
89
- "tbl_chat_participants": [
90
- "org_id",
91
- "chat_id",
92
- "contact_id",
93
- "id",
94
- "is_admin",
95
- "is_super_admin",
96
- "org_phone"
97
- ],
98
- "tbl_chat_reactions": [
99
- "org_id",
100
- "message_id",
101
- "ack",
102
- "id",
103
- "orphan",
104
- "reaction",
105
- "read",
106
- "reaction_id",
107
- "timestamp",
108
- "msg_id",
109
- "orphan_reason",
110
- "sender_id",
111
- "org_phone"
112
- ],
113
- "tbl_chat_tickets": [
114
- "created_at",
115
- "ticket_id",
116
- "subject",
117
- "status",
118
- "assignee",
119
- "assigned_by",
120
- "chat_id",
121
- "due_date",
122
- "org_id",
123
- "label_ids",
124
- "quoted_message_id",
125
- "raised_by",
126
- "priority",
127
- "last_updated_at",
128
- "is_deleted"
129
- ],
130
- "tbl_chats": [
131
- "org_id",
132
- "chat_id",
133
- "archived",
134
- "id",
135
- "is_group",
136
- "is_muted",
137
- "is_read_only",
138
- "mute_expiration",
139
- "name",
140
- "pinned",
141
- "unread_count",
142
- "group_metadata",
143
- "chat_image",
144
- "timestamp",
145
- "invite_link",
146
- "org_phone",
147
- "label_ids",
148
- "updated_at",
149
- "latest_message",
150
- "member_count"
151
- ],
152
- "tbl_contacts": [
153
- "org_id",
154
- "contact_id",
155
- "id",
156
- "number",
157
- "is_business",
158
- "is_enterprise",
159
- "name",
160
- "pushname",
161
- "short_name",
162
- "contact_type",
163
- "is_me",
164
- "is_user",
165
- "is_group",
166
- "is_wa_contact",
167
- "is_my_contact",
168
- "is_blocked",
169
- "contact_image",
170
- "contact_color",
171
- "business_profile",
172
- "verified_name",
173
- "is_internal",
174
- "label_ids",
175
- "verified_level",
176
- "updated_at"
177
- ],
178
- "tbl_org": [
179
- "org_id",
180
- "created_at",
181
- "org_image",
182
- "org_name",
183
- "support_link",
184
- "org_metadata",
185
- "org_plan",
186
- "stripe_customer_details",
187
- "stripe_customer_id",
188
- "stripe_subscription_details"
189
- ],
190
- "tbl_org_labels": [
191
- "label_id",
192
- "created_at",
193
- "org_id",
194
- "name",
195
- "color",
196
- "type"
197
- ],
198
- "tbl_org_members": [
199
- "created_at",
200
- "email",
201
- "user_id",
202
- "invited_at",
203
- "invited_by",
204
- "org_id",
205
- "role",
206
- "member_image",
207
- "member_name",
208
- "is_active",
209
- "member_color"
210
- ],
211
- "tbl_org_phones": [
212
- "org_id",
213
- "org_phone",
214
- "created_at",
215
- "updated_at",
216
- "wa_state",
217
- "phone_id",
218
- "qr_code",
219
- "phone_image",
220
- "phone_name",
221
- "server_ip"
222
- ],
223
- "view_broadcast_logs": [
224
- "broadcast_id",
225
- "org_id",
226
- "message_payload",
227
- "created_at",
228
- "total_chats",
229
- "sent_chats",
230
- "failed_chats",
231
- "total_member_count",
232
- "delivered_member_count",
233
- "read_member_count",
234
- "completed_at",
235
- "scheduled_at",
236
- "performed_by",
237
- "delivery_percentage",
238
- "read_percentage"
239
- ],
240
- "tbl_chat_messages": [
241
- "message_id",
242
- "org_id",
243
- "ack",
244
- "author",
245
- "body",
246
- "from_me",
247
- "invite_v4",
248
- "links",
249
- "location",
250
- "mentioned_ids",
251
- "message_type",
252
- "vcards",
253
- "chat_id",
254
- "timestamp",
255
- "org_phone",
256
- "broadcast_id",
257
- "is_deleted",
258
- "media",
259
- "performed_by",
260
- "prev_body",
261
- "quoted_message_id",
262
- "sender_phone",
263
- "sent_message_id",
264
- "delivery_info",
265
- "updated_at",
266
- "message_ticket_id",
267
- "unique_id",
268
- "is_gif",
269
- "is_forwarded",
270
- "is_starred"
271
- ],
272
- "view_chats": [
273
- "org_id",
274
- "chat_id",
275
- "org_phone",
276
- "chat_image",
277
- "invite_link",
278
- "label_ids",
279
- "updated_at",
280
- "chat_name",
281
- "latest_message",
282
- "member_count",
283
- "chat_type",
284
- "chat_access",
285
- "has_access",
286
- "last_read_timestamp",
287
- "chat_org_phones",
288
- "active_phone",
289
- "group_description"
290
- ]
291
- };