@pushwoosh/rpc-v2-http-api-data 0.1.705 → 0.1.707

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.
@@ -3,7 +3,6 @@ export interface ApplicationsConfigurationsService {
3
3
  EnablePlatform(request: EnablePlatformRequest): Promise<EnablePlatformResponse>;
4
4
  }
5
5
  export type AndroidConfiguration = {
6
- androidFramework: string;
7
6
  androidFcmServiceAccount: string;
8
7
  };
9
8
  export type ChromeConfiguration = {
@@ -17,14 +16,7 @@ export type EmailConfiguration = {
17
16
  emailReplyName: string;
18
17
  emailReplyEmail: string;
19
18
  };
20
- export type XiaomiConfiguration = {
21
- xiaomiAppId: string;
22
- xiaomiAppSecret: string;
23
- xiaomiAppRegion: string;
24
- xiaomiAppPackageName: string;
25
- };
26
19
  export type HuaweiConfiguration = {
27
- huaweiAndroidFramework: string;
28
20
  huaweiAndroidAppId: string;
29
21
  huaweiAndroidAppSecret: string;
30
22
  };
@@ -43,7 +35,6 @@ export type WindowsConfiguration = {
43
35
  export type AmazonConfiguration = {
44
36
  admCid: string;
45
37
  admSecret: string;
46
- admFramework: string;
47
38
  };
48
39
  export type OSXConfiguration = {
49
40
  macosGateway: number;
@@ -76,7 +67,6 @@ export type FirefoxConfiguration = {
76
67
  };
77
68
  export type BaiduConfiguration = {
78
69
  baiduAndroidApiKey: string;
79
- baiduAndroidFramework: string;
80
70
  baiduAndroidSecretKey: string;
81
71
  };
82
72
  export type LineConfiguration = {
@@ -100,10 +90,6 @@ export type ConfigurationRequest_kind_emailConfiguration = {
100
90
  type: 'emailConfiguration';
101
91
  data: EmailConfiguration;
102
92
  };
103
- export type ConfigurationRequest_kind_xiaomiConfiguration = {
104
- type: 'xiaomiConfiguration';
105
- data: XiaomiConfiguration;
106
- };
107
93
  export type ConfigurationRequest_kind_huaweiConfiguration = {
108
94
  type: 'huaweiConfiguration';
109
95
  data: HuaweiConfiguration;
@@ -152,7 +138,7 @@ export type ConfigurationRequest_kind_webConfiguration = {
152
138
  type: 'webConfiguration';
153
139
  data: WebConfiguration;
154
140
  };
155
- export type ConfigurationRequest_kind = ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_xiaomiConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_osxTokenConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_firefoxConfiguration | ConfigurationRequest_kind_baiduConfiguration | ConfigurationRequest_kind_lineConfiguration | ConfigurationRequest_kind_webConfiguration;
141
+ export type ConfigurationRequest_kind = ConfigurationRequest_kind_androidConfiguration | ConfigurationRequest_kind_chromeConfiguration | ConfigurationRequest_kind_emailConfiguration | ConfigurationRequest_kind_huaweiConfiguration | ConfigurationRequest_kind_safariConfiguration | ConfigurationRequest_kind_windowsConfiguration | ConfigurationRequest_kind_amazonConfiguration | ConfigurationRequest_kind_osxConfiguration | ConfigurationRequest_kind_osxTokenConfiguration | ConfigurationRequest_kind_iosConfiguration | ConfigurationRequest_kind_iosTokenConfiguration | ConfigurationRequest_kind_firefoxConfiguration | ConfigurationRequest_kind_baiduConfiguration | ConfigurationRequest_kind_lineConfiguration | ConfigurationRequest_kind_webConfiguration;
156
142
  export type ConfigurationRequest = {
157
143
  code?: string;
158
144
  kind: ConfigurationRequest_kind;
@@ -0,0 +1,28 @@
1
+ export interface ApplicationsStatisticsService {
2
+ GetUsersStatistics(request: GetUsersStatisticsRequest): Promise<GetUsersStatisticsResponse>;
3
+ GetMAUStatistics(request: GetMAUStatisticsRequest): Promise<GetMAUStatisticsResponse>;
4
+ GetDAUStatistics(request: GetDAUStatisticsRequest): Promise<GetDAUStatisticsResponse>;
5
+ }
6
+ export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'TIME_INTERVAL_HOUR' | 'TIME_INTERVAL_DAY' | 'TIME_INTERVAL_WEEK' | 'TIME_INTERVAL_MONTH';
7
+ export type GetUsersStatisticsRequest = {
8
+ application?: string;
9
+ };
10
+ export type GetUsersStatisticsResponse = {
11
+ timestamps: Date[];
12
+ usersCount: number[];
13
+ interval: TimeInterval;
14
+ };
15
+ export type GetMAUStatisticsRequest = {
16
+ application?: string;
17
+ };
18
+ export type GetMAUStatisticsResponse = {
19
+ timestamps: Date[];
20
+ usersCount: number[];
21
+ };
22
+ export type GetDAUStatisticsRequest = {
23
+ application?: string;
24
+ };
25
+ export type GetDAUStatisticsResponse = {
26
+ timestamps: Date[];
27
+ usersCount: number[];
28
+ };
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/data.js CHANGED
@@ -2317,9 +2317,6 @@ export const data = {
2317
2317
  "pushwoosh.rpc_v2.applications_configurations.AndroidConfiguration": {
2318
2318
  "type": "I",
2319
2319
  "fields": {
2320
- "androidFramework": {
2321
- "type": "string"
2322
- },
2323
2320
  "androidFcmServiceAccount": {
2324
2321
  "type": "string"
2325
2322
  }
@@ -2356,29 +2353,9 @@ export const data = {
2356
2353
  }
2357
2354
  }
2358
2355
  },
2359
- "pushwoosh.rpc_v2.applications_configurations.XiaomiConfiguration": {
2360
- "type": "I",
2361
- "fields": {
2362
- "xiaomiAppId": {
2363
- "type": "string"
2364
- },
2365
- "xiaomiAppSecret": {
2366
- "type": "string"
2367
- },
2368
- "xiaomiAppRegion": {
2369
- "type": "string"
2370
- },
2371
- "xiaomiAppPackageName": {
2372
- "type": "string"
2373
- }
2374
- }
2375
- },
2376
2356
  "pushwoosh.rpc_v2.applications_configurations.HuaweiConfiguration": {
2377
2357
  "type": "I",
2378
2358
  "fields": {
2379
- "huaweiAndroidFramework": {
2380
- "type": "string"
2381
- },
2382
2359
  "huaweiAndroidAppId": {
2383
2360
  "type": "string"
2384
2361
  },
@@ -2430,9 +2407,6 @@ export const data = {
2430
2407
  },
2431
2408
  "admSecret": {
2432
2409
  "type": "string"
2433
- },
2434
- "admFramework": {
2435
- "type": "string"
2436
2410
  }
2437
2411
  }
2438
2412
  },
@@ -2524,9 +2498,6 @@ export const data = {
2524
2498
  "baiduAndroidApiKey": {
2525
2499
  "type": "string"
2526
2500
  },
2527
- "baiduAndroidFramework": {
2528
- "type": "string"
2529
- },
2530
2501
  "baiduAndroidSecretKey": {
2531
2502
  "type": "string"
2532
2503
  }
@@ -2572,9 +2543,6 @@ export const data = {
2572
2543
  "emailConfiguration": {
2573
2544
  "type": "pushwoosh.rpc_v2.applications_configurations.EmailConfiguration"
2574
2545
  },
2575
- "xiaomiConfiguration": {
2576
- "type": "pushwoosh.rpc_v2.applications_configurations.XiaomiConfiguration"
2577
- },
2578
2546
  "huaweiConfiguration": {
2579
2547
  "type": "pushwoosh.rpc_v2.applications_configurations.HuaweiConfiguration"
2580
2548
  },
@@ -2618,7 +2586,6 @@ export const data = {
2618
2586
  "androidConfiguration",
2619
2587
  "chromeConfiguration",
2620
2588
  "emailConfiguration",
2621
- "xiaomiConfiguration",
2622
2589
  "huaweiConfiguration",
2623
2590
  "safariConfiguration",
2624
2591
  "windowsConfiguration",
@@ -2899,6 +2866,106 @@ export const data = {
2899
2866
  }
2900
2867
  }
2901
2868
  },
2869
+ "pushwoosh.rpc_v2.applications_statistics.ApplicationsStatisticsService": {
2870
+ "type": "S",
2871
+ "key": "applicationsStatistics",
2872
+ "methods": {
2873
+ "GetUsersStatistics": {
2874
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsRequest",
2875
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsResponse",
2876
+ "method": "post",
2877
+ "path": "/api/v2/statistics/messages/getUsersStatistics"
2878
+ },
2879
+ "GetMAUStatistics": {
2880
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsRequest",
2881
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsResponse",
2882
+ "method": "post",
2883
+ "path": "/api/v2/statistics/messages/getMAUStatistics"
2884
+ },
2885
+ "GetDAUStatistics": {
2886
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsRequest",
2887
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsResponse",
2888
+ "method": "post",
2889
+ "path": "/api/v2/statistics/messages/getDAUStatistics"
2890
+ }
2891
+ }
2892
+ },
2893
+ "pushwoosh.rpc_v2.applications_statistics.TimeInterval": {
2894
+ "type": "E",
2895
+ "values": [
2896
+ "TIME_INTERVAL_UNSPECIFIED",
2897
+ "TIME_INTERVAL_HOUR",
2898
+ "TIME_INTERVAL_DAY",
2899
+ "TIME_INTERVAL_WEEK",
2900
+ "TIME_INTERVAL_MONTH"
2901
+ ]
2902
+ },
2903
+ "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsRequest": {
2904
+ "type": "I",
2905
+ "fields": {
2906
+ "application": {
2907
+ "type": "string"
2908
+ }
2909
+ }
2910
+ },
2911
+ "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsResponse": {
2912
+ "type": "I",
2913
+ "fields": {
2914
+ "timestamps": {
2915
+ "type": "Date",
2916
+ "array": true
2917
+ },
2918
+ "usersCount": {
2919
+ "type": "number",
2920
+ "array": true
2921
+ },
2922
+ "interval": {
2923
+ "type": "pushwoosh.rpc_v2.applications_statistics.TimeInterval"
2924
+ }
2925
+ }
2926
+ },
2927
+ "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsRequest": {
2928
+ "type": "I",
2929
+ "fields": {
2930
+ "application": {
2931
+ "type": "string"
2932
+ }
2933
+ }
2934
+ },
2935
+ "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsResponse": {
2936
+ "type": "I",
2937
+ "fields": {
2938
+ "timestamps": {
2939
+ "type": "Date",
2940
+ "array": true
2941
+ },
2942
+ "usersCount": {
2943
+ "type": "number",
2944
+ "array": true
2945
+ }
2946
+ }
2947
+ },
2948
+ "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsRequest": {
2949
+ "type": "I",
2950
+ "fields": {
2951
+ "application": {
2952
+ "type": "string"
2953
+ }
2954
+ }
2955
+ },
2956
+ "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsResponse": {
2957
+ "type": "I",
2958
+ "fields": {
2959
+ "timestamps": {
2960
+ "type": "Date",
2961
+ "array": true
2962
+ },
2963
+ "usersCount": {
2964
+ "type": "number",
2965
+ "array": true
2966
+ }
2967
+ }
2968
+ },
2902
2969
  "pushwoosh.rpc_v2.autopushes.AutopushesService": {
2903
2970
  "type": "S",
2904
2971
  "key": "autopushes",
package/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { ApplicationsAlertsService as pushwoosh_rpc_v2_applications_alerts_Appli
11
11
  import { ApplicationsConfigurationsService as pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService } from './applications_configurations';
12
12
  import { ApplicationsGroupsService as pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService } from './applications_groups';
13
13
  import { ApplicationsInfoService as pushwoosh_rpc_v2_applications_info_ApplicationsInfoService } from './applications_info';
14
+ import { ApplicationsStatisticsService as pushwoosh_rpc_v2_applications_statistics_ApplicationsStatisticsService } from './applications_statistics';
14
15
  import { AutopushesService as pushwoosh_rpc_v2_autopushes_AutopushesService } from './autopushes';
15
16
  import { CampaignsService as pushwoosh_rpc_v2_campaigns_CampaignsService } from './campaigns';
16
17
  import { CategoriesService as pushwoosh_rpc_v2_categories_CategoriesService } from './categories';
@@ -64,6 +65,7 @@ export type API = {
64
65
  applicationsConfigurations: pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService;
65
66
  applicationsGroups: pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService;
66
67
  applicationsInfo: pushwoosh_rpc_v2_applications_info_ApplicationsInfoService;
68
+ applicationsStatistics: pushwoosh_rpc_v2_applications_statistics_ApplicationsStatisticsService;
67
69
  autopushes: pushwoosh_rpc_v2_autopushes_AutopushesService;
68
70
  campaigns: pushwoosh_rpc_v2_campaigns_CampaignsService;
69
71
  categories: pushwoosh_rpc_v2_categories_CategoriesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.705",
3
+ "version": "0.1.707",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",