@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.
@@ -4718,10 +4718,10 @@ var Condition = class _Condition {
4718
4718
  otherwise
4719
4719
  } = config;
4720
4720
  let check = typeof is === "function" ? is : (...values) => values.every((value) => value === is);
4721
- return new _Condition(refs, (values, schema13) => {
4721
+ return new _Condition(refs, (values, schema14) => {
4722
4722
  var _branch;
4723
4723
  let branch = check(...values) ? then : otherwise;
4724
- return (_branch = branch == null ? void 0 : branch(schema13)) != null ? _branch : schema13;
4724
+ return (_branch = branch == null ? void 0 : branch(schema14)) != null ? _branch : schema14;
4725
4725
  });
4726
4726
  }
4727
4727
  constructor(refs, builder) {
@@ -4735,13 +4735,13 @@ var Condition = class _Condition {
4735
4735
  // TODO: ? operator here?
4736
4736
  ref.getValue(options == null ? void 0 : options.value, options == null ? void 0 : options.parent, options == null ? void 0 : options.context)
4737
4737
  ));
4738
- let schema13 = this.fn(values, base, options);
4739
- if (schema13 === void 0 || // @ts-ignore this can be base
4740
- schema13 === base) {
4738
+ let schema14 = this.fn(values, base, options);
4739
+ if (schema14 === void 0 || // @ts-ignore this can be base
4740
+ schema14 === base) {
4741
4741
  return base;
4742
4742
  }
4743
- if (!isSchema(schema13)) throw new TypeError("conditions must return a schema object");
4744
- return schema13.resolve(options);
4743
+ if (!isSchema(schema14)) throw new TypeError("conditions must return a schema object");
4744
+ return schema14.resolve(options);
4745
4745
  }
4746
4746
  };
