@pushwoosh/rpc-v2-http-api-data 0.1.587 → 0.1.589

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.
@@ -0,0 +1,66 @@
1
+ export interface CloudPagesService {
2
+ List(request: ListCloudPagesRequest): Promise<ListCloudPagesResponse>;
3
+ Get(request: GetCloudPageRequest): Promise<GetCloudPageResponse>;
4
+ Create(request: CreateCloudPageRequest): Promise<CreateCloudPageResponse>;
5
+ Update(request: UpdateCloudPageRequest): Promise<UpdateCloudPageResponse>;
6
+ Delete(request: DeleteCloudPageRequest): Promise<DeleteCloudPageResponse>;
7
+ }
8
+ export type ListCloudPagesRequest_OrderBy = 'NAME' | 'CREATED' | 'UPDATED';
9
+ export type ListCloudPagesRequest_OrderDirection = 'ASC' | 'DESC';
10
+ export type ListCloudPagesRequest = {
11
+ application?: string;
12
+ orderBy?: ListCloudPagesRequest_OrderBy;
13
+ orderDirection?: ListCloudPagesRequest_OrderDirection;
14
+ page?: number;
15
+ perPage?: number;
16
+ searchByName?: string;
17
+ searchByCategory?: string[];
18
+ };
19
+ export type CloudPage = {
20
+ name: string;
21
+ code: string;
22
+ categories: string[];
23
+ content: string;
24
+ redirectUrl: string;
25
+ pushwooshJson: string;
26
+ created: Date;
27
+ updated: Date;
28
+ };
29
+ export type ListCloudPagesResponse = {
30
+ presets: CloudPage[];
31
+ page: number;
32
+ perPage: number;
33
+ total: number;
34
+ };
35
+ export type GetCloudPageRequest = {
36
+ code?: string;
37
+ };
38
+ export type GetCloudPageResponse = {
39
+ preset: CloudPage;
40
+ };
41
+ export type CreateCloudPageRequest = {
42
+ application?: string;
43
+ name?: string;
44
+ categories?: string[];
45
+ content?: string;
46
+ redirectUrl?: string;
47
+ pushwooshJson?: string;
48
+ };
49
+ export type CreateCloudPageResponse = {
50
+ preset: CloudPage;
51
+ };
52
+ export type UpdateCloudPageRequest = {
53
+ code?: string;
54
+ name?: string;
55
+ categories?: string[];
56
+ content?: string;
57
+ redirectUrl?: string;
58
+ pushwooshJson?: string;
59
+ };
60
+ export type UpdateCloudPageResponse = {
61
+ preset: CloudPage;
62
+ };
63
+ export type DeleteCloudPageRequest = {
64
+ code?: string;
65
+ };
66
+ export type DeleteCloudPageResponse = {};
package/cloud_pages.js ADDED
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/data.js CHANGED
@@ -3954,6 +3954,224 @@ export const data = {
3954
3954
  }
3955
3955
  }
3956
3956
  },
