@hartl-services/medusa-contracts 1.7.0 → 1.8.0
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/email/schemas.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const EmailKindSchema: z.ZodEnum<{
|
|
|
15
15
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
16
16
|
"user.invite": "user.invite";
|
|
17
17
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
18
|
+
"order.picked_up": "order.picked_up";
|
|
18
19
|
}>;
|
|
19
20
|
export declare const EmailMessageStatusSchema: z.ZodEnum<{
|
|
20
21
|
unknown: "unknown";
|
|
@@ -61,7 +62,7 @@ export declare const EMAIL_ATTACHMENT_MAX_PDF_BYTES: number;
|
|
|
61
62
|
* Customer mails an Admin can attach library documents (terms, legal notices,
|
|
62
63
|
* flyers) to. Account, Shop and affiliate mails never carry them.
|
|
63
64
|
*/
|
|
64
|
-
export declare const EMAIL_ATTACHABLE_KINDS: readonly ["order.received", "order.shipped", "order.canceled", "order.return_requested", "order.return_received", "order.refunded"];
|
|
65
|
+
export declare const EMAIL_ATTACHABLE_KINDS: readonly ["order.received", "order.shipped", "order.picked_up", "order.canceled", "order.return_requested", "order.return_received", "order.refunded"];
|
|
65
66
|
export declare const EmailAttachableKindSchema: z.ZodEnum<{
|
|
66
67
|
"order.received": "order.received";
|
|
67
68
|
"order.shipped": "order.shipped";
|
|
@@ -69,6 +70,7 @@ export declare const EmailAttachableKindSchema: z.ZodEnum<{
|
|
|
69
70
|
"order.return_requested": "order.return_requested";
|
|
70
71
|
"order.return_received": "order.return_received";
|
|
71
72
|
"order.refunded": "order.refunded";
|
|
73
|
+
"order.picked_up": "order.picked_up";
|
|
72
74
|
}>;
|
|
73
75
|
export declare const ListAdminEmailMessagesQuerySchema: z.ZodObject<{
|
|
74
76
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -87,6 +89,7 @@ export declare const ListAdminEmailMessagesQuerySchema: z.ZodObject<{
|
|
|
87
89
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
88
90
|
"user.invite": "user.invite";
|
|
89
91
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
92
|
+
"order.picked_up": "order.picked_up";
|
|
90
93
|
}>>;
|
|
91
94
|
status: z.ZodOptional<z.ZodEnum<{
|
|
92
95
|
unknown: "unknown";
|
|
@@ -117,7 +120,8 @@ export declare const CreateAdminEmailAttachmentDocumentSchema: z.ZodObject<{
|
|
|
117
120
|
"order.return_requested": "order.return_requested";
|
|
118
121
|
"order.return_received": "order.return_received";
|
|
119
122
|
"order.refunded": "order.refunded";
|
|
120
|
-
|
|
123
|
+
"order.picked_up": "order.picked_up";
|
|
124
|
+
}>>, z.ZodTransform<("order.received" | "order.shipped" | "order.canceled" | "order.return_requested" | "order.return_received" | "order.refunded" | "order.picked_up")[], ("order.received" | "order.shipped" | "order.canceled" | "order.return_requested" | "order.return_received" | "order.refunded" | "order.picked_up")[]>>;
|
|
121
125
|
}, z.core.$strict>;
|
|
122
126
|
export declare const UpdateAdminEmailAttachmentDocumentSchema: z.ZodObject<{
|
|
123
127
|
name: z.ZodString;
|
|
@@ -128,7 +132,8 @@ export declare const UpdateAdminEmailAttachmentDocumentSchema: z.ZodObject<{
|
|
|
128
132
|
"order.return_requested": "order.return_requested";
|
|
129
133
|
"order.return_received": "order.return_received";
|
|
130
134
|
"order.refunded": "order.refunded";
|
|
131
|
-
|
|
135
|
+
"order.picked_up": "order.picked_up";
|
|
136
|
+
}>>, z.ZodTransform<("order.received" | "order.shipped" | "order.canceled" | "order.return_requested" | "order.return_received" | "order.refunded" | "order.picked_up")[], ("order.received" | "order.shipped" | "order.canceled" | "order.return_requested" | "order.return_received" | "order.refunded" | "order.picked_up")[]>>>;
|
|
132
137
|
}, z.core.$strict>;
|
|
133
138
|
export declare const CreateAdminEmailAttachmentVersionSchema: z.ZodObject<{
|
|
134
139
|
request_id: z.ZodString;
|
|
@@ -154,6 +159,7 @@ export declare const AdminEmailMessageSchema: z.ZodObject<{
|
|
|
154
159
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
155
160
|
"user.invite": "user.invite";
|
|
156
161
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
162
|
+
"order.picked_up": "order.picked_up";
|
|
157
163
|
}>;
|
|
158
164
|
status: z.ZodEnum<{
|
|
159
165
|
unknown: "unknown";
|
|
@@ -258,6 +264,7 @@ export declare const AdminEmailAttachmentDocumentSchema: z.ZodObject<{
|
|
|
258
264
|
"order.return_requested": "order.return_requested";
|
|
259
265
|
"order.return_received": "order.return_received";
|
|
260
266
|
"order.refunded": "order.refunded";
|
|
267
|
+
"order.picked_up": "order.picked_up";
|
|
261
268
|
}>>;
|
|
262
269
|
versions: z.ZodArray<z.ZodObject<{
|
|
263
270
|
id: z.ZodString;
|
|
@@ -289,6 +296,7 @@ export declare const ListAdminEmailMessagesResponseSchema: z.ZodObject<{
|
|
|
289
296
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
290
297
|
"user.invite": "user.invite";
|
|
291
298
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
299
|
+
"order.picked_up": "order.picked_up";
|
|
292
300
|
}>;
|
|
293
301
|
status: z.ZodEnum<{
|
|
294
302
|
unknown: "unknown";
|
|
@@ -360,6 +368,7 @@ export declare const GetAdminEmailMessageResponseSchema: z.ZodObject<{
|
|
|
360
368
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
361
369
|
"user.invite": "user.invite";
|
|
362
370
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
371
|
+
"order.picked_up": "order.picked_up";
|
|
363
372
|
}>;
|
|
364
373
|
status: z.ZodEnum<{
|
|
365
374
|
unknown: "unknown";
|
|
@@ -466,6 +475,7 @@ export declare const ResendAdminEmailMessageResponseSchema: z.ZodObject<{
|
|
|
466
475
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
467
476
|
"user.invite": "user.invite";
|
|
468
477
|
"system.credential_expiry.admin": "system.credential_expiry.admin";
|
|
478
|
+
"order.picked_up": "order.picked_up";
|
|
469
479
|
}>;
|
|
470
480
|
status: z.ZodEnum<{
|
|
471
481
|
unknown: "unknown";
|
|
@@ -526,6 +536,7 @@ export declare const ListAdminEmailAttachmentDocumentsResponseSchema: z.ZodObjec
|
|
|
526
536
|
"order.return_requested": "order.return_requested";
|
|
527
537
|
"order.return_received": "order.return_received";
|
|
528
538
|
"order.refunded": "order.refunded";
|
|
539
|
+
"order.picked_up": "order.picked_up";
|
|
529
540
|
}>>;
|
|
530
541
|
versions: z.ZodArray<z.ZodObject<{
|
|
531
542
|
id: z.ZodString;
|
|
@@ -551,6 +562,7 @@ export declare const AdminEmailAttachmentDocumentResponseSchema: z.ZodObject<{
|
|
|
551
562
|
"order.return_requested": "order.return_requested";
|
|
552
563
|
"order.return_received": "order.return_received";
|
|
553
564
|
"order.refunded": "order.refunded";
|
|
565
|
+
"order.picked_up": "order.picked_up";
|
|
554
566
|
}>>;
|
|
555
567
|
versions: z.ZodArray<z.ZodObject<{
|
|
556
568
|
id: z.ZodString;
|
|
@@ -590,7 +602,7 @@ export declare const AdminDraftOrderConfirmationResponseSchema: z.ZodObject<{
|
|
|
590
602
|
* Mails whose content an Admin edits as a block template. Every other kind
|
|
591
603
|
* keeps its code template.
|
|
592
604
|
*/
|
|
593
|
-
export declare const EMAIL_EDITABLE_KINDS: readonly ["order.received", "order.received.admin", "order.shipped", "order.canceled", "order.return_requested", "order.return_received", "order.refunded", "auth.password_reset", "auth.admin_password_reset", "auth.verification", "auth.login_code", "user.invite", "affiliate.consignment_report_due", "affiliate.application_submitted.admin"];
|
|
605
|
+
export declare const EMAIL_EDITABLE_KINDS: readonly ["order.received", "order.received.admin", "order.shipped", "order.picked_up", "order.canceled", "order.return_requested", "order.return_received", "order.refunded", "auth.password_reset", "auth.admin_password_reset", "auth.verification", "auth.login_code", "user.invite", "affiliate.consignment_report_due", "affiliate.application_submitted.admin"];
|
|
594
606
|
export declare const EmailEditableKindSchema: z.ZodEnum<{
|
|
595
607
|
"order.received": "order.received";
|
|
596
608
|
"order.received.admin": "order.received.admin";
|
|
@@ -606,6 +618,7 @@ export declare const EmailEditableKindSchema: z.ZodEnum<{
|
|
|
606
618
|
"affiliate.consignment_report_due": "affiliate.consignment_report_due";
|
|
607
619
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
608
620
|
"user.invite": "user.invite";
|
|
621
|
+
"order.picked_up": "order.picked_up";
|
|
609
622
|
}>;
|
|
610
623
|
/** Server-rendered blocks with the mail's real data. */
|
|
611
624
|
export declare const EmailTemplateDynamicBlockSchema: z.ZodEnum<{
|
|
@@ -658,6 +671,12 @@ export declare const EMAIL_TEMPLATE_CATALOG: {
|
|
|
658
671
|
readonly placeholders: readonly ["shop_name", "order_number", "customer_name"];
|
|
659
672
|
readonly required_blocks: readonly [];
|
|
660
673
|
};
|
|
674
|
+
readonly "order.picked_up": {
|
|
675
|
+
readonly blocks: readonly ["details", "item_list"];
|
|
676
|
+
readonly conditions: readonly ["invoice_attached"];
|
|
677
|
+
readonly placeholders: readonly ["shop_name", "order_number", "customer_name"];
|
|
678
|
+
readonly required_blocks: readonly [];
|
|
679
|
+
};
|
|
661
680
|
readonly "order.canceled": {
|
|
662
681
|
readonly blocks: readonly ["details", "order_summary"];
|
|
663
682
|
readonly conditions: readonly ["cancellation_attached"];
|
|
@@ -1798,6 +1817,7 @@ export declare const AdminEmailTemplateSummarySchema: z.ZodObject<{
|
|
|
1798
1817
|
"affiliate.consignment_report_due": "affiliate.consignment_report_due";
|
|
1799
1818
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
1800
1819
|
"user.invite": "user.invite";
|
|
1820
|
+
"order.picked_up": "order.picked_up";
|
|
1801
1821
|
}>;
|
|
1802
1822
|
customized: z.ZodBoolean;
|
|
1803
1823
|
code_override: z.ZodBoolean;
|
|
@@ -1820,6 +1840,7 @@ export declare const ListAdminEmailTemplatesResponseSchema: z.ZodObject<{
|
|
|
1820
1840
|
"affiliate.consignment_report_due": "affiliate.consignment_report_due";
|
|
1821
1841
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
1822
1842
|
"user.invite": "user.invite";
|
|
1843
|
+
"order.picked_up": "order.picked_up";
|
|
1823
1844
|
}>;
|
|
1824
1845
|
customized: z.ZodBoolean;
|
|
1825
1846
|
code_override: z.ZodBoolean;
|
|
@@ -1843,6 +1864,7 @@ export declare const AdminEmailTemplateResponseSchema: z.ZodObject<{
|
|
|
1843
1864
|
"affiliate.consignment_report_due": "affiliate.consignment_report_due";
|
|
1844
1865
|
"affiliate.application_submitted.admin": "affiliate.application_submitted.admin";
|
|
1845
1866
|
"user.invite": "user.invite";
|
|
1867
|
+
"order.picked_up": "order.picked_up";
|
|
1846
1868
|
}>;
|
|
1847
1869
|
customized: z.ZodBoolean;
|
|
1848
1870
|
code_override: z.ZodBoolean;
|
|
@@ -2400,6 +2422,7 @@ export declare const SetAdminEmailAttachmentMailKindSchema: z.ZodObject<{
|
|
|
2400
2422
|
"order.return_requested": "order.return_requested";
|
|
2401
2423
|
"order.return_received": "order.return_received";
|
|
2402
2424
|
"order.refunded": "order.refunded";
|
|
2425
|
+
"order.picked_up": "order.picked_up";
|
|
2403
2426
|
}>;
|
|
2404
2427
|
attached: z.ZodBoolean;
|
|
2405
2428
|
}, z.core.$strict>;
|
package/dist/email/schemas.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.EmailKindSchema = zod_1.z.enum([
|
|
|
19
19
|
"affiliate.application_submitted.admin",
|
|
20
20
|
"user.invite",
|
|
21
21
|
"system.credential_expiry.admin",
|
|
22
|
+
"order.picked_up",
|
|
22
23
|
]);
|
|
23
24
|
exports.EmailMessageStatusSchema = zod_1.z.enum([
|
|
24
25
|
"pending",
|
|
@@ -73,6 +74,7 @@ const NullableWireDateSchema = primitives_1.WireDateSchema.nullable();
|
|
|
73
74
|
exports.EMAIL_ATTACHABLE_KINDS = [
|
|
74
75
|
"order.received",
|
|
75
76
|
"order.shipped",
|
|
77
|
+
"order.picked_up",
|
|
76
78
|
"order.canceled",
|
|
77
79
|
"order.return_requested",
|
|
78
80
|
"order.return_received",
|
|
@@ -257,6 +259,7 @@ exports.EMAIL_EDITABLE_KINDS = [
|
|
|
257
259
|
"order.received",
|
|
258
260
|
"order.received.admin",
|
|
259
261
|
"order.shipped",
|
|
262
|
+
"order.picked_up",
|
|
260
263
|
"order.canceled",
|
|
261
264
|
"order.return_requested",
|
|
262
265
|
"order.return_received",
|
|
@@ -326,6 +329,12 @@ exports.EMAIL_TEMPLATE_CATALOG = {
|
|
|
326
329
|
placeholders: ["shop_name", "order_number", "customer_name"],
|
|
327
330
|
required_blocks: [],
|
|
328
331
|
},
|
|
332
|
+
"order.picked_up": {
|
|
333
|
+
blocks: ["details", "item_list"],
|
|
334
|
+
conditions: ["invoice_attached"],
|
|
335
|
+
placeholders: ["shop_name", "order_number", "customer_name"],
|
|
336
|
+
required_blocks: [],
|
|
337
|
+
},
|
|
329
338
|
"order.canceled": {
|
|
330
339
|
blocks: ["details", "order_summary"],
|
|
331
340
|
conditions: ["cancellation_attached"],
|
|
@@ -16,6 +16,7 @@ export const EmailKindSchema = z.enum([
|
|
|
16
16
|
"affiliate.application_submitted.admin",
|
|
17
17
|
"user.invite",
|
|
18
18
|
"system.credential_expiry.admin",
|
|
19
|
+
"order.picked_up",
|
|
19
20
|
]);
|
|
20
21
|
export const EmailMessageStatusSchema = z.enum([
|
|
21
22
|
"pending",
|
|
@@ -70,6 +71,7 @@ const NullableWireDateSchema = WireDateSchema.nullable();
|
|
|
70
71
|
export const EMAIL_ATTACHABLE_KINDS = [
|
|
71
72
|
"order.received",
|
|
72
73
|
"order.shipped",
|
|
74
|
+
"order.picked_up",
|
|
73
75
|
"order.canceled",
|
|
74
76
|
"order.return_requested",
|
|
75
77
|
"order.return_received",
|
|
@@ -254,6 +256,7 @@ export const EMAIL_EDITABLE_KINDS = [
|
|
|
254
256
|
"order.received",
|
|
255
257
|
"order.received.admin",
|
|
256
258
|
"order.shipped",
|
|
259
|
+
"order.picked_up",
|
|
257
260
|
"order.canceled",
|
|
258
261
|
"order.return_requested",
|
|
259
262
|
"order.return_received",
|
|
@@ -323,6 +326,12 @@ export const EMAIL_TEMPLATE_CATALOG = {
|
|
|
323
326
|
placeholders: ["shop_name", "order_number", "customer_name"],
|
|
324
327
|
required_blocks: [],
|
|
325
328
|
},
|
|
329
|
+
"order.picked_up": {
|
|
330
|
+
blocks: ["details", "item_list"],
|
|
331
|
+
conditions: ["invoice_attached"],
|
|
332
|
+
placeholders: ["shop_name", "order_number", "customer_name"],
|
|
333
|
+
required_blocks: [],
|
|
334
|
+
},
|
|
326
335
|
"order.canceled": {
|
|
327
336
|
blocks: ["details", "order_summary"],
|
|
328
337
|
conditions: ["cancellation_attached"],
|