@timardex/cluemart-server-shared 1.0.58 → 1.0.59

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.
@@ -1680,6 +1680,7 @@ __export(mongoose_exports, {
1680
1680
  ChatModel: () => ChatModel,
1681
1681
  EventInfoModel: () => EventInfoModel,
1682
1682
  EventModel: () => EventModel,
1683
+ GoogleImportedMarketModel: () => GoogleImportedMarketModel,
1683
1684
  NotificationModel: () => NotificationModel,
1684
1685
  ParticipantSchema: () => ParticipantSchema,
1685
1686
  PartnerModel: () => PartnerModel,
@@ -4720,10 +4721,10 @@ var Condition = class _Condition {
4720
4721
  otherwise
4721
4722
  } = config;
4722
4723
  let check = typeof is === "function" ? is : (...values) => values.every((value) => value === is);
4723
- return new _Condition(refs, (values, schema13) => {
4724
+ return new _Condition(refs, (values, schema14) => {
4724
4725
  var _branch;
4725
4726
  let branch = check(...values) ? then : otherwise;
4726
- return (_branch = branch == null ? void 0 : branch(schema13)) != null ? _branch : schema13;
4727
+ return (_branch = branch == null ? void 0 : branch(schema14)) != null ? _branch : schema14;
4727
4728
  });
4728
4729
  }
4729
4730
  constructor(refs, builder) {
@@ -4737,13 +4738,13 @@ var Condition = class _Condition {
4737
4738
  // TODO: ? operator here?
4738
4739
  ref.getValue(options == null ? void 0 : options.value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context)
4739
4740
  ));
4740
- let schema13 = this.fn(values, base, options);
4741
- if (schema13 === void 0 || // @ts-ignore this can be base
4742
- schema13 === base) {
4741
+ let schema14 = this.fn(values, base, options);
4742
+ if (schema14 === void 0 || // @ts-ignore this can be base
4743
+ schema14 === base) {
4743
4744
  return base;
4744
4745
  }
4745
- if (!isSchema(schema13)) throw new TypeError("conditions must return a schema object");
4746
- return schema13.resolve(options);
4746
+ if (!isSchema(schema14)) throw new TypeError("conditions must return a schema object");
4747
+ return schema14.resolve(options);
4747
4748
  }
4748
4749
  };
4749
4750
  var prefixes = {
@@ -4813,7 +4814,7 @@ function createValidation(config) {
4813
4814
  path = "",
4814
4815
  options,
4815
4816
  originalValue,
4816
- schema: schema13
4817
+ schema: schema14
4817
4818
  }, panic, next) {
4818
4819
  const {
4819
4820
  name,
@@ -4825,8 +4826,8 @@ function createValidation(config) {
4825
4826
  let {
4826
4827
  parent,
4827
4828
  context,
4828
- abortEarly = schema13.spec.abortEarly,
4829
- disableStackTrace = schema13.spec.disableStackTrace
4829
+ abortEarly = schema14.spec.abortEarly,
4830
+ disableStackTrace = schema14.spec.disableStackTrace
4830
4831
  } = options;
4831
4832
  const resolveOptions = {
4832
4833
  value,
@@ -4837,9 +4838,9 @@ function createValidation(config) {
4837
4838
  const nextParams = resolveParams(Object.assign({
4838
4839
  value,
4839
4840
  originalValue,
4840
- label: schema13.spec.label,
4841
+ label: schema14.spec.label,
4841
4842
  path: overrides.path || path,
4842
- spec: schema13.spec,
4843
+ spec: schema14.spec,
4843
4844
  disableStackTrace: overrides.disableStackTrace || disableStackTrace
4844
4845
  }, params, overrides.params), resolveOptions);
4845
4846
  const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
@@ -4858,7 +4859,7 @@ function createValidation(config) {
4858
4859
  },
4859
4860
  options,
4860
4861
  originalValue,
4861
- schema: schema13
4862
+ schema: schema14
4862
4863
  };
4863
4864
  const handleResult = (validOrError) => {
4864
4865
  if (ValidationError.isError(validOrError)) invalid(validOrError);
@@ -4902,42 +4903,42 @@ function resolveParams(params, options) {
4902
4903
  function resolveMaybeRef(item, options) {
4903
4904
  return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
4904
4905
  }
4905
- function getIn(schema13, path, value, context = value) {
4906
+ function getIn(schema14, path, value, context = value) {
4906
4907
  let parent, lastPart, lastPartDebug;
4907
4908
  if (!path) return {
4908
4909
  parent,
4909
4910
  parentPath: path,
4910
- schema: schema13
4911
+ schema: schema14
4911
4912
  };
4912
4913
  (0, import_property_expr.forEach)(path, (_part, isBracket, isArray) => {
4913
4914
  let part = isBracket ? _part.slice(1, _part.length - 1) : _part;
4914
- schema13 = schema13.resolve({
4915
+ schema14 = schema14.resolve({
4915
4916
  context,
4916
4917
  parent,
4917
4918
  value
4918
4919
  });
4919
- let isTuple = schema13.type === "tuple";
4920
+ let isTuple = schema14.type === "tuple";
4920
4921
  let idx = isArray ? parseInt(part, 10) : 0;
4921
- if (schema13.innerType || isTuple) {
4922
+ if (schema14.innerType || isTuple) {
4922
4923
  if (isTuple && !isArray) throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${lastPartDebug}" must contain an index to the tuple element, e.g. "${lastPartDebug}[0]"`);
4923
4924
  if (value && idx >= value.length) {
4924
4925
  throw new Error(`Yup.reach cannot resolve an array item at index: ${_part}, in the path: ${path}. because there is no value at that index. `);
4925
4926
  }
4926
4927
  parent = value;
4927
4928
  value = value && value[idx];
4928
- schema13 = isTuple ? schema13.spec.types[idx] : schema13.innerType;
4929
+ schema14 = isTuple ? schema14.spec.types[idx] : schema14.innerType;
4929
4930
  }
4930
4931
  if (!isArray) {
4931
- if (!schema13.fields || !schema13.fields[part]) throw new Error(`The schema does not contain the path: ${path}. (failed at: ${lastPartDebug} which is a type: "${schema13.type}")`);
4932
+ if (!schema14.fields || !schema14.fields[part]) throw new Error(`The schema does not contain the path: ${path}. (failed at: ${lastPartDebug} which is a type: "${schema14.type}")`);
4932
4933
  parent = value;
4933
4934
  value = value && value[part];
4934
- schema13 = schema13.fields[part];
4935
+ schema14 = schema14.fields[part];
4935
4936
  }
4936
4937
  lastPart = part;
4937
4938
  lastPartDebug = isBracket ? "[" + _part + "]" : "." + _part;
4938
4939
  });
4939
4940
  return {
4940
- schema: schema13,
4941
+ schema: schema14,
4941
4942
  parent,
4942
4943
  parentPath: lastPart
4943
4944
  };
@@ -5137,20 +5138,20 @@ var Schema = class {
5137
5138
  this._mutate = before;
5138
5139
  return result;
5139
5140
  }
5140
- concat(schema13) {
5141
- if (!schema13 || schema13 === this) return this;
5142
- if (schema13.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema13.type}`);
5141
+ concat(schema14) {
5142
+ if (!schema14 || schema14 === this) return this;
5143
+ if (schema14.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema14.type}`);
5143
5144
  let base = this;
5144
- let combined = schema13.clone();
5145
+ let combined = schema14.clone();
5145
5146
  const mergedSpec = Object.assign({}, base.spec, combined.spec);
5146
5147
  combined.spec = mergedSpec;
5147
5148
  combined.internalTests = Object.assign({}, base.internalTests, combined.internalTests);
5148
- combined._whitelist = base._whitelist.merge(schema13._whitelist, schema13._blacklist);
5149
- combined._blacklist = base._blacklist.merge(schema13._blacklist, schema13._whitelist);
5149
+ combined._whitelist = base._whitelist.merge(schema14._whitelist, schema14._blacklist);
5150
+ combined._blacklist = base._blacklist.merge(schema14._blacklist, schema14._whitelist);
5150
5151
  combined.tests = base.tests;
5151
5152
  combined.exclusiveTests = base.exclusiveTests;
5152
5153
  combined.withMutation((next) => {
5153
- schema13.tests.forEach((fn) => {
5154
+ schema14.tests.forEach((fn) => {
5154
5155
  next.test(fn.OPTIONS);
5155
5156
  });
5156
5157
  });
@@ -5166,15 +5167,15 @@ var Schema = class {
5166
5167
  return this._typeCheck(v);
5167
5168
  }
5168
5169
  resolve(options) {
5169
- let schema13 = this;
5170
- if (schema13.conditions.length) {
5171
- let conditions = schema13.conditions;
5172
- schema13 = schema13.clone();
5173
- schema13.conditions = [];
5174
- schema13 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema13);
5175
- schema13 = schema13.resolve(options);
5170
+ let schema14 = this;
5171
+ if (schema14.conditions.length) {
5172
+ let conditions = schema14.conditions;
5173
+ schema14 = schema14.clone();
5174
+ schema14.conditions = [];
5175
+ schema14 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema14);
5176
+ schema14 = schema14.resolve(options);
5176
5177
  }
5177
- return schema13;
5178
+ return schema14;
5178
5179
  }
5179
5180
  resolveOptions(options) {
5180
5181
  var _options$strict, _options$abortEarly, _options$recursive, _options$disableStack;
@@ -5330,11 +5331,11 @@ attempted value: ${formattedValue}
5330
5331
  }
5331
5332
  validate(value, options) {
5332
5333
  var _options$disableStack2;
5333
- let schema13 = this.resolve(Object.assign({}, options, {
5334
+ let schema14 = this.resolve(Object.assign({}, options, {
5334
5335
  value
5335
5336
  }));
5336
- let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema13.spec.disableStackTrace;
5337
- return new Promise((resolve, reject) => schema13._validate(value, options, (error, parsed) => {
5337
+ let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema14.spec.disableStackTrace;
5338
+ return new Promise((resolve, reject) => schema14._validate(value, options, (error, parsed) => {
5338
5339
  if (ValidationError.isError(error)) error.value = parsed;
5339
5340
  reject(error);
5340
5341
  }, (errors, validated) => {
@@ -5344,12 +5345,12 @@ attempted value: ${formattedValue}
5344
5345
  }
5345
5346
  validateSync(value, options) {
5346
5347
  var _options$disableStack3;
5347
- let schema13 = this.resolve(Object.assign({}, options, {
5348
+ let schema14 = this.resolve(Object.assign({}, options, {
5348
5349
  value
5349
5350
  }));
5350
5351
  let result;
5351
- let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema13.spec.disableStackTrace;
5352
- schema13._validate(value, Object.assign({}, options, {
5352
+ let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema14.spec.disableStackTrace;
5353
+ schema14._validate(value, Object.assign({}, options, {
5353
5354
  sync: true
5354
5355
  }), (error, parsed) => {
5355
5356
  if (ValidationError.isError(error)) error.value = parsed;
@@ -5383,8 +5384,8 @@ attempted value: ${formattedValue}
5383
5384
  return typeof defaultValue === "function" ? defaultValue.call(this, options) : clone(defaultValue);
5384
5385
  }
5385
5386
  getDefault(options) {
5386
- let schema13 = this.resolve(options || {});
5387
- return schema13._getDefault(options);
5387
+ let schema14 = this.resolve(options || {});
5388
+ return schema14._getDefault(options);
5388
5389
  }
5389
5390
  default(def) {
5390
5391
  if (arguments.length === 0) {
@@ -5617,13 +5618,13 @@ attempted value: ${formattedValue}
5617
5618
  return description;
5618
5619
  }
5619
5620
  get ["~standard"]() {
5620
- const schema13 = this;
5621
+ const schema14 = this;
5621
5622
  const standard = {
5622
5623
  version: 1,
5623
5624
  vendor: "yup",
5624
5625
  async validate(value) {
5625
5626
  try {
5626
- const result = await schema13.validate(value, {
5627
+ const result = await schema14.validate(value, {
5627
5628
  abortEarly: false
5628
5629
  });
5629
5630
  return {
@@ -5647,9 +5648,9 @@ for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At
5647
5648
  const {
5648
5649
  parent,
5649
5650
  parentPath,
5650
- schema: schema13
5651
+ schema: schema14
5651
5652
  } = getIn(this, path, value, options.context);
5652
- return schema13[method](parent && parent[parentPath], Object.assign({}, options, {
5653
+ return schema14[method](parent && parent[parentPath], Object.assign({}, options, {
5653
5654
  parent,
5654
5655
  path
5655
5656
  }));
@@ -5823,7 +5824,7 @@ var StringSchema = class extends Schema {
5823
5824
  });
5824
5825
  }
5825
5826
  required(message) {
5826
- return super.required(message).withMutation((schema13) => schema13.test({
5827
+ return super.required(message).withMutation((schema14) => schema14.test({
5827
5828
  message: message || mixed.required,
5828
5829
  name: "required",
5829
5830
  skipAbsent: true,
@@ -5831,9 +5832,9 @@ var StringSchema = class extends Schema {
5831
5832
  }));
5832
5833
  }
5833
5834
  notRequired() {
5834
- return super.notRequired().withMutation((schema13) => {
5835
- schema13.tests = schema13.tests.filter((t) => t.OPTIONS.name !== "required");
5836
- return schema13;
5835
+ return super.notRequired().withMutation((schema14) => {
5836
+ schema14.tests = schema14.tests.filter((t) => t.OPTIONS.name !== "required");
5837
+ return schema14;
5837
5838
  });
5838
5839
  }
5839
5840
  length(length, message = string.length) {
@@ -6211,7 +6212,7 @@ function sortByKeyOrder(keys) {
6211
6212
  return findIndex(keys, a) - findIndex(keys, b);
6212
6213
  };
6213
6214
  }
6214
- var parseJson = (value, _, schema13) => {
6215
+ var parseJson = (value, _, schema14) => {
6215
6216
  if (typeof value !== "string") {
6216
6217
  return value;
6217
6218
  }
@@ -6220,30 +6221,30 @@ var parseJson = (value, _, schema13) => {
6220
6221
  parsed = JSON.parse(value);
6221
6222
  } catch (err) {
6222
6223
  }
6223
- return schema13.isType(parsed) ? parsed : value;
6224
+ return schema14.isType(parsed) ? parsed : value;
6224
6225
  };
6225
- function deepPartial(schema13) {
6226
- if ("fields" in schema13) {
6226
+ function deepPartial(schema14) {
6227
+ if ("fields" in schema14) {
6227
6228
  const partial = {};
6228
- for (const [key, fieldSchema] of Object.entries(schema13.fields)) {
6229
+ for (const [key, fieldSchema] of Object.entries(schema14.fields)) {
6229
6230
  partial[key] = deepPartial(fieldSchema);
6230
6231
  }
6231
- return schema13.setFields(partial);
6232
+ return schema14.setFields(partial);
6232
6233
  }
6233
- if (schema13.type === "array") {
6234
- const nextArray = schema13.optional();
6234
+ if (schema14.type === "array") {
6235
+ const nextArray = schema14.optional();
6235
6236
  if (nextArray.innerType) nextArray.innerType = deepPartial(nextArray.innerType);
6236
6237
  return nextArray;
6237
6238
  }
6238
- if (schema13.type === "tuple") {
6239
- return schema13.optional().clone({
6240
- types: schema13.spec.types.map(deepPartial)
6239
+ if (schema14.type === "tuple") {
6240
+ return schema14.optional().clone({
6241
+ types: schema14.spec.types.map(deepPartial)
6241
6242
  });
6242
6243
  }
6243
- if ("optional" in schema13) {
6244
- return schema13.optional();
6244
+ if ("optional" in schema14) {
6245
+ return schema14.optional();
6245
6246
  }
6246
- return schema13;
6247
+ return schema14;
6247
6248
  }
6248
6249
  var deepHas = (obj, p) => {
6249
6250
  const path = [...(0, import_property_expr.normalizePath)(p)];
@@ -6374,8 +6375,8 @@ var ObjectSchema = class extends Schema {
6374
6375
  next._sortErrors = this._sortErrors;
6375
6376
  return next;
6376
6377
  }
6377
- concat(schema13) {
6378
- let next = super.concat(schema13);
6378
+ concat(schema14) {
6379
+ let next = super.concat(schema14);
6379
6380
  let nextFields = next.fields;
6380
6381
  for (let [field, schemaOrRef] of Object.entries(this.fields)) {
6381
6382
  const target = nextFields[field];
@@ -6383,7 +6384,7 @@ var ObjectSchema = class extends Schema {
6383
6384
  }
6384
6385
  return next.withMutation((s2) => (
6385
6386
  // XXX: excludes here is wrong
6386
- s2.setFields(nextFields, [...this._excludedEdges, ...schema13._excludedEdges])
6387
+ s2.setFields(nextFields, [...this._excludedEdges, ...schema14._excludedEdges])
6387
6388
  ));
6388
6389
  }
6389
6390
  _getDefault(options) {
@@ -6428,8 +6429,8 @@ var ObjectSchema = class extends Schema {
6428
6429
  }
6429
6430
  partial() {
6430
6431
  const partial = {};
6431
- for (const [key, schema13] of Object.entries(this.fields)) {
6432
- partial[key] = "optional" in schema13 && schema13.optional instanceof Function ? schema13.optional() : schema13;
6432
+ for (const [key, schema14] of Object.entries(this.fields)) {
6433
+ partial[key] = "optional" in schema14 && schema14.optional instanceof Function ? schema14.optional() : schema14;
6433
6434
  }
6434
6435
  return this.setFields(partial);
6435
6436
  }
@@ -6631,22 +6632,22 @@ var ArraySchema = class extends Schema {
6631
6632
  json() {
6632
6633
  return this.transform(parseJson);
6633
6634
  }
6634
- concat(schema13) {
6635
- let next = super.concat(schema13);
6635
+ concat(schema14) {
6636
+ let next = super.concat(schema14);
6636
6637
  next.innerType = this.innerType;
6637
- if (schema13.innerType)
6638
+ if (schema14.innerType)
6638
6639
  next.innerType = next.innerType ? (
6639
6640
  // @ts-expect-error Lazy doesn't have concat and will break
6640
- next.innerType.concat(schema13.innerType)
6641
- ) : schema13.innerType;
6641
+ next.innerType.concat(schema14.innerType)
6642
+ ) : schema14.innerType;
6642
6643
  return next;
6643
6644
  }
6644
- of(schema13) {
6645
+ of(schema14) {
6645
6646
  let next = this.clone();
6646
- if (!isSchema(schema13)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema13));
6647
- next.innerType = schema13;
6647
+ if (!isSchema(schema14)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema14));
6648
+ next.innerType = schema14;
6648
6649
  next.spec = Object.assign({}, next.spec, {
6649
- types: schema13
6650
+ types: schema14
6650
6651
  });
6651
6652
  return next;
6652
6653
  }
@@ -6794,7 +6795,7 @@ var TupleSchema = class extends Schema {
6794
6795
  describe(options) {
6795
6796
  const next = (options ? this.resolve(options) : this).clone();
6796
6797
  const base = super.describe(options);
6797
- base.innerType = next.spec.types.map((schema13, index) => {
6798
+ base.innerType = next.spec.types.map((schema14, index) => {
6798
6799
  var _innerOptions;
6799
6800
  let innerOptions = options;
6800
6801
  if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
@@ -6803,7 +6804,7 @@ var TupleSchema = class extends Schema {
6803
6804
  value: innerOptions.value[index]
6804
6805
  });
6805
6806
  }
6806
- return schema13.describe(innerOptions);
6807
+ return schema14.describe(innerOptions);
6807
6808
  });
6808
6809
  return base;
6809
6810
  }
@@ -10209,7 +10210,7 @@ var socialMediaSchema = create$3({
10209
10210
  is: (name) => !!name,
10210
10211
  // If name has a value
10211
10212
  then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
10212
- otherwise: (schema13) => schema13.notRequired()
10213
+ otherwise: (schema14) => schema14.notRequired()
10213
10214
  })
10214
10215
  });
10215
10216
  var globalResourceSchema = create$3().shape({
@@ -10282,21 +10283,21 @@ var paymentInfoSchema = create$3({
10282
10283
  paymentMethod: create$8().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
10283
10284
  accountHolderName: create$6().when("paymentMethod", {
10284
10285
  is: "bank_transfer",
10285
- then: (schema13) => schema13.required("Account holder name is required for bank transfer").trim(),
10286
- otherwise: (schema13) => schema13.notRequired()
10286
+ then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
10287
+ otherwise: (schema14) => schema14.notRequired()
10287
10288
  }),
10288
10289
  accountNumber: create$6().when("paymentMethod", {
10289
10290
  is: "bank_transfer",
10290
- then: (schema13) => schema13.required("Account number is required for bank transfer").matches(
10291
+ then: (schema14) => schema14.required("Account number is required for bank transfer").matches(
10291
10292
  nzBankAccountRegex,
10292
10293
  "Account number must be in format: XX-XXXX-XXXXXXX-XX"
10293
10294
  ).trim(),
10294
- otherwise: (schema13) => schema13.notRequired()
10295
+ otherwise: (schema14) => schema14.notRequired()
10295
10296
  }),
10296
10297
  link: create$6().when("paymentMethod", {
10297
10298
  is: (val) => val === "paypal" || val === "stripe",
10298
10299
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
10299
- otherwise: (schema13) => schema13.notRequired()
10300
+ otherwise: (schema14) => schema14.notRequired()
10300
10301
  })
10301
10302
  });
10302
10303
  var eventInfoSchema = create$3().shape({
@@ -10409,8 +10410,8 @@ var userSchema = create$3().shape({
10409
10410
  confirmPassword: create$6().nullable().trim().label("Confirm Password").when("password", {
10410
10411
  is: (val) => !!val,
10411
10412
  // only necessary if password typed
10412
- then: (schema13) => schema13.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10413
- otherwise: (schema13) => schema13.notRequired()
10413
+ then: (schema14) => schema14.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10414
+ otherwise: (schema14) => schema14.notRequired()
10414
10415
  }),
10415
10416
  role: create$8().oneOf(Object.values(EnumUserRole)).required("Role is required")
10416
10417
  });
@@ -10528,8 +10529,8 @@ var testerSchema = create$3().shape({
10528
10529
  email: emailRequiredSchema,
10529
10530
  event: create$3().when("resourceType", {
10530
10531
  is: (resourceType) => resourceType === "event",
10531
- otherwise: (schema13) => schema13.nullable().optional(),
10532
- then: (schema13) => schema13.required("Event information is required").shape(testerEventSchema.fields)
10532
+ otherwise: (schema14) => schema14.nullable().optional(),
10533
+ then: (schema14) => schema14.required("Event information is required").shape(testerEventSchema.fields)
10533
10534
  }),
10534
10535
  firstName: create$6().required("First name is required"),
10535
10536
  lastName: create$6().required("Last name is required"),
@@ -10547,8 +10548,8 @@ var testerSchema = create$3().shape({
10547
10548
  ).required("Resource Type is required"),
10548
10549
  vendor: create$3().when("resourceType", {
10549
10550
  is: (resourceType) => resourceType === "vendor",
10550
- otherwise: (schema13) => schema13.nullable().optional(),
10551
- then: (schema13) => schema13.required("Vendor information is required").shape(testerVendorSchema.fields)
10551
+ otherwise: (schema14) => schema14.nullable().optional(),
10552
+ then: (schema14) => schema14.required("Vendor information is required").shape(testerVendorSchema.fields)
10552
10553
  })
10553
10554
  });
10554
10555
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -10586,7 +10587,7 @@ var adSchema = create$3().shape({
10586
10587
  return endDate > now;
10587
10588
  }).when("start", {
10588
10589
  is: (val) => val && val.length > 0,
10589
- then: (schema13) => schema13.test(
10590
+ then: (schema14) => schema14.test(
10590
10591
  "is-after-start",
10591
10592
  "End date must be after start date",
10592
10593
  function(value) {
@@ -11201,10 +11202,60 @@ ChatSchema.index({
11201
11202
  });
11202
11203
  var ChatModel = import_mongoose5.default.models.Chat || import_mongoose5.default.model("Chat", ChatSchema);
11203
11204
 
11204
- // src/mongoose/Notification.ts
11205
+ // src/mongoose/GoogleImportedMarket.ts
11205
11206
  var import_mongoose6 = __toESM(require("mongoose"));
11206
11207
  var MongooseSchema6 = import_mongoose6.default.Schema;
11208
+ var locationSchema2 = new MongooseSchema6(
11209
+ {
11210
+ lat: { required: true, type: Number },
11211
+ lng: { required: true, type: Number }
11212
+ },
11213
+ { _id: false }
11214
+ // Prevents Mongoose from creating an additional _id field for subdocuments
11215
+ );
11207
11216
  var schema3 = new MongooseSchema6(
11217
+ {
11218
+ address: { required: true, type: String },
11219
+ businessStatus: { required: false, type: String },
11220
+ claimed: { default: false, required: true, type: Boolean },
11221
+ googleMapsUrl: { required: false, type: String },
11222
+ googlePlaceId: {
11223
+ required: true,
11224
+ type: String,
11225
+ unique: true
11226
+ // unique, indexed
11227
+ },
11228
+ image: { required: false, type: String },
11229
+ // photo_reference only
11230
+ importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11231
+ location: {
11232
+ required: false,
11233
+ // optional because lat/lng may expire after 30 days
11234
+ type: locationSchema2
11235
+ },
11236
+ name: { required: true, type: String },
11237
+ openingHours: { required: false, type: [String] },
11238
+ phone: { required: false, type: String },
11239
+ photos: { required: false, type: [String] },
11240
+ // array of photo_reference
11241
+ rating: { required: false, type: Number },
11242
+ reviewCount: { required: false, type: Number },
11243
+ slug: { required: true, type: String },
11244
+ website: { required: false, type: String }
11245
+ },
11246
+ { timestamps: true }
11247
+ );
11248
+ schema3.index({ googlePlaceId: 1 });
11249
+ schema3.index({ name: 1 });
11250
+ schema3.index({ slug: 1 });
11251
+ schema3.index({ address: 1 });
11252
+ schema3.index({ "location.lat": 1, "location.lng": 1 });
11253
+ var GoogleImportedMarketModel = import_mongoose6.default.models.GoogleImportedMarket || import_mongoose6.default.model("GoogleImportedMarket", schema3);
11254
+
11255
+ // src/mongoose/Notification.ts
11256
+ var import_mongoose7 = __toESM(require("mongoose"));
11257
+ var MongooseSchema7 = import_mongoose7.default.Schema;
11258
+ var schema4 = new MongooseSchema7(
11208
11259
  {
11209
11260
  data: {
11210
11261
  resourceId: { required: true, type: String },
@@ -11227,14 +11278,14 @@ var schema3 = new MongooseSchema6(
11227
11278
  userId: {
11228
11279
  ref: "User",
11229
11280
  required: true,
11230
- type: import_mongoose6.default.Schema.Types.ObjectId
11281
+ type: import_mongoose7.default.Schema.Types.ObjectId
11231
11282
  }
11232
11283
  },
11233
11284
  { timestamps: true }
11234
11285
  );
11235
- schema3.index({ isRead: 1, userId: 1 });
11236
- schema3.index({ createdAt: -1, userId: 1 });
11237
- var NotificationModel = import_mongoose6.default.models.Notification || import_mongoose6.default.model("Notification", schema3);
11286
+ schema4.index({ isRead: 1, userId: 1 });
11287
+ schema4.index({ createdAt: -1, userId: 1 });
11288
+ var NotificationModel = import_mongoose7.default.models.Notification || import_mongoose7.default.model("Notification", schema4);
11238
11289
 
11239
11290
  // node_modules/@timardex/cluemart-shared/dist/chunk-OBQRGWV3.mjs
11240
11291
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
@@ -11245,9 +11296,9 @@ var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11245
11296
  })(EnumOSPlatform2 || {});
11246
11297
 
11247
11298
  // src/mongoose/PushToken.ts
11248
- var import_mongoose7 = __toESM(require("mongoose"));
11249
- var MongooseSchema7 = import_mongoose7.default.Schema;
11250
- var schema4 = new MongooseSchema7(
11299
+ var import_mongoose8 = __toESM(require("mongoose"));
11300
+ var MongooseSchema8 = import_mongoose8.default.Schema;
11301
+ var schema5 = new MongooseSchema8(
11251
11302
  {
11252
11303
  platform: {
11253
11304
  enum: Object.values(EnumOSPlatform2),
@@ -11255,16 +11306,16 @@ var schema4 = new MongooseSchema7(
11255
11306
  type: String
11256
11307
  },
11257
11308
  token: { required: true, type: String },
11258
- userId: { required: true, type: import_mongoose7.default.Schema.Types.ObjectId }
11309
+ userId: { required: true, type: import_mongoose8.default.Schema.Types.ObjectId }
11259
11310
  },
11260
11311
  { timestamps: true }
11261
11312
  );
11262
- var PushTokenModel = import_mongoose7.default.models.PushToken || import_mongoose7.default.model("PushToken", schema4);
11313
+ var PushTokenModel = import_mongoose8.default.models.PushToken || import_mongoose8.default.model("PushToken", schema5);
11263
11314
 
11264
11315
  // src/mongoose/ResourceActivity.ts
11265
- var import_mongoose8 = __toESM(require("mongoose"));
11266
- var MongooseSchema8 = import_mongoose8.default.Schema;
11267
- var ActivitySchema = new MongooseSchema8(
11316
+ var import_mongoose9 = __toESM(require("mongoose"));
11317
+ var MongooseSchema9 = import_mongoose9.default.Schema;
11318
+ var ActivitySchema = new MongooseSchema9(
11268
11319
  {
11269
11320
  activityType: {
11270
11321
  enum: Object.values(EnumActivity),
@@ -11300,7 +11351,7 @@ var ActivitySchema = new MongooseSchema8(
11300
11351
  },
11301
11352
  { _id: false }
11302
11353
  );
11303
- var schema5 = new MongooseSchema8(
11354
+ var schema6 = new MongooseSchema9(
11304
11355
  {
11305
11356
  activity: { default: [], type: [ActivitySchema] },
11306
11357
  resourceId: { required: true, type: String },
@@ -11312,14 +11363,14 @@ var schema5 = new MongooseSchema8(
11312
11363
  },
11313
11364
  { timestamps: true }
11314
11365
  );
11315
- schema5.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11316
- schema5.index({ "views.location": "2dsphere" });
11317
- var ResourceActivityModel = import_mongoose8.default.models.ResourceActivity || import_mongoose8.default.model("ResourceActivity", schema5);
11366
+ schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11367
+ schema6.index({ "views.location": "2dsphere" });
11368
+ var ResourceActivityModel = import_mongoose9.default.models.ResourceActivity || import_mongoose9.default.model("ResourceActivity", schema6);
11318
11369
 
11319
11370
  // src/mongoose/Tester.ts
11320
- var import_mongoose9 = __toESM(require("mongoose"));
11321
- var MongooseSchema9 = import_mongoose9.default.Schema;
11322
- var TesterVendorQuestionarySchema = new MongooseSchema9(
11371
+ var import_mongoose10 = __toESM(require("mongoose"));
11372
+ var MongooseSchema10 = import_mongoose10.default.Schema;
11373
+ var TesterVendorQuestionarySchema = new MongooseSchema10(
11323
11374
  {
11324
11375
  appearInVideoIntroduction: {
11325
11376
  default: false,
@@ -11346,7 +11397,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema9(
11346
11397
  },
11347
11398
  { _id: false }
11348
11399
  );
11349
- var TesterVendorSchema = new MongooseSchema9(
11400
+ var TesterVendorSchema = new MongooseSchema10(
11350
11401
  {
11351
11402
  categories: { required: true, type: [CategorySchema] },
11352
11403
  marketsAttended: {
@@ -11372,7 +11423,7 @@ var TesterVendorSchema = new MongooseSchema9(
11372
11423
  },
11373
11424
  { _id: false }
11374
11425
  );
11375
- var TesterEventQuestionarySchema = new MongooseSchema9(
11426
+ var TesterEventQuestionarySchema = new MongooseSchema10(
11376
11427
  {
11377
11428
  allowMarketingAppearance: {
11378
11429
  default: false,
@@ -11407,7 +11458,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
11407
11458
  },
11408
11459
  { _id: false }
11409
11460
  );
11410
- var TesterEventsSchema = new MongooseSchema9(
11461
+ var TesterEventsSchema = new MongooseSchema10(
11411
11462
  {
11412
11463
  markets: {
11413
11464
  required: true,
@@ -11436,7 +11487,7 @@ var TesterEventsSchema = new MongooseSchema9(
11436
11487
  },
11437
11488
  { _id: false }
11438
11489
  );
11439
- var TesterSchema = new MongooseSchema9(
11490
+ var TesterSchema = new MongooseSchema10(
11440
11491
  {
11441
11492
  active: { default: false, required: true, type: Boolean },
11442
11493
  approved: { default: false, required: true, type: Boolean },
@@ -11470,43 +11521,43 @@ var TesterSchema = new MongooseSchema9(
11470
11521
  timestamps: true
11471
11522
  }
11472
11523
  );
11473
- var TesterModel = import_mongoose9.default.models.Tester || import_mongoose9.default.model("Tester", TesterSchema);
11524
+ var TesterModel = import_mongoose10.default.models.Tester || import_mongoose10.default.model("Tester", TesterSchema);
11474
11525
 
11475
11526
  // src/mongoose/User.ts
11476
- var import_mongoose10 = __toESM(require("mongoose"));
11477
- var MongooseSchema10 = import_mongoose10.default.Schema;
11478
- var userActivityEventSchema = new MongooseSchema10(
11527
+ var import_mongoose11 = __toESM(require("mongoose"));
11528
+ var MongooseSchema11 = import_mongoose11.default.Schema;
11529
+ var userActivityEventSchema = new MongooseSchema11(
11479
11530
  {
11480
11531
  dateTime: dateTimeSchema3,
11481
11532
  resourceId: {
11482
11533
  ref: "Event",
11483
11534
  required: false,
11484
- type: import_mongoose10.default.Schema.Types.ObjectId
11535
+ type: import_mongoose11.default.Schema.Types.ObjectId
11485
11536
  }
11486
11537
  },
11487
11538
  { _id: false }
11488
11539
  );
11489
- var userActivityFavouritesSchema = new MongooseSchema10(
11540
+ var userActivityFavouritesSchema = new MongooseSchema11(
11490
11541
  {
11491
11542
  events: {
11492
11543
  ref: "Event",
11493
11544
  required: false,
11494
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11545
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11495
11546
  },
11496
11547
  partners: {
11497
11548
  ref: "Partner",
11498
11549
  required: false,
11499
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11550
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11500
11551
  },
11501
11552
  vendors: {
11502
11553
  ref: "Vendor",
11503
11554
  required: false,
11504
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11555
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11505
11556
  }
11506
11557
  },
11507
11558
  { _id: false }
11508
11559
  );
11509
- var stripeSchema = new MongooseSchema10(
11560
+ var stripeSchema = new MongooseSchema11(
11510
11561
  {
11511
11562
  currentPlan: {
11512
11563
  enum: Object.values(EnumUserLicence),
@@ -11537,7 +11588,7 @@ var stripeSchema = new MongooseSchema10(
11537
11588
  },
11538
11589
  { _id: false }
11539
11590
  );
11540
- var schema6 = new MongooseSchema10(
11591
+ var schema7 = new MongooseSchema11(
11541
11592
  {
11542
11593
  active: { default: false, required: true, type: Boolean },
11543
11594
  associates: {
@@ -11553,7 +11604,7 @@ var schema6 = new MongooseSchema10(
11553
11604
  events: {
11554
11605
  ref: "Event",
11555
11606
  required: false,
11556
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11607
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11557
11608
  },
11558
11609
  firstName: { required: true, type: String },
11559
11610
  isTester: { default: false, required: true, type: Boolean },
@@ -11565,7 +11616,7 @@ var schema6 = new MongooseSchema10(
11565
11616
  partner: {
11566
11617
  ref: "Partner",
11567
11618
  required: false,
11568
- type: import_mongoose10.default.Schema.Types.ObjectId
11619
+ type: import_mongoose11.default.Schema.Types.ObjectId
11569
11620
  },
11570
11621
  password: { required: true, type: String },
11571
11622
  platform: {
@@ -11610,20 +11661,20 @@ var schema6 = new MongooseSchema10(
11610
11661
  vendor: {
11611
11662
  ref: "Vendor",
11612
11663
  required: false,
11613
- type: import_mongoose10.default.Schema.Types.ObjectId
11664
+ type: import_mongoose11.default.Schema.Types.ObjectId
11614
11665
  }
11615
11666
  },
11616
11667
  { strict: false, timestamps: true }
11617
11668
  );
11618
- schema6.index({ "associates.email": 1 });
11619
- schema6.index({ "licences.expiryDate": 1 });
11620
- schema6.index({ "licences.licenceType": 1 });
11621
- var UserModel = import_mongoose10.default.models.User || import_mongoose10.default.model("User", schema6);
11669
+ schema7.index({ "associates.email": 1 });
11670
+ schema7.index({ "licences.expiryDate": 1 });
11671
+ schema7.index({ "licences.licenceType": 1 });
11672
+ var UserModel = import_mongoose11.default.models.User || import_mongoose11.default.model("User", schema7);
11622
11673
 
11623
11674
  // src/mongoose/VerificationToken.ts
11624
- var import_mongoose11 = __toESM(require("mongoose"));
11625
- var MongooseSchema11 = import_mongoose11.default.Schema;
11626
- var schema7 = new MongooseSchema11(
11675
+ var import_mongoose12 = __toESM(require("mongoose"));
11676
+ var MongooseSchema12 = import_mongoose12.default.Schema;
11677
+ var schema8 = new MongooseSchema12(
11627
11678
  {
11628
11679
  createdAt: {
11629
11680
  default: Date.now,
@@ -11638,12 +11689,12 @@ var schema7 = new MongooseSchema11(
11638
11689
  },
11639
11690
  { timestamps: true }
11640
11691
  );
11641
- var VerificationTokenModel = import_mongoose11.default.models.VerificationToken || import_mongoose11.default.model("VerificationToken", schema7);
11692
+ var VerificationTokenModel = import_mongoose12.default.models.VerificationToken || import_mongoose12.default.model("VerificationToken", schema8);
11642
11693
 
11643
11694
  // src/mongoose/vendor/Vendor.ts
11644
- var import_mongoose12 = __toESM(require("mongoose"));
11645
- var MongooseSchema12 = import_mongoose12.default.Schema;
11646
- var MenuTypeSchema = new MongooseSchema12(
11695
+ var import_mongoose13 = __toESM(require("mongoose"));
11696
+ var MongooseSchema13 = import_mongoose13.default.Schema;
11697
+ var MenuTypeSchema = new MongooseSchema13(
11647
11698
  {
11648
11699
  description: { required: false, type: String },
11649
11700
  name: { required: false, type: String },
@@ -11653,7 +11704,7 @@ var MenuTypeSchema = new MongooseSchema12(
11653
11704
  { _id: false }
11654
11705
  // Prevents Mongoose from creating an additional _id field for subdocuments
11655
11706
  );
11656
- var LocationsSchema = new MongooseSchema12(
11707
+ var LocationsSchema = new MongooseSchema13(
11657
11708
  {
11658
11709
  dateTime: {
11659
11710
  dateStatus: {
@@ -11686,7 +11737,7 @@ var LocationsSchema = new MongooseSchema12(
11686
11737
  { _id: false }
11687
11738
  // Prevents Mongoose from creating an additional _id field for subdocuments
11688
11739
  );
11689
- var schema8 = new MongooseSchema12(
11740
+ var schema9 = new MongooseSchema13(
11690
11741
  {
11691
11742
  ...baseResourceFields,
11692
11743
  // Importing base resource fields from global.ts
@@ -11708,7 +11759,7 @@ var schema8 = new MongooseSchema12(
11708
11759
  vendorInfoId: {
11709
11760
  ref: "VendorInfo",
11710
11761
  required: false,
11711
- type: import_mongoose12.default.Schema.Types.ObjectId
11762
+ type: import_mongoose13.default.Schema.Types.ObjectId
11712
11763
  },
11713
11764
  vendorType: {
11714
11765
  enum: Object.values(EnumVendorType),
@@ -11718,24 +11769,24 @@ var schema8 = new MongooseSchema12(
11718
11769
  },
11719
11770
  { timestamps: true }
11720
11771
  );
11721
- schema8.index({ name: 1 });
11722
- schema8.index({ description: 1 });
11723
- schema8.index({ region: 1 });
11724
- schema8.index({ "categories.name": 1 });
11725
- schema8.index({ "associates.email": 1 });
11726
- var VendorModel = import_mongoose12.default.models.Vendor || import_mongoose12.default.model("Vendor", schema8);
11772
+ schema9.index({ name: 1 });
11773
+ schema9.index({ description: 1 });
11774
+ schema9.index({ region: 1 });
11775
+ schema9.index({ "categories.name": 1 });
11776
+ schema9.index({ "associates.email": 1 });
11777
+ var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
11727
11778
 
11728
11779
  // src/mongoose/vendor/VendorInfo.ts
11729
- var import_mongoose13 = __toESM(require("mongoose"));
11730
- var MongooseSchema13 = import_mongoose13.default.Schema;
11731
- var AttributesSchema = new MongooseSchema13(
11780
+ var import_mongoose14 = __toESM(require("mongoose"));
11781
+ var MongooseSchema14 = import_mongoose14.default.Schema;
11782
+ var AttributesSchema = new MongooseSchema14(
11732
11783
  {
11733
11784
  details: { required: false, type: String },
11734
11785
  isRequired: { default: false, required: true, type: Boolean }
11735
11786
  },
11736
11787
  { _id: false }
11737
11788
  );
11738
- var schema9 = new MongooseSchema13(
11789
+ var schema10 = new MongooseSchema14(
11739
11790
  {
11740
11791
  compliance: {
11741
11792
  foodBeverageLicense: { default: false, required: false, type: Boolean },
@@ -11769,17 +11820,17 @@ var schema9 = new MongooseSchema13(
11769
11820
  vendorId: {
11770
11821
  ref: "Vendor",
11771
11822
  required: true,
11772
- type: import_mongoose13.default.Schema.Types.ObjectId
11823
+ type: import_mongoose14.default.Schema.Types.ObjectId
11773
11824
  }
11774
11825
  },
11775
11826
  { timestamps: true }
11776
11827
  );
11777
- var VendorInfoModel = import_mongoose13.default.models.VendorInfo || import_mongoose13.default.model("VendorInfo", schema9);
11828
+ var VendorInfoModel = import_mongoose14.default.models.VendorInfo || import_mongoose14.default.model("VendorInfo", schema10);
11778
11829
 
11779
11830
  // src/mongoose/event/Event.ts
11780
- var import_mongoose14 = __toESM(require("mongoose"));
11781
- var MongooseSchema14 = import_mongoose14.default.Schema;
11782
- var locationsSchema = new MongooseSchema14(
11831
+ var import_mongoose15 = __toESM(require("mongoose"));
11832
+ var MongooseSchema15 = import_mongoose15.default.Schema;
11833
+ var locationsSchema = new MongooseSchema15(
11783
11834
  {
11784
11835
  city: { required: true, type: String },
11785
11836
  coordinates: {
@@ -11802,7 +11853,7 @@ var locationsSchema = new MongooseSchema14(
11802
11853
  { _id: false }
11803
11854
  // Prevents Mongoose from creating an additional _id field for subdocuments
11804
11855
  );
11805
- var schema10 = new MongooseSchema14(
11856
+ var schema11 = new MongooseSchema15(
11806
11857
  {
11807
11858
  ...baseResourceFields,
11808
11859
  // Importing base resource fields from global.ts
@@ -11810,7 +11861,7 @@ var schema10 = new MongooseSchema14(
11810
11861
  eventInfoId: {
11811
11862
  ref: "EventInfo",
11812
11863
  required: false,
11813
- type: import_mongoose14.default.Schema.Types.ObjectId
11864
+ type: import_mongoose15.default.Schema.Types.ObjectId
11814
11865
  },
11815
11866
  eventType: {
11816
11867
  enum: Object.values(EnumEventType),
@@ -11833,18 +11884,18 @@ var schema10 = new MongooseSchema14(
11833
11884
  },
11834
11885
  { timestamps: true }
11835
11886
  );
11836
- schema10.index({ name: 1 });
11837
- schema10.index({ description: 1 });
11838
- schema10.index({ region: 1 });
11839
- schema10.index({ location: "2dsphere" });
11840
- schema10.index({ tags: 1 });
11841
- schema10.index({ "associates.email": 1 });
11842
- var EventModel = import_mongoose14.default.models.Event || import_mongoose14.default.model("Event", schema10);
11887
+ schema11.index({ name: 1 });
11888
+ schema11.index({ description: 1 });
11889
+ schema11.index({ region: 1 });
11890
+ schema11.index({ location: "2dsphere" });
11891
+ schema11.index({ tags: 1 });
11892
+ schema11.index({ "associates.email": 1 });
11893
+ var EventModel = import_mongoose15.default.models.Event || import_mongoose15.default.model("Event", schema11);
11843
11894
 
11844
11895
  // src/mongoose/Partner.ts
11845
- var import_mongoose15 = __toESM(require("mongoose"));
11846
- var MongooseSchema15 = import_mongoose15.default.Schema;
11847
- var schema11 = new MongooseSchema15(
11896
+ var import_mongoose16 = __toESM(require("mongoose"));
11897
+ var MongooseSchema16 = import_mongoose16.default.Schema;
11898
+ var schema12 = new MongooseSchema16(
11848
11899
  {
11849
11900
  ...baseResourceFields,
11850
11901
  location: {
@@ -11860,19 +11911,19 @@ var schema11 = new MongooseSchema15(
11860
11911
  },
11861
11912
  { timestamps: true }
11862
11913
  );
11863
- schema11.index({ name: 1 });
11864
- schema11.index({ description: 1 });
11865
- schema11.index({ region: 1 });
11866
- schema11.index({ location: "2dsphere" });
11867
- schema11.index({ "associates.email": 1 });
11868
- var PartnerModel = import_mongoose15.default.models.Partner || import_mongoose15.default.model("Partner", schema11);
11914
+ schema12.index({ name: 1 });
11915
+ schema12.index({ description: 1 });
11916
+ schema12.index({ region: 1 });
11917
+ schema12.index({ location: "2dsphere" });
11918
+ schema12.index({ "associates.email": 1 });
11919
+ var PartnerModel = import_mongoose16.default.models.Partner || import_mongoose16.default.model("Partner", schema12);
11869
11920
 
11870
11921
  // src/mongoose/Post.ts
11871
- var import_mongoose16 = __toESM(require("mongoose"));
11872
- var MongooseSchema16 = import_mongoose16.default.Schema;
11873
- var contentSchema = new MongooseSchema16(
11922
+ var import_mongoose17 = __toESM(require("mongoose"));
11923
+ var MongooseSchema17 = import_mongoose17.default.Schema;
11924
+ var contentSchema = new MongooseSchema17(
11874
11925
  {
11875
- contentData: import_mongoose16.Schema.Types.Mixed,
11926
+ contentData: import_mongoose17.Schema.Types.Mixed,
11876
11927
  contentOrder: { required: true, type: Number },
11877
11928
  contentType: {
11878
11929
  enum: Object.values(EnumPostContentType),
@@ -11882,7 +11933,7 @@ var contentSchema = new MongooseSchema16(
11882
11933
  },
11883
11934
  { _id: false }
11884
11935
  );
11885
- var schema12 = new MongooseSchema16(
11936
+ var schema13 = new MongooseSchema17(
11886
11937
  {
11887
11938
  active: { default: true, required: true, type: Boolean },
11888
11939
  caption: { required: true, type: String },
@@ -11897,15 +11948,15 @@ var schema12 = new MongooseSchema16(
11897
11948
  },
11898
11949
  { timestamps: true }
11899
11950
  );
11900
- schema12.index({ title: 1 });
11901
- schema12.index({ tags: 1 });
11902
- var PostModel = import_mongoose16.default.models.Post || import_mongoose16.default.model("Post", schema12);
11951
+ schema13.index({ title: 1 });
11952
+ schema13.index({ tags: 1 });
11953
+ var PostModel = import_mongoose17.default.models.Post || import_mongoose17.default.model("Post", schema13);
11903
11954
 
11904
11955
  // src/mongoose/AppSetting.ts
11905
- var import_mongoose17 = __toESM(require("mongoose"));
11906
- var MongooseSchema17 = import_mongoose17.default.Schema;
11956
+ var import_mongoose18 = __toESM(require("mongoose"));
11957
+ var MongooseSchema18 = import_mongoose18.default.Schema;
11907
11958
  var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
11908
- var AppSettingSchema = new MongooseSchema17(
11959
+ var AppSettingSchema = new MongooseSchema18(
11909
11960
  {
11910
11961
  appVersion: { default: "1.0.1", required: true, type: String },
11911
11962
  key: {
@@ -11920,7 +11971,7 @@ var AppSettingSchema = new MongooseSchema17(
11920
11971
  },
11921
11972
  { timestamps: true }
11922
11973
  );
11923
- var AppSettingModel = import_mongoose17.default.models.AppSetting || import_mongoose17.default.model("AppSetting", AppSettingSchema);
11974
+ var AppSettingModel = import_mongoose18.default.models.AppSetting || import_mongoose18.default.model("AppSetting", AppSettingSchema);
11924
11975
  // Annotate the CommonJS export names for ESM import in node:
11925
11976
  0 && (module.exports = {
11926
11977
  APP_SETTINGS_ID,
@@ -11930,6 +11981,7 @@ var AppSettingModel = import_mongoose17.default.models.AppSetting || import_mong
11930
11981
  ChatModel,
11931
11982
  EventInfoModel,
11932
11983
  EventModel,
11984
+ GoogleImportedMarketModel,
11933
11985
  NotificationModel,
11934
11986
  ParticipantSchema,
11935
11987
  PartnerModel,