3957
+ "pushwoosh.rpc_v2.cloud_pages.CloudPagesService": {
3958
+ "type": "S",
3959
+ "key": "cloudPages",
3960
+ "methods": {
3961
+ "List": {
3962
+ "request": "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest",
3963
+ "response": "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesResponse",
3964
+ "method": "get",
3965
+ "path": "/api/cloud_pages"
3966
+ },
3967
+ "Get": {
3968
+ "request": "pushwoosh.rpc_v2.cloud_pages.GetCloudPageRequest",
3969
+ "response": "pushwoosh.rpc_v2.cloud_pages.GetCloudPageResponse",
3970
+ "method": "get",
3971
+ "path": "/api/cloud_pages/{code}"
3972
+ },
3973
+ "Create": {
3974
+ "request": "pushwoosh.rpc_v2.cloud_pages.CreateCloudPageRequest",
3975
+ "response": "pushwoosh.rpc_v2.cloud_pages.CreateCloudPageResponse",
3976
+ "method": "post",
3977
+ "path": "/api/cloud_pages"
3978
+ },
3979
+ "Update": {
3980
+ "request": "pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageRequest",
3981
+ "response": "pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageResponse",
3982
+ "method": "put",
3983
+ "path": "/api/cloud_pages/{code}"
3984
+ },
3985
+ "Delete": {
3986
+ "request": "pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageRequest",
3987
+ "response": "pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageResponse",
3988
+ "method": "delete",
3989
+ "path": "/api/cloud_pages/{code}"
3990
+ }
3991
+ }
3992
+ },
3993
+ "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest.OrderBy": {
3994
+ "type": "E",
3995
+ "values": [
3996
+ "NAME",
3997
+ "CREATED",
3998
+ "UPDATED"
3999
+ ]
4000
+ },
4001
+ "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest.OrderDirection": {
4002
+ "type": "E",
4003
+ "values": [
4004
+ "ASC",
4005
+ "DESC"
4006
+ ]
4007
+ },
4008
+ "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest": {
4009
+ "type": "I",
4010
+ "fields": {
4011
+ "application": {
4012
+ "type": "string"
4013
+ },
4014
+ "orderBy": {
4015
+ "type": "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest.OrderBy"
4016
+ },
4017
+ "orderDirection": {
4018
+ "type": "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesRequest.OrderDirection"
4019
+ },
4020
+ "page": {
4021
+ "type": "number"
4022
+ },
4023
+ "perPage": {
4024
+ "type": "number"
4025
+ },
4026
+ "searchByName": {
4027
+ "type": "string"
4028
+ },
4029
+ "searchByCategory": {
4030
+ "type": "string",
4031
+ "array": true
4032
+ }
4033
+ }
4034
+ },
4035
+ "pushwoosh.rpc_v2.cloud_pages.CloudPage": {
4036
+ "type": "I",
4037
+ "fields": {
4038
+ "name": {
4039
+ "type": "string"
4040
+ },
4041
+ "code": {
4042
+ "type": "string"
4043
+ },
4044
+ "categories": {
4045
+ "type": "string",
4046
+ "array": true
4047
+ },
4048
+ "content": {
4049
+ "type": "string"
4050
+ },
4051
+ "redirectUrl": {
4052
+ "type": "string"
4053
+ },
4054
+ "pushwooshJson": {
4055
+ "type": "string"
4056
+ },
4057
+ "created": {
4058
+ "type": "Date"
4059
+ },
4060
+ "updated": {
4061
+ "type": "Date"
4062
+ }
4063
+ }
4064
+ },
4065
+ "pushwoosh.rpc_v2.cloud_pages.ListCloudPagesResponse": {
4066
+ "type": "I",
4067
+ "fields": {
4068
+ "presets": {
4069
+ "type": "pushwoosh.rpc_v2.cloud_pages.CloudPage",
4070
+ "array": true
4071
+ },
4072
+ "page": {
4073
+ "type": "number"
4074
+ },
4075
+ "perPage": {
4076
+ "type": "number"
4077
+ },
4078
+ "total": {
4079
+ "type": "number"
4080
+ }
4081
+ }
4082
+ },
4083
+ "pushwoosh.rpc_v2.cloud_pages.GetCloudPageRequest": {
4084
+ "type": "I",
4085
+ "fields": {
4086
+ "code": {
4087
+ "type": "string"
4088
+ }
4089
+ }
4090
+ },
4091
+ "pushwoosh.rpc_v2.cloud_pages.GetCloudPageResponse": {
4092
+ "type": "I",
4093
+ "fields": {
4094
+ "preset": {
4095
+ "type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
4096
+ }
4097
+ }
4098
+ },
4099
+ "pushwoosh.rpc_v2.cloud_pages.CreateCloudPageRequest": {
4100
+ "type": "I",
4101
+ "fields": {
4102
+ "application": {
4103
+ "type": "string"
4104
+ },
4105
+ "name": {
4106
+ "type": "string"
4107
+ },
4108
+ "categories": {
4109
+ "type": "string",
4110
+ "array": true
4111
+ },
4112
+ "content": {
4113
+ "type": "string"
4114
+ },
4115
+ "redirectUrl": {
4116
+ "type": "string"
4117
+ },
4118
+ "pushwooshJson": {
4119
+ "type": "string"
4120
+ }
4121
+ }
4122
+ },
4123
+ "pushwoosh.rpc_v2.cloud_pages.CreateCloudPageResponse": {
4124
+ "type": "I",
4125
+ "fields": {
4126
+ "preset": {
4127
+ "type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
4128
+ }
4129
+ }
4130
+ },
4131
+ "pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageRequest": {
4132
+ "type": "I",
4133
+ "fields": {
4134
+ "code": {
4135
+ "type": "string"
4136
+ },
4137
+ "name": {
4138
+ "type": "string"
4139
+ },
4140
+ "categories": {
4141
+ "type": "string",
4142
+ "array": true
4143
+ },
4144
+ "content": {
4145
+ "type": "string"
4146
+ },
4147
+ "redirectUrl": {
4148
+ "type": "string"
4149
+ },
4150
+ "pushwooshJson": {
4151
+ "type": "string"
4152
+ }
4153
+ }
4154
+ },
4155
+ "pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageResponse": {
4156
+ "type": "I",
4157
+ "fields": {
4158
+ "preset": {
4159
+ "type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
4160
+ }
4161
+ }
4162
+ },
4163
+ "pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageRequest": {
4164
+ "type": "I",
4165
+ "fields": {
4166
+ "code": {
4167
+ "type": "string"
4168
+ }
4169
+ }
4170
+ },
4171
+ "pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageResponse": {
4172
+ "type": "I",
4173
+ "fields": {}
4174
+ },
3957
4175
  "pushwoosh.rpc_v2.customer_journey.CustomerJourneyService": {
3958
4176
  "type": "S",
3959
4177
  "key": "customerJourney",
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ import { ApplicationsInfoService as pushwoosh_rpc_v2_applications_info_Applicati
13
13
  import { CampaignsService as pushwoosh_rpc_v2_campaigns_CampaignsService } from './campaigns';
14
14
  import { CategoriesService as pushwoosh_rpc_v2_categories_CategoriesService } from './categories';
15
15
  import { MessagingService as pushwoosh_channels_messagingApi_v2_MessagingService } from './pushwoosh_channels_messagingApi_v2';
16
+ import { CloudPagesService as pushwoosh_rpc_v2_cloud_pages_CloudPagesService } from './cloud_pages';
16
17
  import { CustomerJourneyService as pushwoosh_rpc_v2_customer_journey_CustomerJourneyService } from './customer_journey';
17
18
  import { DeeplinksService as pushwoosh_rpc_v2_deeplinks_DeeplinksService } from './deeplinks';
18
19
  import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './devices';
@@ -59,6 +60,7 @@ export type API = {
59
60
  campaigns: pushwoosh_rpc_v2_campaigns_CampaignsService;
60
61
  categories: pushwoosh_rpc_v2_categories_CategoriesService;
61
62
  messaging: pushwoosh_channels_messagingApi_v2_MessagingService;
63
+ cloudPages: pushwoosh_rpc_v2_cloud_pages_CloudPagesService;
62
64
  customerJourney: pushwoosh_rpc_v2_customer_journey_CustomerJourneyService;
63
65
  deeplinks: pushwoosh_rpc_v2_deeplinks_DeeplinksService;
64
66
  devices: pushwoosh_rpc_v2_devices_DevicesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.587",
3
+ "version": "0.1.589",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",