1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// @generated by xtask/generate_models.py — do not edit by hand.
// Source: https://github.com/GoHighLevel/highlevel-api-docs
// Doc comments are HighLevel's own field descriptions, reflowed verbatim, so
// they aren't held to rustdoc's markdown conventions.
#![allow(
missing_docs,
clippy::doc_lazy_continuation,
clippy::doc_overindented_list_items
)]
use serde::{Deserialize, Serialize};
/// `CreateRedirectParams` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateRedirectParams {
/// Required by the API.
#[serde(rename = "locationId")]
pub location_id: String,
/// Required by the API.
pub domain: String,
/// Required by the API.
pub path: String,
/// Required by the API.
pub target: String,
/// Allowed values: `funnel`, `website`, `url`, `all`.
/// Required by the API.
pub action: String,
}
/// `CreateRedirectResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct CreateRedirectResponseDTO {
/// Data containing details of the created redirect
/// Required by the API.
pub data: RedirectResponseDTO,
}
/// `DeleteRedirectResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct DeleteRedirectResponseDTO {
/// Status of the delete operation
/// Required by the API.
pub data: serde_json::Value,
}
/// `FunnelListResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelListResponseDTO {
/// Required by the API.
pub funnels: serde_json::Value,
/// Required by the API.
pub count: f64,
/// Required by the API.
#[serde(rename = "traceId")]
pub trace_id: String,
}
/// `FunnelPageCountResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelPageCountResponseDTO {
/// Required by the API.
pub count: f64,
}
/// `FunnelPageResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct FunnelPageResponseDTO {
/// Required by the API.
#[serde(rename = "_id")]
pub id: String,
/// Required by the API.
#[serde(rename = "locationId")]
pub location_id: String,
/// Required by the API.
#[serde(rename = "funnelId")]
pub funnel_id: String,
/// Required by the API.
pub name: String,
/// Required by the API.
#[serde(rename = "stepId")]
pub step_id: String,
/// Required by the API.
pub deleted: String,
/// Required by the API.
#[serde(rename = "updatedAt")]
pub updated_at: String,
}
/// `RedirectListResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RedirectListResponseDTO {
/// Object containing the count of redirects and an array of redirect data
/// Required by the API.
pub data: serde_json::Value,
}
/// `RedirectResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct RedirectResponseDTO {
/// Unique identifier of the redirect
/// Required by the API.
pub id: String,
/// Identifier of the location associated with the redirect
/// Required by the API.
#[serde(rename = "locationId")]
pub location_id: String,
/// Domain where the redirect occurs
/// Required by the API.
pub domain: String,
/// Original path that will be redirected
/// Required by the API.
pub path: String,
/// Lowercase version of the original path
/// Required by the API.
#[serde(rename = "pathLowercase")]
pub path_lowercase: String,
/// Type of redirect (e.g., Permanent, Temporary)
/// Required by the API.
#[serde(rename = "type")]
pub type_: String,
/// Target URL to which the original path will be redirected
/// Required by the API.
pub target: String,
/// Action performed by the redirect
/// Required by the API.
pub action: String,
}
/// `UpdateRedirectParams` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateRedirectParams {
/// Required by the API.
pub target: String,
/// Allowed values: `funnel`, `website`, `url`, `all`.
/// Required by the API.
pub action: String,
/// Required by the API.
#[serde(rename = "locationId")]
pub location_id: String,
}
/// `UpdateRedirectResponseDTO` from the GoHighLevel OpenAPI spec.
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct UpdateRedirectResponseDTO {
/// Data containing details of the updated redirect
/// Required by the API.
pub data: RedirectResponseDTO,
}