@bprotsyk/aso-core 1.2.220 → 1.2.225

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 (85) hide show
  1. package/docs/assets/search.js +1 -1
  2. package/docs/functions/ColoredText.html +2 -2
  3. package/docs/functions/ShapeDiv.html +2 -2
  4. package/docs/index.html +2 -2
  5. package/docs/interfaces/IUpsertFlashAppRequest.html +48 -48
  6. package/docs/interfaces/IUpsertFlashAppResponse.html +10 -10
  7. package/docs/modules.html +4 -4
  8. package/docs/variables/FlashAppSchema.html +2 -2
  9. package/docs/variables/PanelUserSchema.html +2 -2
  10. package/lib/app/app-integration.d.ts +53 -0
  11. package/lib/app/app-integration.js +63 -0
  12. package/lib/app/app-list-item.d.ts +5 -0
  13. package/lib/app/app-list-item.js +2 -0
  14. package/lib/app/app-type.d.ts +4 -0
  15. package/lib/app/app-type.js +8 -0
  16. package/lib/app/app.d.ts +177 -0
  17. package/lib/app/app.js +216 -0
  18. package/lib/general/cloudflare-domain.d.ts +42 -0
  19. package/lib/general/cloudflare-domain.js +12 -0
  20. package/lib/general/colored-text.d.ts +7 -0
  21. package/lib/general/colored-text.js +28 -0
  22. package/lib/general/domain.d.ts +92 -0
  23. package/lib/general/domain.js +38 -0
  24. package/lib/general/namecheap-domain.d.ts +80 -0
  25. package/lib/general/namecheap-domain.js +14 -0
  26. package/lib/general/push.d.ts +6 -0
  27. package/lib/general/push.js +2 -0
  28. package/lib/general/queue.d.ts +1 -0
  29. package/lib/general/queue.js +2 -0
  30. package/lib/general/shape.d.ts +18 -0
  31. package/lib/general/shape.js +36 -0
  32. package/lib/index.d.ts +14 -33
  33. package/lib/index.js +29 -29
  34. package/lib/network/keitaro/keitaro-service.d.ts +4 -4
  35. package/lib/offers/list.d.ts +37 -0
  36. package/lib/offers/list.js +12 -0
  37. package/lib/offers/offer.d.ts +95 -0
  38. package/lib/offers/offer.js +38 -0
  39. package/lib/offers/section.d.ts +47 -0
  40. package/lib/offers/section.js +20 -0
  41. package/lib/panel/flash/create-flash-app-request.d.ts +3 -3
  42. package/lib/panel/flash/upsert-flash-app-request.d.ts +4 -4
  43. package/lib/utils/keitaro-utils.d.ts +7 -7
  44. package/package.json +1 -1
  45. package/src/{flash/flash-app-integration.ts → app/app-integration.ts} +1 -1
  46. package/src/{flash/flash-app-list-item.ts → app/app-list-item.ts} +1 -1
  47. package/src/{flash/flash-app-type.ts → app/app-type.ts} +1 -1
  48. package/src/{flash/flash-app.ts → app/app.ts} +19 -9
  49. package/src/{models → general}/domain.ts +1 -1
  50. package/src/index.ts +14 -35
  51. package/src/network/keitaro/keitaro-service.ts +4 -4
  52. package/src/offers/list.ts +20 -0
  53. package/src/offers/offer.ts +77 -0
  54. package/src/offers/section.ts +30 -0
  55. package/src/panel/flash/upsert-flash-app-request.ts +4 -4
  56. package/src/utils/keitaro-utils.ts +10 -10
  57. package/src/aso/config/aso-config-v0.ts +0 -441
  58. package/src/aso/config/aso-config-v1.ts +0 -440
  59. package/src/aso/config/aso-config-v2.ts +0 -399
  60. package/src/aso/config/aso-config-v3.ts +0 -396
  61. package/src/aso/config/aso-config-v4.ts +0 -305
  62. package/src/aso/config/aso-config-v5.ts +0 -328
  63. package/src/aso/config/aso-default-config.ts +0 -67
  64. package/src/aso/config/aso-single-response.ts +0 -6
  65. package/src/aso/offer/aso-customized-offer.ts +0 -12
  66. package/src/aso/offer/aso-offer-response.ts +0 -7
  67. package/src/aso/offer/aso-offer-section.ts +0 -7
  68. package/src/aso/offer/aso-single-offer.ts +0 -5
  69. package/src/aso/offerwall/auth/offerwall-auth-config.ts +0 -17
  70. package/src/aso/offerwall/auth/offerwall-auth-localization.ts +0 -9
  71. package/src/aso/offerwall/auth/offerwall-auth-submit-request.ts +0 -3
  72. package/src/aso/offerwall/auth/offerwall-auth-submit-response.ts +0 -3
  73. package/src/aso/offerwall/offerwall-home-dialog-data.ts +0 -6
  74. package/src/aso/offerwall/offerwall-offer.ts +0 -9
  75. package/src/aso/offerwall/offerwall-response.ts +0 -7
  76. package/src/aso/offerwall/offerwall-section.ts +0 -7
  77. package/src/aso/usage-logs/aso-config-fetch-entry.ts +0 -31
  78. package/src/shared/colored-text.tsx +0 -38
  79. package/src/shared/offer.ts +0 -12
  80. package/src/utils/app-gathering-utils.ts +0 -15
  81. /package/src/{models → general}/cloudflare-domain.ts +0 -0
  82. /package/src/{models → general}/namecheap-domain.ts +0 -0
  83. /package/src/{shared → general}/push.ts +0 -0
  84. /package/src/{shared → general}/queue.ts +0 -0
  85. /package/src/{shared → general}/shape.tsx +0 -0
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamecheapBuyRequestSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.NamecheapBuyRequestSchema = new mongoose_1.Schema({
6
+ domains: [{
7
+ name: String,
8
+ price: String,
9
+ available: Boolean
10
+ }],
11
+ ip: String,
12
+ fullfilled: Boolean,
13
+ id: String
14
+ });
@@ -0,0 +1,6 @@
1
+ export interface IPush {
2
+ app_id: string;
3
+ contents: any;
4
+ headings: any;
5
+ filters: any[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface IGradient {
2
+ startColor: string;
3
+ centerColor?: string;
4
+ endColor: string;
5
+ angle?: number;
6
+ }
7
+ export interface IStroke {
8
+ width: number;
9
+ color: string;
10
+ }
11
+ export interface IShape {
12
+ fill: IGradient | string;
13
+ stroke?: IStroke;
14
+ textColor?: string;
15
+ fontUrl?: string;
16
+ cornerRadius?: number;
17
+ }
18
+ export declare const ShapeDiv: import("styled-components").StyledComponent<"div", any, IShape, never>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ShapeDiv = void 0;
7
+ const styled_components_1 = __importDefault(require("styled-components"));
8
+ exports.ShapeDiv = styled_components_1.default.div `
9
+ background: ${props => typeof props.fill === 'string'
10
+ ? props.fill
11
+ : props.fill.angle
12
+ ? `linear-gradient(${props.fill.angle}deg, ${props.fill.startColor} 0%, ${props.fill.centerColor || props.fill.startColor} 50%, ${props.fill.endColor} 100%)`
13
+ : `radial-gradient(circle, ${props.fill.startColor} 0%, ${props.fill.endColor} 100%)`};
14
+
15
+ ${props => props.stroke &&
16
+ `
17
+ border: ${props.stroke.width}px solid ${props.stroke.color};
18
+ box-sizing: border-box;
19
+ `};
20
+
21
+ ${props => props.cornerRadius &&
22
+ `
23
+ border-radius: ${props.cornerRadius}px;
24
+ `}
25
+
26
+ color: ${props => props.textColor || "white"};
27
+
28
+ ${props => props.fontUrl &&
29
+ `
30
+ @font-face {
31
+ font-family: 'custom';
32
+ src: url(${props.fontUrl});
33
+ }
34
+ font-family: 'custom', sans-serif;
35
+ `};
36
+ `;
package/lib/index.d.ts CHANGED
@@ -1,41 +1,22 @@
1
- export { IAsoCustomizedOffer } from "./aso/offer/aso-customized-offer";
2
- export { IAsoOfferResponse } from "./aso/offer/aso-offer-response";
3
- export { IAsoSection } from "./aso/offer/aso-offer-section";
4
- export { IAsoDefaultConfig } from "./aso/config/aso-default-config";
5
- export { IAsoConfigResponse } from "./aso/config/aso-single-response";
6
- export { IAsoSingleOffer } from "./aso/offer/aso-single-offer";
7
- export * as ASO_v0 from "./aso/config/aso-config-v0";
8
- export * as ASO_v1 from "./aso/config/aso-config-v1";
9
- export * as ASO_v2 from "./aso/config/aso-config-v2";
10
- export * as ASO_v3 from "./aso/config/aso-config-v3";
11
- export * as ASO_v4 from "./aso/config/aso-config-v4";
12
- export * as ASO_v5 from "./aso/config/aso-config-v5";
13
- export { IPush } from "./shared/push";
14
- export { IOffer } from "./shared/offer";
15
- export { IOfferWallSection } from "./aso/offerwall/offerwall-section";
16
- export { IOfferWallOffer } from "./aso/offerwall/offerwall-offer";
17
- export { IOfferWallResponse } from "./aso/offerwall/offerwall-response";
18
- export { IOfferWallHomeDialogData } from "./aso/offerwall/offerwall-home-dialog-data";
19
- export { IntegrationAlterations, IntegrationVersion, IFlashApp, FlashAppSchema, updateSchemaAndMoveValue, PlugType } from "./flash/flash-app";
20
- export { IFlashAppListItem } from "./flash/flash-app-list-item";
21
- export { FlashAppType } from "./flash/flash-app-type";
22
- export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IFlashIntegration } from "./flash/flash-app-integration";
23
- export * as ASOConfigFetch from "./aso/usage-logs/aso-config-fetch-entry";
1
+ export { IPush } from "./general/push";
2
+ export { IOffer, IPartner, IOfferType } from "./offers/offer";
3
+ export { IOffersSection, OffersSectionSchema, DefaultSectionId } from "./offers/section";
4
+ export { IAppOffersSection, ISectionsList, SectionsListSchema } from "./offers/list";
5
+ export { IntegrationAlterations, IntegrationVersion, IApp, AppSchema, PlugType } from "./app/app";
6
+ export { IAppListItem } from "./app/app-list-item";
7
+ export { AppType } from "./app/app-type";
8
+ export { AlternativeLayoutType, AlternativeSourceType, AlternativeLogicType, AlternativeNetworkTool, AlternativeStorageType, AlternativeNavigation, AlternativeOnBackPressed, AlternativeOnActivityResult, IAppIntegration as IFlashIntegration } from "./app/app-integration";
24
9
  export { IPanelUser, PanelUserAccessScope, PanelUserSchema } from "./panel/user";
25
10
  export { IAuthToken } from "./panel/auth";
26
- export { IUpsertFlashAppRequest, IUpsertFlashAppResponse } from "./panel/flash/upsert-flash-app-request";
27
- export { IGradient, IStroke, IShape, ShapeDiv } from "./shared/shape";
28
- export { ColoredText, IColoredTextProps } from "./shared/colored-text";
29
- export { IOfferWallAuthConfig } from "./aso/offerwall/auth/offerwall-auth-config";
30
- export { IOfferWallAuthLocalization } from "./aso/offerwall/auth/offerwall-auth-localization";
31
- export { IOfferWallAuthSubmitRequest } from "./aso/offerwall/auth/offerwall-auth-submit-request";
32
- export { IOfferWallAuthSubmitResponse } from "./aso/offerwall/auth/offerwall-auth-submit-response";
11
+ export { IUpsertAppRequest, IUpsertAppResponse } from "./panel/flash/upsert-flash-app-request";
12
+ export { IGradient, IStroke, IShape, ShapeDiv } from "./general/shape";
13
+ export { ColoredText, IColoredTextProps } from "./general/colored-text";
33
14
  export { KeitaroService, IKeitaroOffersFilter } from "./network/keitaro/keitaro-service";
34
15
  export * as KeitaroUtils from "./utils/keitaro-utils";
35
16
  export { IKeitaroCampaign, IKeitaroCampaignParameters, IKeitaroCampaignParameter } from "./keitaro/keitaro-campaign";
36
17
  export { IKeitaroDomain } from "./keitaro/keitaro-domain";
37
18
  export { IKeitaroOffer } from "./keitaro/keitaro-offer";
38
19
  export { IKeitaroStream } from "./keitaro/keitaro-stream";
39
- export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./models/cloudflare-domain";
40
- export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse } from "./models/domain";
41
- export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema } from "./models/namecheap-domain";
20
+ export { ICloudflareDomainStatus, ICloudflareDomainType, ICloudflareDomain } from "./general/cloudflare-domain";
21
+ export { IDomain, IDomainSetupResult, DomainStatus, DomainTarget, CONST_CLOUFLARE_STATUS_READY, IDomainsBuyRequestResponse } from "./general/domain";
22
+ export { INamecheapDomain, INamecheapBuyRequest, INamecheapContactInfo, NamecheapBuyRequestSchema } from "./general/namecheap-domain";
package/lib/index.js CHANGED
@@ -23,46 +23,46 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.NamecheapBuyRequestSchema = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.ColoredText = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.ASOConfigFetch = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.FlashAppType = exports.PlugType = exports.updateSchemaAndMoveValue = exports.FlashAppSchema = exports.IntegrationVersion = exports.ASO_v5 = exports.ASO_v4 = exports.ASO_v3 = exports.ASO_v2 = exports.ASO_v1 = exports.ASO_v0 = void 0;
27
- exports.ASO_v0 = __importStar(require("./aso/config/aso-config-v0"));
28
- exports.ASO_v1 = __importStar(require("./aso/config/aso-config-v1"));
29
- exports.ASO_v2 = __importStar(require("./aso/config/aso-config-v2"));
30
- exports.ASO_v3 = __importStar(require("./aso/config/aso-config-v3"));
31
- exports.ASO_v4 = __importStar(require("./aso/config/aso-config-v4"));
32
- exports.ASO_v5 = __importStar(require("./aso/config/aso-config-v5"));
33
- var flash_app_1 = require("./flash/flash-app");
34
- Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: function () { return flash_app_1.IntegrationVersion; } });
35
- Object.defineProperty(exports, "FlashAppSchema", { enumerable: true, get: function () { return flash_app_1.FlashAppSchema; } });
36
- Object.defineProperty(exports, "updateSchemaAndMoveValue", { enumerable: true, get: function () { return flash_app_1.updateSchemaAndMoveValue; } });
37
- Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return flash_app_1.PlugType; } });
38
- var flash_app_type_1 = require("./flash/flash-app-type");
39
- Object.defineProperty(exports, "FlashAppType", { enumerable: true, get: function () { return flash_app_type_1.FlashAppType; } });
40
- var flash_app_integration_1 = require("./flash/flash-app-integration");
41
- Object.defineProperty(exports, "AlternativeLayoutType", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeLayoutType; } });
42
- Object.defineProperty(exports, "AlternativeSourceType", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeSourceType; } });
43
- Object.defineProperty(exports, "AlternativeLogicType", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeLogicType; } });
44
- Object.defineProperty(exports, "AlternativeNetworkTool", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeNetworkTool; } });
45
- Object.defineProperty(exports, "AlternativeStorageType", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeStorageType; } });
46
- Object.defineProperty(exports, "AlternativeNavigation", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeNavigation; } });
47
- Object.defineProperty(exports, "AlternativeOnBackPressed", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeOnBackPressed; } });
48
- Object.defineProperty(exports, "AlternativeOnActivityResult", { enumerable: true, get: function () { return flash_app_integration_1.AlternativeOnActivityResult; } });
49
- exports.ASOConfigFetch = __importStar(require("./aso/usage-logs/aso-config-fetch-entry"));
26
+ exports.NamecheapBuyRequestSchema = exports.CONST_CLOUFLARE_STATUS_READY = exports.DomainTarget = exports.DomainStatus = exports.ICloudflareDomainType = exports.ICloudflareDomainStatus = exports.KeitaroUtils = exports.KeitaroService = exports.IColoredTextProps = exports.ColoredText = exports.ShapeDiv = exports.PanelUserSchema = exports.PanelUserAccessScope = exports.AlternativeOnActivityResult = exports.AlternativeOnBackPressed = exports.AlternativeNavigation = exports.AlternativeStorageType = exports.AlternativeNetworkTool = exports.AlternativeLogicType = exports.AlternativeSourceType = exports.AlternativeLayoutType = exports.AppType = exports.PlugType = exports.AppSchema = exports.IntegrationVersion = exports.SectionsListSchema = exports.DefaultSectionId = exports.OffersSectionSchema = exports.IOfferType = void 0;
27
+ var offer_1 = require("./offers/offer");
28
+ Object.defineProperty(exports, "IOfferType", { enumerable: true, get: function () { return offer_1.IOfferType; } });
29
+ var section_1 = require("./offers/section");
30
+ Object.defineProperty(exports, "OffersSectionSchema", { enumerable: true, get: function () { return section_1.OffersSectionSchema; } });
31
+ Object.defineProperty(exports, "DefaultSectionId", { enumerable: true, get: function () { return section_1.DefaultSectionId; } });
32
+ var list_1 = require("./offers/list");
33
+ Object.defineProperty(exports, "SectionsListSchema", { enumerable: true, get: function () { return list_1.SectionsListSchema; } });
34
+ var app_1 = require("./app/app");
35
+ Object.defineProperty(exports, "IntegrationVersion", { enumerable: true, get: function () { return app_1.IntegrationVersion; } });
36
+ Object.defineProperty(exports, "AppSchema", { enumerable: true, get: function () { return app_1.AppSchema; } });
37
+ Object.defineProperty(exports, "PlugType", { enumerable: true, get: function () { return app_1.PlugType; } });
38
+ var app_type_1 = require("./app/app-type");
39
+ Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return app_type_1.AppType; } });
40
+ var app_integration_1 = require("./app/app-integration");
41
+ Object.defineProperty(exports, "AlternativeLayoutType", { enumerable: true, get: function () { return app_integration_1.AlternativeLayoutType; } });
42
+ Object.defineProperty(exports, "AlternativeSourceType", { enumerable: true, get: function () { return app_integration_1.AlternativeSourceType; } });
43
+ Object.defineProperty(exports, "AlternativeLogicType", { enumerable: true, get: function () { return app_integration_1.AlternativeLogicType; } });
44
+ Object.defineProperty(exports, "AlternativeNetworkTool", { enumerable: true, get: function () { return app_integration_1.AlternativeNetworkTool; } });
45
+ Object.defineProperty(exports, "AlternativeStorageType", { enumerable: true, get: function () { return app_integration_1.AlternativeStorageType; } });
46
+ Object.defineProperty(exports, "AlternativeNavigation", { enumerable: true, get: function () { return app_integration_1.AlternativeNavigation; } });
47
+ Object.defineProperty(exports, "AlternativeOnBackPressed", { enumerable: true, get: function () { return app_integration_1.AlternativeOnBackPressed; } });
48
+ Object.defineProperty(exports, "AlternativeOnActivityResult", { enumerable: true, get: function () { return app_integration_1.AlternativeOnActivityResult; } });
50
49
  var user_1 = require("./panel/user");
