@timardex/cluemart-server-shared 1.0.58 → 1.0.60

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
  }
@@ -10033,6 +10034,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
10033
10034
  updateAppSettings(input: $input)
10034
10035
  }
10035
10036
  `;
10037
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10038
+ mutation crawlGoogleMarkets {
10039
+ crawlGoogleMarkets {
10040
+ message
10041
+ }
10042
+ }
10043
+ `;
10036
10044
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10037
10045
  fragment AppSettingsFields on AppSettingsType {
10038
10046
  _id
@@ -10209,7 +10217,7 @@ var socialMediaSchema = create$3({
10209
10217
  is: (name) => !!name,
10210
10218
  // If name has a value
10211
10219
  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()
10220
+ otherwise: (schema14) => schema14.notRequired()
10213
10221
  })
10214
10222
  });
10215
10223
  var globalResourceSchema = create$3().shape({
@@ -10282,21 +10290,21 @@ var paymentInfoSchema = create$3({
10282
10290
  paymentMethod: create$8().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
10283
10291
  accountHolderName: create$6().when("paymentMethod", {
10284
10292
  is: "bank_transfer",
10285
- then: (schema13) => schema13.required("Account holder name is required for bank transfer").trim(),
10286
- otherwise: (schema13) => schema13.notRequired()
10293
+ then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
10294
+ otherwise: (schema14) => schema14.notRequired()
10287
10295
  }),
10288
10296
  accountNumber: create$6().when("paymentMethod", {
10289
10297
  is: "bank_transfer",
10290
- then: (schema13) => schema13.required("Account number is required for bank transfer").matches(
10298
+ then: (schema14) => schema14.required("Account number is required for bank transfer").matches(
10291
10299
  nzBankAccountRegex,
10292
10300
  "Account number must be in format: XX-XXXX-XXXXXXX-XX"
10293
10301
  ).trim(),
10294
- otherwise: (schema13) => schema13.notRequired()
10302
+ otherwise: (schema14) => schema14.notRequired()
10295
10303
  }),
10296
10304
  link: create$6().when("paymentMethod", {
10297
10305
  is: (val) => val === "paypal" || val === "stripe",
10298
10306
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
10299
- otherwise: (schema13) => schema13.notRequired()
10307
+ otherwise: (schema14) => schema14.notRequired()
10300
10308
  })
10301
10309
  });
10302
10310
  var eventInfoSchema = create$3().shape({
@@ -10409,8 +10417,8 @@ var userSchema = create$3().shape({
10409
10417
  confirmPassword: create$6().nullable().trim().label("Confirm Password").when("password", {
10410
10418
  is: (val) => !!val,
10411
10419
  // 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()
10420
+ then: (schema14) => schema14.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10421
+ otherwise: (schema14) => schema14.notRequired()
10414
10422
  }),
10415
10423
  role: create$8().oneOf(Object.values(EnumUserRole)).required("Role is required")
10416
10424
  });
@@ -10528,8 +10536,8 @@ var testerSchema = create$3().shape({
10528
10536
  email: emailRequiredSchema,
10529
10537
  event: create$3().when("resourceType", {
10530
10538
  is: (resourceType) => resourceType === "event",
10531
- otherwise: (schema13) => schema13.nullable().optional(),
10532
- then: (schema13) => schema13.required("Event information is required").shape(testerEventSchema.fields)
10539
+ otherwise: (schema14) => schema14.nullable().optional(),
10540
+ then: (schema14) => schema14.required("Event information is required").shape(testerEventSchema.fields)
10533
10541
  }),
10534
10542
  firstName: create$6().required("First name is required"),
10535
10543
  lastName: create$6().required("Last name is required"),
@@ -10547,8 +10555,8 @@ var testerSchema = create$3().shape({
10547
10555
  ).required("Resource Type is required"),
10548
10556
  vendor: create$3().when("resourceType", {
10549
10557
  is: (resourceType) => resourceType === "vendor",
10550
- otherwise: (schema13) => schema13.nullable().optional(),
10551
- then: (schema13) => schema13.required("Vendor information is required").shape(testerVendorSchema.fields)
10558
+ otherwise: (schema14) => schema14.nullable().optional(),
10559
+ then: (schema14) => schema14.required("Vendor information is required").shape(testerVendorSchema.fields)
10552
10560
  })
10553
10561
  });
10554
10562
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -10586,7 +10594,7 @@ var adSchema = create$3().shape({
10586
10594
  return endDate > now;
10587
10595
  }).when("start", {
10588
10596
  is: (val) => val && val.length > 0,
10589
- then: (schema13) => schema13.test(
10597
+ then: (schema14) => schema14.test(
10590
10598
  "is-after-start",
10591
10599
  "End date must be after start date",
10592
10600
  function(value) {
@@ -11201,10 +11209,59 @@ ChatSchema.index({
11201
11209
  });
11202
11210
  var ChatModel = import_mongoose5.default.models.Chat || import_mongoose5.default.model("Chat", ChatSchema);
11203
11211
 
11204
- // src/mongoose/Notification.ts
11212
+ // src/mongoose/GoogleImportedMarket.ts
11205
11213
  var import_mongoose6 = __toESM(require("mongoose"));
11206
11214
  var MongooseSchema6 = import_mongoose6.default.Schema;
11215
+ var locationSchema2 = new MongooseSchema6(
11216
+ {
11217
+ lat: { required: true, type: Number },
11218
+ lng: { required: true, type: Number }
11219
+ },
11220
+ { _id: false }
11221
+ // Prevents Mongoose from creating an additional _id field for subdocuments
11222
+ );
11207
11223
  var schema3 = new MongooseSchema6(
11224
+ {
11225
+ address: { required: true, type: String },
11226
+ businessStatus: { required: false, type: String },
11227
+ claimed: { default: false, required: true, type: Boolean },
11228
+ googleMapsUrl: { required: false, type: String },
11229
+ googlePlaceId: {
11230
+ required: true,
11231
+ type: String,
11232
+ unique: true
11233
+ // unique, indexed
11234
+ },
11235
+ image: { required: false, type: String },
11236
+ // photo_reference only
11237
+ importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11238
+ location: {
11239
+ required: false,
11240
+ // optional because lat/lng may expire after 30 days
11241
+ type: locationSchema2
11242
+ },
11243
+ name: { required: true, type: String },
11244
+ openingHours: { required: false, type: [String] },
11245
+ phone: { required: false, type: String },
11246
+ photos: { required: false, type: [String] },
11247
+ // array of photo_reference
11248
+ rating: { required: false, type: Number },
11249
+ reviewCount: { required: false, type: Number },
11250
+ slug: { required: true, type: String },
11251
+ website: { required: false, type: String }
11252
+ },
11253
+ { timestamps: true }
11254
+ );
11255
+ schema3.index({ name: 1 });
11256
+ schema3.index({ slug: 1 });
11257
+ schema3.index({ address: 1 });
11258
+ schema3.index({ "location.lat": 1, "location.lng": 1 });
11259
+ var GoogleImportedMarketModel = import_mongoose6.default.models.GoogleImportedMarket || import_mongoose6.default.model("GoogleImportedMarket", schema3);
11260
+
11261
+ // src/mongoose/Notification.ts
11262
+ var import_mongoose7 = __toESM(require("mongoose"));
11263
+ var MongooseSchema7 = import_mongoose7.default.Schema;
11264
+ var schema4 = new MongooseSchema7(
11208
11265
  {
11209
11266
  data: {
11210
11267
  resourceId: { required: true, type: String },
@@ -11227,14 +11284,14 @@ var schema3 = new MongooseSchema6(
11227
11284
  userId: {
11228
11285
  ref: "User",
11229
11286
  required: true,
11230
- type: import_mongoose6.default.Schema.Types.ObjectId
11287
+ type: import_mongoose7.default.Schema.Types.ObjectId
11231
11288
  }
11232
11289
  },
11233
11290
  { timestamps: true }
11234
11291
  );
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);
11292
+ schema4.index({ isRead: 1, userId: 1 });
11293
+ schema4.index({ createdAt: -1, userId: 1 });
11294
+ var NotificationModel = import_mongoose7.default.models.Notification || import_mongoose7.default.model("Notification", schema4);
11238
11295
 
11239
11296
  // node_modules/@timardex/cluemart-shared/dist/chunk-OBQRGWV3.mjs
11240
11297
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
@@ -11245,9 +11302,9 @@ var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11245
11302
  })(EnumOSPlatform2 || {});
11246
11303
 
11247
11304
  // src/mongoose/PushToken.ts
11248
- var import_mongoose7 = __toESM(require("mongoose"));
11249
- var MongooseSchema7 = import_mongoose7.default.Schema;
11250
- var schema4 = new MongooseSchema7(
11305
+ var import_mongoose8 = __toESM(require("mongoose"));
11306
+ var MongooseSchema8 = import_mongoose8.default.Schema;
11307
+ var schema5 = new MongooseSchema8(
11251
11308
  {
11252
11309
  platform: {
11253
11310
  enum: Object.values(EnumOSPlatform2),
@@ -11255,16 +11312,16 @@ var schema4 = new MongooseSchema7(
11255
11312
  type: String
11256
11313
  },
11257
11314
  token: { required: true, type: String },
11258
- userId: { required: true, type: import_mongoose7.default.Schema.Types.ObjectId }
11315
+ userId: { required: true, type: import_mongoose8.default.Schema.Types.ObjectId }
11259
11316
  },
11260
11317
  { timestamps: true }
11261
11318
  );
11262
- var PushTokenModel = import_mongoose7.default.models.PushToken || import_mongoose7.default.model("PushToken", schema4);
11319
+ var PushTokenModel = import_mongoose8.default.models.PushToken || import_mongoose8.default.model("PushToken", schema5);
11263
11320
 
11264
11321
  // src/mongoose/ResourceActivity.ts
11265
- var import_mongoose8 = __toESM(require("mongoose"));
11266
- var MongooseSchema8 = import_mongoose8.default.Schema;
11267
- var ActivitySchema = new MongooseSchema8(
11322
+ var import_mongoose9 = __toESM(require("mongoose"));
11323
+ var MongooseSchema9 = import_mongoose9.default.Schema;
11324
+ var ActivitySchema = new MongooseSchema9(
11268
11325
  {
11269
11326
  activityType: {
11270
11327
  enum: Object.values(EnumActivity),
@@ -11300,7 +11357,7 @@ var ActivitySchema = new MongooseSchema8(
11300
11357
  },
11301
11358
  { _id: false }
11302
11359
  );
11303
- var schema5 = new MongooseSchema8(
11360
+ var schema6 = new MongooseSchema9(
11304
11361
  {
11305
11362
  activity: { default: [], type: [ActivitySchema] },
11306
11363
  resourceId: { required: true, type: String },
@@ -11312,14 +11369,14 @@ var schema5 = new MongooseSchema8(
11312
11369
  },
11313
11370
  { timestamps: true }
11314
11371
  );
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);
11372
+ schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11373
+ schema6.index({ "views.location": "2dsphere" });
11374
+ var ResourceActivityModel = import_mongoose9.default.models.ResourceActivity || import_mongoose9.default.model("ResourceActivity", schema6);
11318
11375
 
11319
11376
  // src/mongoose/Tester.ts
11320
- var import_mongoose9 = __toESM(require("mongoose"));
11321
- var MongooseSchema9 = import_mongoose9.default.Schema;
11322
- var TesterVendorQuestionarySchema = new MongooseSchema9(
11377
+ var import_mongoose10 = __toESM(require("mongoose"));
11378
+ var MongooseSchema10 = import_mongoose10.default.Schema;
11379
+ var TesterVendorQuestionarySchema = new MongooseSchema10(
11323
11380
  {
11324
11381
  appearInVideoIntroduction: {
11325
11382
  default: false,
@@ -11346,7 +11403,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema9(
11346
11403
  },
11347
11404
  { _id: false }
11348
11405
  );
11349
- var TesterVendorSchema = new MongooseSchema9(
11406
+ var TesterVendorSchema = new MongooseSchema10(
11350
11407
  {
11351
11408
  categories: { required: true, type: [CategorySchema] },
11352
11409
  marketsAttended: {
@@ -11372,7 +11429,7 @@ var TesterVendorSchema = new MongooseSchema9(
11372
11429
  },
11373
11430
  { _id: false }
11374
11431
  );
11375
- var TesterEventQuestionarySchema = new MongooseSchema9(
11432
+ var TesterEventQuestionarySchema = new MongooseSchema10(
11376
11433
  {
11377
11434
  allowMarketingAppearance: {
11378
11435
  default: false,
@@ -11407,7 +11464,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
11407
11464
  },
11408
11465
  { _id: false }
11409
11466
  );
11410
- var TesterEventsSchema = new MongooseSchema9(
11467
+ var TesterEventsSchema = new MongooseSchema10(
11411
11468
  {
11412
11469
  markets: {
11413
11470
  required: true,
@@ -11436,7 +11493,7 @@ var TesterEventsSchema = new MongooseSchema9(
11436
11493
  },
11437
11494
  { _id: false }
11438
11495
  );
11439
- var TesterSchema = new MongooseSchema9(
11496
+ var TesterSchema = new MongooseSchema10(
11440
11497
  {
11441
11498
  active: { default: false, required: true, type: Boolean },
11442
11499
  approved: { default: false, required: true, type: Boolean },
@@ -11470,43 +11527,43 @@ var TesterSchema = new MongooseSchema9(
11470
11527
  timestamps: true
11471
11528
  }
11472
11529
  );
11473
- var TesterModel = import_mongoose9.default.models.Tester || import_mongoose9.default.model("Tester", TesterSchema);
11530
+ var TesterModel = import_mongoose10.default.models.Tester || import_mongoose10.default.model("Tester", TesterSchema);
11474
11531
 
11475
11532
  // src/mongoose/User.ts
11476
- var import_mongoose10 = __toESM(require("mongoose"));
11477
- var MongooseSchema10 = import_mongoose10.default.Schema;
11478
- var userActivityEventSchema = new MongooseSchema10(
11533
+ var import_mongoose11 = __toESM(require("mongoose"));
11534
+ var MongooseSchema11 = import_mongoose11.default.Schema;
11535
+ var userActivityEventSchema = new MongooseSchema11(
11479
11536
  {
11480
11537
  dateTime: dateTimeSchema3,
11481
11538
  resourceId: {
11482
11539
  ref: "Event",
11483
11540
  required: false,
11484
- type: import_mongoose10.default.Schema.Types.ObjectId
11541
+ type: import_mongoose11.default.Schema.Types.ObjectId
11485
11542
  }
11486
11543
  },
11487
11544
  { _id: false }
11488
11545
  );
11489
- var userActivityFavouritesSchema = new MongooseSchema10(
11546
+ var userActivityFavouritesSchema = new MongooseSchema11(
11490
11547
  {
11491
11548
  events: {
11492
11549
  ref: "Event",
11493
11550
  required: false,
11494
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11551
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11495
11552
  },
11496
11553
  partners: {
11497
11554
  ref: "Partner",
11498
11555
  required: false,
11499
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11556
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11500
11557
  },
11501
11558
  vendors: {
11502
11559
  ref: "Vendor",
11503
11560
  required: false,
11504
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11561
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11505
11562
  }
11506
11563
  },
11507
11564
  { _id: false }
11508
11565
  );
11509
- var stripeSchema = new MongooseSchema10(
11566
+ var stripeSchema = new MongooseSchema11(
11510
11567
  {
11511
11568
  currentPlan: {
11512
11569
  enum: Object.values(EnumUserLicence),
@@ -11537,7 +11594,7 @@ var stripeSchema = new MongooseSchema10(
11537
11594
  },
11538
11595
  { _id: false }
11539
11596
  );
11540
- var schema6 = new MongooseSchema10(
11597
+ var schema7 = new MongooseSchema11(
11541
11598
  {
11542
11599
  active: { default: false, required: true, type: Boolean },
11543
11600
  associates: {
@@ -11553,7 +11610,7 @@ var schema6 = new MongooseSchema10(
11553
11610
  events: {
11554
11611
  ref: "Event",
11555
11612
  required: false,
11556
- type: [import_mongoose10.default.Schema.Types.ObjectId]
11613
+ type: [import_mongoose11.default.Schema.Types.ObjectId]
11557
11614
  },
11558
11615
  firstName: { required: true, type: String },
11559
11616
  isTester: { default: false, required: true, type: Boolean },
@@ -11565,7 +11622,7 @@ var schema6 = new MongooseSchema10(
11565
11622
  partner: {
11566
11623
  ref: "Partner",
11567
11624
  required: false,
11568
- type: import_mongoose10.default.Schema.Types.ObjectId
11625
+ type: import_mongoose11.default.Schema.Types.ObjectId
11569
11626
  },
11570
11627
  password: { required: true, type: String },
11571
11628
  platform: {
@@ -11610,20 +11667,20 @@ var schema6 = new MongooseSchema10(
11610
11667
  vendor: {
11611
11668
  ref: "Vendor",
11612
11669
  required: false,
11613
- type: import_mongoose10.default.Schema.Types.ObjectId
11670
+ type: import_mongoose11.default.Schema.Types.ObjectId
11614
11671
  }
11615
11672
  },
11616
11673
  { strict: false, timestamps: true }
11617
11674
  );
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);
11675
+ schema7.index({ "associates.email": 1 });
11676
+ schema7.index({ "licences.expiryDate": 1 });
11677
+ schema7.index({ "licences.licenceType": 1 });
11678
+ var UserModel = import_mongoose11.default.models.User || import_mongoose11.default.model("User", schema7);
11622
11679
 
11623
11680
  // src/mongoose/VerificationToken.ts
11624
- var import_mongoose11 = __toESM(require("mongoose"));
11625
- var MongooseSchema11 = import_mongoose11.default.Schema;
11626
- var schema7 = new MongooseSchema11(
11681
+ var import_mongoose12 = __toESM(require("mongoose"));
11682
+ var MongooseSchema12 = import_mongoose12.default.Schema;
11683
+ var schema8 = new MongooseSchema12(
11627
11684
  {
11628
11685
  createdAt: {
11629
11686
  default: Date.now,
@@ -11638,12 +11695,12 @@ var schema7 = new MongooseSchema11(
11638
11695
  },
11639
11696
  { timestamps: true }
11640
11697
  );
11641
- var VerificationTokenModel = import_mongoose11.default.models.VerificationToken || import_mongoose11.default.model("VerificationToken", schema7);
11698
+ var VerificationTokenModel = import_mongoose12.default.models.VerificationToken || import_mongoose12.default.model("VerificationToken", schema8);
11642
11699
 
11643
11700
  // src/mongoose/vendor/Vendor.ts
11644
- var import_mongoose12 = __toESM(require("mongoose"));
11645
- var MongooseSchema12 = import_mongoose12.default.Schema;
11646
- var MenuTypeSchema = new MongooseSchema12(
11701
+ var import_mongoose13 = __toESM(require("mongoose"));
11702
+ var MongooseSchema13 = import_mongoose13.default.Schema;
11703
+ var MenuTypeSchema = new MongooseSchema13(
11647
11704
  {
11648
11705
  description: { required: false, type: String },
11649
11706
  name: { required: false, type: String },
@@ -11653,7 +11710,7 @@ var MenuTypeSchema = new MongooseSchema12(
11653
11710
  { _id: false }
11654
11711
  // Prevents Mongoose from creating an additional _id field for subdocuments
11655
11712
  );
11656
- var LocationsSchema = new MongooseSchema12(
11713
+ var LocationsSchema = new MongooseSchema13(
11657
11714
  {
11658
11715
  dateTime: {
11659
11716
  dateStatus: {
@@ -11686,7 +11743,7 @@ var LocationsSchema = new MongooseSchema12(
11686
11743
  { _id: false }
11687
11744
  // Prevents Mongoose from creating an additional _id field for subdocuments
11688
11745
  );
11689
- var schema8 = new MongooseSchema12(
11746
+ var schema9 = new MongooseSchema13(
11690
11747
  {
11691
11748
  ...baseResourceFields,
11692
11749
  // Importing base resource fields from global.ts
@@ -11708,7 +11765,7 @@ var schema8 = new MongooseSchema12(
11708
11765
  vendorInfoId: {
11709
11766
  ref: "VendorInfo",
11710
11767
  required: false,
11711
- type: import_mongoose12.default.Schema.Types.ObjectId
11768
+ type: import_mongoose13.default.Schema.Types.ObjectId
11712
11769
  },
11713
11770
  vendorType: {
11714
11771
  enum: Object.values(EnumVendorType),
@@ -11718,24 +11775,24 @@ var schema8 = new MongooseSchema12(
11718
11775
  },
11719
11776
  { timestamps: true }
11720
11777
  );
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);
11778
+ schema9.index({ name: 1 });
11779
+ schema9.index({ description: 1 });
11780
+ schema9.index({ region: 1 });
11781
+ schema9.index({ "categories.name": 1 });
11782
+ schema9.index({ "associates.email": 1 });
11783
+ var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
11727
11784
 
11728
11785
  // src/mongoose/vendor/VendorInfo.ts
11729
- var import_mongoose13 = __toESM(require("mongoose"));
11730
- var MongooseSchema13 = import_mongoose13.default.Schema;
11731
- var AttributesSchema = new MongooseSchema13(
11786
+ var import_mongoose14 = __toESM(require("mongoose"));
11787
+ var MongooseSchema14 = import_mongoose14.default.Schema;
11788
+ var AttributesSchema = new MongooseSchema14(
11732
11789
  {
11733
11790
  details: { required: false, type: String },
11734
11791
  isRequired: { default: false, required: true, type: Boolean }
11735
11792
  },
11736
11793
  { _id: false }
11737
11794
  );
11738
- var schema9 = new MongooseSchema13(
11795
+ var schema10 = new MongooseSchema14(
11739
11796
  {
11740
11797
  compliance: {
11741
11798
  foodBeverageLicense: { default: false, required: false, type: Boolean },
@@ -11769,17 +11826,17 @@ var schema9 = new MongooseSchema13(
11769
11826
  vendorId: {
11770
11827
  ref: "Vendor",
11771
11828
  required: true,
11772
- type: import_mongoose13.default.Schema.Types.ObjectId
11829
+ type: import_mongoose14.default.Schema.Types.ObjectId
11773
11830
  }
11774
11831
  },
11775
11832
  { timestamps: true }
11776
11833
  );
11777
- var VendorInfoModel = import_mongoose13.default.models.VendorInfo || import_mongoose13.default.model("VendorInfo", schema9);
11834
+ var VendorInfoModel = import_mongoose14.default.models.VendorInfo || import_mongoose14.default.model("VendorInfo", schema10);
11778
11835
 
11779
11836
  // src/mongoose/event/Event.ts
11780
- var import_mongoose14 = __toESM(require("mongoose"));
11781
- var MongooseSchema14 = import_mongoose14.default.Schema;
11782
- var locationsSchema = new MongooseSchema14(
11837
+ var import_mongoose15 = __toESM(require("mongoose"));
11838
+ var MongooseSchema15 = import_mongoose15.default.Schema;
11839
+ var locationsSchema = new MongooseSchema15(
11783
11840
  {
11784
11841
  city: { required: true, type: String },
11785
11842
  coordinates: {
@@ -11802,7 +11859,7 @@ var locationsSchema = new MongooseSchema14(
11802
11859
  { _id: false }
11803
11860
  // Prevents Mongoose from creating an additional _id field for subdocuments
11804
11861
  );
11805
- var schema10 = new MongooseSchema14(
11862
+ var schema11 = new MongooseSchema15(
11806
11863
  {
11807
11864
  ...baseResourceFields,
11808
11865
  // Importing base resource fields from global.ts
@@ -11810,7 +11867,7 @@ var schema10 = new MongooseSchema14(
11810
11867
  eventInfoId: {
11811
11868
  ref: "EventInfo",
11812
11869
  required: false,
11813
- type: import_mongoose14.default.Schema.Types.ObjectId
11870
+ type: import_mongoose15.default.Schema.Types.ObjectId
11814
11871
  },
11815
11872
  eventType: {
11816
11873
  enum: Object.values(EnumEventType),
@@ -11833,18 +11890,18 @@ var schema10 = new MongooseSchema14(
11833
11890
  },
11834
11891
  { timestamps: true }
11835
11892
  );
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);
11893
+ schema11.index({ name: 1 });
11894
+ schema11.index({ description: 1 });
11895
+ schema11.index({ region: 1 });
11896
+ schema11.index({ location: "2dsphere" });
11897
+ schema11.index({ tags: 1 });
11898
+ schema11.index({ "associates.email": 1 });
11899
+ var EventModel = import_mongoose15.default.models.Event || import_mongoose15.default.model("Event", schema11);
11843
11900
 
11844
11901
  // src/mongoose/Partner.ts
11845
- var import_mongoose15 = __toESM(require("mongoose"));
11846
- var MongooseSchema15 = import_mongoose15.default.Schema;
11847
- var schema11 = new MongooseSchema15(
11902
+ var import_mongoose16 = __toESM(require("mongoose"));
11903
+ var MongooseSchema16 = import_mongoose16.default.Schema;
11904
+ var schema12 = new MongooseSchema16(
11848
11905
  {
11849
11906
  ...baseResourceFields,
11850
11907
  location: {
@@ -11860,19 +11917,19 @@ var schema11 = new MongooseSchema15(
11860
11917
  },
11861
11918
  { timestamps: true }
11862
11919
  );
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);
11920
+ schema12.index({ name: 1 });
11921
+ schema12.index({ description: 1 });
11922
+ schema12.index({ region: 1 });
11923
+ schema12.index({ location: "2dsphere" });
11924
+ schema12.index({ "associates.email": 1 });
11925
+ var PartnerModel = import_mongoose16.default.models.Partner || import_mongoose16.default.model("Partner", schema12);
11869
11926
 
11870
11927
  // src/mongoose/Post.ts
11871
- var import_mongoose16 = __toESM(require("mongoose"));
11872
- var MongooseSchema16 = import_mongoose16.default.Schema;
11873
- var contentSchema = new MongooseSchema16(
11928
+ var import_mongoose17 = __toESM(require("mongoose"));
11929
+ var MongooseSchema17 = import_mongoose17.default.Schema;
11930
+ var contentSchema = new MongooseSchema17(
11874
11931
  {
11875
- contentData: import_mongoose16.Schema.Types.Mixed,
11932
+ contentData: import_mongoose17.Schema.Types.Mixed,
11876
11933
  contentOrder: { required: true, type: Number },
11877
11934
  contentType: {
11878
11935
  enum: Object.values(EnumPostContentType),
@@ -11882,7 +11939,7 @@ var contentSchema = new MongooseSchema16(
11882
11939
  },
11883
11940
  { _id: false }
11884
11941
  );
11885
- var schema12 = new MongooseSchema16(
11942
+ var schema13 = new MongooseSchema17(
11886
11943
  {
11887
11944
  active: { default: true, required: true, type: Boolean },
11888
11945
  caption: { required: true, type: String },
@@ -11897,15 +11954,15 @@ var schema12 = new MongooseSchema16(
11897
11954
  },
11898
11955
  { timestamps: true }
11899
11956
  );
11900
- schema12.index({ title: 1 });
11901
- schema12.index({ tags: 1 });
11902
- var PostModel = import_mongoose16.default.models.Post || import_mongoose16.default.model("Post", schema12);
11957
+ schema13.index({ title: 1 });
11958
+ schema13.index({ tags: 1 });
11959
+ var PostModel = import_mongoose17.default.models.Post || import_mongoose17.default.model("Post", schema13);
11903
11960
 
11904
11961
  // src/mongoose/AppSetting.ts
11905
- var import_mongoose17 = __toESM(require("mongoose"));
11906
- var MongooseSchema17 = import_mongoose17.default.Schema;
11962
+ var import_mongoose18 = __toESM(require("mongoose"));
11963
+ var MongooseSchema18 = import_mongoose18.default.Schema;
11907
11964
  var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
11908
- var AppSettingSchema = new MongooseSchema17(
11965
+ var AppSettingSchema = new MongooseSchema18(
11909
11966
  {
11910
11967
  appVersion: { default: "1.0.1", required: true, type: String },
11911
11968
  key: {
@@ -11920,7 +11977,7 @@ var AppSettingSchema = new MongooseSchema17(
11920
11977
  },
11921
11978
  { timestamps: true }
11922
11979
  );
11923
- var AppSettingModel = import_mongoose17.default.models.AppSetting || import_mongoose17.default.model("AppSetting", AppSettingSchema);
11980
+ var AppSettingModel = import_mongoose18.default.models.AppSetting || import_mongoose18.default.model("AppSetting", AppSettingSchema);
11924
11981
  // Annotate the CommonJS export names for ESM import in node:
11925
11982
  0 && (module.exports = {
11926
11983
  APP_SETTINGS_ID,
@@ -11930,6 +11987,7 @@ var AppSettingModel = import_mongoose17.default.models.AppSetting || import_mong
11930
11987
  ChatModel,
11931
11988
  EventInfoModel,
11932
11989
  EventModel,
11990
+ GoogleImportedMarketModel,
11933
11991
  NotificationModel,
11934
11992
  ParticipantSchema,
11935
11993
  PartnerModel,