@bprotsyk/aso-core 1.2.227 → 1.2.228

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.
@@ -67,13 +67,9 @@ export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any>,
67
67
  shortName?: string | undefined;
68
68
  }>;
69
69
  export declare const OfferSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
70
+ type: string;
70
71
  link?: string | undefined;
71
72
  name?: string | undefined;
72
- type?: {
73
- GAMBLING?: unknown;
74
- BETTING?: unknown;
75
- FIN?: unknown;
76
- } | undefined;
77
73
  hidden?: boolean | undefined;
78
74
  caption?: string | undefined;
79
75
  id?: number | undefined;
@@ -25,7 +25,11 @@ exports.OfferSchema = new mongoose_1.Schema({
25
25
  caption: String,
26
26
  link: String,
27
27
  partnerId: Number,
28
- type: { type: IOfferType },
28
+ type: {
29
+ type: String,
30
+ enum: IOfferType,
31
+ default: IOfferType.GAMBLING
32
+ },
29
33
  keitaroId: String,
30
34
  hidden: Boolean,
31
35
  history: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.227",
3
+ "version": "1.2.228",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -64,7 +64,11 @@ export const OfferSchema = new Schema({
64
64
  caption: String,
65
65
  link: String,
66
66
  partnerId: Number,
67
- type: { type: IOfferType },
67
+ type: {
68
+ type: String,
69
+ enum: IOfferType,
70
+ default: IOfferType.GAMBLING
71
+ },
68
72
  keitaroId: String,
69
73
  hidden: Boolean,
70
74
  history: {