@timardex/cluemart-server-shared 1.0.275 → 1.0.276
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-C4VZFFEU.mjs → chunk-7F45A4FL.mjs} +37 -1
- package/dist/chunk-7F45A4FL.mjs.map +1 -0
- package/dist/index.cjs +36 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +36 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +36 -0
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +36 -0
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-C4VZFFEU.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7382,11 +7382,30 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7382
7382
|
}
|
|
7383
7383
|
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
7384
7384
|
`;
|
|
7385
|
+
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
|
|
7386
|
+
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
7387
|
+
contactDetails {
|
|
7388
|
+
mobilePhone
|
|
7389
|
+
}
|
|
7390
|
+
region
|
|
7391
|
+
socialMedia {
|
|
7392
|
+
...SocialMediaFields
|
|
7393
|
+
}
|
|
7394
|
+
termsAgreement {
|
|
7395
|
+
...TermsAgreementFields
|
|
7396
|
+
}
|
|
7397
|
+
}
|
|
7398
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
7399
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
7400
|
+
`;
|
|
7385
7401
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7386
7402
|
fragment AffiliateFields on AffiliateType {
|
|
7387
7403
|
_id
|
|
7388
7404
|
active
|
|
7389
7405
|
affiliateCode
|
|
7406
|
+
affiliateDetails {
|
|
7407
|
+
...AffiliateDetailsFields
|
|
7408
|
+
}
|
|
7390
7409
|
affiliateResources {
|
|
7391
7410
|
...AffiliateResourceFields
|
|
7392
7411
|
}
|
|
@@ -7398,6 +7417,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
|
7398
7417
|
}
|
|
7399
7418
|
updatedAt
|
|
7400
7419
|
}
|
|
7420
|
+
${AFFILIATE_DETAILS_FIELDS_FRAGMENT}
|
|
7401
7421
|
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
7402
7422
|
${OWNER_FIELDS_FRAGMENT}
|
|
7403
7423
|
`;
|
|
@@ -9175,10 +9195,26 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9175
9195
|
},
|
|
9176
9196
|
{ _id: false }
|
|
9177
9197
|
);
|
|
9198
|
+
var affiliateContactDetailsSchema = new MongooseSchema25(
|
|
9199
|
+
{
|
|
9200
|
+
mobilePhone: { required: true, type: String }
|
|
9201
|
+
},
|
|
9202
|
+
{ _id: false }
|
|
9203
|
+
);
|
|
9204
|
+
var affiliateDetailsSchema = new MongooseSchema25(
|
|
9205
|
+
{
|
|
9206
|
+
contactDetails: { required: true, type: affiliateContactDetailsSchema },
|
|
9207
|
+
region: { required: true, type: String },
|
|
9208
|
+
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
9209
|
+
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
9210
|
+
},
|
|
9211
|
+
{ _id: false }
|
|
9212
|
+
);
|
|
9178
9213
|
var schema17 = new MongooseSchema25(
|
|
9179
9214
|
{
|
|
9180
9215
|
active: { default: false, required: true, type: Boolean },
|
|
9181
9216
|
affiliateCode: { required: true, type: String },
|
|
9217
|
+
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9182
9218
|
affiliateResources: {
|
|
9183
9219
|
default: [],
|
|
9184
9220
|
required: false,
|