@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.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -7453,11 +7453,30 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7453
7453
|
}
|
|
7454
7454
|
${AFFILIATE_REWARD_FIELDS_FRAGMENT}
|
|
7455
7455
|
`;
|
|
7456
|
+
var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql`
|
|
7457
|
+
fragment AffiliateDetailsFields on AffiliateDetailsType {
|
|
7458
|
+
contactDetails {
|
|
7459
|
+
mobilePhone
|
|
7460
|
+
}
|
|
7461
|
+
region
|
|
7462
|
+
socialMedia {
|
|
7463
|
+
...SocialMediaFields
|
|
7464
|
+
}
|
|
7465
|
+
termsAgreement {
|
|
7466
|
+
...TermsAgreementFields
|
|
7467
|
+
}
|
|
7468
|
+
}
|
|
7469
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
7470
|
+
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
7471
|
+
`;
|
|
7456
7472
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7457
7473
|
fragment AffiliateFields on AffiliateType {
|
|
7458
7474
|
_id
|
|
7459
7475
|
active
|
|
7460
7476
|
affiliateCode
|
|
7477
|
+
affiliateDetails {
|
|
7478
|
+
...AffiliateDetailsFields
|
|
7479
|
+
}
|
|
7461
7480
|
affiliateResources {
|
|
7462
7481
|
...AffiliateResourceFields
|
|
7463
7482
|
}
|
|
@@ -7469,6 +7488,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
|
7469
7488
|
}
|
|
7470
7489
|
updatedAt
|
|
7471
7490
|
}
|
|
7491
|
+
${AFFILIATE_DETAILS_FIELDS_FRAGMENT}
|
|
7472
7492
|
${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
|
|
7473
7493
|
${OWNER_FIELDS_FRAGMENT}
|
|
7474
7494
|
`;
|
|
@@ -9381,10 +9401,26 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9381
9401
|
},
|
|
9382
9402
|
{ _id: false }
|
|
9383
9403
|
);
|
|
9404
|
+
var affiliateContactDetailsSchema = new MongooseSchema25(
|
|
9405
|
+
{
|
|
9406
|
+
mobilePhone: { required: true, type: String }
|
|
9407
|
+
},
|
|
9408
|
+
{ _id: false }
|
|
9409
|
+
);
|
|
9410
|
+
var affiliateDetailsSchema = new MongooseSchema25(
|
|
9411
|
+
{
|
|
9412
|
+
contactDetails: { required: true, type: affiliateContactDetailsSchema },
|
|
9413
|
+
region: { required: true, type: String },
|
|
9414
|
+
socialMedia: { required: false, type: [SocialMediaTypeSchema] },
|
|
9415
|
+
termsAgreement: { required: true, type: termsAgreementSchema }
|
|
9416
|
+
},
|
|
9417
|
+
{ _id: false }
|
|
9418
|
+
);
|
|
9384
9419
|
var schema17 = new MongooseSchema25(
|
|
9385
9420
|
{
|
|
9386
9421
|
active: { default: false, required: true, type: Boolean },
|
|
9387
9422
|
affiliateCode: { required: true, type: String },
|
|
9423
|
+
affiliateDetails: { required: false, type: affiliateDetailsSchema },
|
|
9388
9424
|
affiliateResources: {
|
|
9389
9425
|
default: [],
|
|
9390
9426
|
required: false,
|