51
50
  Object.defineProperty(exports, "PanelUserAccessScope", { enumerable: true, get: function () { return user_1.PanelUserAccessScope; } });
52
51
  Object.defineProperty(exports, "PanelUserSchema", { enumerable: true, get: function () { return user_1.PanelUserSchema; } });
53
- var shape_1 = require("./shared/shape");
52
+ var shape_1 = require("./general/shape");
54
53
  Object.defineProperty(exports, "ShapeDiv", { enumerable: true, get: function () { return shape_1.ShapeDiv; } });
55
- var colored_text_1 = require("./shared/colored-text");
54
+ var colored_text_1 = require("./general/colored-text");
56
55
  Object.defineProperty(exports, "ColoredText", { enumerable: true, get: function () { return colored_text_1.ColoredText; } });
56
+ Object.defineProperty(exports, "IColoredTextProps", { enumerable: true, get: function () { return colored_text_1.IColoredTextProps; } });
57
57
  var keitaro_service_1 = require("./network/keitaro/keitaro-service");
58
58
  Object.defineProperty(exports, "KeitaroService", { enumerable: true, get: function () { return keitaro_service_1.KeitaroService; } });
59
59
  exports.KeitaroUtils = __importStar(require("./utils/keitaro-utils"));
60
- var cloudflare_domain_1 = require("./models/cloudflare-domain");
60
+ var cloudflare_domain_1 = require("./general/cloudflare-domain");
61
61
  Object.defineProperty(exports, "ICloudflareDomainStatus", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainStatus; } });
