@bprotsyk/aso-core 2.1.37 → 2.1.39

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.
Files changed (105) hide show
  1. package/README.md +1 -1
  2. package/lib/app/app-integration.d.ts +53 -53
  3. package/lib/app/app-integration.js +63 -63
  4. package/lib/app/app-list-item.d.ts +5 -5
  5. package/lib/app/app-list-item.js +2 -2
  6. package/lib/app/app-type.d.ts +4 -4
  7. package/lib/app/app-type.js +8 -8
  8. package/lib/app/app.d.ts +208 -290
  9. package/lib/app/app.js +156 -156
  10. package/lib/general/cloudflare-domain.d.ts +42 -42
  11. package/lib/general/cloudflare-domain.js +12 -12
  12. package/lib/general/domain.d.ts +110 -169
  13. package/lib/general/domain.js +62 -62
  14. package/lib/general/namecheap-domain.d.ts +85 -132
  15. package/lib/general/namecheap-domain.js +14 -14
  16. package/lib/general/push.d.ts +6 -6
  17. package/lib/general/push.js +2 -2
  18. package/lib/general/queue.d.ts +2 -2
  19. package/lib/general/queue.js +1 -1
  20. package/lib/general/shape.d.ts +18 -18
  21. package/lib/general/shape.js +36 -36
  22. package/lib/index.d.ts +26 -26
  23. package/lib/index.js +69 -69
  24. package/lib/keitaro/keitaro-campaign.d.ts +31 -31
  25. package/lib/keitaro/keitaro-campaign.js +5 -5
  26. package/lib/keitaro/keitaro-domain.d.ts +6 -6
  27. package/lib/keitaro/keitaro-domain.js +2 -2
  28. package/lib/keitaro/keitaro-offer.d.ts +7 -7
  29. package/lib/keitaro/keitaro-offer.js +2 -2
  30. package/lib/keitaro/keitaro-stream.d.ts +20 -20
  31. package/lib/keitaro/keitaro-stream.js +2 -2
  32. package/lib/network/keitaro/http.d.ts +2 -2
  33. package/lib/network/keitaro/http.js +12 -12
  34. package/lib/network/keitaro/keitaro-service.d.ts +50 -48
  35. package/lib/network/keitaro/keitaro-service.js +283 -293
  36. package/lib/offers/list.d.ts +42 -435
  37. package/lib/offers/list.js +12 -12
  38. package/lib/offers/offer.d.ts +91 -152
  39. package/lib/offers/offer.js +42 -42
  40. package/lib/offers/offerwall/offerwall-home-dialog-data.d.ts +6 -6
  41. package/lib/offers/offerwall/offerwall-home-dialog-data.js +2 -2
  42. package/lib/offers/offerwall/offerwall-offer.d.ts +12 -12
  43. package/lib/offers/offerwall/offerwall-offer.js +2 -2
  44. package/lib/offers/offerwall/offerwall-response.d.ts +6 -6
  45. package/lib/offers/offerwall/offerwall-response.js +2 -2
  46. package/lib/offers/offerwall/offerwall-section.d.ts +6 -6
  47. package/lib/offers/offerwall/offerwall-section.js +2 -2
  48. package/lib/offers/section.d.ts +47 -60
  49. package/lib/offers/section.js +20 -20
  50. package/lib/panel/app/upsert-flash-app-request.d.ts +31 -31
  51. package/lib/panel/app/upsert-flash-app-request.js +2 -2
  52. package/lib/panel/auth.d.ts +9 -9
  53. package/lib/panel/auth.js +2 -2
  54. package/lib/panel/flash/upsert-flash-app-request.d.ts +31 -31
  55. package/lib/panel/flash/upsert-flash-app-request.js +2 -2
  56. package/lib/panel/user.d.ts +46 -59
  57. package/lib/panel/user.js +28 -28
  58. package/lib/templates/nginx-template.conf +35 -35
  59. package/lib/templates/nginx-template.d.ts +1 -1
  60. package/lib/templates/nginx-template.js +39 -39
  61. package/lib/templates/nginx-template.ts +35 -35
  62. package/lib/utils/general.d.ts +11 -11
  63. package/lib/utils/general.js +40 -40
  64. package/lib/utils/huawei/converter.d.ts +2 -2
  65. package/lib/utils/huawei/converter.js +53 -53
  66. package/lib/utils/keitaro-utils.d.ts +13 -13
  67. package/lib/utils/keitaro-utils.js +614 -569
  68. package/lib/utils/server-util.js +303 -303
  69. package/package.json +51 -51
  70. package/src/app/app-integration.ts +66 -66
  71. package/src/app/app-list-item.ts +4 -4
  72. package/src/app/app-type.ts +3 -3
  73. package/src/app/app.ts +317 -317
  74. package/src/general/cloudflare-domain.ts +44 -44
  75. package/src/general/domain.ts +106 -106
  76. package/src/general/namecheap-domain.ts +63 -63
  77. package/src/general/push.ts +5 -5
  78. package/src/general/queue.ts +4 -4
  79. package/src/general/shape.tsx +55 -55
  80. package/src/index.ts +32 -32
  81. package/src/keitaro/keitaro-campaign.ts +35 -35
  82. package/src/keitaro/keitaro-domain.ts +5 -5
  83. package/src/keitaro/keitaro-offer.ts +6 -6
  84. package/src/keitaro/keitaro-stream.ts +19 -19
  85. package/src/network/keitaro/http.ts +8 -8
  86. package/src/network/keitaro/keitaro-service.ts +348 -364
  87. package/src/offers/list.ts +22 -19
  88. package/src/offers/offer.ts +80 -80
  89. package/src/offers/offerwall/offerwall-home-dialog-data.ts +6 -6
  90. package/src/offers/offerwall/offerwall-offer.ts +12 -12
  91. package/src/offers/offerwall/offerwall-response.ts +7 -7
  92. package/src/offers/offerwall/offerwall-section.ts +7 -7
  93. package/src/offers/section.ts +29 -29
  94. package/src/panel/app/upsert-flash-app-request.ts +39 -39
  95. package/src/panel/auth.ts +9 -9
  96. package/src/panel/user.ts +38 -38
  97. package/src/templates/nginx-template.ts +35 -35
  98. package/src/utils/data.csv +65 -65
  99. package/src/utils/general.ts +36 -36
  100. package/src/utils/huawei/converter.ts +55 -55
  101. package/src/utils/keitaro-utils.ts +717 -664
  102. package/src/utils/map-apps.json +4747 -4747
  103. package/src/utils/server-util.ts +368 -368
  104. package/src/utils/update-postbacks.js +27 -27
  105. package/tsconfig.json +20 -20
