@bikefinder/api-client 0.3.0 → 0.4.0
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 +3 -1
- package/dist/admin/generated/index.d.ts +1 -1
- package/dist/admin/generated/index.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.d.ts +132 -18
- package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.js +264 -150
- package/dist/admin/generated/sdk.gen.js.map +1 -1
- package/dist/admin/generated/types.gen.d.ts +791 -385
- package/dist/admin/generated/types.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.d.ts +957 -988
- package/dist/admin/generated/zod.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.js +239 -292
- package/dist/admin/generated/zod.gen.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +80 -45
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +192 -157
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +887 -453
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.d.ts +468 -286
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +188 -201
- package/dist/generated/zod.gen.js.map +1 -1
- package/dist/realtime/api-stream-error.d.ts +2 -1
- package/dist/realtime/api-stream-error.d.ts.map +1 -1
- package/dist/realtime/api-stream-error.js +8 -1
- package/dist/realtime/api-stream-error.js.map +1 -1
- package/dist/realtime/watch.d.ts.map +1 -1
- package/dist/realtime/watch.js +1 -1
- package/dist/realtime/watch.js.map +1 -1
- package/dist/transport.js +10 -1
- package/dist/transport.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/generated/index.ts +1 -7
- package/src/admin/generated/sdk.gen.ts +440 -326
- package/src/admin/generated/types.gen.ts +860 -464
- package/src/admin/generated/zod.gen.ts +259 -318
- package/src/generated/index.ts +6 -2
- package/src/generated/sdk.gen.ts +408 -373
- package/src/generated/types.gen.ts +956 -516
- package/src/generated/zod.gen.ts +217 -231
- package/src/realtime/api-stream-error.ts +12 -1
- package/src/realtime/watch.ts +6 -1
- package/src/transport.ts +10 -1
|
@@ -28,19 +28,20 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
28
28
|
super(args);
|
|
29
29
|
BikeFinderAdminSdk.__registry.set(this, args?.key);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Get the signed-in operator and capabilities
|
|
33
|
+
*/
|
|
34
|
+
adminGetSession(options) {
|
|
35
|
+
return (options?.client ?? this.client).get({
|
|
36
|
+
responseTransformer: async (data) => await zAdminGetSessionResponse.parseAsync(data),
|
|
35
37
|
security: [{ scheme: "bearer", type: "http" }],
|
|
36
|
-
url: "/v1/admin/
|
|
38
|
+
url: "/v1/admin/session",
|
|
37
39
|
...options,
|
|
38
|
-
headers: {
|
|
39
|
-
"Content-Type": null,
|
|
40
|
-
...options.headers,
|
|
41
|
-
},
|
|
42
40
|
});
|
|
43
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Inspect a tracker and selected public domains
|
|
44
|
+
*/
|
|
44
45
|
adminGetTracker(options) {
|
|
45
46
|
return (options.client ?? this.client).get({
|
|
46
47
|
responseTransformer: async (data) => await zAdminGetTrackerResponse.parseAsync(data),
|
|
@@ -49,6 +50,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
49
50
|
...options,
|
|
50
51
|
});
|
|
51
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Find trackers by an exact identifier
|
|
55
|
+
*/
|
|
52
56
|
adminSearchTrackers(options) {
|
|
53
57
|
return (options.client ?? this.client).get({
|
|
54
58
|
responseTransformer: async (data) => await zAdminSearchTrackersResponse.parseAsync(data),
|
|
@@ -57,67 +61,66 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
57
61
|
...options,
|
|
58
62
|
});
|
|
59
63
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
url: "/v1/admin/users/{uid}",
|
|
65
|
-
...options,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
adminGetSubscription(options) {
|
|
69
|
-
return (options.client ?? this.client).get({
|
|
70
|
-
responseTransformer: async (data) => await zAdminGetSubscriptionResponse.parseAsync(data),
|
|
71
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
72
|
-
url: "/v1/admin/subscriptions/{subscriptionId}",
|
|
73
|
-
...options,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
adminSearchSubscriptions(options) {
|
|
64
|
+
/**
|
|
65
|
+
* Inspect a page of stored tracker history
|
|
66
|
+
*/
|
|
67
|
+
adminListTrackerHistory(options) {
|
|
77
68
|
return (options.client ?? this.client).get({
|
|
78
|
-
responseTransformer: async (data) => await
|
|
69
|
+
responseTransformer: async (data) => await zAdminListTrackerHistoryResponse.parseAsync(data),
|
|
79
70
|
security: [{ scheme: "bearer", type: "http" }],
|
|
80
|
-
url: "/v1/admin/
|
|
71
|
+
url: "/v1/admin/trackers/{trackerId}/history/{collection}",
|
|
81
72
|
...options,
|
|
82
73
|
});
|
|
83
74
|
}
|
|
84
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Inspect selected private operational domains
|
|
77
|
+
*/
|
|
78
|
+
adminGetTrackerOperationalState(options) {
|
|
85
79
|
return (options.client ?? this.client).get({
|
|
86
|
-
responseTransformer: async (data) => await
|
|
87
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
88
|
-
url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}",
|
|
89
|
-
...options,
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
adminListFavorites(options) {
|
|
93
|
-
return (options?.client ?? this.client).get({
|
|
94
|
-
responseTransformer: async (data) => await zAdminListFavoritesResponse.parseAsync(data),
|
|
80
|
+
responseTransformer: async (data) => await zAdminGetTrackerOperationalStateResponse.parseAsync(data),
|
|
95
81
|
security: [{ scheme: "bearer", type: "http" }],
|
|
96
|
-
url: "/v1/admin/
|
|
82
|
+
url: "/v1/admin/trackers/{trackerId}/operational-state",
|
|
97
83
|
...options,
|
|
98
84
|
});
|
|
99
85
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Request a tracker mode change
|
|
88
|
+
*/
|
|
89
|
+
adminRequestTrackerMode(options) {
|
|
90
|
+
return (options.client ?? this.client).post({
|
|
91
|
+
responseTransformer: async (data) => await zAdminRequestTrackerModeResponse.parseAsync(data),
|
|
103
92
|
security: [{ scheme: "bearer", type: "http" }],
|
|
104
|
-
url: "/v1/admin/
|
|
93
|
+
url: "/v1/admin/trackers/{trackerId}/mode-requests",
|
|
105
94
|
...options,
|
|
95
|
+
headers: {
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
...options.headers,
|
|
98
|
+
},
|
|
106
99
|
});
|
|
107
100
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
/**
|
|
102
|
+
* Replace or clear the pending tracker command using its expected value
|
|
103
|
+
*/
|
|
104
|
+
adminRequestTrackerCommand(options) {
|
|
105
|
+
return (options.client ?? this.client).put({
|
|
106
|
+
responseTransformer: async (data) => await zAdminRequestTrackerCommandResponse.parseAsync(data),
|
|
111
107
|
security: [{ scheme: "bearer", type: "http" }],
|
|
112
|
-
url: "/v1/admin/
|
|
108
|
+
url: "/v1/admin/trackers/{trackerId}/pending-command",
|
|
113
109
|
...options,
|
|
110
|
+
headers: {
|
|
111
|
+
"Content-Type": "application/json",
|
|
112
|
+
...options.headers,
|
|
113
|
+
},
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Update tracker configuration
|
|
118
|
+
*/
|
|
119
|
+
adminUpdateTrackerConfiguration(options) {
|
|
117
120
|
return (options.client ?? this.client).patch({
|
|
118
|
-
responseTransformer: async (data) => await
|
|
121
|
+
responseTransformer: async (data) => await zAdminUpdateTrackerConfigurationResponse.parseAsync(data),
|
|
119
122
|
security: [{ scheme: "bearer", type: "http" }],
|
|
120
|
-
url: "/v1/admin/
|
|
123
|
+
url: "/v1/admin/trackers/{trackerId}/configuration",
|
|
121
124
|
...options,
|
|
122
125
|
headers: {
|
|
123
126
|
"Content-Type": "application/json",
|
|
@@ -125,11 +128,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
125
128
|
},
|
|
126
129
|
});
|
|
127
130
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
/**
|
|
132
|
+
* Update tracker bike details
|
|
133
|
+
*/
|
|
134
|
+
adminUpdateTrackerBike(options) {
|
|
135
|
+
return (options.client ?? this.client).patch({
|
|
136
|
+
responseTransformer: async (data) => await zAdminUpdateTrackerBikeResponse.parseAsync(data),
|
|
131
137
|
security: [{ scheme: "bearer", type: "http" }],
|
|
132
|
-
url: "/v1/admin/
|
|
138
|
+
url: "/v1/admin/trackers/{trackerId}/bike",
|
|
133
139
|
...options,
|
|
134
140
|
headers: {
|
|
135
141
|
"Content-Type": "application/json",
|
|
@@ -137,35 +143,44 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
137
143
|
},
|
|
138
144
|
});
|
|
139
145
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
adminGetTrackerOperationalState(options) {
|
|
149
|
-
return (options.client ?? this.client).get({
|
|
150
|
-
responseTransformer: async (data) => await zAdminGetTrackerOperationalStateResponse.parseAsync(data),
|
|
146
|
+
/**
|
|
147
|
+
* Request tracker cleanup
|
|
148
|
+
*/
|
|
149
|
+
adminCleanTracker(options) {
|
|
150
|
+
return (options.client ?? this.client).post({
|
|
151
|
+
responseTransformer: async (data) => await zAdminCleanTrackerResponse.parseAsync(data),
|
|
151
152
|
security: [{ scheme: "bearer", type: "http" }],
|
|
152
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
153
|
+
url: "/v1/admin/trackers/{trackerId}/cleanup-requests",
|
|
153
154
|
...options,
|
|
155
|
+
headers: {
|
|
156
|
+
"Content-Type": "application/json",
|
|
157
|
+
...options.headers,
|
|
158
|
+
},
|
|
154
159
|
});
|
|
155
160
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
/**
|
|
162
|
+
* Change tracker denylist status using its expected value
|
|
163
|
+
*/
|
|
164
|
+
adminSetTrackerDenylist(options) {
|
|
165
|
+
return (options.client ?? this.client).put({
|
|
166
|
+
responseTransformer: async (data) => await zAdminSetTrackerDenylistResponse.parseAsync(data),
|
|
159
167
|
security: [{ scheme: "bearer", type: "http" }],
|
|
160
|
-
url: "/v1/admin/
|
|
168
|
+
url: "/v1/admin/trackers/{trackerId}/denylist",
|
|
161
169
|
...options,
|
|
170
|
+
headers: {
|
|
171
|
+
"Content-Type": "application/json",
|
|
172
|
+
...options.headers,
|
|
173
|
+
},
|
|
162
174
|
});
|
|
163
175
|
}
|
|
164
|
-
|
|
176
|
+
/**
|
|
177
|
+
* Request a notification to tracker members
|
|
178
|
+
*/
|
|
179
|
+
adminNotifyTracker(options) {
|
|
165
180
|
return (options.client ?? this.client).post({
|
|
166
|
-
responseTransformer: async (data) => await
|
|
181
|
+
responseTransformer: async (data) => await zAdminNotifyTrackerResponse.parseAsync(data),
|
|
167
182
|
security: [{ scheme: "bearer", type: "http" }],
|
|
168
|
-
url: "/v1/admin/
|
|
183
|
+
url: "/v1/admin/trackers/{trackerId}/notification-requests",
|
|
169
184
|
...options,
|
|
170
185
|
headers: {
|
|
171
186
|
"Content-Type": "application/json",
|
|
@@ -173,6 +188,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
173
188
|
},
|
|
174
189
|
});
|
|
175
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Add a tracker member
|
|
193
|
+
*/
|
|
176
194
|
adminAddTrackerMember(options) {
|
|
177
195
|
return (options.client ?? this.client).post({
|
|
178
196
|
responseTransformer: async (data) => await zAdminAddTrackerMemberResponse.parseAsync(data),
|
|
@@ -185,6 +203,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
185
203
|
},
|
|
186
204
|
});
|
|
187
205
|
}
|
|
206
|
+
/**
|
|
207
|
+
* Remove a tracker member
|
|
208
|
+
*/
|
|
188
209
|
adminRemoveTrackerMember(options) {
|
|
189
210
|
return (options.client ?? this.client).delete({
|
|
190
211
|
responseTransformer: async (data) => await zAdminRemoveTrackerMemberResponse.parseAsync(data),
|
|
@@ -193,11 +214,25 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
193
214
|
...options,
|
|
194
215
|
});
|
|
195
216
|
}
|
|
196
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Remove the current tracker subscription link
|
|
219
|
+
*/
|
|
220
|
+
adminUnlinkTrackerSubscription(options) {
|
|
221
|
+
return (options.client ?? this.client).delete({
|
|
222
|
+
responseTransformer: async (data) => await zAdminUnlinkTrackerSubscriptionResponse.parseAsync(data),
|
|
223
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
224
|
+
url: "/v1/admin/trackers/{trackerId}/subscription",
|
|
225
|
+
...options,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Link a subscription to a tracker
|
|
230
|
+
*/
|
|
231
|
+
adminLinkTrackerSubscription(options) {
|
|
197
232
|
return (options.client ?? this.client).put({
|
|
198
|
-
responseTransformer: async (data) => await
|
|
233
|
+
responseTransformer: async (data) => await zAdminLinkTrackerSubscriptionResponse.parseAsync(data),
|
|
199
234
|
security: [{ scheme: "bearer", type: "http" }],
|
|
200
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
235
|
+
url: "/v1/admin/trackers/{trackerId}/subscription",
|
|
201
236
|
...options,
|
|
202
237
|
headers: {
|
|
203
238
|
"Content-Type": "application/json",
|
|
@@ -205,11 +240,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
205
240
|
},
|
|
206
241
|
});
|
|
207
242
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
243
|
+
/**
|
|
244
|
+
* Request insurance synchronization for a tracker
|
|
245
|
+
*/
|
|
246
|
+
adminRequestTrackerInsurance(options) {
|
|
247
|
+
return (options.client ?? this.client).post({
|
|
248
|
+
responseTransformer: async (data) => await zAdminRequestTrackerInsuranceResponse.parseAsync(data),
|
|
211
249
|
security: [{ scheme: "bearer", type: "http" }],
|
|
212
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
250
|
+
url: "/v1/admin/trackers/{trackerId}/insurance-requests",
|
|
213
251
|
...options,
|
|
214
252
|
headers: {
|
|
215
253
|
"Content-Type": "application/json",
|
|
@@ -217,11 +255,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
217
255
|
},
|
|
218
256
|
});
|
|
219
257
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
258
|
+
/**
|
|
259
|
+
* Request tracker subscription reconciliation
|
|
260
|
+
*/
|
|
261
|
+
adminReconcileTrackerSubscription(options) {
|
|
262
|
+
return (options.client ?? this.client).post({
|
|
263
|
+
responseTransformer: async (data) => await zAdminReconcileTrackerSubscriptionResponse.parseAsync(data),
|
|
223
264
|
security: [{ scheme: "bearer", type: "http" }],
|
|
224
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
265
|
+
url: "/v1/admin/trackers/{trackerId}/subscription/reconciliation-requests",
|
|
225
266
|
...options,
|
|
226
267
|
headers: {
|
|
227
268
|
"Content-Type": "application/json",
|
|
@@ -229,23 +270,52 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
229
270
|
},
|
|
230
271
|
});
|
|
231
272
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
273
|
+
/**
|
|
274
|
+
* Upload a tracker photo
|
|
275
|
+
*/
|
|
276
|
+
adminUploadTrackerPhoto(options) {
|
|
277
|
+
return (options.client ?? this.client).post({
|
|
278
|
+
...formDataBodySerializer,
|
|
279
|
+
responseTransformer: async (data) => await zAdminUploadTrackerPhotoResponse.parseAsync(data),
|
|
235
280
|
security: [{ scheme: "bearer", type: "http" }],
|
|
236
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
281
|
+
url: "/v1/admin/trackers/{trackerId}/photos",
|
|
237
282
|
...options,
|
|
238
283
|
headers: {
|
|
239
|
-
"Content-Type":
|
|
284
|
+
"Content-Type": null,
|
|
240
285
|
...options.headers,
|
|
241
286
|
},
|
|
242
287
|
});
|
|
243
288
|
}
|
|
244
|
-
|
|
289
|
+
/**
|
|
290
|
+
* Subscribe to a live tracker inspection
|
|
291
|
+
*/
|
|
292
|
+
adminSubscribeTracker(options) {
|
|
293
|
+
return (options.client ?? this.client).sse.get({
|
|
294
|
+
responseTransformer: async (data) => await zAdminSubscribeTrackerResponse.parseAsync(data),
|
|
295
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
296
|
+
url: "/v1/admin/trackers/{trackerId}/stream",
|
|
297
|
+
...options,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Inspect a user account
|
|
302
|
+
*/
|
|
303
|
+
adminGetUser(options) {
|
|
304
|
+
return (options.client ?? this.client).get({
|
|
305
|
+
responseTransformer: async (data) => await zAdminGetUserResponse.parseAsync(data),
|
|
306
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
307
|
+
url: "/v1/admin/users/{uid}",
|
|
308
|
+
...options,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Find user accounts by email or identifiers
|
|
313
|
+
*/
|
|
314
|
+
adminLookupUsers(options) {
|
|
245
315
|
return (options.client ?? this.client).post({
|
|
246
|
-
responseTransformer: async (data) => await
|
|
316
|
+
responseTransformer: async (data) => await zAdminLookupUsersResponse.parseAsync(data),
|
|
247
317
|
security: [{ scheme: "bearer", type: "http" }],
|
|
248
|
-
url: "/v1/admin/
|
|
318
|
+
url: "/v1/admin/users/lookup",
|
|
249
319
|
...options,
|
|
250
320
|
headers: {
|
|
251
321
|
"Content-Type": "application/json",
|
|
@@ -253,11 +323,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
253
323
|
},
|
|
254
324
|
});
|
|
255
325
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
326
|
+
/**
|
|
327
|
+
* Request insurance synchronization for a user
|
|
328
|
+
*/
|
|
329
|
+
adminRequestUserInsurance(options) {
|
|
330
|
+
return (options.client ?? this.client).post({
|
|
331
|
+
responseTransformer: async (data) => await zAdminRequestUserInsuranceResponse.parseAsync(data),
|
|
259
332
|
security: [{ scheme: "bearer", type: "http" }],
|
|
260
|
-
url: "/v1/admin/
|
|
333
|
+
url: "/v1/admin/users/{uid}/insurance-requests",
|
|
261
334
|
...options,
|
|
262
335
|
headers: {
|
|
263
336
|
"Content-Type": "application/json",
|
|
@@ -265,11 +338,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
265
338
|
},
|
|
266
339
|
});
|
|
267
340
|
}
|
|
268
|
-
|
|
341
|
+
/**
|
|
342
|
+
* Link a user's sole available subscription and inactive tracker
|
|
343
|
+
*/
|
|
344
|
+
adminLinkSingleSubscription(options) {
|
|
269
345
|
return (options.client ?? this.client).post({
|
|
270
|
-
responseTransformer: async (data) => await
|
|
346
|
+
responseTransformer: async (data) => await zAdminLinkSingleSubscriptionResponse.parseAsync(data),
|
|
271
347
|
security: [{ scheme: "bearer", type: "http" }],
|
|
272
|
-
url: "/v1/admin/
|
|
348
|
+
url: "/v1/admin/users/{uid}/subscription-link-requests",
|
|
273
349
|
...options,
|
|
274
350
|
headers: {
|
|
275
351
|
"Content-Type": "application/json",
|
|
@@ -277,31 +353,47 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
277
353
|
},
|
|
278
354
|
});
|
|
279
355
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Inspect a subscription
|
|
358
|
+
*/
|
|
359
|
+
adminGetSubscription(options) {
|
|
360
|
+
return (options.client ?? this.client).get({
|
|
361
|
+
responseTransformer: async (data) => await zAdminGetSubscriptionResponse.parseAsync(data),
|
|
283
362
|
security: [{ scheme: "bearer", type: "http" }],
|
|
284
|
-
url: "/v1/admin/
|
|
363
|
+
url: "/v1/admin/subscriptions/{subscriptionId}",
|
|
285
364
|
...options,
|
|
286
365
|
});
|
|
287
366
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
367
|
+
/**
|
|
368
|
+
* Find subscriptions by an exact identifier
|
|
369
|
+
*/
|
|
370
|
+
adminSearchSubscriptions(options) {
|
|
371
|
+
return (options.client ?? this.client).get({
|
|
372
|
+
responseTransformer: async (data) => await zAdminSearchSubscriptionsResponse.parseAsync(data),
|
|
291
373
|
security: [{ scheme: "bearer", type: "http" }],
|
|
292
|
-
url: "/v1/admin/
|
|
374
|
+
url: "/v1/admin/subscriptions",
|
|
293
375
|
...options,
|
|
294
|
-
headers: {
|
|
295
|
-
"Content-Type": "application/json",
|
|
296
|
-
...options.headers,
|
|
297
|
-
},
|
|
298
376
|
});
|
|
299
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Inspect insurance records for a subscription
|
|
380
|
+
*/
|
|
381
|
+
adminListInsurance(options) {
|
|
382
|
+
return (options.client ?? this.client).get({
|
|
383
|
+
responseTransformer: async (data) => await zAdminListInsuranceResponse.parseAsync(data),
|
|
384
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
385
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}",
|
|
386
|
+
...options,
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Request insurance synchronization for a subscription
|
|
391
|
+
*/
|
|
300
392
|
adminRequestSubscriptionInsurance(options) {
|
|
301
393
|
return (options.client ?? this.client).post({
|
|
302
394
|
responseTransformer: async (data) => await zAdminRequestSubscriptionInsuranceResponse.parseAsync(data),
|
|
303
395
|
security: [{ scheme: "bearer", type: "http" }],
|
|
304
|
-
url: "/v1/admin/subscriptions/{subscriptionId}/insurance",
|
|
396
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance-requests",
|
|
305
397
|
...options,
|
|
306
398
|
headers: {
|
|
307
399
|
"Content-Type": "application/json",
|
|
@@ -309,11 +401,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
309
401
|
},
|
|
310
402
|
});
|
|
311
403
|
}
|
|
312
|
-
|
|
404
|
+
/**
|
|
405
|
+
* Request a refresh from the billing provider
|
|
406
|
+
*/
|
|
407
|
+
adminRefreshSubscription(options) {
|
|
313
408
|
return (options.client ?? this.client).post({
|
|
314
|
-
responseTransformer: async (data) => await
|
|
409
|
+
responseTransformer: async (data) => await zAdminRefreshSubscriptionResponse.parseAsync(data),
|
|
315
410
|
security: [{ scheme: "bearer", type: "http" }],
|
|
316
|
-
url: "/v1/admin/
|
|
411
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/refresh-requests",
|
|
317
412
|
...options,
|
|
318
413
|
headers: {
|
|
319
414
|
"Content-Type": "application/json",
|
|
@@ -321,35 +416,47 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
321
416
|
},
|
|
322
417
|
});
|
|
323
418
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
419
|
+
/**
|
|
420
|
+
* List the operator's favorite trackers
|
|
421
|
+
*/
|
|
422
|
+
adminListFavorites(options) {
|
|
423
|
+
return (options?.client ?? this.client).get({
|
|
424
|
+
responseTransformer: async (data) => await zAdminListFavoritesResponse.parseAsync(data),
|
|
327
425
|
security: [{ scheme: "bearer", type: "http" }],
|
|
328
|
-
url: "/v1/admin/
|
|
426
|
+
url: "/v1/admin/favorites",
|
|
329
427
|
...options,
|
|
330
|
-
headers: {
|
|
331
|
-
"Content-Type": "application/json",
|
|
332
|
-
...options.headers,
|
|
333
|
-
},
|
|
334
428
|
});
|
|
335
429
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
430
|
+
/**
|
|
431
|
+
* Remove a favorite tracker
|
|
432
|
+
*/
|
|
433
|
+
adminDeleteFavorite(options) {
|
|
434
|
+
return (options.client ?? this.client).delete({
|
|
435
|
+
responseTransformer: async (data) => await zAdminDeleteFavoriteResponse.parseAsync(data),
|
|
436
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
437
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
438
|
+
...options,
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Get a favorite tracker
|
|
443
|
+
*/
|
|
444
|
+
adminGetFavorite(options) {
|
|
445
|
+
return (options.client ?? this.client).get({
|
|
446
|
+
responseTransformer: async (data) => await zAdminGetFavoriteResponse.parseAsync(data),
|
|
339
447
|
security: [{ scheme: "bearer", type: "http" }],
|
|
340
|
-
url: "/v1/admin/
|
|
448
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
341
449
|
...options,
|
|
342
|
-
headers: {
|
|
343
|
-
"Content-Type": "application/json",
|
|
344
|
-
...options.headers,
|
|
345
|
-
},
|
|
346
450
|
});
|
|
347
451
|
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
452
|
+
/**
|
|
453
|
+
* Update a favorite tracker comment
|
|
454
|
+
*/
|
|
455
|
+
adminUpdateFavoriteComment(options) {
|
|
456
|
+
return (options.client ?? this.client).patch({
|
|
457
|
+
responseTransformer: async (data) => await zAdminUpdateFavoriteCommentResponse.parseAsync(data),
|
|
351
458
|
security: [{ scheme: "bearer", type: "http" }],
|
|
352
|
-
url: "/v1/admin/
|
|
459
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
353
460
|
...options,
|
|
354
461
|
headers: {
|
|
355
462
|
"Content-Type": "application/json",
|
|
@@ -357,11 +464,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
357
464
|
},
|
|
358
465
|
});
|
|
359
466
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
467
|
+
/**
|
|
468
|
+
* Save a favorite tracker
|
|
469
|
+
*/
|
|
470
|
+
adminPutFavorite(options) {
|
|
471
|
+
return (options.client ?? this.client).put({
|
|
472
|
+
responseTransformer: async (data) => await zAdminPutFavoriteResponse.parseAsync(data),
|
|
363
473
|
security: [{ scheme: "bearer", type: "http" }],
|
|
364
|
-
url: "/v1/admin/
|
|
474
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
365
475
|
...options,
|
|
366
476
|
headers: {
|
|
367
477
|
"Content-Type": "application/json",
|
|
@@ -369,6 +479,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
369
479
|
},
|
|
370
480
|
});
|
|
371
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Create a business subscription
|
|
484
|
+
*/
|
|
372
485
|
adminCreateB2bSubscription(options) {
|
|
373
486
|
return (options.client ?? this.client).post({
|
|
374
487
|
responseTransformer: async (data) => await zAdminCreateB2bSubscriptionResponse.parseAsync(data),
|
|
@@ -381,35 +494,36 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
381
494
|
},
|
|
382
495
|
});
|
|
383
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* Request cancellation of a business subscription
|
|
499
|
+
*/
|
|
384
500
|
adminCancelB2bSubscription(options) {
|
|
385
501
|
return (options.client ?? this.client).post({
|
|
386
502
|
responseTransformer: async (data) => await zAdminCancelB2bSubscriptionResponse.parseAsync(data),
|
|
387
503
|
security: [{ scheme: "bearer", type: "http" }],
|
|
388
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/
|
|
504
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancellation-requests",
|
|
389
505
|
...options,
|
|
390
506
|
});
|
|
391
507
|
}
|
|
508
|
+
/**
|
|
509
|
+
* Request insurance synchronization for a business subscription
|
|
510
|
+
*/
|
|
392
511
|
adminSyncB2bInsurance(options) {
|
|
393
512
|
return (options.client ?? this.client).post({
|
|
394
513
|
responseTransformer: async (data) => await zAdminSyncB2bInsuranceResponse.parseAsync(data),
|
|
395
514
|
security: [{ scheme: "bearer", type: "http" }],
|
|
396
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance
|
|
515
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance-sync-requests",
|
|
397
516
|
...options,
|
|
398
517
|
});
|
|
399
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* Request insurance synchronization for business subscriptions
|
|
521
|
+
*/
|
|
400
522
|
adminSyncAllB2bInsurance(options) {
|
|
401
523
|
return (options?.client ?? this.client).post({
|
|
402
524
|
responseTransformer: async (data) => await zAdminSyncAllB2bInsuranceResponse.parseAsync(data),
|
|
403
525
|
security: [{ scheme: "bearer", type: "http" }],
|
|
404
|
-
url: "/v1/admin/b2b/subscriptions/insurance
|
|
405
|
-
...options,
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
adminSubscribeTracker(options) {
|
|
409
|
-
return (options.client ?? this.client).sse.get({
|
|
410
|
-
responseTransformer: async (data) => await zAdminSubscribeTrackerResponse.parseAsync(data),
|
|
411
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
412
|
-
url: "/v1/admin/trackers/{trackerId}/stream",
|
|
526
|
+
url: "/v1/admin/b2b/subscriptions/insurance-sync-requests",
|
|
413
527
|
...options,
|
|
414
528
|
});
|
|
415
529
|
}
|