4747
4747
  var prefixes = {
@@ -4811,7 +4811,7 @@ function createValidation(config) {
4811
4811
  path = "",
4812
4812
  options,
4813
4813
  originalValue,
4814
- schema: schema13
4814
+ schema: schema14
4815
4815
  }, panic, next) {
4816
4816
  const {
4817
4817
  name,
@@ -4823,8 +4823,8 @@ function createValidation(config) {
4823
4823
  let {
4824
4824
  parent,
4825
4825
  context,
4826
- abortEarly = schema13.spec.abortEarly,
4827
- disableStackTrace = schema13.spec.disableStackTrace
4826
+ abortEarly = schema14.spec.abortEarly,
4827
+ disableStackTrace = schema14.spec.disableStackTrace
4828
4828
  } = options;
4829
4829
  const resolveOptions = {
4830
4830
  value,
@@ -4835,9 +4835,9 @@ function createValidation(config) {
4835
4835
  const nextParams = resolveParams(Object.assign({
4836
4836
  value,
4837
4837
  originalValue,
4838
- label: schema13.spec.label,
4838
+ label: schema14.spec.label,
4839
4839
  path: overrides.path || path,
4840
- spec: schema13.spec,
4840
+ spec: schema14.spec,
4841
4841
  disableStackTrace: overrides.disableStackTrace || disableStackTrace
4842
4842
  }, params, overrides.params), resolveOptions);
4843
4843
  const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name, nextParams.disableStackTrace);
@@ -4856,7 +4856,7 @@ function createValidation(config) {
4856
4856
  },
4857
4857
  options,
4858
4858
  originalValue,
4859
- schema: schema13
4859
+ schema: schema14
4860
4860
  };
4861
4861
  const handleResult = (validOrError) => {
4862
4862
  if (ValidationError.isError(validOrError)) invalid(validOrError);
@@ -4900,42 +4900,42 @@ function resolveParams(params, options) {
4900
4900
  function resolveMaybeRef(item, options) {
4901
4901
  return Reference.isRef(item) ? item.getValue(options.value, options.parent, options.context) : item;
4902
4902
  }
4903
- function getIn(schema13, path, value, context = value) {
4903
+ function getIn(schema14, path, value, context = value) {
4904
4904
  let parent, lastPart, lastPartDebug;
4905
4905
  if (!path) return {
4906
4906
  parent,
4907
4907
  parentPath: path,
4908
- schema: schema13
4908
+ schema: schema14
4909
4909
  };
4910
4910
  (0, import_property_expr.forEach)(path, (_part, isBracket, isArray) => {
4911
4911
  let part = isBracket ? _part.slice(1, _part.length - 1) : _part;
4912
- schema13 = schema13.resolve({
4912
+ schema14 = schema14.resolve({
4913
4913
  context,
4914
4914
  parent,
4915
4915
  value
4916
4916
  });
4917
- let isTuple = schema13.type === "tuple";
4917
+ let isTuple = schema14.type === "tuple";
4918
4918
  let idx = isArray ? parseInt(part, 10) : 0;
4919
- if (schema13.innerType || isTuple) {
4919
+ if (schema14.innerType || isTuple) {
4920
4920
  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]"`);
4921
4921
  if (value && idx >= value.length) {
4922
4922
  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. `);
4923
4923
  }
4924
4924
  parent = value;
4925
4925
  value = value && value[idx];
4926
- schema13 = isTuple ? schema13.spec.types[idx] : schema13.innerType;
4926
+ schema14 = isTuple ? schema14.spec.types[idx] : schema14.innerType;
4927
4927
  }
4928
4928
  if (!isArray) {
4929
- 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}")`);
4929
+ 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}")`);
4930
4930
  parent = value;
4931
4931
  value = value && value[part];
4932
- schema13 = schema13.fields[part];
4932
+ schema14 = schema14.fields[part];
4933
4933
  }
4934
4934
  lastPart = part;
4935
4935
  lastPartDebug = isBracket ? "[" + _part + "]" : "." + _part;
4936
4936
  });
4937
4937
  return {
4938
- schema: schema13,
4938
+ schema: schema14,
4939
4939
  parent,
4940
4940
  parentPath: lastPart
4941
4941
  };
@@ -5135,20 +5135,20 @@ var Schema = class {
5135
5135
  this._mutate = before;
5136
5136
  return result;
5137
5137
  }
5138
- concat(schema13) {
5139
- if (!schema13 || schema13 === this) return this;
5140
- if (schema13.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema13.type}`);
5138
+ concat(schema14) {
5139
+ if (!schema14 || schema14 === this) return this;
5140
+ if (schema14.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${schema14.type}`);
5141
5141
  let base = this;
5142
- let combined = schema13.clone();
5142
+ let combined = schema14.clone();
5143
5143
  const mergedSpec = Object.assign({}, base.spec, combined.spec);
5144
5144
  combined.spec = mergedSpec;
5145
5145
  combined.internalTests = Object.assign({}, base.internalTests, combined.internalTests);
5146
- combined._whitelist = base._whitelist.merge(schema13._whitelist, schema13._blacklist);
5147
- combined._blacklist = base._blacklist.merge(schema13._blacklist, schema13._whitelist);
5146
+ combined._whitelist = base._whitelist.merge(schema14._whitelist, schema14._blacklist);
5147
+ combined._blacklist = base._blacklist.merge(schema14._blacklist, schema14._whitelist);
5148
5148
  combined.tests = base.tests;
5149
5149
  combined.exclusiveTests = base.exclusiveTests;
5150
5150
  combined.withMutation((next) => {
5151
- schema13.tests.forEach((fn) => {
5151
+ schema14.tests.forEach((fn) => {
5152
5152
  next.test(fn.OPTIONS);
5153
5153
  });
5154
5154
  });
@@ -5164,15 +5164,15 @@ var Schema = class {
5164
5164
  return this._typeCheck(v);
5165
5165
  }
5166
5166
  resolve(options) {
5167
- let schema13 = this;
5168
- if (schema13.conditions.length) {
5169
- let conditions = schema13.conditions;
5170
- schema13 = schema13.clone();
5171
- schema13.conditions = [];
5172
- schema13 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema13);
5173
- schema13 = schema13.resolve(options);
5167
+ let schema14 = this;
5168
+ if (schema14.conditions.length) {
5169
+ let conditions = schema14.conditions;
5170
+ schema14 = schema14.clone();
5171
+ schema14.conditions = [];
5172
+ schema14 = conditions.reduce((prevSchema, condition) => condition.resolve(prevSchema, options), schema14);
5173
+ schema14 = schema14.resolve(options);
5174
5174
  }
5175
- return schema13;
5175
+ return schema14;
5176
5176
  }
5177
5177
  resolveOptions(options) {
5178
5178
  var _options$strict, _options$abortEarly, _options$recursive, _options$disableStack;
@@ -5328,11 +5328,11 @@ attempted value: ${formattedValue}
5328
5328
  }
5329
5329
  validate(value, options) {
5330
5330
  var _options$disableStack2;
5331
- let schema13 = this.resolve(Object.assign({}, options, {
5331
+ let schema14 = this.resolve(Object.assign({}, options, {
5332
5332
  value
5333
5333
  }));
5334
- let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema13.spec.disableStackTrace;
5335
- return new Promise((resolve, reject) => schema13._validate(value, options, (error, parsed) => {
5334
+ let disableStackTrace = (_options$disableStack2 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack2 : schema14.spec.disableStackTrace;
5335
+ return new Promise((resolve, reject) => schema14._validate(value, options, (error, parsed) => {
5336
5336
  if (ValidationError.isError(error)) error.value = parsed;
5337
5337
  reject(error);
5338
5338
  }, (errors, validated) => {
@@ -5342,12 +5342,12 @@ attempted value: ${formattedValue}
5342
5342
  }
5343
5343
  validateSync(value, options) {
5344
5344
  var _options$disableStack3;
5345
- let schema13 = this.resolve(Object.assign({}, options, {
5345
+ let schema14 = this.resolve(Object.assign({}, options, {
5346
5346
  value
5347
5347
  }));
5348
5348
  let result;
5349
- let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema13.spec.disableStackTrace;
5350
- schema13._validate(value, Object.assign({}, options, {
5349
+ let disableStackTrace = (_options$disableStack3 = options == null ? void 0 : options.disableStackTrace) != null ? _options$disableStack3 : schema14.spec.disableStackTrace;
5350
+ schema14._validate(value, Object.assign({}, options, {
5351
5351
  sync: true
5352
5352
  }), (error, parsed) => {
5353
5353
  if (ValidationError.isError(error)) error.value = parsed;
@@ -5381,8 +5381,8 @@ attempted value: ${formattedValue}
5381
5381
  return typeof defaultValue === "function" ? defaultValue.call(this, options) : clone(defaultValue);
5382
5382
  }
5383
5383
  getDefault(options) {
5384
- let schema13 = this.resolve(options || {});
5385
- return schema13._getDefault(options);
5384
+ let schema14 = this.resolve(options || {});
5385
+ return schema14._getDefault(options);
5386
5386
  }
5387
5387
  default(def) {
5388
5388
  if (arguments.length === 0) {
@@ -5615,13 +5615,13 @@ attempted value: ${formattedValue}
5615
5615
  return description;
5616
5616
  }
5617
5617
  get ["~standard"]() {
5618
- const schema13 = this;
5618
+ const schema14 = this;
5619
5619
  const standard = {
5620
5620
  version: 1,
5621
5621
  vendor: "yup",
5622
5622
  async validate(value) {
5623
5623
  try {
5624
- const result = await schema13.validate(value, {
5624
+ const result = await schema14.validate(value, {
5625
5625
  abortEarly: false
5626
5626
  });
5627
5627
  return {
@@ -5645,9 +5645,9 @@ for (const method of ["validate", "validateSync"]) Schema.prototype[`${method}At
5645
5645
  const {
5646
5646
  parent,
5647
5647
  parentPath,
5648
- schema: schema13
5648
+ schema: schema14
5649
5649
  } = getIn(this, path, value, options.context);
5650
- return schema13[method](parent && parent[parentPath], Object.assign({}, options, {
5650
+ return schema14[method](parent && parent[parentPath], Object.assign({}, options, {
5651
5651
  parent,
5652
5652
  path
5653
5653
  }));
@@ -5821,7 +5821,7 @@ var StringSchema = class extends Schema {
5821
5821
  });
5822
5822
  }
5823
5823
  required(message) {
5824
- return super.required(message).withMutation((schema13) => schema13.test({
5824
+ return super.required(message).withMutation((schema14) => schema14.test({
5825
5825
  message: message || mixed.required,
5826
5826
  name: "required",
5827
5827
  skipAbsent: true,
@@ -5829,9 +5829,9 @@ var StringSchema = class extends Schema {
5829
5829
  }));
5830
5830
  }
5831
5831
  notRequired() {
5832
- return super.notRequired().withMutation((schema13) => {
5833
- schema13.tests = schema13.tests.filter((t) => t.OPTIONS.name !== "required");
5834
- return schema13;
5832
+ return super.notRequired().withMutation((schema14) => {
5833
+ schema14.tests = schema14.tests.filter((t) => t.OPTIONS.name !== "required");
5834
+ return schema14;
5835
5835
  });
5836
5836
  }
5837
5837
  length(length, message = string.length) {
@@ -6209,7 +6209,7 @@ function sortByKeyOrder(keys) {
6209
6209
  return findIndex(keys, a) - findIndex(keys, b);
6210
6210
  };
6211
6211
  }
6212
- var parseJson = (value, _, schema13) => {
6212
+ var parseJson = (value, _, schema14) => {
6213
6213
  if (typeof value !== "string") {
6214
6214
  return value;
6215
6215
  }
@@ -6218,30 +6218,30 @@ var parseJson = (value, _, schema13) => {
6218
6218
  parsed = JSON.parse(value);
6219
6219
  } catch (err) {
6220
6220
  }
6221
- return schema13.isType(parsed) ? parsed : value;
6221
+ return schema14.isType(parsed) ? parsed : value;
6222
6222
  };
6223
- function deepPartial(schema13) {
6224
- if ("fields" in schema13) {
6223
+ function deepPartial(schema14) {
6224
+ if ("fields" in schema14) {
6225
6225
  const partial = {};
6226
- for (const [key, fieldSchema] of Object.entries(schema13.fields)) {
6226
+ for (const [key, fieldSchema] of Object.entries(schema14.fields)) {
6227
6227
  partial[key] = deepPartial(fieldSchema);
6228
6228
  }
6229
- return schema13.setFields(partial);
6229
+ return schema14.setFields(partial);
6230
6230
  }
6231
- if (schema13.type === "array") {
6232
- const nextArray = schema13.optional();
6231
+ if (schema14.type === "array") {
6232
+ const nextArray = schema14.optional();
6233
6233
  if (nextArray.innerType) nextArray.innerType = deepPartial(nextArray.innerType);
6234
6234
  return nextArray;
6235
6235
  }
6236
- if (schema13.type === "tuple") {
6237
- return schema13.optional().clone({
6238
- types: schema13.spec.types.map(deepPartial)
6236
+ if (schema14.type === "tuple") {
6237
+ return schema14.optional().clone({
6238
+ types: schema14.spec.types.map(deepPartial)
6239
6239
  });
6240
6240
  }
6241
- if ("optional" in schema13) {
6242
- return schema13.optional();
6241
+ if ("optional" in schema14) {
6242
+ return schema14.optional();
6243
6243
  }
6244
- return schema13;
6244
+ return schema14;
6245
6245
  }
6246
6246
  var deepHas = (obj, p) => {
6247
6247
  const path = [...(0, import_property_expr.normalizePath)(p)];
@@ -6372,8 +6372,8 @@ var ObjectSchema = class extends Schema {
6372
6372
  next._sortErrors = this._sortErrors;
6373
6373
  return next;
6374
6374
  }
6375
- concat(schema13) {
6376
- let next = super.concat(schema13);
6375
+ concat(schema14) {
6376
+ let next = super.concat(schema14);
6377
6377
  let nextFields = next.fields;
6378
6378
  for (let [field, schemaOrRef] of Object.entries(this.fields)) {
6379
6379
  const target = nextFields[field];
@@ -6381,7 +6381,7 @@ var ObjectSchema = class extends Schema {
6381
6381
  }
6382
6382
  return next.withMutation((s2) => (
6383
6383
  // XXX: excludes here is wrong
6384
- s2.setFields(nextFields, [...this._excludedEdges, ...schema13._excludedEdges])
6384
+ s2.setFields(nextFields, [...this._excludedEdges, ...schema14._excludedEdges])
6385
6385
  ));
6386
6386
  }
6387
6387
  _getDefault(options) {
@@ -6426,8 +6426,8 @@ var ObjectSchema = class extends Schema {
6426
6426
  }
6427
6427
  partial() {
6428
6428
  const partial = {};
6429
- for (const [key, schema13] of Object.entries(this.fields)) {
6430
- partial[key] = "optional" in schema13 && schema13.optional instanceof Function ? schema13.optional() : schema13;
6429
+ for (const [key, schema14] of Object.entries(this.fields)) {
6430
+ partial[key] = "optional" in schema14 && schema14.optional instanceof Function ? schema14.optional() : schema14;
6431
6431
  }
6432
6432
  return this.setFields(partial);
6433
6433
  }
@@ -6629,22 +6629,22 @@ var ArraySchema = class extends Schema {
6629
6629
  json() {
6630
6630
  return this.transform(parseJson);
6631
6631
  }
6632
- concat(schema13) {
6633
- let next = super.concat(schema13);
6632
+ concat(schema14) {
6633
+ let next = super.concat(schema14);
6634
6634
  next.innerType = this.innerType;
6635
- if (schema13.innerType)
6635
+ if (schema14.innerType)
6636
6636
  next.innerType = next.innerType ? (
6637
6637
  // @ts-expect-error Lazy doesn't have concat and will break
6638
- next.innerType.concat(schema13.innerType)
6639
- ) : schema13.innerType;
6638
+ next.innerType.concat(schema14.innerType)
6639
+ ) : schema14.innerType;
6640
6640
  return next;
6641
6641
  }
6642
- of(schema13) {
6642
+ of(schema14) {
6643
6643
  let next = this.clone();
6644
- if (!isSchema(schema13)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema13));
6645
- next.innerType = schema13;
6644
+ if (!isSchema(schema14)) throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: " + printValue(schema14));
6645
+ next.innerType = schema14;
6646
6646
  next.spec = Object.assign({}, next.spec, {
6647
- types: schema13
6647
+ types: schema14
6648
6648
  });
6649
6649
  return next;
6650
6650
  }
@@ -6792,7 +6792,7 @@ var TupleSchema = class extends Schema {
6792
6792
  describe(options) {
6793
6793
  const next = (options ? this.resolve(options) : this).clone();
6794
6794
  const base = super.describe(options);
6795
- base.innerType = next.spec.types.map((schema13, index) => {
6795
+ base.innerType = next.spec.types.map((schema14, index) => {
6796
6796
  var _innerOptions;
6797
6797
  let innerOptions = options;
6798
6798
  if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
@@ -6801,7 +6801,7 @@ var TupleSchema = class extends Schema {
6801
6801
  value: innerOptions.value[index]
6802
6802
  });
6803
6803
  }
6804
- return schema13.describe(innerOptions);
6804
+ return schema14.describe(innerOptions);
6805
6805
  });
6806
6806
  return base;
6807
6807
  }
@@ -10031,6 +10031,13 @@ var UPDATE_APP_SETTINGS_MUTATION = gql`
10031
10031
  updateAppSettings(input: $input)
10032
10032
  }
10033
10033
  `;
10034
+ var CRAWL_GOOGLE_MARKETS_MUTATION = gql`
10035
+ mutation crawlGoogleMarkets {
10036
+ crawlGoogleMarkets {
10037
+ message
10038
+ }
10039
+ }
10040
+ `;
10034
10041
  var APP_SETTINGS_FIELDS_FRAGMENT = gql`
10035
10042
  fragment AppSettingsFields on AppSettingsType {
10036
10043
  _id
@@ -10207,7 +10214,7 @@ var socialMediaSchema = create$3({
10207
10214
  is: (name) => !!name,
10208
10215
  // If name has a value
10209
10216
  then: () => normalizedUrlTransform().required("Link is required when name is set").url("Link must be a valid URL").label("Social Media Link"),
10210
- otherwise: (schema13) => schema13.notRequired()
10217
+ otherwise: (schema14) => schema14.notRequired()
10211
10218
  })
10212
10219
  });
10213
10220
  var globalResourceSchema = create$3().shape({
@@ -10280,21 +10287,21 @@ var paymentInfoSchema = create$3({
10280
10287
  paymentMethod: create$8().oneOf(Object.values(EnumPaymentMethod)).required("Please select a Payment method"),
10281
10288
  accountHolderName: create$6().when("paymentMethod", {
10282
10289
  is: "bank_transfer",
10283
- then: (schema13) => schema13.required("Account holder name is required for bank transfer").trim(),
10284
- otherwise: (schema13) => schema13.notRequired()
10290
+ then: (schema14) => schema14.required("Account holder name is required for bank transfer").trim(),
10291
+ otherwise: (schema14) => schema14.notRequired()
10285
10292
  }),
10286
10293
  accountNumber: create$6().when("paymentMethod", {
10287
10294
  is: "bank_transfer",
10288
- then: (schema13) => schema13.required("Account number is required for bank transfer").matches(
10295
+ then: (schema14) => schema14.required("Account number is required for bank transfer").matches(
10289
10296
  nzBankAccountRegex,
10290
10297
  "Account number must be in format: XX-XXXX-XXXXXXX-XX"
10291
10298
  ).trim(),
10292
- otherwise: (schema13) => schema13.notRequired()
10299
+ otherwise: (schema14) => schema14.notRequired()
10293
10300
  }),
10294
10301
  link: create$6().when("paymentMethod", {
10295
10302
  is: (val) => val === "paypal" || val === "stripe",
10296
10303
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
10297
- otherwise: (schema13) => schema13.notRequired()
10304
+ otherwise: (schema14) => schema14.notRequired()
10298
10305
  })
10299
10306
  });
10300
10307
  var eventInfoSchema = create$3().shape({
@@ -10407,8 +10414,8 @@ var userSchema = create$3().shape({
10407
10414
  confirmPassword: create$6().nullable().trim().label("Confirm Password").when("password", {
10408
10415
  is: (val) => !!val,
10409
10416
  // only necessary if password typed
10410
- then: (schema13) => schema13.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10411
- otherwise: (schema13) => schema13.notRequired()
10417
+ then: (schema14) => schema14.required("Confirm Password is required").oneOf([create$9("password")], "Passwords must match"),
10418
+ otherwise: (schema14) => schema14.notRequired()
10412
10419
  }),
10413
10420
  role: create$8().oneOf(Object.values(EnumUserRole)).required("Role is required")
10414
10421
  });
@@ -10526,8 +10533,8 @@ var testerSchema = create$3().shape({
10526
10533
  email: emailRequiredSchema,
10527
10534
  event: create$3().when("resourceType", {
10528
10535
  is: (resourceType) => resourceType === "event",
10529
- otherwise: (schema13) => schema13.nullable().optional(),
10530
- then: (schema13) => schema13.required("Event information is required").shape(testerEventSchema.fields)
10536
+ otherwise: (schema14) => schema14.nullable().optional(),
10537
+ then: (schema14) => schema14.required("Event information is required").shape(testerEventSchema.fields)
10531
10538
  }),
10532
10539
  firstName: create$6().required("First name is required"),
10533
10540
  lastName: create$6().required("Last name is required"),
@@ -10545,8 +10552,8 @@ var testerSchema = create$3().shape({
10545
10552
  ).required("Resource Type is required"),
10546
10553
  vendor: create$3().when("resourceType", {
10547
10554
  is: (resourceType) => resourceType === "vendor",
10548
- otherwise: (schema13) => schema13.nullable().optional(),
10549
- then: (schema13) => schema13.required("Vendor information is required").shape(testerVendorSchema.fields)
10555
+ otherwise: (schema14) => schema14.nullable().optional(),
10556
+ then: (schema14) => schema14.required("Vendor information is required").shape(testerVendorSchema.fields)
10550
10557
  })
10551
10558
  });
10552
10559
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -10584,7 +10591,7 @@ var adSchema = create$3().shape({
10584
10591
  return endDate > now;
10585
10592
  }).when("start", {
10586
10593
  is: (val) => val && val.length > 0,
10587
- then: (schema13) => schema13.test(
10594
+ then: (schema14) => schema14.test(
10588
10595
  "is-after-start",
10589
10596
  "End date must be after start date",
10590
10597
  function(value) {
@@ -11393,10 +11400,59 @@ ChatSchema.index({
11393
11400
  });
11394
11401
  var ChatModel = import_mongoose8.default.models.Chat || import_mongoose8.default.model("Chat", ChatSchema);
11395
11402
 
11396
- // src/mongoose/ResourceActivity.ts
11403
+ // src/mongoose/GoogleImportedMarket.ts
11397
11404
  var import_mongoose9 = __toESM(require("mongoose"));
11398
11405
  var MongooseSchema8 = import_mongoose9.default.Schema;
11399
- var ActivitySchema = new MongooseSchema8(
11406
+ var locationSchema2 = new MongooseSchema8(
11407
+ {
11408
+ lat: { required: true, type: Number },
11409
+ lng: { required: true, type: Number }
11410
+ },
11411
+ { _id: false }
11412
+ // Prevents Mongoose from creating an additional _id field for subdocuments
11413
+ );
11414
+ var schema5 = new MongooseSchema8(
11415
+ {
11416
+ address: { required: true, type: String },
11417
+ businessStatus: { required: false, type: String },
11418
+ claimed: { default: false, required: true, type: Boolean },
11419
+ googleMapsUrl: { required: false, type: String },
11420
+ googlePlaceId: {
11421
+ required: true,
11422
+ type: String,
11423
+ unique: true
11424
+ // unique, indexed
11425
+ },
11426
+ image: { required: false, type: String },
11427
+ // photo_reference only
11428
+ importedAt: { default: () => /* @__PURE__ */ new Date(), required: true, type: Date },
11429
+ location: {
11430
+ required: false,
11431
+ // optional because lat/lng may expire after 30 days
11432
+ type: locationSchema2
11433
+ },
11434
+ name: { required: true, type: String },
11435
+ openingHours: { required: false, type: [String] },
11436
+ phone: { required: false, type: String },
11437
+ photos: { required: false, type: [String] },
11438
+ // array of photo_reference
11439
+ rating: { required: false, type: Number },
11440
+ reviewCount: { required: false, type: Number },
11441
+ slug: { required: true, type: String },
11442
+ website: { required: false, type: String }
11443
+ },
11444
+ { timestamps: true }
11445
+ );
11446
+ schema5.index({ name: 1 });
11447
+ schema5.index({ slug: 1 });
11448
+ schema5.index({ address: 1 });
11449
+ schema5.index({ "location.lat": 1, "location.lng": 1 });
11450
+ var GoogleImportedMarketModel = import_mongoose9.default.models.GoogleImportedMarket || import_mongoose9.default.model("GoogleImportedMarket", schema5);
11451
+
11452
+ // src/mongoose/ResourceActivity.ts
11453
+ var import_mongoose10 = __toESM(require("mongoose"));
11454
+ var MongooseSchema9 = import_mongoose10.default.Schema;
11455
+ var ActivitySchema = new MongooseSchema9(
11400
11456
  {
11401
11457
  activityType: {
11402
11458
  enum: Object.values(EnumActivity),
@@ -11432,7 +11488,7 @@ var ActivitySchema = new MongooseSchema8(
11432
11488
  },
11433
11489
  { _id: false }
11434
11490
  );
11435
- var schema5 = new MongooseSchema8(
11491
+ var schema6 = new MongooseSchema9(
11436
11492
  {
11437
11493
  activity: { default: [], type: [ActivitySchema] },
11438
11494
  resourceId: { required: true, type: String },
@@ -11444,14 +11500,14 @@ var schema5 = new MongooseSchema8(
11444
11500
  },
11445
11501
  { timestamps: true }
11446
11502
  );
11447
- schema5.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11448
- schema5.index({ "views.location": "2dsphere" });
11449
- var ResourceActivityModel = import_mongoose9.default.models.ResourceActivity || import_mongoose9.default.model("ResourceActivity", schema5);
11503
+ schema6.index({ resourceId: 1, resourceType: 1 }, { unique: true });
11504
+ schema6.index({ "views.location": "2dsphere" });
11505
+ var ResourceActivityModel = import_mongoose10.default.models.ResourceActivity || import_mongoose10.default.model("ResourceActivity", schema6);
11450
11506
 
11451
11507
  // src/mongoose/Tester.ts
11452
- var import_mongoose10 = __toESM(require("mongoose"));
11453
- var MongooseSchema9 = import_mongoose10.default.Schema;
11454
- var TesterVendorQuestionarySchema = new MongooseSchema9(
11508
+ var import_mongoose11 = __toESM(require("mongoose"));
11509
+ var MongooseSchema10 = import_mongoose11.default.Schema;
11510
+ var TesterVendorQuestionarySchema = new MongooseSchema10(
11455
11511
  {
11456
11512
  appearInVideoIntroduction: {
11457
11513
  default: false,
@@ -11478,7 +11534,7 @@ var TesterVendorQuestionarySchema = new MongooseSchema9(
11478
11534
  },
11479
11535
  { _id: false }
11480
11536
  );
11481
- var TesterVendorSchema = new MongooseSchema9(
11537
+ var TesterVendorSchema = new MongooseSchema10(
11482
11538
  {
11483
11539
  categories: { required: true, type: [CategorySchema] },
11484
11540
  marketsAttended: {
@@ -11504,7 +11560,7 @@ var TesterVendorSchema = new MongooseSchema9(
11504
11560
  },
11505
11561
  { _id: false }
11506
11562
  );
11507
- var TesterEventQuestionarySchema = new MongooseSchema9(
11563
+ var TesterEventQuestionarySchema = new MongooseSchema10(
11508
11564
  {
11509
11565
  allowMarketingAppearance: {
11510
11566
  default: false,
@@ -11539,7 +11595,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
11539
11595
  },
11540
11596
  { _id: false }
11541
11597
  );
11542
- var TesterEventsSchema = new MongooseSchema9(
11598
+ var TesterEventsSchema = new MongooseSchema10(
11543
11599
  {
11544
11600
  markets: {
11545
11601
  required: true,
@@ -11568,7 +11624,7 @@ var TesterEventsSchema = new MongooseSchema9(
11568
11624
  },
11569
11625
  { _id: false }
11570
11626
  );
11571
- var TesterSchema = new MongooseSchema9(
11627
+ var TesterSchema = new MongooseSchema10(
11572
11628
  {
11573
11629
  active: { default: false, required: true, type: Boolean },
11574
11630
  approved: { default: false, required: true, type: Boolean },
@@ -11602,43 +11658,43 @@ var TesterSchema = new MongooseSchema9(
11602
11658
  timestamps: true
11603
11659
  }
11604
11660
  );
11605
- var TesterModel = import_mongoose10.default.models.Tester || import_mongoose10.default.model("Tester", TesterSchema);
11661
+ var TesterModel = import_mongoose11.default.models.Tester || import_mongoose11.default.model("Tester", TesterSchema);
11606
11662
 
11607
11663
  // src/mongoose/User.ts
11608
- var import_mongoose11 = __toESM(require("mongoose"));
11609
- var MongooseSchema10 = import_mongoose11.default.Schema;
11610
- var userActivityEventSchema = new MongooseSchema10(
11664
+ var import_mongoose12 = __toESM(require("mongoose"));
11665
+ var MongooseSchema11 = import_mongoose12.default.Schema;
11666
+ var userActivityEventSchema = new MongooseSchema11(
11611
11667
  {
11612
11668
  dateTime: dateTimeSchema3,
11613
11669
  resourceId: {
11614
11670
  ref: "Event",
11615
11671
  required: false,
11616
- type: import_mongoose11.default.Schema.Types.ObjectId
11672
+ type: import_mongoose12.default.Schema.Types.ObjectId
11617
11673
  }
11618
11674
  },
11619
11675
  { _id: false }
11620
11676
  );
11621
- var userActivityFavouritesSchema = new MongooseSchema10(
11677
+ var userActivityFavouritesSchema = new MongooseSchema11(
11622
11678
  {
11623
11679
  events: {
11624
11680
  ref: "Event",
11625
11681
  required: false,
11626
- type: [import_mongoose11.default.Schema.Types.ObjectId]
11682
+ type: [import_mongoose12.default.Schema.Types.ObjectId]
11627
11683
  },
11628
11684
  partners: {
11629
11685
  ref: "Partner",
11630
11686
  required: false,
11631
- type: [import_mongoose11.default.Schema.Types.ObjectId]
11687
+ type: [import_mongoose12.default.Schema.Types.ObjectId]
11632
11688
  },
11633
11689
  vendors: {
11634
11690
  ref: "Vendor",
11635
11691
  required: false,
11636
- type: [import_mongoose11.default.Schema.Types.ObjectId]
11692
+ type: [import_mongoose12.default.Schema.Types.ObjectId]
11637
11693
  }
11638
11694
  },
11639
11695
  { _id: false }
11640
11696
  );
11641
- var stripeSchema = new MongooseSchema10(
11697
+ var stripeSchema = new MongooseSchema11(
11642
11698
  {
11643
11699
  currentPlan: {
11644
11700
  enum: Object.values(EnumUserLicence),
@@ -11669,7 +11725,7 @@ var stripeSchema = new MongooseSchema10(
11669
11725
  },
11670
11726
  { _id: false }
11671
11727
  );
11672
- var schema6 = new MongooseSchema10(
11728
+ var schema7 = new MongooseSchema11(
11673
11729
  {
11674
11730
  active: { default: false, required: true, type: Boolean },
11675
11731
  associates: {
@@ -11685,7 +11741,7 @@ var schema6 = new MongooseSchema10(
11685
11741
  events: {
11686
11742
  ref: "Event",
11687
11743
  required: false,
11688
- type: [import_mongoose11.default.Schema.Types.ObjectId]
11744
+ type: [import_mongoose12.default.Schema.Types.ObjectId]
11689
11745
  },
11690
11746
  firstName: { required: true, type: String },
11691
11747
  isTester: { default: false, required: true, type: Boolean },
@@ -11697,7 +11753,7 @@ var schema6 = new MongooseSchema10(
11697
11753
  partner: {
11698
11754
  ref: "Partner",
11699
11755
  required: false,
11700
- type: import_mongoose11.default.Schema.Types.ObjectId
11756
+ type: import_mongoose12.default.Schema.Types.ObjectId
11701
11757
  },
11702
11758
  password: { required: true, type: String },
11703
11759
  platform: {
@@ -11742,20 +11798,20 @@ var schema6 = new MongooseSchema10(
11742
11798
  vendor: {
11743
11799
  ref: "Vendor",
11744
11800
  required: false,
11745
- type: import_mongoose11.default.Schema.Types.ObjectId
11801
+ type: import_mongoose12.default.Schema.Types.ObjectId
11746
11802
  }
11747
11803
  },
11748
11804
  { strict: false, timestamps: true }
11749
11805
  );
11750
- schema6.index({ "associates.email": 1 });
11751
- schema6.index({ "licences.expiryDate": 1 });
11752
- schema6.index({ "licences.licenceType": 1 });
11753
- var UserModel = import_mongoose11.default.models.User || import_mongoose11.default.model("User", schema6);
11806
+ schema7.index({ "associates.email": 1 });
11807
+ schema7.index({ "licences.expiryDate": 1 });
11808
+ schema7.index({ "licences.licenceType": 1 });
11809
+ var UserModel = import_mongoose12.default.models.User || import_mongoose12.default.model("User", schema7);
11754
11810
 
11755
11811
  // src/mongoose/VerificationToken.ts
11756
- var import_mongoose12 = __toESM(require("mongoose"));
11757
- var MongooseSchema11 = import_mongoose12.default.Schema;
11758
- var schema7 = new MongooseSchema11(
11812
+ var import_mongoose13 = __toESM(require("mongoose"));
11813
+ var MongooseSchema12 = import_mongoose13.default.Schema;
11814
+ var schema8 = new MongooseSchema12(
11759
11815
  {
11760
11816
  createdAt: {
11761
11817
  default: Date.now,
@@ -11770,12 +11826,12 @@ var schema7 = new MongooseSchema11(
11770
11826
  },
11771
11827
  { timestamps: true }
11772
11828
  );
11773
- var VerificationTokenModel = import_mongoose12.default.models.VerificationToken || import_mongoose12.default.model("VerificationToken", schema7);
11829
+ var VerificationTokenModel = import_mongoose13.default.models.VerificationToken || import_mongoose13.default.model("VerificationToken", schema8);
11774
11830
 
11775
11831
  // src/mongoose/vendor/Vendor.ts
11776
- var import_mongoose13 = __toESM(require("mongoose"));
11777
- var MongooseSchema12 = import_mongoose13.default.Schema;
11778
- var MenuTypeSchema = new MongooseSchema12(
11832
+ var import_mongoose14 = __toESM(require("mongoose"));
11833
+ var MongooseSchema13 = import_mongoose14.default.Schema;
11834
+ var MenuTypeSchema = new MongooseSchema13(
11779
11835
  {
11780
11836
  description: { required: false, type: String },
11781
11837
  name: { required: false, type: String },
@@ -11785,7 +11841,7 @@ var MenuTypeSchema = new MongooseSchema12(
11785
11841
  { _id: false }
11786
11842
  // Prevents Mongoose from creating an additional _id field for subdocuments
11787
11843
  );
11788
- var LocationsSchema = new MongooseSchema12(
11844
+ var LocationsSchema = new MongooseSchema13(
11789
11845
  {
11790
11846
  dateTime: {
11791
11847
  dateStatus: {
@@ -11818,7 +11874,7 @@ var LocationsSchema = new MongooseSchema12(
11818
11874
  { _id: false }
11819
11875
  // Prevents Mongoose from creating an additional _id field for subdocuments
11820
11876
  );
11821
- var schema8 = new MongooseSchema12(
11877
+ var schema9 = new MongooseSchema13(
11822
11878
  {
11823
11879
  ...baseResourceFields,
11824
11880
  // Importing base resource fields from global.ts
@@ -11840,7 +11896,7 @@ var schema8 = new MongooseSchema12(
11840
11896
  vendorInfoId: {
11841
11897
  ref: "VendorInfo",
11842
11898
  required: false,
11843
- type: import_mongoose13.default.Schema.Types.ObjectId
11899
+ type: import_mongoose14.default.Schema.Types.ObjectId
11844
11900
  },
11845
11901
  vendorType: {
11846
11902
  enum: Object.values(EnumVendorType),
@@ -11850,24 +11906,24 @@ var schema8 = new MongooseSchema12(
11850
11906
  },
11851
11907
  { timestamps: true }
11852
11908
  );
11853
- schema8.index({ name: 1 });
11854
- schema8.index({ description: 1 });
11855
- schema8.index({ region: 1 });
11856
- schema8.index({ "categories.name": 1 });
11857
- schema8.index({ "associates.email": 1 });
11858
- var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema8);
11909
+ schema9.index({ name: 1 });
11910
+ schema9.index({ description: 1 });
11911
+ schema9.index({ region: 1 });
11912
+ schema9.index({ "categories.name": 1 });
11913
+ schema9.index({ "associates.email": 1 });
11914
+ var VendorModel = import_mongoose14.default.models.Vendor || import_mongoose14.default.model("Vendor", schema9);
11859
11915
 
11860
11916
  // src/mongoose/vendor/VendorInfo.ts
11861
- var import_mongoose14 = __toESM(require("mongoose"));
11862
- var MongooseSchema13 = import_mongoose14.default.Schema;
11863
- var AttributesSchema = new MongooseSchema13(
11917
+ var import_mongoose15 = __toESM(require("mongoose"));
11918
+ var MongooseSchema14 = import_mongoose15.default.Schema;
11919
+ var AttributesSchema = new MongooseSchema14(
11864
11920
  {
11865
11921
  details: { required: false, type: String },
11866
11922
  isRequired: { default: false, required: true, type: Boolean }
11867
11923
  },
11868
11924
  { _id: false }
11869
11925
  );
11870
- var schema9 = new MongooseSchema13(
11926
+ var schema10 = new MongooseSchema14(
11871
11927
  {
11872
11928
  compliance: {
11873
11929
  foodBeverageLicense: { default: false, required: false, type: Boolean },
@@ -11901,17 +11957,17 @@ var schema9 = new MongooseSchema13(
11901
11957
  vendorId: {
11902
11958
  ref: "Vendor",
11903
11959
  required: true,
11904
- type: import_mongoose14.default.Schema.Types.ObjectId
11960
+ type: import_mongoose15.default.Schema.Types.ObjectId
11905
11961
  }
11906
11962
  },
11907
11963
  { timestamps: true }
11908
11964
  );
11909
- var VendorInfoModel = import_mongoose14.default.models.VendorInfo || import_mongoose14.default.model("VendorInfo", schema9);
11965
+ var VendorInfoModel = import_mongoose15.default.models.VendorInfo || import_mongoose15.default.model("VendorInfo", schema10);
11910
11966
 
11911
11967
  // src/mongoose/event/Event.ts
11912
- var import_mongoose15 = __toESM(require("mongoose"));
11913
- var MongooseSchema14 = import_mongoose15.default.Schema;
11914
- var locationsSchema = new MongooseSchema14(
11968
+ var import_mongoose16 = __toESM(require("mongoose"));
11969
+ var MongooseSchema15 = import_mongoose16.default.Schema;
11970
+ var locationsSchema = new MongooseSchema15(
11915
11971
  {
11916
11972
  city: { required: true, type: String },
11917
11973
  coordinates: {
@@ -11934,7 +11990,7 @@ var locationsSchema = new MongooseSchema14(
11934
11990
  { _id: false }
11935
11991
  // Prevents Mongoose from creating an additional _id field for subdocuments
11936
11992
  );
11937
- var schema10 = new MongooseSchema14(
11993
+ var schema11 = new MongooseSchema15(
11938
11994
  {
11939
11995
  ...baseResourceFields,
11940
11996
  // Importing base resource fields from global.ts
@@ -11942,7 +11998,7 @@ var schema10 = new MongooseSchema14(
11942
11998
  eventInfoId: {
11943
11999
  ref: "EventInfo",
11944
12000
  required: false,
11945
- type: import_mongoose15.default.Schema.Types.ObjectId
12001
+ type: import_mongoose16.default.Schema.Types.ObjectId
11946
12002
  },
11947
12003
  eventType: {
11948
12004
  enum: Object.values(EnumEventType),
@@ -11965,18 +12021,18 @@ var schema10 = new MongooseSchema14(
11965
12021
  },
11966
12022
  { timestamps: true }
11967
12023
  );
11968
- schema10.index({ name: 1 });
11969
- schema10.index({ description: 1 });
11970
- schema10.index({ region: 1 });
11971
- schema10.index({ location: "2dsphere" });
11972
- schema10.index({ tags: 1 });
11973
- schema10.index({ "associates.email": 1 });
11974
- var EventModel = import_mongoose15.default.models.Event || import_mongoose15.default.model("Event", schema10);
12024
+ schema11.index({ name: 1 });
12025
+ schema11.index({ description: 1 });
12026
+ schema11.index({ region: 1 });
12027
+ schema11.index({ location: "2dsphere" });
12028
+ schema11.index({ tags: 1 });
12029
+ schema11.index({ "associates.email": 1 });
12030
+ var EventModel = import_mongoose16.default.models.Event || import_mongoose16.default.model("Event", schema11);
11975
12031
 
11976
12032
  // src/mongoose/Partner.ts
11977
- var import_mongoose16 = __toESM(require("mongoose"));
11978
- var MongooseSchema15 = import_mongoose16.default.Schema;
11979
- var schema11 = new MongooseSchema15(
12033
+ var import_mongoose17 = __toESM(require("mongoose"));
12034
+ var MongooseSchema16 = import_mongoose17.default.Schema;
12035
+ var schema12 = new MongooseSchema16(
11980
12036
  {
11981
12037
  ...baseResourceFields,
11982
12038
  location: {
@@ -11992,19 +12048,19 @@ var schema11 = new MongooseSchema15(
11992
12048
  },
11993
12049
  { timestamps: true }
11994
12050
  );
11995
- schema11.index({ name: 1 });
11996
- schema11.index({ description: 1 });
11997
- schema11.index({ region: 1 });
11998
- schema11.index({ location: "2dsphere" });
11999
- schema11.index({ "associates.email": 1 });
12000
- var PartnerModel = import_mongoose16.default.models.Partner || import_mongoose16.default.model("Partner", schema11);
12051
+ schema12.index({ name: 1 });
12052
+ schema12.index({ description: 1 });
12053
+ schema12.index({ region: 1 });
12054
+ schema12.index({ location: "2dsphere" });
12055
+ schema12.index({ "associates.email": 1 });
12056
+ var PartnerModel = import_mongoose17.default.models.Partner || import_mongoose17.default.model("Partner", schema12);
12001
12057
 
12002
12058
  // src/mongoose/Post.ts
12003
- var import_mongoose17 = __toESM(require("mongoose"));
12004
- var MongooseSchema16 = import_mongoose17.default.Schema;
12005
- var contentSchema = new MongooseSchema16(
12059
+ var import_mongoose18 = __toESM(require("mongoose"));
12060
+ var MongooseSchema17 = import_mongoose18.default.Schema;
12061
+ var contentSchema = new MongooseSchema17(
12006
12062
  {
12007
- contentData: import_mongoose17.Schema.Types.Mixed,
12063
+ contentData: import_mongoose18.Schema.Types.Mixed,
12008
12064
  contentOrder: { required: true, type: Number },
12009
12065
  contentType: {
12010
12066
  enum: Object.values(EnumPostContentType),
@@ -12014,7 +12070,7 @@ var contentSchema = new MongooseSchema16(
12014
12070
  },
12015
12071
  { _id: false }
12016
12072
  );
12017
- var schema12 = new MongooseSchema16(
12073
+ var schema13 = new MongooseSchema17(
12018
12074
  {
12019
12075
  active: { default: true, required: true, type: Boolean },
12020
12076
  caption: { required: true, type: String },
@@ -12029,15 +12085,15 @@ var schema12 = new MongooseSchema16(
12029
12085
  },
12030
12086
  { timestamps: true }
12031
12087
  );
12032
- schema12.index({ title: 1 });
12033
- schema12.index({ tags: 1 });
12034
- var PostModel = import_mongoose17.default.models.Post || import_mongoose17.default.model("Post", schema12);
12088
+ schema13.index({ title: 1 });
12089
+ schema13.index({ tags: 1 });
12090
+ var PostModel = import_mongoose18.default.models.Post || import_mongoose18.default.model("Post", schema13);
12035
12091
 
12036
12092
  // src/mongoose/AppSetting.ts
12037
- var import_mongoose18 = __toESM(require("mongoose"));
12038
- var MongooseSchema17 = import_mongoose18.default.Schema;
12093
+ var import_mongoose19 = __toESM(require("mongoose"));
12094
+ var MongooseSchema18 = import_mongoose19.default.Schema;
12039
12095
  var APP_SETTINGS_ID = "APP_SETTINGS_DOCUMENT_ID";
12040
- var AppSettingSchema = new MongooseSchema17(
12096
+ var AppSettingSchema = new MongooseSchema18(
12041
12097
  {
12042
12098
  appVersion: { default: "1.0.1", required: true, type: String },
12043
12099
  key: {
@@ -12052,7 +12108,7 @@ var AppSettingSchema = new MongooseSchema17(
12052
12108
  },
12053
12109
  { timestamps: true }
12054
12110
  );
12055
- var AppSettingModel = import_mongoose18.default.models.AppSetting || import_mongoose18.default.model("AppSetting", AppSettingSchema);
12111
+ var AppSettingModel = import_mongoose19.default.models.AppSetting || import_mongoose19.default.model("AppSetting", AppSettingSchema);
12056
12112
 
12057
12113
  // src/service/updateAdStatus.ts
12058
12114
  async function updateAdStatuses() {