@periskope/types 0.6.94 → 0.6.95
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/supabase.types.d.ts +34 -2
- package/dist/types.d.ts +6 -13
- package/dist/types.js +4 -8
- package/package.json +16 -16
- package/supabase.types.ts +34 -2
- package/types.ts +5 -16
package/dist/supabase.types.d.ts
CHANGED
|
@@ -29,6 +29,39 @@ export type Database = {
|
|
|
29
29
|
};
|
|
30
30
|
public: {
|
|
31
31
|
Tables: {
|
|
32
|
+
tbl_api_logs: {
|
|
33
|
+
Row: {
|
|
34
|
+
org_id: string;
|
|
35
|
+
path: string;
|
|
36
|
+
req: Json;
|
|
37
|
+
request_id: string;
|
|
38
|
+
res: Json;
|
|
39
|
+
status: number;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
token_id: string;
|
|
42
|
+
};
|
|
43
|
+
Insert: {
|
|
44
|
+
org_id: string;
|
|
45
|
+
path: string;
|
|
46
|
+
req: Json;
|
|
47
|
+
request_id: string;
|
|
48
|
+
res: Json;
|
|
49
|
+
status: number;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
token_id: string;
|
|
52
|
+
};
|
|
53
|
+
Update: {
|
|
54
|
+
org_id?: string;
|
|
55
|
+
path?: string;
|
|
56
|
+
req?: Json;
|
|
57
|
+
request_id?: string;
|
|
58
|
+
res?: Json;
|
|
59
|
+
status?: number;
|
|
60
|
+
timestamp?: string;
|
|
61
|
+
token_id?: string;
|
|
62
|
+
};
|
|
63
|
+
Relationships: [];
|
|
64
|
+
};
|
|
32
65
|
tbl_broadcast_logs: {
|
|
33
66
|
Row: {
|
|
34
67
|
broadcast_id: string;
|
|
@@ -1650,8 +1683,7 @@ export type Database = {
|
|
|
1650
1683
|
Args: {
|
|
1651
1684
|
org_id_input: string;
|
|
1652
1685
|
tbl_type: string;
|
|
1653
|
-
|
|
1654
|
-
row_id_input: string[];
|
|
1686
|
+
row_label_map: Json;
|
|
1655
1687
|
replace_labels?: boolean;
|
|
1656
1688
|
};
|
|
1657
1689
|
Returns: undefined;
|
package/dist/types.d.ts
CHANGED
|
@@ -9,18 +9,16 @@ export type WhatsappChat = Chat & {
|
|
|
9
9
|
};
|
|
10
10
|
export declare enum AllPlans {
|
|
11
11
|
FREE_TRIAL = "free-trial",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
MONTHLY_STARTER = "monthly-starter",
|
|
13
|
+
YEARLY_STARTER = "yearly-starter",
|
|
14
|
+
MONTHLY_PRO = "monthly-pro",
|
|
15
|
+
YEARLY_PRO = "yearly-pro",
|
|
16
|
+
ENTERPRISE = "enterprise"
|
|
17
17
|
}
|
|
18
18
|
export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
|
|
19
19
|
export type Enterprise = `${string}-enterprise`;
|
|
20
20
|
export type OrgPlanEnterprise = {
|
|
21
|
-
subscription_id: string;
|
|
22
21
|
plan_id: Enterprise;
|
|
23
|
-
interval: number;
|
|
24
22
|
frequency: Frequency;
|
|
25
23
|
user_limit: number;
|
|
26
24
|
phone_limit: number;
|
|
@@ -28,14 +26,12 @@ export type OrgPlanEnterprise = {
|
|
|
28
26
|
current_period_end: number | null;
|
|
29
27
|
};
|
|
30
28
|
export type OrgPlanNonEnterprise = {
|
|
31
|
-
subscription_id: string;
|
|
32
29
|
plan_id: AllPlans;
|
|
33
30
|
interval: number;
|
|
34
31
|
frequency: Frequency;
|
|
35
32
|
user_limit: number;
|
|
36
33
|
phone_limit: number;
|
|
37
|
-
|
|
38
|
-
current_period_start: number;
|
|
34
|
+
percent_off: number | null;
|
|
39
35
|
};
|
|
40
36
|
export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise ? OrgPlanEnterprise : T extends AllPlans ? OrgPlanNonEnterprise : never;
|
|
41
37
|
export type MicrosurveyData = {
|
|
@@ -231,9 +227,6 @@ export type StripeSubscription = _Stripe.Subscription;
|
|
|
231
227
|
export type StripeCustomer = _Stripe.Customer;
|
|
232
228
|
export type StripeCoupon = _Stripe.Coupon;
|
|
233
229
|
export type StripePrice = _Stripe.Price;
|
|
234
|
-
export type Stripe = _Stripe;
|
|
235
|
-
export type StripeUpcomingInvoice = _Stripe.UpcomingInvoice;
|
|
236
|
-
export type StripeLineItem = _Stripe.Checkout.SessionCreateParams.LineItem;
|
|
237
230
|
export type PhoneStateType = {
|
|
238
231
|
loading: boolean;
|
|
239
232
|
state: string;
|
package/dist/types.js
CHANGED
|
@@ -5,15 +5,11 @@ exports.IntegrationLogType = exports.SUPPORTED_TYPES = exports.enumChatColors =
|
|
|
5
5
|
var AllPlans;
|
|
6
6
|
(function (AllPlans) {
|
|
7
7
|
AllPlans["FREE_TRIAL"] = "free-trial";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
AllPlans["MONTHLY_STARTER"] = "monthly-starter";
|
|
9
|
+
AllPlans["YEARLY_STARTER"] = "yearly-starter";
|
|
10
|
+
AllPlans["MONTHLY_PRO"] = "monthly-pro";
|
|
11
|
+
AllPlans["YEARLY_PRO"] = "yearly-pro";
|
|
12
12
|
AllPlans["ENTERPRISE"] = "enterprise";
|
|
13
|
-
AllPlans["MONTHLY_STARTER_SINGLE"] = "monthly-starter-single";
|
|
14
|
-
AllPlans["YEARLY_STARTER_SINGLE"] = "yearly-starter-single";
|
|
15
|
-
AllPlans["MONTHLY_PRO_SINGLE"] = "monthly-pro-single";
|
|
16
|
-
AllPlans["YEARLY_PRO_SINGLE"] = "yearly-pro-single";
|
|
17
13
|
})(AllPlans || (exports.AllPlans = AllPlans = {}));
|
|
18
14
|
/* -------------------------------- CONSTANTS ------------------------------- */
|
|
19
15
|
exports.labelColors = [
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@periskope/types",
|
|
3
|
+
"version": "0.6.95",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@periskope/whatsapp-web.js": "1.23.1-alpha.exodus.8",
|
|
9
|
+
"@types/pg": "8.11.2",
|
|
10
|
+
"pg": "^8.11.3",
|
|
11
|
+
"stripe": "^14.19.0",
|
|
12
|
+
"ts-node": "^10.9.2",
|
|
13
|
+
"type-fest": "^4.8.3"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"update-package": "tsc \u0026\u0026 npm publish --access public"
|
|
17
|
+
}
|
|
18
18
|
}
|
package/supabase.types.ts
CHANGED
|
@@ -28,6 +28,39 @@ export type Database = {
|
|
|
28
28
|
};
|
|
29
29
|
public: {
|
|
30
30
|
Tables: {
|
|
31
|
+
tbl_api_logs: {
|
|
32
|
+
Row: {
|
|
33
|
+
org_id: string;
|
|
34
|
+
path: string;
|
|
35
|
+
req: Json;
|
|
36
|
+
request_id: string;
|
|
37
|
+
res: Json;
|
|
38
|
+
status: number;
|
|
39
|
+
timestamp: string;
|
|
40
|
+
token_id: string;
|
|
41
|
+
};
|
|
42
|
+
Insert: {
|
|
43
|
+
org_id: string;
|
|
44
|
+
path: string;
|
|
45
|
+
req: Json;
|
|
46
|
+
request_id: string;
|
|
47
|
+
res: Json;
|
|
48
|
+
status: number;
|
|
49
|
+
timestamp: string;
|
|
50
|
+
token_id: string;
|
|
51
|
+
};
|
|
52
|
+
Update: {
|
|
53
|
+
org_id?: string;
|
|
54
|
+
path?: string;
|
|
55
|
+
req?: Json;
|
|
56
|
+
request_id?: string;
|
|
57
|
+
res?: Json;
|
|
58
|
+
status?: number;
|
|
59
|
+
timestamp?: string;
|
|
60
|
+
token_id?: string;
|
|
61
|
+
};
|
|
62
|
+
Relationships: [];
|
|
63
|
+
};
|
|
31
64
|
tbl_broadcast_logs: {
|
|
32
65
|
Row: {
|
|
33
66
|
broadcast_id: string;
|
|
@@ -1667,8 +1700,7 @@ export type Database = {
|
|
|
1667
1700
|
Args: {
|
|
1668
1701
|
org_id_input: string;
|
|
1669
1702
|
tbl_type: string;
|
|
1670
|
-
|
|
1671
|
-
row_id_input: string[];
|
|
1703
|
+
row_label_map: Json;
|
|
1672
1704
|
replace_labels?: boolean;
|
|
1673
1705
|
};
|
|
1674
1706
|
Returns: undefined;
|
package/types.ts
CHANGED
|
@@ -17,15 +17,11 @@ export type WhatsappChat = Chat & {
|
|
|
17
17
|
|
|
18
18
|
export enum AllPlans {
|
|
19
19
|
FREE_TRIAL = 'free-trial',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
MONTHLY_STARTER = 'monthly-starter',
|
|
21
|
+
YEARLY_STARTER = 'yearly-starter',
|
|
22
|
+
MONTHLY_PRO = 'monthly-pro',
|
|
23
|
+
YEARLY_PRO = 'yearly-pro',
|
|
24
24
|
ENTERPRISE = 'enterprise',
|
|
25
|
-
MONTHLY_STARTER_SINGLE = 'monthly-starter-single',
|
|
26
|
-
YEARLY_STARTER_SINGLE = 'yearly-starter-single',
|
|
27
|
-
MONTHLY_PRO_SINGLE = 'monthly-pro-single',
|
|
28
|
-
YEARLY_PRO_SINGLE = 'yearly-pro-single',
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
|
|
@@ -33,9 +29,7 @@ export type Frequency = 'yearly' | 'monthly' | 'weekly' | 'custom';
|
|
|
33
29
|
export type Enterprise = `${string}-enterprise`;
|
|
34
30
|
|
|
35
31
|
export type OrgPlanEnterprise = {
|
|
36
|
-
subscription_id: string
|
|
37
32
|
plan_id: Enterprise;
|
|
38
|
-
interval: number;
|
|
39
33
|
frequency: Frequency;
|
|
40
34
|
user_limit: number;
|
|
41
35
|
phone_limit: number;
|
|
@@ -44,14 +38,12 @@ export type OrgPlanEnterprise = {
|
|
|
44
38
|
};
|
|
45
39
|
|
|
46
40
|
export type OrgPlanNonEnterprise = {
|
|
47
|
-
subscription_id: string
|
|
48
41
|
plan_id: AllPlans;
|
|
49
42
|
interval: number;
|
|
50
43
|
frequency: Frequency;
|
|
51
44
|
user_limit: number;
|
|
52
45
|
phone_limit: number;
|
|
53
|
-
|
|
54
|
-
current_period_start: number;
|
|
46
|
+
percent_off: number | null;
|
|
55
47
|
};
|
|
56
48
|
|
|
57
49
|
export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise
|
|
@@ -345,9 +337,6 @@ export type StripeSubscription = _Stripe.Subscription;
|
|
|
345
337
|
export type StripeCustomer = _Stripe.Customer;
|
|
346
338
|
export type StripeCoupon = _Stripe.Coupon;
|
|
347
339
|
export type StripePrice = _Stripe.Price;
|
|
348
|
-
export type Stripe = _Stripe;
|
|
349
|
-
export type StripeUpcomingInvoice = _Stripe.UpcomingInvoice;
|
|
350
|
-
export type StripeLineItem = _Stripe.Checkout.SessionCreateParams.LineItem;
|
|
351
340
|
|
|
352
341
|
/* -------------------------------- REALTIME -------------------------------- */
|
|
353
342
|
|