@timardex/cluemart-shared 1.5.796 → 1.5.798
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/{affiliate-BDoo69JY.d.mts → affiliate-CIuny52X.d.mts} +5 -3
- package/dist/{affiliate-BY-BlC9i.d.ts → affiliate-Slb5tO_6.d.ts} +5 -3
- package/dist/{chunk-6UP53CPG.mjs → chunk-BNT4YIYG.mjs} +2 -1
- package/dist/{chunk-6UP53CPG.mjs.map → chunk-BNT4YIYG.mjs.map} +1 -1
- package/dist/{chunk-LHT6WAM2.mjs → chunk-EJPMEGZW.mjs} +8 -6
- package/dist/chunk-EJPMEGZW.mjs.map +1 -0
- package/dist/{chunk-R2XNULRY.mjs → chunk-EWSFVF6C.mjs} +4 -1
- package/dist/{chunk-R2XNULRY.mjs.map → chunk-EWSFVF6C.mjs.map} +1 -1
- package/dist/formFields/index.cjs +4 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +3 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +9 -6
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +3 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +6 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +6 -2
- package/dist/utils/index.d.ts +6 -2
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-LHT6WAM2.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1416,6 +1416,7 @@ var TIER_FROM_LICENCE = {
|
|
|
1416
1416
|
// src/types/affiliate.ts
|
|
1417
1417
|
var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
1418
1418
|
EnumAffiliateRewardType2["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS"] = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS";
|
|
1419
|
+
EnumAffiliateRewardType2["ACTIVE_VENDOR_BONUS_REWARD"] = "ACTIVE_VENDOR_BONUS_REWARD";
|
|
1419
1420
|
EnumAffiliateRewardType2["ACTIVE_VENDOR_PRO_SUBSCRIPTION"] = "ACTIVE_VENDOR_PRO_SUBSCRIPTION";
|
|
1420
1421
|
EnumAffiliateRewardType2["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION"] = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION";
|
|
1421
1422
|
EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
|
|
@@ -1466,10 +1467,8 @@ var paymentMethodOptions = mapArrayToOptions(
|
|
|
1466
1467
|
Object.values(EnumPaymentMethod)
|
|
1467
1468
|
);
|
|
1468
1469
|
function normalizeUrl(url) {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}
|
|
1472
|
-
return url;
|
|
1470
|
+
const withProtocol = !url.startsWith("http://") && !url.startsWith("https://") ? `https://${url}` : url;
|
|
1471
|
+
return withProtocol.replace(/\/+$/, "");
|
|
1473
1472
|
}
|
|
1474
1473
|
var licenseNiceNames = {
|
|
1475
1474
|
["pro_event" /* PRO_EVENT */]: "Pro Event",
|
|
@@ -1554,6 +1553,10 @@ var AFFILIATE_REWARDS = {
|
|
|
1554
1553
|
description: "1 point for active vendor standard subscription (monthly reward)",
|
|
1555
1554
|
value: 1
|
|
1556
1555
|
},
|
|
1556
|
+
["ACTIVE_VENDOR_BONUS_REWARD" /* ACTIVE_VENDOR_BONUS_REWARD */]: {
|
|
1557
|
+
description: "5 bonus points for every 10th active vendor (one-time reward)",
|
|
1558
|
+
value: 5
|
|
1559
|
+
},
|
|
1557
1560
|
["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS" /* ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS */]: {
|
|
1558
1561
|
description: "50 points for active event with vendor registrations (one-time reward)",
|
|
1559
1562
|
value: 50
|
|
@@ -8682,6 +8685,9 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
|
|
|
8682
8685
|
fragment AffiliateFields on AffiliateType {
|
|
8683
8686
|
_id
|
|
8684
8687
|
active
|
|
8688
|
+
affiliateBonusRewards {
|
|
8689
|
+
...AffiliateRewardFields
|
|
8690
|
+
}
|
|
8685
8691
|
affiliateCode
|
|
8686
8692
|
affiliateDetails {
|
|
8687
8693
|
...AffiliateDetailsFields
|