@hexclave/shared 1.0.15 → 1.0.16
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/config/schema.d.ts +55 -55
- package/dist/esm/config/schema.d.ts +55 -55
- package/dist/esm/interface/admin-metrics.d.ts +22 -22
- package/dist/esm/interface/conversations.d.ts +10 -10
- package/dist/esm/interface/crud/current-user.d.ts +14 -14
- package/dist/esm/interface/crud/email-outbox.d.ts +160 -160
- package/dist/esm/interface/crud/products.d.ts +13 -13
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +36 -36
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +13 -13
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +14 -14
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +22 -22
- package/dist/interface/conversations.d.ts +10 -10
- package/dist/interface/crud/current-user.d.ts +14 -14
- package/dist/interface/crud/email-outbox.d.ts +160 -160
- package/dist/interface/crud/products.d.ts +13 -13
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/interface/crud/projects.d.ts +36 -36
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +13 -13
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +14 -14
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
|
@@ -6,12 +6,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
6
6
|
id: string | null;
|
|
7
7
|
quantity: number;
|
|
8
8
|
product: {
|
|
9
|
-
free_trial?: DayInterval | undefined;
|
|
10
9
|
client_metadata?: {} | null | undefined;
|
|
11
10
|
client_read_only_metadata?: {} | null | undefined;
|
|
12
11
|
server_metadata?: {} | null | undefined;
|
|
12
|
+
free_trial?: DayInterval | undefined;
|
|
13
|
+
display_name: string;
|
|
13
14
|
server_only: boolean;
|
|
14
|
-
customer_type: "
|
|
15
|
+
customer_type: "user" | "team" | "custom";
|
|
15
16
|
stackable: boolean;
|
|
16
17
|
prices: Record<string, {
|
|
17
18
|
USD?: string | undefined;
|
|
@@ -24,7 +25,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
24
25
|
interval?: DayInterval | undefined;
|
|
25
26
|
free_trial?: DayInterval | undefined;
|
|
26
27
|
}>;
|
|
27
|
-
display_name: string;
|
|
28
28
|
included_items: Record<string, {
|
|
29
29
|
quantity?: number | undefined;
|
|
30
30
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -41,12 +41,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
41
41
|
switch_options: {
|
|
42
42
|
product_id: string;
|
|
43
43
|
product: {
|
|
44
|
-
free_trial?: DayInterval | undefined;
|
|
45
44
|
client_metadata?: {} | null | undefined;
|
|
46
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
47
46
|
server_metadata?: {} | null | undefined;
|
|
47
|
+
free_trial?: DayInterval | undefined;
|
|
48
|
+
display_name: string;
|
|
48
49
|
server_only: boolean;
|
|
49
|
-
customer_type: "
|
|
50
|
+
customer_type: "user" | "team" | "custom";
|
|
50
51
|
stackable: boolean;
|
|
51
52
|
prices: Record<string, {
|
|
52
53
|
USD?: string | undefined;
|
|
@@ -59,7 +60,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
59
60
|
interval?: DayInterval | undefined;
|
|
60
61
|
free_trial?: DayInterval | undefined;
|
|
61
62
|
}>;
|
|
62
|
-
display_name: string;
|
|
63
63
|
included_items: Record<string, {
|
|
64
64
|
quantity?: number | undefined;
|
|
65
65
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -104,12 +104,13 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
104
104
|
switch_options?: {
|
|
105
105
|
product_id: string;
|
|
106
106
|
product: {
|
|
107
|
-
free_trial?: DayInterval | undefined;
|
|
108
107
|
client_metadata?: {} | null | undefined;
|
|
109
108
|
client_read_only_metadata?: {} | null | undefined;
|
|
110
109
|
server_metadata?: {} | null | undefined;
|
|
110
|
+
free_trial?: DayInterval | undefined;
|
|
111
|
+
display_name: string;
|
|
111
112
|
server_only: boolean;
|
|
112
|
-
customer_type: "
|
|
113
|
+
customer_type: "user" | "team" | "custom";
|
|
113
114
|
stackable: boolean;
|
|
114
115
|
prices: Record<string, {
|
|
115
116
|
USD?: string | undefined;
|
|
@@ -122,7 +123,6 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
122
123
|
interval?: DayInterval | undefined;
|
|
123
124
|
free_trial?: DayInterval | undefined;
|
|
124
125
|
}>;
|
|
125
|
-
display_name: string;
|
|
126
126
|
included_items: Record<string, {
|
|
127
127
|
quantity?: number | undefined;
|
|
128
128
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -130,14 +130,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
130
130
|
}>;
|
|
131
131
|
};
|
|
132
132
|
}[] | undefined;
|
|
133
|
+
id: string | null;
|
|
133
134
|
quantity: number;
|
|
134
135
|
product: {
|
|
135
|
-
free_trial?: DayInterval | undefined;
|
|
136
136
|
client_metadata?: {} | null | undefined;
|
|
137
137
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
138
|
server_metadata?: {} | null | undefined;
|
|
139
|
+
free_trial?: DayInterval | undefined;
|
|
140
|
+
display_name: string;
|
|
139
141
|
server_only: boolean;
|
|
140
|
-
customer_type: "
|
|
142
|
+
customer_type: "user" | "team" | "custom";
|
|
141
143
|
stackable: boolean;
|
|
142
144
|
prices: Record<string, {
|
|
143
145
|
USD?: string | undefined;
|
|
@@ -150,14 +152,12 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
150
152
|
interval?: DayInterval | undefined;
|
|
151
153
|
free_trial?: DayInterval | undefined;
|
|
152
154
|
}>;
|
|
153
|
-
display_name: string;
|
|
154
155
|
included_items: Record<string, {
|
|
155
156
|
quantity?: number | undefined;
|
|
156
157
|
repeat?: "never" | DayInterval | undefined;
|
|
157
158
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
159
|
}>;
|
|
159
160
|
};
|
|
160
|
-
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
163
163
|
pagination: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA
|
|
1
|
+
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;iBAc1B,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -78,12 +78,12 @@ declare const userApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
78
78
|
is_public: undefined;
|
|
79
79
|
user_id: undefined;
|
|
80
80
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
81
|
-
user_id: string;
|
|
82
81
|
type: "user";
|
|
83
|
-
description: string;
|
|
84
82
|
id: string;
|
|
85
83
|
created_at_millis: number;
|
|
86
84
|
expires_at_millis: number | undefined;
|
|
85
|
+
user_id: string;
|
|
86
|
+
description: string;
|
|
87
87
|
manually_revoked_at_millis: number | undefined;
|
|
88
88
|
is_public: boolean;
|
|
89
89
|
} & {
|
|
@@ -177,11 +177,11 @@ declare const teamApiKeysCrud: CrudSchemaFromOptions<{
|
|
|
177
177
|
team_id: undefined;
|
|
178
178
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
179
179
|
type: "team";
|
|
180
|
-
team_id: string;
|
|
181
|
-
description: string;
|
|
182
180
|
id: string;
|
|
183
181
|
created_at_millis: number;
|
|
184
182
|
expires_at_millis: number | undefined;
|
|
183
|
+
team_id: string;
|
|
184
|
+
description: string;
|
|
185
185
|
manually_revoked_at_millis: number | undefined;
|
|
186
186
|
is_public: boolean;
|
|
187
187
|
} & {
|
|
@@ -66,10 +66,6 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
66
66
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
67
67
|
provider_config_id: string;
|
|
68
68
|
}[];
|
|
69
|
-
domains: {
|
|
70
|
-
domain: string;
|
|
71
|
-
handler_path: string;
|
|
72
|
-
}[];
|
|
73
69
|
allow_localhost: boolean;
|
|
74
70
|
sign_up_enabled: boolean;
|
|
75
71
|
credential_enabled: boolean;
|
|
@@ -82,6 +78,10 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
82
78
|
enabled_oauth_providers: {
|
|
83
79
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
84
80
|
}[];
|
|
81
|
+
domains: {
|
|
82
|
+
domain: string;
|
|
83
|
+
handler_path: string;
|
|
84
|
+
}[];
|
|
85
85
|
email_config: {
|
|
86
86
|
password?: string | undefined;
|
|
87
87
|
host?: string | undefined;
|
|
@@ -158,10 +158,6 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
158
158
|
id: string;
|
|
159
159
|
display_name: string;
|
|
160
160
|
config: {
|
|
161
|
-
domains: {
|
|
162
|
-
domain: string;
|
|
163
|
-
handler_path: string;
|
|
164
|
-
}[];
|
|
165
161
|
allow_localhost: boolean;
|
|
166
162
|
sign_up_enabled: boolean;
|
|
167
163
|
credential_enabled: boolean;
|
|
@@ -174,6 +170,10 @@ declare const projectsCrudClientReadSchema: yup$1.ObjectSchema<{
|
|
|
174
170
|
enabled_oauth_providers: {
|
|
175
171
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
176
172
|
}[];
|
|
173
|
+
domains: {
|
|
174
|
+
domain: string;
|
|
175
|
+
handler_path: string;
|
|
176
|
+
}[];
|
|
177
177
|
};
|
|
178
178
|
}, yup$1.AnyObject, {
|
|
179
179
|
id: undefined;
|
|
@@ -218,10 +218,6 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
218
218
|
type: "shared" | "standard";
|
|
219
219
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
220
220
|
}[] | undefined;
|
|
221
|
-
domains?: {
|
|
222
|
-
domain: string;
|
|
223
|
-
handler_path: string;
|
|
224
|
-
}[] | undefined;
|
|
225
221
|
allow_localhost?: boolean | undefined;
|
|
226
222
|
sign_up_enabled?: boolean | undefined;
|
|
227
223
|
credential_enabled?: boolean | undefined;
|
|
@@ -231,6 +227,10 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
231
227
|
client_user_deletion_enabled?: boolean | undefined;
|
|
232
228
|
allow_user_api_keys?: boolean | undefined;
|
|
233
229
|
allow_team_api_keys?: boolean | undefined;
|
|
230
|
+
domains?: {
|
|
231
|
+
domain: string;
|
|
232
|
+
handler_path: string;
|
|
233
|
+
}[] | undefined;
|
|
234
234
|
email_config?: {
|
|
235
235
|
password?: string | undefined;
|
|
236
236
|
host?: string | undefined;
|
|
@@ -298,10 +298,6 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
298
298
|
type: "shared" | "standard";
|
|
299
299
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
300
300
|
}[] | undefined;
|
|
301
|
-
domains?: {
|
|
302
|
-
domain: string;
|
|
303
|
-
handler_path: string;
|
|
304
|
-
}[] | undefined;
|
|
305
301
|
allow_localhost?: boolean | undefined;
|
|
306
302
|
sign_up_enabled?: boolean | undefined;
|
|
307
303
|
credential_enabled?: boolean | undefined;
|
|
@@ -311,6 +307,10 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
311
307
|
client_user_deletion_enabled?: boolean | undefined;
|
|
312
308
|
allow_user_api_keys?: boolean | undefined;
|
|
313
309
|
allow_team_api_keys?: boolean | undefined;
|
|
310
|
+
domains?: {
|
|
311
|
+
domain: string;
|
|
312
|
+
handler_path: string;
|
|
313
|
+
}[] | undefined;
|
|
314
314
|
email_config?: {
|
|
315
315
|
password?: string | undefined;
|
|
316
316
|
host?: string | undefined;
|
|
@@ -364,10 +364,6 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
364
364
|
id: string;
|
|
365
365
|
display_name: string;
|
|
366
366
|
config: {
|
|
367
|
-
domains: {
|
|
368
|
-
domain: string;
|
|
369
|
-
handler_path: string;
|
|
370
|
-
}[];
|
|
371
367
|
allow_localhost: boolean;
|
|
372
368
|
sign_up_enabled: boolean;
|
|
373
369
|
credential_enabled: boolean;
|
|
@@ -380,6 +376,10 @@ declare const clientProjectsCrud: CrudSchemaFromOptions<{
|
|
|
380
376
|
enabled_oauth_providers: {
|
|
381
377
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
382
378
|
}[];
|
|
379
|
+
domains: {
|
|
380
|
+
domain: string;
|
|
381
|
+
handler_path: string;
|
|
382
|
+
}[];
|
|
383
383
|
};
|
|
384
384
|
}, yup$1.AnyObject, {
|
|
385
385
|
id: undefined;
|
|
@@ -439,10 +439,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
439
439
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
440
440
|
provider_config_id: string;
|
|
441
441
|
}[];
|
|
442
|
-
domains: {
|
|
443
|
-
domain: string;
|
|
444
|
-
handler_path: string;
|
|
445
|
-
}[];
|
|
446
442
|
allow_localhost: boolean;
|
|
447
443
|
sign_up_enabled: boolean;
|
|
448
444
|
credential_enabled: boolean;
|
|
@@ -455,6 +451,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
455
451
|
enabled_oauth_providers: {
|
|
456
452
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
457
453
|
}[];
|
|
454
|
+
domains: {
|
|
455
|
+
domain: string;
|
|
456
|
+
handler_path: string;
|
|
457
|
+
}[];
|
|
458
458
|
email_config: {
|
|
459
459
|
password?: string | undefined;
|
|
460
460
|
host?: string | undefined;
|
|
@@ -553,10 +553,6 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
553
553
|
type: "shared" | "standard";
|
|
554
554
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
555
555
|
}[] | undefined;
|
|
556
|
-
domains?: {
|
|
557
|
-
domain: string;
|
|
558
|
-
handler_path: string;
|
|
559
|
-
}[] | undefined;
|
|
560
556
|
allow_localhost?: boolean | undefined;
|
|
561
557
|
sign_up_enabled?: boolean | undefined;
|
|
562
558
|
credential_enabled?: boolean | undefined;
|
|
@@ -566,6 +562,10 @@ declare const projectsCrud: CrudSchemaFromOptions<{
|
|
|
566
562
|
client_user_deletion_enabled?: boolean | undefined;
|
|
567
563
|
allow_user_api_keys?: boolean | undefined;
|
|
568
564
|
allow_team_api_keys?: boolean | undefined;
|
|
565
|
+
domains?: {
|
|
566
|
+
domain: string;
|
|
567
|
+
handler_path: string;
|
|
568
|
+
}[] | undefined;
|
|
569
569
|
email_config?: {
|
|
570
570
|
password?: string | undefined;
|
|
571
571
|
host?: string | undefined;
|
|
@@ -662,10 +662,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
662
662
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
663
663
|
provider_config_id: string;
|
|
664
664
|
}[];
|
|
665
|
-
domains: {
|
|
666
|
-
domain: string;
|
|
667
|
-
handler_path: string;
|
|
668
|
-
}[];
|
|
669
665
|
allow_localhost: boolean;
|
|
670
666
|
sign_up_enabled: boolean;
|
|
671
667
|
credential_enabled: boolean;
|
|
@@ -678,6 +674,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
678
674
|
enabled_oauth_providers: {
|
|
679
675
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
680
676
|
}[];
|
|
677
|
+
domains: {
|
|
678
|
+
domain: string;
|
|
679
|
+
handler_path: string;
|
|
680
|
+
}[];
|
|
681
681
|
email_config: {
|
|
682
682
|
password?: string | undefined;
|
|
683
683
|
host?: string | undefined;
|
|
@@ -776,10 +776,6 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
776
776
|
type: "shared" | "standard";
|
|
777
777
|
id: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch";
|
|
778
778
|
}[] | undefined;
|
|
779
|
-
domains?: {
|
|
780
|
-
domain: string;
|
|
781
|
-
handler_path: string;
|
|
782
|
-
}[] | undefined;
|
|
783
779
|
allow_localhost?: boolean | undefined;
|
|
784
780
|
sign_up_enabled?: boolean | undefined;
|
|
785
781
|
credential_enabled?: boolean | undefined;
|
|
@@ -789,6 +785,10 @@ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
|
|
|
789
785
|
client_user_deletion_enabled?: boolean | undefined;
|
|
790
786
|
allow_user_api_keys?: boolean | undefined;
|
|
791
787
|
allow_team_api_keys?: boolean | undefined;
|
|
788
|
+
domains?: {
|
|
789
|
+
domain: string;
|
|
790
|
+
handler_path: string;
|
|
791
|
+
}[] | undefined;
|
|
792
792
|
email_config?: {
|
|
793
793
|
password?: string | undefined;
|
|
794
794
|
host?: string | undefined;
|
|
@@ -20,32 +20,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
20
20
|
profile_image_url: string | null;
|
|
21
21
|
} & {
|
|
22
22
|
user: {
|
|
23
|
+
id: string;
|
|
24
|
+
country_code: string | null;
|
|
25
|
+
display_name: string | null;
|
|
26
|
+
primary_email: string | null;
|
|
27
|
+
profile_image_url: string | null;
|
|
28
|
+
signed_up_at_millis: number;
|
|
29
|
+
last_active_at_millis: number;
|
|
30
|
+
selected_team_id: string | null;
|
|
31
|
+
is_anonymous: boolean;
|
|
32
|
+
is_restricted: boolean;
|
|
23
33
|
restricted_reason: {
|
|
24
34
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
25
35
|
} | null;
|
|
26
|
-
|
|
27
|
-
display_name: string | null;
|
|
36
|
+
requires_totp_mfa: boolean;
|
|
28
37
|
client_metadata: {} | null;
|
|
29
38
|
client_read_only_metadata: {} | null;
|
|
30
39
|
server_metadata: {} | null;
|
|
31
|
-
id: string;
|
|
32
|
-
selected_team_id: string | null;
|
|
33
|
-
is_anonymous: boolean;
|
|
34
|
-
is_restricted: boolean;
|
|
35
|
-
requires_totp_mfa: boolean;
|
|
36
|
-
country_code: string | null;
|
|
37
|
-
profile_image_url: string | null;
|
|
38
|
-
signed_up_at_millis: number;
|
|
39
|
-
last_active_at_millis: number;
|
|
40
40
|
primary_email_verified: boolean;
|
|
41
41
|
primary_email_auth_enabled: boolean;
|
|
42
42
|
selected_team: {
|
|
43
43
|
client_metadata?: {} | null | undefined;
|
|
44
44
|
client_read_only_metadata?: {} | null | undefined;
|
|
45
45
|
server_metadata?: {} | null | undefined;
|
|
46
|
-
display_name: string;
|
|
47
46
|
id: string;
|
|
48
47
|
created_at_millis: number;
|
|
48
|
+
display_name: string;
|
|
49
49
|
profile_image_url: string | null;
|
|
50
50
|
} | null;
|
|
51
51
|
has_password: boolean;
|
|
@@ -143,32 +143,32 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
143
143
|
profile_image_url: string | null;
|
|
144
144
|
} & {
|
|
145
145
|
user: {
|
|
146
|
+
id: string;
|
|
147
|
+
country_code: string | null;
|
|
148
|
+
display_name: string | null;
|
|
149
|
+
primary_email: string | null;
|
|
150
|
+
profile_image_url: string | null;
|
|
151
|
+
signed_up_at_millis: number;
|
|
152
|
+
last_active_at_millis: number;
|
|
153
|
+
selected_team_id: string | null;
|
|
154
|
+
is_anonymous: boolean;
|
|
155
|
+
is_restricted: boolean;
|
|
146
156
|
restricted_reason: {
|
|
147
157
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
148
158
|
} | null;
|
|
149
|
-
|
|
150
|
-
display_name: string | null;
|
|
159
|
+
requires_totp_mfa: boolean;
|
|
151
160
|
client_metadata: {} | null;
|
|
152
161
|
client_read_only_metadata: {} | null;
|
|
153
162
|
server_metadata: {} | null;
|
|
154
|
-
id: string;
|
|
155
|
-
selected_team_id: string | null;
|
|
156
|
-
is_anonymous: boolean;
|
|
157
|
-
is_restricted: boolean;
|
|
158
|
-
requires_totp_mfa: boolean;
|
|
159
|
-
country_code: string | null;
|
|
160
|
-
profile_image_url: string | null;
|
|
161
|
-
signed_up_at_millis: number;
|
|
162
|
-
last_active_at_millis: number;
|
|
163
163
|
primary_email_verified: boolean;
|
|
164
164
|
primary_email_auth_enabled: boolean;
|
|
165
165
|
selected_team: {
|
|
166
166
|
client_metadata?: {} | null | undefined;
|
|
167
167
|
client_read_only_metadata?: {} | null | undefined;
|
|
168
168
|
server_metadata?: {} | null | undefined;
|
|
169
|
-
display_name: string;
|
|
170
169
|
id: string;
|
|
171
170
|
created_at_millis: number;
|
|
171
|
+
display_name: string;
|
|
172
172
|
profile_image_url: string | null;
|
|
173
173
|
} | null;
|
|
174
174
|
has_password: boolean;
|
|
@@ -6,7 +6,7 @@ import { InferType } from "yup";
|
|
|
6
6
|
declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
7
7
|
type: "money_transfer";
|
|
8
8
|
customer_id: string;
|
|
9
|
-
customer_type: "
|
|
9
|
+
customer_type: "user" | "team" | "custom";
|
|
10
10
|
charged_amount: {
|
|
11
11
|
USD?: string | undefined;
|
|
12
12
|
EUR?: string | undefined;
|
|
@@ -26,7 +26,7 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
26
26
|
item_id: string;
|
|
27
27
|
customer_id: string;
|
|
28
28
|
quantity: number;
|
|
29
|
-
customer_type: "
|
|
29
|
+
customer_type: "user" | "team" | "custom";
|
|
30
30
|
adjusted_transaction_id: string | null;
|
|
31
31
|
adjusted_entry_index: number | null;
|
|
32
32
|
} | {
|
|
@@ -36,14 +36,15 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
36
36
|
customer_id: string;
|
|
37
37
|
product_id: string | null;
|
|
38
38
|
quantity: number;
|
|
39
|
-
customer_type: "
|
|
39
|
+
customer_type: "user" | "team" | "custom";
|
|
40
40
|
product: {
|
|
41
|
-
free_trial?: DayInterval | undefined;
|
|
42
41
|
client_metadata?: {} | null | undefined;
|
|
43
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
43
|
server_metadata?: {} | null | undefined;
|
|
44
|
+
free_trial?: DayInterval | undefined;
|
|
45
|
+
display_name: string;
|
|
45
46
|
server_only: boolean;
|
|
46
|
-
customer_type: "
|
|
47
|
+
customer_type: "user" | "team" | "custom";
|
|
47
48
|
stackable: boolean;
|
|
48
49
|
prices: Record<string, {
|
|
49
50
|
USD?: string | undefined;
|
|
@@ -56,7 +57,6 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
56
57
|
interval?: DayInterval | undefined;
|
|
57
58
|
free_trial?: DayInterval | undefined;
|
|
58
59
|
}>;
|
|
59
|
-
display_name: string;
|
|
60
60
|
included_items: Record<string, {
|
|
61
61
|
quantity?: number | undefined;
|
|
62
62
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -85,12 +85,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
effective_at_millis: number;
|
|
87
87
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
88
|
-
customer_type: "
|
|
88
|
+
customer_type: "user" | "team" | "custom";
|
|
89
89
|
customer_id: string;
|
|
90
90
|
entries: ({
|
|
91
91
|
type: "money_transfer";
|
|
92
92
|
customer_id: string;
|
|
93
|
-
customer_type: "
|
|
93
|
+
customer_type: "user" | "team" | "custom";
|
|
94
94
|
charged_amount: {
|
|
95
95
|
USD?: string | undefined;
|
|
96
96
|
EUR?: string | undefined;
|
|
@@ -110,7 +110,7 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
110
110
|
item_id: string;
|
|
111
111
|
customer_id: string;
|
|
112
112
|
quantity: number;
|
|
113
|
-
customer_type: "
|
|
113
|
+
customer_type: "user" | "team" | "custom";
|
|
114
114
|
adjusted_transaction_id: string | null;
|
|
115
115
|
adjusted_entry_index: number | null;
|
|
116
116
|
} | {
|
|
@@ -120,14 +120,15 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
120
120
|
customer_id: string;
|
|
121
121
|
product_id: string | null;
|
|
122
122
|
quantity: number;
|
|
123
|
-
customer_type: "
|
|
123
|
+
customer_type: "user" | "team" | "custom";
|
|
124
124
|
product: {
|
|
125
|
-
free_trial?: DayInterval | undefined;
|
|
126
125
|
client_metadata?: {} | null | undefined;
|
|
127
126
|
client_read_only_metadata?: {} | null | undefined;
|
|
128
127
|
server_metadata?: {} | null | undefined;
|
|
128
|
+
free_trial?: DayInterval | undefined;
|
|
129
|
+
display_name: string;
|
|
129
130
|
server_only: boolean;
|
|
130
|
-
customer_type: "
|
|
131
|
+
customer_type: "user" | "team" | "custom";
|
|
131
132
|
stackable: boolean;
|
|
132
133
|
prices: Record<string, {
|
|
133
134
|
USD?: string | undefined;
|
|
@@ -140,7 +141,6 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
140
141
|
interval?: DayInterval | undefined;
|
|
141
142
|
free_trial?: DayInterval | undefined;
|
|
142
143
|
}>;
|
|
143
|
-
display_name: string;
|
|
144
144
|
included_items: Record<string, {
|
|
145
145
|
quantity?: number | undefined;
|
|
146
146
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|
|
@@ -80,9 +80,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
80
80
|
client_metadata?: {} | null | undefined;
|
|
81
81
|
client_read_only_metadata?: {} | null | undefined;
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
|
-
display_name: string;
|
|
84
83
|
id: string;
|
|
85
84
|
created_at_millis: number;
|
|
85
|
+
display_name: string;
|
|
86
86
|
profile_image_url: string | null;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
@@ -162,15 +162,14 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
162
162
|
requires_totp_mfa: undefined;
|
|
163
163
|
}, "">;
|
|
164
164
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
165
|
-
|
|
166
|
-
password: string | null | undefined;
|
|
165
|
+
country_code: string | null | undefined;
|
|
167
166
|
display_name: string | null | undefined;
|
|
167
|
+
primary_email: string | null | undefined;
|
|
168
|
+
profile_image_url: string | null | undefined;
|
|
169
|
+
is_anonymous: boolean | undefined;
|
|
168
170
|
client_metadata: {} | null | undefined;
|
|
169
171
|
client_read_only_metadata: {} | null | undefined;
|
|
170
172
|
server_metadata: {} | null | undefined;
|
|
171
|
-
is_anonymous: boolean | undefined;
|
|
172
|
-
country_code: string | null | undefined;
|
|
173
|
-
profile_image_url: string | null | undefined;
|
|
174
173
|
primary_email_verified: boolean | undefined;
|
|
175
174
|
primary_email_auth_enabled: boolean | undefined;
|
|
176
175
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -184,6 +183,7 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
184
183
|
free_trial_abuse: number;
|
|
185
184
|
};
|
|
186
185
|
} | undefined;
|
|
186
|
+
password: string | null | undefined;
|
|
187
187
|
password_hash: string | undefined;
|
|
188
188
|
totp_secret_base64: string | null | undefined;
|
|
189
189
|
} & {
|
|
@@ -233,9 +233,9 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
233
233
|
client_metadata?: {} | null | undefined;
|
|
234
234
|
client_read_only_metadata?: {} | null | undefined;
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
|
-
display_name: string;
|
|
237
236
|
id: string;
|
|
238
237
|
created_at_millis: number;
|
|
238
|
+
display_name: string;
|
|
239
239
|
profile_image_url: string | null;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
@@ -368,15 +368,14 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
-
|
|
372
|
-
password: string | null | undefined;
|
|
371
|
+
country_code: string | null | undefined;
|
|
373
372
|
display_name: string | null | undefined;
|
|
373
|
+
primary_email: string | null | undefined;
|
|
374
|
+
profile_image_url: string | null | undefined;
|
|
375
|
+
is_anonymous: boolean | undefined;
|
|
374
376
|
client_metadata: {} | null | undefined;
|
|
375
377
|
client_read_only_metadata: {} | null | undefined;
|
|
376
378
|
server_metadata: {} | null | undefined;
|
|
377
|
-
is_anonymous: boolean | undefined;
|
|
378
|
-
country_code: string | null | undefined;
|
|
379
|
-
profile_image_url: string | null | undefined;
|
|
380
379
|
primary_email_verified: boolean | undefined;
|
|
381
380
|
primary_email_auth_enabled: boolean | undefined;
|
|
382
381
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -390,6 +389,7 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
390
389
|
free_trial_abuse: number;
|
|
391
390
|
};
|
|
392
391
|
} | undefined;
|
|
392
|
+
password: string | null | undefined;
|
|
393
393
|
password_hash: string | undefined;
|
|
394
394
|
totp_secret_base64: string | null | undefined;
|
|
395
395
|
} & {
|
|
@@ -467,9 +467,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
467
467
|
client_metadata?: {} | null | undefined;
|
|
468
468
|
client_read_only_metadata?: {} | null | undefined;
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
|
-
display_name: string;
|
|
471
470
|
id: string;
|
|
472
471
|
created_at_millis: number;
|
|
472
|
+
display_name: string;
|
|
473
473
|
profile_image_url: string | null;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
@@ -558,9 +558,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
558
558
|
client_metadata?: {} | null | undefined;
|
|
559
559
|
client_read_only_metadata?: {} | null | undefined;
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
|
-
display_name: string;
|
|
562
561
|
id: string;
|
|
563
562
|
created_at_millis: number;
|
|
563
|
+
display_name: string;
|
|
564
564
|
profile_image_url: string | null;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
@@ -20,9 +20,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
20
20
|
client_metadata?: {} | null | undefined;
|
|
21
21
|
client_read_only_metadata?: {} | null | undefined;
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
|
-
display_name: string;
|
|
24
23
|
id: string;
|
|
25
24
|
created_at_millis: number;
|
|
25
|
+
display_name: string;
|
|
26
26
|
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
@@ -110,9 +110,9 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
110
110
|
client_metadata?: {} | null | undefined;
|
|
111
111
|
client_read_only_metadata?: {} | null | undefined;
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
|
-
display_name: string;
|
|
114
113
|
id: string;
|
|
115
114
|
created_at_millis: number;
|
|
115
|
+
display_name: string;
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|