@bprotsyk/aso-core 1.2.226 → 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.
package/lib/index.d.ts CHANGED
@@ -10,6 +10,10 @@ export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user"
10
10
  export { IAuthToken } from "./panel/auth";
11
11
  export { IUpsertAppRequest, IUpsertAppResponse } from "./panel/flash/upsert-flash-app-request";
12
12
  export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape";
13
+ export { IOfferWallHomeDialogData } from "./offers/offerwall/offerwall-home-dialog-data";
14
+ export { IOfferWallOffer } from "./offers/offerwall/offerwall-offer";
15
+ export { IOfferWallResponse } from "./offers/offerwall/offerwall-response";
16
+ export { IOfferWallSection } from "./offers/offerwall/offerwall-section";
13
17
  export { KeitaroService, IKeitaroOffersFilter } from "./network/keitaro/keitaro-service";
14
18
  export * as KeitaroUtils from "./utils/keitaro-utils";
15
19
  export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter } from "./keitaro/keitaro-campaign";
@@ -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: {
@@ -0,0 +1,6 @@
1
+ export interface IOfferWallHomeDialogData {
2
+ title: string;
3
+ message: string;
4
+ yes: string;
5
+ no: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface IOfferWallOffer {
2
+ url: string;
3
+ foregroundUrl: string;
4
+ backgroundUrl: string;
5
+ emojiIcon?: string;
6
+ emojiCaption?: string;
7
+ caption: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOfferWallHomeDialogData } from "offers/offerwall/offerwall-home-dialog-data";
2
+ import { IOfferWallSection } from "offers/offerwall/offerwall-section";
3
+ export interface IOfferWallResponse {
4
+ sections: IOfferWallSection[];
5
+ homeDialog: IOfferWallHomeDialogData;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
2
+ export interface IOfferWallSection {
3
+ offers: IOfferWallOffer[];
4
+ title: string;
5
+ buttonText: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.226",
3
+ "version": "1.2.228",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -14,6 +14,10 @@ export { IAuthToken } from "./panel/auth"
14
14
  export { IUpsertAppRequest, IUpsertAppResponse } from "./panel/flash/upsert-flash-app-request"
15
15
 
16
16
  export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape"
17
+ export { IOfferWallHomeDialogData } from "./offers/offerwall/offerwall-home-dialog-data"
18
+ export { IOfferWallOffer } from "./offers/offerwall/offerwall-offer"
19
+ export { IOfferWallResponse } from "./offers/offerwall/offerwall-response"
20
+ export { IOfferWallSection } from "./offers/offerwall/offerwall-section"
17
21
 
18
22
  export { KeitaroService, IKeitaroOffersFilter } from "./network/keitaro/keitaro-service"
19
23
  export * as KeitaroUtils from "./utils/keitaro-utils"
@@ -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: {
@@ -0,0 +1,6 @@
1
+ export interface IOfferWallHomeDialogData {
2
+ title: string;
3
+ message: string;
4
+ yes: string;
5
+ no: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface IOfferWallOffer {
2
+ url: string;
3
+ foregroundUrl: string;
4
+ backgroundUrl: string;
5
+ emojiIcon?: string;
6
+ emojiCaption?: string;
7
+ caption: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { IOfferWallHomeDialogData } from "offers/offerwall/offerwall-home-dialog-data";
2
+ import { IOfferWallSection } from "offers/offerwall/offerwall-section";
3
+
4
+ export interface IOfferWallResponse {
5
+ sections: IOfferWallSection[];
6
+ homeDialog: IOfferWallHomeDialogData;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
2
+
3
+ export interface IOfferWallSection {
4
+ offers: IOfferWallOffer[];
5
+ title: string;
6
+ buttonText: string;
7
+ }