@bprotsyk/aso-core 2.1.133 → 2.1.141

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/app/app.d.ts CHANGED
@@ -198,17 +198,17 @@ export declare enum PlugType {
198
198
  }
199
199
  export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
200
200
  id: number;
201
- type: string;
201
+ type: AppType;
202
202
  geo: string[];
203
203
  enabled: boolean;
204
204
  proxied: boolean;
205
205
  ech: boolean;
206
- imageFormat: string;
207
- status: string;
208
- team: string;
206
+ imageFormat: EImageFormat;
207
+ status: AppStatus;
208
+ team: ETeam;
209
209
  bundle: string;
210
210
  trackingUrl: string;
211
- integrationVersion: string;
211
+ integrationVersion: IntegrationVersion;
212
212
  removeInfo: any;
213
213
  policyPath: string;
214
214
  name?: string | null | undefined;
@@ -242,17 +242,17 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
242
242
  } | null | undefined;
243
243
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
244
244
  id: number;
245
- type: string;
245
+ type: AppType;
246
246
  geo: string[];
247
247
  enabled: boolean;
248
248
  proxied: boolean;
249
249
  ech: boolean;
250
- imageFormat: string;
251
- status: string;
252
- team: string;
250
+ imageFormat: EImageFormat;
251
+ status: AppStatus;
252
+ team: ETeam;
253
253
  bundle: string;
254
254
  trackingUrl: string;
255
- integrationVersion: string;
255
+ integrationVersion: IntegrationVersion;
256
256
  removeInfo: any;
257
257
  policyPath: string;
258
258
  name?: string | null | undefined;
@@ -284,19 +284,19 @@ export declare const AppSchema: mongoose.Schema<any, mongoose.Model<any, any, an
284
284
  name?: string | null | undefined;
285
285
  clouflareZone?: string | null | undefined;
286
286
  } | null | undefined;
