@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.
@@ -4656,10 +4656,10 @@ var Condition = class _Condition {
4656
4656
  otherwise
4657
4657
  } = config;
4658
4658
  let check = typeof is === "function" ? is : (...values) => values.every((value) => value === is);
4659
- return new _Condition(refs, (values, schema13) => {
4659
+ return new _Condition(refs, (values, schema14) => {
4660
4660
  var _branch;
4661
4661
  let branch = check(...values) ? then : otherwise;
4662
- return (_branch = branch == null ? void 0 : branch(schema13)) != null ? _branch : schema13;
4662
+ return (_branch = branch == null ? void 0 : branch(schema14)) != null ? _branch : schema14;
4663
4663
  });
4664
4664
  }
4665
4665
  constructor(refs, builder) {
@@ -4673,13 +4673,13 @@ var Condition = class _Condition {
4673
4673
  // TODO: ? operator here?
4674
4674
  ref.getValue(options == null ? void 0 : options.value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context)
4675
4675
  ));
4676
- let schema13 = this.fn(values, base, options);
4677
- if (schema13 === void 0 || // @ts-ignore this can be base
4678
- schema13 === base) {
4676
+ let schema14 = this.fn(values, base, options);
4677
+ if (schema14 === void 0 || // @ts-ignore this can be base
4678
+ schema14 === base) {
4679
4679
  return base;
4680
4680
  }
4681
- if (!isSchema(schema13)) throw new TypeError("conditions must return a schema object");
4682
- return schema13.resolve(options);
4681
+ if (!isSchema(schema14)) throw new TypeError("conditions must return a schema object");
4682
+ return schema14.resolve(options);
4683
4683
  }
4684
4684
  };
