@pushwoosh/rpc-v2-http-api-data 0.1.560 → 0.1.561

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
@@ -7938,15 +7938,6 @@ export const data = {
7938
7938
  }
7939
7939
  }
7940
7940
  },
7941
- "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType": {
7942
- "type": "E",
7943
- "values": [
7944
- "NIL",
7945
- "MESSAGE",
7946
- "PLATFORM",
7947
- "CAMPAIGN"
7948
- ]
7949
- },
7950
7941
  "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType": {
7951
7942
  "type": "E",
7952
7943
  "values": [
@@ -7955,6 +7946,58 @@ export const data = {
7955
7946
  "HTTP"
7956
7947
  ]
7957
7948
  },
7949
+ "pushwoosh.rpc_v2.integrations.Filters.MessagesFilter": {
7950
+ "type": "I",
7951
+ "fields": {
7952
+ "codes": {
7953
+ "type": "string",
7954
+ "array": true
7955
+ }
7956
+ }
7957
+ },
7958
+ "pushwoosh.rpc_v2.integrations.Filters.PlatformsFilter": {
7959
+ "type": "I",
7960
+ "fields": {
7961
+ "platforms": {
7962
+ "type": "number",
7963
+ "array": true
7964
+ }
7965
+ }
7966
+ },
7967
+ "pushwoosh.rpc_v2.integrations.Filters.CampaignsFilter": {
7968
+ "type": "I",
7969
+ "fields": {
7970
+ "codes": {
7971
+ "type": "string",
7972
+ "array": true
7973
+ }
7974
+ }
7975
+ },
7976
+ "pushwoosh.rpc_v2.integrations.Filters.LiveActivityFilter": {
7977
+ "type": "I",
7978
+ "fields": {
7979
+ "enabled": {
7980
+ "type": "boolean"
7981
+ }
7982
+ }
7983
+ },
7984
+ "pushwoosh.rpc_v2.integrations.Filters": {
7985
+ "type": "I",
7986
+ "fields": {
7987
+ "messages": {
7988
+ "type": "pushwoosh.rpc_v2.integrations.Filters.MessagesFilter"
7989
+ },
7990
+ "platforms": {
7991
+ "type": "pushwoosh.rpc_v2.integrations.Filters.PlatformsFilter"
7992
+ },
7993
+ "campaigns": {
7994
+ "type": "pushwoosh.rpc_v2.integrations.Filters.CampaignsFilter"
7995
+ },
7996
+ "liveActivity": {
7997
+ "type": "pushwoosh.rpc_v2.integrations.Filters.LiveActivityFilter"
7998
+ }
7999
+ }
8000
+ },
7958
8001
  "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
7959
8002
  "type": "I",
7960
8003
  "fields": {
@@ -7976,11 +8019,8 @@ export const data = {
7976
8019
  "type": "string",
7977
8020
  "array": true
7978
8021
  },
7979
- "filterType": {
7980
- "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType"
7981
- },
7982
- "filterId": {
7983
- "type": "string"
8022
+ "filters": {
8023
+ "type": "pushwoosh.rpc_v2.integrations.Filters"
7984
8024
  },
7985
8025
  "transport": {
7986
8026
  "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
@@ -8007,11 +8047,8 @@ export const data = {
8007
8047
  "type": "string",
8008
8048
  "array": true
8009
8049
  },
8010
- "filterType": {
8011
- "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType"
8012
- },
8013
- "filterId": {
8014
- "type": "string"
8050
+ "filters": {
8051
+ "type": "pushwoosh.rpc_v2.integrations.Filters"
8015
8052
  },
8016
8053
  "transport": {
8017
8054
  "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
package/integrations.d.ts CHANGED
@@ -42,8 +42,25 @@ export type ListIntegrationsConfigurationResponse_Configuration = {
42
42
  export type ListIntegrationsConfigurationResponse = {
43
43
  configurations: ListIntegrationsConfigurationResponse_Configuration[];
44
44
  };
45
- export type WebhookIntegrationFilterType = 'NIL' | 'MESSAGE' | 'PLATFORM' | 'CAMPAIGN';
46
45
  export type WebhookIntegrationTransportType = 'NONE' | 'GRPC' | 'HTTP';
46
+ export type Filters_MessagesFilter = {
47
+ codes: string[];
48
+ };
49
+ export type Filters_PlatformsFilter = {
50
+ platforms: number[];
51
+ };
52
+ export type Filters_CampaignsFilter = {
53
+ codes: string[];
54
+ };
55
+ export type Filters_LiveActivityFilter = {
56
+ enabled: boolean;
57
+ };
58
+ export type Filters = {
59
+ messages: Filters_MessagesFilter;
60
+ platforms: Filters_PlatformsFilter;
61
+ campaigns: Filters_CampaignsFilter;
62
+ liveActivity: Filters_LiveActivityFilter;
63
+ };
47
64
  export type GetWebhookConfigurationRequest = {
48
65
  application?: string;
49
66
  };
@@ -51,8 +68,7 @@ export type GetWebhookConfigurationResponse = {
51
68
  url: string;
52
69
  auth: string;
53
70
  events: string[];
54
- filterType: WebhookIntegrationFilterType;
55
- filterId: string;
71
+ filters: Filters;
56
72
  transport: WebhookIntegrationTransportType;
57
73
  availableEvents: string[];
58
74
  };
@@ -61,8 +77,7 @@ export type CreateWebhookConfigurationRequest = {
61
77
  url?: string;
62
78
  auth?: string;
63
79
  events?: string[];
64
- filterType?: WebhookIntegrationFilterType;
65
- filterId?: string;
80
+ filters?: Filters;
66
81
  transport?: WebhookIntegrationTransportType;
67
82
  };
68
83
  export type CreateWebhookConfigurationResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.560",
3
+ "version": "0.1.561",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",