@hexclave/shared 1.0.45 → 1.0.47
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/{admin-interface-B-UjGQ0i.d.ts → admin-interface-DH4uLcZ3.d.ts} +11 -11
- package/dist/{admin-interface-B-UjGQ0i.d.ts.map → admin-interface-DH4uLcZ3.d.ts.map} +1 -1
- package/dist/{admin-metrics-1yiWGq9z.d.ts → admin-metrics-pphx-0AE.d.ts} +11 -11
- package/dist/{admin-metrics-1yiWGq9z.d.ts.map → admin-metrics-pphx-0AE.d.ts.map} +1 -1
- package/dist/ai/unified-prompts/reminders.js +2 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/{client-interface-DjVtlQix.d.ts → client-interface-BmHWUJhv.d.ts} +10 -10
- package/dist/{client-interface-DjVtlQix.d.ts.map → client-interface-BmHWUJhv.d.ts.map} +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config-authoring.d.ts +1 -1
- package/dist/{current-user-BCkMYzHx.d.ts → current-user-Dvf8Ttjo.d.ts} +15 -15
- package/dist/{current-user-BCkMYzHx.d.ts.map → current-user-Dvf8Ttjo.d.ts.map} +1 -1
- package/dist/dates-BRAvSk6L.d.ts +40 -0
- package/dist/{dates-B6ne9iOR.d.ts.map → dates-BRAvSk6L.d.ts.map} +1 -1
- package/dist/{email-outbox-BRZiK0ZG.d.ts → email-outbox-DoxRUJop.d.ts} +179 -179
- package/dist/{email-outbox-BRZiK0ZG.d.ts.map → email-outbox-DoxRUJop.d.ts.map} +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +1 -1
- package/dist/esm/config/schema.d.ts +92 -92
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +10 -10
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +7 -7
- package/dist/esm/interface/crud/current-user.d.ts +14 -14
- package/dist/esm/interface/crud/email-outbox.d.ts +178 -178
- package/dist/esm/interface/crud/invoices.d.ts +1 -1
- package/dist/esm/interface/crud/products.d.ts +21 -21
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +16 -16
- package/dist/esm/interface/crud/team-member-profiles.d.ts +22 -22
- package/dist/esm/interface/crud/transactions.d.ts +17 -17
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +12 -12
- package/dist/esm/interface/plan-usage.d.ts +3 -1
- package/dist/esm/interface/plan-usage.d.ts.map +1 -1
- package/dist/esm/interface/plan-usage.js +1 -0
- package/dist/esm/interface/plan-usage.js.map +1 -1
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +3 -3
- package/dist/esm/schema-fields.d.ts +12 -12
- package/dist/esm/schema-fields.d.ts.map +1 -1
- package/dist/esm/schema-fields.js +2 -2
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/sessions.d.ts +9 -9
- package/dist/esm/utils/currencies.d.ts +16 -1
- package/dist/esm/utils/currencies.d.ts.map +1 -1
- package/dist/esm/utils/currencies.js +24 -1
- package/dist/esm/utils/currencies.js.map +1 -1
- package/dist/esm/utils/dates.d.ts +18 -1
- package/dist/esm/utils/dates.d.ts.map +1 -1
- package/dist/esm/utils/dates.js +36 -15
- package/dist/esm/utils/dates.js.map +1 -1
- package/dist/helpers/password.d.ts +1 -1
- package/dist/helpers/production-mode.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/interface/admin-interface.d.ts +2 -2
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +1 -1
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +7 -7
- package/dist/interface/crud/current-user.d.ts +1 -1
- package/dist/interface/crud/email-outbox.d.ts +1 -1
- package/dist/interface/crud/invoices.d.ts +1 -1
- package/dist/interface/crud/products.d.ts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +1 -1
- package/dist/interface/crud/projects.d.ts +1 -1
- package/dist/interface/crud/team-member-profiles.d.ts +1 -1
- package/dist/interface/crud/transactions.d.ts +1 -1
- package/dist/interface/crud/users.d.ts +1 -1
- package/dist/interface/plan-usage.d.ts +1 -1
- package/dist/interface/plan-usage.js +1 -0
- package/dist/interface/plan-usage.js.map +1 -1
- package/dist/interface/server-interface.d.ts +1 -1
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +1 -1
- package/dist/{invoices-BGLLnTlR.d.ts → invoices-U65KzAZX.d.ts} +2 -2
- package/dist/{invoices-BGLLnTlR.d.ts.map → invoices-U65KzAZX.d.ts.map} +1 -1
- package/dist/{known-errors-g7JC8z58.d.ts → known-errors-Bm4a61wL.d.ts} +4 -4
- package/dist/{known-errors-g7JC8z58.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-BigvGIcT.d.ts → plan-usage-BaDxcLZ1.d.ts} +4 -2
- package/dist/plan-usage-BaDxcLZ1.d.ts.map +1 -0
- package/dist/{products-D_fcxfR0.d.ts → products-D4o8A2W0.d.ts} +23 -23
- package/dist/{products-D_fcxfR0.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
- package/dist/{project-api-keys-OQqmKtMS.d.ts → project-api-keys--7V5X_UW.d.ts} +5 -5
- package/dist/{project-api-keys-OQqmKtMS.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
- package/dist/{projects-C42SVFvm.d.ts → projects-dH9I0bcX.d.ts} +17 -17
- package/dist/{projects-C42SVFvm.d.ts.map → projects-dH9I0bcX.d.ts.map} +1 -1
- package/dist/{schema-Bgy-GC70.d.ts → schema-BSb4tzx3.d.ts} +94 -94
- package/dist/{schema-Bgy-GC70.d.ts.map → schema-BSb4tzx3.d.ts.map} +1 -1
- package/dist/{schema-fields-BljhsWsa.d.ts → schema-fields-DZtDQEEO.d.ts} +14 -14
- package/dist/schema-fields-DZtDQEEO.d.ts.map +1 -0
- package/dist/schema-fields.d.ts +1 -1
- package/dist/schema-fields.js +2 -2
- package/dist/schema-fields.js.map +1 -1
- package/dist/{server-interface-C1W1tZ_y.d.ts → server-interface-CxorzgTW.d.ts} +8 -8
- package/dist/{server-interface-C1W1tZ_y.d.ts.map → server-interface-CxorzgTW.d.ts.map} +1 -1
- package/dist/{sessions-C0nM8bE_.d.ts → sessions-CI-0TBQb.d.ts} +11 -11
- package/dist/{sessions-C0nM8bE_.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-CgYXR-Rx.d.ts → team-member-profiles-uTluO8XI.d.ts} +23 -23
- package/dist/{team-member-profiles-CgYXR-Rx.d.ts.map → team-member-profiles-uTluO8XI.d.ts.map} +1 -1
- package/dist/{transactions-BomBBiph.d.ts → transactions-CHNUJ42J.d.ts} +19 -19
- package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
- package/dist/{users-7MKfEyyq.d.ts → users-CmBBuF00.d.ts} +14 -14
- package/dist/{users-7MKfEyyq.d.ts.map → users-CmBBuF00.d.ts.map} +1 -1
- package/dist/utils/currencies.d.ts +16 -1
- package/dist/utils/currencies.d.ts.map +1 -1
- package/dist/utils/currencies.js +24 -0
- package/dist/utils/currencies.js.map +1 -1
- package/dist/utils/dates.d.ts +2 -2
- package/dist/utils/dates.js +36 -14
- package/dist/utils/dates.js.map +1 -1
- package/dist/{webhooks-C5gG85Ce.d.ts → webhooks-ByXrdSOx.d.ts} +3 -3
- package/dist/{webhooks-C5gG85Ce.d.ts.map → webhooks-ByXrdSOx.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/interface/plan-usage.ts +1 -0
- package/src/schema-fields.ts +13 -2
- package/src/utils/currencies.tsx +69 -0
- package/src/utils/dates.tsx +104 -15
- package/dist/dates-B6ne9iOR.d.ts +0 -23
- package/dist/plan-usage-BigvGIcT.d.ts.map +0 -1
- package/dist/schema-fields-BljhsWsa.d.ts.map +0 -1
- package/dist/transactions-BomBBiph.d.ts.map +0 -1
|
@@ -2,21 +2,22 @@ import { CrudTypeOf } from "../../crud.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/interface/crud/email-outbox.d.ts
|
|
4
4
|
declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
5
|
+
status: "paused";
|
|
5
6
|
id: string;
|
|
6
7
|
created_at_millis: number;
|
|
7
8
|
updated_at_millis: number;
|
|
8
9
|
tsx_source: string;
|
|
9
10
|
theme_id: string | null;
|
|
10
11
|
to: {
|
|
11
|
-
type: "user-primary-email";
|
|
12
12
|
user_id: string;
|
|
13
|
+
type: "user-primary-email";
|
|
13
14
|
} | {
|
|
14
|
-
emails: string[];
|
|
15
|
-
type: "user-custom-emails";
|
|
16
15
|
user_id: string;
|
|
17
|
-
|
|
16
|
+
type: "user-custom-emails";
|
|
18
17
|
emails: string[];
|
|
18
|
+
} | {
|
|
19
19
|
type: "custom-emails";
|
|
20
|
+
emails: string[];
|
|
20
21
|
};
|
|
21
22
|
variables: Record<string, {} | null>;
|
|
22
23
|
skip_deliverability_check: boolean;
|
|
@@ -34,27 +35,27 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
34
35
|
internal_message: string;
|
|
35
36
|
internal_details: Record<string, {} | null>;
|
|
36
37
|
}[] | null;
|
|
37
|
-
status: "paused";
|
|
38
38
|
simple_status: "in-progress";
|
|
39
39
|
is_paused: boolean;
|
|
40
40
|
has_rendered: boolean;
|
|
41
41
|
has_delivered: boolean;
|
|
42
42
|
} | {
|
|
43
|
+
status: "preparing";
|
|
43
44
|
id: string;
|
|
44
45
|
created_at_millis: number;
|
|
45
46
|
updated_at_millis: number;
|
|
46
47
|
tsx_source: string;
|
|
47
48
|
theme_id: string | null;
|
|
48
49
|
to: {
|
|
49
|
-
type: "user-primary-email";
|
|
50
50
|
user_id: string;
|
|
51
|
+
type: "user-primary-email";
|
|
51
52
|
} | {
|
|
52
|
-
emails: string[];
|
|
53
|
-
type: "user-custom-emails";
|
|
54
53
|
user_id: string;
|
|
55
|
-
|
|
54
|
+
type: "user-custom-emails";
|
|
56
55
|
emails: string[];
|
|
56
|
+
} | {
|
|
57
57
|
type: "custom-emails";
|
|
58
|
+
emails: string[];
|
|
58
59
|
};
|
|
59
60
|
variables: Record<string, {} | null>;
|
|
60
61
|
skip_deliverability_check: boolean;
|
|
@@ -72,27 +73,27 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
72
73
|
internal_message: string;
|
|
73
74
|
internal_details: Record<string, {} | null>;
|
|
74
75
|
}[] | null;
|
|
75
|
-
status: "preparing";
|
|
76
76
|
simple_status: "in-progress";
|
|
77
77
|
is_paused: boolean;
|
|
78
78
|
has_rendered: boolean;
|
|
79
79
|
has_delivered: boolean;
|
|
80
80
|
} | {
|
|
81
|
+
status: "rendering";
|
|
81
82
|
id: string;
|
|
82
83
|
created_at_millis: number;
|
|
83
84
|
updated_at_millis: number;
|
|
84
85
|
tsx_source: string;
|
|
85
86
|
theme_id: string | null;
|
|
86
87
|
to: {
|
|
87
|
-
type: "user-primary-email";
|
|
88
88
|
user_id: string;
|
|
89
|
+
type: "user-primary-email";
|
|
89
90
|
} | {
|
|
90
|
-
emails: string[];
|
|
91
|
-
type: "user-custom-emails";
|
|
92
91
|
user_id: string;
|
|
93
|
-
|
|
92
|
+
type: "user-custom-emails";
|
|
94
93
|
emails: string[];
|
|
94
|
+
} | {
|
|
95
95
|
type: "custom-emails";
|
|
96
|
+
emails: string[];
|
|
96
97
|
};
|
|
97
98
|
variables: Record<string, {} | null>;
|
|
98
99
|
skip_deliverability_check: boolean;
|
|
@@ -110,28 +111,28 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
110
111
|
internal_message: string;
|
|
111
112
|
internal_details: Record<string, {} | null>;
|
|
112
113
|
}[] | null;
|
|
113
|
-
status: "rendering";
|
|
114
114
|
simple_status: "in-progress";
|
|
115
115
|
is_paused: boolean;
|
|
116
116
|
has_rendered: boolean;
|
|
117
117
|
has_delivered: boolean;
|
|
118
118
|
started_rendering_at_millis: number;
|
|
119
119
|
} | {
|
|
120
|
+
status: "render-error";
|
|
120
121
|
id: string;
|
|
121
122
|
created_at_millis: number;
|
|
122
123
|
updated_at_millis: number;
|
|
123
124
|
tsx_source: string;
|
|
124
125
|
theme_id: string | null;
|
|
125
126
|
to: {
|
|
126
|
-
type: "user-primary-email";
|
|
127
127
|
user_id: string;
|
|
128
|
+
type: "user-primary-email";
|
|
128
129
|
} | {
|
|
129
|
-
emails: string[];
|
|
130
|
-
type: "user-custom-emails";
|
|
131
130
|
user_id: string;
|
|
132
|
-
|
|
131
|
+
type: "user-custom-emails";
|
|
133
132
|
emails: string[];
|
|
133
|
+
} | {
|
|
134
134
|
type: "custom-emails";
|
|
135
|
+
emails: string[];
|
|
135
136
|
};
|
|
136
137
|
variables: Record<string, {} | null>;
|
|
137
138
|
skip_deliverability_check: boolean;
|
|
@@ -149,7 +150,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
149
150
|
internal_message: string;
|
|
150
151
|
internal_details: Record<string, {} | null>;
|
|
151
152
|
}[] | null;
|
|
152
|
-
status: "render-error";
|
|
153
153
|
simple_status: "error";
|
|
154
154
|
is_paused: boolean;
|
|
155
155
|
has_rendered: boolean;
|
|
@@ -158,23 +158,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
158
158
|
rendered_at_millis: number;
|
|
159
159
|
render_error: string;
|
|
160
160
|
} | {
|
|
161
|
+
status: "scheduled";
|
|
162
|
+
id: string;
|
|
161
163
|
html: string | null;
|
|
162
164
|
text: string | null;
|
|
163
|
-
id: string;
|
|
164
165
|
created_at_millis: number;
|
|
165
166
|
updated_at_millis: number;
|
|
166
167
|
tsx_source: string;
|
|
167
168
|
theme_id: string | null;
|
|
168
169
|
to: {
|
|
169
|
-
type: "user-primary-email";
|
|
170
170
|
user_id: string;
|
|
171
|
+
type: "user-primary-email";
|
|
171
172
|
} | {
|
|
172
|
-
emails: string[];
|
|
173
|
-
type: "user-custom-emails";
|
|
174
173
|
user_id: string;
|
|
175
|
-
|
|
174
|
+
type: "user-custom-emails";
|
|
176
175
|
emails: string[];
|
|
176
|
+
} | {
|
|
177
177
|
type: "custom-emails";
|
|
178
|
+
emails: string[];
|
|
178
179
|
};
|
|
179
180
|
variables: Record<string, {} | null>;
|
|
180
181
|
skip_deliverability_check: boolean;
|
|
@@ -192,7 +193,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
192
193
|
internal_message: string;
|
|
193
194
|
internal_details: Record<string, {} | null>;
|
|
194
195
|
}[] | null;
|
|
195
|
-
status: "scheduled";
|
|
196
196
|
simple_status: "in-progress";
|
|
197
197
|
is_paused: boolean;
|
|
198
198
|
has_rendered: boolean;
|
|
@@ -204,23 +204,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
204
204
|
is_high_priority: boolean;
|
|
205
205
|
notification_category_id: string | null;
|
|
206
206
|
} | {
|
|
207
|
+
status: "queued";
|
|
208
|
+
id: string;
|
|
207
209
|
html: string | null;
|
|
208
210
|
text: string | null;
|
|
209
|
-
id: string;
|
|
210
211
|
created_at_millis: number;
|
|
211
212
|
updated_at_millis: number;
|
|
212
213
|
tsx_source: string;
|
|
213
214
|
theme_id: string | null;
|
|
214
215
|
to: {
|
|
215
|
-
type: "user-primary-email";
|
|
216
216
|
user_id: string;
|
|
217
|
+
type: "user-primary-email";
|
|
217
218
|
} | {
|
|
218
|
-
emails: string[];
|
|
219
|
-
type: "user-custom-emails";
|
|
220
219
|
user_id: string;
|
|
221
|
-
|
|
220
|
+
type: "user-custom-emails";
|
|
222
221
|
emails: string[];
|
|
222
|
+
} | {
|
|
223
223
|
type: "custom-emails";
|
|
224
|
+
emails: string[];
|
|
224
225
|
};
|
|
225
226
|
variables: Record<string, {} | null>;
|
|
226
227
|
skip_deliverability_check: boolean;
|
|
@@ -238,7 +239,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
238
239
|
internal_message: string;
|
|
239
240
|
internal_details: Record<string, {} | null>;
|
|
240
241
|
}[] | null;
|
|
241
|
-
status: "queued";
|
|
242
242
|
simple_status: "in-progress";
|
|
243
243
|
is_paused: boolean;
|
|
244
244
|
has_rendered: boolean;
|
|
@@ -250,23 +250,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
250
250
|
is_high_priority: boolean;
|
|
251
251
|
notification_category_id: string | null;
|
|
252
252
|
} | {
|
|
253
|
+
status: "sending";
|
|
254
|
+
id: string;
|
|
253
255
|
html: string | null;
|
|
254
256
|
text: string | null;
|
|
255
|
-
id: string;
|
|
256
257
|
created_at_millis: number;
|
|
257
258
|
updated_at_millis: number;
|
|
258
259
|
tsx_source: string;
|
|
259
260
|
theme_id: string | null;
|
|
260
261
|
to: {
|
|
261
|
-
type: "user-primary-email";
|
|
262
262
|
user_id: string;
|
|
263
|
+
type: "user-primary-email";
|
|
263
264
|
} | {
|
|
264
|
-
emails: string[];
|
|
265
|
-
type: "user-custom-emails";
|
|
266
265
|
user_id: string;
|
|
267
|
-
|
|
266
|
+
type: "user-custom-emails";
|
|
268
267
|
emails: string[];
|
|
268
|
+
} | {
|
|
269
269
|
type: "custom-emails";
|
|
270
|
+
emails: string[];
|
|
270
271
|
};
|
|
271
272
|
variables: Record<string, {} | null>;
|
|
272
273
|
skip_deliverability_check: boolean;
|
|
@@ -284,7 +285,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
284
285
|
internal_message: string;
|
|
285
286
|
internal_details: Record<string, {} | null>;
|
|
286
287
|
}[] | null;
|
|
287
|
-
status: "sending";
|
|
288
288
|
simple_status: "in-progress";
|
|
289
289
|
is_paused: boolean;
|
|
290
290
|
has_rendered: boolean;
|
|
@@ -297,23 +297,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
297
297
|
notification_category_id: string | null;
|
|
298
298
|
started_sending_at_millis: number;
|
|
299
299
|
} | {
|
|
300
|
+
status: "server-error";
|
|
301
|
+
id: string;
|
|
300
302
|
html: string | null;
|
|
301
303
|
text: string | null;
|
|
302
|
-
id: string;
|
|
303
304
|
created_at_millis: number;
|
|
304
305
|
updated_at_millis: number;
|
|
305
306
|
tsx_source: string;
|
|
306
307
|
theme_id: string | null;
|
|
307
308
|
to: {
|
|
308
|
-
type: "user-primary-email";
|
|
309
309
|
user_id: string;
|
|
310
|
+
type: "user-primary-email";
|
|
310
311
|
} | {
|
|
311
|
-
emails: string[];
|
|
312
|
-
type: "user-custom-emails";
|
|
313
312
|
user_id: string;
|
|
314
|
-
|
|
313
|
+
type: "user-custom-emails";
|
|
315
314
|
emails: string[];
|
|
315
|
+
} | {
|
|
316
316
|
type: "custom-emails";
|
|
317
|
+
emails: string[];
|
|
317
318
|
};
|
|
318
319
|
variables: Record<string, {} | null>;
|
|
319
320
|
skip_deliverability_check: boolean;
|
|
@@ -331,7 +332,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
331
332
|
internal_message: string;
|
|
332
333
|
internal_details: Record<string, {} | null>;
|
|
333
334
|
}[] | null;
|
|
334
|
-
status: "server-error";
|
|
335
335
|
simple_status: "error";
|
|
336
336
|
is_paused: boolean;
|
|
337
337
|
has_rendered: boolean;
|
|
@@ -355,21 +355,22 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
355
355
|
is_high_priority?: boolean | undefined;
|
|
356
356
|
notification_category_id?: string | null | undefined;
|
|
357
357
|
started_sending_at_millis?: number | undefined;
|
|
358
|
+
status: "skipped";
|
|
358
359
|
id: string;
|
|
359
360
|
created_at_millis: number;
|
|
360
361
|
updated_at_millis: number;
|
|
361
362
|
tsx_source: string;
|
|
362
363
|
theme_id: string | null;
|
|
363
364
|
to: {
|
|
364
|
-
type: "user-primary-email";
|
|
365
365
|
user_id: string;
|
|
366
|
+
type: "user-primary-email";
|
|
366
367
|
} | {
|
|
367
|
-
emails: string[];
|
|
368
|
-
type: "user-custom-emails";
|
|
369
368
|
user_id: string;
|
|
370
|
-
|
|
369
|
+
type: "user-custom-emails";
|
|
371
370
|
emails: string[];
|
|
371
|
+
} | {
|
|
372
372
|
type: "custom-emails";
|
|
373
|
+
emails: string[];
|
|
373
374
|
};
|
|
374
375
|
variables: Record<string, {} | null>;
|
|
375
376
|
skip_deliverability_check: boolean;
|
|
@@ -387,7 +388,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
387
388
|
internal_message: string;
|
|
388
389
|
internal_details: Record<string, {} | null>;
|
|
389
390
|
}[] | null;
|
|
390
|
-
status: "skipped";
|
|
391
391
|
simple_status: "ok";
|
|
392
392
|
is_paused: boolean;
|
|
393
393
|
has_rendered: boolean;
|
|
@@ -396,23 +396,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
396
396
|
skipped_reason: string;
|
|
397
397
|
skipped_details: Record<string, {} | null>;
|
|
398
398
|
} | {
|
|
399
|
+
status: "bounced";
|
|
400
|
+
id: string;
|
|
399
401
|
html: string | null;
|
|
400
402
|
text: string | null;
|
|
401
|
-
id: string;
|
|
402
403
|
created_at_millis: number;
|
|
403
404
|
updated_at_millis: number;
|
|
404
405
|
tsx_source: string;
|
|
405
406
|
theme_id: string | null;
|
|
406
407
|
to: {
|
|
407
|
-
type: "user-primary-email";
|
|
408
408
|
user_id: string;
|
|
409
|
+
type: "user-primary-email";
|
|
409
410
|
} | {
|
|
410
|
-
emails: string[];
|
|
411
|
-
type: "user-custom-emails";
|
|
412
411
|
user_id: string;
|
|
413
|
-
|
|
412
|
+
type: "user-custom-emails";
|
|
414
413
|
emails: string[];
|
|
414
|
+
} | {
|
|
415
415
|
type: "custom-emails";
|
|
416
|
+
emails: string[];
|
|
416
417
|
};
|
|
417
418
|
variables: Record<string, {} | null>;
|
|
418
419
|
skip_deliverability_check: boolean;
|
|
@@ -430,7 +431,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
430
431
|
internal_message: string;
|
|
431
432
|
internal_details: Record<string, {} | null>;
|
|
432
433
|
}[] | null;
|
|
433
|
-
status: "bounced";
|
|
434
434
|
simple_status: "error";
|
|
435
435
|
is_paused: boolean;
|
|
436
436
|
has_rendered: boolean;
|
|
@@ -444,23 +444,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
444
444
|
started_sending_at_millis: number;
|
|
445
445
|
bounced_at_millis: number;
|
|
446
446
|
} | {
|
|
447
|
+
status: "delivery-delayed";
|
|
448
|
+
id: string;
|
|
447
449
|
html: string | null;
|
|
448
450
|
text: string | null;
|
|
449
|
-
id: string;
|
|
450
451
|
created_at_millis: number;
|
|
451
452
|
updated_at_millis: number;
|
|
452
453
|
tsx_source: string;
|
|
453
454
|
theme_id: string | null;
|
|
454
455
|
to: {
|
|
455
|
-
type: "user-primary-email";
|
|
456
456
|
user_id: string;
|
|
457
|
+
type: "user-primary-email";
|
|
457
458
|
} | {
|
|
458
|
-
emails: string[];
|
|
459
|
-
type: "user-custom-emails";
|
|
460
459
|
user_id: string;
|
|
461
|
-
|
|
460
|
+
type: "user-custom-emails";
|
|
462
461
|
emails: string[];
|
|
462
|
+
} | {
|
|
463
463
|
type: "custom-emails";
|
|
464
|
+
emails: string[];
|
|
464
465
|
};
|
|
465
466
|
variables: Record<string, {} | null>;
|
|
466
467
|
skip_deliverability_check: boolean;
|
|
@@ -478,7 +479,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
478
479
|
internal_message: string;
|
|
479
480
|
internal_details: Record<string, {} | null>;
|
|
480
481
|
}[] | null;
|
|
481
|
-
status: "delivery-delayed";
|
|
482
482
|
simple_status: "ok";
|
|
483
483
|
is_paused: boolean;
|
|
484
484
|
has_rendered: boolean;
|
|
@@ -492,23 +492,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
492
492
|
started_sending_at_millis: number;
|
|
493
493
|
delivery_delayed_at_millis: number;
|
|
494
494
|
} | {
|
|
495
|
+
status: "sent";
|
|
496
|
+
id: string;
|
|
495
497
|
html: string | null;
|
|
496
498
|
text: string | null;
|
|
497
|
-
id: string;
|
|
498
499
|
created_at_millis: number;
|
|
499
500
|
updated_at_millis: number;
|
|
500
501
|
tsx_source: string;
|
|
501
502
|
theme_id: string | null;
|
|
502
503
|
to: {
|
|
503
|
-
type: "user-primary-email";
|
|
504
504
|
user_id: string;
|
|
505
|
+
type: "user-primary-email";
|
|
505
506
|
} | {
|
|
506
|
-
emails: string[];
|
|
507
|
-
type: "user-custom-emails";
|
|
508
507
|
user_id: string;
|
|
509
|
-
|
|
508
|
+
type: "user-custom-emails";
|
|
510
509
|
emails: string[];
|
|
510
|
+
} | {
|
|
511
511
|
type: "custom-emails";
|
|
512
|
+
emails: string[];
|
|
512
513
|
};
|
|
513
514
|
variables: Record<string, {} | null>;
|
|
514
515
|
skip_deliverability_check: boolean;
|
|
@@ -526,7 +527,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
526
527
|
internal_message: string;
|
|
527
528
|
internal_details: Record<string, {} | null>;
|
|
528
529
|
}[] | null;
|
|
529
|
-
status: "sent";
|
|
530
530
|
simple_status: "ok";
|
|
531
531
|
is_paused: boolean;
|
|
532
532
|
has_rendered: boolean;
|
|
@@ -541,23 +541,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
541
541
|
delivered_at_millis: number;
|
|
542
542
|
can_have_delivery_info: boolean;
|
|
543
543
|
} | {
|
|
544
|
+
status: "opened";
|
|
545
|
+
id: string;
|
|
544
546
|
html: string | null;
|
|
545
547
|
text: string | null;
|
|
546
|
-
id: string;
|
|
547
548
|
created_at_millis: number;
|
|
548
549
|
updated_at_millis: number;
|
|
549
550
|
tsx_source: string;
|
|
550
551
|
theme_id: string | null;
|
|
551
552
|
to: {
|
|
552
|
-
type: "user-primary-email";
|
|
553
553
|
user_id: string;
|
|
554
|
+
type: "user-primary-email";
|
|
554
555
|
} | {
|
|
555
|
-
emails: string[];
|
|
556
|
-
type: "user-custom-emails";
|
|
557
556
|
user_id: string;
|
|
558
|
-
|
|
557
|
+
type: "user-custom-emails";
|
|
559
558
|
emails: string[];
|
|
559
|
+
} | {
|
|
560
560
|
type: "custom-emails";
|
|
561
|
+
emails: string[];
|
|
561
562
|
};
|
|
562
563
|
variables: Record<string, {} | null>;
|
|
563
564
|
skip_deliverability_check: boolean;
|
|
@@ -575,7 +576,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
575
576
|
internal_message: string;
|
|
576
577
|
internal_details: Record<string, {} | null>;
|
|
577
578
|
}[] | null;
|
|
578
|
-
status: "opened";
|
|
579
579
|
simple_status: "ok";
|
|
580
580
|
is_paused: boolean;
|
|
581
581
|
has_rendered: boolean;
|
|
@@ -591,23 +591,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
591
591
|
can_have_delivery_info: boolean;
|
|
592
592
|
opened_at_millis: number;
|
|
593
593
|
} | {
|
|
594
|
+
status: "clicked";
|
|
595
|
+
id: string;
|
|
594
596
|
html: string | null;
|
|
595
597
|
text: string | null;
|
|
596
|
-
id: string;
|
|
597
598
|
created_at_millis: number;
|
|
598
599
|
updated_at_millis: number;
|
|
599
600
|
tsx_source: string;
|
|
600
601
|
theme_id: string | null;
|
|
601
602
|
to: {
|
|
602
|
-
type: "user-primary-email";
|
|
603
603
|
user_id: string;
|
|
604
|
+
type: "user-primary-email";
|
|
604
605
|
} | {
|
|
605
|
-
emails: string[];
|
|
606
|
-
type: "user-custom-emails";
|
|
607
606
|
user_id: string;
|
|
608
|
-
|
|
607
|
+
type: "user-custom-emails";
|
|
609
608
|
emails: string[];
|
|
609
|
+
} | {
|
|
610
610
|
type: "custom-emails";
|
|
611
|
+
emails: string[];
|
|
611
612
|
};
|
|
612
613
|
variables: Record<string, {} | null>;
|
|
613
614
|
skip_deliverability_check: boolean;
|
|
@@ -625,7 +626,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
625
626
|
internal_message: string;
|
|
626
627
|
internal_details: Record<string, {} | null>;
|
|
627
628
|
}[] | null;
|
|
628
|
-
status: "clicked";
|
|
629
629
|
simple_status: "ok";
|
|
630
630
|
is_paused: boolean;
|
|
631
631
|
has_rendered: boolean;
|
|
@@ -641,23 +641,24 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
641
641
|
can_have_delivery_info: boolean;
|
|
642
642
|
clicked_at_millis: number;
|
|
643
643
|
} | {
|
|
644
|
+
status: "marked-as-spam";
|
|
645
|
+
id: string;
|
|
644
646
|
html: string | null;
|
|
645
647
|
text: string | null;
|
|
646
|
-
id: string;
|
|
647
648
|
created_at_millis: number;
|
|
648
649
|
updated_at_millis: number;
|
|
649
650
|
tsx_source: string;
|
|
650
651
|
theme_id: string | null;
|
|
651
652
|
to: {
|
|
652
|
-
type: "user-primary-email";
|
|
653
653
|
user_id: string;
|
|
654
|
+
type: "user-primary-email";
|
|
654
655
|
} | {
|
|
655
|
-
emails: string[];
|
|
656
|
-
type: "user-custom-emails";
|
|
657
656
|
user_id: string;
|
|
658
|
-
|
|
657
|
+
type: "user-custom-emails";
|
|
659
658
|
emails: string[];
|
|
659
|
+
} | {
|
|
660
660
|
type: "custom-emails";
|
|
661
|
+
emails: string[];
|
|
661
662
|
};
|
|
662
663
|
variables: Record<string, {} | null>;
|
|
663
664
|
skip_deliverability_check: boolean;
|
|
@@ -675,7 +676,6 @@ declare const emailOutboxReadSchema: import("yup").MixedSchema<{
|
|
|
675
676
|
internal_message: string;
|
|
676
677
|
internal_details: Record<string, {} | null>;
|
|
677
678
|
}[] | null;
|
|
678
|
-
status: "marked-as-spam";
|
|
679
679
|
simple_status: "ok";
|
|
680
680
|
is_paused: boolean;
|
|
681
681
|
has_rendered: boolean;
|
|
@@ -695,15 +695,15 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
|
|
|
695
695
|
tsx_source: string | undefined;
|
|
696
696
|
theme_id: string | null | undefined;
|
|
697
697
|
to: {
|
|
698
|
-
type: "user-primary-email";
|
|
699
698
|
user_id: string;
|
|
699
|
+
type: "user-primary-email";
|
|
700
700
|
} | {
|
|
701
|
-
emails: string[];
|
|
702
|
-
type: "user-custom-emails";
|
|
703
701
|
user_id: string;
|
|
704
|
-
|
|
702
|
+
type: "user-custom-emails";
|
|
705
703
|
emails: string[];
|
|
704
|
+
} | {
|
|
706
705
|
type: "custom-emails";
|
|
706
|
+
emails: string[];
|
|
707
707
|
} | undefined;
|
|
708
708
|
variables: Record<string, {} | null> | undefined;
|
|
709
709
|
skip_deliverability_check: boolean | undefined;
|
|
@@ -722,21 +722,22 @@ declare const emailOutboxUpdateSchema: import("yup").ObjectSchema<{
|
|
|
722
722
|
}, "">;
|
|
723
723
|
declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
724
724
|
serverReadSchema: import("yup").MixedSchema<{
|
|
725
|
+
status: "paused";
|
|
725
726
|
id: string;
|
|
726
727
|
created_at_millis: number;
|
|
727
728
|
updated_at_millis: number;
|
|
728
729
|
tsx_source: string;
|
|
729
730
|
theme_id: string | null;
|
|
730
731
|
to: {
|
|
731
|
-
type: "user-primary-email";
|
|
732
732
|
user_id: string;
|
|
733
|
+
type: "user-primary-email";
|
|
733
734
|
} | {
|
|
734
|
-
emails: string[];
|
|
735
|
-
type: "user-custom-emails";
|
|
736
735
|
user_id: string;
|
|
737
|
-
|
|
736
|
+
type: "user-custom-emails";
|
|
738
737
|
emails: string[];
|
|
738
|
+
} | {
|
|
739
739
|
type: "custom-emails";
|
|
740
|
+
emails: string[];
|
|
740
741
|
};
|
|
741
742
|
variables: Record<string, {} | null>;
|
|
742
743
|
skip_deliverability_check: boolean;
|
|
@@ -754,27 +755,27 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
754
755
|
internal_message: string;
|
|
755
756
|
internal_details: Record<string, {} | null>;
|
|
756
757
|
}[] | null;
|
|
757
|
-
status: "paused";
|
|
758
758
|
simple_status: "in-progress";
|
|
759
759
|
is_paused: boolean;
|
|
760
760
|
has_rendered: boolean;
|
|
761
761
|
has_delivered: boolean;
|
|
762
762
|
} | {
|
|
763
|
+
status: "preparing";
|
|
763
764
|
id: string;
|
|
764
765
|
created_at_millis: number;
|
|
765
766
|
updated_at_millis: number;
|
|
766
767
|
tsx_source: string;
|
|
767
768
|
theme_id: string | null;
|
|
768
769
|
to: {
|
|
769
|
-
type: "user-primary-email";
|
|
770
770
|
user_id: string;
|
|
771
|
+
type: "user-primary-email";
|
|
771
772
|
} | {
|
|
772
|
-
emails: string[];
|
|
773
|
-
type: "user-custom-emails";
|
|
774
773
|
user_id: string;
|
|
775
|
-
|
|
774
|
+
type: "user-custom-emails";
|
|
776
775
|
emails: string[];
|
|
776
|
+
} | {
|
|
777
777
|
type: "custom-emails";
|
|
778
|
+
emails: string[];
|
|
778
779
|
};
|
|
779
780
|
variables: Record<string, {} | null>;
|
|
780
781
|
skip_deliverability_check: boolean;
|
|
@@ -792,27 +793,27 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
792
793
|
internal_message: string;
|
|
793
794
|
internal_details: Record<string, {} | null>;
|
|
794
795
|
}[] | null;
|
|
795
|
-
status: "preparing";
|
|
796
796
|
simple_status: "in-progress";
|
|
797
797
|
is_paused: boolean;
|
|
798
798
|
has_rendered: boolean;
|
|
799
799
|
has_delivered: boolean;
|
|
800
800
|
} | {
|
|
801
|
+
status: "rendering";
|
|
801
802
|
id: string;
|
|
802
803
|
created_at_millis: number;
|
|
803
804
|
updated_at_millis: number;
|
|
804
805
|
tsx_source: string;
|
|
805
806
|
theme_id: string | null;
|
|
806
807
|
to: {
|
|
807
|
-
type: "user-primary-email";
|
|
808
808
|
user_id: string;
|
|
809
|
+
type: "user-primary-email";
|
|
809
810
|
} | {
|
|
810
|
-
emails: string[];
|
|
811
|
-
type: "user-custom-emails";
|
|
812
811
|
user_id: string;
|
|
813
|
-
|
|
812
|
+
type: "user-custom-emails";
|
|
814
813
|
emails: string[];
|
|
814
|
+
} | {
|
|
815
815
|
type: "custom-emails";
|
|
816
|
+
emails: string[];
|
|
816
817
|
};
|
|
817
818
|
variables: Record<string, {} | null>;
|
|
818
819
|
skip_deliverability_check: boolean;
|
|
@@ -830,28 +831,28 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
830
831
|
internal_message: string;
|
|
831
832
|
internal_details: Record<string, {} | null>;
|
|
832
833
|
}[] | null;
|
|
833
|
-
status: "rendering";
|
|
834
834
|
simple_status: "in-progress";
|
|
835
835
|
is_paused: boolean;
|
|
836
836
|
has_rendered: boolean;
|
|
837
837
|
has_delivered: boolean;
|
|
838
838
|
started_rendering_at_millis: number;
|
|
839
839
|
} | {
|
|
840
|
+
status: "render-error";
|
|
840
841
|
id: string;
|
|
841
842
|
created_at_millis: number;
|
|
842
843
|
updated_at_millis: number;
|
|
843
844
|
tsx_source: string;
|
|
844
845
|
theme_id: string | null;
|
|
845
846
|
to: {
|
|
846
|
-
type: "user-primary-email";
|
|
847
847
|
user_id: string;
|
|
848
|
+
type: "user-primary-email";
|
|
848
849
|
} | {
|
|
849
|
-
emails: string[];
|
|
850
|
-
type: "user-custom-emails";
|
|
851
850
|
user_id: string;
|
|
852
|
-
|
|
851
|
+
type: "user-custom-emails";
|
|
853
852
|
emails: string[];
|
|
853
|
+
} | {
|
|
854
854
|
type: "custom-emails";
|
|
855
|
+
emails: string[];
|
|
855
856
|
};
|
|
856
857
|
variables: Record<string, {} | null>;
|
|
857
858
|
skip_deliverability_check: boolean;
|
|
@@ -869,7 +870,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
869
870
|
internal_message: string;
|
|
870
871
|
internal_details: Record<string, {} | null>;
|
|
871
872
|
}[] | null;
|
|
872
|
-
status: "render-error";
|
|
873
873
|
simple_status: "error";
|
|
874
874
|
is_paused: boolean;
|
|
875
875
|
has_rendered: boolean;
|
|
@@ -878,23 +878,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
878
878
|
rendered_at_millis: number;
|
|
879
879
|
render_error: string;
|
|
880
880
|
} | {
|
|
881
|
+
status: "scheduled";
|
|
882
|
+
id: string;
|
|
881
883
|
html: string | null;
|
|
882
884
|
text: string | null;
|
|
883
|
-
id: string;
|
|
884
885
|
created_at_millis: number;
|
|
885
886
|
updated_at_millis: number;
|
|
886
887
|
tsx_source: string;
|
|
887
888
|
theme_id: string | null;
|
|
888
889
|
to: {
|
|
889
|
-
type: "user-primary-email";
|
|
890
890
|
user_id: string;
|
|
891
|
+
type: "user-primary-email";
|
|
891
892
|
} | {
|
|
892
|
-
emails: string[];
|
|
893
|
-
type: "user-custom-emails";
|
|
894
893
|
user_id: string;
|
|
895
|
-
|
|
894
|
+
type: "user-custom-emails";
|
|
896
895
|
emails: string[];
|
|
896
|
+
} | {
|
|
897
897
|
type: "custom-emails";
|
|
898
|
+
emails: string[];
|
|
898
899
|
};
|
|
899
900
|
variables: Record<string, {} | null>;
|
|
900
901
|
skip_deliverability_check: boolean;
|
|
@@ -912,7 +913,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
912
913
|
internal_message: string;
|
|
913
914
|
internal_details: Record<string, {} | null>;
|
|
914
915
|
}[] | null;
|
|
915
|
-
status: "scheduled";
|
|
916
916
|
simple_status: "in-progress";
|
|
917
917
|
is_paused: boolean;
|
|
918
918
|
has_rendered: boolean;
|
|
@@ -924,23 +924,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
924
924
|
is_high_priority: boolean;
|
|
925
925
|
notification_category_id: string | null;
|
|
926
926
|
} | {
|
|
927
|
+
status: "queued";
|
|
928
|
+
id: string;
|
|
927
929
|
html: string | null;
|
|
928
930
|
text: string | null;
|
|
929
|
-
id: string;
|
|
930
931
|
created_at_millis: number;
|
|
931
932
|
updated_at_millis: number;
|
|
932
933
|
tsx_source: string;
|
|
933
934
|
theme_id: string | null;
|
|
934
935
|
to: {
|
|
935
|
-
type: "user-primary-email";
|
|
936
936
|
user_id: string;
|
|
937
|
+
type: "user-primary-email";
|
|
937
938
|
} | {
|
|
938
|
-
emails: string[];
|
|
939
|
-
type: "user-custom-emails";
|
|
940
939
|
user_id: string;
|
|
941
|
-
|
|
940
|
+
type: "user-custom-emails";
|
|
942
941
|
emails: string[];
|
|
942
|
+
} | {
|
|
943
943
|
type: "custom-emails";
|
|
944
|
+
emails: string[];
|
|
944
945
|
};
|
|
945
946
|
variables: Record<string, {} | null>;
|
|
946
947
|
skip_deliverability_check: boolean;
|
|
@@ -958,7 +959,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
958
959
|
internal_message: string;
|
|
959
960
|
internal_details: Record<string, {} | null>;
|
|
960
961
|
}[] | null;
|
|
961
|
-
status: "queued";
|
|
962
962
|
simple_status: "in-progress";
|
|
963
963
|
is_paused: boolean;
|
|
964
964
|
has_rendered: boolean;
|
|
@@ -970,23 +970,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
970
970
|
is_high_priority: boolean;
|
|
971
971
|
notification_category_id: string | null;
|
|
972
972
|
} | {
|
|
973
|
+
status: "sending";
|
|
974
|
+
id: string;
|
|
973
975
|
html: string | null;
|
|
974
976
|
text: string | null;
|
|
975
|
-
id: string;
|
|
976
977
|
created_at_millis: number;
|
|
977
978
|
updated_at_millis: number;
|
|
978
979
|
tsx_source: string;
|
|
979
980
|
theme_id: string | null;
|
|
980
981
|
to: {
|
|
981
|
-
type: "user-primary-email";
|
|
982
982
|
user_id: string;
|
|
983
|
+
type: "user-primary-email";
|
|
983
984
|
} | {
|
|
984
|
-
emails: string[];
|
|
985
|
-
type: "user-custom-emails";
|
|
986
985
|
user_id: string;
|
|
987
|
-
|
|
986
|
+
type: "user-custom-emails";
|
|
988
987
|
emails: string[];
|
|
988
|
+
} | {
|
|
989
989
|
type: "custom-emails";
|
|
990
|
+
emails: string[];
|
|
990
991
|
};
|
|
991
992
|
variables: Record<string, {} | null>;
|
|
992
993
|
skip_deliverability_check: boolean;
|
|
@@ -1004,7 +1005,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1004
1005
|
internal_message: string;
|
|
1005
1006
|
internal_details: Record<string, {} | null>;
|
|
1006
1007
|
}[] | null;
|
|
1007
|
-
status: "sending";
|
|
1008
1008
|
simple_status: "in-progress";
|
|
1009
1009
|
is_paused: boolean;
|
|
1010
1010
|
has_rendered: boolean;
|
|
@@ -1017,23 +1017,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1017
1017
|
notification_category_id: string | null;
|
|
1018
1018
|
started_sending_at_millis: number;
|
|
1019
1019
|
} | {
|
|
1020
|
+
status: "server-error";
|
|
1021
|
+
id: string;
|
|
1020
1022
|
html: string | null;
|
|
1021
1023
|
text: string | null;
|
|
1022
|
-
id: string;
|
|
1023
1024
|
created_at_millis: number;
|
|
1024
1025
|
updated_at_millis: number;
|
|
1025
1026
|
tsx_source: string;
|
|
1026
1027
|
theme_id: string | null;
|
|
1027
1028
|
to: {
|
|
1028
|
-
type: "user-primary-email";
|
|
1029
1029
|
user_id: string;
|
|
1030
|
+
type: "user-primary-email";
|
|
1030
1031
|
} | {
|
|
1031
|
-
emails: string[];
|
|
1032
|
-
type: "user-custom-emails";
|
|
1033
1032
|
user_id: string;
|
|
1034
|
-
|
|
1033
|
+
type: "user-custom-emails";
|
|
1035
1034
|
emails: string[];
|
|
1035
|
+
} | {
|
|
1036
1036
|
type: "custom-emails";
|
|
1037
|
+
emails: string[];
|
|
1037
1038
|
};
|
|
1038
1039
|
variables: Record<string, {} | null>;
|
|
1039
1040
|
skip_deliverability_check: boolean;
|
|
@@ -1051,7 +1052,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1051
1052
|
internal_message: string;
|
|
1052
1053
|
internal_details: Record<string, {} | null>;
|
|
1053
1054
|
}[] | null;
|
|
1054
|
-
status: "server-error";
|
|
1055
1055
|
simple_status: "error";
|
|
1056
1056
|
is_paused: boolean;
|
|
1057
1057
|
has_rendered: boolean;
|
|
@@ -1075,21 +1075,22 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1075
1075
|
is_high_priority?: boolean | undefined;
|
|
1076
1076
|
notification_category_id?: string | null | undefined;
|
|
1077
1077
|
started_sending_at_millis?: number | undefined;
|
|
1078
|
+
status: "skipped";
|
|
1078
1079
|
id: string;
|
|
1079
1080
|
created_at_millis: number;
|
|
1080
1081
|
updated_at_millis: number;
|
|
1081
1082
|
tsx_source: string;
|
|
1082
1083
|
theme_id: string | null;
|
|
1083
1084
|
to: {
|
|
1084
|
-
type: "user-primary-email";
|
|
1085
1085
|
user_id: string;
|
|
1086
|
+
type: "user-primary-email";
|
|
1086
1087
|
} | {
|
|
1087
|
-
emails: string[];
|
|
1088
|
-
type: "user-custom-emails";
|
|
1089
1088
|
user_id: string;
|
|
1090
|
-
|
|
1089
|
+
type: "user-custom-emails";
|
|
1091
1090
|
emails: string[];
|
|
1091
|
+
} | {
|
|
1092
1092
|
type: "custom-emails";
|
|
1093
|
+
emails: string[];
|
|
1093
1094
|
};
|
|
1094
1095
|
variables: Record<string, {} | null>;
|
|
1095
1096
|
skip_deliverability_check: boolean;
|
|
@@ -1107,7 +1108,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1107
1108
|
internal_message: string;
|
|
1108
1109
|
internal_details: Record<string, {} | null>;
|
|
1109
1110
|
}[] | null;
|
|
1110
|
-
status: "skipped";
|
|
1111
1111
|
simple_status: "ok";
|
|
1112
1112
|
is_paused: boolean;
|
|
1113
1113
|
has_rendered: boolean;
|
|
@@ -1116,23 +1116,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1116
1116
|
skipped_reason: string;
|
|
1117
1117
|
skipped_details: Record<string, {} | null>;
|
|
1118
1118
|
} | {
|
|
1119
|
+
status: "bounced";
|
|
1120
|
+
id: string;
|
|
1119
1121
|
html: string | null;
|
|
1120
1122
|
text: string | null;
|
|
1121
|
-
id: string;
|
|
1122
1123
|
created_at_millis: number;
|
|
1123
1124
|
updated_at_millis: number;
|
|
1124
1125
|
tsx_source: string;
|
|
1125
1126
|
theme_id: string | null;
|
|
1126
1127
|
to: {
|
|
1127
|
-
type: "user-primary-email";
|
|
1128
1128
|
user_id: string;
|
|
1129
|
+
type: "user-primary-email";
|
|
1129
1130
|
} | {
|
|
1130
|
-
emails: string[];
|
|
1131
|
-
type: "user-custom-emails";
|
|
1132
1131
|
user_id: string;
|
|
1133
|
-
|
|
1132
|
+
type: "user-custom-emails";
|
|
1134
1133
|
emails: string[];
|
|
1134
|
+
} | {
|
|
1135
1135
|
type: "custom-emails";
|
|
1136
|
+
emails: string[];
|
|
1136
1137
|
};
|
|
1137
1138
|
variables: Record<string, {} | null>;
|
|
1138
1139
|
skip_deliverability_check: boolean;
|
|
@@ -1150,7 +1151,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1150
1151
|
internal_message: string;
|
|
1151
1152
|
internal_details: Record<string, {} | null>;
|
|
1152
1153
|
}[] | null;
|
|
1153
|
-
status: "bounced";
|
|
1154
1154
|
simple_status: "error";
|
|
1155
1155
|
is_paused: boolean;
|
|
1156
1156
|
has_rendered: boolean;
|
|
@@ -1164,23 +1164,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1164
1164
|
started_sending_at_millis: number;
|
|
1165
1165
|
bounced_at_millis: number;
|
|
1166
1166
|
} | {
|
|
1167
|
+
status: "delivery-delayed";
|
|
1168
|
+
id: string;
|
|
1167
1169
|
html: string | null;
|
|
1168
1170
|
text: string | null;
|
|
1169
|
-
id: string;
|
|
1170
1171
|
created_at_millis: number;
|
|
1171
1172
|
updated_at_millis: number;
|
|
1172
1173
|
tsx_source: string;
|
|
1173
1174
|
theme_id: string | null;
|
|
1174
1175
|
to: {
|
|
1175
|
-
type: "user-primary-email";
|
|
1176
1176
|
user_id: string;
|
|
1177
|
+
type: "user-primary-email";
|
|
1177
1178
|
} | {
|
|
1178
|
-
emails: string[];
|
|
1179
|
-
type: "user-custom-emails";
|
|
1180
1179
|
user_id: string;
|
|
1181
|
-
|
|
1180
|
+
type: "user-custom-emails";
|
|
1182
1181
|
emails: string[];
|
|
1182
|
+
} | {
|
|
1183
1183
|
type: "custom-emails";
|
|
1184
|
+
emails: string[];
|
|
1184
1185
|
};
|
|
1185
1186
|
variables: Record<string, {} | null>;
|
|
1186
1187
|
skip_deliverability_check: boolean;
|
|
@@ -1198,7 +1199,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1198
1199
|
internal_message: string;
|
|
1199
1200
|
internal_details: Record<string, {} | null>;
|
|
1200
1201
|
}[] | null;
|
|
1201
|
-
status: "delivery-delayed";
|
|
1202
1202
|
simple_status: "ok";
|
|
1203
1203
|
is_paused: boolean;
|
|
1204
1204
|
has_rendered: boolean;
|
|
@@ -1212,23 +1212,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1212
1212
|
started_sending_at_millis: number;
|
|
1213
1213
|
delivery_delayed_at_millis: number;
|
|
1214
1214
|
} | {
|
|
1215
|
+
status: "sent";
|
|
1216
|
+
id: string;
|
|
1215
1217
|
html: string | null;
|
|
1216
1218
|
text: string | null;
|
|
1217
|
-
id: string;
|
|
1218
1219
|
created_at_millis: number;
|
|
1219
1220
|
updated_at_millis: number;
|
|
1220
1221
|
tsx_source: string;
|
|
1221
1222
|
theme_id: string | null;
|
|
1222
1223
|
to: {
|
|
1223
|
-
type: "user-primary-email";
|
|
1224
1224
|
user_id: string;
|
|
1225
|
+
type: "user-primary-email";
|
|
1225
1226
|
} | {
|
|
1226
|
-
emails: string[];
|
|
1227
|
-
type: "user-custom-emails";
|
|
1228
1227
|
user_id: string;
|
|
1229
|
-
|
|
1228
|
+
type: "user-custom-emails";
|
|
1230
1229
|
emails: string[];
|
|
1230
|
+
} | {
|
|
1231
1231
|
type: "custom-emails";
|
|
1232
|
+
emails: string[];
|
|
1232
1233
|
};
|
|
1233
1234
|
variables: Record<string, {} | null>;
|
|
1234
1235
|
skip_deliverability_check: boolean;
|
|
@@ -1246,7 +1247,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1246
1247
|
internal_message: string;
|
|
1247
1248
|
internal_details: Record<string, {} | null>;
|
|
1248
1249
|
}[] | null;
|
|
1249
|
-
status: "sent";
|
|
1250
1250
|
simple_status: "ok";
|
|
1251
1251
|
is_paused: boolean;
|
|
1252
1252
|
has_rendered: boolean;
|
|
@@ -1261,23 +1261,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1261
1261
|
delivered_at_millis: number;
|
|
1262
1262
|
can_have_delivery_info: boolean;
|
|
1263
1263
|
} | {
|
|
1264
|
+
status: "opened";
|
|
1265
|
+
id: string;
|
|
1264
1266
|
html: string | null;
|
|
1265
1267
|
text: string | null;
|
|
1266
|
-
id: string;
|
|
1267
1268
|
created_at_millis: number;
|
|
1268
1269
|
updated_at_millis: number;
|
|
1269
1270
|
tsx_source: string;
|
|
1270
1271
|
theme_id: string | null;
|
|
1271
1272
|
to: {
|
|
1272
|
-
type: "user-primary-email";
|
|
1273
1273
|
user_id: string;
|
|
1274
|
+
type: "user-primary-email";
|
|
1274
1275
|
} | {
|
|
1275
|
-
emails: string[];
|
|
1276
|
-
type: "user-custom-emails";
|
|
1277
1276
|
user_id: string;
|
|
1278
|
-
|
|
1277
|
+
type: "user-custom-emails";
|
|
1279
1278
|
emails: string[];
|
|
1279
|
+
} | {
|
|
1280
1280
|
type: "custom-emails";
|
|
1281
|
+
emails: string[];
|
|
1281
1282
|
};
|
|
1282
1283
|
variables: Record<string, {} | null>;
|
|
1283
1284
|
skip_deliverability_check: boolean;
|
|
@@ -1295,7 +1296,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1295
1296
|
internal_message: string;
|
|
1296
1297
|
internal_details: Record<string, {} | null>;
|
|
1297
1298
|
}[] | null;
|
|
1298
|
-
status: "opened";
|
|
1299
1299
|
simple_status: "ok";
|
|
1300
1300
|
is_paused: boolean;
|
|
1301
1301
|
has_rendered: boolean;
|
|
@@ -1311,23 +1311,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1311
1311
|
can_have_delivery_info: boolean;
|
|
1312
1312
|
opened_at_millis: number;
|
|
1313
1313
|
} | {
|
|
1314
|
+
status: "clicked";
|
|
1315
|
+
id: string;
|
|
1314
1316
|
html: string | null;
|
|
1315
1317
|
text: string | null;
|
|
1316
|
-
id: string;
|
|
1317
1318
|
created_at_millis: number;
|
|
1318
1319
|
updated_at_millis: number;
|
|
1319
1320
|
tsx_source: string;
|
|
1320
1321
|
theme_id: string | null;
|
|
1321
1322
|
to: {
|
|
1322
|
-
type: "user-primary-email";
|
|
1323
1323
|
user_id: string;
|
|
1324
|
+
type: "user-primary-email";
|
|
1324
1325
|
} | {
|
|
1325
|
-
emails: string[];
|
|
1326
|
-
type: "user-custom-emails";
|
|
1327
1326
|
user_id: string;
|
|
1328
|
-
|
|
1327
|
+
type: "user-custom-emails";
|
|
1329
1328
|
emails: string[];
|
|
1329
|
+
} | {
|
|
1330
1330
|
type: "custom-emails";
|
|
1331
|
+
emails: string[];
|
|
1331
1332
|
};
|
|
1332
1333
|
variables: Record<string, {} | null>;
|
|
1333
1334
|
skip_deliverability_check: boolean;
|
|
@@ -1345,7 +1346,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1345
1346
|
internal_message: string;
|
|
1346
1347
|
internal_details: Record<string, {} | null>;
|
|
1347
1348
|
}[] | null;
|
|
1348
|
-
status: "clicked";
|
|
1349
1349
|
simple_status: "ok";
|
|
1350
1350
|
is_paused: boolean;
|
|
1351
1351
|
has_rendered: boolean;
|
|
@@ -1361,23 +1361,24 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1361
1361
|
can_have_delivery_info: boolean;
|
|
1362
1362
|
clicked_at_millis: number;
|
|
1363
1363
|
} | {
|
|
1364
|
+
status: "marked-as-spam";
|
|
1365
|
+
id: string;
|
|
1364
1366
|
html: string | null;
|
|
1365
1367
|
text: string | null;
|
|
1366
|
-
id: string;
|
|
1367
1368
|
created_at_millis: number;
|
|
1368
1369
|
updated_at_millis: number;
|
|
1369
1370
|
tsx_source: string;
|
|
1370
1371
|
theme_id: string | null;
|
|
1371
1372
|
to: {
|
|
1372
|
-
type: "user-primary-email";
|
|
1373
1373
|
user_id: string;
|
|
1374
|
+
type: "user-primary-email";
|
|
1374
1375
|
} | {
|
|
1375
|
-
emails: string[];
|
|
1376
|
-
type: "user-custom-emails";
|
|
1377
1376
|
user_id: string;
|
|
1378
|
-
|
|
1377
|
+
type: "user-custom-emails";
|
|
1379
1378
|
emails: string[];
|
|
1379
|
+
} | {
|
|
1380
1380
|
type: "custom-emails";
|
|
1381
|
+
emails: string[];
|
|
1381
1382
|
};
|
|
1382
1383
|
variables: Record<string, {} | null>;
|
|
1383
1384
|
skip_deliverability_check: boolean;
|
|
@@ -1395,7 +1396,6 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1395
1396
|
internal_message: string;
|
|
1396
1397
|
internal_details: Record<string, {} | null>;
|
|
1397
1398
|
}[] | null;
|
|
1398
|
-
status: "marked-as-spam";
|
|
1399
1399
|
simple_status: "ok";
|
|
1400
1400
|
is_paused: boolean;
|
|
1401
1401
|
has_rendered: boolean;
|
|
@@ -1415,15 +1415,15 @@ declare const emailOutboxCrud: import("../../crud").CrudSchemaFromOptions<{
|
|
|
1415
1415
|
tsx_source: string | undefined;
|
|
1416
1416
|
theme_id: string | null | undefined;
|
|
1417
1417
|
to: {
|
|
1418
|
-
type: "user-primary-email";
|
|
1419
1418
|
user_id: string;
|
|
1419
|
+
type: "user-primary-email";
|
|
1420
1420
|
} | {
|
|
1421
|
-
emails: string[];
|
|
1422
|
-
type: "user-custom-emails";
|
|
1423
1421
|
user_id: string;
|
|
1424
|
-
|
|
1422
|
+
type: "user-custom-emails";
|
|
1425
1423
|
emails: string[];
|
|
1424
|
+
} | {
|
|
1426
1425
|
type: "custom-emails";
|
|
1426
|
+
emails: string[];
|
|
1427
1427
|
} | undefined;
|
|
1428
1428
|
variables: Record<string, {} | null> | undefined;
|
|
1429
1429
|
skip_deliverability_check: boolean | undefined;
|