@bprotsyk/aso-core 1.2.125 → 1.2.126

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.
@@ -19,6 +19,7 @@ export interface IFlashApp extends Document {
19
19
  geos: string;
20
20
  onesignalAppId: string;
21
21
  onesignalRestApiKey: string;
22
+ domain: string;
22
23
  developerName: string;
23
24
  developerEmail: string;
24
25
  developerOrganization: string;
@@ -36,11 +37,12 @@ export interface IRemoveDataParams {
36
37
  inputHint?: string;
37
38
  }
38
39
  export interface IPrivacyPolicyParams {
39
- callbackMethodName?: string;
40
+ callbackMethodName: string;
41
+ showButtonQuery: string;
40
42
  button?: {
41
43
  text: string;
42
44
  };
43
- mustRead?: boolean;
45
+ mustRead: boolean;
44
46
  }
45
47
  export declare enum IntegrationVersion {
46
48
  _3 = 3,
@@ -101,6 +103,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
101
103
  integrationAlterations?: any;
102
104
  removeDataParams?: any;
103
105
  policyUrl?: string | undefined;
106
+ domain?: string | undefined;
104
107
  generationOptions?: {
105
108
  splashName: string;
106
109
  webViewName: string;
@@ -61,6 +61,9 @@ exports.FlashAppSchema = new mongoose_1.Schema({
61
61
  type: String,
62
62
  required: true
63
63
  },
64
+ domain: {
65
+ type: String
66
+ },
64
67
  developerName: {
65
68
  type: String,
66
69
  // unique: true,
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData } from "flash/flash-app";
1
+ import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app";
2
2
  export interface IUpsertFlashAppRequest {
3
3
  id: number;
4
4
  name: string;
@@ -6,11 +6,14 @@ export interface IUpsertFlashAppRequest {
6
6
  sourceUrl?: string;
7
7
  onesignalAppId: string;
8
8
  onesignalRestApiKey: string;
9
+ domain: string;
9
10
  developerName: string;
10
11
  developerEmail: string;
11
12
  developerOrganization: string;
12
13
  generationOptions: Partial<IAppGenerationOptions>;
13
14
  keitaroData?: Partial<IAppKeitaroData>;
15
+ removeDataParams?: IRemoveDataParams;
16
+ privacyPolicyParams?: IPrivacyPolicyParams;
14
17
  }
15
18
  export interface IUpsertFlashAppResponse {
16
19
  data: IUpsertFlashAppRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.125",
3
+ "version": "1.2.126",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -25,6 +25,7 @@ export interface IFlashApp extends Document {
25
25
  onesignalAppId: string
26
26
  onesignalRestApiKey: string
27
27
 
28
+ domain: string,
28
29
  developerName: string
29
30
  developerEmail: string
30
31
  developerOrganization: string
@@ -44,11 +45,12 @@ export interface IRemoveDataParams {
44
45
  }
45
46
 
46
47
  export interface IPrivacyPolicyParams {
47
- callbackMethodName?: string,
48
+ callbackMethodName: string,
49
+ showButtonQuery: string,
48
50
  button?: {
49
51
  text: string
50
52
  },
51
- mustRead?: boolean,
53
+ mustRead: boolean,
52
54
  }
53
55
 
54
56
  export enum IntegrationVersion {
@@ -141,6 +143,9 @@ export const FlashAppSchema = new Schema({
141
143
  required: true
142
144
  },
143
145
 
146
+ domain: {
147
+ type: String
148
+ },
144
149
  developerName: {
145
150
  type: String,
146
151
  // unique: true,
@@ -1,4 +1,4 @@
1
- import { IAppGenerationOptions, IAppKeitaroData } from "flash/flash-app"
1
+ import { IAppGenerationOptions, IAppKeitaroData, IPrivacyPolicyParams, IRemoveDataParams } from "flash/flash-app"
2
2
  import { PlugType } from "index"
3
3
 
4
4
  export interface IUpsertFlashAppRequest {
@@ -10,12 +10,15 @@ export interface IUpsertFlashAppRequest {
10
10
  onesignalAppId: string
11
11
  onesignalRestApiKey: string
12
12
 
13
+ domain: string,
14
+
13
15
  developerName: string
14
16
  developerEmail: string
15
17
  developerOrganization: string
16
18
  generationOptions: Partial<IAppGenerationOptions>
17
- keitaroData?: Partial<IAppKeitaroData>
18
-
19
+ keitaroData?: Partial<IAppKeitaroData>,
20
+ removeDataParams?: IRemoveDataParams,
21
+ privacyPolicyParams?: IPrivacyPolicyParams
19
22
  }
20
23
 
21
24
  export interface IUpsertFlashAppResponse {