@pushwoosh/rpc-v2-http-api-data 0.2.357 → 0.2.359

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/accounts.d.ts CHANGED
@@ -5,8 +5,6 @@ export type AccountsService_GetEmailStatisticCount = RpcMethod<GetEmailStatistic
5
5
  export type AccountsService_GetActiveDevicesCount = RpcMethod<GetActiveDevicesCountRequest, GetActiveDevicesCountResponse>;
6
6
  export type AccountsService_GetSubscribersCount = RpcMethod<GetSubscribersCountRequest, GetSubscribersCountResponse>;
7
7
  export type AccountsService_GetActiveUsersCount = RpcMethod<GetActiveUsersCountRequest, GetActiveUsersCountResponse>;
8
- export type AccountsService_SetDebugMode = RpcMethod<SetDebugModeRequest, SetDebugModeResponse>;
9
- export type AccountsService_GetDebugMode = RpcMethod<GetDebugModeRequest, GetDebugModeResponse>;
10
8
  export type AccountsService_GetOnboardingInfo = RpcMethod<GetOnboardingInfoRequest, GetOnboardingInfoResponse>;
11
9
  export type AccountsService_UpdateOnboardingInfo = RpcMethod<UpdateOnboardingInfoRequest, UpdateOnboardingInfoResponse>;
12
10
  export type AccountsService_GetTotalEmailSubscribersCount = RpcMethod<GetTotalEmailSubscribersCountRequest, GetTotalEmailSubscribersCountResponse>;
@@ -26,10 +24,6 @@ export interface AccountsService {
26
24
  GetSubscribersCount: AccountsService_GetSubscribersCount;
27
25
  /** Returns monthly active user counts for the account (rolling-month, calendar-month and previous-month). Use for user-based MAU/billing views; pass a date range to also get the count for that window. */
28
26
  GetActiveUsersCount: AccountsService_GetActiveUsersCount;
29
- /** Turns the account's API debug mode on or off; enabling grants a one-hour window, disabling clears it. Requires the account to allow debug mode and the user to manage API access. Use get_account_debug_mode to read the current state. */
30
- SetDebugMode: AccountsService_SetDebugMode;
31
- /** Returns whether the account's API debug mode is currently enabled and its expiry time. Use before set_account_debug_mode to check state. */
32
- GetDebugMode: AccountsService_GetDebugMode;
33
27
  /** Returns the account's onboarding state: whether onboarding is active, whether to show the survey, and whether the account has a subscription and at least one application. Use to render the onboarding flow. */
34
28
  GetOnboardingInfo: AccountsService_GetOnboardingInfo;
35
29
  /** Marks an onboarding step complete or records the chosen plan/survey answers for the account, recalculating whether onboarding stays active. Use to advance the onboarding flow one step at a time. */
@@ -99,19 +93,6 @@ export type GetActiveUsersCountResponse = {
99
93
  /** calculates only if date in request given */
100
94
  requestDateActiveUsers: number;
101
95
  };
102
- export type SetDebugModeRequest = {
103
- /** true turns debug mode on for one hour; false turns it off */
104
- enabled?: boolean;
105
- };
106
- export type SetDebugModeResponse = {
107
- enabled: boolean;
108
- expireAt: Date;
109
- };
110
- export type GetDebugModeRequest = {};
111
- export type GetDebugModeResponse = {
112
- enabled: boolean;
113
- expireAt: Date;
114
- };
115
96
  export type GetOnboardingInfoRequest = {};
116
97
  export type GetOnboardingInfoResponse = {
117
98
  isActive: boolean;
package/data.js CHANGED
@@ -921,18 +921,6 @@ export const data = {
921
921
  "method": "get",
922
922
  "path": "/api/accounts/counters:active_users"
923
923
  },
924
- "SetDebugMode": {
925
- "request": "pushwoosh.rpc_v2.accounts.SetDebugModeRequest",
926
- "response": "pushwoosh.rpc_v2.accounts.SetDebugModeResponse",
927
- "method": "post",
928
- "path": "/api/accounts/debug_mode"
929
- },
930
- "GetDebugMode": {
931
- "request": "pushwoosh.rpc_v2.accounts.GetDebugModeRequest",
932
- "response": "pushwoosh.rpc_v2.accounts.GetDebugModeResponse",
933
- "method": "get",
934
- "path": "/api/accounts/debug_mode"
935
- },
936
924
  "GetOnboardingInfo": {
937
925
  "request": "pushwoosh.rpc_v2.accounts.GetOnboardingInfoRequest",
938
926
  "response": "pushwoosh.rpc_v2.accounts.GetOnboardingInfoResponse",
@@ -1111,40 +1099,6 @@ export const data = {
1111
1099
  }
1112
1100
  }
1113
1101
  },
1114
- "pushwoosh.rpc_v2.accounts.SetDebugModeRequest": {
1115
- "type": "I",
1116
- "fields": {
1117
- "enabled": {
1118
- "type": "boolean"
1119
- }
1120
- }
1121
- },
1122
- "pushwoosh.rpc_v2.accounts.SetDebugModeResponse": {
1123
- "type": "I",
1124
- "fields": {
1125
- "enabled": {
1126
- "type": "boolean"
1127
- },
1128
- "expireAt": {
1129
- "type": "Date"
1130
- }
1131
- }
1132
- },
1133
- "pushwoosh.rpc_v2.accounts.GetDebugModeRequest": {
1134
- "type": "I",
1135
- "fields": {}
1136
- },
1137
- "pushwoosh.rpc_v2.accounts.GetDebugModeResponse": {
1138
- "type": "I",
1139
- "fields": {
1140
- "enabled": {
1141
- "type": "boolean"
1142
- },
1143
- "expireAt": {
1144
- "type": "Date"
1145
- }
1146
- }
1147
- },
1148
1102
  "pushwoosh.rpc_v2.accounts.GetOnboardingInfoRequest": {
1149
1103
  "type": "I",
1150
1104
  "fields": {}
@@ -14861,6 +14815,10 @@ export const data = {
14861
14815
  },
14862
14816
  "campaign": {
14863
14817
  "type": "string"
14818
+ },
14819
+ "platforms": {
14820
+ "type": "number",
14821
+ "array": true
14864
14822
  }
14865
14823
  }
14866
14824
  },
