@pushwoosh/rpc-v2-http-api-data 0.1.883 → 0.1.885

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.
Files changed (45) hide show
  1. package/account_groups.d.ts +9 -0
  2. package/account_invites.d.ts +2 -0
  3. package/account_overview.d.ts +21 -0
  4. package/account_users.d.ts +3 -0
  5. package/accounts.d.ts +29 -0
  6. package/accounts_get_auth_info.d.ts +4 -0
  7. package/api_tokens.d.ts +1 -0
  8. package/applications.d.ts +7 -0
  9. package/applications_alerts.d.ts +7 -1
  10. package/applications_groups.d.ts +2 -0
  11. package/applications_statistics.d.ts +28 -0
  12. package/categories.d.ts +1 -0
  13. package/cloud_pages.d.ts +2 -0
  14. package/data.js +330 -1314
  15. package/deeplinks.d.ts +3 -0
  16. package/devices.d.ts +5 -0
  17. package/email_categories.d.ts +3 -0
  18. package/emails_configurations.d.ts +1 -0
  19. package/events.d.ts +3 -0
  20. package/filters.d.ts +28 -0
  21. package/inapp_messages.d.ts +13 -0
  22. package/integrations.d.ts +38 -0
  23. package/ios_categories.d.ts +1 -0
  24. package/kakao_presets.d.ts +2 -0
  25. package/line_presets.d.ts +5 -0
  26. package/messages.d.ts +15 -2
  27. package/package.json +1 -1
  28. package/presets.d.ts +71 -0
  29. package/pushwoosh_accounts_alerts_v1.d.ts +2 -0
  30. package/pushwoosh_channels_messagingApi_v2.d.ts +51 -2
  31. package/pushwoosh_export_messages_v2.d.ts +17 -2
  32. package/pushwoosh_objects_filters_v1.d.ts +70 -11
  33. package/pushwoosh_objects_restrictionValues_v1.d.ts +86 -427
  34. package/pushwoosh_rpc_errors_v3.d.ts +20 -0
  35. package/pushwoosh_rpc_popup_forms_contents_v3.d.ts +48 -0
  36. package/pushwoosh_rpc_segments_v3.d.ts +54 -0
  37. package/referral_partners.d.ts +1 -0
  38. package/rich_medias.d.ts +6 -0
  39. package/sms_presets.d.ts +5 -0
  40. package/statistics_dashboards_widgets.d.ts +291 -3
  41. package/tags.d.ts +3 -0
  42. package/test_devices.d.ts +37 -0
  43. package/types.d.ts +6 -0
  44. package/whatsapp.d.ts +10 -0
  45. package/whatsapp_presets.d.ts +3 -0
package/deeplinks.d.ts CHANGED
@@ -19,6 +19,7 @@ export type ListDeeplinksRequest = {
19
19
  orderDirection?: ListDeeplinksRequest_OrderDirection;
20
20
  page?: number;
21
21
  perPage?: number;
22
+ /** like %name% */
22
23
  searchByName?: string;
23
24
  };
