@eeplatform/core 1.4.0 → 1.4.2

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.
@@ -15,6 +15,7 @@ jobs:
15
15
  publish:
16
16
  if: ${{ github.event.workflow_run.conclusion == 'success' }}
17
17
  runs-on: ubuntu-latest
18
+ environment: production
18
19
  steps:
19
20
  - uses: actions/checkout@v4
20
21
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @eeplatform/core
2
2
 
3
+ ## 1.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 18d9235: Remove auth verification at user creation with verification
8
+ - 4ed28e2: Clean up
9
+
10
+ ## 1.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 958c050: Clean up
15
+ - e1fde84: Stock mgmt - set default status to in stock
16
+
3
17
  ## 1.4.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.js CHANGED
@@ -12888,7 +12888,7 @@ function useVerificationService() {
12888
12888
  to: email,
12889
12889
  subject: "Member Invite",
12890
12890
  html: emailContent2,
12891
- from: metadata.orgName || "GoWeekDays"
12891
+ from: "EEPlatform"
12892
12892
  }).catch((error) => {
12893
12893
  import_nodejs_utils6.logger.log({
12894
12894
  level: "error",
@@ -12910,7 +12910,7 @@ function useVerificationService() {
12910
12910
  to: email,
12911
12911
  subject: "User Invite",
12912
12912
  html: emailContent,
12913
- from: "GoWeekDays"
12913
+ from: "EEPlatform"
12914
12914
  }).catch((error) => {
12915
12915
  import_nodejs_utils6.logger.log({
12916
12916
  level: "error",
@@ -12944,7 +12944,7 @@ function useVerificationService() {
12944
12944
  mailer.sendMail({
12945
12945
  to: email,
12946
12946
  subject: "Forget Password",
12947
- from: "GoWeekdays",
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: "GoWeekdays"
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 GoWeekdays account."
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.goweekdays.com"
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 || "GoWeekdays Customer"
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: "GoWeekdays Monthly Invoice",
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: `GoWeekdays Subscription - ${seatsInTier} seats @ ${price} per seat`,
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 = "GoWeekdays Organization Monthly Subscription.";
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: "GoWeekdays Monthly Subscription",
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: "GoWeekdays Monthly Subscription",
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 = "GoWeekdays Organization Monthly Subscription.";
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: "GoWeekdays Monthly Subscription",
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: "GoWeekdays Monthly Subscription",
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 = "GoWeekdays affiliate yearly Subscription.";
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: "GoWeekdays Yearly Affiliate Subscription",
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: "GoWeekdays Yearly Affiliate Subscription",
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 = `GoWeekdays ${sub.type} ${sub.billingCycle} Subscription`;
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: `GoWeekdays Subscription - ${seats} seats @ ${perSeatPrice} per seat`,
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: "GoWeekdays Monthly Subscription",
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: "GoWeekdays Organization Monthly Subscription."
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: "GoWeekdays Monthly Subscription",
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: "GoWeekdays Subscription Payment"
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().required(),
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,