@pushwoosh/rpc-v2-http-api-data 0.1.586 → 0.1.588
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/cloud_pages.d.ts +63 -0
- package/cloud_pages.js +2 -0
- package/data.js +209 -0
- package/index.d.ts +2 -0
- package/package.json +1 -1
package/cloud_pages.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
created: Date;
|
|
26
|
+
updated: Date;
|
|
27
|
+
};
|
|
28
|
+
export type ListCloudPagesResponse = {
|
|
29
|
+
presets: CloudPage[];
|
|
30
|
+
page: number;
|
|
31
|
+
perPage: number;
|
|
32
|
+
total: number;
|
|
33
|
+
};
|
|
34
|
+
export type GetCloudPageRequest = {
|
|
35
|
+
code?: string;
|
|
36
|
+
};
|
|
37
|
+
export type GetCloudPageResponse = {
|
|
38
|
+
preset: CloudPage;
|
|
39
|
+
};
|
|
40
|
+
export type CreateCloudPageRequest = {
|
|
41
|
+
application?: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
categories?: string[];
|
|
44
|
+
content?: string;
|
|
45
|
+
redirectUrl?: string;
|
|
46
|
+
};
|
|
47
|
+
export type CreateCloudPageResponse = {
|
|
48
|
+
preset: CloudPage;
|
|
49
|
+
};
|
|
50
|
+
export type UpdateCloudPageRequest = {
|
|
51
|
+
code?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
categories?: string[];
|
|
54
|
+
content?: string;
|
|
55
|
+
redirectUrl?: string;
|
|
56
|
+
};
|
|
57
|
+
export type UpdateCloudPageResponse = {
|
|
58
|
+
preset: CloudPage;
|
|
59
|
+
};
|
|
60
|
+
export type DeleteCloudPageRequest = {
|
|
61
|
+
code?: string;
|
|
62
|
+
};
|
|
63
|
+
export type DeleteCloudPageResponse = {};
|
package/cloud_pages.js
ADDED
package/data.js
CHANGED
|
@@ -3954,6 +3954,215 @@ 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
|
+
"created": {
|
|
4055
|
+
"type": "Date"
|
|
4056
|
+
},
|
|
4057
|
+
"updated": {
|
|
4058
|
+
"type": "Date"
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
},
|
|
4062
|
+
"pushwoosh.rpc_v2.cloud_pages.ListCloudPagesResponse": {
|
|
4063
|
+
"type": "I",
|
|
4064
|
+
"fields": {
|
|
4065
|
+
"presets": {
|
|
4066
|
+
"type": "pushwoosh.rpc_v2.cloud_pages.CloudPage",
|
|
4067
|
+
"array": true
|
|
4068
|
+
},
|
|
4069
|
+
"page": {
|
|
4070
|
+
"type": "number"
|
|
4071
|
+
},
|
|
4072
|
+
"perPage": {
|
|
4073
|
+
"type": "number"
|
|
4074
|
+
},
|
|
4075
|
+
"total": {
|
|
4076
|
+
"type": "number"
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
},
|
|
4080
|
+
"pushwoosh.rpc_v2.cloud_pages.GetCloudPageRequest": {
|
|
4081
|
+
"type": "I",
|
|
4082
|
+
"fields": {
|
|
4083
|
+
"code": {
|
|
4084
|
+
"type": "string"
|
|
4085
|
+
}
|
|
4086
|
+
}
|
|
4087
|
+
},
|
|
4088
|
+
"pushwoosh.rpc_v2.cloud_pages.GetCloudPageResponse": {
|
|
4089
|
+
"type": "I",
|
|
4090
|
+
"fields": {
|
|
4091
|
+
"preset": {
|
|
4092
|
+
"type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
|
|
4093
|
+
}
|
|
4094
|
+
}
|
|
4095
|
+
},
|
|
4096
|
+
"pushwoosh.rpc_v2.cloud_pages.CreateCloudPageRequest": {
|
|
4097
|
+
"type": "I",
|
|
4098
|
+
"fields": {
|
|
4099
|
+
"application": {
|
|
4100
|
+
"type": "string"
|
|
4101
|
+
},
|
|
4102
|
+
"name": {
|
|
4103
|
+
"type": "string"
|
|
4104
|
+
},
|
|
4105
|
+
"categories": {
|
|
4106
|
+
"type": "string",
|
|
4107
|
+
"array": true
|
|
4108
|
+
},
|
|
4109
|
+
"content": {
|
|
4110
|
+
"type": "string"
|
|
4111
|
+
},
|
|
4112
|
+
"redirectUrl": {
|
|
4113
|
+
"type": "string"
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
},
|
|
4117
|
+
"pushwoosh.rpc_v2.cloud_pages.CreateCloudPageResponse": {
|
|
4118
|
+
"type": "I",
|
|
4119
|
+
"fields": {
|
|
4120
|
+
"preset": {
|
|
4121
|
+
"type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
|
|
4122
|
+
}
|
|
4123
|
+
}
|
|
4124
|
+
},
|
|
4125
|
+
"pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageRequest": {
|
|
4126
|
+
"type": "I",
|
|
4127
|
+
"fields": {
|
|
4128
|
+
"code": {
|
|
4129
|
+
"type": "string"
|
|
4130
|
+
},
|
|
4131
|
+
"name": {
|
|
4132
|
+
"type": "string"
|
|
4133
|
+
},
|
|
4134
|
+
"categories": {
|
|
4135
|
+
"type": "string",
|
|
4136
|
+
"array": true
|
|
4137
|
+
},
|
|
4138
|
+
"content": {
|
|
4139
|
+
"type": "string"
|
|
4140
|
+
},
|
|
4141
|
+
"redirectUrl": {
|
|
4142
|
+
"type": "string"
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
},
|
|
4146
|
+
"pushwoosh.rpc_v2.cloud_pages.UpdateCloudPageResponse": {
|
|
4147
|
+
"type": "I",
|
|
4148
|
+
"fields": {
|
|
4149
|
+
"preset": {
|
|
4150
|
+
"type": "pushwoosh.rpc_v2.cloud_pages.CloudPage"
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
4153
|
+
},
|
|
4154
|
+
"pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageRequest": {
|
|
4155
|
+
"type": "I",
|
|
4156
|
+
"fields": {
|
|
4157
|
+
"code": {
|
|
4158
|
+
"type": "string"
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
},
|
|
4162
|
+
"pushwoosh.rpc_v2.cloud_pages.DeleteCloudPageResponse": {
|
|
4163
|
+
"type": "I",
|
|
4164
|
+
"fields": {}
|
|
4165
|
+
},
|
|
3957
4166
|
"pushwoosh.rpc_v2.customer_journey.CustomerJourneyService": {
|
|
3958
4167
|
"type": "S",
|
|
3959
4168
|
"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;
|