@pushwoosh/rpc-v2-http-api-data 0.1.510 → 0.1.513

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
@@ -7730,6 +7730,18 @@ export const data = {
7730
7730
  "response": "pushwoosh.rpc_v2.integrations.ListIntegrationsConfigurationResponse",
7731
7731
  "method": "get",
7732
7732
  "path": "/api/integrations:list_configuration"
7733
+ },
7734
+ "GetWebhookConfiguration": {
7735
+ "request": "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest",
7736
+ "response": "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationResponse",
7737
+ "method": "get",
7738
+ "path": "/api/integrations/configurations/webhook/{application}"
7739
+ },
7740
+ "CreateWebhookConfiguration": {
7741
+ "request": "pushwoosh.rpc_v2.integrations.CreateWebhookConfigurationRequest",
7742
+ "response": "pushwoosh.rpc_v2.integrations.CreateWebhookConfigurationResponse",
7743
+ "method": "post",
7744
+ "path": "/api/integrations/configurations/webhook"
7733
7745
  }
7734
7746
  }
7735
7747
  },
@@ -7841,6 +7853,90 @@ export const data = {
7841
7853
  }
7842
7854
  }
7843
7855
  },
7856
+ "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType": {
7857
+ "type": "E",
7858
+ "values": [
7859
+ "NIL",
7860
+ "MESSAGE",
7861
+ "PLATFORM",
7862
+ "CAMPAIGN"
7863
+ ]
7864
+ },
7865
+ "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType": {
7866
+ "type": "E",
7867
+ "values": [
7868
+ "NONE",
7869
+ "GRPC",
7870
+ "HTTP"
7871
+ ]
7872
+ },
7873
+ "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationRequest": {
7874
+ "type": "I",
7875
+ "fields": {
7876
+ "application": {
7877
+ "type": "string"
7878
+ }
7879
+ }
7880
+ },
7881
+ "pushwoosh.rpc_v2.integrations.GetWebhookConfigurationResponse": {
7882
+ "type": "I",
7883
+ "fields": {
7884
+ "url": {
7885
+ "type": "string"
7886
+ },
7887
+ "auth": {
7888
+ "type": "string"
7889
+ },
7890
+ "events": {
7891
+ "type": "string",
7892
+ "array": true
7893
+ },
7894
+ "filterType": {
7895
+ "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType"
7896
+ },
7897
+ "filterId": {
7898
+ "type": "string"
7899
+ },
7900
+ "transport": {
7901
+ "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
7902
+ },
7903
+ "availableEvents": {
7904
+ "type": "string",
7905
+ "array": true
7906
+ }
7907
+ }
7908
+ },
7909
+ "pushwoosh.rpc_v2.integrations.CreateWebhookConfigurationRequest": {
7910
+ "type": "I",
7911
+ "fields": {
7912
+ "application": {
7913
+ "type": "string"
7914
+ },
7915
+ "url": {
7916
+ "type": "string"
7917
+ },
7918
+ "auth": {
7919
+ "type": "string"
7920
+ },
7921
+ "events": {
7922
+ "type": "string",
7923
+ "array": true
7924
+ },
7925
+ "filterType": {
7926
+ "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationFilterType"
7927
+ },
7928
+ "filterId": {
7929
+ "type": "string"
7930
+ },
7931
+ "transport": {
7932
+ "type": "pushwoosh.rpc_v2.integrations.WebhookIntegrationTransportType"
7933
+ }
7934
+ }
7935
+ },
7936
+ "pushwoosh.rpc_v2.integrations.CreateWebhookConfigurationResponse": {
7937
+ "type": "I",
7938
+ "fields": {}
7939
+ },
7844
7940
  "pushwoosh.rpc_v2.messages.MessagesService": {
7845
7941
  "type": "S",
7846
7942
  "key": "messages",
package/integrations.d.ts CHANGED
@@ -4,6 +4,8 @@ export interface IntegrationsService {
4
4
  CreateProperties(request: CreatePropertiesRequest): Promise<CreatePropertiesResponse>;
5
5
  ImportSegmentPiano(request: ImportSegmentPianoRequest): Promise<ImportSegmentPianoResponse>;
6
6
  ListIntegrationsConfiguration(request: ListIntegrationsConfigurationRequest): Promise<ListIntegrationsConfigurationResponse>;
7
+ GetWebhookConfiguration(request: GetWebhookConfigurationRequest): Promise<GetWebhookConfigurationResponse>;
8
+ CreateWebhookConfiguration(request: CreateWebhookConfigurationRequest): Promise<CreateWebhookConfigurationResponse>;
7
9
  }
8
10
  export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK';
9
11
  export type GetPropertiesNamesRequest = {
@@ -40,3 +42,27 @@ export type ListIntegrationsConfigurationResponse_Configuration = {
40
42
  export type ListIntegrationsConfigurationResponse = {
41
43
  configurations: ListIntegrationsConfigurationResponse_Configuration[];
42
44
  };
45
+ export type WebhookIntegrationFilterType = 'NIL' | 'MESSAGE' | 'PLATFORM' | 'CAMPAIGN';
46
+ export type WebhookIntegrationTransportType = 'NONE' | 'GRPC' | 'HTTP';
47
+ export type GetWebhookConfigurationRequest = {
48
+ application?: string;
49
+ };
50
+ export type GetWebhookConfigurationResponse = {
51
+ url: string;
52
+ auth: string;
53
+ events: string[];
54
+ filterType: WebhookIntegrationFilterType;
55
+ filterId: string;
56
+ transport: WebhookIntegrationTransportType;
57
+ availableEvents: string[];
58
+ };
59
+ export type CreateWebhookConfigurationRequest = {
60
+ application?: string;
61
+ url?: string;
62
+ auth?: string;
63
+ events?: string[];
64
+ filterType?: WebhookIntegrationFilterType;
65
+ filterId?: string;
66
+ transport?: WebhookIntegrationTransportType;
67
+ };
68
+ 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.510",
3
+ "version": "0.1.513",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",