4685
4685
  var prefixes = {
@@ -4749,7 +4749,7 @@ function createValidation(config) {
4749
4749
  path = "",
4750
4750
  options,
4751
4751
  originalValue,
4752
- schema: schema13
4752
+ schema: schema14
4753
4753
  }, panic, next) {
4754
4754
  const {
4755
4755
  name,
@@ -4761,8 +4761,8 @@ function createValidation(config) {
4761
4761
  let {
4762
4762
  parent,
4763
4763
  context,
4764
- abortEarly = schema13.spec.abortEarly,
4765
- disableStackTrace = schema13.spec.disableStackTrace
4764
+ abortEarly = schema14.spec.abortEarly,
4765
+ disableStackTrace = schema14.spec.disableStackTrace
4766
4766
  } = options;
4767
4767
  const resolveOptions = {
4768
4768
  value,
@@ -4773,9 +4773,9 @@ function createValidation(config) {
4773
4773
  const nextParams = resolveParams(Object.assign({
4774
4774
  value,
4775
4775
  originalValue,
4776
- label: schema13.spec.label,
4776
+ label: schema14.spec.label,
4777
4777
  path: overrides.path || path,
4778
- spec: schema13.spec,
4778
+ spec: schema14.spec,
4779
4779
  disableStackTrace: overrides.disableStackTrace || disableStackTrace
4780
4780
  }, params, overrides.params), resolveOptions);
4781
4781
  const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
@@ -4794,7 +4794,7 @@ function createValidation(config) {
4794
4794
  },
4795
4795
  options,
4796
4796
  originalValue,
4797
- schema: schema13
4797
+ schema: schema14
4798
4798
  };
4799
4799
  const handleResult = (validOrError) => {
4800
4800
  if (ValidationError.isError(validOrError)) invalid(validOrError);
@@ -4838,42 +4838,42 @@ function resolveParams(params, options) {
4838
4838
  function resolveMaybeRef(item, options) {
4839
4839
  return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
4840
4840
  }
4841
- function getIn(schema13, path, value, context = value) {
4841
+ function getIn(schema14, path, value, context = value) {
4842
4842
  let parent, lastPart, lastPartDebug;
4843
4843
  if (!path) return {
4844
4844
  parent,
4845
4845
  parentPath: path,
4846
- schema: schema13
4846
+ schema: schema14
4847
4847
  };
4848
4848
  (0, import_property_expr.forEach)(path, (_part, isBracket, isArray) => {
4849
4849
  let part = isBracket ? _part.slice(1, _part.length - 1) : _part;
4850
- schema13 = schema13.resolve({
4850
+ schema14 = schema14.resolve({
4851
4851
  context,
4852
4852
  parent,
4853
4853
  value
4854
4854
  });
4855
- let isTuple = schema13.type === "tuple";
4855
+ let isTuple = schema14.type === "tuple";
4856
4856
  let idx = isArray ? parseInt(part, 10) : 0;
4857
- if (schema13.innerType || isTuple) {
4857
+ if (schema14.innerType || isTuple) {
4858
4858
  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]"`);
4859
4859
  if (value && idx >= value.length) {
4860
4860
  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. `);
4861
4861
  }
4862
4862
  parent = value;
4863
4863
  value = value && value[idx];
4864
- schema13 = isTuple ? schema13.spec.types[idx] : schema13.innerType;
4864
+ schema14 = isTuple ? schema14.spec.types[idx] : schema14.innerType;
4865
4865
  }
4866
4866
  if (!isArray) {
4867
- 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}")`);
4867
+ 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}")`);
4868
4868
  parent = value;
4869
4869
  value = value && value[part];
4870
- schema13 = schema13.fields[part];
4870
+ schema14 = schema14.fields[part];
4871
4871
  }
4872
4872
  lastPart = part;
4873
4873
  lastPartDebug = isBracket ? "[" + _part + "]" : "." + _part;
4874
4874
  });
4875
4875
  return {
4876
- schema: schema13,
4876
+ schema: schema14,
4877
4877
  parent,
4878
4878
  parentPath: lastPart
4879
4879
  };
@@ -5073,20 +5073,20 @@ var Schema = class {
5073
5073
  this._mutate = before;
5074
5074
  return result;
5075
5075
  }
5076
- concat(schema13) {
5077
- if (!schema13 || schema13 === this) return this;
5078
- if (schema13.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema13.type}`);
5076
+ concat(schema14) {
5077
+ if (!schema14 || schema14 === this) return this;
5078
+ if (schema14.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema14.type}`);
5079
5079
  let base = this;
5080
- let combined = schema13.clone();
5080
+ let combined = schema14.clone();
5081
5081
  const mergedSpec = Object.assign({}, base.spec, combined.spec);
5082
5082
  combined.spec = mergedSpec;
5083
5083
  combined.internalTests = Object.assign({}, base.internalTests, combined.internalTests);
5084
- combined._whitelist = base._whitelist.merge(schema13._whitelist, schema13._blacklist);
5085
- combined._blacklist = base._blacklist.merge(schema13._blacklist, schema13._whitelist);
5084
+ combined._whitelist = base._whitelist.merge(schema14._whitelist, schema14._blacklist);
5085
+ combined._blacklist = base._blacklist.merge(schema14._blacklist, schema14._whitelist);
5086
5086
  combined.tests = base.tests;
5087
5087
  combined.exclusiveTests = base.exclusiveTests;
5088
5088
  combined.withMutation((next) => {
5089
- schema13.tests.forEach((fn) => {
5089
+ schema14.tests.forEach((fn) => {
5090
5090
  next.test(fn.OPTIONS);
5091
5091
  });
5092
5092
  });
@@ -5102,15 +5102,15 @@ var Schema = class {
5102
5102
  return this._typeCheck(v);
5103
5103
  }
5104
5104
  resolve(options) {
5105
- let schema13 = this;
5106
- if (schema13.conditions.length) {
5107
- let conditions = schema13.conditions;
5108
- schema13 = schema13.clone();
5109
- schema13.conditions = [];
5110
- schema13 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema13);
5111
- schema13 = schema13.resolve(options);
5105
+ let schema14 = this;
5106
+ if (schema14.conditions.length) {
5107
+ let conditions = schema14.conditions;
5108
+ schema14 = schema14.clone();
5109
+ schema14.conditions = [];
5110
+ schema14 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema14);
5111
+ schema14 = schema14.resolve(options);
5112
5112
  }
5113
- return schema13;
5113
+ return schema14;
5114
5114
  }
5115
5115
  resolveOptions(options) {
5116
5116
  var _options$strict, _options$abortEarly, _options$recursive, _options$disableStack;
@@ -5266,11 +5266,11 @@ attempted value: ${formattedValue}
5266
5266
  }
5267
5267
  validate(value, options) {
5268
5268
  var _options$disableStack2;
5269
- let schema13 = this.resolve(Object.assign({}, options, {
5269
+ let schema14 = this.resolve(Object.assign({}, options, {
5270
5270
  value
5271
5271
  }));
5272
- let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema13.spec.disableStackTrace;
5273
- return new Promise((resolve, reject) => schema13._validate(value, options, (error, parsed) => {
5272
+ let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema14.spec.disableStackTrace;
5273
+ return new Promise((resolve, reject) => schema14._validate(value, options, (error, parsed) => {
5274
5274
  if (ValidationError.isError(error)) error.value = parsed;
5275
5275
  reject(error);
5276
5276
  }, (errors, validated) => {
@@ -5280,12 +5280,12 @@ attempted value: ${formattedValue}
5280
5280
  }
5281
5281
  validateSync(value, options) {
5282
5282
  var _options$disableStack3;
5283
- let schema13 = this.resolve(Object.assign({}, options, {
5283
+ let schema14 = this.resolve(Object.assign({}, options, {
5284
5284
  value
5285
5285
  }));
5286
5286
  let result;
5287
- let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema13.spec.disableStackTrace;
5288
- schema13._validate(value, Object.assign({}, options, {
5287
+ let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema14.spec.disableStackTrace;
5288
+ schema14._validate(value, Object.assign({}, options, {
5289
5289
  sync: true
5290
5290
  }), (error, parsed) => {
5291
5291
  if (ValidationError.isError(error)) error.value = parsed;
@@ -5319,8 +5319,8 @@ attempted value: ${formattedValue}
5319
5319
  return typeof defaultValue === "function" ? defaultValue.call(this, options) : clone(defaultValue);
5320
5320
  }
5321
5321
  getDefault(options) {
5322
- let schema13 = this.resolve(options || {});
5323
- return schema13._getDefault(options);
5322
+ let schema14 = this.resolve(options || {});
5323
+ return schema14._getDefault(options);
5324
5324
  }
5325
5325
  default(def) {
5326
5326
  if (arguments.length === 0) {
@@ -5553,13 +5553,13 @@ attempted value: ${formattedValue}
5553
5553
  return description;
5554
5554
  }
5555
5555
  get ["~standard"]() {
5556
- const schema13 = this;
5556
+ const schema14 = this;
5557
5557
  const standard = {
5558
5558
  version: 1,
5559
5559
  vendor: "yup",
5560
5560
  async validate(value) {
5561
5561
  try {
5562
- const result = await schema13.validate(value, {
5562
+ const result = await schema14.validate(value, {
5563
5563
  abortEarly: false
5564
5564
  });
5565
5565
  return {
@@ -5583,9 +5583,9 @@ for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At
5583
5583
  const {
5584
5584
  parent,
5585
5585
  parentPath,
5586
- schema: schema13
5586
+ schema: schema14
5587
5587
  } = getIn(this, path, value, options.context);
5588
- return schema13[method](parent && parent[parentPath], Object.assign({}, options, {
5588
+ return schema14[method](parent && parent[parentPath], Object.assign({}, options, {
5589
5589
  parent,
5590
5590
  path
5591
5591
  }));
@@ -5759,7 +5759,7 @@ var StringSchema = class extends Schema {
5759
5759
  });
5760
5760
  }
5761
5761
  required(message) {
5762
- return super.required(message).withMutation((schema13) => schema13.test({
5762
+ return super.required(message).withMutation((schema14) => schema14.test({
5763
5763
  message: message || mixed.required,
5764
5764
  name: "required",
5765
5765
  skipAbsent: true,
@@ -5767,9 +5767,9 @@ var StringSchema = class extends Schema {
5767
5767
  }));
5768
5768
  }
5769
5769
  notRequired() {
5770
- return super.notRequired().withMutation((schema13) => {
5771
- schema13.tests = schema13.tests.filter((t) => t.OPTIONS.name !== "required");
5772
- return schema13;
5770
+ return super.notRequired().withMutation((schema14) => {
5771
+ schema14.tests = schema14.tests.filter((t) => t.OPTIONS.name !== "required");
5772
+ return schema14;
5773
5773
  });
5774
5774
  }
5775
5775
  length(length, message = string.length) {
@@ -6147,7 +6147,7 @@ function sortByKeyOrder(keys) {
6147
6147
  return findIndex(keys, a) - findIndex(keys, b);
6148
6148
  };
6149
6149
  }
6150
- var parseJson = (value, _, schema13) => {
6150
+ var parseJson = (value, _, schema14) => {
6151
6151
  if (typeof value !== "string") {
6152
6152
  return value;
6153
6153
  }
@@ -6156,30 +6156,30 @@ var parseJson = (value, _, schema13) => {
6156
6156
  parsed = JSON.parse(value);
6157
6157
  } catch (err) {
6158
6158
  }
6159
- return schema13.isType(parsed) ? parsed : value;
6159
+ return schema14.isType(parsed) ? parsed : value;
6160
6160
  };
6161
- function deepPartial(schema13) {
6162
- if ("fields" in schema13) {
6161
+ function deepPartial(schema14) {
6162
+ if ("fields" in schema14) {
6163
6163
  const partial = {};
6164
- for (const [key, fieldSchema] of Object.entries(schema13.fields)) {
6164
+ for (const [key, fieldSchema] of Object.entries(schema14.fields)) {
6165
6165
  partial[key] = deepPartial(fieldSchema);
6166
6166
  }
6167
- return schema13.setFields(partial);
6167
+ return schema14.setFields(partial);
6168
6168
  }
6169
- if (schema13.type === "array") {
6170
- const nextArray = schema13.optional();
6169
+ if (schema14.type === "array") {
6170
+ const nextArray = schema14.optional();
6171
6171
  if (nextArray.innerType) nextArray.innerType = deepPartial(nextArray.innerType);
6172
6172
  return nextArray;
6173
6173
  }
6174
- if (schema13.type === "tuple") {
6175
- return schema13.optional().clone({
6176
- types: schema13.spec.types.map(deepPartial)
6174
+ if (schema14.type === "tuple") {
6175
+ return schema14.optional().clone({
6176
+ types: schema14.spec.types.map(deepPartial)
6177
6177
  });
6178
6178
  }
6179
- if ("optional" in schema13) {
6180
- return schema13.optional();
6179
+ if ("optional" in schema14) {
6180
+ return schema14.optional();
6181
6181
  }
6182
- return schema13;
6182
+ return schema14;
6183
6183
  }
6184
6184
  var deepHas = (obj, p) => {
6185
6185
  const path = [...(0, import_property_expr.normalizePath)(p)];
@@ -6310,8 +6310,8 @@ var ObjectSchema = class extends Schema {
6310
6310
  next._sortErrors = this._sortErrors;
6311
6311
  return next;
6312
6312
  }
6313
- concat(schema13) {
6314
- let next = super.concat(schema13);
6313
+ concat(schema14) {
6314
+ let next = super.concat(schema14);
6315
6315
  let nextFields = next.fields;
6316
6316
  for (let [field, schemaOrRef] of Object.entries(this.fields)) {
6317
6317
  const target = nextFields[field];
@@ -6319,7 +6319,7 @@ var ObjectSchema = class extends Schema {
6319
6319
  }
6320
6320
  return next.withMutation((s2) => (
6321
6321
  // XXX: excludes here is wrong
6322
- s2.setFields(nextFields, [...this._excludedEdges, ...schema13._excludedEdges])
6322
+ s2.setFields(nextFields, [...this._excludedEdges, ...schema14._excludedEdges])
6323
6323
  ));
6324
6324
  }
6325
6325
  _getDefault(options) {
@@ -6364,8 +6364,8 @@ var ObjectSchema = class extends Schema {
6364
6364
  }
6365
6365
  partial() {
6366
6366
  const partial = {};
6367
- for (const [key, schema13] of Object.entries(this.fields)) {
6368
- partial[key] = "optional" in schema13 && schema13.optional instanceof Function ? schema13.optional() : schema13;
6367
+ for (const [key, schema14] of Object.entries(this.fields)) {
6368
+ partial[key] = "optional" in schema14 && schema14.optional instanceof Function ? schema14.optional() : schema14;
6369
6369
  }
6370
6370
  return this.setFields(partial);
6371
6371
  }
@@ -6567,22 +6567,22 @@ var ArraySchema = class extends Schema {
6567
6567
  json() {
6568
6568
  return this.transform(parseJson);
6569
6569
  }
6570
- concat(schema13) {
6571
- let next = super.concat(schema13);
6570
+ concat(schema14) {
6571
+ let next = super.concat(schema14);
6572
6572
  next.innerType = this.innerType;
6573
- if (schema13.innerType)
6573
+ if (schema14.innerType)
6574
6574
  next.innerType = next.innerType ? (
6575
6575
  // @ts-expect-error Lazy doesn't have concat and will break
6576
- next.innerType.concat(schema13.innerType)
6577
- ) : schema13.innerType;
6576
+ next.innerType.concat(schema14.innerType)
6577
+ ) : schema14.innerType;
6578
6578
  return next;
6579
6579
  }
6580
- of(schema13) {
6580
+ of(schema14) {
6581
6581
  let next = this.clone();
6582
- if (!isSchema(schema13)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema13));
6583
- next.innerType = schema13;
6582
+ if (!isSchema(schema14)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema14));
6583
+ next.innerType = schema14;
6584
6584
  next.spec = Object.assign({}, next.spec, {
6585
- types: schema13
6585
+ types: schema14
6586
6586
  });
6587
6587
  return next;
6588
6588
  }
@@ -6730,7 +6730,7 @@ var TupleSchema = class extends Schema {
6730
6730
  describe(options) {
6731
6731
  const next = (options ? this.resolve(options) : this).clone();
6732
6732
  const base = super.describe(options);
6733
- base.innerType = next.spec.types.map((schema13, index) => {
6733
+ base.innerType = next.spec.types.map((schema14, index) => {
6734
6734
  var _innerOptions;
6735
6735
  let innerOptions = options;
6736
6736
  if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
@@ -6739,7 +6739,7 @@ var TupleSchema = class extends Schema {
6739
6739
  value: innerOptions.value[index]
6740
6740
  });
6741
6741
  }
6742
- return schema13.describe(innerOptions);
6742
+ return schema14.describe(innerOptions);
6743
6743
  });
6744
6744
  return base;
6745
6745
  }
@@ -10145,7 +10145,7 @@ var socialMediaSchema = create$3({
10145
10145
  is: (name) => !!name,
10146
10146
  // If name has a value
10147
10147
  then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
10148
- otherwise: (schema13) => schema13.notRequired()
10148
+ otherwise: (schema14) => schema14.notRequired()
10149
10149
  })
10150
10150
  });
10151
10151
  var globalResourceSchema = create$3().shape({
@@ -10218,21 +10218,21 @@ var paymentInfoSchema = create$3({
10218
10218
  paymentMethod: create$8().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
10219
10219
  accountHolderName: create$6().when("paymentMethod", {
10220
10220
  is: "bank_transfer",
10221
- then: (schema13) => schema13.required("Account holder name is required for bank transfer").trim(),
10222
- otherwise: (schema13) => schema13.notRequired()
10221
+ then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
10222
+ otherwise: (schema14) => schema14.notRequired()
10223
10223
  }),
10224
10224
  accountNumber: create$6().when("paymentMethod", {
10225
10225
  is: "bank_transfer",
10226
- then: (schema13) => schema13.required("Account number is required for bank transfer").matches(
10226
+ then: (schema14) => schema14.required("Account number is required for bank transfer").matches(
10227
10227
  nzBankAccountRegex,
10228
10228
  "Account number must be in format: XX-XXXX-XXXXXXX-XX"
10229
10229
  ).trim(),
10230
- otherwise: (schema13) => schema13.notRequired()
10230
+ otherwise: (schema14) => schema14.notRequired()
10231
10231
  }),
10232
10232
  link: create$6().when("paymentMethod", {
10233
10233
  is: (val) => val === "paypal" || val === "stripe",
10234
10234
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
10235
- otherwise: (schema13) => schema13.notRequired()
10235
+ otherwise: (schema14) => schema14.notRequired()
10236
10236
  })
10237
10237
  });
10238
10238
  var eventInfoSchema = create$3().shape({
@@ -10345,8 +10345,8 @@ var userSchema = create$3().shape({
10345
10345
  confirmPassword: create$6().nullable().trim().label("Confirm Password").when("password", {
10346
10346
  is: (val) => !!val,
10347
10347
  // only necessary if password typed
10348
- then: (schema13) => schema13.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10349
- otherwise: (schema13) => schema13.notRequired()
10348
+ then: (schema14) => schema14.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10349
+ otherwise: (schema14) => schema14.notRequired()
10350
10350
  }),
10351
10351
  role: create$8().oneOf(Object.values(EnumUserRole)).required("Role is required")
10352
10352
  });
@@ -10464,8 +10464,8 @@ var testerSchema = create$3().shape({
10464
10464
  email: emailRequiredSchema,
10465
10465
  event: create$3().when("resourceType", {
10466
10466
  is: (resourceType) => resourceType === "event",
10467
- otherwise: (schema13) => schema13.nullable().optional(),
10468
- then: (schema13) => schema13.required("Event information is required").shape(testerEventSchema.fields)
10467
+ otherwise: (schema14) => schema14.nullable().optional(),
10468
+ then: (schema14) => schema14.required("Event information is required").shape(testerEventSchema.fields)
10469
10469
  }),
10470
10470
  firstName: create$6().required("First name is required"),
10471
10471
  lastName: create$6().required("Last name is required"),
@@ -10483,8 +10483,8 @@ var testerSchema = create$3().shape({
10483
10483
  ).required("Resource Type is required"),
10484
10484
  vendor: create$3().when("resourceType", {
10485
10485
  is: (resourceType) => resourceType === "vendor",
10486
- otherwise: (schema13) => schema13.nullable().optional(),
10487
- then: (schema13) => schema13.required("Vendor information is required").shape(testerVendorSchema.fields)
10486
+ otherwise: (schema14) => schema14.nullable().optional(),
10487
+ then: (schema14) => schema14.required("Vendor information is required").shape(testerVendorSchema.fields)
10488
10488
  })
10489
10489
  });
10490
10490
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -10522,7 +10522,7 @@ var adSchema = create$3().shape({
10522
10522
  return endDate > now;
10523
10523
  }).when("start", {
10524
10524
  is: (val) => val && val.length > 0,
10525
- then: (schema13) => schema13.test(
10525
+ then: (schema14) => schema14.test(
10526
10526
  "is-after-start",
10527
10527
  "End date must be after start date",
10528
10528
  function(value) {
@@ -11137,10 +11137,60 @@ ChatSchema.index({
11137
11137
  });
11138
11138
  var ChatModel = mongoose5.models.Chat || mongoose5.model("Chat", ChatSchema);
11139
11139
 
11140
- // src/mongoose/Notification.ts
11140
+ // src/mongoose/GoogleImportedMarket.ts
11141
11141
  import mongoose6 from "mongoose";
11142
11142
  var MongooseSchema6 = mongoose6.Schema;
11143
+ var locationSchema2 = new MongooseSchema6(
11144
+ {
11145
+ lat: { required: true, type: Number },
11146
+ lng: { required: true, type: Number }
11147
+ },
11148
+ { _id: false }
11149
+ // Prevents Mongoose from creating an additional _id field for subdocuments
11150
+ );
11143
11151
  var schema3 = new MongooseSchema6(
11152
+ {
11153
+ address: { required: true, type: String },
11154
+ businessStatus: { required: false, type: String },
11155
+ claimed: { default: false, required: true, type: Boolean },
11156
+ googleMapsUrl: { required: false, type: String },
11157
+ googlePlaceId: {
11158
+ required: true,
11159
+ type: String,
11160
+ unique: true
11161
+ // unique, indexed
11162
+ },
11163
+ image: { required: false, type: String },
11164
+ // photo_reference only
11165
+ importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11166
+ location: {
11167
+ required: false,
11168
+ // optional because lat/lng may expire after 30 days
11169
+ type: locationSchema2
11170
+ },
11171
+ name: { required: true, type: String },
11172
+ openingHours: { required: false, type: [String] },
11173
+ phone: { required: false, type: String },
11174
+ photos: { required: false, type: [String] },
11175
+ // array of photo_reference
11176
+ rating: { required: false, type: Number },
11177
+ reviewCount: { required: false, type: Number },
11178
+ slug: { required: true, type: String },
11179
+ website: { required: false, type: String }
11180
+ },
11181
+ { timestamps: true }
11182
+ );
11183
+ schema3.index({ googlePlaceId: 1 });
11184
+ schema3.index({ name: 1 });
11185
+ schema3.index({ slug: 1 });
11186
+ schema3.index({ address: 1 });
11187
+ schema3.index({ "location.lat": 1, "location.lng": 1 });
11188
+ var GoogleImportedMarketModel = mongoose6.models.GoogleImportedMarket || mongoose6.model("GoogleImportedMarket", schema3);
11189
+
11190
+ // src/mongoose/Notification.ts
11191
+ import mongoose7 from "mongoose";
11192
+ var MongooseSchema7 = mongoose7.Schema;
11193
+ var schema4 = new MongooseSchema7(
11144
11194
  {
11145
11195
  data: {
11146
11196
  resourceId: { required: true, type: String },
@@ -11163,14 +11213,14 @@ var schema3 = new MongooseSchema6(
11163
11213
  userId: {
11164
11214
  ref: "User",
11165
11215
  required: true,
11166
- type: mongoose6.Schema.Types.ObjectId
11216
+ type: mongoose7.Schema.Types.ObjectId
11167
11217
  }
11168
11218
  },
11169
11219
  { timestamps: true }
11170
11220
  );
11171
- schema3.index({ isRead: 1, userId: 1 });
11172
- schema3.index({ createdAt: -1, userId: 1 });
11173
- var NotificationModel = mongoose6.models.Notification || mongoose6.model("Notification", schema3);
11221
+ schema4.index({ isRead: 1, userId: 1 });
11222
+ schema4.index({ createdAt: -1, userId: 1 });
11223
+ var NotificationModel = mongoose7.models.Notification || mongoose7.model("Notification", schema4);
11174
11224
 
11175
11225
  // node_modules/@timardex/cluemart-shared/dist/chunk-OBQRGWV3.mjs
11176
11226
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
@@ -11181,9 +11231,9 @@ var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11181
11231
  })(EnumOSPlatform2 || {});
11182
11232
 
11183
11233
  // src/mongoose/PushToken.ts
11184
- import mongoose7 from "mongoose";
11185
- var MongooseSchema7 = mongoose7.Schema;
11186
- var schema4 = new MongooseSchema7(
11234
+ import mongoose8 from "mongoose";
11235
+ var MongooseSchema8 = mongoose8.Schema;
11236
+ var schema5 = new MongooseSchema8(
11187
11237
  {
11188
11238
  platform: {
11189
11239
  enum: Object.values(EnumOSPlatform2),
@@ -11191,16 +11241,16 @@ var schema4 = new MongooseSchema7(
11191
11241
  type: String
11192
11242
  },
11193
11243
  token: { required: true, type: String },
11194
- userId: { required: true, type: mongoose7.Schema.Types.ObjectId }
11244
+ userId: { required: true, type: mongoose8.Schema.Types.ObjectId }
11195
11245
  },
11196
11246
  { timestamps: true }
11197
11247
  );
11198
- var PushTokenModel = mongoose7.models.PushToken || mongoose7.model("PushToken", schema4);
11248
+ var PushTokenModel = mongoose8.models.PushToken || mongoose8.model("PushToken", schema5);
11199
11249
 
11200
11250
  // src/mongoose/ResourceActivity.ts
11201
- import mongoose8 from "mongoose";
11202
- var MongooseSchema8 = mongoose8.Schema;
11203
- var ActivitySchema = new MongooseSchema8(
11251
+ import mongoose9 from "mongoose";
11252
+ var MongooseSchema9 = mongoose9.Schema;
11253
+ var ActivitySchema = new MongooseSchema9(
11204
11254
  {
11205
11255
  activityType: {
11206
11256
  enum: Object.values(EnumActivity),
@@ -11236,7 +11286,7 @@ var ActivitySchema = new MongooseSchema8(
11236
11286
  },
11237
11287
  { _id: false }
11238
11288
  );
11239
- var schema5 = new MongooseSchema8(
11289
+ var schema6 = new MongooseSchema9(
11240
11290
  {
11241
11291
  activity: { default: [], type: [ActivitySchema] },
11242
11292
  resourceId: { required: true, type: String },
@@ -11248,14 +11298,14 @@ var schema5 = new MongooseSchema8(
11248
11298
  },
11249
11299
  { timestamps: true }
11250
11300
  );
11251
- schema5.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11252
- schema5.index({ "views.location": "2dsphere" });
11253
- var ResourceActivityModel = mongoose8.models.ResourceActivity || mongoose8.model("ResourceActivity", schema5);
11301
+ schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11302
+ schema6.index({ "views.location": "2dsphere" });
11303
+ var ResourceActivityModel = mongoose9.models.ResourceActivity || mongoose9.model("ResourceActivity", schema6);
11254
11304
 
11255
11305
  // src/mongoose/Tester.ts
11256
- import mongoose9 from "mongoose";
11257
- var MongooseSchema9 = mongoose9.Schema;
11258
- var TesterVendorQuestionarySchema = new MongooseSchema9(
11306
+ import mongoose10 from "mongoose";
11307
+ var MongooseSchema10 = mongoose10.Schema;
11308
+ var TesterVendorQuestionarySchema = new MongooseSchema10(
11259
11309
  {
11260
11310
  appearInVideoIntroduction: {
11261
11311
  default: false,
@@ -11282,7 +11332,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema9(
11282
11332
  },
11283
11333
  { _id: false }
11284
11334
  );
11285
- var TesterVendorSchema = new MongooseSchema9(
11335
+ var TesterVendorSchema = new MongooseSchema10(
11286
11336
  {
11287
11337
  categories: { required: true, type: [CategorySchema] },
11288
11338
  marketsAttended: {
@@ -11308,7 +11358,7 @@ var TesterVendorSchema = new MongooseSchema9(
11308
11358
  },
11309
11359
  { _id: false }
11310
11360
  );
11311
- var TesterEventQuestionarySchema = new MongooseSchema9(
11361
+ var TesterEventQuestionarySchema = new MongooseSchema10(
11312
11362
  {
11313
11363
  allowMarketingAppearance: {
11314
11364
  default: false,
@@ -11343,7 +11393,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
11343
11393
  },
11344
11394
  { _id: false }
11345
11395
  );
11346
- var TesterEventsSchema = new MongooseSchema9(
11396
+ var TesterEventsSchema = new MongooseSchema10(
11347
11397
  {
11348
11398
  markets: {
11349
11399
  required: true,
@@ -11372,7 +11422,7 @@ var TesterEventsSchema = new MongooseSchema9(
11372
11422
  },
11373
11423
  { _id: false }
11374
11424
  );
11375
- var TesterSchema = new MongooseSchema9(
11425
+ var TesterSchema = new MongooseSchema10(
11376
11426
  {
11377
11427
  active: { default: false, required: true, type: Boolean },
11378
11428
  approved: { default: false, required: true, type: Boolean },
@@ -11406,43 +11456,43 @@ var TesterSchema = new MongooseSchema9(
11406
11456
  timestamps: true
11407
11457
  }
11408
11458
  );
11409
- var TesterModel = mongoose9.models.Tester || mongoose9.model("Tester", TesterSchema);
11459
+ var TesterModel = mongoose10.models.Tester || mongoose10.model("Tester", TesterSchema);
11410
11460
 
11411
11461
  // src/mongoose/User.ts
11412
- import mongoose10 from "mongoose";
11413
- var MongooseSchema10 = mongoose10.Schema;
11414
- var userActivityEventSchema = new MongooseSchema10(
11462
+ import mongoose11 from "mongoose";
11463
+ var MongooseSchema11 = mongoose11.Schema;
11464
+ var userActivityEventSchema = new MongooseSchema11(
11415
11465
  {
11416
11466
  dateTime: dateTimeSchema3,
11417
11467
  resourceId: {
11418
11468
  ref: "Event",
11419
11469
  required: false,
11420
- type: mongoose10.Schema.Types.ObjectId
11470
+ type: mongoose11.Schema.Types.ObjectId
11421
11471
  }
11422
11472
  },
11423
11473
  { _id: false }
11424
11474
  );
11425
- var userActivityFavouritesSchema = new MongooseSchema10(
11475
+ var userActivityFavouritesSchema = new MongooseSchema11(
11426
11476
  {
11427
11477
  events: {
11428
11478
  ref: "Event",
11429
11479
  required: false,
11430
- type: [mongoose10.Schema.Types.ObjectId]
11480
+ type: [mongoose11.Schema.Types.ObjectId]
11431
11481
  },
11432
11482
  partners: {
11433
11483
  ref: "Partner",
11434
11484
  required: false,
11435
- type: [mongoose10.Schema.Types.ObjectId]
11485
+ type: [mongoose11.Schema.Types.ObjectId]
11436
11486
  },
11437
11487
  vendors: {
11438
11488
  ref: "Vendor",
11439
11489
  required: false,
11440
- type: [mongoose10.Schema.Types.ObjectId]
11490
+ type: [mongoose11.Schema.Types.ObjectId]
11441
11491
  }
11442
11492
  },
11443
11493
  { _id: false }
11444
11494
  );
11445
- var stripeSchema = new MongooseSchema10(
11495
+ var stripeSchema = new MongooseSchema11(
11446
11496
  {
11447
11497
  currentPlan: {
11448
11498
  enum: Object.values(EnumUserLicence),
@@ -11473,7 +11523,7 @@ var stripeSchema = new MongooseSchema10(
11473
11523
  },
11474
11524
  { _id: false }
11475
11525
  );
11476
- var schema6 = new MongooseSchema10(
11526
+ var schema7 = new MongooseSchema11(
11477
11527
  {
11478
11528
  active: { default: false, required: true, type: Boolean },
11479
11529
  associates: {
@@ -11489,7 +11539,7 @@ var schema6 = new MongooseSchema10(
11489
11539
  events: {
11490
11540
  ref: "Event",
11491
11541
  required: false,
11492
- type: [mongoose10.Schema.Types.ObjectId]
11542
+ type: [mongoose11.Schema.Types.ObjectId]
11493
11543
  },
11494
11544
  firstName: { required: true, type: String },
11495
11545
  isTester: { default: false, required: true, type: Boolean },
@@ -11501,7 +11551,7 @@ var schema6 = new MongooseSchema10(
11501
11551
  partner: {
11502
11552
  ref: "Partner",
11503
11553
  required: false,
11504
- type: mongoose10.Schema.Types.ObjectId
11554
+ type: mongoose11.Schema.Types.ObjectId
11505
11555
  },
11506
11556
  password: { required: true, type: String },
11507
11557
  platform: {
@@ -11546,20 +11596,20 @@ var schema6 = new MongooseSchema10(
11546
11596
  vendor: {
11547
11597
  ref: "Vendor",
11548
11598
  required: false,
11549
- type: mongoose10.Schema.Types.ObjectId
11599
+ type: mongoose11.Schema.Types.ObjectId
11550
11600
  }
11551
11601
  },
11552
11602
  { strict: false, timestamps: true }
11553
11603
  );
11554
- schema6.index({ "associates.email": 1 });
11555
- schema6.index({ "licences.expiryDate": 1 });
11556
- schema6.index({ "licences.licenceType": 1 });
11557
- var UserModel = mongoose10.models.User || mongoose10.model("User", schema6);
11604
+ schema7.index({ "associates.email": 1 });
11605
+ schema7.index({ "licences.expiryDate": 1 });
11606
+ schema7.index({ "licences.licenceType": 1 });
11607
+ var UserModel = mongoose11.models.User || mongoose11.model("User", schema7);
11558
11608
 
11559
11609
  // src/mongoose/VerificationToken.ts
11560
- import mongoose11 from "mongoose";
11561
- var MongooseSchema11 = mongoose11.Schema;
11562
- var schema7 = new MongooseSchema11(
11610
+ import mongoose12 from "mongoose";
11611
+ var MongooseSchema12 = mongoose12.Schema;
11612
+ var schema8 = new MongooseSchema12(
11563
11613
  {
11564
11614
  createdAt: {
11565
11615
  default: Date.now,
@@ -11574,12 +11624,12 @@ var schema7 = new MongooseSchema11(
11574
11624
  },
11575
11625
  { timestamps: true }
11576
11626
  );
11577
- var VerificationTokenModel = mongoose11.models.VerificationToken || mongoose11.model("VerificationToken", schema7);
11627
+ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.model("VerificationToken", schema8);
11578
11628
 
11579
11629
  // src/mongoose/vendor/Vendor.ts
11580
- import mongoose12 from "mongoose";
11581
- var MongooseSchema12 = mongoose12.Schema;
11582
- var MenuTypeSchema = new MongooseSchema12(
11630
+ import mongoose13 from "mongoose";
11631
+ var MongooseSchema13 = mongoose13.Schema;
11632
+ var MenuTypeSchema = new MongooseSchema13(
11583
11633
  {
11584
11634
  description: { required: false, type: String },
11585
11635
  name: { required: false, type: String },
@@ -11589,7 +11639,7 @@ var MenuTypeSchema = new MongooseSchema12(
11589
11639
  { _id: false }
11590
11640
  // Prevents Mongoose from creating an additional _id field for subdocuments
11591
11641
  );
11592
- var LocationsSchema = new MongooseSchema12(
11642
+ var LocationsSchema = new MongooseSchema13(
11593
11643
  {
11594
11644
  dateTime: {
11595
11645
  dateStatus: {
@@ -11622,7 +11672,7 @@ var LocationsSchema = new MongooseSchema12(
11622
11672
  { _id: false }
11623
11673
  // Prevents Mongoose from creating an additional _id field for subdocuments
11624
11674
  );
11625
- var schema8 = new MongooseSchema12(
11675
+ var schema9 = new MongooseSchema13(
11626
11676
  {
11627
11677
  ...baseResourceFields,
11628
11678
  // Importing base resource fields from global.ts
@@ -11644,7 +11694,7 @@ var schema8 = new MongooseSchema12(
11644
11694
  vendorInfoId: {
11645
11695
  ref: "VendorInfo",
11646
11696
  required: false,
11647
- type: mongoose12.Schema.Types.ObjectId
11697
+ type: mongoose13.Schema.Types.ObjectId
11648
11698
  },
11649
11699
  vendorType: {
11650
11700
  enum: Object.values(EnumVendorType),
@@ -11654,24 +11704,24 @@ var schema8 = new MongooseSchema12(
11654
11704
  },
11655
11705
  { timestamps: true }
11656
11706
  );
11657
- schema8.index({ name: 1 });
11658
- schema8.index({ description: 1 });
11659
- schema8.index({ region: 1 });
11660
- schema8.index({ "categories.name": 1 });
11661
- schema8.index({ "associates.email": 1 });
11662
- var VendorModel = mongoose12.models.Vendor || mongoose12.model("Vendor", schema8);
11707
+ schema9.index({ name: 1 });
11708
+ schema9.index({ description: 1 });
11709
+ schema9.index({ region: 1 });
11710
+ schema9.index({ "categories.name": 1 });
11711
+ schema9.index({ "associates.email": 1 });
11712
+ var VendorModel = mongoose13.models.Vendor || mongoose13.model("Vendor", schema9);
11663
11713
 
11664
11714
  // src/mongoose/vendor/VendorInfo.ts
11665
- import mongoose13 from "mongoose";
11666
- var MongooseSchema13 = mongoose13.Schema;
11667
- var AttributesSchema = new MongooseSchema13(
11715
+ import mongoose14 from "mongoose";
11716
+ var MongooseSchema14 = mongoose14.Schema;
11717
+ var AttributesSchema = new MongooseSchema14(
11668
11718
  {
11669
11719
  details: { required: false, type: String },
11670
11720
  isRequired: { default: false, required: true, type: Boolean }
11671
11721
  },
11672
11722
  { _id: false }
11673
11723
  );
11674
- var schema9 = new MongooseSchema13(
11724
+ var schema10 = new MongooseSchema14(
11675
11725
  {
11676
11726
  compliance: {
11677
11727
  foodBeverageLicense: { default: false, required: false, type: Boolean },
@@ -11705,17 +11755,17 @@ var schema9 = new MongooseSchema13(
11705
11755
  vendorId: {
11706
11756
  ref: "Vendor",
11707
11757
  required: true,
11708
- type: mongoose13.Schema.Types.ObjectId
11758
+ type: mongoose14.Schema.Types.ObjectId
11709
11759
  }
11710
11760
  },
11711
11761
  { timestamps: true }
11712
11762
  );
11713
- var VendorInfoModel = mongoose13.models.VendorInfo || mongoose13.model("VendorInfo", schema9);
11763
+ var VendorInfoModel = mongoose14.models.VendorInfo || mongoose14.model("VendorInfo", schema10);
11714
11764
 
11715
11765
  // src/mongoose/event/Event.ts
11716
- import mongoose14 from "mongoose";
11717
- var MongooseSchema14 = mongoose14.Schema;
11718
- var locationsSchema = new MongooseSchema14(
11766
+ import mongoose15 from "mongoose";
11767
+ var MongooseSchema15 = mongoose15.Schema;
11768
+ var locationsSchema = new MongooseSchema15(
11719
11769
  {
11720
11770
  city: { required: true, type: String },
11721
11771
  coordinates: {
@@ -11738,7 +11788,7 @@ var locationsSchema = new MongooseSchema14(
11738
11788
  { _id: false }
11739
11789
  // Prevents Mongoose from creating an additional _id field for subdocuments
11740
11790
  );
11741
- var schema10 = new MongooseSchema14(
11791
+ var schema11 = new MongooseSchema15(
11742
11792
  {
11743
11793
  ...baseResourceFields,
11744
11794
  // Importing base resource fields from global.ts
@@ -11746,7 +11796,7 @@ var schema10 = new MongooseSchema14(
11746
11796
  eventInfoId: {
11747
11797
  ref: "EventInfo",
11748
11798
  required: false,
11749
- type: mongoose14.Schema.Types.ObjectId
11799
+ type: mongoose15.Schema.Types.ObjectId
11750
11800
  },
11751
11801
  eventType: {
11752
11802
  enum: Object.values(EnumEventType),
@@ -11769,18 +11819,18 @@ var schema10 = new MongooseSchema14(
11769
11819
  },
11770
11820
  { timestamps: true }
11771
11821
  );
11772
- schema10.index({ name: 1 });
11773
- schema10.index({ description: 1 });
11774
- schema10.index({ region: 1 });
11775
- schema10.index({ location: "2dsphere" });
11776
- schema10.index({ tags: 1 });
11777
- schema10.index({ "associates.email": 1 });
11778
- var EventModel = mongoose14.models.Event || mongoose14.model("Event", schema10);
11822
+ schema11.index({ name: 1 });
11823
+ schema11.index({ description: 1 });
11824
+ schema11.index({ region: 1 });
11825
+ schema11.index({ location: "2dsphere" });
11826
+ schema11.index({ tags: 1 });
11827
+ schema11.index({ "associates.email": 1 });
11828
+ var EventModel = mongoose15.models.Event || mongoose15.model("Event", schema11);
11779
11829
 
11780
11830
  // src/mongoose/Partner.ts
11781
- import mongoose15 from "mongoose";
11782
- var MongooseSchema15 = mongoose15.Schema;
11783
- var schema11 = new MongooseSchema15(
11831
+ import mongoose16 from "mongoose";
11832
+ var MongooseSchema16 = mongoose16.Schema;
11833
+ var schema12 = new MongooseSchema16(
11784
11834
  {
11785
11835
  ...baseResourceFields,
11786
11836
  location: {
@@ -11796,17 +11846,17 @@ var schema11 = new MongooseSchema15(
11796
11846
  },
11797
11847
  { timestamps: true }
11798
11848
  );
11799
- schema11.index({ name: 1 });
11800
- schema11.index({ description: 1 });
11801
- schema11.index({ region: 1 });
11802
- schema11.index({ location: "2dsphere" });
11803
- schema11.index({ "associates.email": 1 });
11804
- var PartnerModel = mongoose15.models.Partner || mongoose15.model("Partner", schema11);
11849
+ schema12.index({ name: 1 });
11850
+ schema12.index({ description: 1 });
11851
+ schema12.index({ region: 1 });
11852
+ schema12.index({ location: "2dsphere" });
11853
+ schema12.index({ "associates.email": 1 });
11854
+ var PartnerModel = mongoose16.models.Partner || mongoose16.model("Partner", schema12);
11805
11855
 
11806
11856
  // src/mongoose/Post.ts
11807
- import mongoose16, { Schema as Schema2 } from "mongoose";
11808
- var MongooseSchema16 = mongoose16.Schema;
11809
- var contentSchema = new MongooseSchema16(
11857
+ import mongoose17, { Schema as Schema2 } from "mongoose";
11858
+ var MongooseSchema17 = mongoose17.Schema;
11859
+ var contentSchema = new MongooseSchema17(
11810
11860
  {
11811
11861
  contentData: Schema2.Types.Mixed,
11812
11862
  contentOrder: { required: true, type: Number },
@@ -11818,7 +11868,7 @@ var contentSchema = new MongooseSchema16(
11818
11868
  },
11819
11869
  { _id: false }
11820
11870
  );
11821
- var schema12 = new MongooseSchema16(
11871
+ var schema13 = new MongooseSchema17(
11822
11872
  {
11823
11873
  active: { default: true, required: true, type: Boolean },
11824
11874
  caption: { required: true, type: String },
@@ -11833,15 +11883,15 @@ var schema12 = new MongooseSchema16(
11833
11883
  },
11834
11884
  { timestamps: true }
11835
11885
  );
11836
- schema12.index({ title: 1 });
11837
- schema12.index({ tags: 1 });
11838
- var PostModel = mongoose16.models.Post || mongoose16.model("Post", schema12);
11886
+ schema13.index({ title: 1 });
11887
+ schema13.index({ tags: 1 });
11888
+ var PostModel = mongoose17.models.Post || mongoose17.model("Post", schema13);
11839
11889
 
11840
11890
  // src/mongoose/AppSetting.ts
11841
- import mongoose17 from "mongoose";
11842
- var MongooseSchema17 = mongoose17.Schema;
11891
+ import mongoose18 from "mongoose";
11892
+ var MongooseSchema18 = mongoose18.Schema;
11843
11893
  var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
11844
- var AppSettingSchema = new MongooseSchema17(
11894
+ var AppSettingSchema = new MongooseSchema18(
11845
11895
  {
11846
11896
  appVersion: { default: "1.0.1", required: true, type: String },
11847
11897
  key: {
@@ -11856,7 +11906,7 @@ var AppSettingSchema = new MongooseSchema17(
11856
11906
  },
11857
11907
  { timestamps: true }
11858
11908
  );
11859
- var AppSettingModel = mongoose17.models.AppSetting || mongoose17.model("AppSetting", AppSettingSchema);
11909
+ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetting", AppSettingSchema);
11860
11910
 
11861
11911
  export {
11862
11912
  EnumAdStatus,
@@ -11877,6 +11927,7 @@ export {
11877
11927
  AdModel,
11878
11928
  ParticipantSchema,
11879
11929
  ChatModel,
11930
+ GoogleImportedMarketModel,
11880
11931
  NotificationModel,
11881
11932
  PushTokenModel,
11882
11933
  ResourceActivityModel,
@@ -11916,4 +11967,4 @@ react/cjs/react.development.js:
11916
11967
  * LICENSE file in the root directory of this source tree.
11917
11968
  *)
11918
11969
  */
11919
- //# sourceMappingURL=chunk-2W6GLZ2Z.mjs.map
11970
+ //# sourceMappingURL=chunk-5JEBH7MU.mjs.map