@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/mongoose/index.cjs
CHANGED
|
@@ -7456,11 +7456,30 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7456
7456
|
}
|
|
7457
7457
|
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
7458
7458
|
`;
|
|
7459
|
+
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
|
|
7460
|
+
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
7461
|
+
contactDetails {
|
|
7462
|
+
mobilePhone
|
|
7463
|
+
}
|
|
7464
|
+
region
|
|
7465
|
+
socialMedia {
|
|
7466
|
+
...SocialMediaFields
|
|
7467
|
+
}
|
|
7468
|
+
termsAgreement {
|
|
7469
|
+
...TermsAgreementFields
|
|
7470
|
+
}
|
|
7471
|
+
}
|
|
7472
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
7473
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
7474
|
+
`;
|
|
7459
7475
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7460
7476
|
fragment AffiliateFields on AffiliateType {
|
|
7461
7477
|
_id
|
|
7462
7478
|
active
|
|
7463
7479
|
affiliateCode
|
|
7480
|
+
affiliateDetails {
|
|
7481
|
+
...AffiliateDetailsFields
|
|
7482
|
+
}
|
|
7464
7483
|
affiliateResources {
|
|
7465
7484
|
...AffiliateResourceFields
|
|
7466
7485
|
}
|
|
@@ -7472,6 +7491,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
|
7472
7491
|
}
|
|
7473
7492
|
updatedAt
|
|
7474
7493
|
}
|
|
7494
|
+
${AFFILIATE_DETAILS_FIELDS_FRAGMENT}
|
|
7475
7495
|
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
7476
7496
|
${OWNER_FIELDS_FRAGMENT}
|
|
7477
7497
|
`;
|
|
@@ -9249,10 +9269,26 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9249
9269
|
},
|
|
9250
9270
|
{ _id: false }
|
|
9251
9271
|
);
|
|
9272
|
+
var affiliateContactDetailsSchema = new MongooseSchema25(
|
|
9273
|
+
{
|
|
9274
|
+
mobilePhone: { required: true, type: String }
|
|
9275
|
+
},
|
|
9276
|
+
{ _id: false }
|
|
9277
|
+
);
|
|
9278
|
+
var affiliateDetailsSchema = new MongooseSchema25(
|
|
9279
|
+
{
|
|
9280
|
+
contactDetails: { required: true, type: affiliateContactDetailsSchema },
|
|
9281
|
+
region: { required: true, type: String },
|
|
9282
|
+
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
9283
|
+
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
9284
|
+
},
|
|
9285
|
+
{ _id: false }
|
|
9286
|
+
);
|
|
9252
9287
|
var schema17 = new MongooseSchema25(
|
|
9253
9288
|
{
|
|
9254
9289
|
active: { default: false, required: true, type: Boolean },
|
|
9255
9290
|
affiliateCode: { required: true, type: String },
|
|
9291
|
+
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9256
9292
|
affiliateResources: {
|
|
9257
9293
|
default: [],
|
|
9258
9294
|
required: false,
|