@pushwoosh/rpc-v2-http-api-data 0.2.202 → 0.2.204

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.
@@ -29,6 +29,10 @@ export type AppInboxPresetOpenAction = {
29
29
  deepLinkParams: Record<string, string>;
30
30
  richMediaCode: string;
31
31
  };
32
+ export type AppInboxPresetCarouselSlide = {
33
+ imageUrl: string;
34
+ caption: string;
35
+ };
32
36
  export type AppInboxPresetLocale = {
33
37
  title: string;
34
38
  body: string;
@@ -36,6 +40,8 @@ export type AppInboxPresetLocale = {
36
40
  bannerUrl: string;
37
41
  openAction: AppInboxPresetOpenAction;
38
42
  customData: object;
43
+ layoutType: string;
44
+ carousel: AppInboxPresetCarouselSlide[];
39
45
  };
40
46
  export type AppInboxPreset = {
41
47
  name: string;
package/data.js CHANGED
@@ -4987,6 +4987,17 @@ export const data = {
4987
4987
  }
4988
4988
  }
4989
4989
  },
4990
+ "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetCarouselSlide": {
4991
+ "type": "I",
4992
+ "fields": {
4993
+ "imageUrl": {
4994
+ "type": "string"
4995
+ },
4996
+ "caption": {
4997
+ "type": "string"
4998
+ }
4999
+ }
5000
+ },
4990
5001
  "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetLocale": {
4991
5002
  "type": "I",
4992
5003
  "fields": {
@@ -5007,6 +5018,13 @@ export const data = {
5007
5018
  },
5008
5019
  "customData": {
5009
5020
  "type": "object"
5021
+ },
5022
+ "layoutType": {
5023
+ "type": "string"
5024
+ },
5025
+ "carousel": {
5026
+ "type": "pushwoosh.rpc_v2.app_inbox_presets.AppInboxPresetCarouselSlide",
5027
+ "array": true
5010
5028
  }
5011
5029
  }
5012
5030
  },
@@ -16876,6 +16894,34 @@ export const data = {
16876
16894
  }
16877
16895
  }
16878
16896
  },
16897
+ "pushwoosh.rpc_v2.integrations.PostEventConfiguration": {
16898
+ "type": "I",
16899
+ "fields": {
16900
+ "enabled": {
16901
+ "type": "boolean"
16902
+ },
16903
+ "url": {
16904
+ "type": "string"
16905
+ },
16906
+ "auth": {
16907
+ "type": "string"
16908
+ },
16909
+ "transport": {
16910
+ "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
16911
+ },
16912
+ "events": {
16913
+ "type": "string",
16914
+ "array": true
16915
+ },
16916
+ "filters": {
16917
+ "type": "pushwoosh.rpc_v2.integrations.Filters"
16918
+ },
16919
+ "availableEvents": {
16920
+ "type": "string",
16921
+ "array": true
16922
+ }
16923
+ }
16924
+ },
16879
16925
  "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
16880
16926
  "type": "I",
16881
16927
  "fields": {
@@ -16906,6 +16952,9 @@ export const data = {
16906
16952
  "availableEvents": {
16907
16953
  "type": "string",
16908
16954
  "array": true
16955
+ },
16956
+ "postEvent": {
16957
+ "type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
16909
16958
  }
16910
16959
  }
16911
16960
  },
@@ -16930,6 +16979,9 @@ export const data = {
16930
16979
  },
16931
16980
  "transport": {
16932
16981
  "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
16982
+ },
16983
+ "postEvent": {
16984
+ "type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
16933
16985
  }
16934
16986
  }
16935
16987
  },
package/integrations.d.ts CHANGED
@@ -156,6 +156,25 @@ export type Filters = {
156
156
  campaigns: Filters_CampaignsFilter;
157
157
  liveActivity: Filters_LiveActivityFilter;
158
158
  };
159
+ /**
160
+ * PostEventConfiguration is the second stream of the webhook integration: the
161
+ * customer's own post events, delivered by a separate instance of the service.
162
+ */
163
+ export type PostEventConfiguration = {
164
+ /** the stream is off until the client turns it on */
165
+ enabled: boolean;
166
+ /** empty means the webhook url above */
167
+ url: string;
168
+ /** travels with the url, not inherited on its own */
169
+ auth: string;
170
+ transport: WebhookIntegrationTransportType;
171
+ /** post event names picked by the client */
172
+ events: string[];
173
+ /** only the platforms filter applies to post events */
174
+ filters: Filters;
175
+ /** the account's own event names */
176
+ availableEvents: string[];
177
+ };
159
178
  export type GetWebhookConfigurationRequest = {
160
179
  application?: string;
161
180
  };
@@ -170,6 +189,7 @@ export type GetWebhookConfigurationResponse = {
170
189
  transport: WebhookIntegrationTransportType;
171
190
  /** events that available to process */
172
191
  availableEvents: string[];
192
+ postEvent: PostEventConfiguration;
173
193
  };
174
194
  export type CreateWebhookConfigurationRequest = {
175
195
  application?: string;
@@ -181,6 +201,7 @@ export type CreateWebhookConfigurationRequest = {
181
201
  events?: string[];
182
202
  filters?: Filters;
183
203
  transport?: WebhookIntegrationTransportType;
204
+ postEvent?: PostEventConfiguration;
184
205
  };
185
206
  export type CreateWebhookConfigurationResponse = {};
186
207
  export type GetSegmentConfigurationRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.202",
3
+ "version": "0.2.204",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",