@pushwoosh/rpc-v2-http-api-data 0.2.203 → 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.
package/data.js CHANGED
@@ -16894,6 +16894,34 @@ export const data = {
16894
16894
  }
16895
16895
  }
16896
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
+ },
16897
16925
  "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
16898
16926
  "type": "I",
16899
16927
  "fields": {
@@ -16924,6 +16952,9 @@ export const data = {
16924
16952
  "availableEvents": {
16925
16953
  "type": "string",
16926
16954
  "array": true
16955
+ },
16956
+ "postEvent": {
16957
+ "type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
16927
16958
  }
16928
16959
  }
16929
16960
  },
@@ -16948,6 +16979,9 @@ export const data = {
16948
16979
  },
16949
16980
  "transport": {
16950
16981
  "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
16982
+ },
16983
+ "postEvent": {
16984
+ "type": "pushwoosh.rpc_v2.integrations.PostEventConfiguration"
16951
16985
  }
16952
16986
  }
16953
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.203",
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",