@pushwoosh/rpc-v2-http-api-data 0.1.844 → 0.1.846

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/data.js CHANGED
@@ -20973,6 +20973,331 @@ export const data = {
20973
20973
  }
20974
20974
  }
20975
20975
  },
20976
+ "pushwoosh.rpc_v2.popup_forms.PopupFormsService": {
20977
+ "type": "S",
20978
+ "key": "popupForms",
20979
+ "methods": {
20980
+ "List": {
20981
+ "request": "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest",
20982
+ "response": "pushwoosh.rpc_v2.popup_forms.ListPopupFormsResponse",
20983
+ "method": "get",
20984
+ "path": "/api/popup_forms"
20985
+ },
20986
+ "Get": {
20987
+ "request": "pushwoosh.rpc_v2.popup_forms.GetPopupFormRequest",
20988
+ "response": "pushwoosh.rpc_v2.popup_forms.GetPopupFormResponse",
20989
+ "method": "get",
20990
+ "path": "/api/popup_forms/{code}"
20991
+ },
20992
+ "Delete": {
20993
+ "request": "pushwoosh.rpc_v2.popup_forms.DeletePopupFormRequest",
20994
+ "response": "pushwoosh.rpc_v2.popup_forms.DeletePopupFormResponse",
20995
+ "method": "delete",
20996
+ "path": "/api/popup_forms/{code}"
20997
+ },
20998
+ "Create": {
20999
+ "request": "pushwoosh.rpc_v2.popup_forms.CreatePopupFormRequest",
21000
+ "response": "pushwoosh.rpc_v2.popup_forms.CreatePopupFormResponse",
21001
+ "method": "post",
21002
+ "path": "/api/popup_forms:create"
21003
+ },
21004
+ "Update": {
21005
+ "request": "pushwoosh.rpc_v2.popup_forms.UpdatePopupFormRequest",
21006
+ "response": "pushwoosh.rpc_v2.popup_forms.UpdatePopupFormResponse",
21007
+ "method": "put",
21008
+ "path": "/api/popup_forms/{code}"
21009
+ },
21010
+ "Deactivate": {
21011
+ "request": "pushwoosh.rpc_v2.popup_forms.DeactivatePopupFormRequest",
21012
+ "response": "pushwoosh.rpc_v2.popup_forms.DeactivatePopupFormResponse",
21013
+ "method": "post",
21014
+ "path": "/api/popup_forms/{code}:deactivate"
21015
+ },
21016
+ "Activate": {
21017
+ "request": "pushwoosh.rpc_v2.popup_forms.ActivatePopupFormRequest",
21018
+ "response": "pushwoosh.rpc_v2.popup_forms.ActivatePopupFormResponse",
21019
+ "method": "post",
21020
+ "path": "/api/popup_forms/{code}:activate"
21021
+ }
21022
+ }
21023
+ },
21024
+ "pushwoosh.rpc_v2.popup_forms.PopupForm": {
21025
+ "type": "I",
21026
+ "fields": {
21027
+ "code": {
21028
+ "type": "string"
21029
+ },
21030
+ "name": {
21031
+ "type": "string"
21032
+ },
21033
+ "description": {
21034
+ "type": "string"
21035
+ },
21036
+ "status": {
21037
+ "type": "string"
21038
+ },
21039
+ "richMediaCode": {
21040
+ "type": "string"
21041
+ },
21042
+ "richMediaName": {
21043
+ "type": "string"
21044
+ },
21045
+ "deviceType": {
21046
+ "type": "string"
21047
+ },
21048
+ "visitorsType": {
21049
+ "type": "string"
21050
+ },
21051
+ "matchingPages": {
21052
+ "type": "string",
21053
+ "array": true
21054
+ },
21055
+ "delay": {
21056
+ "type": "number"
21057
+ },
21058
+ "frequency": {
21059
+ "type": "string"
21060
+ },
21061
+ "published": {
21062
+ "type": "Date"
21063
+ },
21064
+ "created": {
21065
+ "type": "Date"
21066
+ },
21067
+ "updated": {
21068
+ "type": "Date"
21069
+ }
21070
+ }
21071
+ },
21072
+ "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest.OrderBy": {
21073
+ "type": "E",
21074
+ "values": [
21075
+ "PUBLISHED",
21076
+ "NAME"
21077
+ ]
21078
+ },
21079
+ "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest.OrderDirection": {
21080
+ "type": "E",
21081
+ "values": [
21082
+ "DESC",
21083
+ "ASC"
21084
+ ]
21085
+ },
21086
+ "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest": {
21087
+ "type": "I",
21088
+ "fields": {
21089
+ "application": {
21090
+ "type": "string"
21091
+ },
21092
+ "search": {
21093
+ "type": "string"
21094
+ },
21095
+ "status": {
21096
+ "type": "string",
21097
+ "optional": true
21098
+ },
21099
+ "orderBy": {
21100
+ "type": "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest.OrderBy"
21101
+ },
21102
+ "orderDirection": {
21103
+ "type": "pushwoosh.rpc_v2.popup_forms.ListPopupFormsRequest.OrderDirection"
21104
+ },
21105
+ "page": {
21106
+ "type": "number"
21107
+ },
21108
+ "perPage": {
21109
+ "type": "number"
21110
+ }
21111
+ },
21112
+ "oneofs": {}
21113
+ },
21114
+ "pushwoosh.rpc_v2.popup_forms.PopupFormListItem": {
21115
+ "type": "I",
21116
+ "fields": {
21117
+ "code": {
21118
+ "type": "string"
21119
+ },
21120
+ "name": {
21121
+ "type": "string"
21122
+ },
21123
+ "description": {
21124
+ "type": "string"
21125
+ },
21126
+ "status": {
21127
+ "type": "string"
21128
+ },
21129
+ "visitors": {
21130
+ "type": "number"
21131
+ },
21132
+ "impressions": {
21133
+ "type": "number"
21134
+ },
21135
+ "updated": {
21136
+ "type": "Date"
21137
+ }
21138
+ }
21139
+ },
21140
+ "pushwoosh.rpc_v2.popup_forms.ListPopupFormsResponse": {
21141
+ "type": "I",
21142
+ "fields": {
21143
+ "popupForms": {
21144
+ "type": "pushwoosh.rpc_v2.popup_forms.PopupFormListItem",
21145
+ "array": true
21146
+ },
21147
+ "page": {
21148
+ "type": "number"
21149
+ },
21150
+ "perPage": {
21151
+ "type": "number"
21152
+ },
21153
+ "totalPages": {
21154
+ "type": "number"
21155
+ },
21156
+ "total": {
21157
+ "type": "number"
21158
+ }
21159
+ }
21160
+ },
21161
+ "pushwoosh.rpc_v2.popup_forms.GetPopupFormRequest": {
21162
+ "type": "I",
21163
+ "fields": {
21164
+ "code": {
21165
+ "type": "string"
21166
+ }
21167
+ }
21168
+ },
21169
+ "pushwoosh.rpc_v2.popup_forms.GetPopupFormResponse": {
21170
+ "type": "I",
21171
+ "fields": {
21172
+ "popupForm": {
21173
+ "type": "pushwoosh.rpc_v2.popup_forms.PopupForm"
21174
+ }
21175
+ }
21176
+ },
21177
+ "pushwoosh.rpc_v2.popup_forms.CreatePopupFormRequest": {
21178
+ "type": "I",
21179
+ "fields": {
21180
+ "application": {
21181
+ "type": "string"
21182
+ },
21183
+ "name": {
21184
+ "type": "string"
21185
+ },
21186
+ "description": {
21187
+ "type": "string",
21188
+ "optional": true
21189
+ },
21190
+ "richMediaCode": {
21191
+ "type": "string"
21192
+ },
21193
+ "deviceType": {
21194
+ "type": "string"
21195
+ },
21196
+ "visitorsType": {
21197
+ "type": "string"
21198
+ },
21199
+ "matchingPages": {
21200
+ "type": "string",
21201
+ "array": true
21202
+ },
21203
+ "delay": {
21204
+ "type": "number"
21205
+ },
21206
+ "frequency": {
21207
+ "type": "string"
21208
+ },
21209
+ "status": {
21210
+ "type": "string"
21211
+ }
21212
+ },
21213
+ "oneofs": {}
21214
+ },
21215
+ "pushwoosh.rpc_v2.popup_forms.CreatePopupFormResponse": {
21216
+ "type": "I",
21217
+ "fields": {
21218
+ "code": {
21219
+ "type": "string"
21220
+ }
21221
+ }
21222
+ },
21223
+ "pushwoosh.rpc_v2.popup_forms.UpdatePopupFormRequest": {
21224
+ "type": "I",
21225
+ "fields": {
21226
+ "code": {
21227
+ "type": "string"
21228
+ },
21229
+ "name": {
21230
+ "type": "string"
21231
+ },
21232
+ "description": {
21233
+ "type": "string",
21234
+ "optional": true
21235
+ },
21236
+ "richMediaCode": {
21237
+ "type": "string"
21238
+ },
21239
+ "deviceType": {
21240
+ "type": "string"
21241
+ },
21242
+ "visitorsType": {
21243
+ "type": "string"
21244
+ },
21245
+ "matchingPages": {
21246
+ "type": "string",
21247
+ "array": true
21248
+ },
21249
+ "delay": {
21250
+ "type": "number"
21251
+ },
21252
+ "frequency": {
21253
+ "type": "string"
21254
+ },
21255
+ "status": {
21256
+ "type": "string"
21257
+ }
21258
+ },
21259
+ "oneofs": {}
21260
+ },
21261
+ "pushwoosh.rpc_v2.popup_forms.UpdatePopupFormResponse": {
21262
+ "type": "I",
21263
+ "fields": {}
21264
+ },
21265
+ "pushwoosh.rpc_v2.popup_forms.DeletePopupFormRequest": {
21266
+ "type": "I",
21267
+ "fields": {
21268
+ "code": {
21269
+ "type": "string"
21270
+ }
21271
+ }
21272
+ },
21273
+ "pushwoosh.rpc_v2.popup_forms.DeletePopupFormResponse": {
21274
+ "type": "I",
21275
+ "fields": {}
21276
+ },
21277
+ "pushwoosh.rpc_v2.popup_forms.DeactivatePopupFormRequest": {
21278
+ "type": "I",
21279
+ "fields": {
21280
+ "code": {
21281
+ "type": "string"
21282
+ }
21283
+ }
21284
+ },
21285
+ "pushwoosh.rpc_v2.popup_forms.DeactivatePopupFormResponse": {
21286
+ "type": "I",
21287
+ "fields": {}
21288
+ },
21289
+ "pushwoosh.rpc_v2.popup_forms.ActivatePopupFormRequest": {
21290
+ "type": "I",
21291
+ "fields": {
21292
+ "code": {
21293
+ "type": "string"
21294
+ }
21295
+ }
21296
+ },
21297
+ "pushwoosh.rpc_v2.popup_forms.ActivatePopupFormResponse": {
21298
+ "type": "I",
21299
+ "fields": {}
21300
+ },
20976
21301
  "pushwoosh.rpc_v2.presets.presetsService": {
20977
21302
  "type": "S",
20978
21303
  "key": "presets",
package/index.d.ts CHANGED
@@ -40,6 +40,7 @@ import { MediaFilesService as pushwoosh_rpc_v2_media_files_MediaFilesService } f
40
40
  import { MessagesService as pushwoosh_rpc_v2_messages_MessagesService } from './messages';
41
41
  import { FiltersCrudService as pushwoosh_objects_filters_v1_FiltersCrudService } from './pushwoosh_objects_filters_v1';
42
42
  import { RestrictionValuesCrudService as pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService } from './pushwoosh_objects_restrictionValues_v1';
43
+ import { PopupFormsService as pushwoosh_rpc_v2_popup_forms_PopupFormsService } from './popup_forms';
43
44
  import { presetsService as pushwoosh_rpc_v2_presets_presetsService } from './presets';
44
45
  import { ReferralPartnerService as pushwoosh_rpc_v2_referral_partners_ReferralPartnerService } from './referral_partners';
45
46
  import { RestrictionsService as pushwoosh_rpc_v2_restrictions_RestrictionsService } from './restrictions';
@@ -100,6 +101,7 @@ export type API = {
100
101
  messages: pushwoosh_rpc_v2_messages_MessagesService;
101
102
  filtersCrud: pushwoosh_objects_filters_v1_FiltersCrudService;
102
103
  restrictionValuesCrud: pushwoosh_objects_restrictionValues_v1_RestrictionValuesCrudService;
104
+ popupForms: pushwoosh_rpc_v2_popup_forms_PopupFormsService;
103
105
  presets: pushwoosh_rpc_v2_presets_presetsService;
104
106
  referralPartner: pushwoosh_rpc_v2_referral_partners_ReferralPartnerService;
105
107
  restrictions: pushwoosh_rpc_v2_restrictions_RestrictionsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.844",
3
+ "version": "0.1.846",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,98 @@
1
+ export interface PopupFormsService {
2
+ List(request: ListPopupFormsRequest): Promise<ListPopupFormsResponse>;
3
+ Get(request: GetPopupFormRequest): Promise<GetPopupFormResponse>;
4
+ Delete(request: DeletePopupFormRequest): Promise<DeletePopupFormResponse>;
5
+ Create(request: CreatePopupFormRequest): Promise<CreatePopupFormResponse>;
6
+ Update(request: UpdatePopupFormRequest): Promise<UpdatePopupFormResponse>;
7
+ Deactivate(request: DeactivatePopupFormRequest): Promise<DeactivatePopupFormResponse>;
8
+ Activate(request: ActivatePopupFormRequest): Promise<ActivatePopupFormResponse>;
9
+ }
10
+ export type PopupForm = {
11
+ code: string;
12
+ name: string;
13
+ description: string;
14
+ status: string;
15
+ richMediaCode: string;
16
+ richMediaName: string;
17
+ deviceType: string;
18
+ visitorsType: string;
19
+ matchingPages: string[];
20
+ delay: number;
21
+ frequency: string;
22
+ published: Date;
23
+ created: Date;
24
+ updated: Date;
25
+ };
26
+ export type ListPopupFormsRequest_OrderBy = 'PUBLISHED' | 'NAME';
27
+ export type ListPopupFormsRequest_OrderDirection = 'DESC' | 'ASC';
28
+ export type ListPopupFormsRequest = {
29
+ application?: string;
30
+ search?: string;
31
+ status?: string;
32
+ orderBy?: ListPopupFormsRequest_OrderBy;
33
+ orderDirection?: ListPopupFormsRequest_OrderDirection;
34
+ page?: number;
35
+ perPage?: number;
36
+ };
37
+ export type PopupFormListItem = {
38
+ code: string;
39
+ name: string;
40
+ description: string;
41
+ status: string;
42
+ visitors: number;
43
+ impressions: number;
44
+ updated: Date;
45
+ };
46
+ export type ListPopupFormsResponse = {
47
+ popupForms: PopupFormListItem[];
48
+ page: number;
49
+ perPage: number;
50
+ totalPages: number;
51
+ total: number;
52
+ };
53
+ export type GetPopupFormRequest = {
54
+ code?: string;
55
+ };
56
+ export type GetPopupFormResponse = {
57
+ popupForm: PopupForm;
58
+ };
59
+ export type CreatePopupFormRequest = {
60
+ application?: string;
61
+ name?: string;
62
+ description?: string;
63
+ richMediaCode?: string;
64
+ deviceType?: string;
65
+ visitorsType?: string;
66
+ matchingPages?: string[];
67
+ delay?: number;
68
+ frequency?: string;
69
+ status?: string;
70
+ };
71
+ export type CreatePopupFormResponse = {
72
+ code: string;
73
+ };
74
+ export type UpdatePopupFormRequest = {
75
+ code?: string;
76
+ name?: string;
77
+ description?: string;
78
+ richMediaCode?: string;
79
+ deviceType?: string;
80
+ visitorsType?: string;
81
+ matchingPages?: string[];
82
+ delay?: number;
83
+ frequency?: string;
84
+ status?: string;
85
+ };
86
+ export type UpdatePopupFormResponse = {};
87
+ export type DeletePopupFormRequest = {
88
+ code?: string;
89
+ };
90
+ export type DeletePopupFormResponse = {};
91
+ export type DeactivatePopupFormRequest = {
92
+ code?: string;
93
+ };
94
+ export type DeactivatePopupFormResponse = {};
95
+ export type ActivatePopupFormRequest = {
96
+ code?: string;
97
+ };
98
+ export type ActivatePopupFormResponse = {};
package/popup_forms.js ADDED
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};