@timardex/cluemart-server-shared 1.0.308 → 1.0.310
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/{chunk-MTFOFVHB.mjs → chunk-U5ER6XDO.mjs} +21 -1
- package/dist/chunk-U5ER6XDO.mjs.map +1 -0
- package/dist/index.cjs +24 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24 -4
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +20 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +24 -4
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +5 -5
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-MTFOFVHB.mjs.map +0 -1
package/dist/service/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
VendorModel,
|
|
23
23
|
dateFormat,
|
|
24
24
|
timeFormat
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-U5ER6XDO.mjs";
|
|
26
26
|
import "../chunk-6PNG5BI5.mjs";
|
|
27
27
|
|
|
28
28
|
// src/service/promoCode/constants.ts
|
|
@@ -40,7 +40,7 @@ async function activeAffiliateCodeExists(affiliateCode) {
|
|
|
40
40
|
return existing !== null;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
43
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-SD42WIMV.mjs
|
|
44
44
|
import dayjs from "dayjs";
|
|
45
45
|
import customParseFormat from "dayjs/plugin/customParseFormat.js";
|
|
46
46
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter.js";
|
|
@@ -95,7 +95,7 @@ var SHARE_RESOURCE_LABEL = {
|
|
|
95
95
|
school: "School"
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
98
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-4VN5M5JO.mjs
|
|
99
99
|
var PROMO_CODE_PREFIX = "CM-";
|
|
100
100
|
var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
|
|
101
101
|
var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
|
|
@@ -197,7 +197,7 @@ var gameScreenIdentifierList = [
|
|
|
197
197
|
}
|
|
198
198
|
];
|
|
199
199
|
|
|
200
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
200
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-TX3TVIQO.mjs
|
|
201
201
|
import dayjs2 from "dayjs";
|
|
202
202
|
var statusOptions = [
|
|
203
203
|
...Object.values(EnumInviteStatus2).map((status) => ({
|
|
@@ -1383,7 +1383,7 @@ async function sendPushNotifications({
|
|
|
1383
1383
|
// src/service/affiliate/vendorSubscriptionRewards.ts
|
|
1384
1384
|
function isPayingStripeSubscription(stripe) {
|
|
1385
1385
|
if (!stripe?.subscriptionId) return false;
|
|
1386
|
-
return stripe.status === EnumSubscriptionStatus.ACTIVE || stripe.status === EnumSubscriptionStatus.TRIALING;
|
|
1386
|
+
return (stripe.status === EnumSubscriptionStatus.ACTIVE || stripe.status === EnumSubscriptionStatus.TRIALING) && (stripe.currentPlan === EnumUserLicence.PRO_VENDOR || stripe.currentPlan === EnumUserLicence.PRO_PLUS_VENDOR);
|
|
1387
1387
|
}
|
|
1388
1388
|
function mapVendorLicenceToSubscriptionRewardType(licences, now = /* @__PURE__ */ new Date(), stripe) {
|
|
1389
1389
|
const validTypes = new Set(
|