@@ -1,152 +1,91 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Document, Model, Schema } from "mongoose";
27
- export interface IOffer extends Document {
28
- id: number;
29
- name: string;
30
- graphicFolder: string;
31
- graphic: {
32
- logo: string;
33
- bg: string;
34
- };
35
- geo: string;
36
- caption: string;
37
- partnerId: number;
38
- link: string;
39
- type: IOfferType;
40
- keitaroId: string | null;
41
- hidden?: boolean;
42
- history: {
43
- link: string[];
44
- logo: string[];
45
- bg: string[];
46
- name: string[];
47
- caption: string[];
48
- };
49
- }
50
- export interface IPartner {
51
- partnerId: number;
52
- shortName: string;
53
- name: string;
54
- }
55
- export declare enum IOfferType {
56
- GAMBLING = "gambling",
57
- BETTING = "betting",
58
- FIN = "fin"
59
- }
60
- export interface IPartnerSection {
61
- id: number;
62
- name: string;
63
- offers: IOffer[];
64
- }
65
- export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
66
- partnerId?: number | null | undefined;
67
- shortName?: string | null | undefined;
68
- name?: string | null | undefined;
69
- }, Document<unknown, {}, import("mongoose").FlatRecord<{
70
- partnerId?: number | null | undefined;
71
- shortName?: string | null | undefined;
72
- name?: string | null | undefined;
73
- }>> & import("mongoose").FlatRecord<{
74
- partnerId?: number | null | undefined;
75
- shortName?: string | null | undefined;
76
- name?: string | null | undefined;
77
- }> & {
78
- _id: import("mongoose").Types.ObjectId;
79
- } & {
80
- __v: number;
81
- }>;
82
- export declare const OfferSchema: Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
83
- type: string;
84
- id?: number | null | undefined;
85
- partnerId?: number | null | undefined;
86
- name?: string | null | undefined;
87
- hidden?: boolean | null | undefined;
88
- graphicFolder?: string | null | undefined;
89
- geo?: string | null | undefined;
90
- caption?: string | null | undefined;
91
- link?: string | null | undefined;
92
- keitaroId?: string | null | undefined;
93
- graphic?: {
94
- logo?: string | null | undefined;
95
- bg?: string | null | undefined;
96
- } | null | undefined;
97
- history?: {
98
- name: string[];
99
- caption: string[];
100
- link: string[];
101
- logoNames: string[];
102
- bgNames: string[];
103
- } | null | undefined;
104
- }, Document<unknown, {}, import("mongoose").FlatRecord<{
105
- type: string;
106
- id?: number | null | undefined;
107
- partnerId?: number | null | undefined;
108
- name?: string | null | undefined;
109
- hidden?: boolean | null | undefined;
110
- graphicFolder?: string | null | undefined;
111
- geo?: string | null | undefined;
112
- caption?: string | null | undefined;
113
- link?: string | null | undefined;
114
- keitaroId?: string | null | undefined;
115
- graphic?: {
116
- logo?: string | null | undefined;
117
- bg?: string | null | undefined;
118
- } | null | undefined;
119
- history?: {
120
- name: string[];
121
- caption: string[];
122
- link: string[];
123
- logoNames: string[];
124
- bgNames: string[];
125
- } | null | undefined;
126
- }>> & import("mongoose").FlatRecord<{
127
- type: string;
128
- id?: number | null | undefined;
129
- partnerId?: number | null | undefined;
130
- name?: string | null | undefined;
131
- hidden?: boolean | null | undefined;
132
- graphicFolder?: string | null | undefined;
133
- geo?: string | null | undefined;
134
- caption?: string | null | undefined;
135
- link?: string | null | undefined;
136
- keitaroId?: string | null | undefined;
137
- graphic?: {
138
- logo?: string | null | undefined;
139
- bg?: string | null | undefined;
140
- } | null | undefined;
141
- history?: {
142
- name: string[];
143
- caption: string[];
144
- link: string[];
145
- logoNames: string[];
146
- bgNames: string[];
147
- } | null | undefined;
148
- }> & {
149
- _id: import("mongoose").Types.ObjectId;
150
- } & {
151
- __v: number;
152
- }>;
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Document, Model, Schema } from "mongoose";
26
+ export interface IOffer extends Document {
27
+ id: number;
28
+ name: string;
29
+ graphicFolder: string;
30
+ graphic: {
31
+ logo: string;
32
+ bg: string;
33
+ };
34
+ geo: string;
35
+ caption: string;
36
+ partnerId: number;
37
+ link: string;
38
+ type: IOfferType;
39
+ keitaroId: string | null;
40
+ hidden?: boolean;
41
+ history: {
42
+ link: string[];
43
+ logo: string[];
44
+ bg: string[];
45
+ name: string[];
46
+ caption: string[];
47
+ };
48
+ }
49
+ export interface IPartner {
50
+ partnerId: number;
51
+ shortName: string;
52
+ name: string;
53
+ }
54
+ export declare enum IOfferType {
55
+ GAMBLING = "gambling",
56
+ BETTING = "betting",
57
+ FIN = "fin"
58
+ }
59
+ export interface IPartnerSection {
60
+ id: number;
61
+ name: string;
62
+ offers: IOffer[];
63
+ }
64
+ export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
65
+ partnerId?: number | undefined;
66
+ shortName?: string | undefined;
67
+ name?: string | undefined;
68
+ }>;
69
+ export declare const OfferSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
70
+ type: string;
71
+ id?: number | undefined;
72
+ partnerId?: number | undefined;
73
+ name?: string | undefined;
74
+ graphicFolder?: string | undefined;
75
+ geo?: string | undefined;
76
+ caption?: string | undefined;
77
+ link?: string | undefined;
78
+ keitaroId?: string | undefined;
79
+ hidden?: boolean | undefined;
80
+ graphic?: {
81
+ logo?: string | undefined;
82
+ bg?: string | undefined;
83
+ } | undefined;
84
+ history?: {
85
+ name: string[];
86
+ caption: string[];
87
+ link: string[];
88
+ logoNames: string[];
89
+ bgNames: string[];
90
+ } | undefined;
91
+ }>;
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OfferSchema = exports.PartnerSchema = exports.IOfferType = void 0;
4
- const mongoose_1 = require("mongoose");
5
- var IOfferType;
6
- (function (IOfferType) {
7
- IOfferType["GAMBLING"] = "gambling";
8
- IOfferType["BETTING"] = "betting";
9
- IOfferType["FIN"] = "fin";
10
- })(IOfferType = exports.IOfferType || (exports.IOfferType = {}));
11
- exports.PartnerSchema = new mongoose_1.Schema({
12
- partnerId: Number,
13
- shortName: String,
14
- name: String
15
- });
16
- exports.OfferSchema = new mongoose_1.Schema({
17
- id: { type: Number, unique: true },
18
- name: String,
19
- graphicFolder: String,
20
- graphic: {
21
- logo: String,
22
- bg: String
23
- },
24
- geo: String,
25
- caption: String,
26
- link: String,
27
- partnerId: Number,
28
- type: {
29
- type: String,
30
- enum: IOfferType,
31
- default: IOfferType.GAMBLING
32
- },
33
- keitaroId: String,
34
- hidden: Boolean,
35
- history: {
36
- link: [String],
37
- logoNames: [String],
38
- bgNames: [String],
39
- name: [String],
40
- caption: [String]
41
- }
42
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OfferSchema = exports.PartnerSchema = exports.IOfferType = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ var IOfferType;
6
+ (function (IOfferType) {
7
+ IOfferType["GAMBLING"] = "gambling";
8
+ IOfferType["BETTING"] = "betting";
9
+ IOfferType["FIN"] = "fin";
10
+ })(IOfferType = exports.IOfferType || (exports.IOfferType = {}));
11
+ exports.PartnerSchema = new mongoose_1.Schema({
12
+ partnerId: Number,
13
+ shortName: String,
14
+ name: String
15
+ });
16
+ exports.OfferSchema = new mongoose_1.Schema({
17
+ id: { type: Number, unique: true },
18
+ name: String,
19
+ graphicFolder: String,
20
+ graphic: {
21
+ logo: String,
22
+ bg: String
23
+ },
24
+ geo: String,
25
+ caption: String,
26
+ link: String,
27
+ partnerId: Number,
28
+ type: {
29
+ type: String,
30
+ enum: IOfferType,
31
+ default: IOfferType.GAMBLING
32
+ },
33
+ keitaroId: String,
34
+ hidden: Boolean,
35
+ history: {
36
+ link: [String],
37
+ logoNames: [String],
38
+ bgNames: [String],
39
+ name: [String],
40
+ caption: [String]
41
+ }
42
+ });
@@ -1,6 +1,6 @@
1
- export interface IOfferWallHomeDialogData {
2
- title: string;
3
- message: string;
4
- yes: string;
5
- no: string;
6
- }
1
+ export interface IOfferWallHomeDialogData {
2
+ title: string;
3
+ message: string;
4
+ yes: string;
5
+ no: string;
6
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +1,12 @@
1
- export interface IOfferWallOffer {
2
- url: string;
3
- foregroundUrl: string;
4
- backgroundUrl: string;
5
- emojiIcon?: string;
6
- emojiCaption?: string;
7
- caption: string;
8
- name: string;
9
- new: boolean;
10
- conversionTime: number;
11
- priority: number;
12
- }
1
+ export interface IOfferWallOffer {
2
+ url: string;
3
+ foregroundUrl: string;
4
+ backgroundUrl: string;
5
+ emojiIcon?: string;
6
+ emojiCaption?: string;
7
+ caption: string;
8
+ name: string;
9
+ new: boolean;
10
+ conversionTime: number;
11
+ priority: number;
12
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +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
- }
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
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
- import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
2
- export interface IOfferWallSection {
3
- offers: IOfferWallOffer[];
4
- title: string;
5
- buttonText: string;
6
- }
1
+ import { IOfferWallOffer } from "offers/offerwall/offerwall-offer";
2
+ export interface IOfferWallSection {
3
+ offers: IOfferWallOffer[];
4
+ title: string;
5
+ buttonText: string;
6
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,60 +1,47 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema } from "mongoose";
27
- export interface IOffersSection {
28
- id: number;
29
- title: {
30
- none: string;
31
- [key: string]: string;
32
- };
33
- button: {
34
- none: string;
35
- [key: string]: string;
36
- };
37
- }
38
- export declare const OffersSectionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
39
- id: number;
40
- title?: any;
41
- button?: any;
42
- }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
43
- id: number;
44
- title?: any;
45
- button?: any;
46
- }>> & import("mongoose").FlatRecord<{
47
- id: number;
48
- title?: any;
49
- button?: any;
50
- }> & {
51
- _id: import("mongoose").Types.ObjectId;
52
- } & {
53
- __v: number;
54
- }>;
55
- export declare enum DefaultSectionId {
56
- GAMBLING_MAIN = 0,
57
- BETTING_MAIN = 1,
58
- GAMBLING_PLAYED = 2,
59
- BETTING_PLAYED = 3
60
- }
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import { Schema } from "mongoose";
26
+ export interface IOffersSection {
27
+ id: number;
28
+ title: {
29
+ none: string;
30
+ [key: string]: string;
31
+ };
32
+ button: {
33
+ none: string;
34
+ [key: string]: string;
35
+ };
36
+ }
37
+ export declare const OffersSectionSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
38
+ id: number;
39
+ title?: any;
40
+ button?: any;
41
+ }>;
42
+ export declare enum DefaultSectionId {
43
+ GAMBLING_MAIN = 0,
44
+ BETTING_MAIN = 1,
45
+ GAMBLING_PLAYED = 2,
46
+ BETTING_PLAYED = 3
47
+ }
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultSectionId = exports.OffersSectionSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- exports.OffersSectionSchema = new mongoose_1.Schema({
6
- id: {
7
- type: Number,
8
- unique: true,
9
- required: true
10
- },
11
- title: Object,
12
- button: Object
13
- });
14
- var DefaultSectionId;
15
- (function (DefaultSectionId) {
16
- DefaultSectionId[DefaultSectionId["GAMBLING_MAIN"] = 0] = "GAMBLING_MAIN";
17
- DefaultSectionId[DefaultSectionId["BETTING_MAIN"] = 1] = "BETTING_MAIN";
18
- DefaultSectionId[DefaultSectionId["GAMBLING_PLAYED"] = 2] = "GAMBLING_PLAYED";
19
- DefaultSectionId[DefaultSectionId["BETTING_PLAYED"] = 3] = "BETTING_PLAYED";
20
- })(DefaultSectionId = exports.DefaultSectionId || (exports.DefaultSectionId = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultSectionId = exports.OffersSectionSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.OffersSectionSchema = new mongoose_1.Schema({
6
+ id: {
7
+ type: Number,
8
+ unique: true,
9
+ required: true
10
+ },
11
+ title: Object,
12
+ button: Object
13
+ });
14
+ var DefaultSectionId;
15
+ (function (DefaultSectionId) {
16
+ DefaultSectionId[DefaultSectionId["GAMBLING_MAIN"] = 0] = "GAMBLING_MAIN";
17
+ DefaultSectionId[DefaultSectionId["BETTING_MAIN"] = 1] = "BETTING_MAIN";
18
+ DefaultSectionId[DefaultSectionId["GAMBLING_PLAYED"] = 2] = "GAMBLING_PLAYED";
19
+ DefaultSectionId[DefaultSectionId["BETTING_PLAYED"] = 3] = "BETTING_PLAYED";
20
+ })(DefaultSectionId = exports.DefaultSectionId || (exports.DefaultSectionId = {}));
@@ -1,31 +1,31 @@
1
- import { EImageFormat, IAppKeitaroData, IBannerParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPlatformParams, IntegrationVersion } from "app/app";
2
- export interface IUpsertAppRequest {
3
- id: number;
4
- name?: string;
5
- bundle?: string;
6
- sourceUrl?: string;
7
- enabled?: boolean;
8
- geos?: string;
9
- geo?: string[];
10
- appmetricaApiKey?: string;
11
- appmetricaAppId?: number;
12
- integrationVersion?: IntegrationVersion;
13
- keitaroData?: Partial<IAppKeitaroData>;
14
- offersStubParams?: IOffersStubParams;
15
- bannerParams?: IBannerParams;
16
- domainParams: IDomainParams;
17
- directParams?: IDirectParams;
18
- externalParams?: IExternalParams;
19
- platforms: {
20
- [key: string]: IPlatformParams;
21
- };
22
- proxied: boolean;
23
- imageFormat?: EImageFormat;
24
- file?: any;
25
- }
26
- export interface IUpsertAppResponse {
27
- data: IUpsertAppRequest;
28
- linkName: string;
29
- archive: string;
30
- externalParams?: IExternalParams;
31
- }
1
+ import { EImageFormat, IAppKeitaroData, IBannerParams, IDirectParams, IDomainParams, IExternalParams, IOffersStubParams, IPlatformParams, IntegrationVersion } from "app/app";
2
+ export interface IUpsertAppRequest {
3
+ id: number;
4
+ name?: string;
5
+ bundle?: string;
6
+ sourceUrl?: string;
7
+ enabled?: boolean;
8
+ geos?: string;
9
+ geo?: string[];
10
+ appmetricaApiKey?: string;
11
+ appmetricaAppId?: number;
12
+ integrationVersion?: IntegrationVersion;
13
+ keitaroData?: Partial<IAppKeitaroData>;
14
+ offersStubParams?: IOffersStubParams;
15
+ bannerParams?: IBannerParams;
16
+ domainParams: IDomainParams;
17
+ directParams?: IDirectParams;
18
+ externalParams?: IExternalParams;
19
+ platforms: {
20
+ [key: string]: IPlatformParams;
21
+ };
22
+ proxied: boolean;
23
+ imageFormat?: EImageFormat;
24
+ file?: any;
25
+ }
26
+ export interface IUpsertAppResponse {
27
+ data: IUpsertAppRequest;
28
+ linkName: string;
29
+ archive: string;
30
+ externalParams?: IExternalParams;
31
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });