@pushwoosh/rpc-v2-http-api-data 0.1.807 → 0.1.809

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.
@@ -49,7 +49,6 @@ export type Account = {
49
49
  campaignsCount: number;
50
50
  presetsCount: number;
51
51
  testDevicesCount: number;
52
- autoPushesCount: number;
53
52
  rssFeedsCount: number;
54
53
  inAppsCount: number;
55
54
  eventsCount: number;
package/data.js CHANGED
@@ -1958,9 +1958,6 @@ export const data = {
1958
1958
  "testDevicesCount": {
1959
1959
  "type": "number"
1960
1960
  },
1961
- "autoPushesCount": {
1962
- "type": "number"
1963
- },
1964
1961
  "rssFeedsCount": {
1965
1962
  "type": "number"
1966
1963
  },
@@ -3958,282 +3955,6 @@ export const data = {
3958
3955
  }
3959
3956
  }
3960
3957
  },
3961
- "pushwoosh.rpc_v2.autopushes.AutopushesService": {
3962
- "type": "S",
3963
- "key": "autopushes",
3964
- "methods": {
3965
- "List": {
3966
- "request": "pushwoosh.rpc_v2.autopushes.ListRequest",
3967
- "response": "pushwoosh.rpc_v2.autopushes.ListResponse",
3968
- "method": "get",
3969
- "path": "/api/autopushes"
3970
- },
3971
- "Delete": {
3972
- "request": "pushwoosh.rpc_v2.autopushes.DeleteRequest",
3973
- "response": "pushwoosh.rpc_v2.autopushes.DeleteResponse",
3974
- "method": "delete",
3975
- "path": "/api/autopushes/{code}"
3976
- },
3977
- "Get": {
3978
- "request": "pushwoosh.rpc_v2.autopushes.GetRequest",
3979
- "response": "pushwoosh.rpc_v2.autopushes.GetResponse",
3980
- "method": "get",
3981
- "path": "/api/autopushes/{application}/{code}"
3982
- },
3983
- "Create": {
3984
- "request": "pushwoosh.rpc_v2.autopushes.CreateRequest",
3985
- "response": "pushwoosh.rpc_v2.autopushes.CreateResponse",
3986
- "method": "post",
3987
- "path": "/api/autopushes"
3988
- },
3989
- "Update": {
3990
- "request": "pushwoosh.rpc_v2.autopushes.UpdateRequest",
3991
- "response": "pushwoosh.rpc_v2.autopushes.UpdateResponse",
3992
- "method": "put",
3993
- "path": "/api/autopushes/{code}"
3994
- }
3995
- }
3996
- },
3997
- "pushwoosh.rpc_v2.autopushes.Schedule": {
3998
- "type": "I",
3999
- "fields": {
4000
- "stopSendDate": {
4001
- "type": "Date"
4002
- },
4003
- "time": {
4004
- "type": "string"
4005
- },
4006
- "daysOfWeek": {
4007
- "type": "string",
4008
- "array": true
4009
- },
4010
- "daysOfMonth": {
4011
- "type": "string",
4012
- "array": true
4013
- }
4014
- }
4015
- },
4016
- "pushwoosh.rpc_v2.autopushes.Capping": {
4017
- "type": "I",
4018
- "fields": {
4019
- "count": {
4020
- "type": "number"
4021
- },
4022
- "days": {
4023
- "type": "number"
4024
- }
4025
- }
4026
- },
4027
- "pushwoosh.rpc_v2.autopushes.Autopush": {
4028
- "type": "I",
4029
- "fields": {
4030
- "code": {
4031
- "type": "string"
4032
- },
4033
- "name": {
4034
- "type": "string"
4035
- },
4036
- "description": {
4037
- "type": "string"
4038
- },
4039
- "preset": {
4040
- "type": "string"
4041
- },
4042
- "filter": {
4043
- "type": "string"
4044
- },
4045
- "application": {
4046
- "type": "string"
4047
- },
4048
- "campaign": {
4049
- "type": "string"
4050
- },
4051
- "useUserTimezone": {
4052
- "type": "boolean"
4053
- },
4054
- "content": {
4055
- "type": "string"
4056
- },
4057
- "schedule": {
4058
- "type": "pushwoosh.rpc_v2.autopushes.Schedule"
4059
- },
4060
- "capping": {
4061
- "type": "pushwoosh.rpc_v2.autopushes.Capping"
4062
- },
4063
- "created": {
4064
- "type": "Date"
4065
- }
4066
- }
4067
- },
4068
- "pushwoosh.rpc_v2.autopushes.ListRequest.OrderBy": {
4069
- "type": "E",
4070
- "values": [
4071
- "NAME",
4072
- "CREATED"
4073
- ]
4074
- },
4075
- "pushwoosh.rpc_v2.autopushes.ListRequest.OrderDirection": {
4076
- "type": "E",
4077
- "values": [
4078
- "ASC",
4079
- "DESC"
4080
- ]
4081
- },
4082
- "pushwoosh.rpc_v2.autopushes.ListRequest": {
4083
- "type": "I",
4084
- "fields": {
4085
- "application": {
4086
- "type": "string"
4087
- },
4088
- "page": {
4089
- "type": "number"
4090
- },
4091
- "perPage": {
4092
- "type": "number"
4093
- },
4094
- "orderBy": {
4095
- "type": "pushwoosh.rpc_v2.autopushes.ListRequest.OrderBy"
4096
- },
4097
- "orderDirection": {
4098
- "type": "pushwoosh.rpc_v2.autopushes.ListRequest.OrderDirection"
4099
- },
4100
- "searchByName": {
4101
- "type": "string"
4102
- },
4103
- "searchByCode": {
4104
- "type": "string"
4105
- }
4106
- }
4107
- },
4108
- "pushwoosh.rpc_v2.autopushes.ListResponse": {
4109
- "type": "I",
4110
- "fields": {
4111
- "autopushes": {
4112
- "type": "pushwoosh.rpc_v2.autopushes.Autopush",
4113
- "array": true
4114
- },
4115
- "page": {
4116
- "type": "number"
4117
- },
4118
- "perPage": {
4119
- "type": "number"
4120
- },
4121
- "total": {
4122
- "type": "number"
4123
- }
4124
- }
4125
- },
4126
- "pushwoosh.rpc_v2.autopushes.DeleteRequest": {
4127
- "type": "I",
4128
- "fields": {
4129
- "code": {
4130
- "type": "string"
4131
- }
4132
- }
4133
- },
4134
- "pushwoosh.rpc_v2.autopushes.DeleteResponse": {
4135
- "type": "I",
4136
- "fields": {}
4137
- },
4138
- "pushwoosh.rpc_v2.autopushes.GetRequest": {
4139
- "type": "I",
4140
- "fields": {
4141
- "code": {
4142
- "type": "string"
4143
- },
4144
- "application": {
4145
- "type": "string"
4146
- }
4147
- }
4148
- },
4149
- "pushwoosh.rpc_v2.autopushes.GetResponse": {
4150
- "type": "I",
4151
- "fields": {
4152
- "autopush": {
4153
- "type": "pushwoosh.rpc_v2.autopushes.Autopush"
4154
- }
4155
- }
4156
- },
4157
- "pushwoosh.rpc_v2.autopushes.CreateRequest": {
4158
- "type": "I",
4159
- "fields": {
4160
- "name": {
4161
- "type": "string"
4162
- },
4163
- "description": {
4164
- "type": "string"
4165
- },
4166
- "preset": {
4167
- "type": "string"
4168
- },
4169
- "filter": {
4170
- "type": "string"
4171
- },
4172
- "application": {
4173
- "type": "string"
4174
- },
4175
- "campaign": {
4176
- "type": "string"
4177
- },
4178
- "useUserTimezone": {
4179
- "type": "boolean"
4180
- },
4181
- "schedule": {
4182
- "type": "pushwoosh.rpc_v2.autopushes.Schedule"
4183
- },
4184
- "capping": {
4185
- "type": "pushwoosh.rpc_v2.autopushes.Capping"
4186
- }
4187
- }
4188
- },
4189
- "pushwoosh.rpc_v2.autopushes.CreateResponse": {
4190
- "type": "I",
4191
- "fields": {
4192
- "autopush": {
4193
- "type": "pushwoosh.rpc_v2.autopushes.Autopush"
4194
- }
4195
- }
4196
- },
4197
- "pushwoosh.rpc_v2.autopushes.UpdateRequest": {
4198
- "type": "I",
4199
- "fields": {
4200
- "code": {
4201
- "type": "string"
4202
- },
4203
- "name": {
4204
- "type": "string"
4205
- },
4206
- "description": {
4207
- "type": "string"
4208
- },
4209
- "preset": {
4210
- "type": "string"
4211
- },
4212
- "filter": {
4213
- "type": "string"
4214
- },
4215
- "campaign": {
4216
- "type": "string"
4217
- },
4218
- "useUserTimezone": {
4219
- "type": "boolean"
4220
- },
4221
- "schedule": {
4222
- "type": "pushwoosh.rpc_v2.autopushes.Schedule"
4223
- },
4224
- "capping": {
4225
- "type": "pushwoosh.rpc_v2.autopushes.Capping"
4226
- }
4227
- }
4228
- },
4229
- "pushwoosh.rpc_v2.autopushes.UpdateResponse": {
4230
- "type": "I",
4231
- "fields": {
4232
- "autopush": {
4233
- "type": "pushwoosh.rpc_v2.autopushes.Autopush"
4234
- }
4235
- }
4236
- },
4237
3958
  "pushwoosh.rpc_v2.campaigns.CampaignsService": {
4238
3959
  "type": "S",
4239
3960
  "key": "campaigns",
@@ -12053,6 +11774,12 @@ export const data = {
12053
11774
  "response": "pushwoosh.rpc_v2.messages.GetDeviceReceivedMessagesResponse",
12054
11775
  "method": "post",
12055
11776
  "path": "/api/messages/getDeviceReceivedMessages"
11777
+ },
11778
+ "GetDevicesList": {
11779
+ "request": "pushwoosh.rpc_v2.messages.GetDevicesListRequest",
11780
+ "response": "pushwoosh.rpc_v2.messages.GetDevicesListResponse",
11781
+ "method": "post",
11782
+ "path": "/api/messages/getDevicesList"
12056
11783
  }
12057
11784
  }