24
25
  export type Deeplink = {
@@ -43,7 +44,9 @@ export type GetDeeplinkResponse = {
43
44
  export type CreateDeeplinkRequest = {
44
45
  application?: string;
45
46
  name?: string;
47
+ /** template text */
46
48
  template?: string;
49
+ /** whether deeplink is system */
47
50
  system?: boolean;
48
51
  };
49
52
  export type CreateDeeplinkResponse = {
package/devices.d.ts CHANGED
@@ -1,13 +1,18 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type DevicesService_SetTags = RpcMethod<SetTagsRequest, SetTagsResponse>;
3
3
  export interface DevicesService {
4
+ /** Set tags for existing device or user */
4
5
  SetTags: DevicesService_SetTags;
5
6
  }
6
7
  export type SetTagsRequest = {
8
+ /** application code */
7
9
  application?: string;
10
+ /** device or user hwid */
8
11
  hwid?: string;
12
+ /** to remove tag value, send empty string or null */
9
13
  tags?: object;
10
14
  };
11
15
  export type SetTagsResponse = {
16
+ /** map<string, value>, value -- string, []string */
12
17
  tags: object;
13
18
  };
@@ -61,6 +61,7 @@ export type DeleteRequest = {
61
61
  code?: string;
62
62
  };
63
63
  export type DeleteResponse = {};
64
+ /** only 20 categories is allowed per application */
64
65
  export type ListRequest = {
65
66
  application?: string;
66
67
  };
@@ -79,4 +80,6 @@ export type InfoRequest = {
79
80
  };
80
81
  export type InfoResponse = {
81
82
  subscribedUsers: Record<string, number>;
83
+ isSubscribeOldInProgress: boolean;
84
+ subscribeOldInProgressPercent: number;
82
85
  };
@@ -51,6 +51,7 @@ export type DeleteDomainRequest = {
51
51
  };
52
52
  export type DeleteDomainResponse = {};
53
53
  export type GetCustomTrackingDomainRequest = {
54
+ /** application code */
54
55
  application?: string;
55
56
  };
56
57
  export type GetCustomTrackingDomainResponse = {
package/events.d.ts CHANGED
@@ -39,6 +39,7 @@ export type ListEventsRequest_OrderBy = 'NAME' | 'CREATED';
39
39
  export type ListEventsRequest_OrderDirection = 'ASC' | 'DESC';
40
40
  export type ListEventsRequest = {
41
41
  application?: string;
42
+ /** like %name% */
42
43
  searchByName?: string;
43
44
  orderBy?: ListEventsRequest_OrderBy;
44
45
  orderDirection?: ListEventsRequest_OrderDirection;
@@ -64,7 +65,9 @@ export type CreateEventResponse = {
64
65
  export type UpdateEventRequest = {
65
66
  name?: string;
66
67
  application?: string;
68
+ /** new description */
67
69
  description?: string;
70
+ /** new event attributes */
68
71
  attributes?: EventAttribute[];
69
72
  };
70
73
  export type UpdateEventResponse = {};
package/filters.d.ts CHANGED
@@ -34,17 +34,22 @@ export type ListFiltersRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
34
34
  export type ListFiltersRequest_OrderDirection = 'ASC' | 'DESC';
35
35
  export type ListFiltersRequest = {
36
36
  application?: string;
37
+ /** like %name% */
37
38
  searchByName?: string;
39
+ /** return only high speed filters */
38
40
  highSpeedOnly?: boolean;
39
41
  codes?: string[];
40
42
  orderBy?: ListFiltersRequest_OrderBy;
41
43
  orderDirection?: ListFiltersRequest_OrderDirection;
44
+ /** pagination */
42
45
  page?: number;
43
46
  perPage?: number;
44
47
  };
45
48
  export type DeviceLoadPolicy = 'FILTER' | 'ALL';
46
49
  export type Filter_Compiling = {
50
+ /** all devices count */
47
51
  size: number;
52
+ /** with push tokens */
48
53
  reachable: number;
49
54
  calculationStatus: string;
50
55
  calculationProgress: number;
@@ -74,11 +79,19 @@ export type Filter = {
74
79
  code: string;
75
80
  filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
76
81
  seglang: string;
82
+ /** application for highspeed filter */
77
83
  highspeedApplication: string;
84
+ /** whether highspeed filter is ready for use */
78
85
  highspeedReady: boolean;
86
+ /** total amount of push tokens in highspeed filter */
79
87
  highspeedSubscribersTotal: number;
80
88
  hasRightAceModify: boolean;
81
89
  updated: Date;
90
+ /**
91
+ * what devices should be loaded while iterating over the filter
92
+ * filter - only devices matching the filter
93
+ * all - all user's devices
94
+ */
82
95
  deviceLoadPolicy: DeviceLoadPolicy;
83
96
  isSystem: boolean;
84
97
  type: Filter_type;
@@ -97,8 +110,18 @@ export type GetFilterRequest = {
97
110
  export type CreateFilterRequest = {
98
111
  name?: string;
99
112
  filterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
113
+ /** application for high speed filter */
100
114
  highspeedApplication?: string;
115
+ /**
116
+ * expiration date. filter will be deleted after this date(in UTC time).
117
+ * format: YYYY-MM-DD
118
+ */
101
119
  expirationDate?: string;
120
+ /**
121
+ * what devices should be loaded while iterating over the filter
122
+ * filter - only devices matching the filter
123
+ * all - all user's devices
124
+ */
102
125
  deviceLoadPolicy?: DeviceLoadPolicy;
103
126
  };
104
127
  export type CreateFilterResponse = {
@@ -122,10 +145,13 @@ export type DeleteFilterRequest = {
122
145
  filter?: string;
123
146
  };
124
147
  export type DeleteFilterResponse = {};
148
+ /** returns cities and their coordinates for the given country based on existing tag (City) values */
125
149
  export type GetCountryCitiesRequest = {
150
+ /** like %search_by_name% */
126
151
  searchByName?: string;
127
152
  };
128
153
  export type GetCountryCitiesResponse_City = {
154
+ /** country code, city name (ex: us,new york) */
129
155
  hash: string;
130
156
  name: string;
131
157
  latitude: number;
@@ -135,6 +161,7 @@ export type GetCountryCitiesResponse_City = {
135
161
  export type GetCountryCitiesResponse = {
136
162
  cities: GetCountryCitiesResponse_City[];
137
163
  };
164
+ /** returns cities coordinates by cities hashes (country code, city name) */
138
165
  export type GetCitiesByHashesRequest = {
139
166
  hashes?: string[];
140
167
  };
@@ -164,6 +191,7 @@ export type GetMatchedSegmentsRequest = {
164
191
  hwid?: string;
165
192
  page?: number;
166
193
  perPage?: number;
194
+ /** like %name% */
167
195
  searchByName?: string;
168
196
  };
169
197
  export type GetMatchedSegmentsResponse = {
@@ -19,11 +19,13 @@ export type ListInappMessagesRequest_OrderBy = 'CREATED' | 'NAME' | 'UPDATED';
19
19
  export type ListInappMessagesRequest_OrderDirection = 'DESC' | 'ASC';
20
20
  export type ListInappMessagesRequest = {
21
21
  application?: string;
22
+ /** like %name% or %code% */
22
23
  search?: string;
23
24
  page?: number;
24
25
  perPage?: number;
25
26
  orderBy?: ListInappMessagesRequest_OrderBy;
26
27
  orderDirection?: ListInappMessagesRequest_OrderDirection;
28
+ /** filter by statuses, empty means all */
27
29
  statuses?: Inapp_Status[];
28
30
  };
29
31
  export type Inapp_Status = 'UNDEFINED' | 'ACTIVE' | 'SCHEDULED' | 'COMPLETED' | 'DRAFT' | 'STOPPED';
@@ -68,18 +70,24 @@ export type DeleteInappMessageRequest = {
68
70
  };
69
71
  export type DeleteInappMessageResponse = {};
70
72
  export type CreateInappRequest_Action = 'SAVE_DRAFT' | 'PUBLISH';
73
+ /** Create - create new inapp (draft or active based on action) */
71
74
  export type CreateInappRequest = {
72
75
  application?: string;
73
76
  action?: CreateInappRequest_Action;
74
77
  name?: string;
75
78
  description?: string;
76
79
  required?: boolean;
80
+ /** required for PUBLISH */
77
81
  richMediaCode?: string;
78
82
  filterName?: string;
79
83
  filterCode?: string;
84
+ /** JSON */
80
85
  segment?: string;
86
+ /** required for PUBLISH (either event_id or event_name) */
81
87
  eventId?: number;
88
+ /** required for PUBLISH (either event_id or event_name) */
82
89
  eventName?: string;
90
+ /** JSON */
83
91
  devicesFilter?: string;
84
92
  startDate?: Date;
85
93
  endDate?: Date;
@@ -88,6 +96,7 @@ export type CreateInappResponse = {
88
96
  code: string;
89
97
  };
90
98
  export type UpdateInappRequest_Action = 'UNKNOWN' | 'SAVE_DRAFT' | 'PUBLISH';
99
+ /** Update - update existing inapp (both draft and active) */
91
100
  export type UpdateInappRequest = {
92
101
  code?: string;
93
102
  name?: string;
@@ -96,9 +105,11 @@ export type UpdateInappRequest = {
96
105
  richMediaCode?: string;
97
106
  filterName?: string;
98
107
  filterCode?: string;
108
+ /** JSON */
99
109
  segment?: string;
100
110
  eventId?: number;
101
111
  eventName?: string;
112
+ /** JSON */
102
113
  devicesFilter?: string;
103
114
  startDate?: Date;
104
115
  endDate?: Date;
@@ -106,12 +117,14 @@ export type UpdateInappRequest = {
106
117
  action?: UpdateInappRequest_Action;
107
118
  };
108
119
  export type UpdateInappResponse = {};
120
+ /** Stop - convert active inapp to draft */
109
121
  export type StopInappRequest = {
110
122
  code?: string;
111
123
  };
112
124
  export type StopInappResponse = {
113
125
  code: string;
114
126
  };
127
+ /** Publish - convert draft inapp to active with validation */
115
128
  export type PublishInappRequest = {
116
129
  code?: string;
117
130
  };
package/integrations.d.ts CHANGED
@@ -23,20 +23,29 @@ export type IntegrationsService_ListMetaAdAccounts = RpcMethod<ListMetaAdAccount
23
23
  export type IntegrationsService_ConnectMetaAdAccounts = RpcMethod<ConnectMetaAdAccountsRequest, ConnectMetaAdAccountsResponse>;
24
24
  export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
25
25
  export interface IntegrationsService {
26
+ /** lists configuration for each output integration (declared in Integration enums) */
26
27
  ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
28
+ /** webhook */
27
29
  GetWebhookConfiguration: IntegrationsService_GetWebhookConfiguration;
28
30
  CreateWebhookConfiguration: IntegrationsService_CreateWebhookConfiguration;
31
+ /** segment */
29
32
  GetSegmentConfiguration: IntegrationsService_GetSegmentConfiguration;
30
33
  CreateSegmentConfiguration: IntegrationsService_CreateSegmentConfiguration;
34
+ /** piano */
31
35
  GetPianoConfiguration: IntegrationsService_GetPianoConfiguration;
32
36
  CreatePianoConfiguration: IntegrationsService_CreatePianoConfiguration;
37
+ /** available only for piano to importing segments from piano to PW */
33
38
  ImportSegmentPiano: IntegrationsService_ImportSegmentPiano;
39
+ /** hubspot */
34
40
  GetHubspotConfiguration: IntegrationsService_GetHubspotConfiguration;
41
+ /** shopify */
35
42
  GetShopifyConfiguration: IntegrationsService_GetShopifyConfiguration;
43
+ /** stripe */
36
44
  GetStripeAuthURL: IntegrationsService_GetStripeAuthURL;
37
45
  HandleStripeAuthCallback: IntegrationsService_HandleStripeAuthCallback;
38
46
  GetStripeConfiguration: IntegrationsService_GetStripeConfiguration;
39
47
  DeleteStripeConfiguration: IntegrationsService_DeleteStripeConfiguration;
48
+ /** meta */
40
49
  GetMetaAuthURL: IntegrationsService_GetMetaAuthURL;
41
50
  HandleMetaAuthCallback: IntegrationsService_HandleMetaAuthCallback;
42
51
  GetMetaConfiguration: IntegrationsService_GetMetaConfiguration;
@@ -47,13 +56,17 @@ export interface IntegrationsService {
47
56
  ConnectMetaAdAccounts: IntegrationsService_ConnectMetaAdAccounts;
48
57
  SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
49
58
  }
59
+ /** Integration contains all available integration for clients (to update props) */
50
60
  export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META';
51
61
  export type ImportSegmentPianoRequest = {
62
+ /** application code */
52
63
  application?: string;
64
+ /** client segment name from piano */
53
65
  segmentKey?: string;
54
66
  };
55
67
  export type ImportSegmentPianoResponse = {};
56
68
  export type ListIntegrationsConfigurationRequest = {
69
+ /** application code */
57
70
  application?: string;
58
71
  };
59
72
  export type ListIntegrationsConfigurationResponse_Configuration = {
@@ -86,17 +99,24 @@ export type GetWebhookConfigurationRequest = {
86
99
  application?: string;
87
100
  };
88
101
  export type GetWebhookConfigurationResponse = {
102
+ /** webhook url */
89
103
  url: string;
104
+ /** authorization header */
90
105
  auth: string;
106
+ /** events that picked by client to receive */
91
107
  events: string[];
92
108
  filters: Filters;
93
109
  transport: WebhookIntegrationTransportType;
110
+ /** events that available to process */
94
111
  availableEvents: string[];
95
112
  };
96
113
  export type CreateWebhookConfigurationRequest = {
97
114
  application?: string;
115
+ /** webhook url */
98
116
  url?: string;
117
+ /** authorization header */
99
118
  auth?: string;
119
+ /** events names that picked by client to receive */
100
120
  events?: string[];
101
121
  filters?: Filters;
102
122
  transport?: WebhookIntegrationTransportType;
@@ -123,10 +143,15 @@ export type GetPianoConfigurationResponse = {
123
143
  collectionDomain: string;
124
144
  siteId: string;
125
145
  apiKey: string;
146
+ /** event names that picked by client to receive */
126
147
  events: string[];
148
+ /** if true - unique grouping feature turned on, false otherwise */
127
149
  uniqueEventsEnabled: boolean;
150
+ /** event names that picked by client for unique grouping feature */
128
151
  uniqueEvents: string[];
152
+ /** time frame for event grouping */
129
153
  uniqueEventsTimeframe: number;
154
+ /** event names that available to process */
130
155
  availableEvents: string[];
131
156
  };
132
157
  export type CreatePianoConfigurationRequest = {
@@ -134,9 +159,13 @@ export type CreatePianoConfigurationRequest = {
134
159
  collectionDomain?: string;
135
160
  siteId?: string;
136
161
  apiKey?: string;
162
+ /** event names that picked by client to receive */
137
163
  events?: string[];
164
+ /** if true - unique grouping feature turned on, false otherwise */
138
165
  uniqueEventsEnabled?: boolean;
166
+ /** event names that picked by client for unique grouping feature */
139
167
  uniqueEvents?: string[];
168
+ /** time frame for event grouping */
140
169
  uniqueEventsTimeframe?: number;
141
170
  };
142
171
  export type CreatePianoConfigurationResponse = {};
@@ -144,19 +173,27 @@ export type GetHubspotConfigurationRequest = {
144
173
  application?: string;
145
174
  };
146
175
  export type GetHubspotConfigurationResponse = {
176
+ /** access token */
147
177
  accessToken: string;
178
+ /** refresh token */
148
179
  refreshToken: string;
180
+ /** updated at */
149
181
  updated: string;
182
+ /** user id */
150
183
  userId: string;
151
184
  };
152
185
  export type GetShopifyConfigurationRequest = {
153
186
  application?: string;
154
187
  };
155
188
  export type GetShopifyConfigurationResponse = {
189
+ /** shop domain */
156
190
  shopDomain: string;
191
+ /** device api key */
157
192
  deviceApiKey: string;
193
+ /** true if main application, false otherwise */
158
194
  mainApplication: boolean;
159
195
  };
196
+ /** Stripe messages */
160
197
  export type GetStripeAuthURLRequest = {
161
198
  redirectUri?: string;
162
199
  };
@@ -175,6 +212,7 @@ export type GetStripeConfigurationResponse = {
175
212
  };
176
213
  export type DeleteStripeConfigurationRequest = {};
177
214
  export type DeleteStripeConfigurationResponse = {};
215
+ /** Meta messages */
178
216
  export type GetMetaAuthURLRequest = {
179
217
  redirectUri?: string;
180
218
  };
@@ -19,6 +19,7 @@ export type ListIOSCategoriesRequest = {
19
19
  orderDirection?: ListIOSCategoriesRequest_OrderDirection;
20
20
  page?: number;
21
21
  perPage?: number;
22
+ /** like %name% */
22
23
  searchByName?: string;
23
24
  };
24
25
  export type IOSCategory = {
@@ -23,7 +23,9 @@ export type ListKakaoPresetsRequest = {
23
23
  orderDirection?: ListKakaoPresetsRequest_OrderDirection;
24
24
  page?: number;
25
25
  perPage?: number;
26
+ /** like %name% */
26
27
  searchByName?: string;
28
+ /** in ['category'] */
27
29
  searchByCategory?: string[];
28
30
  };
29
31
  export type KakaoPreset = {
package/line_presets.d.ts CHANGED
@@ -21,7 +21,9 @@ export type ListLinePresetsRequest = {
21
21
  orderDirection?: ListLinePresetsRequest_OrderDirection;
22
22
  page?: number;
23
23
  perPage?: number;
24
+ /** like %name% */
24
25
  searchByName?: string;
26
+ /** in ['category'] */
25
27
  searchByCategory?: string[];
26
28
  };
27
29
  export type Template_kind_image = {
@@ -56,6 +58,7 @@ export type LinePreset = {
56
58
  name: string;
57
59
  code: string;
58
60
  categories: string[];
61
+ /** content map {"en": "content"...} */
59
62
  localizedContent: Record<string, string>;
60
63
  created: Date;
61
64
  updated: Date;
@@ -77,6 +80,7 @@ export type CreateLinePresetRequest = {
77
80
  application?: string;
78
81
  name?: string;
79
82
  categories?: string[];
83
+ /** content map {"en": "content"...} */
80
84
  localizedContent?: Record<string, string>;
81
85
  localizedTemplate?: Record<string, Template>;
82
86
  };
@@ -87,6 +91,7 @@ export type UpdateLinePresetRequest = {
87
91
  code?: string;
88
92
  name?: string;
89
93
  categories?: string[];
94
+ /** content map {"en": "content"...} */
90
95
  localizedContent?: Record<string, string>;
91
96
  localizedTemplate?: Record<string, Template>;
92
97
  };
package/messages.d.ts CHANGED
@@ -131,6 +131,11 @@ export type GetLinkClicksStatisticsResponse_LinkClick_Attributes = {
131
131
  attributes: string[];
132
132
  clicks: number;
133
133
  };
134
+ /**
135
+ * example: 'https://google.com?name=sam&age=20'
136
+ * https://google.com it's link
137
+ * ['name=sam', 'age=20'] it's attributes
138
+ */
134
139
  export type GetLinkClicksStatisticsResponse_LinkClick = {
135
140
  link: string;
136
141
  clicks: number;
@@ -147,8 +152,16 @@ export type GetDeliveryReportRequest = {
147
152
  messageCode?: string;
148
153
  campaign?: string;
149
154
  };
150
- export type GetDeliveryReportResponse_ProcessingErrorsType = 'processing_unknown' | 'send' | 'publish';
151
- export type GetDeliveryReportResponse_MailboxErrorType = 'all' | 'complaints' | 'soft_bounces' | 'hard_bounces';
155
+ export type GetDeliveryReportResponse_ProcessingErrorsType =
156
+ /** Any error types */
157
+ 'processing_unknown'
158
+ /** Error during sending */
159
+ | 'send'
160
+ /** Error during publishing */
161
+ | 'publish';
162
+ export type GetDeliveryReportResponse_MailboxErrorType =
163
+ /** for compatibility with types in the export service */
164
+ 'all' | 'complaints' | 'soft_bounces' | 'hard_bounces';
152
165
  export type GetDeliveryReportResponse_DeliveryReport_ReportError = {
153
166
  error: string;
154
167
  tooltip: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.883",
3
+ "version": "0.1.885",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/presets.d.ts CHANGED
@@ -25,7 +25,9 @@ export type ListPresetsRequest = {
25
25
  orderDirection?: ListPresetsRequest_OrderDirection;
26
26
  page?: number;
27
27
  perPage?: number;
28
+ /** like %name% */
28
29
  searchByName?: string;
30
+ /** in ['category'] */
29
31
  searchByCategory?: string[];
30
32
  showHidden?: boolean;
31
33
  };
@@ -41,28 +43,46 @@ export type Preset = {
41
43
  name: string;
42
44
  code: string;
43
45
  platforms: Record<number, boolean>;
46
+ /** Localized properties map<string, Content> */
44
47
  localizedProperties: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
48
+ /** title map {"en": "content"...} */
45
49
  localizedTitle: Record<string, string>;
50
+ /** subtitle map {"en": "content"...} */
46
51
  localizedSubtitle: Record<string, string>;
52
+ /** content map {"en": "content"...} */
47
53
  localizedContent: Record<string, string>;
54
+ /** deeplink code */
48
55
  deeplink: string;
56
+ /** map of params */
49
57
  deeplinkParams: Record<string, string>;
58
+ /** richmedia code */
50
59
  richmedia: string;
60
+ /** whether preset is system */
51
61
  system: boolean;
62
+ /** url */
52
63
  url: string;
64
+ /** inbox image */
53
65
  inboxImage: string;
66
+ /** inbox icon */
54
67
  inboxIcon: string;
68
+ /** inbox days */
55
69
  inboxDays: number;
70
+ /** inbox date */
56
71
  inboxDate: Date;
72
+ /** categories */
57
73
  categories: string[];
58
74
  created: Date;
59
75
  updated: Date;
76
+ /** userdata content map {"data": "content"...} */
60
77
  customData: object;
61
78
  isV2: boolean;
79
+ /** banner attachment */
62
80
  banner: string;
81
+ /** common icon */
63
82
  icon: string;
64
83
  journeyUuid: string;
65
84
  hidden: boolean;
85
+ /** open actions for platforms */
66
86
  openAction: pushwoosh_channels_messagingApi_v2_OpenAction;
67
87
  openActions: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
68
88
  platformProperties: Record<string, PlatformProperties>;
@@ -84,25 +104,43 @@ export type CreatePresetRequest = {
84
104
  name?: string;
85
105
  sendType?: string;
86
106
  platforms?: Record<number, boolean>;
107
+ /** Localized properties map<string, Content> */
87
108
  localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
109
+ /** title map {"en": "content"...} */
88
110
  localizedTitle?: Record<string, string>;
111
+ /** subtitle map {"en": "content"...} */
89
112
  localizedSubtitle?: Record<string, string>;
113
+ /** content map {"en": "content"...} */
90
114
  localizedContent?: Record<string, string>;
115
+ /** deeplink code */
91
116
  deeplink?: string;
117
+ /** map of params */
92
118
  deeplinkParams?: Record<string, string>;
119
+ /** richmedia code */
93
120
  richmedia?: string;
121
+ /** whether preset is system */
94
122
  system?: boolean;
123
+ /** url */
95
124
  url?: string;
125
+ /** inbox image */
96
126
  inboxImage?: string;
127
+ /** inbox icon */
97
128
  inboxIcon?: string;
129
+ /** inbox days */
98
130
  inboxDays?: number;
131
+ /** inbox date */
99
132
  inboxDate?: Date;
133
+ /** user data */
100
134
  customData?: object;
135
+ /** categories */
101
136
  categories?: string[];
137
+ /** banner attachment */
102
138
  banner?: string;
139
+ /** common icon */
103
140
  icon?: string;
104
141
  journeyUuid?: string;
105
142
  hidden?: boolean;
143
+ /** open actions for platforms */
106
144
  openAction?: pushwoosh_channels_messagingApi_v2_OpenAction;
107
145
  openActions?: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
108
146
  platformProperties?: Record<string, PlatformProperties>;
@@ -115,22 +153,39 @@ export type UpdatePresetRequest = {
115
153
  name?: string;
116
154
  sendType?: string;
117
155
  platforms?: Record<number, boolean>;
156
+ /** Localized properties map<string, Content> */
118
157
  localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
158
+ /** title map {"en": "content"...} */
119
159
  localizedTitle?: Record<string, string>;
160
+ /** subtitle map {"en": "content"...} */
120
161
  localizedSubtitle?: Record<string, string>;
162
+ /** content map {"en": "content"...} */
121
163
  localizedContent?: Record<string, string>;
164
+ /** deeplink code */
122
165
  deeplink?: string;
166
+ /** map of params */
123
167
  deeplinkParams?: Record<string, string>;
168
+ /** richmedia code */
124
169
  richmedia?: string;
170
+ /** url */
125
171
  url?: string;
172
+ /** inbox image */
126
173
  inboxImage?: string;
174
+ /** inbox icon */
127
175
  inboxIcon?: string;
176
+ /** inbox days */
128
177
  inboxDays?: number;
178
+ /** inbox date */
129
179
  inboxDate?: Date;
180
+ /** user data */
130
181
  customData?: object;
182
+ /** categories */
131
183
  categories?: string[];
184
+ /** banner attachment */
132
185
  banner?: string;
186
+ /** common icon */
133
187
  icon?: string;
188
+ /** open actions for platforms */
134
189
  openAction?: pushwoosh_channels_messagingApi_v2_OpenAction;
135
190
  openActions?: Record<number, pushwoosh_channels_messagingApi_v2_OpenAction>;
136
191
  platformProperties?: Record<string, PlatformProperties>;
@@ -140,21 +195,37 @@ export type UpdatePresetPartialRequest = {
140
195
  name?: string;
141
196
  sendType?: string;
142
197
  platforms?: Record<number, boolean>;
198
+ /** Localized properties map<string, Content> */
143
199
  localizedProperties?: Record<string, pushwoosh_channels_messagingApi_v2_Content>;
200
+ /** title map {"en": "content"...} */
144
201
  localizedTitle?: Record<string, string>;
202
+ /** subtitle map {"en": "content"...} */
145
203
  localizedSubtitle?: Record<string, string>;
204
+ /** content map {"en": "content"...} */
146
205
  localizedContent?: Record<string, string>;
206
+ /** deeplink code */
147
207
  deeplink?: string;
208
+ /** map of params */
148
209
  deeplinkParams?: Record<string, string>;
210
+ /** richmedia code */
149
211
  richmedia?: string;
212
+ /** url */
150
213
  url?: string;
214
+ /** inbox image */
151
215
  inboxImage?: string;
216
+ /** inbox icon */
152
217
  inboxIcon?: string;
218
+ /** inbox days */
153
219
  inboxDays?: number;
220
+ /** inbox date */
154
221
  inboxDate?: Date;
222
+ /** user data */
155
223
  customData?: object;
224
+ /** categories */
156
225
  categories?: string[];
226
+ /** banner attachment */
157
227
  banner?: string;
228
+ /** common icon */
158
229
  icon?: string;
159
230
  };
160
231
  export type UpdatePresetResponse = {
@@ -67,6 +67,7 @@ export type SendRequest = {
67
67
  email?: AlertEmail;
68
68
  applicationId?: number;
69
69
  meta?: object;
70
+ /** check unique alert within the `unique_key` in the provided request */
70
71
  uniqueKey?: string;
71
72
  };
72
73
  export type UpdateStatusRequest_Alert = {
@@ -86,6 +87,7 @@ export type GetHighestSeverityResponse = {
86
87
  severity: AlertSeverity;
87
88
  };
88
89
  export type DeleteRequest = {
90
+ /** one of identifiers allowed */
89
91
  ids?: number[];
90
92
  uniqueKeys?: string[];
91
93
  accountId?: number;