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

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,294 @@ 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
+ }
10806
+ },
10807
+ "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem": {
10808
+ "type": "I",
10809
+ "fields": {
10810
+ "attributeName": {
10811
+ "type": "string"
10812
+ },
10813
+ "jsonPath": {
10814
+ "type": "string"
10815
+ }
10816
+ }
10817
+ },
10818
+ "pushwoosh.rpc_v2.inbound_webhooks.Status": {
10819
+ "type": "E",
10820
+ "values": [
10821
+ "UNKNOWN_STATUS",
10822
+ "ENABLED",
10823
+ "DISABLED"
10824
+ ]
10825
+ },
10826
+ "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType": {
10827
+ "type": "E",
10828
+ "values": [
10829
+ "UNKNOWN_TYPE",
10830
+ "HWID",
10831
+ "USER_ID",
10832
+ "EMAIL",
10833
+ "PHONE",
10834
+ "TOKEN"
10835
+ ]
10836
+ },
10837
+ "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook": {
10838
+ "type": "I",
10839
+ "fields": {
10840
+ "uuid": {
10841
+ "type": "string"
10842
+ },
10843
+ "name": {
10844
+ "type": "string"
10845
+ },
10846
+ "event": {
10847
+ "type": "string"
10848
+ },
10849
+ "createdAt": {
10850
+ "type": "Date"
10851
+ },
10852
+ "updatedAt": {
10853
+ "type": "Date"
10854
+ },
10855
+ "identifierType": {
10856
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
10857
+ },
10858
+ "identifierJsonPath": {
10859
+ "type": "string"
10860
+ },
10861
+ "attributesMapping": {
10862
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
10863
+ "array": true
10864
+ },
10865
+ "status": {
10866
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.Status"
10867
+ },
10868
+ "example": {
10869
+ "type": "string"
10870
+ }
10871
+ }
10872
+ },
10873
+ "pushwoosh.rpc_v2.inbound_webhooks.GetInboundWebhookRequest": {
10874
+ "type": "I",
10875
+ "fields": {
10876
+ "application": {
10877
+ "type": "string"
10878
+ },
10879
+ "uuid": {
10880
+ "type": "string"
10881
+ }
10882
+ }
10883
+ },
10884
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderBy": {
10885
+ "type": "E",
10886
+ "values": [
10887
+ "NAME"
10888
+ ]
10889
+ },
10890
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderDirection": {
10891
+ "type": "E",
10892
+ "values": [
10893
+ "ASC",
10894
+ "DESC"
10895
+ ]
10896
+ },
10897
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest": {
10898
+ "type": "I",
10899
+ "fields": {
10900
+ "application": {
10901
+ "type": "string"
10902
+ },
10903
+ "searchByName": {
10904
+ "type": "string"
10905
+ },
10906
+ "status": {
10907
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.Status"
10908
+ },
10909
+ "orderBy": {
10910
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderBy"
10911
+ },
10912
+ "orderDirection": {
10913
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksRequest.OrderDirection"
10914
+ },
10915
+ "page": {
10916
+ "type": "number"
10917
+ },
10918
+ "perPage": {
10919
+ "type": "number"
10920
+ }
10921
+ }
10922
+ },
10923
+ "pushwoosh.rpc_v2.inbound_webhooks.ListInboundWebhooksResponse": {
10924
+ "type": "I",
10925
+ "fields": {
10926
+ "inboundWebhooks": {
10927
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.InboundWebhook",
10928
+ "array": true
10929
+ },
10930
+ "page": {
10931
+ "type": "number"
10932
+ },
10933
+ "perPage": {
10934
+ "type": "number"
10935
+ },
10936
+ "totalPages": {
10937
+ "type": "number"
10938
+ },
10939
+ "total": {
10940
+ "type": "number"
10941
+ }
10942
+ }
10943
+ },
10944
+ "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookRequest": {
10945
+ "type": "I",
10946
+ "fields": {
10947
+ "name": {
10948
+ "type": "string"
10949
+ },
10950
+ "application": {
10951
+ "type": "string"
10952
+ },
10953
+ "event": {
10954
+ "type": "string"
10955
+ },
10956
+ "identifierType": {
10957
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
10958
+ },
10959
+ "identifierJsonPath": {
10960
+ "type": "string"
10961
+ },
10962
+ "attributesMapping": {
10963
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
10964
+ "array": true
10965
+ },
10966
+ "example": {
10967
+ "type": "string"
10968
+ }
10969
+ }
10970
+ },
10971
+ "pushwoosh.rpc_v2.inbound_webhooks.CreateInboundWebhookResponse": {
10972
+ "type": "I",
10973
+ "fields": {
10974
+ "uuid": {
10975
+ "type": "string"
10976
+ }
10977
+ }
10978
+ },
10979
+ "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookRequest": {
10980
+ "type": "I",
10981
+ "fields": {
10982
+ "uuid": {
10983
+ "type": "string"
10984
+ },
10985
+ "application": {
10986
+ "type": "string"
10987
+ },
10988
+ "name": {
10989
+ "type": "string"
10990
+ },
10991
+ "event": {
10992
+ "type": "string"
10993
+ },
10994
+ "identifierType": {
10995
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.IdentifierType"
10996
+ },
10997
+ "identifierJsonPath": {
10998
+ "type": "string"
10999
+ },
11000
+ "attributesMapping": {
11001
+ "type": "pushwoosh.rpc_v2.inbound_webhooks.EventAttributeItem",
11002
+ "array": true
11003
+ },
11004
+ "example": {
11005
+ "type": "string"
11006
+ }
11007
+ }
11008
+ },
11009
+ "pushwoosh.rpc_v2.inbound_webhooks.UpdateInboundWebhookResponse": {
11010
+ "type": "I",
11011
+ "fields": {}
11012
+ },
11013
+ "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookRequest": {
11014
+ "type": "I",
11015
+ "fields": {
11016
+ "uuid": {
11017
+ "type": "string"
11018
+ },
11019
+ "application": {
11020
+ "type": "string"
11021
+ }
11022
+ }
11023
+ },
11024
+ "pushwoosh.rpc_v2.inbound_webhooks.DeleteInboundWebhookResponse": {
11025
+ "type": "I",
11026
+ "fields": {}
11027
+ },
11028
+ "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoRequest": {
11029
+ "type": "I",
11030
+ "fields": {
11031
+ "uuid": {
11032
+ "type": "string"
11033
+ },
11034
+ "application": {
11035
+ "type": "string"
11036
+ }
11037
+ }
11038
+ },
11039
+ "pushwoosh.rpc_v2.inbound_webhooks.GetAPIInfoResponse": {
11040
+ "type": "I",
11041
+ "fields": {
11042
+ "url": {
11043
+ "type": "string"
11044
+ },
11045
+ "secret": {
11046
+ "type": "string"
11047
+ },
11048
+ "example": {
11049
+ "type": "string"
11050
+ }
11051
+ }
11052
+ },
10765
11053
  "pushwoosh.rpc_v2.integrations.IntegrationsService": {
10766
11054
  "type": "S",
10767
11055
  "key": "integrations",
@@ -0,0 +1,93 @@
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 interface InboundWebhooksService {
9
+ Get: InboundWebhooksService_Get;
10
+ List: InboundWebhooksService_List;
11
+ Create: InboundWebhooksService_Create;
12
+ Update: InboundWebhooksService_Update;
13
+ Delete: InboundWebhooksService_Delete;
14
+ GetAPIInfo: InboundWebhooksService_GetAPIInfo;
15
+ }
16
+ export type EventAttributeItem = {
17
+ attributeName: string;
18
+ jsonPath: string;
19
+ };
20
+ export type Status = 'UNKNOWN_STATUS' | 'ENABLED' | 'DISABLED';
21
+ export type IdentifierType = 'UNKNOWN_TYPE' | 'HWID' | 'USER_ID' | 'EMAIL' | 'PHONE' | 'TOKEN';
22
+ export type InboundWebhook = {
23
+ uuid: string;
24
+ name: string;
25
+ event: string;
26
+ createdAt: Date;
27
+ updatedAt: Date;
28
+ identifierType: IdentifierType;
29
+ identifierJsonPath: string;
30
+ attributesMapping: EventAttributeItem[];
31
+ status: Status;
32
+ example: string;
33
+ };
34
+ export type GetInboundWebhookRequest = {
35
+ application?: string;
36
+ uuid?: string;
37
+ };
38
+ export type ListInboundWebhooksRequest_OrderBy = 'NAME';
39
+ export type ListInboundWebhooksRequest_OrderDirection = 'ASC' | 'DESC';
40
+ export type ListInboundWebhooksRequest = {
41
+ application?: string;
42
+ /** like %name% */
43
+ searchByName?: string;
44
+ status?: Status;
45
+ orderBy?: ListInboundWebhooksRequest_OrderBy;
46
+ orderDirection?: ListInboundWebhooksRequest_OrderDirection;
47
+ page?: number;
48
+ perPage?: number;
49
+ };
50
+ export type ListInboundWebhooksResponse = {
51
+ inboundWebhooks: InboundWebhook[];
52
+ page: number;
53
+ perPage: number;
54
+ totalPages: number;
55
+ total: number;
56
+ };
57
+ export type CreateInboundWebhookRequest = {
58
+ name?: string;
59
+ application?: string;
60
+ event?: string;
61
+ identifierType?: IdentifierType;
62
+ identifierJsonPath?: string;
63
+ attributesMapping?: EventAttributeItem[];
64
+ example?: string;
65
+ };
66
+ export type CreateInboundWebhookResponse = {
67
+ uuid: string;
68
+ };
69
+ export type UpdateInboundWebhookRequest = {
70
+ uuid?: string;
71
+ application?: string;
72
+ name?: string;
73
+ event?: string;
74
+ identifierType?: IdentifierType;
75
+ identifierJsonPath?: string;
76
+ attributesMapping?: EventAttributeItem[];
77
+ example?: string;
78
+ };
79
+ export type UpdateInboundWebhookResponse = {};
80
+ export type DeleteInboundWebhookRequest = {
81
+ uuid?: string;
82
+ application?: string;
83
+ };
84
+ export type DeleteInboundWebhookResponse = {};
85
+ export type GetAPIInfoRequest = {
86
+ uuid?: string;
87
+ application?: string;
88
+ };
89
+ export type GetAPIInfoResponse = {
90
+ url: string;
91
+ secret: string;
92
+ example: string;
93
+ };
@@ -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.905",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",