@pushwoosh/rpc-v2-http-api-data 0.1.904 → 0.1.906

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
@@ -10762,6 +10762,336 @@ export const data = {
10762
10762
  }
10763
10763
  }
10764
10764
  },
10765
+ "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhooksService": {
10766
+ "type": "S",
10767
+ "key": "inboundWebhooks",
10768
+ "methods": {
10769
+ "Get": {
10770
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.GetInboundWebhookRequest",
10771
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook",
10772
+ "method": "get",
10773
+ "path": "/api/inbound_webhooks/{uuid}"
10774
+ },
10775
+ "List": {
10776
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest",
10777
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksResponse",
10778
+ "method": "get",
10779
+ "path": "/api/inbound_webhooks"
10780
+ },
10781
+ "Create": {
10782
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookRequest",
10783
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookResponse",
10784
+ "method": "post",
10785
+ "path": "/api/inbound_webhooks"
10786
+ },
10787
+ "Update": {
10788
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookRequest",
10789
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookResponse",
10790
+ "method": "put",
10791
+ "path": "/api/inbound_webhooks/{uuid}"
10792
+ },
10793
+ "Delete": {
10794
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookRequest",
10795
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookResponse",
10796
+ "method": "delete",
10797
+ "path": "/api/inbound_webhooks/{uuid}"
10798
+ },
10799
+ "GetAPIInfo": {
10800
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoRequest",
10801
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoResponse",
10802
+ "method": "get",
10803
+ "path": "/api/inbound_webhooks/{uuid}/api_info"
10804
+ },
10805
+ "Enable": {
10806
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookRequest",
10807
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookResponse",
10808
+ "method": "post",
10809
+ "path": "/api/inbound_webhooks/{uuid}/enable"
10810
+ },
10811
+ "Disable": {
10812
+ "request": "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookRequest",
10813
+ "response": "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookResponse",
10814
+ "method": "post",
10815
+ "path": "/api/inbound_webhooks/{uuid}/disable"
10816
+ }
10817
+ }
10818
+ },
10819
+ "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem": {
10820
+ "type": "I",
10821
+ "fields": {
10822
+ "attributeName": {
10823
+ "type": "string"
10824
+ },
10825
+ "jsonPath": {
10826
+ "type": "string"
10827
+ }
10828
+ }
10829
+ },
10830
+ "pushwoosh.rpc_v2.inbound_webhooks.Status": {
10831
+ "type": "E",
10832
+ "values": [
10833
+ "UNKNOWN_STATUS",
10834
+ "ENABLED",
10835
+ "DISABLED"
10836
+ ]
10837
+ },
10838
+ "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType": {
10839
+ "type": "E",
10840
+ "values": [
10841
+ "UNKNOWN_TYPE",
10842
+ "HWID",
10843
+ "USER_ID",
10844
+ "EMAIL",
10845
+ "PHONE",
10846
+ "TOKEN"
10847
+ ]
10848
+ },
10849
+ "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook": {
10850
+ "type": "I",
10851
+ "fields": {
10852
+ "uuid": {
10853
+ "type": "string"
10854
+ },
10855
+ "name": {
10856
+ "type": "string"
10857
+ },
10858
+ "event": {
10859
+ "type": "string"
10860
+ },
10861
+ "createdAt": {
10862
+ "type": "Date"
10863
+ },
10864
+ "updatedAt": {
10865
+ "type": "Date"
10866
+ },
10867
+ "identifierType": {
10868
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
10869
+ },
10870
+ "identifierJsonPath": {
10871
+ "type": "string"
10872
+ },
10873
+ "attributesMapping": {
10874
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
10875
+ "array": true
10876
+ },
10877
+ "status": {
10878
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.Status"
10879
+ },
10880
+ "example": {
10881
+ "type": "string"
10882
+ }
10883
+ }
10884
+ },
10885
+ "pushwoosh.rpc_v2.inbound_webhooks.GetInboundWebhookRequest": {
10886
+ "type": "I",
10887
+ "fields": {
10888
+ "application": {
10889
+ "type": "string"
10890
+ },
10891
+ "uuid": {
10892
+ "type": "string"
10893
+ }
10894
+ }
10895
+ },
10896
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderBy": {
10897
+ "type": "E",
10898
+ "values": [
10899
+ "NAME"
10900
+ ]
10901
+ },
10902
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderDirection": {
10903
+ "type": "E",
10904
+ "values": [
10905
+ "ASC",
10906
+ "DESC"
10907
+ ]
10908
+ },
10909
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest": {
10910
+ "type": "I",
10911
+ "fields": {
10912
+ "application": {
10913
+ "type": "string"
10914
+ },
10915
+ "searchByName": {
10916
+ "type": "string"
10917
+ },
10918
+ "status": {
10919
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.Status"
10920
+ },
10921
+ "orderBy": {
10922
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderBy"
10923
+ },
10924
+ "orderDirection": {
10925
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderDirection"
10926
+ },
10927
+ "page": {
10928
+ "type": "number"
10929
+ },
10930
+ "perPage": {
10931
+ "type": "number"
10932
+ }
10933
+ }
10934
+ },
10935
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksResponse": {
10936
+ "type": "I",
10937
+ "fields": {
10938
+ "inboundWebhooks": {
10939
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook",
10940
+ "array": true
10941
+ },
10942
+ "page": {
10943
+ "type": "number"
10944
+ },
10945
+ "perPage": {
10946
+ "type": "number"
10947
+ },
10948
+ "totalPages": {
10949
+ "type": "number"
10950
+ },
10951
+ "total": {
10952
+ "type": "number"
10953
+ }
10954
+ }
10955
+ },
10956
+ "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookRequest": {
10957
+ "type": "I",
10958
+ "fields": {
10959
+ "name": {
10960
+ "type": "string"
10961
+ },
10962
+ "application": {
10963
+ "type": "string"
10964
+ },
10965
+ "event": {
10966
+ "type": "string"
10967
+ },
10968
+ "identifierType": {
10969
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
10970
+ },
10971
+ "identifierJsonPath": {
10972
+ "type": "string"
10973
+ },
10974
+ "attributesMapping": {
10975
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
10976
+ "array": true
10977
+ },
10978
+ "example": {
10979
+ "type": "string"
10980
+ }
10981
+ }
10982
+ },
10983
+ "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookResponse": {
10984
+ "type": "I",
10985
+ "fields": {
10986
+ "uuid": {
10987
+ "type": "string"
10988
+ }
10989
+ }
10990
+ },
10991
+ "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookRequest": {
10992
+ "type": "I",
10993
+ "fields": {
10994
+ "uuid": {
10995
+ "type": "string"
10996
+ },
10997
+ "application": {
10998
+ "type": "string"
10999
+ },
11000
+ "name": {
11001
+ "type": "string"
11002
+ },
11003
+ "event": {
11004
+ "type": "string"
11005
+ },
11006
+ "identifierType": {
11007
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
11008
+ },
11009
+ "identifierJsonPath": {
11010
+ "type": "string"
11011
+ },
11012
+ "attributesMapping": {
11013
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
11014
+ "array": true
11015
+ },
11016
+ "example": {
11017
+ "type": "string"
11018
+ }
11019
+ }
11020
+ },
11021
+ "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookResponse": {
11022
+ "type": "I",
11023
+ "fields": {}
11024
+ },
11025
+ "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookRequest": {
11026
+ "type": "I",
11027
+ "fields": {
11028
+ "uuid": {
11029
+ "type": "string"
11030
+ },
11031
+ "application": {
11032
+ "type": "string"
11033
+ }
11034
+ }
11035
+ },
11036
+ "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookResponse": {
11037
+ "type": "I",
11038
+ "fields": {}
11039
+ },
11040
+ "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoRequest": {
11041
+ "type": "I",
11042
+ "fields": {
11043
+ "uuid": {
11044
+ "type": "string"
11045
+ },
11046
+ "application": {
11047
+ "type": "string"
11048
+ }
11049
+ }
11050
+ },
11051
+ "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoResponse": {
11052
+ "type": "I",
11053
+ "fields": {
11054
+ "url": {
11055
+ "type": "string"
11056
+ },
11057
+ "secret": {
11058
+ "type": "string"
11059
+ },
11060
+ "example": {
11061
+ "type": "string"
11062
+ }
11063
+ }
11064
+ },
11065
+ "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookRequest": {
11066
+ "type": "I",
11067
+ "fields": {
11068
+ "uuid": {
11069
+ "type": "string"
11070
+ },
11071
+ "application": {
11072
+ "type": "string"
11073
+ }
11074
+ }
11075
+ },
11076
+ "pushwoosh.rpc_v2.inbound_webhooks.EnableInboundWebhookResponse": {
11077
+ "type": "I",
11078
+ "fields": {}
11079
+ },
11080
+ "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookRequest": {
11081
+ "type": "I",
11082
+ "fields": {
11083
+ "uuid": {
11084
+ "type": "string"
11085
+ },
11086
+ "application": {
11087
+ "type": "string"
11088
+ }
11089
+ }
11090
+ },
11091
+ "pushwoosh.rpc_v2.inbound_webhooks.DisableInboundWebhookResponse": {
11092
+ "type": "I",
11093
+ "fields": {}
11094
+ },
10765
11095
  "pushwoosh.rpc_v2.integrations.IntegrationsService": {
10766
11096
  "type": "S",
10767
11097
  "key": "integrations",
@@ -0,0 +1,107 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type InboundWebhooksService_Get = RpcMethod<GetInboundWebhookRequest, InboundWebhook>;
3
+ export type InboundWebhooksService_List = RpcMethod<ListInboundWebhooksRequest, ListInboundWebhooksResponse>;
4
+ export type InboundWebhooksService_Create = RpcMethod<CreateInboundWebhookRequest, CreateInboundWebhookResponse>;
5
+ export type InboundWebhooksService_Update = RpcMethod<UpdateInboundWebhookRequest, UpdateInboundWebhookResponse>;
6
+ export type InboundWebhooksService_Delete = RpcMethod<DeleteInboundWebhookRequest, DeleteInboundWebhookResponse>;
7
+ export type InboundWebhooksService_GetAPIInfo = RpcMethod<GetAPIInfoRequest, GetAPIInfoResponse>;
8
+ export type InboundWebhooksService_Enable = RpcMethod<EnableInboundWebhookRequest, EnableInboundWebhookResponse>;
9
+ export type InboundWebhooksService_Disable = RpcMethod<DisableInboundWebhookRequest, DisableInboundWebhookResponse>;
10
+ export interface InboundWebhooksService {
11
+ Get: InboundWebhooksService_Get;
12
+ List: InboundWebhooksService_List;
13
+ Create: InboundWebhooksService_Create;
14
+ Update: InboundWebhooksService_Update;
15
+ Delete: InboundWebhooksService_Delete;
16
+ GetAPIInfo: InboundWebhooksService_GetAPIInfo;
17
+ Enable: InboundWebhooksService_Enable;
18
+ Disable: InboundWebhooksService_Disable;
19
+ }
20
+ export type EventAttributeItem = {
21
+ attributeName: string;
22
+ jsonPath: string;
23
+ };
24
+ export type Status = 'UNKNOWN_STATUS' | 'ENABLED' | 'DISABLED';
25
+ export type IdentifierType = 'UNKNOWN_TYPE' | 'HWID' | 'USER_ID' | 'EMAIL' | 'PHONE' | 'TOKEN';
26
+ export type InboundWebhook = {
27
+ uuid: string;
28
+ name: string;
29
+ event: string;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ identifierType: IdentifierType;
33
+ identifierJsonPath: string;
34
+ attributesMapping: EventAttributeItem[];
35
+ status: Status;
36
+ example: string;
37
+ };
38
+ export type GetInboundWebhookRequest = {
39
+ application?: string;
40
+ uuid?: string;
41
+ };
42
+ export type ListInboundWebhooksRequest_OrderBy = 'NAME';
43
+ export type ListInboundWebhooksRequest_OrderDirection = 'ASC' | 'DESC';
44
+ export type ListInboundWebhooksRequest = {
45
+ application?: string;
46
+ /** like %name% */
47
+ searchByName?: string;
48
+ status?: Status;
49
+ orderBy?: ListInboundWebhooksRequest_OrderBy;
50
+ orderDirection?: ListInboundWebhooksRequest_OrderDirection;
51
+ page?: number;
52
+ perPage?: number;
53
+ };
54
+ export type ListInboundWebhooksResponse = {
55
+ inboundWebhooks: InboundWebhook[];
56
+ page: number;
57
+ perPage: number;
58
+ totalPages: number;
59
+ total: number;
60
+ };
61
+ export type CreateInboundWebhookRequest = {
62
+ name?: string;
63
+ application?: string;
64
+ event?: string;
65
+ identifierType?: IdentifierType;
66
+ identifierJsonPath?: string;
67
+ attributesMapping?: EventAttributeItem[];
68
+ example?: string;
69
+ };
70
+ export type CreateInboundWebhookResponse = {
71
+ uuid: string;
72
+ };
73
+ export type UpdateInboundWebhookRequest = {
74
+ uuid?: string;
75
+ application?: string;
76
+ name?: string;
77
+ event?: string;
78
+ identifierType?: IdentifierType;
79
+ identifierJsonPath?: string;
80
+ attributesMapping?: EventAttributeItem[];
81
+ example?: string;
82
+ };
83
+ export type UpdateInboundWebhookResponse = {};
84
+ export type DeleteInboundWebhookRequest = {
85
+ uuid?: string;
86
+ application?: string;
87
+ };
88
+ export type DeleteInboundWebhookResponse = {};
89
+ export type GetAPIInfoRequest = {
90
+ uuid?: string;
91
+ application?: string;
92
+ };
93
+ export type GetAPIInfoResponse = {
94
+ url: string;
95
+ secret: string;
96
+ example: string;
97
+ };
98
+ export type EnableInboundWebhookRequest = {
99
+ uuid?: string;
100
+ application?: string;
101
+ };
102
+ export type EnableInboundWebhookResponse = {};
103
+ export type DisableInboundWebhookRequest = {
104
+ uuid?: string;
105
+ application?: string;
106
+ };
107
+ export type DisableInboundWebhookResponse = {};
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
package/index.d.ts CHANGED
@@ -32,6 +32,7 @@ import { FrequencyCappingDisabledUsersService as pushwoosh_rpc_frequency_capping
32
32
  import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
33
33
  import { GeozonesClustersService as pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService } from './geozones_clusters';
34
34
  import { InAppMessagesService as pushwoosh_rpc_v2_inapp_messages_InAppMessagesService } from './inapp_messages';
35
+ import { InboundWebhooksService as pushwoosh_rpc_v2_inbound_webhooks_InboundWebhooksService } from './inbound_webhooks';
35
36
  import { IntegrationsService as pushwoosh_rpc_v2_integrations_IntegrationsService } from './integrations';
36
37
  import { InternalAlertsService as pushwoosh_rpc_v2_internal_alerts_InternalAlertsService } from './internal_alerts';
37
38
  import { IOSCategoriesService as pushwoosh_rpc_v2_ios_categories_IOSCategoriesService } from './ios_categories';
@@ -95,6 +96,7 @@ export type API = {
95
96
  geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
96
97
  geozonesClusters: pushwoosh_rpc_v2_geozones_clusters_GeozonesClustersService;
97
98
  inAppMessages: pushwoosh_rpc_v2_inapp_messages_InAppMessagesService;
99
+ inboundWebhooks: pushwoosh_rpc_v2_inbound_webhooks_InboundWebhooksService;
98
100
  integrations: pushwoosh_rpc_v2_integrations_IntegrationsService;
99
101
  internalAlerts: pushwoosh_rpc_v2_internal_alerts_InternalAlertsService;
100
102
  iOSCategories: pushwoosh_rpc_v2_ios_categories_IOSCategoriesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.904",
3
+ "version": "0.1.906",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",