287
- }>> & mongoose.FlatRecord<{
287
+ }>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<{
288
288
  id: number;
289
- type: string;
289
+ type: AppType;
290
290
  geo: string[];
291
291
  enabled: boolean;
292
292
  proxied: boolean;
293
293
  ech: boolean;
294
- imageFormat: string;
295
- status: string;
296
- team: string;
294
+ imageFormat: EImageFormat;
295
+ status: AppStatus;
296
+ team: ETeam;
297
297
  bundle: string;
298
298
  trackingUrl: string;
299
- integrationVersion: string;
299
+ integrationVersion: IntegrationVersion;
300
300
  removeInfo: any;
301
301
  policyPath: string;
302
302
  name?: string | null | undefined;
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { ICloudflareDomainType } from "general/cloudflare-domain";
@@ -53,6 +53,7 @@ export interface IDomain extends Document {
53
53
  note: string;
54
54
  proxied: boolean;
55
55
  appid: number;
56
+ expirationMessageSent?: boolean;
56
57
  }
57
58
  export interface IDomainsBuyRequestResponse {
58
59
  requestId: string;
@@ -86,6 +87,7 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
86
87
  originalNameServers: string[];
87
88
  txtRecords: string[];
88
89
  assignedTo: number[];
90
+ expirationMessageSent: boolean;
89
91
  id?: string | null | undefined;
90
92
  name?: string | null | undefined;
91
93
  type?: string | null | undefined;
@@ -113,6 +115,7 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
113
115
  originalNameServers: string[];
114
116
  txtRecords: string[];
115
117
  assignedTo: number[];
118
+ expirationMessageSent: boolean;
116
119
  id?: string | null | undefined;
117
120
  name?: string | null | undefined;
118
121
  type?: string | null | undefined;
@@ -135,11 +138,12 @@ export declare const DomainSchema: Schema<any, Model<any, any, any, any, any, an
135
138
  archived?: boolean | null | undefined;
136
139
  note?: string | null | undefined;
137
140
  appid?: number | null | undefined;
138
- }>> & import("mongoose").FlatRecord<{
141
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
139
142
  nameServers: string[];
140
143
  originalNameServers: string[];
141
144
  txtRecords: string[];
142
145
  assignedTo: number[];
146
+ expirationMessageSent: boolean;
143
147
  id?: string | null | undefined;
144
148
  name?: string | null | undefined;
145
149
  type?: string | null | undefined;
@@ -58,5 +58,6 @@ exports.DomainSchema = new mongoose_1.Schema({
58
58
  title: String,
59
59
  note: String,
60
60
  proxied: Boolean,
61
- appid: Number
61
+ appid: Number,
62
+ expirationMessageSent: { type: Boolean, default: false }
62
63
  });
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema, Document } from "mongoose";
@@ -79,7 +79,7 @@ export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").M
79
79
  name?: string | null | undefined;
80
80
  price?: number | null | undefined;
81
81
  available?: boolean | null | undefined;
82
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
82
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
83
83
  name?: string | null | undefined;
84
84
  price?: number | null | undefined;
85
85
  available?: boolean | null | undefined;
@@ -96,7 +96,7 @@ export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").M
96
96
  name?: string | null | undefined;
97
97
  price?: number | null | undefined;
98
98
  available?: boolean | null | undefined;
99
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
99
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
100
100
  name?: string | null | undefined;
101
101
  price?: number | null | undefined;
102
102
  available?: boolean | null | undefined;
@@ -108,12 +108,12 @@ export declare const NamecheapBuyRequestSchema: Schema<any, import("mongoose").M
108
108
  id?: string | null | undefined;
109
109
  ip?: string | null | undefined;
110
110
  fullfilled?: boolean | null | undefined;
111
- }>> & import("mongoose").FlatRecord<{
111
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
112
112
  domains: import("mongoose").Types.DocumentArray<{
113
113
  name?: string | null | undefined;
114
114
  price?: number | null | undefined;
115
115
  available?: boolean | null | undefined;
116
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
116
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
117
117
  name?: string | null | undefined;
118
118
  price?: number | null | undefined;
119
119
  available?: boolean | null | undefined;
@@ -151,7 +151,7 @@ async function addOffersToTraffleKeitaro(offers) {
151
151
  let name = `${offer.offer.caption} ${offer.offer.geo} [el trafico] ${offer.trafficType}`;
152
152
  const identicalOffer = allOffers.find(o => o.name.includes(name));
153
153
  let offersGroupId = findMatchingOffersGroup(offersGroups, offer);
154
- let affiliateId = await findMatchingAffiliateId(affiliateNetworks, offer);
154
+ let affiliateId = 160; // await findMatchingAffiliateId(affiliateNetworks, offer)
155
155
  if (!identicalOffer) {
156
156
  const offerPayload = {
157
157
  name: name,
@@ -467,8 +467,7 @@ async function updateAppWithCampaignParams(existingCampaign, app, platform) {
467
467
  async function cloneTraffleCampaign(app, platform, addDefaultStreams) {
468
468
  const ORIGINAL_CLONE_CAMPAIGN_ID = 1925;
469
469
  const appsflyerAvailability = app.platforms[platform].appsflyerParams?.apiToken ? "[AF]" : "";
470
- // traffle template [app_id] [app_bundle] app_name [app_lead_developer] domain
471
- let name = `[${app.id}] [${app.bundle}] ET [${app.name}] [Volodymyr Vinnik] [Android] ${appsflyerAvailability} ${app.domainParams.name}`;
470
+ let name = `[${app.id}] [${app.bundle}] ${app.name} [Volodymyr Vinnik] [El Trafico] [Android] ${appsflyerAvailability} ${app.domainParams.name}`;
472
471
  let platformName = platform ? (0, app_1.getPlatformName)(platform) : null;
473
472
  const platformCampaignName = `#${app.id} [➥] (${platformName})`;
474
473
  const generateAlias = () => {
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from "mongoose";
@@ -85,7 +85,7 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
85
85
  getOwnPropertyDescriptors?: {} | null | undefined;
86
86
  fromEntries?: {} | null | undefined;
87
87
  hasOwn?: {} | null | undefined;
88
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
88
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
89
89
  prototype?: {
90
90
  constructor: {
91
91
  name?: unknown;
@@ -218,7 +218,7 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
218
218
  getOwnPropertyDescriptors?: {} | null | undefined;
219
219
  fromEntries?: {} | null | undefined;
220
220
  hasOwn?: {} | null | undefined;
221
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
221
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
222
222
  prototype?: {
223
223
  constructor: {
224
224
  name?: unknown;
@@ -305,7 +305,7 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
305
305
  fromEntries?: {} | null | undefined;
306
306
  hasOwn?: {} | null | undefined;
307
307
  }>;
308
- }>> & import("mongoose").FlatRecord<{
308
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
309
309
  id: number;
310
310
  name: string;
311
311
  content: import("mongoose").Types.DocumentArray<{
@@ -351,7 +351,7 @@ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<an
351
351
  getOwnPropertyDescriptors?: {} | null | undefined;
352
352
  fromEntries?: {} | null | undefined;
353
353
  hasOwn?: {} | null | undefined;
354
- }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
354
+ }, import("mongoose").Types.Subdocument<import("bson").ObjectId, any, {
355
355
  prototype?: {
356
356
  constructor: {
357
357
  name?: unknown;
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Document, Model, Schema } from "mongoose";
@@ -70,7 +70,7 @@ export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any, a
70
70
  partnerId?: number | null | undefined;
71
71
  shortName?: string | null | undefined;
72
72
  name?: string | null | undefined;
73
- }>> & import("mongoose").FlatRecord<{
73
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
74
74
  partnerId?: number | null | undefined;
75
75
  shortName?: string | null | undefined;
76
76
  name?: string | null | undefined;
@@ -80,7 +80,7 @@ export declare const PartnerSchema: Schema<any, Model<any, any, any, any, any, a
80
80
  __v: number;
81
81
  }>;
82
82
  export declare const OfferSchema: Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
83
- type: string;
83
+ type: IOfferType;
84
84
  id?: number | null | undefined;
85
85
  partnerId?: number | null | undefined;
86
86
  name?: string | null | undefined;
@@ -102,7 +102,7 @@ export declare const OfferSchema: Schema<any, Model<any, any, any, any, any, any
102
102
  bgNames: string[];
103
103
  } | null | undefined;
104
104
  }, Document<unknown, {}, import("mongoose").FlatRecord<{
105
- type: string;
105
+ type: IOfferType;
106
106
  id?: number | null | undefined;
107
107
  partnerId?: number | null | undefined;
108
108
  name?: string | null | undefined;
@@ -123,8 +123,8 @@ export declare const OfferSchema: Schema<any, Model<any, any, any, any, any, any
123
123
  logoNames: string[];
124
124
  bgNames: string[];
125
125
  } | null | undefined;
126
- }>> & import("mongoose").FlatRecord<{
127
- type: string;
126
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
127
+ type: IOfferType;
128
128
  id?: number | null | undefined;
129
129
  partnerId?: number | null | undefined;
130
130
  name?: string | null | undefined;
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Schema } from "mongoose";
@@ -43,7 +43,7 @@ export declare const OffersSectionSchema: Schema<any, import("mongoose").Model<a
43
43
  id: number;
44
44
  title?: any;
45
45
  button?: any;
46
- }>> & import("mongoose").FlatRecord<{
46
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
47
47
  id: number;
48
48
  title?: any;
49
49
  button?: any;
@@ -15,12 +15,12 @@
15
15
  /// <reference types="mongoose/types/populate" />
16
16
  /// <reference types="mongoose/types/query" />
17
17
  /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
18
  /// <reference types="mongoose/types/session" />
20
19
  /// <reference types="mongoose/types/types" />
21
20
  /// <reference types="mongoose/types/utility" />
22
21
  /// <reference types="mongoose/types/validation" />
23
22
  /// <reference types="mongoose/types/virtuals" />
23
+ /// <reference types="mongoose/types/schematypes" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  /// <reference types="mongoose/types/inferrawdoctype" />
26
26
  import { Document, Schema } from "mongoose";
@@ -34,7 +34,8 @@ export declare enum PanelUserAccessScope {
34
34
  OFFERWALL_RO = 6,
35
35
  OFFERWALL_RW = 7,
36
36
  ASO_LOGS = 8,
37
- MANAGER = 9
37
+ MANAGER = 9,
38
+ DEPLOYER = 10
38
39
  }
39
40
  export interface IPanelUser extends Document {
40
41
  username: string;
@@ -42,15 +43,15 @@ export interface IPanelUser extends Document {
42
43
  accessScopes: PanelUserAccessScope[];
43
44
  }
44
45
  export declare const PanelUserSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
45
- accessScopes: string[];
46
+ accessScopes: (string | PanelUserAccessScope)[];
46
47
  passwordHash?: string | null | undefined;
47
48
  username?: string | null | undefined;
48
49
  }, Document<unknown, {}, import("mongoose").FlatRecord<{
49
- accessScopes: string[];
50
+ accessScopes: (string | PanelUserAccessScope)[];
50
51
  passwordHash?: string | null | undefined;
51
52
  username?: string | null | undefined;
52
- }>> & import("mongoose").FlatRecord<{
53
- accessScopes: string[];
53
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
54
+ accessScopes: (string | PanelUserAccessScope)[];
54
55
  passwordHash?: string | null | undefined;
55
56
  username?: string | null | undefined;
56
57
  }> & {
package/lib/panel/user.js CHANGED
@@ -14,6 +14,7 @@ var PanelUserAccessScope;
14
14
  PanelUserAccessScope[PanelUserAccessScope["OFFERWALL_RW"] = 7] = "OFFERWALL_RW";
15
15
  PanelUserAccessScope[PanelUserAccessScope["ASO_LOGS"] = 8] = "ASO_LOGS";
16
16
  PanelUserAccessScope[PanelUserAccessScope["MANAGER"] = 9] = "MANAGER";
17
+ PanelUserAccessScope[PanelUserAccessScope["DEPLOYER"] = 10] = "DEPLOYER";
17
18
  })(PanelUserAccessScope = exports.PanelUserAccessScope || (exports.PanelUserAccessScope = {}));
18
19
  exports.PanelUserSchema = new mongoose_1.Schema({
19
20
  username: {
@@ -1,48 +1,38 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const sleep = require('sleep-promise');
4
3
  const traffle_keitaro_service_1 = require("../network/keitaro/traffle/traffle-keitaro-service");
5
4
  (async () => {
6
5
  await traffle_keitaro_service_1.TraffleKeitaroService.addOffersToTraffleKeitaro([
7
- // {
8
- // offer: {
9
- // caption: "4rabet (aviator)",
10
- // geo: "IN"
11
- // },
12
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=684&sub_id3=aviator",
13
- // partnerName: "4rabet",
14
- // trafficType: ITraffleTrafficType.ASO
15
- // },
16
- // {
17
- // offer: {
18
- // caption: "4rabet (regpage)",
19
- // geo: "IN"
20
- // },
21
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=54&sub_id3=reg_form",
22
- // partnerName: "4rabet",
23
- // trafficType: ITraffleTrafficType.ASO
24
- // },
25
- // {
26
- // offer: {
27
- // caption: "4rabet (chicken #1)",
28
- // geo: "IN"
29
- // },
30
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=1803&sub_id3=chicken1",
31
- // partnerName: "4rabet",
32
- // trafficType: ITraffleTrafficType.ASO
33
- // },
34
- // {
35
- // offer: {
36
- // caption: "4rabet (chicken #2)",
37
- // geo: "IN"
38
- // },
39
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken2",
40
- // partnerName: "4rabet",
41
- // trafficType: ITraffleTrafficType.ASO
42
- // }
6
+ {
7
+ offer: {
8
+ caption: "Cafe Casino",
9
+ geo: "US"
10
+ },
11
+ link: "https://wow.itisok.work/click?pid=27930&offer_id=4773&l=1757406836",
12
+ partnerName: "Clickout",
13
+ trafficType: traffle_keitaro_service_1.ITraffleTrafficType.ASO
14
+ },
15
+ // {
16
+ // offer: {
17
+ // caption: "4rabet (chicken #1)",
18
+ // geo: "IN"
19
+ // },
20
+ // link: "https://click.traffprogo7.com/GUU0LPNx?landing=1803&sub_id3=chicken1",
21
+ // partnerName: "4rabet",
22
+ // trafficType: ITraffleTrafficType.ASO
23
+ // },
24
+ // {
25
+ // offer: {
26
+ // caption: "4rabet (chicken #2)",
27
+ // geo: "IN"
28
+ // },
29
+ // link: "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken2",
30
+ // partnerName: "4rabet",
31
+ // trafficType: ITraffleTrafficType.ASO
32
+ // }
43
33
  ]);
44
34
  // await TraffleKeitaroService.deleteOfferById(2070)
45
- await traffle_keitaro_service_1.TraffleKeitaroService.updateOfferLinkById(2074, "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken");
35
+ // await TraffleKeitaroService.updateOfferLinkById(2074, "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken")
46
36
  // await TraffleKeitaroService.updateOfferLinkById(2073, "https://click.traffprogo7.com/GUU0LPNx?landing=1803&sub_id3=chicken")
47
37
  let offers = await traffle_keitaro_service_1.TraffleKeitaroService.getAllOffers();
48
38
  console.log(offers);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.133",
3
+ "version": "2.1.141",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -31,7 +31,9 @@
31
31
  "@types/styled-components": "^5.1.26",
32
32
  "@types/unzipper": "^0.10.10",
33
33
  "axios": "^1.4.0",
34
+ "bson": "^6.10.4",
34
35
  "module-alias": "^2.2.2",
36
+ "mongodb": "^6.18.0",
35
37
  "mongoose": "^8.10.0",
36
38
  "mustache": "^4.2.0",
37
39
  "react": "^18.3.1",
@@ -43,7 +45,7 @@
43
45
  },
44
46
  "devDependencies": {
45
47
  "@types/mustache": "^4.2.5",
46
- "@types/node": "^20.14.12",
48
+ "@types/node": "^20.19.17",
47
49
  "@types/react": "^18.3.18",
48
50
  "@types/react-dom": "^18.3.0",
49
51
  "copyfiles": "^2.4.1",
package/src/app/app.ts CHANGED
@@ -235,7 +235,6 @@ export interface IKeitaroDirectTrackingParams {
235
235
  bundle_id: string,
236
236
  advertising_id: string,
237
237
  appsflyer_device_id: string,
238
-
239
238
  }
240
239
 
241
240
  export interface IAppKeitaroData {
@@ -29,6 +29,7 @@ export interface IDomain extends Document {
29
29
  note: string,
30
30
  proxied: boolean
31
31
  appid: number
32
+ expirationMessageSent?: boolean
32
33
  }
33
34
 
34
35
  export interface IDomainsBuyRequestResponse {
@@ -103,5 +104,6 @@ export const DomainSchema = new Schema({
103
104
  title: String,
104
105
  note: String,
105
106
  proxied: Boolean,
106
- appid: Number
107
+ appid: Number,
108
+ expirationMessageSent: { type: Boolean, default: false }
107
109
  })
@@ -215,7 +215,7 @@ async function addOffersToTraffleKeitaro(offers: ITraffleOffer[]) {
215
215
  const identicalOffer = allOffers.find(o => o.name.includes(name));
216
216
 
217
217
  let offersGroupId = findMatchingOffersGroup(offersGroups, offer)
218
- let affiliateId = await findMatchingAffiliateId(affiliateNetworks, offer)
218
+ let affiliateId = 160 // await findMatchingAffiliateId(affiliateNetworks, offer)
219
219
  if (!identicalOffer) {
220
220
  const offerPayload = {
221
221
  name: name,
@@ -577,8 +577,7 @@ async function cloneTraffleCampaign(app: IApp, platform: EPlatform, addDefaultSt
577
577
 
578
578
  const ORIGINAL_CLONE_CAMPAIGN_ID = 1925;
579
579
  const appsflyerAvailability = app.platforms[platform].appsflyerParams?.apiToken ? "[AF]" : "";
580
- // traffle template [app_id] [app_bundle] app_name [app_lead_developer] domain
581
- let name = `[${app.id}] [${app.bundle}] ET [${app.name}] [Volodymyr Vinnik] [Android] ${appsflyerAvailability} ${app.domainParams.name}`
580
+ let name = `[${app.id}] [${app.bundle}] ${app.name} [Volodymyr Vinnik] [El Trafico] [Android] ${appsflyerAvailability} ${app.domainParams.name}`
582
581
  let platformName = platform ? getPlatformName(platform) : null;
583
582
  const platformCampaignName = `#${app.id} [➥] (${platformName})`;
584
583
  const generateAlias = () => {
package/src/panel/user.ts CHANGED
@@ -16,7 +16,8 @@ export enum PanelUserAccessScope {
16
16
 
17
17
  ASO_LOGS,
18
18
 
19
- MANAGER
19
+ MANAGER,
20
+ DEPLOYER
20
21
  }
21
22
 
22
23
  export interface IPanelUser extends Document {
@@ -1,40 +1,18 @@
1
- import { IKeitaroStream } from "../keitaro/keitaro-stream"
2
- import { EPlatform, IApp, PlugType, } from "../app/app"
3
- import { AppType } from "../app/app-type"
4
- import { IKeitaroCampaign, IKeitaroCampaignParameters } from "../keitaro/keitaro-campaign"
5
- import { IKeitaroDomain } from "../keitaro/keitaro-domain"
6
- import { KeitaroService } from "../network/keitaro/keitaro-service"
7
- const sleep = require('sleep-promise');
8
- import * as util from 'util';
9
- import axios from "axios"
10
- import { getTimestampsForTodayAndYesterday } from "./general"
11
- import { KeitaroUtils } from "index"
12
- import { rename } from "fs"
13
- import { IKeitaroClicksRequest, KeitaroClicksInterval } from "../keitaro/keitaro-clicks"
14
- import { IKeitaroClicksRangeRequest } from "../keitaro/keitaro-clicks"
1
+
15
2
  import { ITraffleTrafficType, TraffleKeitaroService } from "../network/keitaro/traffle/traffle-keitaro-service"
16
- import { OpenAI } from "../network/openai/openai"
17
3
 
18
4
  (async () => {
19
5
  await TraffleKeitaroService.addOffersToTraffleKeitaro([
20
- // {
21
- // offer: {
22
- // caption: "4rabet (aviator)",
23
- // geo: "IN"
24
- // },
25
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=684&sub_id3=aviator",
26
- // partnerName: "4rabet",
27
- // trafficType: ITraffleTrafficType.ASO
28
- // },
29
- // {
30
- // offer: {
31
- // caption: "4rabet (regpage)",
32
- // geo: "IN"
33
- // },
34
- // link: "https://click.traffprogo7.com/GUU0LPNx?landing=54&sub_id3=reg_form",
35
- // partnerName: "4rabet",
36
- // trafficType: ITraffleTrafficType.ASO
37
- // },
6
+ {
7
+ offer: {
8
+ caption: "Cafe Casino",
9
+ geo: "US"
10
+ },
11
+ link: "https://wow.itisok.work/click?pid=27930&offer_id=4773&l=1757406836",
12
+ partnerName: "Clickout",
13
+ trafficType: ITraffleTrafficType.ASO
14
+ },
15
+
38
16
  // {
39
17
  // offer: {
40
18
  // caption: "4rabet (chicken #1)",
@@ -57,7 +35,7 @@ import { OpenAI } from "../network/openai/openai"
57
35
 
58
36
  // await TraffleKeitaroService.deleteOfferById(2070)
59
37
 
60
- await TraffleKeitaroService.updateOfferLinkById(2074, "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken")
38
+ // await TraffleKeitaroService.updateOfferLinkById(2074, "https://click.traffprogo7.com/GUU0LPNx?landing=2689&sub_id3=chicken")
61
39
  // await TraffleKeitaroService.updateOfferLinkById(2073, "https://click.traffprogo7.com/GUU0LPNx?landing=1803&sub_id3=chicken")
62
40
 
63
41
  let offers = await TraffleKeitaroService.getAllOffers()
package/tsconfig.json CHANGED
@@ -11,7 +11,8 @@
11
11
  "strict": true,
12
12
  "esModuleInterop": true,
13
13
  "moduleResolution": "node",
14
- "skipLibCheck": true
14
+ "skipLibCheck": true,
15
+ "types": ["node"]
15
16
 
16
17
 
17
18
  },
package/tsc DELETED
File without changes