@timardex/cluemart-server-shared 1.0.39 → 1.0.41

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.
@@ -183,17 +183,20 @@ declare const baseResourceFields: {
183
183
  required: boolean;
184
184
  type: StringConstructor;
185
185
  };
186
- owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
187
- userId: ObjectId;
188
- } & {
189
- _id: mongoose.Types.ObjectId;
190
- } & {
191
- __v: number;
192
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
193
- _id: mongoose.Types.ObjectId;
194
- } & {
195
- __v: number;
196
- }>;
186
+ owner: {
187
+ required: boolean;
188
+ type: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
189
+ userId: ObjectId;
190
+ } & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
199
+ };
197
200
  posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
198
201
  _id: mongoose.Types.ObjectId;
199
202
  } & {
@@ -183,17 +183,20 @@ declare const baseResourceFields: {
183
183
  required: boolean;
184
184
  type: StringConstructor;
185
185
  };
186
- owner: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
187
- userId: ObjectId;
188
- } & {
189
- _id: mongoose.Types.ObjectId;
190
- } & {
191
- __v: number;
192
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
193
- _id: mongoose.Types.ObjectId;
194
- } & {
195
- __v: number;
196
- }>;
186
+ owner: {
187
+ required: boolean;
188
+ type: mongoose.Schema<SchemaOwnerType, mongoose.Model<SchemaOwnerType, any, any, any, mongoose.Document<unknown, any, SchemaOwnerType, any, {}> & Omit<OwnerType, "userId"> & {
189
+ userId: ObjectId;
190
+ } & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaOwnerType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaOwnerType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaOwnerType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
199
+ };
197
200
  posterUsage: mongoose.Schema<PosterUsageType, mongoose.Model<PosterUsageType, any, any, any, mongoose.Document<unknown, any, PosterUsageType, any, {}> & PosterUsageType & {
198
201
  _id: mongoose.Types.ObjectId;
199
202
  } & {
@@ -27,7 +27,7 @@ import {
27
27
  resourceRelationsSchema,
28
28
  termsAgreementSchema,
29
29
  userLicenseSchema
30
- } from "../chunk-4SS4T6XE.mjs";
30
+ } from "../chunk-RD6GJIMM.mjs";
31
31
  import "../chunk-3QS3WKRC.mjs";
32
32
  export {
33
33
  AdModel,
@@ -8307,13 +8307,23 @@ var CATEGORY_FIELDS_FRAGMENT = gql`
8307
8307
  }
8308
8308
  }
8309
8309
  `;
8310
+ var LICENCE_FIELDS_FRAGMENT = gql`
8311
+ fragment LicenceFields on UserLicenceType {
8312
+ expiryDate
8313
+ issuedDate
8314
+ licenceType
8315
+ }
8316
+ `;
8310
8317
  var ASSOCIATES_FIELDS_FRAGMENT = gql`
8311
8318
  fragment AssociatesFields on AssociateType {
8312
8319
  email
8313
8320
  resourceId
8314
8321
  resourceType
8315
- licence
8322
+ licence {
8323
+ ...LicenceFields
8324
+ }
8316
8325
  }
8326
+ ${LICENCE_FIELDS_FRAGMENT}
8317
8327
  `;
8318
8328
  var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql`
8319
8329
  fragment TermsAgreementFields on TermsAgreementType {
@@ -8331,13 +8341,6 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql`
8331
8341
  timestamp
8332
8342
  }
8333
8343
  `;
8334
- var LICENCE_FIELDS_FRAGMENT = gql`
8335
- fragment LicenceFields on UserLicenceType {
8336
- expiryDate
8337
- issuedDate
8338
- licenceType
8339
- }
8340
- `;
8341
8344
  var EVENT_DATETIME_FIELDS_FRAGMENT = gql`
8342
8345
  fragment EventDateTimeFields on EventDateTimeType {
8343
8346
  dateStatus
@@ -10933,7 +10936,10 @@ var baseResourceFields = {
10933
10936
  images: [ResourceImageTypeSchema],
10934
10937
  logo: ResourceImageTypeSchema,
10935
10938
  name: { required: true, type: String },
10936
- owner: OwnerTypeSchema,
10939
+ owner: {
10940
+ required: false,
10941
+ type: OwnerTypeSchema
10942
+ },
10937
10943
  posterUsage: PosterUsageTypeSchema,
10938
10944
  promoCodes: { required: false, type: [String] },
10939
10945
  region: { required: true, type: String },