@periskope/types 0.5.2 → 0.5.3
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
2
2
|
import { Chat, MessageTypes } from 'whatsapp-web.js';
|
|
3
|
-
import { Database as DatabaseGenerated, Tables } from './supabase.types
|
|
4
|
-
export * from './supabase.types
|
|
3
|
+
import { Database as DatabaseGenerated, Tables } from './supabase.types';
|
|
4
|
+
export * from './supabase.types';
|
|
5
5
|
export type Database = OverrideProperties<DatabaseGenerated, {}>;
|
|
6
6
|
export type WhatsappChat = Chat & {
|
|
7
7
|
groupMetadata?: any;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './supabase.types';
|
|
2
|
+
/* -------------------------------- CONSTANTS ------------------------------- */
|
|
3
|
+
export const labelColors = [
|
|
4
|
+
'#9333EA',
|
|
5
|
+
'#0D9488',
|
|
6
|
+
'#DB2777',
|
|
7
|
+
'#2563EB',
|
|
8
|
+
'#F97316',
|
|
9
|
+
];
|
|
10
|
+
export const enumChatColors = [
|
|
11
|
+
"#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698",
|
|
12
|
+
"#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA",
|
|
13
|
+
"#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"
|
|
14
|
+
];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@periskope/types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "types.
|
|
6
|
-
"types": "types.d.ts",
|
|
5
|
+
"main": "dist/types.js",
|
|
6
|
+
"types": "dist/types.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"type-fest": "^4.8.3",
|
|
9
9
|
"whatsapp-web.js": "^1.23.0"
|
package/tsconfig.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
36
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
37
|
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
-
"allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
38
|
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
39
|
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
40
|
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
41
|
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
/* Emit */
|
|
52
52
|
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
53
53
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
-
"emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
54
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
55
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
56
|
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
57
|
// "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. */
|
|
58
|
-
|
|
58
|
+
"outDir": "dist/", /* Specify an output folder for all emitted files. */
|
|
59
59
|
// "removeComments": true, /* Disable emitting comments. */
|
|
60
60
|
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
61
|
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
package/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Merge, OverrideProperties } from 'type-fest';
|
|
2
2
|
import { Chat, MessageTypes } from 'whatsapp-web.js';
|
|
3
|
-
import { Database as DatabaseGenerated, Tables } from './supabase.types
|
|
4
|
-
export * from './supabase.types
|
|
3
|
+
import { Database as DatabaseGenerated, Tables } from './supabase.types';
|
|
4
|
+
export * from './supabase.types';
|
|
5
5
|
|
|
6
6
|
// Override the type for a specific column in a view:
|
|
7
7
|
export type Database = OverrideProperties<DatabaseGenerated, {}>;
|
|
File without changes
|