62
62
  Object.defineProperty(exports, "ICloudflareDomainType", { enumerable: true, get: function () { return cloudflare_domain_1.ICloudflareDomainType; } });
63
- var domain_1 = require("./models/domain");
63
+ var domain_1 = require("./general/domain");
64
64
  Object.defineProperty(exports, "DomainStatus", { enumerable: true, get: function () { return domain_1.DomainStatus; } });
65
65
  Object.defineProperty(exports, "DomainTarget", { enumerable: true, get: function () { return domain_1.DomainTarget; } });
66
66
  Object.defineProperty(exports, "CONST_CLOUFLARE_STATUS_READY", { enumerable: true, get: function () { return domain_1.CONST_CLOUFLARE_STATUS_READY; } });
67
- var namecheap_domain_1 = require("./models/namecheap-domain");
67
+ var namecheap_domain_1 = require("./general/namecheap-domain");
68
68
  Object.defineProperty(exports, "NamecheapBuyRequestSchema", { enumerable: true, get: function () { return namecheap_domain_1.NamecheapBuyRequestSchema; } });
@@ -1,8 +1,8 @@
1
1
  import { IKeitaroStream } from "../../keitaro/keitaro-stream";
2
- import { IOffer } from "../../shared/offer";
2
+ import { IOffer } from "../../offers/offer";
3
3
  import { IKeitaroCampaign } from "../../keitaro/keitaro-campaign";
