@eeplatform/core 1.4.0 → 1.4.1
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/.github/workflows/publish.yml +1 -0
- package/CHANGELOG.md +7 -0
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -24
- package/dist/index.mjs.map +1 -1
- package/dist/public/handlebars/sign-up.hbs +22 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -12944,7 +12944,7 @@ function useVerificationService() {
|
|
|
12944
12944
|
mailer.sendMail({
|
|
12945
12945
|
to: email,
|
|
12946
12946
|
subject: "Forget Password",
|
|
12947
|
-
from: "
|
|
12947
|
+
from: "EEPlatform",
|
|
12948
12948
|
html: emailContent
|
|
12949
12949
|
}).catch((error) => {
|
|
12950
12950
|
import_nodejs_utils6.logger.log({
|
|
@@ -13139,7 +13139,7 @@ function useVerificationService() {
|
|
|
13139
13139
|
to: email,
|
|
13140
13140
|
subject: "Sign Up Verification",
|
|
13141
13141
|
html: emailContent,
|
|
13142
|
-
from: "
|
|
13142
|
+
from: "EEPlatform"
|
|
13143
13143
|
}).catch((error) => {
|
|
13144
13144
|
import_nodejs_utils6.logger.log({
|
|
13145
13145
|
level: "error",
|
|
@@ -17197,7 +17197,7 @@ function useXenditService() {
|
|
|
17197
17197
|
}
|
|
17198
17198
|
},
|
|
17199
17199
|
reusability: "MULTIPLE_USE",
|
|
17200
|
-
description: "Linking card to
|
|
17200
|
+
description: "Linking card to EEPlatform account."
|
|
17201
17201
|
});
|
|
17202
17202
|
return res.data;
|
|
17203
17203
|
} catch (error) {
|
|
@@ -21522,13 +21522,13 @@ function usePaypalService() {
|
|
|
21522
21522
|
name: {
|
|
21523
21523
|
full_name: data.customerName
|
|
21524
21524
|
},
|
|
21525
|
-
website: "www.
|
|
21525
|
+
website: "www.eeplatform.org"
|
|
21526
21526
|
},
|
|
21527
21527
|
primary_recipients: [
|
|
21528
21528
|
{
|
|
21529
21529
|
billing_info: {
|
|
21530
21530
|
name: {
|
|
21531
|
-
full_name: data.customerName || "
|
|
21531
|
+
full_name: data.customerName || "EEPlatform Customer"
|
|
21532
21532
|
},
|
|
21533
21533
|
email_address: data.customerEmail
|
|
21534
21534
|
}
|
|
@@ -21591,7 +21591,7 @@ function usePaypalService() {
|
|
|
21591
21591
|
await axios_default.post(
|
|
21592
21592
|
`${PAYPAL_API_URL}/v2/invoicing/invoices/${invoiceId}/send`,
|
|
21593
21593
|
{
|
|
21594
|
-
subject: "
|
|
21594
|
+
subject: "EEPlatform Monthly Invoice",
|
|
21595
21595
|
send_to_recipient: true,
|
|
21596
21596
|
send_to_invoicer: false
|
|
21597
21597
|
},
|
|
@@ -21688,7 +21688,7 @@ function useSubscriptionService() {
|
|
|
21688
21688
|
totalCost += tierCost;
|
|
21689
21689
|
nonProratedCost += seatsInTier * price;
|
|
21690
21690
|
items.push({
|
|
21691
|
-
description: `
|
|
21691
|
+
description: `EEPlatform Subscription - ${seatsInTier} seats @ ${price} per seat`,
|
|
21692
21692
|
unitPrice: price,
|
|
21693
21693
|
quantity: seatsInTier,
|
|
21694
21694
|
seats: seatsInTier,
|
|
@@ -21746,7 +21746,7 @@ function useSubscriptionService() {
|
|
|
21746
21746
|
session
|
|
21747
21747
|
);
|
|
21748
21748
|
}
|
|
21749
|
-
const description = "
|
|
21749
|
+
const description = "EEPlatform Organization Monthly Subscription.";
|
|
21750
21750
|
const monthlySubscriptionPrice = await getByNameType(
|
|
21751
21751
|
"organization-subscription",
|
|
21752
21752
|
"monthly-subscription"
|
|
@@ -21771,7 +21771,7 @@ function useSubscriptionService() {
|
|
|
21771
21771
|
if (promoCode && promoCode.type === "fixed" && promoCode.fixed_rate !== void 0 && promoCode.fixed_rate >= 0) {
|
|
21772
21772
|
amount = promoCode.fixed_rate;
|
|
21773
21773
|
items.push({
|
|
21774
|
-
description: "
|
|
21774
|
+
description: "EEPlatform Monthly Subscription",
|
|
21775
21775
|
unitPrice: promoCode.fixed_rate,
|
|
21776
21776
|
quantity: 1,
|
|
21777
21777
|
seats: value.seats,
|
|
@@ -21830,7 +21830,7 @@ function useSubscriptionService() {
|
|
|
21830
21830
|
status: "paid",
|
|
21831
21831
|
items: items && items.length ? items : [
|
|
21832
21832
|
{
|
|
21833
|
-
description: "
|
|
21833
|
+
description: "EEPlatform Monthly Subscription",
|
|
21834
21834
|
unitPrice: amount,
|
|
21835
21835
|
quantity: 1,
|
|
21836
21836
|
seats: value.seats,
|
|
@@ -21940,7 +21940,7 @@ function useSubscriptionService() {
|
|
|
21940
21940
|
}
|
|
21941
21941
|
value.billingAddress.org = orgId.toString();
|
|
21942
21942
|
await addAddress(value.billingAddress, session);
|
|
21943
|
-
const description = "
|
|
21943
|
+
const description = "EEPlatform Organization Monthly Subscription.";
|
|
21944
21944
|
if (value.promoCode) {
|
|
21945
21945
|
await assignByUserId(
|
|
21946
21946
|
{ user: value.user, code: value.promoCode },
|
|
@@ -21966,7 +21966,7 @@ function useSubscriptionService() {
|
|
|
21966
21966
|
if (promoCode && promoCode.type === "fixed" && promoCode.fixed_rate !== void 0 && promoCode.fixed_rate >= 0) {
|
|
21967
21967
|
amount = promoCode.fixed_rate;
|
|
21968
21968
|
items.push({
|
|
21969
|
-
description: "
|
|
21969
|
+
description: "EEPlatform Monthly Subscription",
|
|
21970
21970
|
unitPrice: promoCode.fixed_rate,
|
|
21971
21971
|
quantity: 1,
|
|
21972
21972
|
seats: value.seats,
|
|
@@ -22026,7 +22026,7 @@ function useSubscriptionService() {
|
|
|
22026
22026
|
status: "paid",
|
|
22027
22027
|
items: items && items.length ? items : [
|
|
22028
22028
|
{
|
|
22029
|
-
description: "
|
|
22029
|
+
description: "EEPlatform Monthly Subscription",
|
|
22030
22030
|
unitPrice: amount,
|
|
22031
22031
|
quantity: 1,
|
|
22032
22032
|
seats: value.seats,
|
|
@@ -22086,7 +22086,7 @@ function useSubscriptionService() {
|
|
|
22086
22086
|
throw new import_nodejs_utils37.BadRequestError("User not found.");
|
|
22087
22087
|
}
|
|
22088
22088
|
await addAddress(value.billingAddress, session);
|
|
22089
|
-
const description = "
|
|
22089
|
+
const description = "EEPlatform affiliate yearly Subscription.";
|
|
22090
22090
|
const customer = await getCustomerById(value.customer_id);
|
|
22091
22091
|
if (!customer.id) {
|
|
22092
22092
|
throw new import_nodejs_utils37.BadRequestError("Xendit customer account required.");
|
|
@@ -22113,7 +22113,7 @@ function useSubscriptionService() {
|
|
|
22113
22113
|
if (promoCode && promoCode.type === "fixed" && promoCode.fixed_rate !== void 0 && promoCode.fixed_rate >= 0) {
|
|
22114
22114
|
amount = promoCode.fixed_rate;
|
|
22115
22115
|
items.push({
|
|
22116
|
-
description: "
|
|
22116
|
+
description: "EEPlatform Yearly Affiliate Subscription",
|
|
22117
22117
|
unitPrice: promoCode.fixed_rate,
|
|
22118
22118
|
quantity: 1,
|
|
22119
22119
|
seats: 1,
|
|
@@ -22161,7 +22161,7 @@ function useSubscriptionService() {
|
|
|
22161
22161
|
status: "paid",
|
|
22162
22162
|
items: items.length ? items : [
|
|
22163
22163
|
{
|
|
22164
|
-
description: "
|
|
22164
|
+
description: "EEPlatform Yearly Affiliate Subscription",
|
|
22165
22165
|
unitPrice: amount,
|
|
22166
22166
|
quantity: 1,
|
|
22167
22167
|
seats: 1,
|
|
@@ -22262,7 +22262,7 @@ function useSubscriptionService() {
|
|
|
22262
22262
|
}
|
|
22263
22263
|
const promoCode = await getByCode(code).catch(() => null);
|
|
22264
22264
|
let amount = price.value * chargeableSeats;
|
|
22265
|
-
const description = `
|
|
22265
|
+
const description = `EEPlatform ${sub.type} ${sub.billingCycle} Subscription`;
|
|
22266
22266
|
const items = [];
|
|
22267
22267
|
if (code && promoCode && promoCode.type === "fixed" && promoCode.fixed_rate !== void 0 && promoCode.fixed_rate >= 0) {
|
|
22268
22268
|
amount = promoCode.fixed_rate * chargeableSeats;
|
|
@@ -22439,7 +22439,7 @@ function useSubscriptionService() {
|
|
|
22439
22439
|
newMonthSubscriptionFee = formatAmount(perSeatPrice * seats);
|
|
22440
22440
|
items = [
|
|
22441
22441
|
{
|
|
22442
|
-
description: `
|
|
22442
|
+
description: `EEPlatform Subscription - ${seats} seats @ ${perSeatPrice} per seat`,
|
|
22443
22443
|
unitPrice: perSeatPrice,
|
|
22444
22444
|
quantity: 1,
|
|
22445
22445
|
seats,
|
|
@@ -22602,7 +22602,7 @@ function useSubscriptionService() {
|
|
|
22602
22602
|
status: "paid",
|
|
22603
22603
|
items: [
|
|
22604
22604
|
{
|
|
22605
|
-
description: "
|
|
22605
|
+
description: "EEPlatform Monthly Subscription",
|
|
22606
22606
|
unitPrice: formatAmount(perSeatPrice),
|
|
22607
22607
|
quantity: 1,
|
|
22608
22608
|
seats,
|
|
@@ -22623,7 +22623,7 @@ function useSubscriptionService() {
|
|
|
22623
22623
|
payment_method_id: subscription.paymentMethodId ?? "",
|
|
22624
22624
|
amount: formatAmount(amount),
|
|
22625
22625
|
currency: subscription.currency,
|
|
22626
|
-
description: "
|
|
22626
|
+
description: "EEPlatform Organization Monthly Subscription."
|
|
22627
22627
|
});
|
|
22628
22628
|
}
|
|
22629
22629
|
const paymentMethod = await getPaymentMethodById(
|
|
@@ -22813,7 +22813,7 @@ function useSubscriptionService() {
|
|
|
22813
22813
|
status: "paid",
|
|
22814
22814
|
items: [
|
|
22815
22815
|
{
|
|
22816
|
-
description: "
|
|
22816
|
+
description: "EEPlatform Monthly Subscription",
|
|
22817
22817
|
unitPrice: formatAmount(perSeatPrice),
|
|
22818
22818
|
quantity: 1,
|
|
22819
22819
|
seats,
|
|
@@ -22949,7 +22949,7 @@ function useSubscriptionService() {
|
|
|
22949
22949
|
payment_method_id: subscription.paymentMethodId,
|
|
22950
22950
|
amount: subscription.amount,
|
|
22951
22951
|
currency: subscription.currency,
|
|
22952
|
-
description: "
|
|
22952
|
+
description: "EEPlatform Subscription Payment"
|
|
22953
22953
|
});
|
|
22954
22954
|
if (!payment.id) {
|
|
22955
22955
|
throw new import_nodejs_utils37.BadRequestError("Failed to process payment.");
|
|
@@ -28752,7 +28752,7 @@ var schemaStockCard = import_joi38.default.object({
|
|
|
28752
28752
|
qty: import_joi38.default.number().required(),
|
|
28753
28753
|
unitCost: import_joi38.default.number().optional().allow(null, 0),
|
|
28754
28754
|
totalCost: import_joi38.default.number().optional().allow(null, 0),
|
|
28755
|
-
status: import_joi38.default.string().
|
|
28755
|
+
status: import_joi38.default.string().optional().allow(null, ""),
|
|
28756
28756
|
condition: import_joi38.default.string().required(),
|
|
28757
28757
|
supplier: import_joi38.default.string().optional().allow("", null),
|
|
28758
28758
|
location: import_joi38.default.string().optional().allow("", null),
|
|
@@ -28793,7 +28793,7 @@ function MStockCard(value) {
|
|
|
28793
28793
|
qty: value.qty,
|
|
28794
28794
|
unitCost: value.unitCost,
|
|
28795
28795
|
totalCost: value.totalCost,
|
|
28796
|
-
status: value.status,
|
|
28796
|
+
status: value.status ?? "in stock",
|
|
28797
28797
|
condition: value.condition,
|
|
28798
28798
|
supplier: value.supplier ?? "",
|
|
28799
28799
|
location: value.location ?? void 0,
|