@timardex/cluemart-server-shared 1.0.293 → 1.0.294
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-YLRGIY2S.mjs → chunk-KRA6LV7T.mjs} +2 -2
- package/dist/chunk-KRA6LV7T.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +1 -1
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +1 -1
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +2 -2
- package/dist/service/index.d.ts +2 -2
- package/dist/service/index.mjs +1 -1
- package/dist/service/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-YLRGIY2S.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -831,8 +831,8 @@ declare function createAffiliateReward(rewardType: EnumAffiliateRewardType, crea
|
|
|
831
831
|
/**
|
|
832
832
|
* Loads the affiliate whose `affiliateCode` matches the given promo code.
|
|
833
833
|
*
|
|
834
|
-
*
|
|
835
|
-
*
|
|
834
|
+
* Affiliate codes are assigned on admin activation, so referrals only resolve after
|
|
835
|
+
* a code exists. Soft-deleted affiliates (`deletedAt` set) are excluded.
|
|
836
836
|
*
|
|
837
837
|
* @param promoCode - Normalized affiliate promo code to resolve.
|
|
838
838
|
* @returns The matching affiliate document, or `null` when not found.
|
package/dist/index.d.ts
CHANGED
|
@@ -831,8 +831,8 @@ declare function createAffiliateReward(rewardType: EnumAffiliateRewardType, crea
|
|
|
831
831
|
/**
|
|
832
832
|
* Loads the affiliate whose `affiliateCode` matches the given promo code.
|
|
833
833
|
*
|
|
834
|
-
*
|
|
835
|
-
*
|
|
834
|
+
* Affiliate codes are assigned on admin activation, so referrals only resolve after
|
|
835
|
+
* a code exists. Soft-deleted affiliates (`deletedAt` set) are excluded.
|
|
836
836
|
*
|
|
837
837
|
* @param promoCode - Normalized affiliate promo code to resolve.
|
|
838
838
|
* @returns The matching affiliate document, or `null` when not found.
|
package/dist/index.mjs
CHANGED
|
@@ -9329,7 +9329,7 @@ var schema17 = new MongooseSchema25(
|
|
|
9329
9329
|
required: false,
|
|
9330
9330
|
type: [affiliateRewardSchema]
|
|
9331
9331
|
},
|
|
9332
|
-
affiliateCode: { required:
|
|
9332
|
+
affiliateCode: { default: null, required: false, type: String },
|
|
9333
9333
|
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9334
9334
|
affiliateResources: {
|
|
9335
9335
|
default: [],
|