@periskope/types 0.4.0 → 0.5.1
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/index.d.ts +38 -0
- package/{types.ts → index.ts} +2 -2
- package/package.json +3 -3
- package/supabase.types.d.ts +916 -0
- package/tsconfig.json +5 -5
package/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Merge, OverrideProperties } from 'type-fest';
|
|
2
|
+
import { Chat, MessageTypes } from 'whatsapp-web.js';
|
|
3
|
+
import { Database as DatabaseGenerated, Tables } from './supabase.types';
|
|
4
|
+
export * from './supabase.types';
|
|
5
|
+
export type Database = OverrideProperties<DatabaseGenerated, {}>;
|
|
6
|
+
export type WhatsappChat = Chat & {
|
|
7
|
+
groupMetadata?: any;
|
|
8
|
+
pinned?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type OrgType = Tables<'tbl_org'> & {
|
|
11
|
+
user: Tables<'tbl_org_members'>;
|
|
12
|
+
members: Tables<'tbl_org_members'>[];
|
|
13
|
+
phones: Tables<'tbl_org_phones'>[];
|
|
14
|
+
labels: Tables<'tbl_org_labels'>[];
|
|
15
|
+
};
|
|
16
|
+
export type ChatType = Merge<Tables<'view_chats'>, {
|
|
17
|
+
chat_id: string;
|
|
18
|
+
latest_message: MessageType | null;
|
|
19
|
+
members: (Tables<'tbl_chat_participants'> & Partial<Tables<'tbl_contacts'>>)[] | null;
|
|
20
|
+
notifications: Tables<'tbl_chat_notifications'>[] | null;
|
|
21
|
+
chat_type: 'user' | 'group' | 'business';
|
|
22
|
+
active_phone?: boolean;
|
|
23
|
+
org_participants?: Tables<'tbl_chat_participants'>[];
|
|
24
|
+
}>;
|
|
25
|
+
export type MessageType = OverrideProperties<Tables<'view_chat_messages'>, {
|
|
26
|
+
type: MessageTypes;
|
|
27
|
+
}>;
|
|
28
|
+
export type ContactType = Merge<Tables<'tbl_contacts'>, {
|
|
29
|
+
chats: ChatType[] | null;
|
|
30
|
+
chat_count: number | null;
|
|
31
|
+
}>;
|
|
32
|
+
export type ContactsFilterType = {
|
|
33
|
+
page: number;
|
|
34
|
+
total: number;
|
|
35
|
+
contacts: ContactType[];
|
|
36
|
+
};
|
|
37
|
+
export declare const labelColors: string[];
|
|
38
|
+
export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
package/{types.ts → index.ts}
RENAMED
|
@@ -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, {}>;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@periskope/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.ts",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"type-fest": "^4.8.3",
|
|
8
8
|
"whatsapp-web.js": "^1.23.0"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"
|
|
11
|
+
"update-package": "tsc && npm publish --access public"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -0,0 +1,916 @@
|
|
|
1
|
+
export type Json = {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
} | any;
|
|
4
|
+
export interface 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
|
+
public: {
|
|
31
|
+
Tables: {
|
|
32
|
+
tbl_chat_messages: {
|
|
33
|
+
Row: {
|
|
34
|
+
ack: string | null;
|
|
35
|
+
author: string | null;
|
|
36
|
+
body: string | null;
|
|
37
|
+
broadcast: boolean | null;
|
|
38
|
+
chat_id: string | null;
|
|
39
|
+
device_type: string | null;
|
|
40
|
+
duration: string | null;
|
|
41
|
+
forwarding_score: number | null;
|
|
42
|
+
from: string | null;
|
|
43
|
+
from_me: boolean | null;
|
|
44
|
+
has_media: boolean | null;
|
|
45
|
+
has_quoted_msg: boolean | null;
|
|
46
|
+
has_reaction: boolean | null;
|
|
47
|
+
id: Json | null;
|
|
48
|
+
invite_v4: Json | null;
|
|
49
|
+
is_ephemeral: boolean | null;
|
|
50
|
+
is_forwarded: boolean | null;
|
|
51
|
+
is_gif: boolean | null;
|
|
52
|
+
is_starred: boolean | null;
|
|
53
|
+
is_status: boolean | null;
|
|
54
|
+
links: Json | null;
|
|
55
|
+
location: Json | null;
|
|
56
|
+
media_key: string | null;
|
|
57
|
+
mentioned_ids: string[] | null;
|
|
58
|
+
message_id: string;
|
|
59
|
+
order_id: string | null;
|
|
60
|
+
org_id: string;
|
|
61
|
+
org_phone: string;
|
|
62
|
+
raw_data: Json | null;
|
|
63
|
+
timestamp: string | null;
|
|
64
|
+
to: string | null;
|
|
65
|
+
token: string | null;
|
|
66
|
+
type: string | null;
|
|
67
|
+
vcards: string[] | null;
|
|
68
|
+
};
|
|
69
|
+
Insert: {
|
|
70
|
+
ack?: string | null;
|
|
71
|
+
author?: string | null;
|
|
72
|
+
body?: string | null;
|
|
73
|
+
broadcast?: boolean | null;
|
|
74
|
+
chat_id?: string | null;
|
|
75
|
+
device_type?: string | null;
|
|
76
|
+
duration?: string | null;
|
|
77
|
+
forwarding_score?: number | null;
|
|
78
|
+
from?: string | null;
|
|
79
|
+
from_me?: boolean | null;
|
|
80
|
+
has_media?: boolean | null;
|
|
81
|
+
has_quoted_msg?: boolean | null;
|
|
82
|
+
has_reaction?: boolean | null;
|
|
83
|
+
id?: Json | null;
|
|
84
|
+
invite_v4?: Json | null;
|
|
85
|
+
is_ephemeral?: boolean | null;
|
|
86
|
+
is_forwarded?: boolean | null;
|
|
87
|
+
is_gif?: boolean | null;
|
|
88
|
+
is_starred?: boolean | null;
|
|
89
|
+
is_status?: boolean | null;
|
|
90
|
+
links?: Json | null;
|
|
91
|
+
location?: Json | null;
|
|
92
|
+
media_key?: string | null;
|
|
93
|
+
mentioned_ids?: string[] | null;
|
|
94
|
+
message_id: string;
|
|
95
|
+
order_id?: string | null;
|
|
96
|
+
org_id: string;
|
|
97
|
+
org_phone: string;
|
|
98
|
+
raw_data?: Json | null;
|
|
99
|
+
timestamp?: string | null;
|
|
100
|
+
to?: string | null;
|
|
101
|
+
token?: string | null;
|
|
102
|
+
type?: string | null;
|
|
103
|
+
vcards?: string[] | null;
|
|
104
|
+
};
|
|
105
|
+
Update: {
|
|
106
|
+
ack?: string | null;
|
|
107
|
+
author?: string | null;
|
|
108
|
+
body?: string | null;
|
|
109
|
+
broadcast?: boolean | null;
|
|
110
|
+
chat_id?: string | null;
|
|
111
|
+
device_type?: string | null;
|
|
112
|
+
duration?: string | null;
|
|
113
|
+
forwarding_score?: number | null;
|
|
114
|
+
from?: string | null;
|
|
115
|
+
from_me?: boolean | null;
|
|
116
|
+
has_media?: boolean | null;
|
|
117
|
+
has_quoted_msg?: boolean | null;
|
|
118
|
+
has_reaction?: boolean | null;
|
|
119
|
+
id?: Json | null;
|
|
120
|
+
invite_v4?: Json | null;
|
|
121
|
+
is_ephemeral?: boolean | null;
|
|
122
|
+
is_forwarded?: boolean | null;
|
|
123
|
+
is_gif?: boolean | null;
|
|
124
|
+
is_starred?: boolean | null;
|
|
125
|
+
is_status?: boolean | null;
|
|
126
|
+
links?: Json | null;
|
|
127
|
+
location?: Json | null;
|
|
128
|
+
media_key?: string | null;
|
|
129
|
+
mentioned_ids?: string[] | null;
|
|
130
|
+
message_id?: string;
|
|
131
|
+
order_id?: string | null;
|
|
132
|
+
org_id?: string;
|
|
133
|
+
org_phone?: string;
|
|
134
|
+
raw_data?: Json | null;
|
|
135
|
+
timestamp?: string | null;
|
|
136
|
+
to?: string | null;
|
|
137
|
+
token?: string | null;
|
|
138
|
+
type?: string | null;
|
|
139
|
+
vcards?: string[] | null;
|
|
140
|
+
};
|
|
141
|
+
Relationships: [
|
|
142
|
+
{
|
|
143
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
144
|
+
columns: ["org_id", "org_phone"];
|
|
145
|
+
isOneToOne: false;
|
|
146
|
+
referencedRelation: "tbl_org_phones";
|
|
147
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
148
|
+
}
|
|
149
|
+
];
|
|
150
|
+
};
|
|
151
|
+
tbl_chat_notifications: {
|
|
152
|
+
Row: {
|
|
153
|
+
author: string | null;
|
|
154
|
+
body: string | null;
|
|
155
|
+
chat_id: string | null;
|
|
156
|
+
group_notification_id: string;
|
|
157
|
+
id: Json | null;
|
|
158
|
+
org_id: string;
|
|
159
|
+
org_phone: string;
|
|
160
|
+
recipientids: string[] | null;
|
|
161
|
+
timestamp: string | null;
|
|
162
|
+
type: string | null;
|
|
163
|
+
};
|
|
164
|
+
Insert: {
|
|
165
|
+
author?: string | null;
|
|
166
|
+
body?: string | null;
|
|
167
|
+
chat_id?: string | null;
|
|
168
|
+
group_notification_id: string;
|
|
169
|
+
id?: Json | null;
|
|
170
|
+
org_id: string;
|
|
171
|
+
org_phone: string;
|
|
172
|
+
recipientids?: string[] | null;
|
|
173
|
+
timestamp?: string | null;
|
|
174
|
+
type?: string | null;
|
|
175
|
+
};
|
|
176
|
+
Update: {
|
|
177
|
+
author?: string | null;
|
|
178
|
+
body?: string | null;
|
|
179
|
+
chat_id?: string | null;
|
|
180
|
+
group_notification_id?: string;
|
|
181
|
+
id?: Json | null;
|
|
182
|
+
org_id?: string;
|
|
183
|
+
org_phone?: string;
|
|
184
|
+
recipientids?: string[] | null;
|
|
185
|
+
timestamp?: string | null;
|
|
186
|
+
type?: string | null;
|
|
187
|
+
};
|
|
188
|
+
Relationships: [
|
|
189
|
+
{
|
|
190
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
191
|
+
columns: ["org_id", "org_phone"];
|
|
192
|
+
isOneToOne: false;
|
|
193
|
+
referencedRelation: "tbl_org_phones";
|
|
194
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
195
|
+
}
|
|
196
|
+
];
|
|
197
|
+
};
|
|
198
|
+
tbl_chat_participants: {
|
|
199
|
+
Row: {
|
|
200
|
+
chat_id: string;
|
|
201
|
+
contact_id: string;
|
|
202
|
+
id: Json | null;
|
|
203
|
+
is_admin: boolean | null;
|
|
204
|
+
is_super_admin: boolean | null;
|
|
205
|
+
org_id: string;
|
|
206
|
+
};
|
|
207
|
+
Insert: {
|
|
208
|
+
chat_id: string;
|
|
209
|
+
contact_id: string;
|
|
210
|
+
id?: Json | null;
|
|
211
|
+
is_admin?: boolean | null;
|
|
212
|
+
is_super_admin?: boolean | null;
|
|
213
|
+
org_id: string;
|
|
214
|
+
};
|
|
215
|
+
Update: {
|
|
216
|
+
chat_id?: string;
|
|
217
|
+
contact_id?: string;
|
|
218
|
+
id?: Json | null;
|
|
219
|
+
is_admin?: boolean | null;
|
|
220
|
+
is_super_admin?: boolean | null;
|
|
221
|
+
org_id?: string;
|
|
222
|
+
};
|
|
223
|
+
Relationships: [];
|
|
224
|
+
};
|
|
225
|
+
tbl_chat_reactions: {
|
|
226
|
+
Row: {
|
|
227
|
+
ack: number | null;
|
|
228
|
+
id: Json | null;
|
|
229
|
+
message_id: string | null;
|
|
230
|
+
msg_id: Json | null;
|
|
231
|
+
org_id: string;
|
|
232
|
+
org_phone: string;
|
|
233
|
+
orphan: number | null;
|
|
234
|
+
orphan_reason: string | null;
|
|
235
|
+
reaction: string | null;
|
|
236
|
+
reaction_id: string;
|
|
237
|
+
read: boolean | null;
|
|
238
|
+
sender_id: string | null;
|
|
239
|
+
timestamp: string | null;
|
|
240
|
+
};
|
|
241
|
+
Insert: {
|
|
242
|
+
ack?: number | null;
|
|
243
|
+
id?: Json | null;
|
|
244
|
+
message_id?: string | null;
|
|
245
|
+
msg_id?: Json | null;
|
|
246
|
+
org_id: string;
|
|
247
|
+
org_phone: string;
|
|
248
|
+
orphan?: number | null;
|
|
249
|
+
orphan_reason?: string | null;
|
|
250
|
+
reaction?: string | null;
|
|
251
|
+
reaction_id: string;
|
|
252
|
+
read?: boolean | null;
|
|
253
|
+
sender_id?: string | null;
|
|
254
|
+
timestamp?: string | null;
|
|
255
|
+
};
|
|
256
|
+
Update: {
|
|
257
|
+
ack?: number | null;
|
|
258
|
+
id?: Json | null;
|
|
259
|
+
message_id?: string | null;
|
|
260
|
+
msg_id?: Json | null;
|
|
261
|
+
org_id?: string;
|
|
262
|
+
org_phone?: string;
|
|
263
|
+
orphan?: number | null;
|
|
264
|
+
orphan_reason?: string | null;
|
|
265
|
+
reaction?: string | null;
|
|
266
|
+
reaction_id?: string;
|
|
267
|
+
read?: boolean | null;
|
|
268
|
+
sender_id?: string | null;
|
|
269
|
+
timestamp?: string | null;
|
|
270
|
+
};
|
|
271
|
+
Relationships: [
|
|
272
|
+
{
|
|
273
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
274
|
+
columns: ["org_id", "org_phone"];
|
|
275
|
+
isOneToOne: false;
|
|
276
|
+
referencedRelation: "tbl_org_phones";
|
|
277
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
278
|
+
}
|
|
279
|
+
];
|
|
280
|
+
};
|
|
281
|
+
tbl_chats: {
|
|
282
|
+
Row: {
|
|
283
|
+
archived: boolean | null;
|
|
284
|
+
chat_id: string;
|
|
285
|
+
chat_image: string | null;
|
|
286
|
+
group_metadata: Json | null;
|
|
287
|
+
id: Json | null;
|
|
288
|
+
invite_link: string | null;
|
|
289
|
+
is_group: boolean | null;
|
|
290
|
+
is_muted: boolean | null;
|
|
291
|
+
is_read_only: boolean | null;
|
|
292
|
+
label_ids: string[] | null;
|
|
293
|
+
mute_expiration: number | null;
|
|
294
|
+
name: string | null;
|
|
295
|
+
org_id: string;
|
|
296
|
+
org_phone: string;
|
|
297
|
+
pinned: boolean | null;
|
|
298
|
+
timestamp: string | null;
|
|
299
|
+
unread_count: number | null;
|
|
300
|
+
};
|
|
301
|
+
Insert: {
|
|
302
|
+
archived?: boolean | null;
|
|
303
|
+
chat_id: string;
|
|
304
|
+
chat_image?: string | null;
|
|
305
|
+
group_metadata?: Json | null;
|
|
306
|
+
id?: Json | null;
|
|
307
|
+
invite_link?: string | null;
|
|
308
|
+
is_group?: boolean | null;
|
|
309
|
+
is_muted?: boolean | null;
|
|
310
|
+
is_read_only?: boolean | null;
|
|
311
|
+
label_ids?: string[] | null;
|
|
312
|
+
mute_expiration?: number | null;
|
|
313
|
+
name?: string | null;
|
|
314
|
+
org_id: string;
|
|
315
|
+
org_phone: string;
|
|
316
|
+
pinned?: boolean | null;
|
|
317
|
+
timestamp?: string | null;
|
|
318
|
+
unread_count?: number | null;
|
|
319
|
+
};
|
|
320
|
+
Update: {
|
|
321
|
+
archived?: boolean | null;
|
|
322
|
+
chat_id?: string;
|
|
323
|
+
chat_image?: string | null;
|
|
324
|
+
group_metadata?: Json | null;
|
|
325
|
+
id?: Json | null;
|
|
326
|
+
invite_link?: string | null;
|
|
327
|
+
is_group?: boolean | null;
|
|
328
|
+
is_muted?: boolean | null;
|
|
329
|
+
is_read_only?: boolean | null;
|
|
330
|
+
label_ids?: string[] | null;
|
|
331
|
+
mute_expiration?: number | null;
|
|
332
|
+
name?: string | null;
|
|
333
|
+
org_id?: string;
|
|
334
|
+
org_phone?: string;
|
|
335
|
+
pinned?: boolean | null;
|
|
336
|
+
timestamp?: string | null;
|
|
337
|
+
unread_count?: number | null;
|
|
338
|
+
};
|
|
339
|
+
Relationships: [];
|
|
340
|
+
};
|
|
341
|
+
tbl_contacts: {
|
|
342
|
+
Row: {
|
|
343
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
344
|
+
contact_id: string;
|
|
345
|
+
contact_image: string | null;
|
|
346
|
+
id: Json | null;
|
|
347
|
+
is_blocked: boolean | null;
|
|
348
|
+
is_business: boolean | null;
|
|
349
|
+
is_enterprise: boolean | null;
|
|
350
|
+
is_group: boolean | null;
|
|
351
|
+
is_me: boolean | null;
|
|
352
|
+
is_my_contact: boolean | null;
|
|
353
|
+
is_user: boolean | null;
|
|
354
|
+
is_wa_contact: boolean | null;
|
|
355
|
+
name: string | null;
|
|
356
|
+
number: string | null;
|
|
357
|
+
org_id: string;
|
|
358
|
+
pushname: string | null;
|
|
359
|
+
short_name: string | null;
|
|
360
|
+
type: string | null;
|
|
361
|
+
};
|
|
362
|
+
Insert: {
|
|
363
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
364
|
+
contact_id: string;
|
|
365
|
+
contact_image?: string | null;
|
|
366
|
+
id?: Json | null;
|
|
367
|
+
is_blocked?: boolean | null;
|
|
368
|
+
is_business?: boolean | null;
|
|
369
|
+
is_enterprise?: boolean | null;
|
|
370
|
+
is_group?: boolean | null;
|
|
371
|
+
is_me?: boolean | null;
|
|
372
|
+
is_my_contact?: boolean | null;
|
|
373
|
+
is_user?: boolean | null;
|
|
374
|
+
is_wa_contact?: boolean | null;
|
|
375
|
+
name?: string | null;
|
|
376
|
+
number?: string | null;
|
|
377
|
+
org_id: string;
|
|
378
|
+
pushname?: string | null;
|
|
379
|
+
short_name?: string | null;
|
|
380
|
+
type?: string | null;
|
|
381
|
+
};
|
|
382
|
+
Update: {
|
|
383
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
384
|
+
contact_id?: string;
|
|
385
|
+
contact_image?: string | null;
|
|
386
|
+
id?: Json | null;
|
|
387
|
+
is_blocked?: boolean | null;
|
|
388
|
+
is_business?: boolean | null;
|
|
389
|
+
is_enterprise?: boolean | null;
|
|
390
|
+
is_group?: boolean | null;
|
|
391
|
+
is_me?: boolean | null;
|
|
392
|
+
is_my_contact?: boolean | null;
|
|
393
|
+
is_user?: boolean | null;
|
|
394
|
+
is_wa_contact?: boolean | null;
|
|
395
|
+
name?: string | null;
|
|
396
|
+
number?: string | null;
|
|
397
|
+
org_id?: string;
|
|
398
|
+
pushname?: string | null;
|
|
399
|
+
short_name?: string | null;
|
|
400
|
+
type?: string | null;
|
|
401
|
+
};
|
|
402
|
+
Relationships: [
|
|
403
|
+
{
|
|
404
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
405
|
+
columns: ["org_id"];
|
|
406
|
+
isOneToOne: false;
|
|
407
|
+
referencedRelation: "tbl_org";
|
|
408
|
+
referencedColumns: ["org_id"];
|
|
409
|
+
}
|
|
410
|
+
];
|
|
411
|
+
};
|
|
412
|
+
tbl_org: {
|
|
413
|
+
Row: {
|
|
414
|
+
created_at: string;
|
|
415
|
+
org_id: string;
|
|
416
|
+
org_image: string | null;
|
|
417
|
+
org_name: string | null;
|
|
418
|
+
support_link: string | null;
|
|
419
|
+
};
|
|
420
|
+
Insert: {
|
|
421
|
+
created_at?: string;
|
|
422
|
+
org_id?: string;
|
|
423
|
+
org_image?: string | null;
|
|
424
|
+
org_name?: string | null;
|
|
425
|
+
support_link?: string | null;
|
|
426
|
+
};
|
|
427
|
+
Update: {
|
|
428
|
+
created_at?: string;
|
|
429
|
+
org_id?: string;
|
|
430
|
+
org_image?: string | null;
|
|
431
|
+
org_name?: string | null;
|
|
432
|
+
support_link?: string | null;
|
|
433
|
+
};
|
|
434
|
+
Relationships: [];
|
|
435
|
+
};
|
|
436
|
+
tbl_org_labels: {
|
|
437
|
+
Row: {
|
|
438
|
+
color: string;
|
|
439
|
+
created_at: string;
|
|
440
|
+
label_id: string;
|
|
441
|
+
name: string;
|
|
442
|
+
org_id: string;
|
|
443
|
+
type: string;
|
|
444
|
+
};
|
|
445
|
+
Insert: {
|
|
446
|
+
color?: string;
|
|
447
|
+
created_at?: string;
|
|
448
|
+
label_id?: string;
|
|
449
|
+
name: string;
|
|
450
|
+
org_id: string;
|
|
451
|
+
type: string;
|
|
452
|
+
};
|
|
453
|
+
Update: {
|
|
454
|
+
color?: string;
|
|
455
|
+
created_at?: string;
|
|
456
|
+
label_id?: string;
|
|
457
|
+
name?: string;
|
|
458
|
+
org_id?: string;
|
|
459
|
+
type?: string;
|
|
460
|
+
};
|
|
461
|
+
Relationships: [
|
|
462
|
+
{
|
|
463
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
464
|
+
columns: ["org_id"];
|
|
465
|
+
isOneToOne: false;
|
|
466
|
+
referencedRelation: "tbl_org";
|
|
467
|
+
referencedColumns: ["org_id"];
|
|
468
|
+
}
|
|
469
|
+
];
|
|
470
|
+
};
|
|
471
|
+
tbl_org_members: {
|
|
472
|
+
Row: {
|
|
473
|
+
created_at: string | null;
|
|
474
|
+
email: string;
|
|
475
|
+
invited_at: string | null;
|
|
476
|
+
invited_by: string | null;
|
|
477
|
+
is_active: boolean;
|
|
478
|
+
member_image: string | null;
|
|
479
|
+
member_name: string | null;
|
|
480
|
+
org_id: string;
|
|
481
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
482
|
+
user_id: string | null;
|
|
483
|
+
};
|
|
484
|
+
Insert: {
|
|
485
|
+
created_at?: string | null;
|
|
486
|
+
email: string;
|
|
487
|
+
invited_at?: string | null;
|
|
488
|
+
invited_by?: string | null;
|
|
489
|
+
is_active?: boolean;
|
|
490
|
+
member_image?: string | null;
|
|
491
|
+
member_name?: string | null;
|
|
492
|
+
org_id: string;
|
|
493
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
494
|
+
user_id?: string | null;
|
|
495
|
+
};
|
|
496
|
+
Update: {
|
|
497
|
+
created_at?: string | null;
|
|
498
|
+
email?: string;
|
|
499
|
+
invited_at?: string | null;
|
|
500
|
+
invited_by?: string | null;
|
|
501
|
+
is_active?: boolean;
|
|
502
|
+
member_image?: string | null;
|
|
503
|
+
member_name?: string | null;
|
|
504
|
+
org_id?: string;
|
|
505
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
506
|
+
user_id?: string | null;
|
|
507
|
+
};
|
|
508
|
+
Relationships: [
|
|
509
|
+
{
|
|
510
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
511
|
+
columns: ["user_id"];
|
|
512
|
+
isOneToOne: false;
|
|
513
|
+
referencedRelation: "users";
|
|
514
|
+
referencedColumns: ["id"];
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
518
|
+
columns: ["org_id"];
|
|
519
|
+
isOneToOne: false;
|
|
520
|
+
referencedRelation: "tbl_org";
|
|
521
|
+
referencedColumns: ["org_id"];
|
|
522
|
+
}
|
|
523
|
+
];
|
|
524
|
+
};
|
|
525
|
+
tbl_org_phones: {
|
|
526
|
+
Row: {
|
|
527
|
+
created_at: string;
|
|
528
|
+
is_ready: boolean;
|
|
529
|
+
org_id: string;
|
|
530
|
+
org_phone: string | null;
|
|
531
|
+
phone_id: string;
|
|
532
|
+
qr_code: string | null;
|
|
533
|
+
updated_at: string;
|
|
534
|
+
wa_state: string | null;
|
|
535
|
+
};
|
|
536
|
+
Insert: {
|
|
537
|
+
created_at?: string;
|
|
538
|
+
is_ready?: boolean;
|
|
539
|
+
org_id: string;
|
|
540
|
+
org_phone?: string | null;
|
|
541
|
+
phone_id?: string;
|
|
542
|
+
qr_code?: string | null;
|
|
543
|
+
updated_at?: string;
|
|
544
|
+
wa_state?: string | null;
|
|
545
|
+
};
|
|
546
|
+
Update: {
|
|
547
|
+
created_at?: string;
|
|
548
|
+
is_ready?: boolean;
|
|
549
|
+
org_id?: string;
|
|
550
|
+
org_phone?: string | null;
|
|
551
|
+
phone_id?: string;
|
|
552
|
+
qr_code?: string | null;
|
|
553
|
+
updated_at?: string;
|
|
554
|
+
wa_state?: string | null;
|
|
555
|
+
};
|
|
556
|
+
Relationships: [
|
|
557
|
+
{
|
|
558
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
559
|
+
columns: ["org_id"];
|
|
560
|
+
isOneToOne: false;
|
|
561
|
+
referencedRelation: "tbl_org";
|
|
562
|
+
referencedColumns: ["org_id"];
|
|
563
|
+
}
|
|
564
|
+
];
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
Views: {
|
|
568
|
+
view_chat_messages: {
|
|
569
|
+
Row: {
|
|
570
|
+
ack: string | null;
|
|
571
|
+
author: string | null;
|
|
572
|
+
body: string | null;
|
|
573
|
+
broadcast: boolean | null;
|
|
574
|
+
chat_id: string | null;
|
|
575
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
576
|
+
device_type: string | null;
|
|
577
|
+
duration: string | null;
|
|
578
|
+
forwarding_score: number | null;
|
|
579
|
+
from: string | null;
|
|
580
|
+
from_me: boolean | null;
|
|
581
|
+
has_media: boolean | null;
|
|
582
|
+
has_quoted_msg: boolean | null;
|
|
583
|
+
has_reaction: boolean | null;
|
|
584
|
+
id: Json | null;
|
|
585
|
+
invite_v4: Json | null;
|
|
586
|
+
is_ephemeral: boolean | null;
|
|
587
|
+
is_forwarded: boolean | null;
|
|
588
|
+
is_gif: boolean | null;
|
|
589
|
+
is_starred: boolean | null;
|
|
590
|
+
is_status: boolean | null;
|
|
591
|
+
links: Json | null;
|
|
592
|
+
location: Json | null;
|
|
593
|
+
media_key: string | null;
|
|
594
|
+
mentioned_ids: string[] | null;
|
|
595
|
+
message_id: string | null;
|
|
596
|
+
name: string | null;
|
|
597
|
+
order_id: string | null;
|
|
598
|
+
org_id: string | null;
|
|
599
|
+
org_phone: string | null;
|
|
600
|
+
pushname: string | null;
|
|
601
|
+
raw_data: Json | null;
|
|
602
|
+
sender_phone: string | null;
|
|
603
|
+
timestamp: string | null;
|
|
604
|
+
to: string | null;
|
|
605
|
+
token: string | null;
|
|
606
|
+
type: string | null;
|
|
607
|
+
vcards: string[] | null;
|
|
608
|
+
};
|
|
609
|
+
Relationships: [
|
|
610
|
+
{
|
|
611
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
612
|
+
columns: ["org_id", "org_phone"];
|
|
613
|
+
isOneToOne: false;
|
|
614
|
+
referencedRelation: "tbl_org_phones";
|
|
615
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
616
|
+
}
|
|
617
|
+
];
|
|
618
|
+
};
|
|
619
|
+
view_chats: {
|
|
620
|
+
Row: {
|
|
621
|
+
archived: boolean | null;
|
|
622
|
+
chat_id: string | null;
|
|
623
|
+
chat_image: string | null;
|
|
624
|
+
chat_type: string | null;
|
|
625
|
+
group_metadata: Json | null;
|
|
626
|
+
id: Json | null;
|
|
627
|
+
invite_link: string | null;
|
|
628
|
+
is_group: boolean | null;
|
|
629
|
+
is_muted: boolean | null;
|
|
630
|
+
is_read_only: boolean | null;
|
|
631
|
+
label_ids: string[] | null;
|
|
632
|
+
latest_message: Json | null;
|
|
633
|
+
latest_message_timestamp: string | null;
|
|
634
|
+
member_count: number | null;
|
|
635
|
+
mute_expiration: number | null;
|
|
636
|
+
name: string | null;
|
|
637
|
+
org_id: string | null;
|
|
638
|
+
org_participants: Json | null;
|
|
639
|
+
org_phone: string | null;
|
|
640
|
+
pinned: boolean | null;
|
|
641
|
+
timestamp: string | null;
|
|
642
|
+
unread_count: number | null;
|
|
643
|
+
};
|
|
644
|
+
Relationships: [];
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
Functions: {
|
|
648
|
+
gen_id: {
|
|
649
|
+
Args: {
|
|
650
|
+
prefix: string;
|
|
651
|
+
size?: number;
|
|
652
|
+
alphabet?: string;
|
|
653
|
+
};
|
|
654
|
+
Returns: string;
|
|
655
|
+
};
|
|
656
|
+
get_chats: {
|
|
657
|
+
Args: {
|
|
658
|
+
chat_id_input?: string[];
|
|
659
|
+
with_metadata?: boolean;
|
|
660
|
+
};
|
|
661
|
+
Returns: Json;
|
|
662
|
+
};
|
|
663
|
+
get_contacts: {
|
|
664
|
+
Args: {
|
|
665
|
+
filters?: Json;
|
|
666
|
+
page_num?: number;
|
|
667
|
+
contact_id_input?: string;
|
|
668
|
+
};
|
|
669
|
+
Returns: Json;
|
|
670
|
+
};
|
|
671
|
+
get_media: {
|
|
672
|
+
Args: {
|
|
673
|
+
filters?: Json;
|
|
674
|
+
page_num?: number;
|
|
675
|
+
};
|
|
676
|
+
Returns: Json;
|
|
677
|
+
};
|
|
678
|
+
get_org: {
|
|
679
|
+
Args: {
|
|
680
|
+
org_id_input?: string;
|
|
681
|
+
};
|
|
682
|
+
Returns: Json;
|
|
683
|
+
};
|
|
684
|
+
list_org_from_user: {
|
|
685
|
+
Args: Record<PropertyKey, never>;
|
|
686
|
+
Returns: string;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
Enums: {
|
|
690
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
691
|
+
enum_member_role: "admin" | "member";
|
|
692
|
+
};
|
|
693
|
+
CompositeTypes: {
|
|
694
|
+
[_ in never]: never;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
storage: {
|
|
698
|
+
Tables: {
|
|
699
|
+
buckets: {
|
|
700
|
+
Row: {
|
|
701
|
+
allowed_mime_types: string[] | null;
|
|
702
|
+
avif_autodetection: boolean | null;
|
|
703
|
+
created_at: string | null;
|
|
704
|
+
file_size_limit: number | null;
|
|
705
|
+
id: string;
|
|
706
|
+
name: string;
|
|
707
|
+
owner: string | null;
|
|
708
|
+
owner_id: string | null;
|
|
709
|
+
public: boolean | null;
|
|
710
|
+
updated_at: string | null;
|
|
711
|
+
};
|
|
712
|
+
Insert: {
|
|
713
|
+
allowed_mime_types?: string[] | null;
|
|
714
|
+
avif_autodetection?: boolean | null;
|
|
715
|
+
created_at?: string | null;
|
|
716
|
+
file_size_limit?: number | null;
|
|
717
|
+
id: string;
|
|
718
|
+
name: string;
|
|
719
|
+
owner?: string | null;
|
|
720
|
+
owner_id?: string | null;
|
|
721
|
+
public?: boolean | null;
|
|
722
|
+
updated_at?: string | null;
|
|
723
|
+
};
|
|
724
|
+
Update: {
|
|
725
|
+
allowed_mime_types?: string[] | null;
|
|
726
|
+
avif_autodetection?: boolean | null;
|
|
727
|
+
created_at?: string | null;
|
|
728
|
+
file_size_limit?: number | null;
|
|
729
|
+
id?: string;
|
|
730
|
+
name?: string;
|
|
731
|
+
owner?: string | null;
|
|
732
|
+
owner_id?: string | null;
|
|
733
|
+
public?: boolean | null;
|
|
734
|
+
updated_at?: string | null;
|
|
735
|
+
};
|
|
736
|
+
Relationships: [];
|
|
737
|
+
};
|
|
738
|
+
migrations: {
|
|
739
|
+
Row: {
|
|
740
|
+
executed_at: string | null;
|
|
741
|
+
hash: string;
|
|
742
|
+
id: number;
|
|
743
|
+
name: string;
|
|
744
|
+
};
|
|
745
|
+
Insert: {
|
|
746
|
+
executed_at?: string | null;
|
|
747
|
+
hash: string;
|
|
748
|
+
id: number;
|
|
749
|
+
name: string;
|
|
750
|
+
};
|
|
751
|
+
Update: {
|
|
752
|
+
executed_at?: string | null;
|
|
753
|
+
hash?: string;
|
|
754
|
+
id?: number;
|
|
755
|
+
name?: string;
|
|
756
|
+
};
|
|
757
|
+
Relationships: [];
|
|
758
|
+
};
|
|
759
|
+
objects: {
|
|
760
|
+
Row: {
|
|
761
|
+
bucket_id: string | null;
|
|
762
|
+
created_at: string | null;
|
|
763
|
+
id: string;
|
|
764
|
+
last_accessed_at: string | null;
|
|
765
|
+
metadata: Json | null;
|
|
766
|
+
name: string | null;
|
|
767
|
+
owner: string | null;
|
|
768
|
+
owner_id: string | null;
|
|
769
|
+
path_tokens: string[] | null;
|
|
770
|
+
updated_at: string | null;
|
|
771
|
+
version: string | null;
|
|
772
|
+
};
|
|
773
|
+
Insert: {
|
|
774
|
+
bucket_id?: string | null;
|
|
775
|
+
created_at?: string | null;
|
|
776
|
+
id?: string;
|
|
777
|
+
last_accessed_at?: string | null;
|
|
778
|
+
metadata?: Json | null;
|
|
779
|
+
name?: string | null;
|
|
780
|
+
owner?: string | null;
|
|
781
|
+
owner_id?: string | null;
|
|
782
|
+
path_tokens?: string[] | null;
|
|
783
|
+
updated_at?: string | null;
|
|
784
|
+
version?: string | null;
|
|
785
|
+
};
|
|
786
|
+
Update: {
|
|
787
|
+
bucket_id?: string | null;
|
|
788
|
+
created_at?: string | null;
|
|
789
|
+
id?: string;
|
|
790
|
+
last_accessed_at?: string | null;
|
|
791
|
+
metadata?: Json | null;
|
|
792
|
+
name?: string | null;
|
|
793
|
+
owner?: string | null;
|
|
794
|
+
owner_id?: string | null;
|
|
795
|
+
path_tokens?: string[] | null;
|
|
796
|
+
updated_at?: string | null;
|
|
797
|
+
version?: string | null;
|
|
798
|
+
};
|
|
799
|
+
Relationships: [
|
|
800
|
+
{
|
|
801
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
802
|
+
columns: ["bucket_id"];
|
|
803
|
+
isOneToOne: false;
|
|
804
|
+
referencedRelation: "buckets";
|
|
805
|
+
referencedColumns: ["id"];
|
|
806
|
+
}
|
|
807
|
+
];
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
Views: {
|
|
811
|
+
[_ in never]: never;
|
|
812
|
+
};
|
|
813
|
+
Functions: {
|
|
814
|
+
can_insert_object: {
|
|
815
|
+
Args: {
|
|
816
|
+
bucketid: string;
|
|
817
|
+
name: string;
|
|
818
|
+
owner: string;
|
|
819
|
+
metadata: Json;
|
|
820
|
+
};
|
|
821
|
+
Returns: undefined;
|
|
822
|
+
};
|
|
823
|
+
extension: {
|
|
824
|
+
Args: {
|
|
825
|
+
name: string;
|
|
826
|
+
};
|
|
827
|
+
Returns: string;
|
|
828
|
+
};
|
|
829
|
+
filename: {
|
|
830
|
+
Args: {
|
|
831
|
+
name: string;
|
|
832
|
+
};
|
|
833
|
+
Returns: string;
|
|
834
|
+
};
|
|
835
|
+
foldername: {
|
|
836
|
+
Args: {
|
|
837
|
+
name: string;
|
|
838
|
+
};
|
|
839
|
+
Returns: unknown;
|
|
840
|
+
};
|
|
841
|
+
get_size_by_bucket: {
|
|
842
|
+
Args: Record<PropertyKey, never>;
|
|
843
|
+
Returns: {
|
|
844
|
+
size: number;
|
|
845
|
+
bucket_id: string;
|
|
846
|
+
}[];
|
|
847
|
+
};
|
|
848
|
+
search: {
|
|
849
|
+
Args: {
|
|
850
|
+
prefix: string;
|
|
851
|
+
bucketname: string;
|
|
852
|
+
limits?: number;
|
|
853
|
+
levels?: number;
|
|
854
|
+
offsets?: number;
|
|
855
|
+
search?: string;
|
|
856
|
+
sortcolumn?: string;
|
|
857
|
+
sortorder?: string;
|
|
858
|
+
};
|
|
859
|
+
Returns: {
|
|
860
|
+
name: string;
|
|
861
|
+
id: string;
|
|
862
|
+
updated_at: string;
|
|
863
|
+
created_at: string;
|
|
864
|
+
last_accessed_at: string;
|
|
865
|
+
metadata: Json;
|
|
866
|
+
}[];
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
Enums: {
|
|
870
|
+
[_ in never]: never;
|
|
871
|
+
};
|
|
872
|
+
CompositeTypes: {
|
|
873
|
+
[_ in never]: never;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
export type Tables<PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] & Database["public"]["Views"]) | {
|
|
878
|
+
schema: keyof Database;
|
|
879
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
880
|
+
schema: keyof Database;
|
|
881
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
882
|
+
schema: keyof Database;
|
|
883
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
884
|
+
Row: infer R;
|
|
885
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] & Database["public"]["Views"]) ? (Database["public"]["Tables"] & Database["public"]["Views"])[PublicTableNameOrOptions] extends {
|
|
886
|
+
Row: infer R;
|
|
887
|
+
} ? R : never : never;
|
|
888
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof Database["public"]["Tables"] | {
|
|
889
|
+
schema: keyof Database;
|
|
890
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
891
|
+
schema: keyof Database;
|
|
892
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
893
|
+
schema: keyof Database;
|
|
894
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
895
|
+
Insert: infer I;
|
|
896
|
+
} ? I : never : PublicTableNameOrOptions extends keyof Database["public"]["Tables"] ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
|
|
897
|
+
Insert: infer I;
|
|
898
|
+
} ? I : never : never;
|
|
899
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof Database["public"]["Tables"] | {
|
|
900
|
+
schema: keyof Database;
|
|
901
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
902
|
+
schema: keyof Database;
|
|
903
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
904
|
+
schema: keyof Database;
|
|
905
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
906
|
+
Update: infer U;
|
|
907
|
+
} ? U : never : PublicTableNameOrOptions extends keyof Database["public"]["Tables"] ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {
|
|
908
|
+
Update: infer U;
|
|
909
|
+
} ? U : never : never;
|
|
910
|
+
export type Enums<PublicEnumNameOrOptions extends keyof Database["public"]["Enums"] | {
|
|
911
|
+
schema: keyof Database;
|
|
912
|
+
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
913
|
+
schema: keyof Database;
|
|
914
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
915
|
+
schema: keyof Database;
|
|
916
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof Database["public"]["Enums"] ? Database["public"]["Enums"][PublicEnumNameOrOptions] : never;
|
package/tsconfig.json
CHANGED
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
26
|
|
|
27
27
|
/* Modules */
|
|
28
|
-
"module": "
|
|
28
|
+
"module": "NodeNext", /* Specify what module code is generated. */
|
|
29
29
|
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
|
|
30
|
+
"moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
31
|
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
32
|
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
33
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
50
|
|
|
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
|
-
|
|
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": "./", /* Specify an output folder for all emitted files. */
|
|
59
59
|
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
-
"noEmit": true, /* Disable emitting files from a compilation. */
|
|
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. */
|
|
62
62
|
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
63
63
|
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|