@abella-bilhalba-engenharia/api-client 0.0.25 → 0.0.28
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/dist/index.cjs +55 -0
- package/dist/index.d.cts +331 -171
- package/dist/index.d.ts +331 -171
- package/dist/index.js +55 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115,6 +115,61 @@ var adminContract = {
|
|
|
115
115
|
},
|
|
116
116
|
summary: "Create a new client"
|
|
117
117
|
}
|
|
118
|
+
}),
|
|
119
|
+
plants: c2.router({
|
|
120
|
+
list: {
|
|
121
|
+
method: "GET",
|
|
122
|
+
path: "/plants",
|
|
123
|
+
headers: z3.object({
|
|
124
|
+
authorization: authorizationHeader
|
|
125
|
+
}),
|
|
126
|
+
query: z3.object({
|
|
127
|
+
page: z3.number().positive().optional(),
|
|
128
|
+
perPage: z3.number().positive().optional()
|
|
129
|
+
}),
|
|
130
|
+
responses: {
|
|
131
|
+
200: z3.object({
|
|
132
|
+
data: z3.array(
|
|
133
|
+
z3.object({
|
|
134
|
+
name: z3.string(),
|
|
135
|
+
id: z3.uuidv4(),
|
|
136
|
+
installationCode: z3.int().min(1).max(9999999999),
|
|
137
|
+
client: z3.object({
|
|
138
|
+
name: z3.string(),
|
|
139
|
+
id: z3.uuidv4()
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
)
|
|
143
|
+
})
|
|
144
|
+
},
|
|
145
|
+
summary: "List all plants"
|
|
146
|
+
},
|
|
147
|
+
store: {
|
|
148
|
+
method: "POST",
|
|
149
|
+
path: "/plants",
|
|
150
|
+
headers: z3.object({
|
|
151
|
+
authorization: authorizationHeader
|
|
152
|
+
}),
|
|
153
|
+
body: z3.object({
|
|
154
|
+
name: z3.string(),
|
|
155
|
+
clientId: z3.uuidv4(),
|
|
156
|
+
installationCode: z3.int().min(1).max(9999999999)
|
|
157
|
+
}),
|
|
158
|
+
responses: {
|
|
159
|
+
201: z3.object({
|
|
160
|
+
data: z3.object({
|
|
161
|
+
name: z3.string(),
|
|
162
|
+
id: z3.uuidv4(),
|
|
163
|
+
installationCode: z3.int().min(1).max(9999999999),
|
|
164
|
+
client: z3.object({
|
|
165
|
+
name: z3.string(),
|
|
166
|
+
id: z3.uuidv4()
|
|
167
|
+
})
|
|
168
|
+
})
|
|
169
|
+
})
|
|
170
|
+
},
|
|
171
|
+
summary: "Create a new client"
|
|
172
|
+
}
|
|
118
173
|
})
|
|
119
174
|
};
|
|
120
175
|
|
package/package.json
CHANGED