@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.cjs
CHANGED
|
@@ -7472,11 +7472,30 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7472
7472
|
}
|
|
7473
7473
|
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
7474
7474
|
`;
|
|
7475
|
+
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
|
|
7476
|
+
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
7477
|
+
contactDetails {
|
|
7478
|
+
mobilePhone
|
|
7479
|
+
}
|
|
7480
|
+
region
|
|
7481
|
+
socialMedia {
|
|
7482
|
+
...SocialMediaFields
|
|
7483
|
+
}
|
|
7484
|
+
termsAgreement {
|
|
7485
|
+
...TermsAgreementFields
|
|
7486
|
+
}
|
|
7487
|
+
}
|
|
7488
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
7489
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
7490
|
+
`;
|
|
7475
7491
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7476
7492
|
fragment AffiliateFields on AffiliateType {
|
|
7477
7493
|
_id
|
|
7478
7494
|
active
|
|
7479
7495
|
affiliateCode
|
|
7496
|
+
affiliateDetails {
|
|
7497
|
+
...AffiliateDetailsFields
|
|
7498
|
+
}
|
|
7480
7499
|
affiliateResources {
|
|
7481
7500
|
...AffiliateResourceFields
|
|
7482
7501
|
}
|
|
@@ -7488,6 +7507,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
|
7488
7507
|
}
|
|
7489
7508
|
updatedAt
|
|
7490
7509
|
}
|
|
7510
|
+
${AFFILIATE_DETAILS_FIELDS_FRAGMENT}
|
|
7491
7511
|
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
7492
7512
|
${OWNER_FIELDS_FRAGMENT}
|
|
7493
7513
|
`;
|
|
@@ -9265,10 +9285,26 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9265
9285
|
},
|
|
9266
9286
|
{ _id: false }
|
|
9267
9287
|
);
|
|
9288
|
+
var affiliateContactDetailsSchema = new MongooseSchema25(
|
|
9289
|
+
{
|
|
9290
|
+
mobilePhone: { required: true, type: String }
|
|
9291
|
+
},
|
|
9292
|
+
{ _id: false }
|
|
9293
|
+
);
|
|
9294
|
+
var affiliateDetailsSchema = new MongooseSchema25(
|
|
9295
|
+
{
|
|
9296
|
+
contactDetails: { required: true, type: affiliateContactDetailsSchema },
|
|
9297
|
+
region: { required: true, type: String },
|
|
9298
|
+
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
9299
|
+
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
9300
|
+
},
|
|
9301
|
+
{ _id: false }
|
|
9302
|
+
);
|
|
9268
9303
|
var schema17 = new MongooseSchema25(
|
|
9269
9304
|
{
|
|
9270
9305
|
active: { default: false, required: true, type: Boolean },
|
|
9271
9306
|
affiliateCode: { required: true, type: String },
|
|
9307
|
+
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9272
9308
|
affiliateResources: {
|
|
9273
9309
|
default: [],
|
|
9274
9310
|
required: false,
|