@infuro/cms-core 1.0.63 → 1.0.65
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.cjs +183 -65
- package/dist/admin.js +183 -65
- package/dist/api.cjs +40 -40
- package/dist/api.d.cts +2 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +8 -8
- package/dist/{chunk-KAOHOHCA.js → chunk-6YOQ7G5O.js} +92 -51
- package/dist/{chunk-BWOITUNI.js → chunk-ACBN6UWZ.js} +320 -81
- package/dist/chunk-BXAKL2TF.cjs +84 -0
- package/dist/{chunk-7L556RGL.cjs → chunk-GLD263KW.cjs} +3 -3
- package/dist/{chunk-EWXG4E74.cjs → chunk-NIRYYJIJ.cjs} +330 -91
- package/dist/{chunk-MWEK7N3F.js → chunk-OPJEV44S.js} +2 -2
- package/dist/{chunk-DTUL3Q5L.js → chunk-RDEVZMO5.js} +36 -20
- package/dist/{chunk-77YWLP4X.js → chunk-SANKKGB3.js} +68 -32
- package/dist/chunk-THL5JDWJ.cjs +101 -0
- package/dist/{chunk-RXTUSF3R.js → chunk-TU23GJPJ.js} +2 -2
- package/dist/{chunk-JLDHK2QE.cjs → chunk-TZEMLHSP.cjs} +20 -14
- package/dist/{chunk-RHYVNRYG.cjs → chunk-V6EYAC7X.cjs} +38 -22
- package/dist/{chunk-YVP4NQII.cjs → chunk-VM6OVUUM.cjs} +93 -52
- package/dist/{chunk-MXABMVF7.cjs → chunk-XFDIIVZB.cjs} +4 -4
- package/dist/chunk-XJNNOSJR.js +98 -0
- package/dist/chunk-YEAXE4U2.js +77 -0
- package/dist/{chunk-CJEOH6QC.cjs → chunk-YHEITFHR.cjs} +112 -76
- package/dist/{chunk-3VZAAQUV.js → chunk-YRCKEGL2.js} +20 -14
- package/dist/{email-queue-VTYL2KFA.cjs → email-queue-4OY45JIU.cjs} +7 -7
- package/dist/{email-queue-YPRSVG56.js → email-queue-HGXB2FIS.js} +3 -3
- package/dist/{email-service-ATCPJFWG.cjs → email-service-5O24BSFR.cjs} +7 -7
- package/dist/{email-service-DPKVQOKP.js → email-service-ADDF52PJ.js} +2 -2
- package/dist/{emit-order-notification-trigger-WI4HGMKH.cjs → emit-order-notification-trigger-DR74TQXN.cjs} +4 -4
- package/dist/{emit-order-notification-trigger-XVG2B5ZF.js → emit-order-notification-trigger-UCKJHDQK.js} +2 -2
- package/dist/{erp-order-invoice-3UGWLICU.js → erp-order-invoice-H6HCJ7YS.js} +2 -2
- package/dist/{erp-order-invoice-KJYJNWMG.cjs → erp-order-invoice-YUSPZ7CE.cjs} +6 -6
- package/dist/index.cjs +279 -265
- package/dist/index.d.cts +46 -22
- package/dist/index.d.ts +46 -22
- package/dist/index.js +43 -29
- package/dist/migrations/1783000000000-AddOrderPendingProcessingCompletedTriggers.ts +15 -39
- package/dist/migrations/1783300000000-SeedOrderNotificationTriggersAndTemplates.ts +155 -0
- package/dist/{order-completion-otp-handlers-WGM7HWG4.js → order-completion-otp-handlers-CH22ZRAI.js} +5 -5
- package/dist/{order-completion-otp-handlers-IMMQGHDR.cjs → order-completion-otp-handlers-RW5RSXH3.cjs} +7 -7
- package/dist/{order-notification-dispatcher-JKFQJYGG.js → order-notification-dispatcher-3TXUAJ7L.js} +6 -6
- package/dist/{order-notification-dispatcher-5TUFCDU7.cjs → order-notification-dispatcher-Y7NZAALH.cjs} +11 -11
- package/dist/{pg-boss-service-L6MTF4EQ.cjs → pg-boss-service-BDGOKM2T.cjs} +3 -3
- package/dist/pg-boss-service-WCBJD4JB.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-AYWDQFJZ.js +0 -27
- package/dist/chunk-GO7PPYNU.js +0 -76
- package/dist/chunk-UEE4PTTB.cjs +0 -30
- package/dist/chunk-XQ3QUHWR.cjs +0 -83
- package/dist/pg-boss-service-4XF2TQ2E.js +0 -2
|
@@ -47,20 +47,25 @@ function absolutizeEmailAssetUrl(url) {
|
|
|
47
47
|
__name(absolutizeEmailAssetUrl, "absolutizeEmailAssetUrl");
|
|
48
48
|
function mergeEmailLayoutCompanyDetails(branding, emailSettings, storeSettings) {
|
|
49
49
|
const fromBranding = getCompanyDetailsFromSettings(branding);
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
50
|
+
const first = /* @__PURE__ */ __name((...vals) => {
|
|
51
|
+
for (const v of vals) {
|
|
52
|
+
const t = v?.trim();
|
|
53
|
+
if (t) return t;
|
|
54
|
+
}
|
|
55
|
+
return void 0;
|
|
56
|
+
}, "first");
|
|
57
|
+
const storeLogo = first(storeSettings?.invoiceLogoUrl, storeSettings?.companyLogo, storeSettings?.logo);
|
|
58
|
+
const storeName = first(storeSettings?.companyName, storeSettings?.storeName);
|
|
59
|
+
const storeEmail = first(storeSettings?.companyEmail);
|
|
60
|
+
const storePhone = first(storeSettings?.companyPhone);
|
|
61
|
+
const storeAddress = first(storeSettings?.companyAddress);
|
|
62
|
+
const logoUrl = absolutizeEmailAssetUrl(first(storeLogo, emailSettings.logoUrl, emailSettings.emailLogoUrl, fromBranding.logoUrl));
|
|
63
|
+
const companyName = first(storeName, emailSettings.companyName, emailSettings.emailCompanyName, fromBranding.companyName);
|
|
64
|
+
const supportEmail = first(storeEmail, emailSettings.supportEmail, emailSettings.emailSupportEmail, fromBranding.supportEmail);
|
|
65
|
+
const supportPhone = first(storePhone, emailSettings.supportPhone);
|
|
66
|
+
const companyAddress = storeAddress;
|
|
67
|
+
const footerDisclaimer = first(emailSettings.footerDisclaimer);
|
|
68
|
+
const followUsTitle = first(emailSettings.followUsTitle, "Follow Us") || "Follow Us";
|
|
64
69
|
const socialFromEmail = parseSocialLinksJson(emailSettings.socialLinks);
|
|
65
70
|
const socialLinks = socialFromEmail?.length ? socialFromEmail : fromBranding.socialLinks;
|
|
66
71
|
return {
|
|
@@ -68,6 +73,7 @@ function mergeEmailLayoutCompanyDetails(branding, emailSettings, storeSettings)
|
|
|
68
73
|
companyName,
|
|
69
74
|
supportEmail,
|
|
70
75
|
supportPhone,
|
|
76
|
+
companyAddress,
|
|
71
77
|
socialLinks,
|
|
72
78
|
footerDisclaimer,
|
|
73
79
|
followUsTitle
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkXFDIIVZB_cjs = require('./chunk-XFDIIVZB.cjs');
|
|
4
|
+
require('./chunk-GLD263KW.cjs');
|
|
5
5
|
require('./chunk-UPLVMVRX.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-TZEMLHSP.cjs');
|
|
7
7
|
require('./chunk-USNT2KNT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "queueEmail", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXFDIIVZB_cjs.queueEmail; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "queueOrderPlacedEmails", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXFDIIVZB_cjs.queueOrderPlacedEmails; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "queueVendorOnboardEmails", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXFDIIVZB_cjs.queueVendorOnboardEmails; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "registerEmailQueueProcessor", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXFDIIVZB_cjs.registerEmailQueueProcessor; }
|
|
26
26
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { queueEmail, queueOrderPlacedEmails, queueVendorOnboardEmails, registerEmailQueueProcessor } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { queueEmail, queueOrderPlacedEmails, queueVendorOnboardEmails, registerEmailQueueProcessor } from './chunk-TU23GJPJ.js';
|
|
2
|
+
import './chunk-OPJEV44S.js';
|
|
3
3
|
import './chunk-JC6DLWTE.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-YRCKEGL2.js';
|
|
5
5
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkVM6OVUUM_cjs = require('./chunk-VM6OVUUM.cjs');
|
|
4
|
+
require('./chunk-TZEMLHSP.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "EmailService", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkVM6OVUUM_cjs.EmailService; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "SES_REGIONS_WITHOUT_SMTP", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkVM6OVUUM_cjs.SES_REGIONS_WITHOUT_SMTP; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "emailTemplates", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkVM6OVUUM_cjs.emailTemplates; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "sesRegionSupportsSmtp", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkVM6OVUUM_cjs.sesRegionSupportsSmtp; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "sesSmtpHost", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkVM6OVUUM_cjs.sesSmtpHost; }
|
|
28
28
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { EmailService, SES_REGIONS_WITHOUT_SMTP, emailTemplates, sesRegionSupportsSmtp, sesSmtpHost } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { EmailService, SES_REGIONS_WITHOUT_SMTP, emailTemplates, sesRegionSupportsSmtp, sesSmtpHost } from './chunk-6YOQ7G5O.js';
|
|
2
|
+
import './chunk-YRCKEGL2.js';
|
|
3
3
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkV6EYAC7X_cjs = require('./chunk-V6EYAC7X.cjs');
|
|
4
|
+
require('./chunk-BXAKL2TF.cjs');
|
|
5
5
|
require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "emitOrderNotificationTrigger", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkV6EYAC7X_cjs.emitOrderNotificationTrigger; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "fireOrderNotificationTrigger", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkV6EYAC7X_cjs.fireOrderNotificationTrigger; }
|
|
16
16
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { emitOrderNotificationTrigger, fireOrderNotificationTrigger } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { emitOrderNotificationTrigger, fireOrderNotificationTrigger } from './chunk-RDEVZMO5.js';
|
|
2
|
+
import './chunk-YEAXE4U2.js';
|
|
3
3
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES, isOrderEligibleForInvoiceEmail, resolveOrderInvoicePdfBytes, streamOrderInvoicePdf } from './chunk-
|
|
1
|
+
export { ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES, isOrderEligibleForInvoiceEmail, resolveOrderInvoicePdfBytes, streamOrderInvoicePdf } from './chunk-OPJEV44S.js';
|
|
2
2
|
import './chunk-JC6DLWTE.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-YRCKEGL2.js';
|
|
4
4
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGLD263KW_cjs = require('./chunk-GLD263KW.cjs');
|
|
4
4
|
require('./chunk-UPLVMVRX.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-TZEMLHSP.cjs');
|
|
6
6
|
require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkGLD263KW_cjs.ORDER_INVOICE_EMAIL_ELIGIBLE_STATUSES; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "isOrderEligibleForInvoiceEmail", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkGLD263KW_cjs.isOrderEligibleForInvoiceEmail; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "resolveOrderInvoicePdfBytes", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkGLD263KW_cjs.resolveOrderInvoicePdfBytes; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "streamOrderInvoicePdf", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkGLD263KW_cjs.streamOrderInvoicePdf; }
|
|
25
25
|
});
|