@pushwoosh/rpc-v2-http-api-data 0.1.704 → 0.1.706

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/applications.d.ts CHANGED
@@ -32,6 +32,7 @@ export type Application = {
32
32
  permissions: ApplicationPermissions;
33
33
  properties: Record<string, string>;
34
34
  counters: Record<string, number>;
35
+ allowDailyStat: boolean;
35
36
  };
36
37
  export type ApplicationSummary = {
37
38
  code: string;
@@ -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
@@ -1865,6 +1865,9 @@ export const data = {
1865
1865
  "counters": {
1866
1866
  "type": "number",
1867
1867
  "mapKeyType": "string"
1868
+ },
1869
+ "allowDailyStat": {
1870
+ "type": "boolean"
1868
1871
  }
1869
1872
  }
1870
1873
  },
@@ -2896,6 +2899,106 @@ export const data = {
2896
2899
  }
2897
2900
  }
2898
2901
  },
2902
+ "pushwoosh.rpc_v2.applications_statistics.ApplicationsStatisticsService": {
2903
+ "type": "S",
2904
+ "key": "applicationsStatistics",
2905
+ "methods": {
2906
+ "GetUsersStatistics": {
2907
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsRequest",
2908
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsResponse",
2909
+ "method": "post",
2910
+ "path": "/api/v2/statistics/messages/getUsersStatistics"
2911
+ },
2912
+ "GetMAUStatistics": {
2913
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsRequest",
2914
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsResponse",
2915
+ "method": "post",
2916
+ "path": "/api/v2/statistics/messages/getMAUStatistics"
2917
+ },
2918
+ "GetDAUStatistics": {
2919
+ "request": "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsRequest",
2920
+ "response": "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsResponse",
2921
+ "method": "post",
2922
+ "path": "/api/v2/statistics/messages/getDAUStatistics"
2923
+ }
2924
+ }
2925
+ },
2926
+ "pushwoosh.rpc_v2.applications_statistics.TimeInterval": {
2927
+ "type": "E",
2928
+ "values": [
2929
+ "TIME_INTERVAL_UNSPECIFIED",
2930
+ "TIME_INTERVAL_HOUR",
2931
+ "TIME_INTERVAL_DAY",
2932
+ "TIME_INTERVAL_WEEK",
2933
+ "TIME_INTERVAL_MONTH"
2934
+ ]
2935
+ },
2936
+ "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsRequest": {
2937
+ "type": "I",
2938
+ "fields": {
2939
+ "application": {
2940
+ "type": "string"
2941
+ }
2942
+ }
2943
+ },
2944
+ "pushwoosh.rpc_v2.applications_statistics.GetUsersStatisticsResponse": {
2945
+ "type": "I",
2946
+ "fields": {
2947
+ "timestamps": {
2948
+ "type": "Date",
2949
+ "array": true
2950
+ },
2951
+ "usersCount": {
2952
+ "type": "number",
2953
+ "array": true
2954
+ },
2955
+ "interval": {
2956
+ "type": "pushwoosh.rpc_v2.applications_statistics.TimeInterval"
2957
+ }
2958
+ }
2959
+ },
2960
+ "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsRequest": {
2961
+ "type": "I",
2962
+ "fields": {
2963
+ "application": {
2964
+ "type": "string"
2965
+ }
2966
+ }
2967
+ },
2968
+ "pushwoosh.rpc_v2.applications_statistics.GetMAUStatisticsResponse": {
2969
+ "type": "I",
2970
+ "fields": {
2971
+ "timestamps": {
2972
+ "type": "Date",
2973
+ "array": true
2974
+ },
2975
+ "usersCount": {
2976
+ "type": "number",
2977
+ "array": true
2978
+ }
2979
+ }
2980
+ },
2981
+ "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsRequest": {
2982
+ "type": "I",
2983
+ "fields": {
2984
+ "application": {
2985
+ "type": "string"
2986
+ }
2987
+ }
2988
+ },
2989
+ "pushwoosh.rpc_v2.applications_statistics.GetDAUStatisticsResponse": {
2990
+ "type": "I",
2991
+ "fields": {
2992
+ "timestamps": {
2993
+ "type": "Date",
2994
+ "array": true
2995
+ },
2996
+ "usersCount": {
2997
+ "type": "number",
2998
+ "array": true
2999
+ }
3000
+ }
3001
+ },
2899
3002
  "pushwoosh.rpc_v2.autopushes.AutopushesService": {
2900
3003
  "type": "S",
2901
3004
  "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.704",
3
+ "version": "0.1.706",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",