package/events.d.ts CHANGED
@@ -228,6 +228,8 @@ export type GetTotalStatisticsRequest = {
228
228
  messageCode?: string;
229
229
  /** Campaign code to attribute event triggers to a whole campaign. */
230
230
  campaign?: string;
231
+ /** Platform ids to count events on; empty counts every platform. */
232
+ platforms?: number[];
231
233
  };
232
234
  export type GetTotalStatisticsResponse_EventTriggeredCount = {
233
235
  event: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.357",
3
+ "version": "0.2.359",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -817,6 +817,7 @@ export type ExportMessageEventTriggeredDevicesArgs = {
817
817
  application: string;
818
818
  dateFrom: Date;
819
819
  dateTo: Date;
820
+ platforms: number[];
820
821
  };
821
822
  export type ExportMessageEventTriggeredDevicesResult = {
822
823
  file: string;
@@ -1148,3 +1149,14 @@ export type ExportUnifiedMessagesResult = {
1148
1149
  /** Ready-to-use download URL for `file`; empty when the service has no base URL configured. */
1149
1150
  fileUrl: string;
1150
1151
  };
1152
+ export type CountControlGroupRequest = {
1153
+ application: string;
1154
+ /** empty is the application's global group */
1155
+ controlGroup: string;
1156
+ };
1157
+ export type CountControlGroupResponse = {
1158
+ /** users in the group's scope: the application narrowed to its countries and tag */
1159
+ totalUsers: number;
1160
+ /** of those, the users the group holds out */
1161
+ controlGroupUsers: number;
1162
+ };