4
4
  import { IKeitaroDomain } from "../../keitaro/keitaro-domain";
5
- import { IFlashApp } from "../../flash/flash-app";
5
+ import { IApp } from "../../app/app";
6
6
  import { IKeitaroOffer } from "index";
7
7
  export interface IKeitaroOffersFilter {
8
8
  keitaroId?: number;
@@ -21,8 +21,8 @@ declare function addOfferToKeitaro(offer: IOffer, affiliateId: number, link: str
21
21
  declare function createCampaign(campaignData: Partial<IKeitaroCampaign>): Promise<IKeitaroCampaign>;
22
22
  declare function getCampaignById(id: number): Promise<IKeitaroCampaign>;
23
23
  export declare function upsertStreamToCampaign(campaign: IKeitaroCampaign, stream: Partial<IKeitaroStream>): Promise<void>;
24
- declare function cloneOWCampaign(app: IFlashApp): Promise<IKeitaroCampaign>;
25
- declare function cloneDCampaign(app: IFlashApp): Promise<IKeitaroCampaign>;
24
+ declare function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign>;
25
+ declare function cloneDCampaign(app: IApp): Promise<IKeitaroCampaign>;
26
26
  declare function changeCampaignsGroup(fromId: number, toId: number, exceptForCampaignIds: number[]): Promise<void>;
27
27
  declare function getDomains(onlyActive?: boolean): Promise<IKeitaroDomain[]>;
28
28
  declare function getProfitForTimeRange(from: number, to: number): Promise<number>;
@@ -0,0 +1,37 @@
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 ISectionsList {
27
+ id: number;
28
+ content: IAppOffersSection[];
29
+ }
30
+ export interface IAppOffersSection {
31
+ sectionId: number;
32
+ offerIdsOrdered: number[];
33
+ }
34
+ export declare const SectionsListSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
35
+ content: any[];
36
+ id: number;
37
+ }>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SectionsListSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ exports.SectionsListSchema = new mongoose_1.Schema({
6
+ id: {
7
+ type: Number,
8
+ unique: true,
9
+ required: true
10
+ },
11
+ content: [Object],
12
+ });
@@ -0,0 +1,95 @@
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
+ name?: string | undefined;
66
+ partnerId?: number | undefined;
67
+ shortName?: string | undefined;
68
+ }>;
69
+ export declare const OfferSchema: Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
70
+ link?: string | undefined;
71
+ name?: string | undefined;
72
+ type?: {
73
+ GAMBLING?: unknown;
74
+ BETTING?: unknown;
75
+ FIN?: unknown;
76
+ } | undefined;
77
+ hidden?: boolean | undefined;
78
+ caption?: string | undefined;
79
+ id?: number | undefined;
80
+ history?: {
81
+ link: string[];
82
+ name: string[];
83
+ caption: string[];
84
+ logoNames: string[];
85
+ bgNames: string[];
86
+ } | undefined;
87
+ partnerId?: number | undefined;
88
+ graphicFolder?: string | undefined;
89
+ geo?: string | undefined;
90
+ keitaroId?: string | undefined;
91
+ graphic?: {
92
+ logo?: string | undefined;
93
+ bg?: string | undefined;
94
+ } | undefined;
95
+ }>;
@@ -0,0 +1,38 @@
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: { type: IOfferType },
29
+ keitaroId: String,
30
+ hidden: Boolean,
31
+ history: {
32
+ link: [String],
33
+ logoNames: [String],
34
+ bgNames: [String],
35
+ name: [String],
36
+ caption: [String]
37
+ }
38
+ });
@@ -0,0 +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
+ 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
+ button?: any;
40
+ title?: any;
41
+ }>;
42
+ export declare enum DefaultSectionId {
43
+ GAMBLING_MAIN = 0,
44
+ BETTING_MAIN = 1,
45
+ GAMBLING_PLAYED = 2,
46
+ BETTING_PLAYED = 3
47
+ }
@@ -0,0 +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,5 +1,5 @@
1
1
  import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app";