12058
11785
  },
@@ -12629,6 +12356,23 @@ export const data = {
12629
12356
  }
12630
12357
  }
12631
12358
  },
12359
+ "pushwoosh.rpc_v2.messages.GetDevicesListRequest": {
12360
+ "type": "I",
12361
+ "fields": {
12362
+ "messageCode": {
12363
+ "type": "string"
12364
+ }
12365
+ }
12366
+ },
12367
+ "pushwoosh.rpc_v2.messages.GetDevicesListResponse": {
12368
+ "type": "I",
12369
+ "fields": {
12370
+ "devices": {
12371
+ "type": "string",
12372
+ "array": true
12373
+ }
12374
+ }
12375
+ },
12632
12376
  "pushwoosh.objects.filters.v1.__filter_collection_internal": {
12633
12377
  "type": "I",
12634
12378
  "fields": {
@@ -23898,20 +23642,6 @@ export const data = {
23898
23642
  }
23899
23643
  }
23900
23644
  },
23901
- "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Autopush": {
23902
- "type": "I",
23903
- "fields": {
23904
- "code": {
23905
- "type": "string"
23906
- },
23907
- "name": {
23908
- "type": "string"
23909
- },
23910
- "status": {
23911
- "type": "boolean"
23912
- }
23913
- }
23914
- },
23915
23645
  "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Filter": {
23916
23646
  "type": "I",
23917
23647
  "fields": {
@@ -23934,10 +23664,6 @@ export const data = {
23934
23664
  "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Inapp",
23935
23665
  "array": true
23936
23666
  },
23937
- "autopushes": {
23938
- "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Autopush",
23939
- "array": true
23940
- },
23941
23667
  "filters": {
23942
23668
  "type": "pushwoosh.rpc_v2.tags.GetTagUsageResponse.Filter",
23943
23669
  "array": true
package/index.d.ts CHANGED
@@ -14,7 +14,6 @@ import { ApplicationsConfigurationsService as pushwoosh_rpc_v2_applications_conf
14
14
  import { ApplicationsGroupsService as pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService } from './applications_groups';
15
15
  import { ApplicationsInfoService as pushwoosh_rpc_v2_applications_info_ApplicationsInfoService } from './applications_info';
16
16
  import { ApplicationsStatisticsService as pushwoosh_rpc_v2_applications_statistics_ApplicationsStatisticsService } from './applications_statistics';
17
- import { AutopushesService as pushwoosh_rpc_v2_autopushes_AutopushesService } from './autopushes';
18
17
  import { CampaignsService as pushwoosh_rpc_v2_campaigns_CampaignsService } from './campaigns';
19
18
  import { CategoriesService as pushwoosh_rpc_v2_categories_CategoriesService } from './categories';
20
19
  import { MessagingService as pushwoosh_channels_messagingApi_v2_MessagingService } from './pushwoosh_channels_messagingApi_v2';
@@ -74,7 +73,6 @@ export type API = {
74
73
  applicationsGroups: pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService;
75
74
  applicationsInfo: pushwoosh_rpc_v2_applications_info_ApplicationsInfoService;
76
75
  applicationsStatistics: pushwoosh_rpc_v2_applications_statistics_ApplicationsStatisticsService;
77
- autopushes: pushwoosh_rpc_v2_autopushes_AutopushesService;
78
76
  campaigns: pushwoosh_rpc_v2_campaigns_CampaignsService;
79
77
  categories: pushwoosh_rpc_v2_categories_CategoriesService;
80
78
  messaging: pushwoosh_channels_messagingApi_v2_MessagingService;
package/messages.d.ts CHANGED
@@ -8,6 +8,7 @@ export interface MessagesService {
8
8
  GetDeliveryReport(request: GetDeliveryReportRequest): Promise<GetDeliveryReportResponse>;
9
9
  FindRecipients(request: FindRecipientsRequest): Promise<FindRecipientsResponse>;
10
10
  GetDeviceReceivedMessages(request: GetDeviceReceivedMessagesRequest): Promise<GetDeviceReceivedMessagesResponse>;
11
+ GetDevicesList(request: GetDevicesListRequest): Promise<GetDevicesListResponse>;
11
12
  }
12
13
  export type Type = 'All' | 'Push' | 'Email';
13
14
  export type PushInfo = {
@@ -192,3 +193,9 @@ export type GetDeviceReceivedMessagesResponse_Message = {
192
193
  export type GetDeviceReceivedMessagesResponse = {
193
194
  messages: GetDeviceReceivedMessagesResponse_Message[];
194
195
  };
196
+ export type GetDevicesListRequest = {
197
+ messageCode?: string;
198
+ };
199
+ export type GetDevicesListResponse = {
200
+ devices: string[];
201
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.807",
3
+ "version": "0.1.809",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/tags.d.ts CHANGED
@@ -84,11 +84,6 @@ export type GetTagUsageResponse_Inapp = {
84
84
  name: string;
85
85
  status: string;
86
86
  };
87
- export type GetTagUsageResponse_Autopush = {
88
- code: string;
89
- name: string;
90
- status: boolean;
91
- };
92
87
  export type GetTagUsageResponse_Filter = {
93
88
  code: string;
94
89
  name: string;
@@ -96,6 +91,5 @@ export type GetTagUsageResponse_Filter = {
96
91
  export type GetTagUsageResponse = {
97
92
  journeys: GetTagUsageResponse_Journey[];
98
93
  inapps: GetTagUsageResponse_Inapp[];
99
- autopushes: GetTagUsageResponse_Autopush[];
100
94
  filters: GetTagUsageResponse_Filter[];
101
95
  };
package/autopushes.d.ts DELETED
@@ -1,87 +0,0 @@
1
- export interface AutopushesService {
2
- List(request: ListRequest): Promise<ListResponse>;
3
- Delete(request: DeleteRequest): Promise<DeleteResponse>;
4
- Get(request: GetRequest): Promise<GetResponse>;
5
- Create(request: CreateRequest): Promise<CreateResponse>;
6
- Update(request: UpdateRequest): Promise<UpdateResponse>;
7
- }
8
- export type Schedule = {
9
- stopSendDate: Date;
10
- time: string;
11
- daysOfWeek: string[];
12
- daysOfMonth: string[];
13
- };
14
- export type Capping = {
15
- count: number;
16
- days: number;
17
- };
18
- export type Autopush = {
19
- code: string;
20
- name: string;
21
- description: string;
22
- preset: string;
23
- filter: string;
24
- application: string;
25
- campaign: string;
26
- useUserTimezone: boolean;
27
- content: string;
28
- schedule: Schedule;
29
- capping: Capping;
30
- created: Date;
31
- };
32
- export type ListRequest_OrderBy = 'NAME' | 'CREATED';
33
- export type ListRequest_OrderDirection = 'ASC' | 'DESC';
34
- export type ListRequest = {
35
- application?: string;
36
- page?: number;
37
- perPage?: number;
38
- orderBy?: ListRequest_OrderBy;
39
- orderDirection?: ListRequest_OrderDirection;
40
- searchByName?: string;
41
- searchByCode?: string;
42
- };
43
- export type ListResponse = {
44
- autopushes: Autopush[];
45
- page: number;
46
- perPage: number;
47
- total: number;
48
- };
49
- export type DeleteRequest = {
50
- code?: string;
51
- };
52
- export type DeleteResponse = {};
53
- export type GetRequest = {
54
- code?: string;
55
- application?: string;
56
- };
57
- export type GetResponse = {
58
- autopush: Autopush;
59
- };
60
- export type CreateRequest = {
61
- name?: string;
62
- description?: string;
63
- preset?: string;
64
- filter?: string;
65
- application?: string;
66
- campaign?: string;
67
- useUserTimezone?: boolean;
68
- schedule?: Schedule;
69
- capping?: Capping;
70
- };
71
- export type CreateResponse = {
72
- autopush: Autopush;
73
- };
74
- export type UpdateRequest = {
75
- code?: string;
76
- name?: string;
77
- description?: string;
78
- preset?: string;
79
- filter?: string;
80
- campaign?: string;
81
- useUserTimezone?: boolean;
82
- schedule?: Schedule;
83
- capping?: Capping;
84
- };
85
- export type UpdateResponse = {
86
- autopush: Autopush;
87
- };
package/autopushes.js DELETED
@@ -1,2 +0,0 @@
1
- /* eslint-disable */
2
- export {};