@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.
@@ -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
  }
@@ -9969,6 +9969,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
9969
9969
  updateAppSettings(input: $input)
9970
9970
  }
9971
9971
  `;
9972
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
9973
+ mutation crawlGoogleMarkets {
9974
+ crawlGoogleMarkets {
9975
+ message
9976
+ }
9977
+ }
9978
+ `;
9972
9979
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
9973
9980
  fragment AppSettingsFields on AppSettingsType {
9974
9981
  _id
@@ -10145,7 +10152,7 @@ var socialMediaSchema = create$3({
10145
10152
  is: (name) => !!name,
10146
10153
  // If name has a value
10147
10154
  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()
10155
+ otherwise: (schema14) => schema14.notRequired()
10149
10156
  })
10150
10157
  });
10151
10158
  var globalResourceSchema = create$3().shape({
@@ -10218,21 +10225,21 @@ var paymentInfoSchema = create$3({
10218
10225
  paymentMethod: create$8().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
10219
10226
  accountHolderName: create$6().when("paymentMethod", {
10220
10227
  is: "bank_transfer",
10221
- then: (schema13) => schema13.required("Account holder name is required for bank transfer").trim(),
10222
- otherwise: (schema13) => schema13.notRequired()
10228
+ then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
10229
+ otherwise: (schema14) => schema14.notRequired()
10223
10230
  }),
10224
10231
  accountNumber: create$6().when("paymentMethod", {
10225
10232
  is: "bank_transfer",
10226
- then: (schema13) => schema13.required("Account number is required for bank transfer").matches(
10233
+ then: (schema14) => schema14.required("Account number is required for bank transfer").matches(
10227
10234
  nzBankAccountRegex,
10228
10235
  "Account number must be in format: XX-XXXX-XXXXXXX-XX"
10229
10236
  ).trim(),
10230
- otherwise: (schema13) => schema13.notRequired()
10237
+ otherwise: (schema14) => schema14.notRequired()
10231
10238
  }),
10232
10239
  link: create$6().when("paymentMethod", {
10233
10240
  is: (val) => val === "paypal" || val === "stripe",
10234
10241
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
10235
- otherwise: (schema13) => schema13.notRequired()
10242
+ otherwise: (schema14) => schema14.notRequired()
10236
10243
  })
10237
10244
  });
10238
10245
  var eventInfoSchema = create$3().shape({
@@ -10345,8 +10352,8 @@ var userSchema = create$3().shape({
10345
10352
  confirmPassword: create$6().nullable().trim().label("Confirm Password").when("password", {
10346
10353
  is: (val) => !!val,
10347
10354
  // 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()
10355
+ then: (schema14) => schema14.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10356
+ otherwise: (schema14) => schema14.notRequired()
10350
10357
  }),
10351
10358
  role: create$8().oneOf(Object.values(EnumUserRole)).required("Role is required")
10352
10359
  });
@@ -10464,8 +10471,8 @@ var testerSchema = create$3().shape({
10464
10471
  email: emailRequiredSchema,
10465
10472
  event: create$3().when("resourceType", {
10466
10473
  is: (resourceType) => resourceType === "event",
10467
- otherwise: (schema13) => schema13.nullable().optional(),
10468
- then: (schema13) => schema13.required("Event information is required").shape(testerEventSchema.fields)
10474
+ otherwise: (schema14) => schema14.nullable().optional(),
10475
+ then: (schema14) => schema14.required("Event information is required").shape(testerEventSchema.fields)
10469
10476
  }),
10470
10477
  firstName: create$6().required("First name is required"),
10471
10478
  lastName: create$6().required("Last name is required"),
@@ -10483,8 +10490,8 @@ var testerSchema = create$3().shape({
10483
10490
  ).required("Resource Type is required"),
10484
10491
  vendor: create$3().when("resourceType", {
10485
10492
  is: (resourceType) => resourceType === "vendor",
10486
- otherwise: (schema13) => schema13.nullable().optional(),
10487
- then: (schema13) => schema13.required("Vendor information is required").shape(testerVendorSchema.fields)
10493
+ otherwise: (schema14) => schema14.nullable().optional(),
10494
+ then: (schema14) => schema14.required("Vendor information is required").shape(testerVendorSchema.fields)
10488
10495
  })
10489
10496
  });
10490
10497
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -10522,7 +10529,7 @@ var adSchema = create$3().shape({
10522
10529
  return endDate > now;
10523
10530
  }).when("start", {
10524
10531
  is: (val) => val && val.length > 0,
10525
- then: (schema13) => schema13.test(
10532
+ then: (schema14) => schema14.test(
10526
10533
  "is-after-start",
10527
10534
  "End date must be after start date",
10528
10535
  function(value) {
@@ -11137,10 +11144,59 @@ ChatSchema.index({
11137
11144
  });
11138
11145
  var ChatModel = mongoose5.models.Chat || mongoose5.model("Chat", ChatSchema);
11139
11146
 
11140
- // src/mongoose/Notification.ts
11147
+ // src/mongoose/GoogleImportedMarket.ts
11141
11148
  import mongoose6 from "mongoose";
11142
11149
  var MongooseSchema6 = mongoose6.Schema;
11150
+ var locationSchema2 = new MongooseSchema6(
11151
+ {
11152
+ lat: { required: true, type: Number },
11153
+ lng: { required: true, type: Number }
11154
+ },
11155
+ { _id: false }
11156
+ // Prevents Mongoose from creating an additional _id field for subdocuments
11157
+ );
11143
11158
  var schema3 = new MongooseSchema6(
11159
+ {
11160
+ address: { required: true, type: String },
11161
+ businessStatus: { required: false, type: String },
11162
+ claimed: { default: false, required: true, type: Boolean },
11163
+ googleMapsUrl: { required: false, type: String },
11164
+ googlePlaceId: {
11165
+ required: true,
11166
+ type: String,
11167
+ unique: true
11168
+ // unique, indexed
11169
+ },
11170
+ image: { required: false, type: String },
11171
+ // photo_reference only
11172
+ importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11173
+ location: {
11174
+ required: false,
11175
+ // optional because lat/lng may expire after 30 days
11176
+ type: locationSchema2
11177
+ },
11178
+ name: { required: true, type: String },
11179
+ openingHours: { required: false, type: [String] },
11180
+ phone: { required: false, type: String },
11181
+ photos: { required: false, type: [String] },
11182
+ // array of photo_reference
11183
+ rating: { required: false, type: Number },
11184
+ reviewCount: { required: false, type: Number },
11185
+ slug: { required: true, type: String },
11186
+ website: { required: false, type: String }
11187
+ },
11188
+ { timestamps: true }
11189
+ );
11190
+ schema3.index({ name: 1 });
11191
+ schema3.index({ slug: 1 });
11192
+ schema3.index({ address: 1 });
11193
+ schema3.index({ "location.lat": 1, "location.lng": 1 });
11194
+ var GoogleImportedMarketModel = mongoose6.models.GoogleImportedMarket || mongoose6.model("GoogleImportedMarket", schema3);
11195
+
11196
+ // src/mongoose/Notification.ts
11197
+ import mongoose7 from "mongoose";
11198
+ var MongooseSchema7 = mongoose7.Schema;
11199
+ var schema4 = new MongooseSchema7(
11144
11200
  {
11145
11201
  data: {
11146
11202
  resourceId: { required: true, type: String },
@@ -11163,14 +11219,14 @@ var schema3 = new MongooseSchema6(
11163
11219
  userId: {
11164
11220
  ref: "User",
11165
11221
  required: true,
11166
- type: mongoose6.Schema.Types.ObjectId
11222
+ type: mongoose7.Schema.Types.ObjectId
11167
11223
  }
11168
11224
  },
11169
11225
  { timestamps: true }
11170
11226
  );
11171
- schema3.index({ isRead: 1, userId: 1 });
11172
- schema3.index({ createdAt: -1, userId: 1 });
11173
- var NotificationModel = mongoose6.models.Notification || mongoose6.model("Notification", schema3);
11227
+ schema4.index({ isRead: 1, userId: 1 });
11228
+ schema4.index({ createdAt: -1, userId: 1 });
11229
+ var NotificationModel = mongoose7.models.Notification || mongoose7.model("Notification", schema4);
11174
11230
 
11175
11231
  // node_modules/@timardex/cluemart-shared/dist/chunk-OBQRGWV3.mjs
11176
11232
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
@@ -11181,9 +11237,9 @@ var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11181
11237
  })(EnumOSPlatform2 || {});
11182
11238
 
11183
11239
  // src/mongoose/PushToken.ts
11184
- import mongoose7 from "mongoose";
11185
- var MongooseSchema7 = mongoose7.Schema;
11186
- var schema4 = new MongooseSchema7(
11240
+ import mongoose8 from "mongoose";
11241
+ var MongooseSchema8 = mongoose8.Schema;
11242
+ var schema5 = new MongooseSchema8(
11187
11243
  {
11188
11244
  platform: {
11189
11245
  enum: Object.values(EnumOSPlatform2),
@@ -11191,16 +11247,16 @@ var schema4 = new MongooseSchema7(
11191
11247
  type: String
11192
11248
  },
11193
11249
  token: { required: true, type: String },
11194
- userId: { required: true, type: mongoose7.Schema.Types.ObjectId }
11250
+ userId: { required: true, type: mongoose8.Schema.Types.ObjectId }
11195
11251
  },
11196
11252
  { timestamps: true }
11197
11253
  );
11198
- var PushTokenModel = mongoose7.models.PushToken || mongoose7.model("PushToken", schema4);
11254
+ var PushTokenModel = mongoose8.models.PushToken || mongoose8.model("PushToken", schema5);
11199
11255
 
11200
11256
  // src/mongoose/ResourceActivity.ts
11201
- import mongoose8 from "mongoose";
11202
- var MongooseSchema8 = mongoose8.Schema;
11203
- var ActivitySchema = new MongooseSchema8(
11257
+ import mongoose9 from "mongoose";
11258
+ var MongooseSchema9 = mongoose9.Schema;
11259
+ var ActivitySchema = new MongooseSchema9(
11204
11260
  {
11205
11261
  activityType: {
11206
11262
  enum: Object.values(EnumActivity),
@@ -11236,7 +11292,7 @@ var ActivitySchema = new MongooseSchema8(
11236
11292
  },
11237
11293
  { _id: false }
11238
11294
  );
11239
- var schema5 = new MongooseSchema8(
11295
+ var schema6 = new MongooseSchema9(
11240
11296
  {
11241
11297
  activity: { default: [], type: [ActivitySchema] },
11242
11298
  resourceId: { required: true, type: String },
@@ -11248,14 +11304,14 @@ var schema5 = new MongooseSchema8(
11248
11304
  },
11249
11305
  { timestamps: true }
11250
11306
  );
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);
11307
+ schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11308
+ schema6.index({ "views.location": "2dsphere" });
11309
+ var ResourceActivityModel = mongoose9.models.ResourceActivity || mongoose9.model("ResourceActivity", schema6);
11254
11310
 
11255
11311
  // src/mongoose/Tester.ts
11256
- import mongoose9 from "mongoose";
11257
- var MongooseSchema9 = mongoose9.Schema;
11258
- var TesterVendorQuestionarySchema = new MongooseSchema9(
11312
+ import mongoose10 from "mongoose";
11313
+ var MongooseSchema10 = mongoose10.Schema;
11314
+ var TesterVendorQuestionarySchema = new MongooseSchema10(
11259
11315
  {
11260
11316
  appearInVideoIntroduction: {
11261
11317
  default: false,
@@ -11282,7 +11338,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema9(
11282
11338
  },
11283
11339
  { _id: false }
11284
11340
  );
11285
- var TesterVendorSchema = new MongooseSchema9(
11341
+ var TesterVendorSchema = new MongooseSchema10(
11286
11342
  {
11287
11343
  categories: { required: true, type: [CategorySchema] },
11288
11344
  marketsAttended: {
@@ -11308,7 +11364,7 @@ var TesterVendorSchema = new MongooseSchema9(
11308
11364
  },
11309
11365
  { _id: false }
11310
11366
  );
11311
- var TesterEventQuestionarySchema = new MongooseSchema9(
11367
+ var TesterEventQuestionarySchema = new MongooseSchema10(
11312
11368
  {
11313
11369
  allowMarketingAppearance: {
11314
11370
  default: false,
@@ -11343,7 +11399,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
11343
11399
  },
11344
11400
  { _id: false }
11345
11401
  );
11346
- var TesterEventsSchema = new MongooseSchema9(
11402
+ var TesterEventsSchema = new MongooseSchema10(
11347
11403
  {
11348
11404
  markets: {
11349
11405
  required: true,
@@ -11372,7 +11428,7 @@ var TesterEventsSchema = new MongooseSchema9(
11372
11428
  },
11373
11429
  { _id: false }
11374
11430
  );
11375
- var TesterSchema = new MongooseSchema9(
11431
+ var TesterSchema = new MongooseSchema10(
11376
11432
  {
11377
11433
  active: { default: false, required: true, type: Boolean },
11378
11434
  approved: { default: false, required: true, type: Boolean },
@@ -11406,43 +11462,43 @@ var TesterSchema = new MongooseSchema9(
11406
11462
  timestamps: true
11407
11463
  }
11408
11464
  );
11409
- var TesterModel = mongoose9.models.Tester || mongoose9.model("Tester", TesterSchema);
11465
+ var TesterModel = mongoose10.models.Tester || mongoose10.model("Tester", TesterSchema);
11410
11466
 
11411
11467
  // src/mongoose/User.ts
11412
- import mongoose10 from "mongoose";
11413
- var MongooseSchema10 = mongoose10.Schema;
11414
- var userActivityEventSchema = new MongooseSchema10(
11468
+ import mongoose11 from "mongoose";
11469
+ var MongooseSchema11 = mongoose11.Schema;
11470
+ var userActivityEventSchema = new MongooseSchema11(
11415
11471
  {
11416
11472
  dateTime: dateTimeSchema3,
11417
11473
  resourceId: {
11418
11474
  ref: "Event",
11419
11475
  required: false,
11420
- type: mongoose10.Schema.Types.ObjectId
11476
+ type: mongoose11.Schema.Types.ObjectId
11421
11477
  }
11422
11478
  },
11423
11479
  { _id: false }
11424
11480
  );
11425
- var userActivityFavouritesSchema = new MongooseSchema10(
11481
+ var userActivityFavouritesSchema = new MongooseSchema11(
11426
11482
  {
11427
11483
  events: {
11428
11484
  ref: "Event",
11429
11485
  required: false,
11430
- type: [mongoose10.Schema.Types.ObjectId]
11486
+ type: [mongoose11.Schema.Types.ObjectId]
11431
11487
  },
11432
11488
  partners: {
11433
11489
  ref: "Partner",
11434
11490
  required: false,
11435
- type: [mongoose10.Schema.Types.ObjectId]
11491
+ type: [mongoose11.Schema.Types.ObjectId]
11436
11492
  },
11437
11493
  vendors: {
11438
11494
  ref: "Vendor",
11439
11495
  required: false,
11440
- type: [mongoose10.Schema.Types.ObjectId]
11496
+ type: [mongoose11.Schema.Types.ObjectId]
11441
11497
  }
11442
11498
  },
11443
11499
  { _id: false }
11444
11500
  );
11445
- var stripeSchema = new MongooseSchema10(
11501
+ var stripeSchema = new MongooseSchema11(
11446
11502
  {
11447
11503
  currentPlan: {
11448
11504
  enum: Object.values(EnumUserLicence),
@@ -11473,7 +11529,7 @@ var stripeSchema = new MongooseSchema10(
11473
11529
  },
11474
11530
  { _id: false }
11475
11531
  );
11476
- var schema6 = new MongooseSchema10(
11532
+ var schema7 = new MongooseSchema11(
11477
11533
  {
11478
11534
  active: { default: false, required: true, type: Boolean },
11479
11535
  associates: {
@@ -11489,7 +11545,7 @@ var schema6 = new MongooseSchema10(
11489
11545
  events: {
11490
11546
  ref: "Event",
11491
11547
  required: false,
11492
- type: [mongoose10.Schema.Types.ObjectId]
11548
+ type: [mongoose11.Schema.Types.ObjectId]
11493
11549
  },
11494
11550
  firstName: { required: true, type: String },
11495
11551
  isTester: { default: false, required: true, type: Boolean },
@@ -11501,7 +11557,7 @@ var schema6 = new MongooseSchema10(
11501
11557
  partner: {
11502
11558
  ref: "Partner",
11503
11559
  required: false,
11504
- type: mongoose10.Schema.Types.ObjectId
11560
+ type: mongoose11.Schema.Types.ObjectId
11505
11561
  },
11506
11562
  password: { required: true, type: String },
11507
11563
  platform: {
@@ -11546,20 +11602,20 @@ var schema6 = new MongooseSchema10(
11546
11602
  vendor: {
11547
11603
  ref: "Vendor",
11548
11604
  required: false,
11549
- type: mongoose10.Schema.Types.ObjectId
11605
+ type: mongoose11.Schema.Types.ObjectId
11550
11606
  }
11551
11607
  },
11552
11608
  { strict: false, timestamps: true }
11553
11609
  );
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);
11610
+ schema7.index({ "associates.email": 1 });
11611
+ schema7.index({ "licences.expiryDate": 1 });
11612
+ schema7.index({ "licences.licenceType": 1 });
11613
+ var UserModel = mongoose11.models.User || mongoose11.model("User", schema7);
11558
11614
 
11559
11615
  // src/mongoose/VerificationToken.ts
11560
- import mongoose11 from "mongoose";
11561
- var MongooseSchema11 = mongoose11.Schema;
11562
- var schema7 = new MongooseSchema11(
11616
+ import mongoose12 from "mongoose";
11617
+ var MongooseSchema12 = mongoose12.Schema;
11618
+ var schema8 = new MongooseSchema12(
11563
11619
  {
11564
11620
  createdAt: {
11565
11621
  default: Date.now,
@@ -11574,12 +11630,12 @@ var schema7 = new MongooseSchema11(
11574
11630
  },
11575
11631
  { timestamps: true }
11576
11632
  );
11577
- var VerificationTokenModel = mongoose11.models.VerificationToken || mongoose11.model("VerificationToken", schema7);
11633
+ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.model("VerificationToken", schema8);
11578
11634
 
11579
11635
  // src/mongoose/vendor/Vendor.ts
11580
- import mongoose12 from "mongoose";
11581
- var MongooseSchema12 = mongoose12.Schema;
11582
- var MenuTypeSchema = new MongooseSchema12(
11636
+ import mongoose13 from "mongoose";
11637
+ var MongooseSchema13 = mongoose13.Schema;
11638
+ var MenuTypeSchema = new MongooseSchema13(
11583
11639
  {
11584
11640
  description: { required: false, type: String },
11585
11641
  name: { required: false, type: String },
@@ -11589,7 +11645,7 @@ var MenuTypeSchema = new MongooseSchema12(
11589
11645
  { _id: false }
11590
11646
  // Prevents Mongoose from creating an additional _id field for subdocuments
11591
11647
  );
11592
- var LocationsSchema = new MongooseSchema12(
11648
+ var LocationsSchema = new MongooseSchema13(
11593
11649
  {
11594
11650
  dateTime: {
11595
11651
  dateStatus: {
@@ -11622,7 +11678,7 @@ var LocationsSchema = new MongooseSchema12(
11622
11678
  { _id: false }
11623
11679
  // Prevents Mongoose from creating an additional _id field for subdocuments
11624
11680
  );
11625
- var schema8 = new MongooseSchema12(
11681
+ var schema9 = new MongooseSchema13(
11626
11682
  {
11627
11683
  ...baseResourceFields,
11628
11684
  // Importing base resource fields from global.ts
@@ -11644,7 +11700,7 @@ var schema8 = new MongooseSchema12(
11644
11700
  vendorInfoId: {
11645
11701
  ref: "VendorInfo",
11646
11702
  required: false,
11647
- type: mongoose12.Schema.Types.ObjectId
11703
+ type: mongoose13.Schema.Types.ObjectId
11648
11704
  },
11649
11705
  vendorType: {
11650
11706
  enum: Object.values(EnumVendorType),
@@ -11654,24 +11710,24 @@ var schema8 = new MongooseSchema12(
11654
11710
  },
11655
11711
  { timestamps: true }
11656
11712
  );
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);
11713
+ schema9.index({ name: 1 });
11714
+ schema9.index({ description: 1 });
11715
+ schema9.index({ region: 1 });
11716
+ schema9.index({ "categories.name": 1 });
11717
+ schema9.index({ "associates.email": 1 });
11718
+ var VendorModel = mongoose13.models.Vendor || mongoose13.model("Vendor", schema9);
11663
11719
 
11664
11720
  // src/mongoose/vendor/VendorInfo.ts
11665
- import mongoose13 from "mongoose";
11666
- var MongooseSchema13 = mongoose13.Schema;
11667
- var AttributesSchema = new MongooseSchema13(
11721
+ import mongoose14 from "mongoose";
11722
+ var MongooseSchema14 = mongoose14.Schema;
11723
+ var AttributesSchema = new MongooseSchema14(
11668
11724
  {
11669
11725
  details: { required: false, type: String },
11670
11726
  isRequired: { default: false, required: true, type: Boolean }
11671
11727
  },
11672
11728
  { _id: false }
11673
11729
  );
11674
- var schema9 = new MongooseSchema13(
11730
+ var schema10 = new MongooseSchema14(
11675
11731
  {
11676
11732
  compliance: {
11677
11733
  foodBeverageLicense: { default: false, required: false, type: Boolean },
@@ -11705,17 +11761,17 @@ var schema9 = new MongooseSchema13(
11705
11761
  vendorId: {
11706
11762
  ref: "Vendor",
11707
11763
  required: true,
11708
- type: mongoose13.Schema.Types.ObjectId
11764
+ type: mongoose14.Schema.Types.ObjectId
11709
11765
  }
11710
11766
  },
11711
11767
  { timestamps: true }
11712
11768
  );
11713
- var VendorInfoModel = mongoose13.models.VendorInfo || mongoose13.model("VendorInfo", schema9);
11769
+ var VendorInfoModel = mongoose14.models.VendorInfo || mongoose14.model("VendorInfo", schema10);
11714
11770
 
11715
11771
  // src/mongoose/event/Event.ts
11716
- import mongoose14 from "mongoose";
11717
- var MongooseSchema14 = mongoose14.Schema;
11718
- var locationsSchema = new MongooseSchema14(
11772
+ import mongoose15 from "mongoose";
11773
+ var MongooseSchema15 = mongoose15.Schema;
11774
+ var locationsSchema = new MongooseSchema15(
11719
11775
  {
11720
11776
  city: { required: true, type: String },
11721
11777
  coordinates: {
@@ -11738,7 +11794,7 @@ var locationsSchema = new MongooseSchema14(
11738
11794
  { _id: false }
11739
11795
  // Prevents Mongoose from creating an additional _id field for subdocuments
11740
11796
  );
11741
- var schema10 = new MongooseSchema14(
11797
+ var schema11 = new MongooseSchema15(
11742
11798
  {
11743
11799
  ...baseResourceFields,
11744
11800
  // Importing base resource fields from global.ts
@@ -11746,7 +11802,7 @@ var schema10 = new MongooseSchema14(
11746
11802
  eventInfoId: {
11747
11803
  ref: "EventInfo",
11748
11804
  required: false,
11749
- type: mongoose14.Schema.Types.ObjectId
11805
+ type: mongoose15.Schema.Types.ObjectId
11750
11806
  },
11751
11807
  eventType: {
11752
11808
  enum: Object.values(EnumEventType),
@@ -11769,18 +11825,18 @@ var schema10 = new MongooseSchema14(
11769
11825
  },
11770
11826
  { timestamps: true }
11771
11827
  );
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);
11828
+ schema11.index({ name: 1 });
11829
+ schema11.index({ description: 1 });
11830
+ schema11.index({ region: 1 });
11831
+ schema11.index({ location: "2dsphere" });
11832
+ schema11.index({ tags: 1 });
11833
+ schema11.index({ "associates.email": 1 });
11834
+ var EventModel = mongoose15.models.Event || mongoose15.model("Event", schema11);
11779
11835
 
11780
11836
  // src/mongoose/Partner.ts
11781
- import mongoose15 from "mongoose";
11782
- var MongooseSchema15 = mongoose15.Schema;
11783
- var schema11 = new MongooseSchema15(
11837
+ import mongoose16 from "mongoose";
11838
+ var MongooseSchema16 = mongoose16.Schema;
11839
+ var schema12 = new MongooseSchema16(
11784
11840
  {
11785
11841
  ...baseResourceFields,
11786
11842
  location: {
@@ -11796,17 +11852,17 @@ var schema11 = new MongooseSchema15(
11796
11852
  },
11797
11853
  { timestamps: true }
11798
11854
  );
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);
11855
+ schema12.index({ name: 1 });
11856
+ schema12.index({ description: 1 });
11857
+ schema12.index({ region: 1 });
11858
+ schema12.index({ location: "2dsphere" });
11859
+ schema12.index({ "associates.email": 1 });
11860
+ var PartnerModel = mongoose16.models.Partner || mongoose16.model("Partner", schema12);
11805
11861
 
11806
11862
  // src/mongoose/Post.ts
11807
- import mongoose16, { Schema as Schema2 } from "mongoose";
11808
- var MongooseSchema16 = mongoose16.Schema;
11809
- var contentSchema = new MongooseSchema16(
11863
+ import mongoose17, { Schema as Schema2 } from "mongoose";
11864
+ var MongooseSchema17 = mongoose17.Schema;
11865
+ var contentSchema = new MongooseSchema17(
11810
11866
  {
11811
11867
  contentData: Schema2.Types.Mixed,
11812
11868
  contentOrder: { required: true, type: Number },
@@ -11818,7 +11874,7 @@ var contentSchema = new MongooseSchema16(
11818
11874
  },
11819
11875
  { _id: false }
11820
11876
  );
11821
- var schema12 = new MongooseSchema16(
11877
+ var schema13 = new MongooseSchema17(
11822
11878
  {
11823
11879
  active: { default: true, required: true, type: Boolean },
11824
11880
  caption: { required: true, type: String },
@@ -11833,15 +11889,15 @@ var schema12 = new MongooseSchema16(
11833
11889
  },
11834
11890
  { timestamps: true }
11835
11891
  );
11836
- schema12.index({ title: 1 });
11837
- schema12.index({ tags: 1 });
11838
- var PostModel = mongoose16.models.Post || mongoose16.model("Post", schema12);
11892
+ schema13.index({ title: 1 });
11893
+ schema13.index({ tags: 1 });
11894
+ var PostModel = mongoose17.models.Post || mongoose17.model("Post", schema13);
11839
11895
 
11840
11896
  // src/mongoose/AppSetting.ts
11841
- import mongoose17 from "mongoose";
11842
- var MongooseSchema17 = mongoose17.Schema;
11897
+ import mongoose18 from "mongoose";
11898
+ var MongooseSchema18 = mongoose18.Schema;
11843
11899
  var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
11844
- var AppSettingSchema = new MongooseSchema17(
11900
+ var AppSettingSchema = new MongooseSchema18(
11845
11901
  {
11846
11902
  appVersion: { default: "1.0.1", required: true, type: String },
11847
11903
  key: {
@@ -11856,7 +11912,7 @@ var AppSettingSchema = new MongooseSchema17(
11856
11912
  },
11857
11913
  { timestamps: true }
11858
11914
  );
11859
- var AppSettingModel = mongoose17.models.AppSetting || mongoose17.model("AppSetting", AppSettingSchema);
11915
+ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetting", AppSettingSchema);
11860
11916
 
11861
11917
  export {
11862
11918
  EnumAdStatus,
@@ -11877,6 +11933,7 @@ export {
11877
11933
  AdModel,
11878
11934
  ParticipantSchema,
11879
11935
  ChatModel,
11936
+ GoogleImportedMarketModel,
11880
11937
  NotificationModel,
11881
11938
  PushTokenModel,
11882
11939
  ResourceActivityModel,
@@ -11916,4 +11973,4 @@ react/cjs/react.development.js:
11916
11973
  * LICENSE file in the root directory of this source tree.
11917
11974
  *)
11918
11975
  */
11919
- //# sourceMappingURL=chunk-2W6GLZ2Z.mjs.map
11976
+ //# sourceMappingURL=chunk-EOKS26AC.mjs.map