2
- export interface IUpsertFlashAppRequest {
2
+ export interface IUpsertAppRequest {
3
3
  id: number;
4
4
  name: string;
5
5
  bundle: string;
@@ -21,8 +21,8 @@ export interface IUpsertFlashAppRequest {
21
21
  domainParams: IDomainParams;
22
22
  directParams?: IDirectParams;
23
23
  }
24
- export interface IUpsertFlashAppResponse {
25
- data: IUpsertFlashAppRequest;
24
+ export interface IUpsertAppResponse {
25
+ data: IUpsertAppRequest;
26
26
  linkName: string;
27
27
  archive: string;
28
28
  }
@@ -1,5 +1,5 @@
1
- import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "flash/flash-app";
2
- export interface IUpsertFlashAppRequest {
1
+ import { IAppGenerationOptions, IAppKeitaroData, IBannerParams, IDeveloperParams, IDirectParams, IDomainParams, IOffersStubParams, IPrivacyPolicyParams, IRemoveDataParams, IntegrationVersion } from "app/app";
2
+ export interface IUpsertAppRequest {
3
3
  id: number;
4
4
  name?: string;
5
5
  bundle?: string;
@@ -19,8 +19,8 @@ export interface IUpsertFlashAppRequest {
19
19
  domainParams: IDomainParams;
20
20
  directParams?: IDirectParams;
21
21
  }
22
- export interface IUpsertFlashAppResponse {
23
- data: IUpsertFlashAppRequest;
22
+ export interface IUpsertAppResponse {
23
+ data: IUpsertAppRequest;
24
24
  linkName: string;
25
25
  archive: string;
26
26
  }
@@ -1,15 +1,15 @@
1
1
  import { IKeitaroStream } from "../keitaro/keitaro-stream";
2
- import { IFlashApp } from "../flash/flash-app";
2
+ import { IApp } from "../app/app";
3
3
  import { IKeitaroCampaign, IKeitaroCampaignParameters } from "../keitaro/keitaro-campaign";
4
4
  export declare const TRAFFIC_SOURCE_ID_FLASH_AI = 22;
5
5
  export declare let addGeosToAllRedirectCampaigns: (geosToAdd: string) => Promise<void>;
6
6
  export declare let removeGeosFromAllRedirectCampaigns: (geoToRemove: string) => Promise<void>;
7
- export declare let createOrFindFlashRedirectCampaign: (app: IFlashApp) => Promise<IKeitaroCampaign>;
8
- export declare let prepareOWCampaignParameters: (app: IFlashApp) => IKeitaroCampaignParameters;
9
- export declare function createOWStreamPartialPayload(app: IFlashApp): Partial<IKeitaroStream>;
10
- export declare function createFlashCampaigns(app: IFlashApp): Promise<{
7
+ export declare let createOrFindFlashRedirectCampaign: (app: IApp) => Promise<IKeitaroCampaign>;
8
+ export declare let prepareOWCampaignParameters: (app: IApp) => IKeitaroCampaignParameters;
9
+ export declare function createOWStreamPartialPayload(app: IApp): Partial<IKeitaroStream>;
10
+ export declare function createFlashCampaigns(app: IApp): Promise<{
11
11
  tracking: IKeitaroCampaign;
12
12
  redirect: IKeitaroCampaign;
13
13
  }>;
14
- export declare function createDirectCampaign(app: IFlashApp): Promise<IKeitaroCampaign>;
15
- export declare function createOWCampaign(app: IFlashApp): Promise<IKeitaroCampaign>;
14
+ export declare function createDirectCampaign(app: IApp): Promise<IKeitaroCampaign>;
15
+ export declare function createOWCampaign(app: IApp): Promise<IKeitaroCampaign>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.220",
3
+ "version": "1.2.225",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -59,7 +59,7 @@ export enum AlternativeOnActivityResult {
59
59
  CALLBACK = "Callback"
60
60
  }
61
61
 
62
- export interface IFlashIntegration {
62
+ export interface IAppIntegration {
63
63
  id: number,
64
64
  name: string,
65
65
  description: string,
@@ -1,4 +1,4 @@
1
- export interface IFlashAppListItem {
1
+ export interface IAppListItem {
2
2
  id: number,
3
3
  bundle: string,
4
4
  name: string
@@ -1,4 +1,4 @@
1
- export enum FlashAppType {
1
+ export enum AppType {
2
2
  GAMBLING = "gambling",
3
3
  FINANCES = "finances" // do not change the order!
4
4
  }