benji-sdk 0.1.0 → 0.1.2
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/README.md +41 -141
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/client.gen.d.ts.map +1 -1
- package/dist/client/client/client.gen.js +46 -46
- package/dist/client/client/index.d.ts +8 -8
- package/dist/client/client/index.d.ts.map +1 -1
- package/dist/client/client/index.js +5 -5
- package/dist/client/client/types.gen.d.ts +18 -18
- package/dist/client/client/types.gen.d.ts.map +1 -1
- package/dist/client/client/utils.gen.d.ts +3 -3
- package/dist/client/client/utils.gen.d.ts.map +1 -1
- package/dist/client/client/utils.gen.js +34 -34
- package/dist/client/client.gen.d.ts +3 -3
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +2 -2
- package/dist/client/core/auth.gen.d.ts +3 -3
- package/dist/client/core/auth.gen.js +3 -3
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/client/core/bodySerializer.gen.js +3 -3
- package/dist/client/core/params.gen.d.ts +3 -3
- package/dist/client/core/params.gen.js +9 -9
- package/dist/client/core/pathSerializer.gen.d.ts +3 -3
- package/dist/client/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/client/core/pathSerializer.gen.js +36 -36
- package/dist/client/core/queryKeySerializer.gen.js +11 -11
- package/dist/client/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/client/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/client/core/serverSentEvents.gen.js +19 -19
- package/dist/client/core/types.gen.d.ts +4 -4
- package/dist/client/core/types.gen.d.ts.map +1 -1
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/core/utils.gen.d.ts.map +1 -1
- package/dist/client/core/utils.gen.js +17 -17
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/sdk.gen.d.ts +1067 -157
- package/dist/client/sdk.gen.d.ts.map +1 -1
- package/dist/client/sdk.gen.js +2907 -769
- package/dist/client/types.gen.d.ts +10703 -4298
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/env.d.ts +10 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +18 -0
- package/dist/errors.d.ts +22 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +21 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/method-metadata.gen.d.ts +2 -0
- package/dist/method-metadata.gen.d.ts.map +1 -0
- package/dist/method-metadata.gen.js +2 -0
- package/dist/methods.d.ts +27 -0
- package/dist/methods.d.ts.map +1 -0
- package/dist/methods.js +147 -0
- package/dist/wrapper.d.ts +20 -0
- package/dist/wrapper.d.ts.map +1 -0
- package/dist/wrapper.js +49 -0
- package/package.json +10 -6
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { client } from
|
|
2
|
+
import { client } from "./client.gen.js";
|
|
3
3
|
export class Mood {
|
|
4
4
|
/**
|
|
5
5
|
* Get mood log
|
|
@@ -8,13 +8,13 @@ export class Mood {
|
|
|
8
8
|
*/
|
|
9
9
|
static moodGet(options) {
|
|
10
10
|
return (options.client ?? client).post({
|
|
11
|
-
security: [{ name:
|
|
12
|
-
url:
|
|
11
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
12
|
+
url: "/mood/get",
|
|
13
13
|
...options,
|
|
14
14
|
headers: {
|
|
15
|
-
|
|
16
|
-
...options.headers
|
|
17
|
-
}
|
|
15
|
+
"Content-Type": "application/json",
|
|
16
|
+
...options.headers,
|
|
17
|
+
},
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -24,13 +24,13 @@ export class Mood {
|
|
|
24
24
|
*/
|
|
25
25
|
static moodList(options) {
|
|
26
26
|
return (options.client ?? client).post({
|
|
27
|
-
security: [{ name:
|
|
28
|
-
url:
|
|
27
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
28
|
+
url: "/mood/list",
|
|
29
29
|
...options,
|
|
30
30
|
headers: {
|
|
31
|
-
|
|
32
|
-
...options.headers
|
|
33
|
-
}
|
|
31
|
+
"Content-Type": "application/json",
|
|
32
|
+
...options.headers,
|
|
33
|
+
},
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
@@ -40,13 +40,13 @@ export class Mood {
|
|
|
40
40
|
*/
|
|
41
41
|
static moodGetForWidget(options) {
|
|
42
42
|
return (options.client ?? client).post({
|
|
43
|
-
security: [{ name:
|
|
44
|
-
url:
|
|
43
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
44
|
+
url: "/mood/widget",
|
|
45
45
|
...options,
|
|
46
46
|
headers: {
|
|
47
|
-
|
|
48
|
-
...options.headers
|
|
49
|
-
}
|
|
47
|
+
"Content-Type": "application/json",
|
|
48
|
+
...options.headers,
|
|
49
|
+
},
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -56,13 +56,13 @@ export class Mood {
|
|
|
56
56
|
*/
|
|
57
57
|
static moodCreate(options) {
|
|
58
58
|
return (options.client ?? client).post({
|
|
59
|
-
security: [{ name:
|
|
60
|
-
url:
|
|
59
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
60
|
+
url: "/mood",
|
|
61
61
|
...options,
|
|
62
62
|
headers: {
|
|
63
|
-
|
|
64
|
-
...options.headers
|
|
65
|
-
}
|
|
63
|
+
"Content-Type": "application/json",
|
|
64
|
+
...options.headers,
|
|
65
|
+
},
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -72,13 +72,13 @@ export class Mood {
|
|
|
72
72
|
*/
|
|
73
73
|
static moodUpdate(options) {
|
|
74
74
|
return (options.client ?? client).post({
|
|
75
|
-
security: [{ name:
|
|
76
|
-
url:
|
|
75
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
76
|
+
url: "/mood/update",
|
|
77
77
|
...options,
|
|
78
78
|
headers: {
|
|
79
|
-
|
|
80
|
-
...options.headers
|
|
81
|
-
}
|
|
79
|
+
"Content-Type": "application/json",
|
|
80
|
+
...options.headers,
|
|
81
|
+
},
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
@@ -88,13 +88,13 @@ export class Mood {
|
|
|
88
88
|
*/
|
|
89
89
|
static moodDelete(options) {
|
|
90
90
|
return (options.client ?? client).post({
|
|
91
|
-
security: [{ name:
|
|
92
|
-
url:
|
|
91
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
92
|
+
url: "/mood/delete",
|
|
93
93
|
...options,
|
|
94
94
|
headers: {
|
|
95
|
-
|
|
96
|
-
...options.headers
|
|
97
|
-
}
|
|
95
|
+
"Content-Type": "application/json",
|
|
96
|
+
...options.headers,
|
|
97
|
+
},
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
@@ -104,13 +104,13 @@ export class Mood {
|
|
|
104
104
|
*/
|
|
105
105
|
static moodDeleteMany(options) {
|
|
106
106
|
return (options.client ?? client).post({
|
|
107
|
-
security: [{ name:
|
|
108
|
-
url:
|
|
107
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
108
|
+
url: "/mood/delete-many",
|
|
109
109
|
...options,
|
|
110
110
|
headers: {
|
|
111
|
-
|
|
112
|
-
...options.headers
|
|
113
|
-
}
|
|
111
|
+
"Content-Type": "application/json",
|
|
112
|
+
...options.headers,
|
|
113
|
+
},
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
@@ -120,13 +120,13 @@ export class Mood {
|
|
|
120
120
|
*/
|
|
121
121
|
static moodDeleteAll(options) {
|
|
122
122
|
return (options.client ?? client).post({
|
|
123
|
-
security: [{ name:
|
|
124
|
-
url:
|
|
123
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
124
|
+
url: "/mood/delete-all",
|
|
125
125
|
...options,
|
|
126
126
|
headers: {
|
|
127
|
-
|
|
128
|
-
...options.headers
|
|
129
|
-
}
|
|
127
|
+
"Content-Type": "application/json",
|
|
128
|
+
...options.headers,
|
|
129
|
+
},
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -138,9 +138,9 @@ export class PainEvents {
|
|
|
138
138
|
*/
|
|
139
139
|
static painEventsBodyParts(options) {
|
|
140
140
|
return (options?.client ?? client).post({
|
|
141
|
-
security: [{ name:
|
|
142
|
-
url:
|
|
143
|
-
...options
|
|
141
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
142
|
+
url: "/pain-events/body-parts/list",
|
|
143
|
+
...options,
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
@@ -150,9 +150,9 @@ export class PainEvents {
|
|
|
150
150
|
*/
|
|
151
151
|
static painEventsRecentBodyParts(options) {
|
|
152
152
|
return (options?.client ?? client).post({
|
|
153
|
-
security: [{ name:
|
|
154
|
-
url:
|
|
155
|
-
...options
|
|
153
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
154
|
+
url: "/pain-events/recent-body-parts",
|
|
155
|
+
...options,
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
@@ -162,13 +162,13 @@ export class PainEvents {
|
|
|
162
162
|
*/
|
|
163
163
|
static painEventsGet(options) {
|
|
164
164
|
return (options.client ?? client).post({
|
|
165
|
-
security: [{ name:
|
|
166
|
-
url:
|
|
165
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
166
|
+
url: "/pain-events/get",
|
|
167
167
|
...options,
|
|
168
168
|
headers: {
|
|
169
|
-
|
|
170
|
-
...options.headers
|
|
171
|
-
}
|
|
169
|
+
"Content-Type": "application/json",
|
|
170
|
+
...options.headers,
|
|
171
|
+
},
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
@@ -178,13 +178,13 @@ export class PainEvents {
|
|
|
178
178
|
*/
|
|
179
179
|
static painEventsList(options) {
|
|
180
180
|
return (options.client ?? client).post({
|
|
181
|
-
security: [{ name:
|
|
182
|
-
url:
|
|
181
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
182
|
+
url: "/pain-events/list",
|
|
183
183
|
...options,
|
|
184
184
|
headers: {
|
|
185
|
-
|
|
186
|
-
...options.headers
|
|
187
|
-
}
|
|
185
|
+
"Content-Type": "application/json",
|
|
186
|
+
...options.headers,
|
|
187
|
+
},
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
@@ -194,13 +194,13 @@ export class PainEvents {
|
|
|
194
194
|
*/
|
|
195
195
|
static painEventsCreate(options) {
|
|
196
196
|
return (options.client ?? client).post({
|
|
197
|
-
security: [{ name:
|
|
198
|
-
url:
|
|
197
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
198
|
+
url: "/pain-events",
|
|
199
199
|
...options,
|
|
200
200
|
headers: {
|
|
201
|
-
|
|
202
|
-
...options.headers
|
|
203
|
-
}
|
|
201
|
+
"Content-Type": "application/json",
|
|
202
|
+
...options.headers,
|
|
203
|
+
},
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
@@ -210,13 +210,13 @@ export class PainEvents {
|
|
|
210
210
|
*/
|
|
211
211
|
static painEventsUpdate(options) {
|
|
212
212
|
return (options.client ?? client).post({
|
|
213
|
-
security: [{ name:
|
|
214
|
-
url:
|
|
213
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
214
|
+
url: "/pain-events/update",
|
|
215
215
|
...options,
|
|
216
216
|
headers: {
|
|
217
|
-
|
|
218
|
-
...options.headers
|
|
219
|
-
}
|
|
217
|
+
"Content-Type": "application/json",
|
|
218
|
+
...options.headers,
|
|
219
|
+
},
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
/**
|
|
@@ -226,13 +226,13 @@ export class PainEvents {
|
|
|
226
226
|
*/
|
|
227
227
|
static painEventsDelete(options) {
|
|
228
228
|
return (options.client ?? client).post({
|
|
229
|
-
security: [{ name:
|
|
230
|
-
url:
|
|
229
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
230
|
+
url: "/pain-events/delete",
|
|
231
231
|
...options,
|
|
232
232
|
headers: {
|
|
233
|
-
|
|
234
|
-
...options.headers
|
|
235
|
-
}
|
|
233
|
+
"Content-Type": "application/json",
|
|
234
|
+
...options.headers,
|
|
235
|
+
},
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
@@ -242,13 +242,13 @@ export class PainEvents {
|
|
|
242
242
|
*/
|
|
243
243
|
static painEventsDeleteMany(options) {
|
|
244
244
|
return (options.client ?? client).post({
|
|
245
|
-
security: [{ name:
|
|
246
|
-
url:
|
|
245
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
246
|
+
url: "/pain-events/delete-many",
|
|
247
247
|
...options,
|
|
248
248
|
headers: {
|
|
249
|
-
|
|
250
|
-
...options.headers
|
|
251
|
-
}
|
|
249
|
+
"Content-Type": "application/json",
|
|
250
|
+
...options.headers,
|
|
251
|
+
},
|
|
252
252
|
});
|
|
253
253
|
}
|
|
254
254
|
}
|
|
@@ -260,13 +260,13 @@ export class Trips {
|
|
|
260
260
|
*/
|
|
261
261
|
static tripsGet(options) {
|
|
262
262
|
return (options.client ?? client).post({
|
|
263
|
-
security: [{ name:
|
|
264
|
-
url:
|
|
263
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
264
|
+
url: "/trips/get",
|
|
265
265
|
...options,
|
|
266
266
|
headers: {
|
|
267
|
-
|
|
268
|
-
...options.headers
|
|
269
|
-
}
|
|
267
|
+
"Content-Type": "application/json",
|
|
268
|
+
...options.headers,
|
|
269
|
+
},
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
@@ -276,9 +276,9 @@ export class Trips {
|
|
|
276
276
|
*/
|
|
277
277
|
static tripsList(options) {
|
|
278
278
|
return (options?.client ?? client).post({
|
|
279
|
-
security: [{ name:
|
|
280
|
-
url:
|
|
281
|
-
...options
|
|
279
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
280
|
+
url: "/trips/list",
|
|
281
|
+
...options,
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
@@ -288,13 +288,13 @@ export class Trips {
|
|
|
288
288
|
*/
|
|
289
289
|
static tripsCreate(options) {
|
|
290
290
|
return (options.client ?? client).post({
|
|
291
|
-
security: [{ name:
|
|
292
|
-
url:
|
|
291
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
292
|
+
url: "/trips",
|
|
293
293
|
...options,
|
|
294
294
|
headers: {
|
|
295
|
-
|
|
296
|
-
...options.headers
|
|
297
|
-
}
|
|
295
|
+
"Content-Type": "application/json",
|
|
296
|
+
...options.headers,
|
|
297
|
+
},
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
@@ -304,13 +304,13 @@ export class Trips {
|
|
|
304
304
|
*/
|
|
305
305
|
static tripsUpdate(options) {
|
|
306
306
|
return (options.client ?? client).post({
|
|
307
|
-
security: [{ name:
|
|
308
|
-
url:
|
|
307
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
308
|
+
url: "/trips/update",
|
|
309
309
|
...options,
|
|
310
310
|
headers: {
|
|
311
|
-
|
|
312
|
-
...options.headers
|
|
313
|
-
}
|
|
311
|
+
"Content-Type": "application/json",
|
|
312
|
+
...options.headers,
|
|
313
|
+
},
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
@@ -320,13 +320,13 @@ export class Trips {
|
|
|
320
320
|
*/
|
|
321
321
|
static tripsDelete(options) {
|
|
322
322
|
return (options.client ?? client).post({
|
|
323
|
-
security: [{ name:
|
|
324
|
-
url:
|
|
323
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
324
|
+
url: "/trips/delete",
|
|
325
325
|
...options,
|
|
326
326
|
headers: {
|
|
327
|
-
|
|
328
|
-
...options.headers
|
|
329
|
-
}
|
|
327
|
+
"Content-Type": "application/json",
|
|
328
|
+
...options.headers,
|
|
329
|
+
},
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
@@ -336,13 +336,13 @@ export class Trips {
|
|
|
336
336
|
*/
|
|
337
337
|
static tripsDeleteMany(options) {
|
|
338
338
|
return (options.client ?? client).post({
|
|
339
|
-
security: [{ name:
|
|
340
|
-
url:
|
|
339
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
340
|
+
url: "/trips/delete-many",
|
|
341
341
|
...options,
|
|
342
342
|
headers: {
|
|
343
|
-
|
|
344
|
-
...options.headers
|
|
345
|
-
}
|
|
343
|
+
"Content-Type": "application/json",
|
|
344
|
+
...options.headers,
|
|
345
|
+
},
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
}
|
|
@@ -354,13 +354,13 @@ export class PackingActivities {
|
|
|
354
354
|
*/
|
|
355
355
|
static packingActivitiesGet(options) {
|
|
356
356
|
return (options.client ?? client).post({
|
|
357
|
-
security: [{ name:
|
|
358
|
-
url:
|
|
357
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
358
|
+
url: "/packing-activities/get",
|
|
359
359
|
...options,
|
|
360
360
|
headers: {
|
|
361
|
-
|
|
362
|
-
...options.headers
|
|
363
|
-
}
|
|
361
|
+
"Content-Type": "application/json",
|
|
362
|
+
...options.headers,
|
|
363
|
+
},
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
@@ -370,9 +370,9 @@ export class PackingActivities {
|
|
|
370
370
|
*/
|
|
371
371
|
static packingActivitiesList(options) {
|
|
372
372
|
return (options?.client ?? client).post({
|
|
373
|
-
security: [{ name:
|
|
374
|
-
url:
|
|
375
|
-
...options
|
|
373
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
374
|
+
url: "/packing-activities/list",
|
|
375
|
+
...options,
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
@@ -382,13 +382,13 @@ export class PackingActivities {
|
|
|
382
382
|
*/
|
|
383
383
|
static packingActivitiesCreate(options) {
|
|
384
384
|
return (options.client ?? client).post({
|
|
385
|
-
security: [{ name:
|
|
386
|
-
url:
|
|
385
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
386
|
+
url: "/packing-activities",
|
|
387
387
|
...options,
|
|
388
388
|
headers: {
|
|
389
|
-
|
|
390
|
-
...options.headers
|
|
391
|
-
}
|
|
389
|
+
"Content-Type": "application/json",
|
|
390
|
+
...options.headers,
|
|
391
|
+
},
|
|
392
392
|
});
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
@@ -398,13 +398,13 @@ export class PackingActivities {
|
|
|
398
398
|
*/
|
|
399
399
|
static packingActivitiesUpdate(options) {
|
|
400
400
|
return (options.client ?? client).post({
|
|
401
|
-
security: [{ name:
|
|
402
|
-
url:
|
|
401
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
402
|
+
url: "/packing-activities/update",
|
|
403
403
|
...options,
|
|
404
404
|
headers: {
|
|
405
|
-
|
|
406
|
-
...options.headers
|
|
407
|
-
}
|
|
405
|
+
"Content-Type": "application/json",
|
|
406
|
+
...options.headers,
|
|
407
|
+
},
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
@@ -414,13 +414,13 @@ export class PackingActivities {
|
|
|
414
414
|
*/
|
|
415
415
|
static packingActivitiesDelete(options) {
|
|
416
416
|
return (options.client ?? client).post({
|
|
417
|
-
security: [{ name:
|
|
418
|
-
url:
|
|
417
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
418
|
+
url: "/packing-activities/delete",
|
|
419
419
|
...options,
|
|
420
420
|
headers: {
|
|
421
|
-
|
|
422
|
-
...options.headers
|
|
423
|
-
}
|
|
421
|
+
"Content-Type": "application/json",
|
|
422
|
+
...options.headers,
|
|
423
|
+
},
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
@@ -430,13 +430,13 @@ export class PackingActivities {
|
|
|
430
430
|
*/
|
|
431
431
|
static packingActivitiesDeleteMany(options) {
|
|
432
432
|
return (options.client ?? client).post({
|
|
433
|
-
security: [{ name:
|
|
434
|
-
url:
|
|
433
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
434
|
+
url: "/packing-activities/delete-many",
|
|
435
435
|
...options,
|
|
436
436
|
headers: {
|
|
437
|
-
|
|
438
|
-
...options.headers
|
|
439
|
-
}
|
|
437
|
+
"Content-Type": "application/json",
|
|
438
|
+
...options.headers,
|
|
439
|
+
},
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
@@ -446,13 +446,13 @@ export class PackingActivities {
|
|
|
446
446
|
*/
|
|
447
447
|
static packingActivitiesExists(options) {
|
|
448
448
|
return (options.client ?? client).post({
|
|
449
|
-
security: [{ name:
|
|
450
|
-
url:
|
|
449
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
450
|
+
url: "/packing-activities/exists",
|
|
451
451
|
...options,
|
|
452
452
|
headers: {
|
|
453
|
-
|
|
454
|
-
...options.headers
|
|
455
|
-
}
|
|
453
|
+
"Content-Type": "application/json",
|
|
454
|
+
...options.headers,
|
|
455
|
+
},
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -464,13 +464,13 @@ export class PackingItems {
|
|
|
464
464
|
*/
|
|
465
465
|
static packingItemsGet(options) {
|
|
466
466
|
return (options.client ?? client).post({
|
|
467
|
-
security: [{ name:
|
|
468
|
-
url:
|
|
467
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
468
|
+
url: "/packing-items/get",
|
|
469
469
|
...options,
|
|
470
470
|
headers: {
|
|
471
|
-
|
|
472
|
-
...options.headers
|
|
473
|
-
}
|
|
471
|
+
"Content-Type": "application/json",
|
|
472
|
+
...options.headers,
|
|
473
|
+
},
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
@@ -480,13 +480,13 @@ export class PackingItems {
|
|
|
480
480
|
*/
|
|
481
481
|
static packingItemsList(options) {
|
|
482
482
|
return (options?.client ?? client).post({
|
|
483
|
-
security: [{ name:
|
|
484
|
-
url:
|
|
483
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
484
|
+
url: "/packing-items/list",
|
|
485
485
|
...options,
|
|
486
486
|
headers: {
|
|
487
|
-
|
|
488
|
-
...options?.headers
|
|
489
|
-
}
|
|
487
|
+
"Content-Type": "application/json",
|
|
488
|
+
...options?.headers,
|
|
489
|
+
},
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
/**
|
|
@@ -496,13 +496,13 @@ export class PackingItems {
|
|
|
496
496
|
*/
|
|
497
497
|
static packingItemsCreate(options) {
|
|
498
498
|
return (options.client ?? client).post({
|
|
499
|
-
security: [{ name:
|
|
500
|
-
url:
|
|
499
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
500
|
+
url: "/packing-items",
|
|
501
501
|
...options,
|
|
502
502
|
headers: {
|
|
503
|
-
|
|
504
|
-
...options.headers
|
|
505
|
-
}
|
|
503
|
+
"Content-Type": "application/json",
|
|
504
|
+
...options.headers,
|
|
505
|
+
},
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
@@ -512,13 +512,13 @@ export class PackingItems {
|
|
|
512
512
|
*/
|
|
513
513
|
static packingItemsUpdate(options) {
|
|
514
514
|
return (options.client ?? client).post({
|
|
515
|
-
security: [{ name:
|
|
516
|
-
url:
|
|
515
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
516
|
+
url: "/packing-items/update",
|
|
517
517
|
...options,
|
|
518
518
|
headers: {
|
|
519
|
-
|
|
520
|
-
...options.headers
|
|
521
|
-
}
|
|
519
|
+
"Content-Type": "application/json",
|
|
520
|
+
...options.headers,
|
|
521
|
+
},
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
524
|
/**
|
|
@@ -528,13 +528,13 @@ export class PackingItems {
|
|
|
528
528
|
*/
|
|
529
529
|
static packingItemsDelete(options) {
|
|
530
530
|
return (options.client ?? client).post({
|
|
531
|
-
security: [{ name:
|
|
532
|
-
url:
|
|
531
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
532
|
+
url: "/packing-items/delete",
|
|
533
533
|
...options,
|
|
534
534
|
headers: {
|
|
535
|
-
|
|
536
|
-
...options.headers
|
|
537
|
-
}
|
|
535
|
+
"Content-Type": "application/json",
|
|
536
|
+
...options.headers,
|
|
537
|
+
},
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
540
|
/**
|
|
@@ -544,13 +544,13 @@ export class PackingItems {
|
|
|
544
544
|
*/
|
|
545
545
|
static packingItemsDeleteMany(options) {
|
|
546
546
|
return (options.client ?? client).post({
|
|
547
|
-
security: [{ name:
|
|
548
|
-
url:
|
|
547
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
548
|
+
url: "/packing-items/delete-many",
|
|
549
549
|
...options,
|
|
550
550
|
headers: {
|
|
551
|
-
|
|
552
|
-
...options.headers
|
|
553
|
-
}
|
|
551
|
+
"Content-Type": "application/json",
|
|
552
|
+
...options.headers,
|
|
553
|
+
},
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -562,13 +562,13 @@ export class Transports {
|
|
|
562
562
|
*/
|
|
563
563
|
static transportsGet(options) {
|
|
564
564
|
return (options.client ?? client).post({
|
|
565
|
-
security: [{ name:
|
|
566
|
-
url:
|
|
565
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
566
|
+
url: "/transports/get",
|
|
567
567
|
...options,
|
|
568
568
|
headers: {
|
|
569
|
-
|
|
570
|
-
...options.headers
|
|
571
|
-
}
|
|
569
|
+
"Content-Type": "application/json",
|
|
570
|
+
...options.headers,
|
|
571
|
+
},
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
@@ -578,13 +578,13 @@ export class Transports {
|
|
|
578
578
|
*/
|
|
579
579
|
static transportsList(options) {
|
|
580
580
|
return (options?.client ?? client).post({
|
|
581
|
-
security: [{ name:
|
|
582
|
-
url:
|
|
581
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
582
|
+
url: "/transports/list",
|
|
583
583
|
...options,
|
|
584
584
|
headers: {
|
|
585
|
-
|
|
586
|
-
...options?.headers
|
|
587
|
-
}
|
|
585
|
+
"Content-Type": "application/json",
|
|
586
|
+
...options?.headers,
|
|
587
|
+
},
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
/**
|
|
@@ -594,13 +594,13 @@ export class Transports {
|
|
|
594
594
|
*/
|
|
595
595
|
static transportsCreate(options) {
|
|
596
596
|
return (options.client ?? client).post({
|
|
597
|
-
security: [{ name:
|
|
598
|
-
url:
|
|
597
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
598
|
+
url: "/transports",
|
|
599
599
|
...options,
|
|
600
600
|
headers: {
|
|
601
|
-
|
|
602
|
-
...options.headers
|
|
603
|
-
}
|
|
601
|
+
"Content-Type": "application/json",
|
|
602
|
+
...options.headers,
|
|
603
|
+
},
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
/**
|
|
@@ -610,13 +610,13 @@ export class Transports {
|
|
|
610
610
|
*/
|
|
611
611
|
static transportsUpdate(options) {
|
|
612
612
|
return (options.client ?? client).post({
|
|
613
|
-
security: [{ name:
|
|
614
|
-
url:
|
|
613
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
614
|
+
url: "/transports/update",
|
|
615
615
|
...options,
|
|
616
616
|
headers: {
|
|
617
|
-
|
|
618
|
-
...options.headers
|
|
619
|
-
}
|
|
617
|
+
"Content-Type": "application/json",
|
|
618
|
+
...options.headers,
|
|
619
|
+
},
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
/**
|
|
@@ -626,13 +626,13 @@ export class Transports {
|
|
|
626
626
|
*/
|
|
627
627
|
static transportsDelete(options) {
|
|
628
628
|
return (options.client ?? client).post({
|
|
629
|
-
security: [{ name:
|
|
630
|
-
url:
|
|
629
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
630
|
+
url: "/transports/delete",
|
|
631
631
|
...options,
|
|
632
632
|
headers: {
|
|
633
|
-
|
|
634
|
-
...options.headers
|
|
635
|
-
}
|
|
633
|
+
"Content-Type": "application/json",
|
|
634
|
+
...options.headers,
|
|
635
|
+
},
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
638
|
/**
|
|
@@ -642,13 +642,13 @@ export class Transports {
|
|
|
642
642
|
*/
|
|
643
643
|
static transportsDeleteMany(options) {
|
|
644
644
|
return (options.client ?? client).post({
|
|
645
|
-
security: [{ name:
|
|
646
|
-
url:
|
|
645
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
646
|
+
url: "/transports/delete-many",
|
|
647
647
|
...options,
|
|
648
648
|
headers: {
|
|
649
|
-
|
|
650
|
-
...options.headers
|
|
651
|
-
}
|
|
649
|
+
"Content-Type": "application/json",
|
|
650
|
+
...options.headers,
|
|
651
|
+
},
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
/**
|
|
@@ -658,13 +658,13 @@ export class Transports {
|
|
|
658
658
|
*/
|
|
659
659
|
static transportsExists(options) {
|
|
660
660
|
return (options.client ?? client).post({
|
|
661
|
-
security: [{ name:
|
|
662
|
-
url:
|
|
661
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
662
|
+
url: "/transports/exists",
|
|
663
663
|
...options,
|
|
664
664
|
headers: {
|
|
665
|
-
|
|
666
|
-
...options.headers
|
|
667
|
-
}
|
|
665
|
+
"Content-Type": "application/json",
|
|
666
|
+
...options.headers,
|
|
667
|
+
},
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
}
|
|
@@ -676,13 +676,13 @@ export class Stays {
|
|
|
676
676
|
*/
|
|
677
677
|
static staysGet(options) {
|
|
678
678
|
return (options.client ?? client).post({
|
|
679
|
-
security: [{ name:
|
|
680
|
-
url:
|
|
679
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
680
|
+
url: "/stays/get",
|
|
681
681
|
...options,
|
|
682
682
|
headers: {
|
|
683
|
-
|
|
684
|
-
...options.headers
|
|
685
|
-
}
|
|
683
|
+
"Content-Type": "application/json",
|
|
684
|
+
...options.headers,
|
|
685
|
+
},
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
/**
|
|
@@ -692,13 +692,13 @@ export class Stays {
|
|
|
692
692
|
*/
|
|
693
693
|
static staysList(options) {
|
|
694
694
|
return (options?.client ?? client).post({
|
|
695
|
-
security: [{ name:
|
|
696
|
-
url:
|
|
695
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
696
|
+
url: "/stays/list",
|
|
697
697
|
...options,
|
|
698
698
|
headers: {
|
|
699
|
-
|
|
700
|
-
...options?.headers
|
|
701
|
-
}
|
|
699
|
+
"Content-Type": "application/json",
|
|
700
|
+
...options?.headers,
|
|
701
|
+
},
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
/**
|
|
@@ -708,13 +708,13 @@ export class Stays {
|
|
|
708
708
|
*/
|
|
709
709
|
static staysCreate(options) {
|
|
710
710
|
return (options.client ?? client).post({
|
|
711
|
-
security: [{ name:
|
|
712
|
-
url:
|
|
711
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
712
|
+
url: "/stays",
|
|
713
713
|
...options,
|
|
714
714
|
headers: {
|
|
715
|
-
|
|
716
|
-
...options.headers
|
|
717
|
-
}
|
|
715
|
+
"Content-Type": "application/json",
|
|
716
|
+
...options.headers,
|
|
717
|
+
},
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
@@ -724,13 +724,13 @@ export class Stays {
|
|
|
724
724
|
*/
|
|
725
725
|
static staysUpdate(options) {
|
|
726
726
|
return (options.client ?? client).post({
|
|
727
|
-
security: [{ name:
|
|
728
|
-
url:
|
|
727
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
728
|
+
url: "/stays/update",
|
|
729
729
|
...options,
|
|
730
730
|
headers: {
|
|
731
|
-
|
|
732
|
-
...options.headers
|
|
733
|
-
}
|
|
731
|
+
"Content-Type": "application/json",
|
|
732
|
+
...options.headers,
|
|
733
|
+
},
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
/**
|
|
@@ -740,13 +740,13 @@ export class Stays {
|
|
|
740
740
|
*/
|
|
741
741
|
static staysDelete(options) {
|
|
742
742
|
return (options.client ?? client).post({
|
|
743
|
-
security: [{ name:
|
|
744
|
-
url:
|
|
743
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
744
|
+
url: "/stays/delete",
|
|
745
745
|
...options,
|
|
746
746
|
headers: {
|
|
747
|
-
|
|
748
|
-
...options.headers
|
|
749
|
-
}
|
|
747
|
+
"Content-Type": "application/json",
|
|
748
|
+
...options.headers,
|
|
749
|
+
},
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
@@ -756,13 +756,111 @@ export class Stays {
|
|
|
756
756
|
*/
|
|
757
757
|
static staysDeleteMany(options) {
|
|
758
758
|
return (options.client ?? client).post({
|
|
759
|
-
security: [{ name:
|
|
760
|
-
url:
|
|
759
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
760
|
+
url: "/stays/delete-many",
|
|
761
|
+
...options,
|
|
762
|
+
headers: {
|
|
763
|
+
"Content-Type": "application/json",
|
|
764
|
+
...options.headers,
|
|
765
|
+
},
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
export class PlannerEvents {
|
|
770
|
+
/**
|
|
771
|
+
* Get planner event
|
|
772
|
+
*
|
|
773
|
+
* Get a single planner event by ID
|
|
774
|
+
*/
|
|
775
|
+
static plannerEventsGet(options) {
|
|
776
|
+
return (options.client ?? client).post({
|
|
777
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
778
|
+
url: "/planner-events/get",
|
|
779
|
+
...options,
|
|
780
|
+
headers: {
|
|
781
|
+
"Content-Type": "application/json",
|
|
782
|
+
...options.headers,
|
|
783
|
+
},
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* List planner events
|
|
788
|
+
*
|
|
789
|
+
* List planner events for the current user
|
|
790
|
+
*/
|
|
791
|
+
static plannerEventsList(options) {
|
|
792
|
+
return (options?.client ?? client).post({
|
|
793
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
794
|
+
url: "/planner-events/list",
|
|
795
|
+
...options,
|
|
796
|
+
headers: {
|
|
797
|
+
"Content-Type": "application/json",
|
|
798
|
+
...options?.headers,
|
|
799
|
+
},
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Create planner event
|
|
804
|
+
*
|
|
805
|
+
* Create a new planner event
|
|
806
|
+
*/
|
|
807
|
+
static plannerEventsCreate(options) {
|
|
808
|
+
return (options.client ?? client).post({
|
|
809
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
810
|
+
url: "/planner-events",
|
|
811
|
+
...options,
|
|
812
|
+
headers: {
|
|
813
|
+
"Content-Type": "application/json",
|
|
814
|
+
...options.headers,
|
|
815
|
+
},
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Update planner event
|
|
820
|
+
*
|
|
821
|
+
* Update an existing planner event
|
|
822
|
+
*/
|
|
823
|
+
static plannerEventsUpdate(options) {
|
|
824
|
+
return (options.client ?? client).post({
|
|
825
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
826
|
+
url: "/planner-events/update",
|
|
827
|
+
...options,
|
|
828
|
+
headers: {
|
|
829
|
+
"Content-Type": "application/json",
|
|
830
|
+
...options.headers,
|
|
831
|
+
},
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Delete planner event
|
|
836
|
+
*
|
|
837
|
+
* Delete a planner event
|
|
838
|
+
*/
|
|
839
|
+
static plannerEventsDelete(options) {
|
|
840
|
+
return (options.client ?? client).post({
|
|
841
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
842
|
+
url: "/planner-events/delete",
|
|
843
|
+
...options,
|
|
844
|
+
headers: {
|
|
845
|
+
"Content-Type": "application/json",
|
|
846
|
+
...options.headers,
|
|
847
|
+
},
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Delete multiple planner events
|
|
852
|
+
*
|
|
853
|
+
* Delete multiple planner events
|
|
854
|
+
*/
|
|
855
|
+
static plannerEventsDeleteMany(options) {
|
|
856
|
+
return (options.client ?? client).post({
|
|
857
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
858
|
+
url: "/planner-events/delete-many",
|
|
761
859
|
...options,
|
|
762
860
|
headers: {
|
|
763
|
-
|
|
764
|
-
...options.headers
|
|
765
|
-
}
|
|
861
|
+
"Content-Type": "application/json",
|
|
862
|
+
...options.headers,
|
|
863
|
+
},
|
|
766
864
|
});
|
|
767
865
|
}
|
|
768
866
|
}
|
|
@@ -774,13 +872,13 @@ export class Todos {
|
|
|
774
872
|
*/
|
|
775
873
|
static todosGet(options) {
|
|
776
874
|
return (options.client ?? client).post({
|
|
777
|
-
security: [{ name:
|
|
778
|
-
url:
|
|
875
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
876
|
+
url: "/todos/get",
|
|
779
877
|
...options,
|
|
780
878
|
headers: {
|
|
781
|
-
|
|
782
|
-
...options.headers
|
|
783
|
-
}
|
|
879
|
+
"Content-Type": "application/json",
|
|
880
|
+
...options.headers,
|
|
881
|
+
},
|
|
784
882
|
});
|
|
785
883
|
}
|
|
786
884
|
/**
|
|
@@ -790,13 +888,13 @@ export class Todos {
|
|
|
790
888
|
*/
|
|
791
889
|
static todosList(options) {
|
|
792
890
|
return (options?.client ?? client).post({
|
|
793
|
-
security: [{ name:
|
|
794
|
-
url:
|
|
891
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
892
|
+
url: "/todos/list",
|
|
795
893
|
...options,
|
|
796
894
|
headers: {
|
|
797
|
-
|
|
798
|
-
...options?.headers
|
|
799
|
-
}
|
|
895
|
+
"Content-Type": "application/json",
|
|
896
|
+
...options?.headers,
|
|
897
|
+
},
|
|
800
898
|
});
|
|
801
899
|
}
|
|
802
900
|
/**
|
|
@@ -806,13 +904,13 @@ export class Todos {
|
|
|
806
904
|
*/
|
|
807
905
|
static todosByTag(options) {
|
|
808
906
|
return (options.client ?? client).post({
|
|
809
|
-
security: [{ name:
|
|
810
|
-
url:
|
|
907
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
908
|
+
url: "/todos/by-tag/list",
|
|
811
909
|
...options,
|
|
812
910
|
headers: {
|
|
813
|
-
|
|
814
|
-
...options.headers
|
|
815
|
-
}
|
|
911
|
+
"Content-Type": "application/json",
|
|
912
|
+
...options.headers,
|
|
913
|
+
},
|
|
816
914
|
});
|
|
817
915
|
}
|
|
818
916
|
/**
|
|
@@ -822,13 +920,13 @@ export class Todos {
|
|
|
822
920
|
*/
|
|
823
921
|
static todosByProject(options) {
|
|
824
922
|
return (options.client ?? client).post({
|
|
825
|
-
security: [{ name:
|
|
826
|
-
url:
|
|
923
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
924
|
+
url: "/todos/by-project/list",
|
|
827
925
|
...options,
|
|
828
926
|
headers: {
|
|
829
|
-
|
|
830
|
-
...options.headers
|
|
831
|
-
}
|
|
927
|
+
"Content-Type": "application/json",
|
|
928
|
+
...options.headers,
|
|
929
|
+
},
|
|
832
930
|
});
|
|
833
931
|
}
|
|
834
932
|
/**
|
|
@@ -838,13 +936,13 @@ export class Todos {
|
|
|
838
936
|
*/
|
|
839
937
|
static todosByList(options) {
|
|
840
938
|
return (options.client ?? client).post({
|
|
841
|
-
security: [{ name:
|
|
842
|
-
url:
|
|
939
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
940
|
+
url: "/todos/by-list/list",
|
|
843
941
|
...options,
|
|
844
942
|
headers: {
|
|
845
|
-
|
|
846
|
-
...options.headers
|
|
847
|
-
}
|
|
943
|
+
"Content-Type": "application/json",
|
|
944
|
+
...options.headers,
|
|
945
|
+
},
|
|
848
946
|
});
|
|
849
947
|
}
|
|
850
948
|
/**
|
|
@@ -854,13 +952,13 @@ export class Todos {
|
|
|
854
952
|
*/
|
|
855
953
|
static todosExists(options) {
|
|
856
954
|
return (options.client ?? client).post({
|
|
857
|
-
security: [{ name:
|
|
858
|
-
url:
|
|
955
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
956
|
+
url: "/todos/exists",
|
|
859
957
|
...options,
|
|
860
958
|
headers: {
|
|
861
|
-
|
|
862
|
-
...options.headers
|
|
863
|
-
}
|
|
959
|
+
"Content-Type": "application/json",
|
|
960
|
+
...options.headers,
|
|
961
|
+
},
|
|
864
962
|
});
|
|
865
963
|
}
|
|
866
964
|
/**
|
|
@@ -870,13 +968,13 @@ export class Todos {
|
|
|
870
968
|
*/
|
|
871
969
|
static todosCreate(options) {
|
|
872
970
|
return (options.client ?? client).post({
|
|
873
|
-
security: [{ name:
|
|
874
|
-
url:
|
|
971
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
972
|
+
url: "/todos",
|
|
875
973
|
...options,
|
|
876
974
|
headers: {
|
|
877
|
-
|
|
878
|
-
...options.headers
|
|
879
|
-
}
|
|
975
|
+
"Content-Type": "application/json",
|
|
976
|
+
...options.headers,
|
|
977
|
+
},
|
|
880
978
|
});
|
|
881
979
|
}
|
|
882
980
|
/**
|
|
@@ -886,13 +984,13 @@ export class Todos {
|
|
|
886
984
|
*/
|
|
887
985
|
static todosUpdate(options) {
|
|
888
986
|
return (options.client ?? client).post({
|
|
889
|
-
security: [{ name:
|
|
890
|
-
url:
|
|
987
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
988
|
+
url: "/todos/update",
|
|
891
989
|
...options,
|
|
892
990
|
headers: {
|
|
893
|
-
|
|
894
|
-
...options.headers
|
|
895
|
-
}
|
|
991
|
+
"Content-Type": "application/json",
|
|
992
|
+
...options.headers,
|
|
993
|
+
},
|
|
896
994
|
});
|
|
897
995
|
}
|
|
898
996
|
/**
|
|
@@ -902,13 +1000,13 @@ export class Todos {
|
|
|
902
1000
|
*/
|
|
903
1001
|
static todosToggle(options) {
|
|
904
1002
|
return (options.client ?? client).post({
|
|
905
|
-
security: [{ name:
|
|
906
|
-
url:
|
|
1003
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1004
|
+
url: "/todos/toggle",
|
|
907
1005
|
...options,
|
|
908
1006
|
headers: {
|
|
909
|
-
|
|
910
|
-
...options.headers
|
|
911
|
-
}
|
|
1007
|
+
"Content-Type": "application/json",
|
|
1008
|
+
...options.headers,
|
|
1009
|
+
},
|
|
912
1010
|
});
|
|
913
1011
|
}
|
|
914
1012
|
/**
|
|
@@ -918,13 +1016,13 @@ export class Todos {
|
|
|
918
1016
|
*/
|
|
919
1017
|
static todosDelete(options) {
|
|
920
1018
|
return (options.client ?? client).post({
|
|
921
|
-
security: [{ name:
|
|
922
|
-
url:
|
|
1019
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1020
|
+
url: "/todos/delete",
|
|
923
1021
|
...options,
|
|
924
1022
|
headers: {
|
|
925
|
-
|
|
926
|
-
...options.headers
|
|
927
|
-
}
|
|
1023
|
+
"Content-Type": "application/json",
|
|
1024
|
+
...options.headers,
|
|
1025
|
+
},
|
|
928
1026
|
});
|
|
929
1027
|
}
|
|
930
1028
|
/**
|
|
@@ -934,13 +1032,13 @@ export class Todos {
|
|
|
934
1032
|
*/
|
|
935
1033
|
static todosDeleteMany(options) {
|
|
936
1034
|
return (options.client ?? client).post({
|
|
937
|
-
security: [{ name:
|
|
938
|
-
url:
|
|
1035
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1036
|
+
url: "/todos/delete-many",
|
|
939
1037
|
...options,
|
|
940
1038
|
headers: {
|
|
941
|
-
|
|
942
|
-
...options.headers
|
|
943
|
-
}
|
|
1039
|
+
"Content-Type": "application/json",
|
|
1040
|
+
...options.headers,
|
|
1041
|
+
},
|
|
944
1042
|
});
|
|
945
1043
|
}
|
|
946
1044
|
/**
|
|
@@ -950,13 +1048,13 @@ export class Todos {
|
|
|
950
1048
|
*/
|
|
951
1049
|
static todosQuickUpdateMany(options) {
|
|
952
1050
|
return (options.client ?? client).post({
|
|
953
|
-
security: [{ name:
|
|
954
|
-
url:
|
|
1051
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1052
|
+
url: "/todos/quick-update-many",
|
|
955
1053
|
...options,
|
|
956
1054
|
headers: {
|
|
957
|
-
|
|
958
|
-
...options.headers
|
|
959
|
-
}
|
|
1055
|
+
"Content-Type": "application/json",
|
|
1056
|
+
...options.headers,
|
|
1057
|
+
},
|
|
960
1058
|
});
|
|
961
1059
|
}
|
|
962
1060
|
/**
|
|
@@ -966,13 +1064,13 @@ export class Todos {
|
|
|
966
1064
|
*/
|
|
967
1065
|
static todosAssign(options) {
|
|
968
1066
|
return (options.client ?? client).post({
|
|
969
|
-
security: [{ name:
|
|
970
|
-
url:
|
|
1067
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1068
|
+
url: "/todos/assign",
|
|
971
1069
|
...options,
|
|
972
1070
|
headers: {
|
|
973
|
-
|
|
974
|
-
...options.headers
|
|
975
|
-
}
|
|
1071
|
+
"Content-Type": "application/json",
|
|
1072
|
+
...options.headers,
|
|
1073
|
+
},
|
|
976
1074
|
});
|
|
977
1075
|
}
|
|
978
1076
|
/**
|
|
@@ -982,13 +1080,13 @@ export class Todos {
|
|
|
982
1080
|
*/
|
|
983
1081
|
static todosUnassign(options) {
|
|
984
1082
|
return (options.client ?? client).post({
|
|
985
|
-
security: [{ name:
|
|
986
|
-
url:
|
|
1083
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1084
|
+
url: "/todos/unassign",
|
|
987
1085
|
...options,
|
|
988
1086
|
headers: {
|
|
989
|
-
|
|
990
|
-
...options.headers
|
|
991
|
-
}
|
|
1087
|
+
"Content-Type": "application/json",
|
|
1088
|
+
...options.headers,
|
|
1089
|
+
},
|
|
992
1090
|
});
|
|
993
1091
|
}
|
|
994
1092
|
/**
|
|
@@ -998,9 +1096,9 @@ export class Todos {
|
|
|
998
1096
|
*/
|
|
999
1097
|
static todosAssignableUsers(options) {
|
|
1000
1098
|
return (options?.client ?? client).post({
|
|
1001
|
-
security: [{ name:
|
|
1002
|
-
url:
|
|
1003
|
-
...options
|
|
1099
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1100
|
+
url: "/todos/assignable-users",
|
|
1101
|
+
...options,
|
|
1004
1102
|
});
|
|
1005
1103
|
}
|
|
1006
1104
|
/**
|
|
@@ -1010,13 +1108,13 @@ export class Todos {
|
|
|
1010
1108
|
*/
|
|
1011
1109
|
static todosPossibleAssignees(options) {
|
|
1012
1110
|
return (options.client ?? client).post({
|
|
1013
|
-
security: [{ name:
|
|
1014
|
-
url:
|
|
1111
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1112
|
+
url: "/todos/possible-assignees",
|
|
1015
1113
|
...options,
|
|
1016
1114
|
headers: {
|
|
1017
|
-
|
|
1018
|
-
...options.headers
|
|
1019
|
-
}
|
|
1115
|
+
"Content-Type": "application/json",
|
|
1116
|
+
...options.headers,
|
|
1117
|
+
},
|
|
1020
1118
|
});
|
|
1021
1119
|
}
|
|
1022
1120
|
}
|
|
@@ -1028,13 +1126,13 @@ export class Assignments {
|
|
|
1028
1126
|
*/
|
|
1029
1127
|
static todosAssign(options) {
|
|
1030
1128
|
return (options.client ?? client).post({
|
|
1031
|
-
security: [{ name:
|
|
1032
|
-
url:
|
|
1129
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1130
|
+
url: "/todos/assign",
|
|
1033
1131
|
...options,
|
|
1034
1132
|
headers: {
|
|
1035
|
-
|
|
1036
|
-
...options.headers
|
|
1037
|
-
}
|
|
1133
|
+
"Content-Type": "application/json",
|
|
1134
|
+
...options.headers,
|
|
1135
|
+
},
|
|
1038
1136
|
});
|
|
1039
1137
|
}
|
|
1040
1138
|
/**
|
|
@@ -1044,13 +1142,13 @@ export class Assignments {
|
|
|
1044
1142
|
*/
|
|
1045
1143
|
static todosUnassign(options) {
|
|
1046
1144
|
return (options.client ?? client).post({
|
|
1047
|
-
security: [{ name:
|
|
1048
|
-
url:
|
|
1145
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1146
|
+
url: "/todos/unassign",
|
|
1049
1147
|
...options,
|
|
1050
1148
|
headers: {
|
|
1051
|
-
|
|
1052
|
-
...options.headers
|
|
1053
|
-
}
|
|
1149
|
+
"Content-Type": "application/json",
|
|
1150
|
+
...options.headers,
|
|
1151
|
+
},
|
|
1054
1152
|
});
|
|
1055
1153
|
}
|
|
1056
1154
|
/**
|
|
@@ -1060,9 +1158,9 @@ export class Assignments {
|
|
|
1060
1158
|
*/
|
|
1061
1159
|
static todosAssignableUsers(options) {
|
|
1062
1160
|
return (options?.client ?? client).post({
|
|
1063
|
-
security: [{ name:
|
|
1064
|
-
url:
|
|
1065
|
-
...options
|
|
1161
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1162
|
+
url: "/todos/assignable-users",
|
|
1163
|
+
...options,
|
|
1066
1164
|
});
|
|
1067
1165
|
}
|
|
1068
1166
|
/**
|
|
@@ -1072,13 +1170,13 @@ export class Assignments {
|
|
|
1072
1170
|
*/
|
|
1073
1171
|
static todosPossibleAssignees(options) {
|
|
1074
1172
|
return (options.client ?? client).post({
|
|
1075
|
-
security: [{ name:
|
|
1076
|
-
url:
|
|
1173
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1174
|
+
url: "/todos/possible-assignees",
|
|
1077
1175
|
...options,
|
|
1078
1176
|
headers: {
|
|
1079
|
-
|
|
1080
|
-
...options.headers
|
|
1081
|
-
}
|
|
1177
|
+
"Content-Type": "application/json",
|
|
1178
|
+
...options.headers,
|
|
1179
|
+
},
|
|
1082
1180
|
});
|
|
1083
1181
|
}
|
|
1084
1182
|
}
|
|
@@ -1090,13 +1188,13 @@ export class Tags {
|
|
|
1090
1188
|
*/
|
|
1091
1189
|
static tagsList(options) {
|
|
1092
1190
|
return (options.client ?? client).post({
|
|
1093
|
-
security: [{ name:
|
|
1094
|
-
url:
|
|
1191
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1192
|
+
url: "/tags/list",
|
|
1095
1193
|
...options,
|
|
1096
1194
|
headers: {
|
|
1097
|
-
|
|
1098
|
-
...options.headers
|
|
1099
|
-
}
|
|
1195
|
+
"Content-Type": "application/json",
|
|
1196
|
+
...options.headers,
|
|
1197
|
+
},
|
|
1100
1198
|
});
|
|
1101
1199
|
}
|
|
1102
1200
|
/**
|
|
@@ -1106,13 +1204,13 @@ export class Tags {
|
|
|
1106
1204
|
*/
|
|
1107
1205
|
static tagsGet(options) {
|
|
1108
1206
|
return (options.client ?? client).post({
|
|
1109
|
-
security: [{ name:
|
|
1110
|
-
url:
|
|
1207
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1208
|
+
url: "/tags/get",
|
|
1111
1209
|
...options,
|
|
1112
1210
|
headers: {
|
|
1113
|
-
|
|
1114
|
-
...options.headers
|
|
1115
|
-
}
|
|
1211
|
+
"Content-Type": "application/json",
|
|
1212
|
+
...options.headers,
|
|
1213
|
+
},
|
|
1116
1214
|
});
|
|
1117
1215
|
}
|
|
1118
1216
|
/**
|
|
@@ -1122,13 +1220,13 @@ export class Tags {
|
|
|
1122
1220
|
*/
|
|
1123
1221
|
static tagsCreate(options) {
|
|
1124
1222
|
return (options.client ?? client).post({
|
|
1125
|
-
security: [{ name:
|
|
1126
|
-
url:
|
|
1223
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1224
|
+
url: "/tags",
|
|
1127
1225
|
...options,
|
|
1128
1226
|
headers: {
|
|
1129
|
-
|
|
1130
|
-
...options.headers
|
|
1131
|
-
}
|
|
1227
|
+
"Content-Type": "application/json",
|
|
1228
|
+
...options.headers,
|
|
1229
|
+
},
|
|
1132
1230
|
});
|
|
1133
1231
|
}
|
|
1134
1232
|
/**
|
|
@@ -1138,13 +1236,13 @@ export class Tags {
|
|
|
1138
1236
|
*/
|
|
1139
1237
|
static tagsUpdate(options) {
|
|
1140
1238
|
return (options.client ?? client).post({
|
|
1141
|
-
security: [{ name:
|
|
1142
|
-
url:
|
|
1239
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1240
|
+
url: "/tags/update",
|
|
1143
1241
|
...options,
|
|
1144
1242
|
headers: {
|
|
1145
|
-
|
|
1146
|
-
...options.headers
|
|
1147
|
-
}
|
|
1243
|
+
"Content-Type": "application/json",
|
|
1244
|
+
...options.headers,
|
|
1245
|
+
},
|
|
1148
1246
|
});
|
|
1149
1247
|
}
|
|
1150
1248
|
/**
|
|
@@ -1154,13 +1252,13 @@ export class Tags {
|
|
|
1154
1252
|
*/
|
|
1155
1253
|
static tagsDelete(options) {
|
|
1156
1254
|
return (options.client ?? client).post({
|
|
1157
|
-
security: [{ name:
|
|
1158
|
-
url:
|
|
1255
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1256
|
+
url: "/tags/delete",
|
|
1159
1257
|
...options,
|
|
1160
1258
|
headers: {
|
|
1161
|
-
|
|
1162
|
-
...options.headers
|
|
1163
|
-
}
|
|
1259
|
+
"Content-Type": "application/json",
|
|
1260
|
+
...options.headers,
|
|
1261
|
+
},
|
|
1164
1262
|
});
|
|
1165
1263
|
}
|
|
1166
1264
|
/**
|
|
@@ -1170,13 +1268,13 @@ export class Tags {
|
|
|
1170
1268
|
*/
|
|
1171
1269
|
static tagsExists(options) {
|
|
1172
1270
|
return (options.client ?? client).post({
|
|
1173
|
-
security: [{ name:
|
|
1174
|
-
url:
|
|
1271
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1272
|
+
url: "/tags/exists",
|
|
1175
1273
|
...options,
|
|
1176
1274
|
headers: {
|
|
1177
|
-
|
|
1178
|
-
...options.headers
|
|
1179
|
-
}
|
|
1275
|
+
"Content-Type": "application/json",
|
|
1276
|
+
...options.headers,
|
|
1277
|
+
},
|
|
1180
1278
|
});
|
|
1181
1279
|
}
|
|
1182
1280
|
/**
|
|
@@ -1186,13 +1284,13 @@ export class Tags {
|
|
|
1186
1284
|
*/
|
|
1187
1285
|
static tagsForTodoForm(options) {
|
|
1188
1286
|
return (options.client ?? client).post({
|
|
1189
|
-
security: [{ name:
|
|
1190
|
-
url:
|
|
1287
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1288
|
+
url: "/tags/for-todo-form",
|
|
1191
1289
|
...options,
|
|
1192
1290
|
headers: {
|
|
1193
|
-
|
|
1194
|
-
...options.headers
|
|
1195
|
-
}
|
|
1291
|
+
"Content-Type": "application/json",
|
|
1292
|
+
...options.headers,
|
|
1293
|
+
},
|
|
1196
1294
|
});
|
|
1197
1295
|
}
|
|
1198
1296
|
/**
|
|
@@ -1202,13 +1300,13 @@ export class Tags {
|
|
|
1202
1300
|
*/
|
|
1203
1301
|
static tagsFavorites(options) {
|
|
1204
1302
|
return (options.client ?? client).post({
|
|
1205
|
-
security: [{ name:
|
|
1206
|
-
url:
|
|
1303
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1304
|
+
url: "/tags/favorites",
|
|
1207
1305
|
...options,
|
|
1208
1306
|
headers: {
|
|
1209
|
-
|
|
1210
|
-
...options.headers
|
|
1211
|
-
}
|
|
1307
|
+
"Content-Type": "application/json",
|
|
1308
|
+
...options.headers,
|
|
1309
|
+
},
|
|
1212
1310
|
});
|
|
1213
1311
|
}
|
|
1214
1312
|
}
|
|
@@ -1220,13 +1318,13 @@ export class Projects {
|
|
|
1220
1318
|
*/
|
|
1221
1319
|
static projectsList(options) {
|
|
1222
1320
|
return (options.client ?? client).post({
|
|
1223
|
-
security: [{ name:
|
|
1224
|
-
url:
|
|
1321
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1322
|
+
url: "/projects/list",
|
|
1225
1323
|
...options,
|
|
1226
1324
|
headers: {
|
|
1227
|
-
|
|
1228
|
-
...options.headers
|
|
1229
|
-
}
|
|
1325
|
+
"Content-Type": "application/json",
|
|
1326
|
+
...options.headers,
|
|
1327
|
+
},
|
|
1230
1328
|
});
|
|
1231
1329
|
}
|
|
1232
1330
|
/**
|
|
@@ -1236,13 +1334,13 @@ export class Projects {
|
|
|
1236
1334
|
*/
|
|
1237
1335
|
static projectsGet(options) {
|
|
1238
1336
|
return (options.client ?? client).post({
|
|
1239
|
-
security: [{ name:
|
|
1240
|
-
url:
|
|
1337
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1338
|
+
url: "/projects/get",
|
|
1241
1339
|
...options,
|
|
1242
1340
|
headers: {
|
|
1243
|
-
|
|
1244
|
-
...options.headers
|
|
1245
|
-
}
|
|
1341
|
+
"Content-Type": "application/json",
|
|
1342
|
+
...options.headers,
|
|
1343
|
+
},
|
|
1246
1344
|
});
|
|
1247
1345
|
}
|
|
1248
1346
|
/**
|
|
@@ -1252,13 +1350,13 @@ export class Projects {
|
|
|
1252
1350
|
*/
|
|
1253
1351
|
static projectsCreate(options) {
|
|
1254
1352
|
return (options.client ?? client).post({
|
|
1255
|
-
security: [{ name:
|
|
1256
|
-
url:
|
|
1353
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1354
|
+
url: "/projects",
|
|
1257
1355
|
...options,
|
|
1258
1356
|
headers: {
|
|
1259
|
-
|
|
1260
|
-
...options.headers
|
|
1261
|
-
}
|
|
1357
|
+
"Content-Type": "application/json",
|
|
1358
|
+
...options.headers,
|
|
1359
|
+
},
|
|
1262
1360
|
});
|
|
1263
1361
|
}
|
|
1264
1362
|
/**
|
|
@@ -1268,13 +1366,13 @@ export class Projects {
|
|
|
1268
1366
|
*/
|
|
1269
1367
|
static projectsUpdate(options) {
|
|
1270
1368
|
return (options.client ?? client).post({
|
|
1271
|
-
security: [{ name:
|
|
1272
|
-
url:
|
|
1369
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1370
|
+
url: "/projects/update",
|
|
1273
1371
|
...options,
|
|
1274
1372
|
headers: {
|
|
1275
|
-
|
|
1276
|
-
...options.headers
|
|
1277
|
-
}
|
|
1373
|
+
"Content-Type": "application/json",
|
|
1374
|
+
...options.headers,
|
|
1375
|
+
},
|
|
1278
1376
|
});
|
|
1279
1377
|
}
|
|
1280
1378
|
/**
|
|
@@ -1284,13 +1382,13 @@ export class Projects {
|
|
|
1284
1382
|
*/
|
|
1285
1383
|
static projectsDelete(options) {
|
|
1286
1384
|
return (options.client ?? client).post({
|
|
1287
|
-
security: [{ name:
|
|
1288
|
-
url:
|
|
1385
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1386
|
+
url: "/projects/delete",
|
|
1289
1387
|
...options,
|
|
1290
1388
|
headers: {
|
|
1291
|
-
|
|
1292
|
-
...options.headers
|
|
1293
|
-
}
|
|
1389
|
+
"Content-Type": "application/json",
|
|
1390
|
+
...options.headers,
|
|
1391
|
+
},
|
|
1294
1392
|
});
|
|
1295
1393
|
}
|
|
1296
1394
|
/**
|
|
@@ -1300,13 +1398,13 @@ export class Projects {
|
|
|
1300
1398
|
*/
|
|
1301
1399
|
static projectsExists(options) {
|
|
1302
1400
|
return (options.client ?? client).post({
|
|
1303
|
-
security: [{ name:
|
|
1304
|
-
url:
|
|
1401
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1402
|
+
url: "/projects/exists",
|
|
1305
1403
|
...options,
|
|
1306
1404
|
headers: {
|
|
1307
|
-
|
|
1308
|
-
...options.headers
|
|
1309
|
-
}
|
|
1405
|
+
"Content-Type": "application/json",
|
|
1406
|
+
...options.headers,
|
|
1407
|
+
},
|
|
1310
1408
|
});
|
|
1311
1409
|
}
|
|
1312
1410
|
/**
|
|
@@ -1316,13 +1414,13 @@ export class Projects {
|
|
|
1316
1414
|
*/
|
|
1317
1415
|
static projectsForTodoForm(options) {
|
|
1318
1416
|
return (options.client ?? client).post({
|
|
1319
|
-
security: [{ name:
|
|
1320
|
-
url:
|
|
1417
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1418
|
+
url: "/projects/for-todo-form",
|
|
1321
1419
|
...options,
|
|
1322
1420
|
headers: {
|
|
1323
|
-
|
|
1324
|
-
...options.headers
|
|
1325
|
-
}
|
|
1421
|
+
"Content-Type": "application/json",
|
|
1422
|
+
...options.headers,
|
|
1423
|
+
},
|
|
1326
1424
|
});
|
|
1327
1425
|
}
|
|
1328
1426
|
}
|
|
@@ -1334,13 +1432,13 @@ export class TodoLists {
|
|
|
1334
1432
|
*/
|
|
1335
1433
|
static todoListsList(options) {
|
|
1336
1434
|
return (options.client ?? client).post({
|
|
1337
|
-
security: [{ name:
|
|
1338
|
-
url:
|
|
1435
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1436
|
+
url: "/todo-lists/list",
|
|
1339
1437
|
...options,
|
|
1340
1438
|
headers: {
|
|
1341
|
-
|
|
1342
|
-
...options.headers
|
|
1343
|
-
}
|
|
1439
|
+
"Content-Type": "application/json",
|
|
1440
|
+
...options.headers,
|
|
1441
|
+
},
|
|
1344
1442
|
});
|
|
1345
1443
|
}
|
|
1346
1444
|
/**
|
|
@@ -1350,13 +1448,13 @@ export class TodoLists {
|
|
|
1350
1448
|
*/
|
|
1351
1449
|
static todoListsGet(options) {
|
|
1352
1450
|
return (options.client ?? client).post({
|
|
1353
|
-
security: [{ name:
|
|
1354
|
-
url:
|
|
1451
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1452
|
+
url: "/todo-lists/get",
|
|
1355
1453
|
...options,
|
|
1356
1454
|
headers: {
|
|
1357
|
-
|
|
1358
|
-
...options.headers
|
|
1359
|
-
}
|
|
1455
|
+
"Content-Type": "application/json",
|
|
1456
|
+
...options.headers,
|
|
1457
|
+
},
|
|
1360
1458
|
});
|
|
1361
1459
|
}
|
|
1362
1460
|
/**
|
|
@@ -1366,13 +1464,13 @@ export class TodoLists {
|
|
|
1366
1464
|
*/
|
|
1367
1465
|
static todoListsFavorites(options) {
|
|
1368
1466
|
return (options?.client ?? client).post({
|
|
1369
|
-
security: [{ name:
|
|
1370
|
-
url:
|
|
1467
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1468
|
+
url: "/todo-lists/favorites",
|
|
1371
1469
|
...options,
|
|
1372
1470
|
headers: {
|
|
1373
|
-
|
|
1374
|
-
...options?.headers
|
|
1375
|
-
}
|
|
1471
|
+
"Content-Type": "application/json",
|
|
1472
|
+
...options?.headers,
|
|
1473
|
+
},
|
|
1376
1474
|
});
|
|
1377
1475
|
}
|
|
1378
1476
|
/**
|
|
@@ -1382,13 +1480,13 @@ export class TodoLists {
|
|
|
1382
1480
|
*/
|
|
1383
1481
|
static todoListsCreate(options) {
|
|
1384
1482
|
return (options.client ?? client).post({
|
|
1385
|
-
security: [{ name:
|
|
1386
|
-
url:
|
|
1483
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1484
|
+
url: "/todo-lists",
|
|
1387
1485
|
...options,
|
|
1388
1486
|
headers: {
|
|
1389
|
-
|
|
1390
|
-
...options.headers
|
|
1391
|
-
}
|
|
1487
|
+
"Content-Type": "application/json",
|
|
1488
|
+
...options.headers,
|
|
1489
|
+
},
|
|
1392
1490
|
});
|
|
1393
1491
|
}
|
|
1394
1492
|
/**
|
|
@@ -1398,13 +1496,13 @@ export class TodoLists {
|
|
|
1398
1496
|
*/
|
|
1399
1497
|
static todoListsUpdate(options) {
|
|
1400
1498
|
return (options.client ?? client).post({
|
|
1401
|
-
security: [{ name:
|
|
1402
|
-
url:
|
|
1499
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1500
|
+
url: "/todo-lists/update",
|
|
1403
1501
|
...options,
|
|
1404
1502
|
headers: {
|
|
1405
|
-
|
|
1406
|
-
...options.headers
|
|
1407
|
-
}
|
|
1503
|
+
"Content-Type": "application/json",
|
|
1504
|
+
...options.headers,
|
|
1505
|
+
},
|
|
1408
1506
|
});
|
|
1409
1507
|
}
|
|
1410
1508
|
/**
|
|
@@ -1414,13 +1512,13 @@ export class TodoLists {
|
|
|
1414
1512
|
*/
|
|
1415
1513
|
static todoListsDelete(options) {
|
|
1416
1514
|
return (options.client ?? client).post({
|
|
1417
|
-
security: [{ name:
|
|
1418
|
-
url:
|
|
1515
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1516
|
+
url: "/todo-lists/delete",
|
|
1419
1517
|
...options,
|
|
1420
1518
|
headers: {
|
|
1421
|
-
|
|
1422
|
-
...options.headers
|
|
1423
|
-
}
|
|
1519
|
+
"Content-Type": "application/json",
|
|
1520
|
+
...options.headers,
|
|
1521
|
+
},
|
|
1424
1522
|
});
|
|
1425
1523
|
}
|
|
1426
1524
|
/**
|
|
@@ -1430,13 +1528,13 @@ export class TodoLists {
|
|
|
1430
1528
|
*/
|
|
1431
1529
|
static todoListsExists(options) {
|
|
1432
1530
|
return (options.client ?? client).post({
|
|
1433
|
-
security: [{ name:
|
|
1434
|
-
url:
|
|
1531
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1532
|
+
url: "/todo-lists/exists",
|
|
1435
1533
|
...options,
|
|
1436
1534
|
headers: {
|
|
1437
|
-
|
|
1438
|
-
...options.headers
|
|
1439
|
-
}
|
|
1535
|
+
"Content-Type": "application/json",
|
|
1536
|
+
...options.headers,
|
|
1537
|
+
},
|
|
1440
1538
|
});
|
|
1441
1539
|
}
|
|
1442
1540
|
/**
|
|
@@ -1446,13 +1544,13 @@ export class TodoLists {
|
|
|
1446
1544
|
*/
|
|
1447
1545
|
static todoListsForTodoForm(options) {
|
|
1448
1546
|
return (options.client ?? client).post({
|
|
1449
|
-
security: [{ name:
|
|
1450
|
-
url:
|
|
1547
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1548
|
+
url: "/todo-lists/for-todo-form",
|
|
1451
1549
|
...options,
|
|
1452
1550
|
headers: {
|
|
1453
|
-
|
|
1454
|
-
...options.headers
|
|
1455
|
-
}
|
|
1551
|
+
"Content-Type": "application/json",
|
|
1552
|
+
...options.headers,
|
|
1553
|
+
},
|
|
1456
1554
|
});
|
|
1457
1555
|
}
|
|
1458
1556
|
}
|
|
@@ -1464,13 +1562,13 @@ export class Habits {
|
|
|
1464
1562
|
*/
|
|
1465
1563
|
static habitsGetHabitsAndCompletions(options) {
|
|
1466
1564
|
return (options.client ?? client).post({
|
|
1467
|
-
security: [{ name:
|
|
1468
|
-
url:
|
|
1565
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1566
|
+
url: "/habits/with-completions",
|
|
1469
1567
|
...options,
|
|
1470
1568
|
headers: {
|
|
1471
|
-
|
|
1472
|
-
...options.headers
|
|
1473
|
-
}
|
|
1569
|
+
"Content-Type": "application/json",
|
|
1570
|
+
...options.headers,
|
|
1571
|
+
},
|
|
1474
1572
|
});
|
|
1475
1573
|
}
|
|
1476
1574
|
/**
|
|
@@ -1480,9 +1578,9 @@ export class Habits {
|
|
|
1480
1578
|
*/
|
|
1481
1579
|
static habitsGetHabitsForCurrentUser(options) {
|
|
1482
1580
|
return (options?.client ?? client).post({
|
|
1483
|
-
security: [{ name:
|
|
1484
|
-
url:
|
|
1485
|
-
...options
|
|
1581
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1582
|
+
url: "/habits/list",
|
|
1583
|
+
...options,
|
|
1486
1584
|
});
|
|
1487
1585
|
}
|
|
1488
1586
|
/**
|
|
@@ -1492,13 +1590,13 @@ export class Habits {
|
|
|
1492
1590
|
*/
|
|
1493
1591
|
static habitsGet(options) {
|
|
1494
1592
|
return (options.client ?? client).post({
|
|
1495
|
-
security: [{ name:
|
|
1496
|
-
url:
|
|
1593
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1594
|
+
url: "/habits/get",
|
|
1497
1595
|
...options,
|
|
1498
1596
|
headers: {
|
|
1499
|
-
|
|
1500
|
-
...options.headers
|
|
1501
|
-
}
|
|
1597
|
+
"Content-Type": "application/json",
|
|
1598
|
+
...options.headers,
|
|
1599
|
+
},
|
|
1502
1600
|
});
|
|
1503
1601
|
}
|
|
1504
1602
|
/**
|
|
@@ -1508,13 +1606,13 @@ export class Habits {
|
|
|
1508
1606
|
*/
|
|
1509
1607
|
static habitsCreate(options) {
|
|
1510
1608
|
return (options.client ?? client).post({
|
|
1511
|
-
security: [{ name:
|
|
1512
|
-
url:
|
|
1609
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1610
|
+
url: "/habits",
|
|
1513
1611
|
...options,
|
|
1514
1612
|
headers: {
|
|
1515
|
-
|
|
1516
|
-
...options.headers
|
|
1517
|
-
}
|
|
1613
|
+
"Content-Type": "application/json",
|
|
1614
|
+
...options.headers,
|
|
1615
|
+
},
|
|
1518
1616
|
});
|
|
1519
1617
|
}
|
|
1520
1618
|
/**
|
|
@@ -1524,13 +1622,13 @@ export class Habits {
|
|
|
1524
1622
|
*/
|
|
1525
1623
|
static habitsUpdate(options) {
|
|
1526
1624
|
return (options.client ?? client).post({
|
|
1527
|
-
security: [{ name:
|
|
1528
|
-
url:
|
|
1625
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1626
|
+
url: "/habits/update",
|
|
1529
1627
|
...options,
|
|
1530
1628
|
headers: {
|
|
1531
|
-
|
|
1532
|
-
...options.headers
|
|
1533
|
-
}
|
|
1629
|
+
"Content-Type": "application/json",
|
|
1630
|
+
...options.headers,
|
|
1631
|
+
},
|
|
1534
1632
|
});
|
|
1535
1633
|
}
|
|
1536
1634
|
/**
|
|
@@ -1540,13 +1638,13 @@ export class Habits {
|
|
|
1540
1638
|
*/
|
|
1541
1639
|
static habitsDelete(options) {
|
|
1542
1640
|
return (options.client ?? client).post({
|
|
1543
|
-
security: [{ name:
|
|
1544
|
-
url:
|
|
1641
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1642
|
+
url: "/habits/delete",
|
|
1545
1643
|
...options,
|
|
1546
1644
|
headers: {
|
|
1547
|
-
|
|
1548
|
-
...options.headers
|
|
1549
|
-
}
|
|
1645
|
+
"Content-Type": "application/json",
|
|
1646
|
+
...options.headers,
|
|
1647
|
+
},
|
|
1550
1648
|
});
|
|
1551
1649
|
}
|
|
1552
1650
|
/**
|
|
@@ -1556,13 +1654,13 @@ export class Habits {
|
|
|
1556
1654
|
*/
|
|
1557
1655
|
static habitsDuplicate(options) {
|
|
1558
1656
|
return (options.client ?? client).post({
|
|
1559
|
-
security: [{ name:
|
|
1560
|
-
url:
|
|
1657
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1658
|
+
url: "/habits/duplicate",
|
|
1561
1659
|
...options,
|
|
1562
1660
|
headers: {
|
|
1563
|
-
|
|
1564
|
-
...options.headers
|
|
1565
|
-
}
|
|
1661
|
+
"Content-Type": "application/json",
|
|
1662
|
+
...options.headers,
|
|
1663
|
+
},
|
|
1566
1664
|
});
|
|
1567
1665
|
}
|
|
1568
1666
|
/**
|
|
@@ -1572,13 +1670,13 @@ export class Habits {
|
|
|
1572
1670
|
*/
|
|
1573
1671
|
static habitsLogHabitOnDay(options) {
|
|
1574
1672
|
return (options.client ?? client).post({
|
|
1575
|
-
security: [{ name:
|
|
1576
|
-
url:
|
|
1673
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1674
|
+
url: "/habits/log",
|
|
1577
1675
|
...options,
|
|
1578
1676
|
headers: {
|
|
1579
|
-
|
|
1580
|
-
...options.headers
|
|
1581
|
-
}
|
|
1677
|
+
"Content-Type": "application/json",
|
|
1678
|
+
...options.headers,
|
|
1679
|
+
},
|
|
1582
1680
|
});
|
|
1583
1681
|
}
|
|
1584
1682
|
/**
|
|
@@ -1588,13 +1686,13 @@ export class Habits {
|
|
|
1588
1686
|
*/
|
|
1589
1687
|
static habitsLogManyHabitsOnDay(options) {
|
|
1590
1688
|
return (options.client ?? client).post({
|
|
1591
|
-
security: [{ name:
|
|
1592
|
-
url:
|
|
1689
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1690
|
+
url: "/habits/log-many",
|
|
1593
1691
|
...options,
|
|
1594
1692
|
headers: {
|
|
1595
|
-
|
|
1596
|
-
...options.headers
|
|
1597
|
-
}
|
|
1693
|
+
"Content-Type": "application/json",
|
|
1694
|
+
...options.headers,
|
|
1695
|
+
},
|
|
1598
1696
|
});
|
|
1599
1697
|
}
|
|
1600
1698
|
/**
|
|
@@ -1604,9 +1702,9 @@ export class Habits {
|
|
|
1604
1702
|
*/
|
|
1605
1703
|
static habitsGetHabitScoreForWidget(options) {
|
|
1606
1704
|
return (options?.client ?? client).post({
|
|
1607
|
-
security: [{ name:
|
|
1608
|
-
url:
|
|
1609
|
-
...options
|
|
1705
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1706
|
+
url: "/habits/score/widget",
|
|
1707
|
+
...options,
|
|
1610
1708
|
});
|
|
1611
1709
|
}
|
|
1612
1710
|
}
|
|
@@ -1618,9 +1716,9 @@ export class Hydration {
|
|
|
1618
1716
|
*/
|
|
1619
1717
|
static hydrationLogsDelete(options) {
|
|
1620
1718
|
return (options.client ?? client).delete({
|
|
1621
|
-
security: [{ name:
|
|
1622
|
-
url:
|
|
1623
|
-
...options
|
|
1719
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1720
|
+
url: "/hydration/logs/{id}",
|
|
1721
|
+
...options,
|
|
1624
1722
|
});
|
|
1625
1723
|
}
|
|
1626
1724
|
/**
|
|
@@ -1630,13 +1728,13 @@ export class Hydration {
|
|
|
1630
1728
|
*/
|
|
1631
1729
|
static hydrationLogsUpdate(options) {
|
|
1632
1730
|
return (options.client ?? client).patch({
|
|
1633
|
-
security: [{ name:
|
|
1634
|
-
url:
|
|
1731
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1732
|
+
url: "/hydration/logs/{id}",
|
|
1635
1733
|
...options,
|
|
1636
1734
|
headers: {
|
|
1637
|
-
|
|
1638
|
-
...options.headers
|
|
1639
|
-
}
|
|
1735
|
+
"Content-Type": "application/json",
|
|
1736
|
+
...options.headers,
|
|
1737
|
+
},
|
|
1640
1738
|
});
|
|
1641
1739
|
}
|
|
1642
1740
|
/**
|
|
@@ -1646,9 +1744,9 @@ export class Hydration {
|
|
|
1646
1744
|
*/
|
|
1647
1745
|
static hydrationLogsGet(options) {
|
|
1648
1746
|
return (options.client ?? client).post({
|
|
1649
|
-
security: [{ name:
|
|
1650
|
-
url:
|
|
1651
|
-
...options
|
|
1747
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1748
|
+
url: "/hydration/logs/{id}",
|
|
1749
|
+
...options,
|
|
1652
1750
|
});
|
|
1653
1751
|
}
|
|
1654
1752
|
/**
|
|
@@ -1658,13 +1756,13 @@ export class Hydration {
|
|
|
1658
1756
|
*/
|
|
1659
1757
|
static hydrationLogsList(options) {
|
|
1660
1758
|
return (options.client ?? client).post({
|
|
1661
|
-
security: [{ name:
|
|
1662
|
-
url:
|
|
1759
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1760
|
+
url: "/hydration/logs/list",
|
|
1663
1761
|
...options,
|
|
1664
1762
|
headers: {
|
|
1665
|
-
|
|
1666
|
-
...options.headers
|
|
1667
|
-
}
|
|
1763
|
+
"Content-Type": "application/json",
|
|
1764
|
+
...options.headers,
|
|
1765
|
+
},
|
|
1668
1766
|
});
|
|
1669
1767
|
}
|
|
1670
1768
|
/**
|
|
@@ -1674,13 +1772,13 @@ export class Hydration {
|
|
|
1674
1772
|
*/
|
|
1675
1773
|
static hydrationLogsCreate(options) {
|
|
1676
1774
|
return (options.client ?? client).post({
|
|
1677
|
-
security: [{ name:
|
|
1678
|
-
url:
|
|
1775
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1776
|
+
url: "/hydration/logs",
|
|
1679
1777
|
...options,
|
|
1680
1778
|
headers: {
|
|
1681
|
-
|
|
1682
|
-
...options.headers
|
|
1683
|
-
}
|
|
1779
|
+
"Content-Type": "application/json",
|
|
1780
|
+
...options.headers,
|
|
1781
|
+
},
|
|
1684
1782
|
});
|
|
1685
1783
|
}
|
|
1686
1784
|
/**
|
|
@@ -1690,13 +1788,13 @@ export class Hydration {
|
|
|
1690
1788
|
*/
|
|
1691
1789
|
static hydrationLogsDeleteMany(options) {
|
|
1692
1790
|
return (options.client ?? client).post({
|
|
1693
|
-
security: [{ name:
|
|
1694
|
-
url:
|
|
1791
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1792
|
+
url: "/hydration/logs/delete-many",
|
|
1695
1793
|
...options,
|
|
1696
1794
|
headers: {
|
|
1697
|
-
|
|
1698
|
-
...options.headers
|
|
1699
|
-
}
|
|
1795
|
+
"Content-Type": "application/json",
|
|
1796
|
+
...options.headers,
|
|
1797
|
+
},
|
|
1700
1798
|
});
|
|
1701
1799
|
}
|
|
1702
1800
|
/**
|
|
@@ -1706,13 +1804,97 @@ export class Hydration {
|
|
|
1706
1804
|
*/
|
|
1707
1805
|
static hydrationLogsGetStats(options) {
|
|
1708
1806
|
return (options.client ?? client).post({
|
|
1709
|
-
security: [{ name:
|
|
1710
|
-
url:
|
|
1807
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1808
|
+
url: "/hydration/stats",
|
|
1809
|
+
...options,
|
|
1810
|
+
headers: {
|
|
1811
|
+
"Content-Type": "application/json",
|
|
1812
|
+
...options.headers,
|
|
1813
|
+
},
|
|
1814
|
+
});
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Delete hydration goal
|
|
1818
|
+
*
|
|
1819
|
+
* Delete a hydration goal by ID.
|
|
1820
|
+
*/
|
|
1821
|
+
static hydrationGoalsDelete(options) {
|
|
1822
|
+
return (options.client ?? client).delete({
|
|
1823
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1824
|
+
url: "/hydration/goals/{id}",
|
|
1825
|
+
...options,
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Update hydration goal
|
|
1830
|
+
*
|
|
1831
|
+
* Update an existing hydration goal.
|
|
1832
|
+
*/
|
|
1833
|
+
static hydrationGoalsUpdate(options) {
|
|
1834
|
+
return (options.client ?? client).patch({
|
|
1835
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1836
|
+
url: "/hydration/goals/{id}",
|
|
1837
|
+
...options,
|
|
1838
|
+
headers: {
|
|
1839
|
+
"Content-Type": "application/json",
|
|
1840
|
+
...options.headers,
|
|
1841
|
+
},
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Get hydration goal
|
|
1846
|
+
*
|
|
1847
|
+
* Get a single hydration goal by ID.
|
|
1848
|
+
*/
|
|
1849
|
+
static hydrationGoalsGet(options) {
|
|
1850
|
+
return (options.client ?? client).post({
|
|
1851
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1852
|
+
url: "/hydration/goals/{id}",
|
|
1853
|
+
...options,
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* List hydration goals
|
|
1858
|
+
*
|
|
1859
|
+
* List hydration goals for the current user.
|
|
1860
|
+
*/
|
|
1861
|
+
static hydrationGoalsList(options) {
|
|
1862
|
+
return (options?.client ?? client).post({
|
|
1863
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1864
|
+
url: "/hydration/goals/list",
|
|
1865
|
+
...options,
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Get hydration goal for date
|
|
1870
|
+
*
|
|
1871
|
+
* Get the active hydration goal for a date.
|
|
1872
|
+
*/
|
|
1873
|
+
static hydrationGoalsGetForDate(options) {
|
|
1874
|
+
return (options.client ?? client).post({
|
|
1875
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1876
|
+
url: "/hydration/goals/for-date",
|
|
1711
1877
|
...options,
|
|
1712
1878
|
headers: {
|
|
1713
|
-
|
|
1714
|
-
...options.headers
|
|
1715
|
-
}
|
|
1879
|
+
"Content-Type": "application/json",
|
|
1880
|
+
...options.headers,
|
|
1881
|
+
},
|
|
1882
|
+
});
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Create hydration goal
|
|
1886
|
+
*
|
|
1887
|
+
* Create a new hydration goal for the current user.
|
|
1888
|
+
*/
|
|
1889
|
+
static hydrationGoalsCreate(options) {
|
|
1890
|
+
return (options.client ?? client).post({
|
|
1891
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1892
|
+
url: "/hydration/goals",
|
|
1893
|
+
...options,
|
|
1894
|
+
headers: {
|
|
1895
|
+
"Content-Type": "application/json",
|
|
1896
|
+
...options.headers,
|
|
1897
|
+
},
|
|
1716
1898
|
});
|
|
1717
1899
|
}
|
|
1718
1900
|
}
|
|
@@ -1724,9 +1906,9 @@ export class Fasting {
|
|
|
1724
1906
|
*/
|
|
1725
1907
|
static fastingDelete(options) {
|
|
1726
1908
|
return (options.client ?? client).delete({
|
|
1727
|
-
security: [{ name:
|
|
1728
|
-
url:
|
|
1729
|
-
...options
|
|
1909
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1910
|
+
url: "/fasting/fasts/{id}",
|
|
1911
|
+
...options,
|
|
1730
1912
|
});
|
|
1731
1913
|
}
|
|
1732
1914
|
/**
|
|
@@ -1736,13 +1918,13 @@ export class Fasting {
|
|
|
1736
1918
|
*/
|
|
1737
1919
|
static fastingUpdate(options) {
|
|
1738
1920
|
return (options.client ?? client).patch({
|
|
1739
|
-
security: [{ name:
|
|
1740
|
-
url:
|
|
1921
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1922
|
+
url: "/fasting/fasts/{id}",
|
|
1741
1923
|
...options,
|
|
1742
1924
|
headers: {
|
|
1743
|
-
|
|
1744
|
-
...options.headers
|
|
1745
|
-
}
|
|
1925
|
+
"Content-Type": "application/json",
|
|
1926
|
+
...options.headers,
|
|
1927
|
+
},
|
|
1746
1928
|
});
|
|
1747
1929
|
}
|
|
1748
1930
|
/**
|
|
@@ -1752,9 +1934,9 @@ export class Fasting {
|
|
|
1752
1934
|
*/
|
|
1753
1935
|
static fastingGet(options) {
|
|
1754
1936
|
return (options.client ?? client).post({
|
|
1755
|
-
security: [{ name:
|
|
1756
|
-
url:
|
|
1757
|
-
...options
|
|
1937
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1938
|
+
url: "/fasting/fasts/{id}",
|
|
1939
|
+
...options,
|
|
1758
1940
|
});
|
|
1759
1941
|
}
|
|
1760
1942
|
/**
|
|
@@ -1764,13 +1946,13 @@ export class Fasting {
|
|
|
1764
1946
|
*/
|
|
1765
1947
|
static fastingList(options) {
|
|
1766
1948
|
return (options?.client ?? client).post({
|
|
1767
|
-
security: [{ name:
|
|
1768
|
-
url:
|
|
1949
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1950
|
+
url: "/fasting/fasts/list",
|
|
1769
1951
|
...options,
|
|
1770
1952
|
headers: {
|
|
1771
|
-
|
|
1772
|
-
...options?.headers
|
|
1773
|
-
}
|
|
1953
|
+
"Content-Type": "application/json",
|
|
1954
|
+
...options?.headers,
|
|
1955
|
+
},
|
|
1774
1956
|
});
|
|
1775
1957
|
}
|
|
1776
1958
|
/**
|
|
@@ -1780,9 +1962,9 @@ export class Fasting {
|
|
|
1780
1962
|
*/
|
|
1781
1963
|
static fastingGetActive(options) {
|
|
1782
1964
|
return (options?.client ?? client).post({
|
|
1783
|
-
security: [{ name:
|
|
1784
|
-
url:
|
|
1785
|
-
...options
|
|
1965
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1966
|
+
url: "/fasting/active",
|
|
1967
|
+
...options,
|
|
1786
1968
|
});
|
|
1787
1969
|
}
|
|
1788
1970
|
/**
|
|
@@ -1792,9 +1974,9 @@ export class Fasting {
|
|
|
1792
1974
|
*/
|
|
1793
1975
|
static fastingGetStats(options) {
|
|
1794
1976
|
return (options?.client ?? client).post({
|
|
1795
|
-
security: [{ name:
|
|
1796
|
-
url:
|
|
1797
|
-
...options
|
|
1977
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1978
|
+
url: "/fasting/stats",
|
|
1979
|
+
...options,
|
|
1798
1980
|
});
|
|
1799
1981
|
}
|
|
1800
1982
|
/**
|
|
@@ -1804,9 +1986,9 @@ export class Fasting {
|
|
|
1804
1986
|
*/
|
|
1805
1987
|
static fastingGetDashboardInfo(options) {
|
|
1806
1988
|
return (options?.client ?? client).post({
|
|
1807
|
-
security: [{ name:
|
|
1808
|
-
url:
|
|
1809
|
-
...options
|
|
1989
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
1990
|
+
url: "/fasting/dashboard",
|
|
1991
|
+
...options,
|
|
1810
1992
|
});
|
|
1811
1993
|
}
|
|
1812
1994
|
/**
|
|
@@ -1816,13 +1998,13 @@ export class Fasting {
|
|
|
1816
1998
|
*/
|
|
1817
1999
|
static fastingStart(options) {
|
|
1818
2000
|
return (options?.client ?? client).post({
|
|
1819
|
-
security: [{ name:
|
|
1820
|
-
url:
|
|
2001
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2002
|
+
url: "/fasting/start",
|
|
1821
2003
|
...options,
|
|
1822
2004
|
headers: {
|
|
1823
|
-
|
|
1824
|
-
...options?.headers
|
|
1825
|
-
}
|
|
2005
|
+
"Content-Type": "application/json",
|
|
2006
|
+
...options?.headers,
|
|
2007
|
+
},
|
|
1826
2008
|
});
|
|
1827
2009
|
}
|
|
1828
2010
|
/**
|
|
@@ -1832,401 +2014,2357 @@ export class Fasting {
|
|
|
1832
2014
|
*/
|
|
1833
2015
|
static fastingEnd(options) {
|
|
1834
2016
|
return (options.client ?? client).post({
|
|
1835
|
-
security: [{ name:
|
|
1836
|
-
url:
|
|
2017
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2018
|
+
url: "/fasting/end",
|
|
1837
2019
|
...options,
|
|
1838
2020
|
headers: {
|
|
1839
|
-
|
|
1840
|
-
...options.headers
|
|
1841
|
-
}
|
|
2021
|
+
"Content-Type": "application/json",
|
|
2022
|
+
...options.headers,
|
|
2023
|
+
},
|
|
1842
2024
|
});
|
|
1843
2025
|
}
|
|
1844
2026
|
}
|
|
1845
|
-
export class
|
|
2027
|
+
export class Food {
|
|
1846
2028
|
/**
|
|
1847
|
-
* Delete
|
|
2029
|
+
* Delete food log
|
|
1848
2030
|
*
|
|
1849
|
-
* Delete a
|
|
2031
|
+
* Delete a food log by ID.
|
|
1850
2032
|
*/
|
|
1851
|
-
static
|
|
2033
|
+
static foodLogsDelete(options) {
|
|
1852
2034
|
return (options.client ?? client).delete({
|
|
1853
|
-
security: [{ name:
|
|
1854
|
-
url:
|
|
1855
|
-
...options
|
|
2035
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2036
|
+
url: "/food/logs/{id}",
|
|
2037
|
+
...options,
|
|
1856
2038
|
});
|
|
1857
2039
|
}
|
|
1858
2040
|
/**
|
|
1859
|
-
* Update
|
|
2041
|
+
* Update food log
|
|
1860
2042
|
*
|
|
1861
|
-
* Update an existing
|
|
2043
|
+
* Update an existing food log.
|
|
1862
2044
|
*/
|
|
1863
|
-
static
|
|
2045
|
+
static foodLogsUpdate(options) {
|
|
1864
2046
|
return (options.client ?? client).patch({
|
|
1865
|
-
security: [{ name:
|
|
1866
|
-
url:
|
|
2047
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2048
|
+
url: "/food/logs/{id}",
|
|
1867
2049
|
...options,
|
|
1868
2050
|
headers: {
|
|
1869
|
-
|
|
1870
|
-
...options.headers
|
|
1871
|
-
}
|
|
2051
|
+
"Content-Type": "application/json",
|
|
2052
|
+
...options.headers,
|
|
2053
|
+
},
|
|
1872
2054
|
});
|
|
1873
2055
|
}
|
|
1874
2056
|
/**
|
|
1875
|
-
* Get
|
|
2057
|
+
* Get food log
|
|
1876
2058
|
*
|
|
1877
|
-
* Get a single
|
|
2059
|
+
* Get a single food log by ID.
|
|
1878
2060
|
*/
|
|
1879
|
-
static
|
|
2061
|
+
static foodLogsGet(options) {
|
|
1880
2062
|
return (options.client ?? client).post({
|
|
1881
|
-
security: [{ name:
|
|
1882
|
-
url:
|
|
1883
|
-
...options
|
|
2063
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2064
|
+
url: "/food/logs/{id}",
|
|
2065
|
+
...options,
|
|
1884
2066
|
});
|
|
1885
2067
|
}
|
|
1886
2068
|
/**
|
|
1887
|
-
* List
|
|
2069
|
+
* List food logs
|
|
1888
2070
|
*
|
|
1889
|
-
* List
|
|
2071
|
+
* List food logs for a date range.
|
|
1890
2072
|
*/
|
|
1891
|
-
static
|
|
1892
|
-
return (options
|
|
1893
|
-
security: [{ name:
|
|
1894
|
-
url:
|
|
2073
|
+
static foodLogsList(options) {
|
|
2074
|
+
return (options.client ?? client).post({
|
|
2075
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2076
|
+
url: "/food/logs/list",
|
|
1895
2077
|
...options,
|
|
1896
2078
|
headers: {
|
|
1897
|
-
|
|
1898
|
-
...options
|
|
1899
|
-
}
|
|
2079
|
+
"Content-Type": "application/json",
|
|
2080
|
+
...options.headers,
|
|
2081
|
+
},
|
|
1900
2082
|
});
|
|
1901
2083
|
}
|
|
1902
2084
|
/**
|
|
1903
|
-
* Create
|
|
2085
|
+
* Create food log
|
|
1904
2086
|
*
|
|
1905
|
-
* Create a new
|
|
2087
|
+
* Create a new food log.
|
|
1906
2088
|
*/
|
|
1907
|
-
static
|
|
2089
|
+
static foodLogsCreate(options) {
|
|
1908
2090
|
return (options.client ?? client).post({
|
|
1909
|
-
security: [{ name:
|
|
1910
|
-
url:
|
|
2091
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2092
|
+
url: "/food/logs",
|
|
1911
2093
|
...options,
|
|
1912
2094
|
headers: {
|
|
1913
|
-
|
|
1914
|
-
...options.headers
|
|
1915
|
-
}
|
|
2095
|
+
"Content-Type": "application/json",
|
|
2096
|
+
...options.headers,
|
|
2097
|
+
},
|
|
1916
2098
|
});
|
|
1917
2099
|
}
|
|
1918
2100
|
/**
|
|
1919
|
-
*
|
|
2101
|
+
* Delete multiple food logs
|
|
1920
2102
|
*
|
|
1921
|
-
*
|
|
2103
|
+
* Delete multiple food logs by ID.
|
|
1922
2104
|
*/
|
|
1923
|
-
static
|
|
1924
|
-
return (options
|
|
1925
|
-
security: [{ name:
|
|
1926
|
-
url:
|
|
1927
|
-
...options
|
|
2105
|
+
static foodLogsDeleteMany(options) {
|
|
2106
|
+
return (options.client ?? client).post({
|
|
2107
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2108
|
+
url: "/food/logs/delete-many",
|
|
2109
|
+
...options,
|
|
2110
|
+
headers: {
|
|
2111
|
+
"Content-Type": "application/json",
|
|
2112
|
+
...options.headers,
|
|
2113
|
+
},
|
|
1928
2114
|
});
|
|
1929
2115
|
}
|
|
1930
2116
|
/**
|
|
1931
|
-
*
|
|
2117
|
+
* Get food calories stats
|
|
1932
2118
|
*
|
|
1933
|
-
*
|
|
2119
|
+
* Get total calories and calorie goal stats for a date.
|
|
1934
2120
|
*/
|
|
1935
|
-
static
|
|
1936
|
-
return (options
|
|
1937
|
-
security: [{ name:
|
|
1938
|
-
url:
|
|
2121
|
+
static foodLogsGetCaloriesStats(options) {
|
|
2122
|
+
return (options.client ?? client).post({
|
|
2123
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2124
|
+
url: "/food/stats/calories",
|
|
1939
2125
|
...options,
|
|
1940
2126
|
headers: {
|
|
1941
|
-
|
|
1942
|
-
...options
|
|
1943
|
-
}
|
|
2127
|
+
"Content-Type": "application/json",
|
|
2128
|
+
...options.headers,
|
|
2129
|
+
},
|
|
1944
2130
|
});
|
|
1945
2131
|
}
|
|
1946
2132
|
/**
|
|
1947
|
-
*
|
|
2133
|
+
* Get food protein stats
|
|
1948
2134
|
*
|
|
1949
|
-
*
|
|
2135
|
+
* Get total protein and protein goal stats for a date.
|
|
1950
2136
|
*/
|
|
1951
|
-
static
|
|
2137
|
+
static foodLogsGetProteinStats(options) {
|
|
1952
2138
|
return (options.client ?? client).post({
|
|
1953
|
-
security: [{ name:
|
|
1954
|
-
url:
|
|
2139
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2140
|
+
url: "/food/stats/protein",
|
|
1955
2141
|
...options,
|
|
1956
2142
|
headers: {
|
|
1957
|
-
|
|
1958
|
-
...options.headers
|
|
1959
|
-
}
|
|
2143
|
+
"Content-Type": "application/json",
|
|
2144
|
+
...options.headers,
|
|
2145
|
+
},
|
|
1960
2146
|
});
|
|
1961
2147
|
}
|
|
1962
2148
|
/**
|
|
1963
|
-
*
|
|
2149
|
+
* Get food carbs stats
|
|
1964
2150
|
*
|
|
1965
|
-
*
|
|
2151
|
+
* Get total carbs and carbs goal stats for a date.
|
|
1966
2152
|
*/
|
|
1967
|
-
static
|
|
2153
|
+
static foodLogsGetCarbsStats(options) {
|
|
1968
2154
|
return (options.client ?? client).post({
|
|
1969
|
-
security: [{ name:
|
|
1970
|
-
url:
|
|
1971
|
-
...options
|
|
2155
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2156
|
+
url: "/food/stats/carbs",
|
|
2157
|
+
...options,
|
|
2158
|
+
headers: {
|
|
2159
|
+
"Content-Type": "application/json",
|
|
2160
|
+
...options.headers,
|
|
2161
|
+
},
|
|
1972
2162
|
});
|
|
1973
2163
|
}
|
|
2164
|
+
}
|
|
2165
|
+
export class WeightLogs {
|
|
1974
2166
|
/**
|
|
1975
|
-
* Get
|
|
2167
|
+
* Get weight log
|
|
1976
2168
|
*
|
|
1977
|
-
* Get a
|
|
2169
|
+
* Get a single weight log by ID.
|
|
1978
2170
|
*/
|
|
1979
|
-
static
|
|
2171
|
+
static weightLogsGet(options) {
|
|
1980
2172
|
return (options.client ?? client).post({
|
|
1981
|
-
security: [{ name:
|
|
1982
|
-
url:
|
|
1983
|
-
...options
|
|
2173
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2174
|
+
url: "/weight-logs/get",
|
|
2175
|
+
...options,
|
|
2176
|
+
headers: {
|
|
2177
|
+
"Content-Type": "application/json",
|
|
2178
|
+
...options.headers,
|
|
2179
|
+
},
|
|
1984
2180
|
});
|
|
1985
2181
|
}
|
|
1986
2182
|
/**
|
|
1987
|
-
*
|
|
2183
|
+
* List weight logs
|
|
1988
2184
|
*
|
|
1989
|
-
*
|
|
2185
|
+
* Get weight logs for the user, optionally filtered by date range.
|
|
1990
2186
|
*/
|
|
1991
|
-
static
|
|
1992
|
-
return (options
|
|
1993
|
-
security: [{ name:
|
|
1994
|
-
url:
|
|
2187
|
+
static weightLogsList(options) {
|
|
2188
|
+
return (options?.client ?? client).post({
|
|
2189
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2190
|
+
url: "/weight-logs/list",
|
|
1995
2191
|
...options,
|
|
1996
2192
|
headers: {
|
|
1997
|
-
|
|
1998
|
-
...options
|
|
1999
|
-
}
|
|
2193
|
+
"Content-Type": "application/json",
|
|
2194
|
+
...options?.headers,
|
|
2195
|
+
},
|
|
2000
2196
|
});
|
|
2001
2197
|
}
|
|
2002
2198
|
/**
|
|
2003
|
-
*
|
|
2199
|
+
* Create weight log
|
|
2004
2200
|
*
|
|
2005
|
-
*
|
|
2201
|
+
* Create a new weight log entry.
|
|
2006
2202
|
*/
|
|
2007
|
-
static
|
|
2008
|
-
return (options
|
|
2009
|
-
security: [{ name:
|
|
2010
|
-
url:
|
|
2011
|
-
...options
|
|
2203
|
+
static weightLogsCreate(options) {
|
|
2204
|
+
return (options.client ?? client).post({
|
|
2205
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2206
|
+
url: "/weight-logs/create",
|
|
2207
|
+
...options,
|
|
2208
|
+
headers: {
|
|
2209
|
+
"Content-Type": "application/json",
|
|
2210
|
+
...options.headers,
|
|
2211
|
+
},
|
|
2012
2212
|
});
|
|
2013
2213
|
}
|
|
2014
2214
|
/**
|
|
2015
|
-
*
|
|
2215
|
+
* Update weight log
|
|
2016
2216
|
*
|
|
2017
|
-
*
|
|
2217
|
+
* Update an existing weight log.
|
|
2018
2218
|
*/
|
|
2019
|
-
static
|
|
2219
|
+
static weightLogsUpdate(options) {
|
|
2020
2220
|
return (options.client ?? client).post({
|
|
2021
|
-
security: [{ name:
|
|
2022
|
-
url:
|
|
2221
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2222
|
+
url: "/weight-logs/update",
|
|
2023
2223
|
...options,
|
|
2024
2224
|
headers: {
|
|
2025
|
-
|
|
2026
|
-
...options.headers
|
|
2027
|
-
}
|
|
2225
|
+
"Content-Type": "application/json",
|
|
2226
|
+
...options.headers,
|
|
2227
|
+
},
|
|
2028
2228
|
});
|
|
2029
2229
|
}
|
|
2030
|
-
}
|
|
2031
|
-
export class Journal {
|
|
2032
2230
|
/**
|
|
2033
|
-
* Delete
|
|
2231
|
+
* Delete weight log
|
|
2034
2232
|
*
|
|
2035
|
-
* Delete a
|
|
2233
|
+
* Delete a weight log by ID.
|
|
2036
2234
|
*/
|
|
2037
|
-
static
|
|
2038
|
-
return (options.client ?? client).
|
|
2039
|
-
security: [{ name:
|
|
2040
|
-
url:
|
|
2041
|
-
...options
|
|
2235
|
+
static weightLogsDelete(options) {
|
|
2236
|
+
return (options.client ?? client).post({
|
|
2237
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2238
|
+
url: "/weight-logs/delete",
|
|
2239
|
+
...options,
|
|
2240
|
+
headers: {
|
|
2241
|
+
"Content-Type": "application/json",
|
|
2242
|
+
...options.headers,
|
|
2243
|
+
},
|
|
2042
2244
|
});
|
|
2043
2245
|
}
|
|
2044
2246
|
/**
|
|
2045
|
-
*
|
|
2247
|
+
* Delete many weight logs
|
|
2046
2248
|
*
|
|
2047
|
-
*
|
|
2249
|
+
* Delete multiple weight log entries.
|
|
2048
2250
|
*/
|
|
2049
|
-
static
|
|
2050
|
-
return (options.client ?? client).
|
|
2051
|
-
security: [{ name:
|
|
2052
|
-
url:
|
|
2251
|
+
static weightLogsDeleteMany(options) {
|
|
2252
|
+
return (options.client ?? client).post({
|
|
2253
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2254
|
+
url: "/weight-logs/delete-many",
|
|
2053
2255
|
...options,
|
|
2054
2256
|
headers: {
|
|
2055
|
-
|
|
2056
|
-
...options.headers
|
|
2057
|
-
}
|
|
2257
|
+
"Content-Type": "application/json",
|
|
2258
|
+
...options.headers,
|
|
2259
|
+
},
|
|
2058
2260
|
});
|
|
2059
2261
|
}
|
|
2060
2262
|
/**
|
|
2061
|
-
* Get
|
|
2263
|
+
* Get weight settings
|
|
2062
2264
|
*
|
|
2063
|
-
* Get
|
|
2265
|
+
* Get user weight unit preferences.
|
|
2064
2266
|
*/
|
|
2065
|
-
static
|
|
2066
|
-
return (options
|
|
2067
|
-
security: [{ name:
|
|
2068
|
-
url:
|
|
2267
|
+
static weightLogsGetSettings(options) {
|
|
2268
|
+
return (options?.client ?? client).post({
|
|
2269
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2270
|
+
url: "/weight-logs/settings/get",
|
|
2069
2271
|
...options,
|
|
2070
|
-
headers: {
|
|
2071
|
-
'Content-Type': 'application/json',
|
|
2072
|
-
...options.headers
|
|
2073
|
-
}
|
|
2074
2272
|
});
|
|
2075
2273
|
}
|
|
2076
2274
|
/**
|
|
2077
|
-
*
|
|
2275
|
+
* Update weight settings
|
|
2078
2276
|
*
|
|
2079
|
-
*
|
|
2277
|
+
* Update user weight unit preference.
|
|
2080
2278
|
*/
|
|
2081
|
-
static
|
|
2279
|
+
static weightLogsUpdateWeightUnit(options) {
|
|
2082
2280
|
return (options.client ?? client).post({
|
|
2083
|
-
security: [{ name:
|
|
2084
|
-
url:
|
|
2281
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2282
|
+
url: "/weight-logs/settings/update",
|
|
2085
2283
|
...options,
|
|
2086
2284
|
headers: {
|
|
2087
|
-
|
|
2088
|
-
...options.headers
|
|
2089
|
-
}
|
|
2285
|
+
"Content-Type": "application/json",
|
|
2286
|
+
...options.headers,
|
|
2287
|
+
},
|
|
2090
2288
|
});
|
|
2091
2289
|
}
|
|
2092
2290
|
/**
|
|
2093
|
-
*
|
|
2291
|
+
* Get weights for widget
|
|
2094
2292
|
*
|
|
2095
|
-
*
|
|
2293
|
+
* Get recent weight data points for widget charts.
|
|
2096
2294
|
*/
|
|
2097
|
-
static
|
|
2098
|
-
return (options
|
|
2099
|
-
security: [{ name:
|
|
2100
|
-
url:
|
|
2295
|
+
static weightLogsGetWeightsForWidget(options) {
|
|
2296
|
+
return (options?.client ?? client).post({
|
|
2297
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2298
|
+
url: "/weight-logs/widget",
|
|
2101
2299
|
...options,
|
|
2102
|
-
headers: {
|
|
2103
|
-
'Content-Type': 'application/json',
|
|
2104
|
-
...options.headers
|
|
2105
|
-
}
|
|
2106
2300
|
});
|
|
2107
2301
|
}
|
|
2108
2302
|
/**
|
|
2109
|
-
*
|
|
2303
|
+
* Get current weight goal
|
|
2110
2304
|
*
|
|
2111
|
-
*
|
|
2305
|
+
* Get the active weight goal with start and current weight context.
|
|
2112
2306
|
*/
|
|
2113
|
-
static
|
|
2114
|
-
return (options
|
|
2115
|
-
security: [{ name:
|
|
2116
|
-
url:
|
|
2307
|
+
static weightLogsGetCurrentActiveGoal(options) {
|
|
2308
|
+
return (options?.client ?? client).post({
|
|
2309
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2310
|
+
url: "/weight-logs/current-goal",
|
|
2117
2311
|
...options,
|
|
2118
|
-
headers: {
|
|
2119
|
-
'Content-Type': 'application/json',
|
|
2120
|
-
...options.headers
|
|
2121
|
-
}
|
|
2122
2312
|
});
|
|
2123
2313
|
}
|
|
2314
|
+
}
|
|
2315
|
+
export class Workouts {
|
|
2124
2316
|
/**
|
|
2125
|
-
*
|
|
2317
|
+
* Delete workout
|
|
2126
2318
|
*
|
|
2127
|
-
*
|
|
2319
|
+
* Delete a workout
|
|
2128
2320
|
*/
|
|
2129
|
-
static
|
|
2130
|
-
return (options.client ?? client).
|
|
2131
|
-
security: [{ name:
|
|
2132
|
-
url:
|
|
2321
|
+
static workoutsDelete(options) {
|
|
2322
|
+
return (options.client ?? client).delete({
|
|
2323
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2324
|
+
url: "/workouts/{id}",
|
|
2133
2325
|
...options,
|
|
2134
|
-
headers: {
|
|
2135
|
-
'Content-Type': 'application/json',
|
|
2136
|
-
...options.headers
|
|
2137
|
-
}
|
|
2138
2326
|
});
|
|
2139
2327
|
}
|
|
2140
2328
|
/**
|
|
2141
|
-
*
|
|
2329
|
+
* Update workout
|
|
2142
2330
|
*
|
|
2143
|
-
*
|
|
2331
|
+
* Update an existing workout
|
|
2144
2332
|
*/
|
|
2145
|
-
static
|
|
2146
|
-
return (options.client ?? client).
|
|
2147
|
-
security: [{ name:
|
|
2148
|
-
url:
|
|
2333
|
+
static workoutsUpdate(options) {
|
|
2334
|
+
return (options.client ?? client).patch({
|
|
2335
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2336
|
+
url: "/workouts/{id}",
|
|
2149
2337
|
...options,
|
|
2150
2338
|
headers: {
|
|
2151
|
-
|
|
2152
|
-
...options.headers
|
|
2153
|
-
}
|
|
2339
|
+
"Content-Type": "application/json",
|
|
2340
|
+
...options.headers,
|
|
2341
|
+
},
|
|
2154
2342
|
});
|
|
2155
2343
|
}
|
|
2156
2344
|
/**
|
|
2157
|
-
*
|
|
2345
|
+
* Get workout
|
|
2158
2346
|
*
|
|
2159
|
-
*
|
|
2347
|
+
* Get a single workout by ID
|
|
2160
2348
|
*/
|
|
2161
|
-
static
|
|
2349
|
+
static workoutsGet(options) {
|
|
2162
2350
|
return (options.client ?? client).post({
|
|
2163
|
-
security: [{ name:
|
|
2164
|
-
url:
|
|
2351
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2352
|
+
url: "/workouts/{id}",
|
|
2165
2353
|
...options,
|
|
2166
|
-
headers: {
|
|
2167
|
-
'Content-Type': 'application/json',
|
|
2168
|
-
...options.headers
|
|
2169
|
-
}
|
|
2170
2354
|
});
|
|
2171
2355
|
}
|
|
2172
2356
|
/**
|
|
2173
|
-
*
|
|
2357
|
+
* List workouts
|
|
2174
2358
|
*
|
|
2175
|
-
*
|
|
2359
|
+
* List workouts for a date range
|
|
2176
2360
|
*/
|
|
2177
|
-
static
|
|
2178
|
-
return (options
|
|
2179
|
-
security: [{ name:
|
|
2180
|
-
url:
|
|
2361
|
+
static workoutsList(options) {
|
|
2362
|
+
return (options?.client ?? client).post({
|
|
2363
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2364
|
+
url: "/workouts/list",
|
|
2181
2365
|
...options,
|
|
2182
2366
|
headers: {
|
|
2183
|
-
|
|
2184
|
-
...options
|
|
2185
|
-
}
|
|
2367
|
+
"Content-Type": "application/json",
|
|
2368
|
+
...options?.headers,
|
|
2369
|
+
},
|
|
2186
2370
|
});
|
|
2187
2371
|
}
|
|
2188
2372
|
/**
|
|
2189
|
-
*
|
|
2373
|
+
* Create workout
|
|
2190
2374
|
*
|
|
2191
|
-
*
|
|
2375
|
+
* Create a new workout
|
|
2192
2376
|
*/
|
|
2193
|
-
static
|
|
2377
|
+
static workoutsCreate(options) {
|
|
2194
2378
|
return (options.client ?? client).post({
|
|
2195
|
-
security: [{ name:
|
|
2196
|
-
url:
|
|
2379
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2380
|
+
url: "/workouts",
|
|
2197
2381
|
...options,
|
|
2198
2382
|
headers: {
|
|
2199
|
-
|
|
2200
|
-
...options.headers
|
|
2201
|
-
}
|
|
2383
|
+
"Content-Type": "application/json",
|
|
2384
|
+
...options.headers,
|
|
2385
|
+
},
|
|
2202
2386
|
});
|
|
2203
2387
|
}
|
|
2204
2388
|
/**
|
|
2205
|
-
*
|
|
2389
|
+
* Get in-progress workout
|
|
2206
2390
|
*
|
|
2207
|
-
*
|
|
2391
|
+
* Get the currently in-progress workout
|
|
2208
2392
|
*/
|
|
2209
|
-
static
|
|
2210
|
-
return (options
|
|
2211
|
-
security: [{ name:
|
|
2212
|
-
url:
|
|
2393
|
+
static workoutsInProgress(options) {
|
|
2394
|
+
return (options?.client ?? client).post({
|
|
2395
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2396
|
+
url: "/workouts/in-progress",
|
|
2213
2397
|
...options,
|
|
2214
|
-
headers: {
|
|
2215
|
-
'Content-Type': 'application/json',
|
|
2216
|
-
...options.headers
|
|
2217
|
-
}
|
|
2218
2398
|
});
|
|
2219
2399
|
}
|
|
2220
2400
|
/**
|
|
2221
|
-
*
|
|
2401
|
+
* Start workout
|
|
2402
|
+
*
|
|
2403
|
+
* Start a new workout
|
|
2404
|
+
*/
|
|
2405
|
+
static workoutsStart(options) {
|
|
2406
|
+
return (options?.client ?? client).post({
|
|
2407
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2408
|
+
url: "/workouts/start",
|
|
2409
|
+
...options,
|
|
2410
|
+
headers: {
|
|
2411
|
+
"Content-Type": "application/json",
|
|
2412
|
+
...options?.headers,
|
|
2413
|
+
},
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
/**
|
|
2417
|
+
* End workout
|
|
2418
|
+
*
|
|
2419
|
+
* End an in-progress workout
|
|
2420
|
+
*/
|
|
2421
|
+
static workoutsEnd(options) {
|
|
2422
|
+
return (options.client ?? client).post({
|
|
2423
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2424
|
+
url: "/workouts/end",
|
|
2425
|
+
...options,
|
|
2426
|
+
headers: {
|
|
2427
|
+
"Content-Type": "application/json",
|
|
2428
|
+
...options.headers,
|
|
2429
|
+
},
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Duplicate workout
|
|
2434
|
+
*
|
|
2435
|
+
* Duplicate an existing workout
|
|
2436
|
+
*/
|
|
2437
|
+
static workoutsDuplicate(options) {
|
|
2438
|
+
return (options.client ?? client).post({
|
|
2439
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2440
|
+
url: "/workouts/{id}/duplicate",
|
|
2441
|
+
...options,
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
/**
|
|
2445
|
+
* Get workout with details
|
|
2446
|
+
*
|
|
2447
|
+
* Get a workout with full details (exercises, sets)
|
|
2448
|
+
*/
|
|
2449
|
+
static workoutsGetWithDetails(options) {
|
|
2450
|
+
return (options.client ?? client).post({
|
|
2451
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2452
|
+
url: "/workouts/{id}/details",
|
|
2453
|
+
...options,
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Update workout name
|
|
2458
|
+
*
|
|
2459
|
+
* Update the name of a workout
|
|
2460
|
+
*/
|
|
2461
|
+
static workoutsUpdateName(options) {
|
|
2462
|
+
return (options.client ?? client).patch({
|
|
2463
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2464
|
+
url: "/workouts/{id}/name",
|
|
2465
|
+
...options,
|
|
2466
|
+
headers: {
|
|
2467
|
+
"Content-Type": "application/json",
|
|
2468
|
+
...options.headers,
|
|
2469
|
+
},
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* Get active users
|
|
2474
|
+
*
|
|
2475
|
+
* Get users who are currently working out
|
|
2476
|
+
*/
|
|
2477
|
+
static workoutsActiveUsers(options) {
|
|
2478
|
+
return (options?.client ?? client).post({
|
|
2479
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2480
|
+
url: "/workouts/active-users",
|
|
2481
|
+
...options,
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Submit complete workout
|
|
2486
|
+
*
|
|
2487
|
+
* Submit a complete workout with all exercises and sets
|
|
2488
|
+
*/
|
|
2489
|
+
static workoutsSubmitComplete(options) {
|
|
2490
|
+
return (options.client ?? client).post({
|
|
2491
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2492
|
+
url: "/workouts/submit-complete",
|
|
2493
|
+
...options,
|
|
2494
|
+
headers: {
|
|
2495
|
+
"Content-Type": "application/json",
|
|
2496
|
+
...options.headers,
|
|
2497
|
+
},
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
export class Journal {
|
|
2502
|
+
/**
|
|
2503
|
+
* List journal entries
|
|
2504
|
+
*
|
|
2505
|
+
* List journal entries for a date range
|
|
2506
|
+
*/
|
|
2507
|
+
static journalEntriesList(options) {
|
|
2508
|
+
return (options.client ?? client).post({
|
|
2509
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2510
|
+
url: "/journal/entries/list",
|
|
2511
|
+
...options,
|
|
2512
|
+
headers: {
|
|
2513
|
+
"Content-Type": "application/json",
|
|
2514
|
+
...options.headers,
|
|
2515
|
+
},
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
/**
|
|
2519
|
+
* Get journal stats
|
|
2520
|
+
*
|
|
2521
|
+
* Get statistics for journal entries
|
|
2522
|
+
*/
|
|
2523
|
+
static journalEntriesStats(options) {
|
|
2524
|
+
return (options.client ?? client).post({
|
|
2525
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2526
|
+
url: "/journal/stats",
|
|
2527
|
+
...options,
|
|
2528
|
+
headers: {
|
|
2529
|
+
"Content-Type": "application/json",
|
|
2530
|
+
...options.headers,
|
|
2531
|
+
},
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* Delete journal entry
|
|
2536
|
+
*
|
|
2537
|
+
* Delete a journal entry
|
|
2538
|
+
*/
|
|
2539
|
+
static journalEntriesDelete(options) {
|
|
2540
|
+
return (options.client ?? client).delete({
|
|
2541
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2542
|
+
url: "/journal/entries/{id}",
|
|
2543
|
+
...options,
|
|
2544
|
+
});
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Update journal entry
|
|
2548
|
+
*
|
|
2549
|
+
* Update an existing journal entry
|
|
2550
|
+
*/
|
|
2551
|
+
static journalEntriesUpdate(options) {
|
|
2552
|
+
return (options.client ?? client).patch({
|
|
2553
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2554
|
+
url: "/journal/entries/{id}",
|
|
2555
|
+
...options,
|
|
2556
|
+
headers: {
|
|
2557
|
+
"Content-Type": "application/json",
|
|
2558
|
+
...options.headers,
|
|
2559
|
+
},
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* Get journal entry
|
|
2564
|
+
*
|
|
2565
|
+
* Get a single journal entry
|
|
2566
|
+
*/
|
|
2567
|
+
static journalEntriesGet(options) {
|
|
2568
|
+
return (options.client ?? client).post({
|
|
2569
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2570
|
+
url: "/journal/entries/{id}",
|
|
2571
|
+
...options,
|
|
2572
|
+
headers: {
|
|
2573
|
+
"Content-Type": "application/json",
|
|
2574
|
+
...options.headers,
|
|
2575
|
+
},
|
|
2576
|
+
});
|
|
2577
|
+
}
|
|
2578
|
+
/**
|
|
2579
|
+
* Get entry for decrypting
|
|
2580
|
+
*
|
|
2581
|
+
* Get entry for decrypting without persisting changes
|
|
2582
|
+
*/
|
|
2583
|
+
static journalEntriesGetForDecrypting(options) {
|
|
2584
|
+
return (options.client ?? client).post({
|
|
2585
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2586
|
+
url: "/journal/entries/{id}/decrypt-preview",
|
|
2587
|
+
...options,
|
|
2588
|
+
headers: {
|
|
2589
|
+
"Content-Type": "application/json",
|
|
2590
|
+
...options.headers,
|
|
2591
|
+
},
|
|
2592
|
+
});
|
|
2593
|
+
}
|
|
2594
|
+
/**
|
|
2595
|
+
* Create journal entry
|
|
2596
|
+
*
|
|
2597
|
+
* Create a new journal entry
|
|
2598
|
+
*/
|
|
2599
|
+
static journalEntriesCreate(options) {
|
|
2600
|
+
return (options.client ?? client).post({
|
|
2601
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2602
|
+
url: "/journal/entries",
|
|
2603
|
+
...options,
|
|
2604
|
+
headers: {
|
|
2605
|
+
"Content-Type": "application/json",
|
|
2606
|
+
...options.headers,
|
|
2607
|
+
},
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Delete multiple entries
|
|
2612
|
+
*
|
|
2613
|
+
* Delete multiple journal entries
|
|
2614
|
+
*/
|
|
2615
|
+
static journalEntriesDeleteMany(options) {
|
|
2616
|
+
return (options.client ?? client).post({
|
|
2617
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2618
|
+
url: "/journal/entries/delete-many",
|
|
2619
|
+
...options,
|
|
2620
|
+
headers: {
|
|
2621
|
+
"Content-Type": "application/json",
|
|
2622
|
+
...options.headers,
|
|
2623
|
+
},
|
|
2624
|
+
});
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
* Update encryption status
|
|
2628
|
+
*
|
|
2629
|
+
* Update encryption status for multiple entries
|
|
2630
|
+
*/
|
|
2631
|
+
static journalEntriesUpdateManyEncryption(options) {
|
|
2632
|
+
return (options.client ?? client).post({
|
|
2633
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2634
|
+
url: "/journal/entries/update-many-encryption",
|
|
2635
|
+
...options,
|
|
2636
|
+
headers: {
|
|
2637
|
+
"Content-Type": "application/json",
|
|
2638
|
+
...options.headers,
|
|
2639
|
+
},
|
|
2640
|
+
});
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2643
|
+
* Encrypt multiple entries
|
|
2644
|
+
*
|
|
2645
|
+
* Encrypt multiple journal entries
|
|
2646
|
+
*/
|
|
2647
|
+
static journalEntriesEncryptMany(options) {
|
|
2648
|
+
return (options.client ?? client).post({
|
|
2649
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2650
|
+
url: "/journal/entries/encrypt-many",
|
|
2651
|
+
...options,
|
|
2652
|
+
headers: {
|
|
2653
|
+
"Content-Type": "application/json",
|
|
2654
|
+
...options.headers,
|
|
2655
|
+
},
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* Encrypt entry
|
|
2660
|
+
*
|
|
2661
|
+
* Encrypt a single journal entry
|
|
2662
|
+
*/
|
|
2663
|
+
static journalEntriesEncrypt(options) {
|
|
2664
|
+
return (options.client ?? client).post({
|
|
2665
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2666
|
+
url: "/journal/entries/{id}/encrypt",
|
|
2667
|
+
...options,
|
|
2668
|
+
headers: {
|
|
2669
|
+
"Content-Type": "application/json",
|
|
2670
|
+
...options.headers,
|
|
2671
|
+
},
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Decrypt entry
|
|
2676
|
+
*
|
|
2677
|
+
* Permanently decrypt a journal entry
|
|
2678
|
+
*/
|
|
2679
|
+
static journalEntriesDecrypt(options) {
|
|
2680
|
+
return (options.client ?? client).post({
|
|
2681
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2682
|
+
url: "/journal/entries/{id}/decrypt",
|
|
2683
|
+
...options,
|
|
2684
|
+
headers: {
|
|
2685
|
+
"Content-Type": "application/json",
|
|
2686
|
+
...options.headers,
|
|
2687
|
+
},
|
|
2688
|
+
});
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* Toggle encryption flag
|
|
2222
2692
|
*
|
|
2223
2693
|
* Toggle encryption flag without processing content
|
|
2224
2694
|
*/
|
|
2225
2695
|
static journalEntriesToggleEncryption(options) {
|
|
2226
2696
|
return (options.client ?? client).post({
|
|
2227
|
-
security: [{ name:
|
|
2228
|
-
url:
|
|
2229
|
-
...options
|
|
2697
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2698
|
+
url: "/journal/entries/{id}/toggle-encryption",
|
|
2699
|
+
...options,
|
|
2700
|
+
});
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
export class PlannerEventLists {
|
|
2704
|
+
/**
|
|
2705
|
+
* List planner event lists
|
|
2706
|
+
*
|
|
2707
|
+
* List planner event lists for the current user
|
|
2708
|
+
*/
|
|
2709
|
+
static plannerEventListsList(options) {
|
|
2710
|
+
return (options?.client ?? client).post({
|
|
2711
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2712
|
+
url: "/planner-event-lists/list",
|
|
2713
|
+
...options,
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
/**
|
|
2717
|
+
* Check if user has shared planner event lists
|
|
2718
|
+
*
|
|
2719
|
+
* Returns whether the current user has planner event lists shared with them
|
|
2720
|
+
*/
|
|
2721
|
+
static plannerEventListsHasSharedLists(options) {
|
|
2722
|
+
return (options?.client ?? client).post({
|
|
2723
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2724
|
+
url: "/planner-event-lists/has-shared-lists",
|
|
2725
|
+
...options,
|
|
2726
|
+
});
|
|
2727
|
+
}
|
|
2728
|
+
/**
|
|
2729
|
+
* Delete planner event list
|
|
2730
|
+
*
|
|
2731
|
+
* Delete a planner event list
|
|
2732
|
+
*/
|
|
2733
|
+
static plannerEventListsDelete(options) {
|
|
2734
|
+
return (options.client ?? client).delete({
|
|
2735
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2736
|
+
url: "/planner-event-lists/{id}",
|
|
2737
|
+
...options,
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Update planner event list
|
|
2742
|
+
*
|
|
2743
|
+
* Update an existing planner event list
|
|
2744
|
+
*/
|
|
2745
|
+
static plannerEventListsUpdate(options) {
|
|
2746
|
+
return (options.client ?? client).patch({
|
|
2747
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2748
|
+
url: "/planner-event-lists/{id}",
|
|
2749
|
+
...options,
|
|
2750
|
+
headers: {
|
|
2751
|
+
"Content-Type": "application/json",
|
|
2752
|
+
...options.headers,
|
|
2753
|
+
},
|
|
2754
|
+
});
|
|
2755
|
+
}
|
|
2756
|
+
/**
|
|
2757
|
+
* Get planner event list
|
|
2758
|
+
*
|
|
2759
|
+
* Get a single planner event list by ID
|
|
2760
|
+
*/
|
|
2761
|
+
static plannerEventListsGet(options) {
|
|
2762
|
+
return (options.client ?? client).post({
|
|
2763
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2764
|
+
url: "/planner-event-lists/{id}",
|
|
2765
|
+
...options,
|
|
2766
|
+
});
|
|
2767
|
+
}
|
|
2768
|
+
/**
|
|
2769
|
+
* Create planner event list
|
|
2770
|
+
*
|
|
2771
|
+
* Create a new planner event list
|
|
2772
|
+
*/
|
|
2773
|
+
static plannerEventListsCreate(options) {
|
|
2774
|
+
return (options.client ?? client).post({
|
|
2775
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2776
|
+
url: "/planner-event-lists",
|
|
2777
|
+
...options,
|
|
2778
|
+
headers: {
|
|
2779
|
+
"Content-Type": "application/json",
|
|
2780
|
+
...options.headers,
|
|
2781
|
+
},
|
|
2782
|
+
});
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
export class TodoViews {
|
|
2786
|
+
/**
|
|
2787
|
+
* List completed todos
|
|
2788
|
+
*
|
|
2789
|
+
* List completed todos for the current user.
|
|
2790
|
+
*/
|
|
2791
|
+
static todoViewsDone(options) {
|
|
2792
|
+
return (options?.client ?? client).post({
|
|
2793
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2794
|
+
url: "/todo-views/done",
|
|
2795
|
+
...options,
|
|
2796
|
+
headers: {
|
|
2797
|
+
"Content-Type": "application/json",
|
|
2798
|
+
...options?.headers,
|
|
2799
|
+
},
|
|
2800
|
+
});
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* List trashed todos
|
|
2804
|
+
*
|
|
2805
|
+
* List deleted todos for the current user.
|
|
2806
|
+
*/
|
|
2807
|
+
static todoViewsTrash(options) {
|
|
2808
|
+
return (options?.client ?? client).post({
|
|
2809
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2810
|
+
url: "/todo-views/trash",
|
|
2811
|
+
...options,
|
|
2812
|
+
headers: {
|
|
2813
|
+
"Content-Type": "application/json",
|
|
2814
|
+
...options?.headers,
|
|
2815
|
+
},
|
|
2816
|
+
});
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* List paused todos
|
|
2820
|
+
*
|
|
2821
|
+
* List paused todos for the current user.
|
|
2822
|
+
*/
|
|
2823
|
+
static todoViewsPaused(options) {
|
|
2824
|
+
return (options?.client ?? client).post({
|
|
2825
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2826
|
+
url: "/todo-views/paused",
|
|
2827
|
+
...options,
|
|
2828
|
+
headers: {
|
|
2829
|
+
"Content-Type": "application/json",
|
|
2830
|
+
...options?.headers,
|
|
2831
|
+
},
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* List recurring todos
|
|
2836
|
+
*
|
|
2837
|
+
* List recurring todos for the current user.
|
|
2838
|
+
*/
|
|
2839
|
+
static todoViewsRecurring(options) {
|
|
2840
|
+
return (options?.client ?? client).post({
|
|
2841
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2842
|
+
url: "/todo-views/recurring",
|
|
2843
|
+
...options,
|
|
2844
|
+
headers: {
|
|
2845
|
+
"Content-Type": "application/json",
|
|
2846
|
+
...options?.headers,
|
|
2847
|
+
},
|
|
2848
|
+
});
|
|
2849
|
+
}
|
|
2850
|
+
/**
|
|
2851
|
+
* Get todo list sharing info
|
|
2852
|
+
*
|
|
2853
|
+
* Get sharing details for a todo list visible to the current user.
|
|
2854
|
+
*/
|
|
2855
|
+
static todoViewsSharing(options) {
|
|
2856
|
+
return (options.client ?? client).post({
|
|
2857
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2858
|
+
url: "/todo-views/sharing",
|
|
2859
|
+
...options,
|
|
2860
|
+
headers: {
|
|
2861
|
+
"Content-Type": "application/json",
|
|
2862
|
+
...options.headers,
|
|
2863
|
+
},
|
|
2864
|
+
});
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
export class ProjectSections {
|
|
2868
|
+
/**
|
|
2869
|
+
* Delete project section
|
|
2870
|
+
*
|
|
2871
|
+
* Delete a project section and optionally its todos.
|
|
2872
|
+
*/
|
|
2873
|
+
static projectSectionsDelete(options) {
|
|
2874
|
+
return (options.client ?? client).delete({
|
|
2875
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2876
|
+
url: "/project-sections/{id}",
|
|
2877
|
+
...options,
|
|
2878
|
+
});
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* Update project section
|
|
2882
|
+
*
|
|
2883
|
+
* Update a project section visible to the current user.
|
|
2884
|
+
*/
|
|
2885
|
+
static projectSectionsUpdate(options) {
|
|
2886
|
+
return (options.client ?? client).patch({
|
|
2887
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2888
|
+
url: "/project-sections/{id}",
|
|
2889
|
+
...options,
|
|
2890
|
+
headers: {
|
|
2891
|
+
"Content-Type": "application/json",
|
|
2892
|
+
...options.headers,
|
|
2893
|
+
},
|
|
2894
|
+
});
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
export class TodoListSections {
|
|
2898
|
+
/**
|
|
2899
|
+
* Delete todo list section
|
|
2900
|
+
*
|
|
2901
|
+
* Delete a todo list section and optionally its todos.
|
|
2902
|
+
*/
|
|
2903
|
+
static todoListSectionsDelete(options) {
|
|
2904
|
+
return (options.client ?? client).delete({
|
|
2905
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2906
|
+
url: "/todo-list-sections/{id}",
|
|
2907
|
+
...options,
|
|
2908
|
+
});
|
|
2909
|
+
}
|
|
2910
|
+
/**
|
|
2911
|
+
* Update todo list section
|
|
2912
|
+
*
|
|
2913
|
+
* Update a todo list section visible to the current user.
|
|
2914
|
+
*/
|
|
2915
|
+
static todoListSectionsUpdate(options) {
|
|
2916
|
+
return (options.client ?? client).patch({
|
|
2917
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2918
|
+
url: "/todo-list-sections/{id}",
|
|
2919
|
+
...options,
|
|
2920
|
+
headers: {
|
|
2921
|
+
"Content-Type": "application/json",
|
|
2922
|
+
...options.headers,
|
|
2923
|
+
},
|
|
2924
|
+
});
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
export class Countdowns {
|
|
2928
|
+
/**
|
|
2929
|
+
* List countdowns
|
|
2930
|
+
*
|
|
2931
|
+
* List countdowns for the current user
|
|
2932
|
+
*/
|
|
2933
|
+
static countdownsList(options) {
|
|
2934
|
+
return (options?.client ?? client).post({
|
|
2935
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2936
|
+
url: "/countdowns/list",
|
|
2937
|
+
...options,
|
|
2938
|
+
});
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* Delete countdown
|
|
2942
|
+
*
|
|
2943
|
+
* Delete a countdown
|
|
2944
|
+
*/
|
|
2945
|
+
static countdownsDelete(options) {
|
|
2946
|
+
return (options.client ?? client).delete({
|
|
2947
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2948
|
+
url: "/countdowns/{id}",
|
|
2949
|
+
...options,
|
|
2950
|
+
});
|
|
2951
|
+
}
|
|
2952
|
+
/**
|
|
2953
|
+
* Update countdown
|
|
2954
|
+
*
|
|
2955
|
+
* Update an existing countdown
|
|
2956
|
+
*/
|
|
2957
|
+
static countdownsUpdate(options) {
|
|
2958
|
+
return (options.client ?? client).patch({
|
|
2959
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2960
|
+
url: "/countdowns/{id}",
|
|
2961
|
+
...options,
|
|
2962
|
+
headers: {
|
|
2963
|
+
"Content-Type": "application/json",
|
|
2964
|
+
...options.headers,
|
|
2965
|
+
},
|
|
2966
|
+
});
|
|
2967
|
+
}
|
|
2968
|
+
/**
|
|
2969
|
+
* Get countdown
|
|
2970
|
+
*
|
|
2971
|
+
* Get a single countdown by ID
|
|
2972
|
+
*/
|
|
2973
|
+
static countdownsGet(options) {
|
|
2974
|
+
return (options.client ?? client).post({
|
|
2975
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2976
|
+
url: "/countdowns/{id}",
|
|
2977
|
+
...options,
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* Create countdown
|
|
2982
|
+
*
|
|
2983
|
+
* Create a new countdown
|
|
2984
|
+
*/
|
|
2985
|
+
static countdownsCreate(options) {
|
|
2986
|
+
return (options.client ?? client).post({
|
|
2987
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
2988
|
+
url: "/countdowns",
|
|
2989
|
+
...options,
|
|
2990
|
+
headers: {
|
|
2991
|
+
"Content-Type": "application/json",
|
|
2992
|
+
...options.headers,
|
|
2993
|
+
},
|
|
2994
|
+
});
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
export class Locations {
|
|
2998
|
+
/**
|
|
2999
|
+
* Delete location
|
|
3000
|
+
*
|
|
3001
|
+
* Delete a location by ID.
|
|
3002
|
+
*/
|
|
3003
|
+
static locationsDelete(options) {
|
|
3004
|
+
return (options.client ?? client).delete({
|
|
3005
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3006
|
+
url: "/locations/{id}",
|
|
3007
|
+
...options,
|
|
3008
|
+
});
|
|
3009
|
+
}
|
|
3010
|
+
/**
|
|
3011
|
+
* Update location
|
|
3012
|
+
*
|
|
3013
|
+
* Update an existing location.
|
|
3014
|
+
*/
|
|
3015
|
+
static locationsUpdate(options) {
|
|
3016
|
+
return (options.client ?? client).patch({
|
|
3017
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3018
|
+
url: "/locations/{id}",
|
|
3019
|
+
...options,
|
|
3020
|
+
headers: {
|
|
3021
|
+
"Content-Type": "application/json",
|
|
3022
|
+
...options.headers,
|
|
3023
|
+
},
|
|
3024
|
+
});
|
|
3025
|
+
}
|
|
3026
|
+
/**
|
|
3027
|
+
* Get location
|
|
3028
|
+
*
|
|
3029
|
+
* Get a single location by ID.
|
|
3030
|
+
*/
|
|
3031
|
+
static locationsGet(options) {
|
|
3032
|
+
return (options.client ?? client).post({
|
|
3033
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3034
|
+
url: "/locations/{id}",
|
|
3035
|
+
...options,
|
|
3036
|
+
});
|
|
3037
|
+
}
|
|
3038
|
+
/**
|
|
3039
|
+
* List locations
|
|
3040
|
+
*
|
|
3041
|
+
* List locations for the current user.
|
|
3042
|
+
*/
|
|
3043
|
+
static locationsList(options) {
|
|
3044
|
+
return (options?.client ?? client).post({
|
|
3045
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3046
|
+
url: "/locations/list",
|
|
3047
|
+
...options,
|
|
3048
|
+
headers: {
|
|
3049
|
+
"Content-Type": "application/json",
|
|
3050
|
+
...options?.headers,
|
|
3051
|
+
},
|
|
3052
|
+
});
|
|
3053
|
+
}
|
|
3054
|
+
/**
|
|
3055
|
+
* Create location
|
|
3056
|
+
*
|
|
3057
|
+
* Create a new location.
|
|
3058
|
+
*/
|
|
3059
|
+
static locationsCreate(options) {
|
|
3060
|
+
return (options.client ?? client).post({
|
|
3061
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3062
|
+
url: "/locations",
|
|
3063
|
+
...options,
|
|
3064
|
+
headers: {
|
|
3065
|
+
"Content-Type": "application/json",
|
|
3066
|
+
...options.headers,
|
|
3067
|
+
},
|
|
3068
|
+
});
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
export class Goals {
|
|
3072
|
+
/**
|
|
3073
|
+
* Delete goal
|
|
3074
|
+
*
|
|
3075
|
+
* Delete a goal.
|
|
3076
|
+
*/
|
|
3077
|
+
static goalsDelete(options) {
|
|
3078
|
+
return (options.client ?? client).delete({
|
|
3079
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3080
|
+
url: "/goals/{id}",
|
|
3081
|
+
...options,
|
|
3082
|
+
});
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* Update goal
|
|
3086
|
+
*
|
|
3087
|
+
* Update an existing goal.
|
|
3088
|
+
*/
|
|
3089
|
+
static goalsUpdate(options) {
|
|
3090
|
+
return (options.client ?? client).patch({
|
|
3091
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3092
|
+
url: "/goals/{id}",
|
|
3093
|
+
...options,
|
|
3094
|
+
headers: {
|
|
3095
|
+
"Content-Type": "application/json",
|
|
3096
|
+
...options.headers,
|
|
3097
|
+
},
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
* Get goal
|
|
3102
|
+
*
|
|
3103
|
+
* Fetch a goal by id.
|
|
3104
|
+
*/
|
|
3105
|
+
static goalsGet(options) {
|
|
3106
|
+
return (options.client ?? client).post({
|
|
3107
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3108
|
+
url: "/goals/{id}",
|
|
3109
|
+
...options,
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* List goals
|
|
3114
|
+
*
|
|
3115
|
+
* List all goals for the current user.
|
|
3116
|
+
*/
|
|
3117
|
+
static goalsList(options) {
|
|
3118
|
+
return (options?.client ?? client).post({
|
|
3119
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3120
|
+
url: "/goals/list",
|
|
3121
|
+
...options,
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* List public goals
|
|
3126
|
+
*
|
|
3127
|
+
* List public goals for a user by username.
|
|
3128
|
+
*/
|
|
3129
|
+
static goalsPublicList(options) {
|
|
3130
|
+
return (options.client ?? client).post({
|
|
3131
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3132
|
+
url: "/goals/public/{username}",
|
|
3133
|
+
...options,
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
/**
|
|
3137
|
+
* Create goal
|
|
3138
|
+
*
|
|
3139
|
+
* Create a new goal.
|
|
3140
|
+
*/
|
|
3141
|
+
static goalsCreate(options) {
|
|
3142
|
+
return (options.client ?? client).post({
|
|
3143
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3144
|
+
url: "/goals",
|
|
3145
|
+
...options,
|
|
3146
|
+
headers: {
|
|
3147
|
+
"Content-Type": "application/json",
|
|
3148
|
+
...options.headers,
|
|
3149
|
+
},
|
|
3150
|
+
});
|
|
3151
|
+
}
|
|
3152
|
+
/**
|
|
3153
|
+
* Delete many goals
|
|
3154
|
+
*
|
|
3155
|
+
* Delete multiple goals by ids.
|
|
3156
|
+
*/
|
|
3157
|
+
static goalsDeleteMany(options) {
|
|
3158
|
+
return (options.client ?? client).post({
|
|
3159
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3160
|
+
url: "/goals/delete-many",
|
|
3161
|
+
...options,
|
|
3162
|
+
headers: {
|
|
3163
|
+
"Content-Type": "application/json",
|
|
3164
|
+
...options.headers,
|
|
3165
|
+
},
|
|
3166
|
+
});
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
export class BloodPressureLogs {
|
|
3170
|
+
/**
|
|
3171
|
+
* List blood pressure logs
|
|
3172
|
+
*
|
|
3173
|
+
* Get blood pressure logs for the current user, optionally filtered by date range.
|
|
3174
|
+
*/
|
|
3175
|
+
static bloodPressureLogsList(options) {
|
|
3176
|
+
return (options?.client ?? client).post({
|
|
3177
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3178
|
+
url: "/blood-pressure-logs/list",
|
|
3179
|
+
...options,
|
|
3180
|
+
headers: {
|
|
3181
|
+
"Content-Type": "application/json",
|
|
3182
|
+
...options?.headers,
|
|
3183
|
+
},
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3186
|
+
/**
|
|
3187
|
+
* Get blood pressure log
|
|
3188
|
+
*
|
|
3189
|
+
* Get a single blood pressure log by ID.
|
|
3190
|
+
*/
|
|
3191
|
+
static bloodPressureLogsGet(options) {
|
|
3192
|
+
return (options.client ?? client).post({
|
|
3193
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3194
|
+
url: "/blood-pressure-logs/get",
|
|
3195
|
+
...options,
|
|
3196
|
+
headers: {
|
|
3197
|
+
"Content-Type": "application/json",
|
|
3198
|
+
...options.headers,
|
|
3199
|
+
},
|
|
3200
|
+
});
|
|
3201
|
+
}
|
|
3202
|
+
/**
|
|
3203
|
+
* Create blood pressure log
|
|
3204
|
+
*
|
|
3205
|
+
* Create a new blood pressure log entry.
|
|
3206
|
+
*/
|
|
3207
|
+
static bloodPressureLogsCreate(options) {
|
|
3208
|
+
return (options.client ?? client).post({
|
|
3209
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3210
|
+
url: "/blood-pressure-logs/create",
|
|
3211
|
+
...options,
|
|
3212
|
+
headers: {
|
|
3213
|
+
"Content-Type": "application/json",
|
|
3214
|
+
...options.headers,
|
|
3215
|
+
},
|
|
3216
|
+
});
|
|
3217
|
+
}
|
|
3218
|
+
/**
|
|
3219
|
+
* Update blood pressure log
|
|
3220
|
+
*
|
|
3221
|
+
* Update an existing blood pressure log.
|
|
3222
|
+
*/
|
|
3223
|
+
static bloodPressureLogsUpdate(options) {
|
|
3224
|
+
return (options.client ?? client).post({
|
|
3225
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3226
|
+
url: "/blood-pressure-logs/update",
|
|
3227
|
+
...options,
|
|
3228
|
+
headers: {
|
|
3229
|
+
"Content-Type": "application/json",
|
|
3230
|
+
...options.headers,
|
|
3231
|
+
},
|
|
3232
|
+
});
|
|
3233
|
+
}
|
|
3234
|
+
/**
|
|
3235
|
+
* Delete blood pressure log
|
|
3236
|
+
*
|
|
3237
|
+
* Delete a blood pressure log by ID.
|
|
3238
|
+
*/
|
|
3239
|
+
static bloodPressureLogsDelete(options) {
|
|
3240
|
+
return (options.client ?? client).post({
|
|
3241
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3242
|
+
url: "/blood-pressure-logs/delete",
|
|
3243
|
+
...options,
|
|
3244
|
+
headers: {
|
|
3245
|
+
"Content-Type": "application/json",
|
|
3246
|
+
...options.headers,
|
|
3247
|
+
},
|
|
3248
|
+
});
|
|
3249
|
+
}
|
|
3250
|
+
/**
|
|
3251
|
+
* Delete multiple blood pressure logs
|
|
3252
|
+
*
|
|
3253
|
+
* Delete blood pressure logs in bulk.
|
|
3254
|
+
*/
|
|
3255
|
+
static bloodPressureLogsDeleteMany(options) {
|
|
3256
|
+
return (options.client ?? client).post({
|
|
3257
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3258
|
+
url: "/blood-pressure-logs/delete-many",
|
|
3259
|
+
...options,
|
|
3260
|
+
headers: {
|
|
3261
|
+
"Content-Type": "application/json",
|
|
3262
|
+
...options.headers,
|
|
3263
|
+
},
|
|
3264
|
+
});
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
export class HydrationTemplates {
|
|
3268
|
+
/**
|
|
3269
|
+
* Get hydration template
|
|
3270
|
+
*
|
|
3271
|
+
* Get a single hydration template by ID.
|
|
3272
|
+
*/
|
|
3273
|
+
static hydrationTemplatesGet(options) {
|
|
3274
|
+
return (options.client ?? client).post({
|
|
3275
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3276
|
+
url: "/hydration-templates/get",
|
|
3277
|
+
...options,
|
|
3278
|
+
headers: {
|
|
3279
|
+
"Content-Type": "application/json",
|
|
3280
|
+
...options.headers,
|
|
3281
|
+
},
|
|
3282
|
+
});
|
|
3283
|
+
}
|
|
3284
|
+
/**
|
|
3285
|
+
* List hydration templates
|
|
3286
|
+
*
|
|
3287
|
+
* List hydration templates for the current user.
|
|
3288
|
+
*/
|
|
3289
|
+
static hydrationTemplatesList(options) {
|
|
3290
|
+
return (options?.client ?? client).post({
|
|
3291
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3292
|
+
url: "/hydration-templates/list",
|
|
3293
|
+
...options,
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3296
|
+
/**
|
|
3297
|
+
* Create hydration template
|
|
3298
|
+
*
|
|
3299
|
+
* Create a new hydration template.
|
|
3300
|
+
*/
|
|
3301
|
+
static hydrationTemplatesCreate(options) {
|
|
3302
|
+
return (options.client ?? client).post({
|
|
3303
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3304
|
+
url: "/hydration-templates",
|
|
3305
|
+
...options,
|
|
3306
|
+
headers: {
|
|
3307
|
+
"Content-Type": "application/json",
|
|
3308
|
+
...options.headers,
|
|
3309
|
+
},
|
|
3310
|
+
});
|
|
3311
|
+
}
|
|
3312
|
+
/**
|
|
3313
|
+
* Update hydration template
|
|
3314
|
+
*
|
|
3315
|
+
* Update an existing hydration template.
|
|
3316
|
+
*/
|
|
3317
|
+
static hydrationTemplatesUpdate(options) {
|
|
3318
|
+
return (options.client ?? client).patch({
|
|
3319
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3320
|
+
url: "/hydration-templates/update",
|
|
3321
|
+
...options,
|
|
3322
|
+
headers: {
|
|
3323
|
+
"Content-Type": "application/json",
|
|
3324
|
+
...options.headers,
|
|
3325
|
+
},
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
/**
|
|
3329
|
+
* Delete hydration template
|
|
3330
|
+
*
|
|
3331
|
+
* Delete a hydration template.
|
|
3332
|
+
*/
|
|
3333
|
+
static hydrationTemplatesDelete(options) {
|
|
3334
|
+
return (options.client ?? client).delete({
|
|
3335
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3336
|
+
url: "/hydration-templates/delete",
|
|
3337
|
+
...options,
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* Delete multiple hydration templates
|
|
3342
|
+
*
|
|
3343
|
+
* Delete multiple hydration templates.
|
|
3344
|
+
*/
|
|
3345
|
+
static hydrationTemplatesDeleteMany(options) {
|
|
3346
|
+
return (options.client ?? client).post({
|
|
3347
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3348
|
+
url: "/hydration-templates/delete-many",
|
|
3349
|
+
...options,
|
|
3350
|
+
headers: {
|
|
3351
|
+
"Content-Type": "application/json",
|
|
3352
|
+
...options.headers,
|
|
3353
|
+
},
|
|
3354
|
+
});
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
export class FoodTemplates {
|
|
3358
|
+
/**
|
|
3359
|
+
* Get food template
|
|
3360
|
+
*
|
|
3361
|
+
* Get a single food template by ID.
|
|
3362
|
+
*/
|
|
3363
|
+
static foodTemplatesGet(options) {
|
|
3364
|
+
return (options.client ?? client).post({
|
|
3365
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3366
|
+
url: "/food-templates/get",
|
|
3367
|
+
...options,
|
|
3368
|
+
headers: {
|
|
3369
|
+
"Content-Type": "application/json",
|
|
3370
|
+
...options.headers,
|
|
3371
|
+
},
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
/**
|
|
3375
|
+
* List food templates
|
|
3376
|
+
*
|
|
3377
|
+
* List food templates for the current user.
|
|
3378
|
+
*/
|
|
3379
|
+
static foodTemplatesList(options) {
|
|
3380
|
+
return (options?.client ?? client).post({
|
|
3381
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3382
|
+
url: "/food-templates/list",
|
|
3383
|
+
...options,
|
|
3384
|
+
});
|
|
3385
|
+
}
|
|
3386
|
+
/**
|
|
3387
|
+
* Create food template
|
|
3388
|
+
*
|
|
3389
|
+
* Create a new food template.
|
|
3390
|
+
*/
|
|
3391
|
+
static foodTemplatesCreate(options) {
|
|
3392
|
+
return (options.client ?? client).post({
|
|
3393
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3394
|
+
url: "/food-templates",
|
|
3395
|
+
...options,
|
|
3396
|
+
headers: {
|
|
3397
|
+
"Content-Type": "application/json",
|
|
3398
|
+
...options.headers,
|
|
3399
|
+
},
|
|
3400
|
+
});
|
|
3401
|
+
}
|
|
3402
|
+
/**
|
|
3403
|
+
* Update food template
|
|
3404
|
+
*
|
|
3405
|
+
* Update an existing food template.
|
|
3406
|
+
*/
|
|
3407
|
+
static foodTemplatesUpdate(options) {
|
|
3408
|
+
return (options.client ?? client).patch({
|
|
3409
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3410
|
+
url: "/food-templates/update",
|
|
3411
|
+
...options,
|
|
3412
|
+
headers: {
|
|
3413
|
+
"Content-Type": "application/json",
|
|
3414
|
+
...options.headers,
|
|
3415
|
+
},
|
|
3416
|
+
});
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* Delete food template
|
|
3420
|
+
*
|
|
3421
|
+
* Delete a food template.
|
|
3422
|
+
*/
|
|
3423
|
+
static foodTemplatesDelete(options) {
|
|
3424
|
+
return (options.client ?? client).delete({
|
|
3425
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3426
|
+
url: "/food-templates/delete",
|
|
3427
|
+
...options,
|
|
3428
|
+
});
|
|
3429
|
+
}
|
|
3430
|
+
/**
|
|
3431
|
+
* Delete multiple food templates
|
|
3432
|
+
*
|
|
3433
|
+
* Delete multiple food templates.
|
|
3434
|
+
*/
|
|
3435
|
+
static foodTemplatesDeleteMany(options) {
|
|
3436
|
+
return (options.client ?? client).post({
|
|
3437
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3438
|
+
url: "/food-templates/delete-many",
|
|
3439
|
+
...options,
|
|
3440
|
+
headers: {
|
|
3441
|
+
"Content-Type": "application/json",
|
|
3442
|
+
...options.headers,
|
|
3443
|
+
},
|
|
3444
|
+
});
|
|
3445
|
+
}
|
|
3446
|
+
}
|
|
3447
|
+
export class IngredientLists {
|
|
3448
|
+
/**
|
|
3449
|
+
* List ingredient lists
|
|
3450
|
+
*
|
|
3451
|
+
* List ingredient lists visible to the current user.
|
|
3452
|
+
*/
|
|
3453
|
+
static ingredientListsList(options) {
|
|
3454
|
+
return (options?.client ?? client).post({
|
|
3455
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3456
|
+
url: "/ingredient-lists/list",
|
|
3457
|
+
...options,
|
|
3458
|
+
});
|
|
3459
|
+
}
|
|
3460
|
+
/**
|
|
3461
|
+
* Delete ingredient list
|
|
3462
|
+
*
|
|
3463
|
+
* Delete a single ingredient list.
|
|
3464
|
+
*/
|
|
3465
|
+
static ingredientListsDelete(options) {
|
|
3466
|
+
return (options.client ?? client).delete({
|
|
3467
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3468
|
+
url: "/ingredient-lists/{id}",
|
|
3469
|
+
...options,
|
|
3470
|
+
});
|
|
3471
|
+
}
|
|
3472
|
+
/**
|
|
3473
|
+
* Update ingredient list
|
|
3474
|
+
*
|
|
3475
|
+
* Update an existing ingredient list.
|
|
3476
|
+
*/
|
|
3477
|
+
static ingredientListsUpdate(options) {
|
|
3478
|
+
return (options.client ?? client).patch({
|
|
3479
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3480
|
+
url: "/ingredient-lists/{id}",
|
|
3481
|
+
...options,
|
|
3482
|
+
headers: {
|
|
3483
|
+
"Content-Type": "application/json",
|
|
3484
|
+
...options.headers,
|
|
3485
|
+
},
|
|
3486
|
+
});
|
|
3487
|
+
}
|
|
3488
|
+
/**
|
|
3489
|
+
* Get ingredient list
|
|
3490
|
+
*
|
|
3491
|
+
* Get a single ingredient list by ID.
|
|
3492
|
+
*/
|
|
3493
|
+
static ingredientListsGet(options) {
|
|
3494
|
+
return (options.client ?? client).post({
|
|
3495
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3496
|
+
url: "/ingredient-lists/{id}",
|
|
3497
|
+
...options,
|
|
3498
|
+
});
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Create ingredient list
|
|
3502
|
+
*
|
|
3503
|
+
* Create a new ingredient list.
|
|
3504
|
+
*/
|
|
3505
|
+
static ingredientListsCreate(options) {
|
|
3506
|
+
return (options.client ?? client).post({
|
|
3507
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3508
|
+
url: "/ingredient-lists",
|
|
3509
|
+
...options,
|
|
3510
|
+
headers: {
|
|
3511
|
+
"Content-Type": "application/json",
|
|
3512
|
+
...options.headers,
|
|
3513
|
+
},
|
|
3514
|
+
});
|
|
3515
|
+
}
|
|
3516
|
+
/**
|
|
3517
|
+
* Delete many ingredient lists
|
|
3518
|
+
*
|
|
3519
|
+
* Delete multiple ingredient lists visible to the current user.
|
|
3520
|
+
*/
|
|
3521
|
+
static ingredientListsDeleteMany(options) {
|
|
3522
|
+
return (options.client ?? client).post({
|
|
3523
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3524
|
+
url: "/ingredient-lists/delete-many",
|
|
3525
|
+
...options,
|
|
3526
|
+
headers: {
|
|
3527
|
+
"Content-Type": "application/json",
|
|
3528
|
+
...options.headers,
|
|
3529
|
+
},
|
|
3530
|
+
});
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
export class MealPlans {
|
|
3534
|
+
/**
|
|
3535
|
+
* Delete meal plan
|
|
3536
|
+
*
|
|
3537
|
+
* Delete a meal plan
|
|
3538
|
+
*/
|
|
3539
|
+
static mealPlansDelete(options) {
|
|
3540
|
+
return (options.client ?? client).delete({
|
|
3541
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3542
|
+
url: "/meal-plans/{id}",
|
|
3543
|
+
...options,
|
|
3544
|
+
});
|
|
3545
|
+
}
|
|
3546
|
+
/**
|
|
3547
|
+
* Update meal plan
|
|
3548
|
+
*
|
|
3549
|
+
* Update an existing meal plan
|
|
3550
|
+
*/
|
|
3551
|
+
static mealPlansUpdate(options) {
|
|
3552
|
+
return (options.client ?? client).patch({
|
|
3553
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3554
|
+
url: "/meal-plans/{id}",
|
|
3555
|
+
...options,
|
|
3556
|
+
headers: {
|
|
3557
|
+
"Content-Type": "application/json",
|
|
3558
|
+
...options.headers,
|
|
3559
|
+
},
|
|
3560
|
+
});
|
|
3561
|
+
}
|
|
3562
|
+
/**
|
|
3563
|
+
* Get meal plan
|
|
3564
|
+
*
|
|
3565
|
+
* Get a single meal plan by ID
|
|
3566
|
+
*/
|
|
3567
|
+
static mealPlansGet(options) {
|
|
3568
|
+
return (options.client ?? client).post({
|
|
3569
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3570
|
+
url: "/meal-plans/{id}",
|
|
3571
|
+
...options,
|
|
3572
|
+
});
|
|
3573
|
+
}
|
|
3574
|
+
/**
|
|
3575
|
+
* List meal plans
|
|
3576
|
+
*
|
|
3577
|
+
* List meal plans for current user
|
|
3578
|
+
*/
|
|
3579
|
+
static mealPlansList(options) {
|
|
3580
|
+
return (options?.client ?? client).post({
|
|
3581
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3582
|
+
url: "/meal-plans/list",
|
|
3583
|
+
...options,
|
|
3584
|
+
});
|
|
3585
|
+
}
|
|
3586
|
+
/**
|
|
3587
|
+
* Create meal plan
|
|
3588
|
+
*
|
|
3589
|
+
* Create a new meal plan
|
|
3590
|
+
*/
|
|
3591
|
+
static mealPlansCreate(options) {
|
|
3592
|
+
return (options.client ?? client).post({
|
|
3593
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3594
|
+
url: "/meal-plans",
|
|
3595
|
+
...options,
|
|
3596
|
+
headers: {
|
|
3597
|
+
"Content-Type": "application/json",
|
|
3598
|
+
...options.headers,
|
|
3599
|
+
},
|
|
3600
|
+
});
|
|
3601
|
+
}
|
|
3602
|
+
/**
|
|
3603
|
+
* Delete many meal plans
|
|
3604
|
+
*
|
|
3605
|
+
* Delete multiple meal plans
|
|
3606
|
+
*/
|
|
3607
|
+
static mealPlansDeleteMany(options) {
|
|
3608
|
+
return (options.client ?? client).post({
|
|
3609
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3610
|
+
url: "/meal-plans/delete-many",
|
|
3611
|
+
...options,
|
|
3612
|
+
headers: {
|
|
3613
|
+
"Content-Type": "application/json",
|
|
3614
|
+
...options.headers,
|
|
3615
|
+
},
|
|
3616
|
+
});
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
export class Contacts {
|
|
3620
|
+
/**
|
|
3621
|
+
* List contact relationships
|
|
3622
|
+
*
|
|
3623
|
+
* List all contact relationships for the current user, ordered by activity.
|
|
3624
|
+
*/
|
|
3625
|
+
static contactsList(options) {
|
|
3626
|
+
return (options?.client ?? client).post({
|
|
3627
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3628
|
+
url: "/contacts/list",
|
|
3629
|
+
...options,
|
|
3630
|
+
headers: {
|
|
3631
|
+
"Content-Type": "application/json",
|
|
3632
|
+
...options?.headers,
|
|
3633
|
+
},
|
|
3634
|
+
});
|
|
3635
|
+
}
|
|
3636
|
+
/**
|
|
3637
|
+
* Get a contact relationship
|
|
3638
|
+
*
|
|
3639
|
+
* Get a single contact relationship by id for the current user.
|
|
3640
|
+
*/
|
|
3641
|
+
static contactsGet(options) {
|
|
3642
|
+
return (options.client ?? client).post({
|
|
3643
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3644
|
+
url: "/contacts/get",
|
|
3645
|
+
...options,
|
|
3646
|
+
headers: {
|
|
3647
|
+
"Content-Type": "application/json",
|
|
3648
|
+
...options.headers,
|
|
3649
|
+
},
|
|
3650
|
+
});
|
|
3651
|
+
}
|
|
3652
|
+
/**
|
|
3653
|
+
* Create a contact relationship
|
|
3654
|
+
*
|
|
3655
|
+
* Create a new contact (or update an existing one) and relationship entry.
|
|
3656
|
+
*/
|
|
3657
|
+
static contactsCreate(options) {
|
|
3658
|
+
return (options.client ?? client).post({
|
|
3659
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3660
|
+
url: "/contacts/create",
|
|
3661
|
+
...options,
|
|
3662
|
+
headers: {
|
|
3663
|
+
"Content-Type": "application/json",
|
|
3664
|
+
...options.headers,
|
|
3665
|
+
},
|
|
3666
|
+
});
|
|
3667
|
+
}
|
|
3668
|
+
/**
|
|
3669
|
+
* Update a contact relationship
|
|
3670
|
+
*
|
|
3671
|
+
* Update relationship metadata and contact fields.
|
|
3672
|
+
*/
|
|
3673
|
+
static contactsUpdate(options) {
|
|
3674
|
+
return (options.client ?? client).post({
|
|
3675
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3676
|
+
url: "/contacts/update",
|
|
3677
|
+
...options,
|
|
3678
|
+
headers: {
|
|
3679
|
+
"Content-Type": "application/json",
|
|
3680
|
+
...options.headers,
|
|
3681
|
+
},
|
|
3682
|
+
});
|
|
3683
|
+
}
|
|
3684
|
+
/**
|
|
3685
|
+
* Delete a contact relationship
|
|
3686
|
+
*
|
|
3687
|
+
* Delete a single user contact relationship.
|
|
3688
|
+
*/
|
|
3689
|
+
static contactsDelete(options) {
|
|
3690
|
+
return (options.client ?? client).post({
|
|
3691
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3692
|
+
url: "/contacts/delete",
|
|
3693
|
+
...options,
|
|
3694
|
+
headers: {
|
|
3695
|
+
"Content-Type": "application/json",
|
|
3696
|
+
...options.headers,
|
|
3697
|
+
},
|
|
3698
|
+
});
|
|
3699
|
+
}
|
|
3700
|
+
/**
|
|
3701
|
+
* Delete multiple contact relationships
|
|
3702
|
+
*
|
|
3703
|
+
* Delete multiple user contact relationships.
|
|
3704
|
+
*/
|
|
3705
|
+
static contactsDeleteMany(options) {
|
|
3706
|
+
return (options.client ?? client).post({
|
|
3707
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3708
|
+
url: "/contacts/delete-many",
|
|
3709
|
+
...options,
|
|
3710
|
+
headers: {
|
|
3711
|
+
"Content-Type": "application/json",
|
|
3712
|
+
...options.headers,
|
|
3713
|
+
},
|
|
3714
|
+
});
|
|
3715
|
+
}
|
|
3716
|
+
}
|
|
3717
|
+
export class WeightGoals {
|
|
3718
|
+
/**
|
|
3719
|
+
* Delete weight goal
|
|
3720
|
+
*
|
|
3721
|
+
* Delete a weight goal by ID.
|
|
3722
|
+
*/
|
|
3723
|
+
static weightGoalsDelete(options) {
|
|
3724
|
+
return (options.client ?? client).delete({
|
|
3725
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3726
|
+
url: "/weight/goals/{id}",
|
|
3727
|
+
...options,
|
|
3728
|
+
});
|
|
3729
|
+
}
|
|
3730
|
+
/**
|
|
3731
|
+
* Update weight goal
|
|
3732
|
+
*
|
|
3733
|
+
* Update an existing weight goal.
|
|
3734
|
+
*/
|
|
3735
|
+
static weightGoalsUpdate(options) {
|
|
3736
|
+
return (options.client ?? client).patch({
|
|
3737
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3738
|
+
url: "/weight/goals/{id}",
|
|
3739
|
+
...options,
|
|
3740
|
+
headers: {
|
|
3741
|
+
"Content-Type": "application/json",
|
|
3742
|
+
...options.headers,
|
|
3743
|
+
},
|
|
3744
|
+
});
|
|
3745
|
+
}
|
|
3746
|
+
/**
|
|
3747
|
+
* Get weight goal
|
|
3748
|
+
*
|
|
3749
|
+
* Get a single weight goal by ID.
|
|
3750
|
+
*/
|
|
3751
|
+
static weightGoalsGet(options) {
|
|
3752
|
+
return (options.client ?? client).post({
|
|
3753
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3754
|
+
url: "/weight/goals/{id}",
|
|
3755
|
+
...options,
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* List weight goals
|
|
3760
|
+
*
|
|
3761
|
+
* List weight goals for the current user.
|
|
3762
|
+
*/
|
|
3763
|
+
static weightGoalsList(options) {
|
|
3764
|
+
return (options?.client ?? client).post({
|
|
3765
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3766
|
+
url: "/weight/goals/list",
|
|
3767
|
+
...options,
|
|
3768
|
+
});
|
|
3769
|
+
}
|
|
3770
|
+
/**
|
|
3771
|
+
* Create weight goal
|
|
3772
|
+
*
|
|
3773
|
+
* Create a new weight goal.
|
|
3774
|
+
*/
|
|
3775
|
+
static weightGoalsCreate(options) {
|
|
3776
|
+
return (options.client ?? client).post({
|
|
3777
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3778
|
+
url: "/weight/goals",
|
|
3779
|
+
...options,
|
|
3780
|
+
headers: {
|
|
3781
|
+
"Content-Type": "application/json",
|
|
3782
|
+
...options.headers,
|
|
3783
|
+
},
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
/**
|
|
3787
|
+
* Delete multiple weight goals
|
|
3788
|
+
*
|
|
3789
|
+
* Delete multiple weight goals by ID.
|
|
3790
|
+
*/
|
|
3791
|
+
static weightGoalsDeleteMany(options) {
|
|
3792
|
+
return (options.client ?? client).post({
|
|
3793
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3794
|
+
url: "/weight/goals/delete-many",
|
|
3795
|
+
...options,
|
|
3796
|
+
headers: {
|
|
3797
|
+
"Content-Type": "application/json",
|
|
3798
|
+
...options.headers,
|
|
3799
|
+
},
|
|
3800
|
+
});
|
|
3801
|
+
}
|
|
3802
|
+
/**
|
|
3803
|
+
* Get weight goal for date
|
|
3804
|
+
*
|
|
3805
|
+
* Get the active weight goal for a date.
|
|
3806
|
+
*/
|
|
3807
|
+
static weightGoalsGetForDate(options) {
|
|
3808
|
+
return (options.client ?? client).post({
|
|
3809
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3810
|
+
url: "/weight/goals/for-date",
|
|
3811
|
+
...options,
|
|
3812
|
+
headers: {
|
|
3813
|
+
"Content-Type": "application/json",
|
|
3814
|
+
...options.headers,
|
|
3815
|
+
},
|
|
3816
|
+
});
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
export class Problems {
|
|
3820
|
+
/**
|
|
3821
|
+
* List problems
|
|
3822
|
+
*
|
|
3823
|
+
* List all problems for the current user.
|
|
3824
|
+
*/
|
|
3825
|
+
static problemsList(options) {
|
|
3826
|
+
return (options?.client ?? client).get({
|
|
3827
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3828
|
+
url: "/problems",
|
|
3829
|
+
...options,
|
|
3830
|
+
});
|
|
3831
|
+
}
|
|
3832
|
+
/**
|
|
3833
|
+
* Create problem
|
|
3834
|
+
*
|
|
3835
|
+
* Create a new problem.
|
|
3836
|
+
*/
|
|
3837
|
+
static problemsCreate(options) {
|
|
3838
|
+
return (options.client ?? client).post({
|
|
3839
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3840
|
+
url: "/problems",
|
|
3841
|
+
...options,
|
|
3842
|
+
headers: {
|
|
3843
|
+
"Content-Type": "application/json",
|
|
3844
|
+
...options.headers,
|
|
3845
|
+
},
|
|
3846
|
+
});
|
|
3847
|
+
}
|
|
3848
|
+
/**
|
|
3849
|
+
* Delete problem
|
|
3850
|
+
*
|
|
3851
|
+
* Delete a problem and all related logs.
|
|
3852
|
+
*/
|
|
3853
|
+
static problemsDelete(options) {
|
|
3854
|
+
return (options.client ?? client).delete({
|
|
3855
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3856
|
+
url: "/problems/{id}",
|
|
3857
|
+
...options,
|
|
3858
|
+
});
|
|
3859
|
+
}
|
|
3860
|
+
/**
|
|
3861
|
+
* Get problem
|
|
3862
|
+
*
|
|
3863
|
+
* Fetch a problem by id.
|
|
3864
|
+
*/
|
|
3865
|
+
static problemsGet(options) {
|
|
3866
|
+
return (options.client ?? client).get({
|
|
3867
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3868
|
+
url: "/problems/{id}",
|
|
3869
|
+
...options,
|
|
3870
|
+
});
|
|
3871
|
+
}
|
|
3872
|
+
/**
|
|
3873
|
+
* Update problem
|
|
3874
|
+
*
|
|
3875
|
+
* Update an existing problem.
|
|
3876
|
+
*/
|
|
3877
|
+
static problemsUpdate(options) {
|
|
3878
|
+
return (options.client ?? client).patch({
|
|
3879
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3880
|
+
url: "/problems/{id}",
|
|
3881
|
+
...options,
|
|
3882
|
+
headers: {
|
|
3883
|
+
"Content-Type": "application/json",
|
|
3884
|
+
...options.headers,
|
|
3885
|
+
},
|
|
3886
|
+
});
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
* Delete many problems
|
|
3890
|
+
*
|
|
3891
|
+
* Delete multiple problems.
|
|
3892
|
+
*/
|
|
3893
|
+
static problemsDeleteMany(options) {
|
|
3894
|
+
return (options.client ?? client).post({
|
|
3895
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3896
|
+
url: "/problems/delete-many",
|
|
3897
|
+
...options,
|
|
3898
|
+
headers: {
|
|
3899
|
+
"Content-Type": "application/json",
|
|
3900
|
+
...options.headers,
|
|
3901
|
+
},
|
|
3902
|
+
});
|
|
3903
|
+
}
|
|
3904
|
+
/**
|
|
3905
|
+
* List problem logs
|
|
3906
|
+
*
|
|
3907
|
+
* List logs for a problem.
|
|
3908
|
+
*/
|
|
3909
|
+
static problemsListLogs(options) {
|
|
3910
|
+
return (options.client ?? client).get({
|
|
3911
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3912
|
+
url: "/problems/{problemId}/logs",
|
|
3913
|
+
...options,
|
|
3914
|
+
});
|
|
3915
|
+
}
|
|
3916
|
+
/**
|
|
3917
|
+
* Create problem log
|
|
3918
|
+
*
|
|
3919
|
+
* Create a new problem log entry.
|
|
3920
|
+
*/
|
|
3921
|
+
static problemsCreateLog(options) {
|
|
3922
|
+
return (options.client ?? client).post({
|
|
3923
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3924
|
+
url: "/problems/{problemId}/logs",
|
|
3925
|
+
...options,
|
|
3926
|
+
headers: {
|
|
3927
|
+
"Content-Type": "application/json",
|
|
3928
|
+
...options.headers,
|
|
3929
|
+
},
|
|
3930
|
+
});
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
export class Activities {
|
|
3934
|
+
/**
|
|
3935
|
+
* Get activity
|
|
3936
|
+
*
|
|
3937
|
+
* Get a single activity by ID.
|
|
3938
|
+
*/
|
|
3939
|
+
static activitiesGet(options) {
|
|
3940
|
+
return (options.client ?? client).post({
|
|
3941
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3942
|
+
url: "/activities/get",
|
|
3943
|
+
...options,
|
|
3944
|
+
headers: {
|
|
3945
|
+
"Content-Type": "application/json",
|
|
3946
|
+
...options.headers,
|
|
3947
|
+
},
|
|
3948
|
+
});
|
|
3949
|
+
}
|
|
3950
|
+
/**
|
|
3951
|
+
* List activities
|
|
3952
|
+
*
|
|
3953
|
+
* List activities for the current user.
|
|
3954
|
+
*/
|
|
3955
|
+
static activitiesList(options) {
|
|
3956
|
+
return (options?.client ?? client).post({
|
|
3957
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3958
|
+
url: "/activities/list",
|
|
3959
|
+
...options,
|
|
3960
|
+
});
|
|
3961
|
+
}
|
|
3962
|
+
/**
|
|
3963
|
+
* Create activity
|
|
3964
|
+
*
|
|
3965
|
+
* Create a new activity.
|
|
3966
|
+
*/
|
|
3967
|
+
static activitiesCreate(options) {
|
|
3968
|
+
return (options.client ?? client).post({
|
|
3969
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3970
|
+
url: "/activities",
|
|
3971
|
+
...options,
|
|
3972
|
+
headers: {
|
|
3973
|
+
"Content-Type": "application/json",
|
|
3974
|
+
...options.headers,
|
|
3975
|
+
},
|
|
3976
|
+
});
|
|
3977
|
+
}
|
|
3978
|
+
/**
|
|
3979
|
+
* Update activity
|
|
3980
|
+
*
|
|
3981
|
+
* Update an existing activity.
|
|
3982
|
+
*/
|
|
3983
|
+
static activitiesUpdate(options) {
|
|
3984
|
+
return (options.client ?? client).patch({
|
|
3985
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
3986
|
+
url: "/activities/update",
|
|
3987
|
+
...options,
|
|
3988
|
+
headers: {
|
|
3989
|
+
"Content-Type": "application/json",
|
|
3990
|
+
...options.headers,
|
|
3991
|
+
},
|
|
3992
|
+
});
|
|
3993
|
+
}
|
|
3994
|
+
/**
|
|
3995
|
+
* Delete activity
|
|
3996
|
+
*
|
|
3997
|
+
* Delete an activity.
|
|
3998
|
+
*/
|
|
3999
|
+
static activitiesDelete(options) {
|
|
4000
|
+
return (options.client ?? client).delete({
|
|
4001
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4002
|
+
url: "/activities/delete",
|
|
4003
|
+
...options,
|
|
4004
|
+
});
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
4007
|
+
export class MacroGoals {
|
|
4008
|
+
/**
|
|
4009
|
+
* Delete macro goal
|
|
4010
|
+
*
|
|
4011
|
+
* Delete a macro goal by ID.
|
|
4012
|
+
*/
|
|
4013
|
+
static macroGoalsDelete(options) {
|
|
4014
|
+
return (options.client ?? client).delete({
|
|
4015
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4016
|
+
url: "/macro/goals/{id}",
|
|
4017
|
+
...options,
|
|
4018
|
+
});
|
|
4019
|
+
}
|
|
4020
|
+
/**
|
|
4021
|
+
* Update macro goal
|
|
4022
|
+
*
|
|
4023
|
+
* Update an existing macro goal.
|
|
4024
|
+
*/
|
|
4025
|
+
static macroGoalsUpdate(options) {
|
|
4026
|
+
return (options.client ?? client).patch({
|
|
4027
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4028
|
+
url: "/macro/goals/{id}",
|
|
4029
|
+
...options,
|
|
4030
|
+
headers: {
|
|
4031
|
+
"Content-Type": "application/json",
|
|
4032
|
+
...options.headers,
|
|
4033
|
+
},
|
|
4034
|
+
});
|
|
4035
|
+
}
|
|
4036
|
+
/**
|
|
4037
|
+
* Get macro goal
|
|
4038
|
+
*
|
|
4039
|
+
* Get a single macro goal by ID.
|
|
4040
|
+
*/
|
|
4041
|
+
static macroGoalsGet(options) {
|
|
4042
|
+
return (options.client ?? client).post({
|
|
4043
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4044
|
+
url: "/macro/goals/{id}",
|
|
4045
|
+
...options,
|
|
4046
|
+
});
|
|
4047
|
+
}
|
|
4048
|
+
/**
|
|
4049
|
+
* List macro goals
|
|
4050
|
+
*
|
|
4051
|
+
* List macro goals for the current user.
|
|
4052
|
+
*/
|
|
4053
|
+
static macroGoalsList(options) {
|
|
4054
|
+
return (options?.client ?? client).post({
|
|
4055
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4056
|
+
url: "/macro/goals/list",
|
|
4057
|
+
...options,
|
|
4058
|
+
});
|
|
4059
|
+
}
|
|
4060
|
+
/**
|
|
4061
|
+
* Get macro goal for date
|
|
4062
|
+
*
|
|
4063
|
+
* Get the macro goal active for a date.
|
|
4064
|
+
*/
|
|
4065
|
+
static macroGoalsGetForDate(options) {
|
|
4066
|
+
return (options.client ?? client).post({
|
|
4067
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4068
|
+
url: "/macro/goals/for-date",
|
|
4069
|
+
...options,
|
|
4070
|
+
headers: {
|
|
4071
|
+
"Content-Type": "application/json",
|
|
4072
|
+
...options.headers,
|
|
4073
|
+
},
|
|
4074
|
+
});
|
|
4075
|
+
}
|
|
4076
|
+
/**
|
|
4077
|
+
* Create macro goal
|
|
4078
|
+
*
|
|
4079
|
+
* Create a new macro goal for the current user.
|
|
4080
|
+
*/
|
|
4081
|
+
static macroGoalsCreate(options) {
|
|
4082
|
+
return (options.client ?? client).post({
|
|
4083
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4084
|
+
url: "/macro/goals",
|
|
4085
|
+
...options,
|
|
4086
|
+
headers: {
|
|
4087
|
+
"Content-Type": "application/json",
|
|
4088
|
+
...options.headers,
|
|
4089
|
+
},
|
|
4090
|
+
});
|
|
4091
|
+
}
|
|
4092
|
+
}
|
|
4093
|
+
export class Homes {
|
|
4094
|
+
/**
|
|
4095
|
+
* List homes
|
|
4096
|
+
*
|
|
4097
|
+
* List homes shared with or owned by the current user.
|
|
4098
|
+
*/
|
|
4099
|
+
static homesList(options) {
|
|
4100
|
+
return (options?.client ?? client).get({
|
|
4101
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4102
|
+
url: "/homes",
|
|
4103
|
+
...options,
|
|
4104
|
+
});
|
|
4105
|
+
}
|
|
4106
|
+
/**
|
|
4107
|
+
* Create home
|
|
4108
|
+
*
|
|
4109
|
+
* Create a home for the current user.
|
|
4110
|
+
*/
|
|
4111
|
+
static homesCreate(options) {
|
|
4112
|
+
return (options.client ?? client).post({
|
|
4113
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4114
|
+
url: "/homes",
|
|
4115
|
+
...options,
|
|
4116
|
+
headers: {
|
|
4117
|
+
"Content-Type": "application/json",
|
|
4118
|
+
...options.headers,
|
|
4119
|
+
},
|
|
4120
|
+
});
|
|
4121
|
+
}
|
|
4122
|
+
/**
|
|
4123
|
+
* Delete home
|
|
4124
|
+
*
|
|
4125
|
+
* Delete a home and its dependent rooms, floors, chores, members and invites.
|
|
4126
|
+
*/
|
|
4127
|
+
static homesDelete(options) {
|
|
4128
|
+
return (options.client ?? client).delete({
|
|
4129
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4130
|
+
url: "/homes/{id}",
|
|
4131
|
+
...options,
|
|
4132
|
+
});
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Get home
|
|
4136
|
+
*
|
|
4137
|
+
* Fetch a single home with nested room and chore data.
|
|
4138
|
+
*/
|
|
4139
|
+
static homesGet(options) {
|
|
4140
|
+
return (options.client ?? client).get({
|
|
4141
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4142
|
+
url: "/homes/{id}",
|
|
4143
|
+
...options,
|
|
4144
|
+
});
|
|
4145
|
+
}
|
|
4146
|
+
/**
|
|
4147
|
+
* Update home
|
|
4148
|
+
*
|
|
4149
|
+
* Update home data if user has edit permission.
|
|
4150
|
+
*/
|
|
4151
|
+
static homesUpdate(options) {
|
|
4152
|
+
return (options.client ?? client).patch({
|
|
4153
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4154
|
+
url: "/homes/{id}",
|
|
4155
|
+
...options,
|
|
4156
|
+
headers: {
|
|
4157
|
+
"Content-Type": "application/json",
|
|
4158
|
+
...options.headers,
|
|
4159
|
+
},
|
|
4160
|
+
});
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
export class Ingredients {
|
|
4164
|
+
/**
|
|
4165
|
+
* List ingredients
|
|
4166
|
+
*
|
|
4167
|
+
* List ingredients visible to the current user.
|
|
4168
|
+
*/
|
|
4169
|
+
static ingredientsList(options) {
|
|
4170
|
+
return (options?.client ?? client).post({
|
|
4171
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4172
|
+
url: "/ingredients/list",
|
|
4173
|
+
...options,
|
|
4174
|
+
headers: {
|
|
4175
|
+
"Content-Type": "application/json",
|
|
4176
|
+
...options?.headers,
|
|
4177
|
+
},
|
|
4178
|
+
});
|
|
4179
|
+
}
|
|
4180
|
+
/**
|
|
4181
|
+
* Get ingredient
|
|
4182
|
+
*
|
|
4183
|
+
* Get a single ingredient by ID.
|
|
4184
|
+
*/
|
|
4185
|
+
static ingredientsGet(options) {
|
|
4186
|
+
return (options.client ?? client).post({
|
|
4187
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4188
|
+
url: "/ingredients/get",
|
|
4189
|
+
...options,
|
|
4190
|
+
headers: {
|
|
4191
|
+
"Content-Type": "application/json",
|
|
4192
|
+
...options.headers,
|
|
4193
|
+
},
|
|
4194
|
+
});
|
|
4195
|
+
}
|
|
4196
|
+
/**
|
|
4197
|
+
* Create ingredient
|
|
4198
|
+
*
|
|
4199
|
+
* Create a new ingredient.
|
|
4200
|
+
*/
|
|
4201
|
+
static ingredientsCreate(options) {
|
|
4202
|
+
return (options.client ?? client).post({
|
|
4203
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4204
|
+
url: "/ingredients",
|
|
4205
|
+
...options,
|
|
4206
|
+
headers: {
|
|
4207
|
+
"Content-Type": "application/json",
|
|
4208
|
+
...options.headers,
|
|
4209
|
+
},
|
|
4210
|
+
});
|
|
4211
|
+
}
|
|
4212
|
+
/**
|
|
4213
|
+
* Update ingredient
|
|
4214
|
+
*
|
|
4215
|
+
* Update an existing ingredient.
|
|
4216
|
+
*/
|
|
4217
|
+
static ingredientsUpdate(options) {
|
|
4218
|
+
return (options.client ?? client).patch({
|
|
4219
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4220
|
+
url: "/ingredients/update",
|
|
4221
|
+
...options,
|
|
4222
|
+
headers: {
|
|
4223
|
+
"Content-Type": "application/json",
|
|
4224
|
+
...options.headers,
|
|
4225
|
+
},
|
|
4226
|
+
});
|
|
4227
|
+
}
|
|
4228
|
+
/**
|
|
4229
|
+
* Delete ingredient
|
|
4230
|
+
*
|
|
4231
|
+
* Delete a single ingredient.
|
|
4232
|
+
*/
|
|
4233
|
+
static ingredientsDelete(options) {
|
|
4234
|
+
return (options.client ?? client).delete({
|
|
4235
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4236
|
+
url: "/ingredients/delete",
|
|
4237
|
+
...options,
|
|
4238
|
+
});
|
|
4239
|
+
}
|
|
4240
|
+
/**
|
|
4241
|
+
* Delete many ingredients
|
|
4242
|
+
*
|
|
4243
|
+
* Delete multiple ingredients.
|
|
4244
|
+
*/
|
|
4245
|
+
static ingredientsDeleteMany(options) {
|
|
4246
|
+
return (options.client ?? client).post({
|
|
4247
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4248
|
+
url: "/ingredients/delete-many",
|
|
4249
|
+
...options,
|
|
4250
|
+
headers: {
|
|
4251
|
+
"Content-Type": "application/json",
|
|
4252
|
+
...options.headers,
|
|
4253
|
+
},
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
/**
|
|
4257
|
+
* List orphan ingredients
|
|
4258
|
+
*
|
|
4259
|
+
* List ingredients not assigned to any ingredient list.
|
|
4260
|
+
*/
|
|
4261
|
+
static ingredientsListOrphans(options) {
|
|
4262
|
+
return (options?.client ?? client).post({
|
|
4263
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4264
|
+
url: "/ingredients/orphans",
|
|
4265
|
+
...options,
|
|
4266
|
+
});
|
|
4267
|
+
}
|
|
4268
|
+
/**
|
|
4269
|
+
* Update many ingredients
|
|
4270
|
+
*
|
|
4271
|
+
* Update multiple ingredients.
|
|
4272
|
+
*/
|
|
4273
|
+
static ingredientsUpdateMany(options) {
|
|
4274
|
+
return (options.client ?? client).patch({
|
|
4275
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4276
|
+
url: "/ingredients/update-many",
|
|
4277
|
+
...options,
|
|
4278
|
+
headers: {
|
|
4279
|
+
"Content-Type": "application/json",
|
|
4280
|
+
...options.headers,
|
|
4281
|
+
},
|
|
4282
|
+
});
|
|
4283
|
+
}
|
|
4284
|
+
/**
|
|
4285
|
+
* Mark ingredients to buy
|
|
4286
|
+
*
|
|
4287
|
+
* Mark selected ingredients as 'to buy'.
|
|
4288
|
+
*/
|
|
4289
|
+
static ingredientsAddToShoppingList(options) {
|
|
4290
|
+
return (options.client ?? client).patch({
|
|
4291
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4292
|
+
url: "/ingredients/add-to-shopping-list",
|
|
4293
|
+
...options,
|
|
4294
|
+
headers: {
|
|
4295
|
+
"Content-Type": "application/json",
|
|
4296
|
+
...options.headers,
|
|
4297
|
+
},
|
|
4298
|
+
});
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
export class Dashboards {
|
|
4302
|
+
/**
|
|
4303
|
+
* List dashboards
|
|
4304
|
+
*
|
|
4305
|
+
* List dashboards for the current user.
|
|
4306
|
+
*/
|
|
4307
|
+
static dashboardsList(options) {
|
|
4308
|
+
return (options?.client ?? client).post({
|
|
4309
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4310
|
+
url: "/dashboards/list",
|
|
4311
|
+
...options,
|
|
4312
|
+
});
|
|
4313
|
+
}
|
|
4314
|
+
/**
|
|
4315
|
+
* Delete dashboard
|
|
4316
|
+
*
|
|
4317
|
+
* Delete a dashboard by ID.
|
|
4318
|
+
*/
|
|
4319
|
+
static dashboardsDelete(options) {
|
|
4320
|
+
return (options.client ?? client).delete({
|
|
4321
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4322
|
+
url: "/dashboards/{id}",
|
|
4323
|
+
...options,
|
|
4324
|
+
});
|
|
4325
|
+
}
|
|
4326
|
+
/**
|
|
4327
|
+
* Update dashboard
|
|
4328
|
+
*
|
|
4329
|
+
* Update an existing dashboard.
|
|
4330
|
+
*/
|
|
4331
|
+
static dashboardsUpdate(options) {
|
|
4332
|
+
return (options.client ?? client).patch({
|
|
4333
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4334
|
+
url: "/dashboards/{id}",
|
|
4335
|
+
...options,
|
|
4336
|
+
headers: {
|
|
4337
|
+
"Content-Type": "application/json",
|
|
4338
|
+
...options.headers,
|
|
4339
|
+
},
|
|
4340
|
+
});
|
|
4341
|
+
}
|
|
4342
|
+
/**
|
|
4343
|
+
* Get dashboard
|
|
4344
|
+
*
|
|
4345
|
+
* Get a single dashboard by ID.
|
|
4346
|
+
*/
|
|
4347
|
+
static dashboardsGet(options) {
|
|
4348
|
+
return (options.client ?? client).post({
|
|
4349
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4350
|
+
url: "/dashboards/{id}",
|
|
4351
|
+
...options,
|
|
4352
|
+
});
|
|
4353
|
+
}
|
|
4354
|
+
/**
|
|
4355
|
+
* Create dashboard
|
|
4356
|
+
*
|
|
4357
|
+
* Create a new dashboard.
|
|
4358
|
+
*/
|
|
4359
|
+
static dashboardsCreate(options) {
|
|
4360
|
+
return (options.client ?? client).post({
|
|
4361
|
+
security: [{ name: "x-api-key", type: "apiKey" }],
|
|
4362
|
+
url: "/dashboards",
|
|
4363
|
+
...options,
|
|
4364
|
+
headers: {
|
|
4365
|
+
"Content-Type": "application/json",
|
|
4366
|
+
...options.headers,
|
|
4367
|
+
},
|
|
2230
4368
|
});
|
|
2231
4369
|
}
|
|
2232
4370
|
}
|