@bikefinder/api-client 0.3.0 → 0.5.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 +173 -19
- package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.js +377 -125
- package/dist/admin/generated/sdk.gen.js.map +1 -1
- package/dist/admin/generated/types.gen.d.ts +1468 -431
- package/dist/admin/generated/types.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.d.ts +2726 -1638
- package/dist/admin/generated/zod.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.js +410 -270
- 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 +65 -7
- package/src/admin/generated/sdk.gen.ts +720 -300
- package/src/admin/generated/types.gen.ts +1646 -513
- package/src/admin/generated/zod.gen.ts +474 -286
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client } from "./client.gen.js";
|
|
3
3
|
import { formDataBodySerializer, } from "./client/index.js";
|
|
4
|
-
import { zAdminAddTrackerMemberResponse, zAdminCancelB2bSubscriptionResponse, zAdminCleanTrackerResponse, zAdminCreateB2bSubscriptionResponse, zAdminDeleteFavoriteResponse, zAdminGetFavoriteResponse, zAdminGetSessionResponse, zAdminGetSubscriptionResponse, zAdminGetTrackerOperationalStateResponse, zAdminGetTrackerResponse, zAdminGetUserResponse, zAdminLinkSingleSubscriptionResponse, zAdminLinkTrackerSubscriptionResponse, zAdminListFavoritesResponse, zAdminListInsuranceResponse, zAdminListTrackerHistoryResponse, zAdminLookupUsersResponse, zAdminNotifyTrackerResponse, zAdminPutFavoriteResponse, zAdminReconcileTrackerSubscriptionResponse, zAdminRefreshSubscriptionResponse, zAdminRemoveTrackerMemberResponse, zAdminRequestSubscriptionInsuranceResponse, zAdminRequestTrackerCommandResponse, zAdminRequestTrackerInsuranceResponse, zAdminRequestTrackerModeResponse, zAdminRequestUserInsuranceResponse, zAdminSearchSubscriptionsResponse, zAdminSearchTrackersResponse, zAdminSetTrackerDenylistResponse, zAdminSubscribeTrackerResponse, zAdminSyncAllB2bInsuranceResponse, zAdminSyncB2bInsuranceResponse, zAdminUnlinkTrackerSubscriptionResponse, zAdminUpdateFavoriteCommentResponse, zAdminUpdateTrackerBikeResponse, zAdminUpdateTrackerConfigurationResponse, zAdminUploadTrackerPhotoResponse, } from "./zod.gen.js";
|
|
4
|
+
import { zAdminAddTrackerMemberResponse, zAdminCancelB2bSubscriptionResponse, zAdminChangeTrackerRelationshipResponse, zAdminCleanTrackerResponse, zAdminCreateB2bSubscriptionResponse, zAdminDeleteFavoriteResponse, zAdminGetFavoriteResponse, zAdminGetSessionResponse, zAdminGetSubscriptionFactEvidenceResponse, zAdminGetSubscriptionResponse, zAdminGetTrackerOperationalStateResponse, zAdminGetTrackerResponse, zAdminGetUserResponse, zAdminLinkSingleSubscriptionResponse, zAdminLinkTrackerSubscriptionResponse, zAdminListAccountSubscriptionEvidenceResponse, zAdminListAccountTrackerEvidenceResponse, zAdminListFavoritesResponse, zAdminListInsuranceResponse, zAdminListTrackerHistoryResponse, zAdminLookupUsersResponse, zAdminNotifyTrackerResponse, zAdminPutFavoriteResponse, zAdminQueryCommerceBindingEvidenceResponse, zAdminQueryTrackerFactEvidenceResponse, zAdminQueryTrackerHistoryEvidenceResponse, zAdminQueryTrackerRelationshipEvidenceResponse, zAdminQueryTrackerSubscriptionEvidenceResponse, zAdminReconcileTrackerSubscriptionResponse, zAdminRefreshSubscriptionResponse, zAdminRemoveTrackerMemberResponse, zAdminRequestSubscriptionInsuranceResponse, zAdminRequestTrackerCommandResponse, zAdminRequestTrackerInsuranceResponse, zAdminRequestTrackerModeResponse, zAdminRequestUserInsuranceResponse, zAdminSearchSubscriptionsResponse, zAdminSearchTrackersResponse, zAdminSetTrackerDenylistResponse, zAdminSubscribeTrackerResponse, zAdminSyncAllB2bInsuranceResponse, zAdminSyncB2bInsuranceResponse, zAdminUnlinkTrackerSubscriptionResponse, zAdminUpdateFavoriteCommentResponse, zAdminUpdateTrackerBikeResponse, zAdminUpdateTrackerConfigurationResponse, zAdminUploadTrackerPhotoResponse, zAdminVerifyTrackerRelationshipResponse, } from "./zod.gen.js";
|
|
5
5
|
class HeyApiClient {
|
|
6
6
|
client;
|
|
7
7
|
constructor(args) {
|
|
@@ -28,96 +28,122 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
28
28
|
super(args);
|
|
29
29
|
BikeFinderAdminSdk.__registry.set(this, args?.key);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
36
|
-
url: "/v1/admin/trackers/{trackerId}/photos",
|
|
37
|
-
...options,
|
|
38
|
-
headers: {
|
|
39
|
-
"Content-Type": null,
|
|
40
|
-
...options.headers,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
adminGetTracker(options) {
|
|
31
|
+
/**
|
|
32
|
+
* Read a bounded tracker identifier page for one account
|
|
33
|
+
*/
|
|
34
|
+
adminListAccountTrackerEvidence(options) {
|
|
45
35
|
return (options.client ?? this.client).get({
|
|
46
|
-
responseTransformer: async (data) => await
|
|
36
|
+
responseTransformer: async (data) => await zAdminListAccountTrackerEvidenceResponse.parseAsync(data),
|
|
47
37
|
security: [{ scheme: "bearer", type: "http" }],
|
|
48
|
-
url: "/v1/admin/
|
|
38
|
+
url: "/v1/admin/product-evidence/accounts/{accountId}/trackers",
|
|
49
39
|
...options,
|
|
50
40
|
});
|
|
51
41
|
}
|
|
52
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Read a bounded subscription identifier page for one account
|
|
44
|
+
*/
|
|
45
|
+
adminListAccountSubscriptionEvidence(options) {
|
|
53
46
|
return (options.client ?? this.client).get({
|
|
54
|
-
responseTransformer: async (data) => await
|
|
47
|
+
responseTransformer: async (data) => await zAdminListAccountSubscriptionEvidenceResponse.parseAsync(data),
|
|
55
48
|
security: [{ scheme: "bearer", type: "http" }],
|
|
56
|
-
url: "/v1/admin/
|
|
49
|
+
url: "/v1/admin/product-evidence/accounts/{accountId}/subscriptions",
|
|
57
50
|
...options,
|
|
58
51
|
});
|
|
59
52
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Read selected tracker facts within an explicit account scope
|
|
55
|
+
*/
|
|
56
|
+
adminQueryTrackerFactEvidence(options) {
|
|
57
|
+
return (options.client ?? this.client).post({
|
|
58
|
+
responseTransformer: async (data) => await zAdminQueryTrackerFactEvidenceResponse.parseAsync(data),
|
|
63
59
|
security: [{ scheme: "bearer", type: "http" }],
|
|
64
|
-
url: "/v1/admin/
|
|
60
|
+
url: "/v1/admin/product-evidence/tracker-fact-queries",
|
|
65
61
|
...options,
|
|
62
|
+
headers: {
|
|
63
|
+
"Content-Type": "application/json",
|
|
64
|
+
...options.headers,
|
|
65
|
+
},
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Read one selected subscription fact domain
|
|
70
|
+
*/
|
|
71
|
+
adminGetSubscriptionFactEvidence(options) {
|
|
69
72
|
return (options.client ?? this.client).get({
|
|
70
|
-
responseTransformer: async (data) => await
|
|
73
|
+
responseTransformer: async (data) => await zAdminGetSubscriptionFactEvidenceResponse.parseAsync(data),
|
|
71
74
|
security: [{ scheme: "bearer", type: "http" }],
|
|
72
|
-
url: "/v1/admin/subscriptions/{subscriptionId}",
|
|
75
|
+
url: "/v1/admin/product-evidence/subscriptions/{subscriptionId}",
|
|
73
76
|
...options,
|
|
74
77
|
});
|
|
75
78
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
adminListInsurance(options) {
|
|
85
|
-
return (options.client ?? this.client).get({
|
|
86
|
-
responseTransformer: async (data) => await zAdminListInsuranceResponse.parseAsync(data),
|
|
79
|
+
/**
|
|
80
|
+
* Read tracker and reverse subscription references in one transaction
|
|
81
|
+
*/
|
|
82
|
+
adminQueryTrackerSubscriptionEvidence(options) {
|
|
83
|
+
return (options.client ?? this.client).post({
|
|
84
|
+
responseTransformer: async (data) => await zAdminQueryTrackerSubscriptionEvidenceResponse.parseAsync(data),
|
|
87
85
|
security: [{ scheme: "bearer", type: "http" }],
|
|
88
|
-
url: "/v1/admin/
|
|
86
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/subscription-queries",
|
|
89
87
|
...options,
|
|
88
|
+
headers: {
|
|
89
|
+
"Content-Type": "application/json",
|
|
90
|
+
...options.headers,
|
|
91
|
+
},
|
|
90
92
|
});
|
|
91
93
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Read bounded product bindings for an explicit commerce subscription
|
|
96
|
+
*/
|
|
97
|
+
adminQueryCommerceBindingEvidence(options) {
|
|
98
|
+
return (options.client ?? this.client).post({
|
|
99
|
+
responseTransformer: async (data) => await zAdminQueryCommerceBindingEvidenceResponse.parseAsync(data),
|
|
95
100
|
security: [{ scheme: "bearer", type: "http" }],
|
|
96
|
-
url: "/v1/admin/
|
|
101
|
+
url: "/v1/admin/product-evidence/commerce-subscriptions/{wooId}/binding-queries",
|
|
97
102
|
...options,
|
|
103
|
+
headers: {
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
...options.headers,
|
|
106
|
+
},
|
|
98
107
|
});
|
|
99
108
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Read scoped diagnostics and operation history with precise cursor bounds
|
|
111
|
+
*/
|
|
112
|
+
adminQueryTrackerHistoryEvidence(options) {
|
|
113
|
+
return (options.client ?? this.client).post({
|
|
114
|
+
responseTransformer: async (data) => await zAdminQueryTrackerHistoryEvidenceResponse.parseAsync(data),
|
|
103
115
|
security: [{ scheme: "bearer", type: "http" }],
|
|
104
|
-
url: "/v1/admin/
|
|
116
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/history-queries",
|
|
105
117
|
...options,
|
|
118
|
+
headers: {
|
|
119
|
+
"Content-Type": "application/json",
|
|
120
|
+
...options.headers,
|
|
121
|
+
},
|
|
106
122
|
});
|
|
107
123
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Read the exact selected account and subscription relationship snapshot
|
|
126
|
+
*/
|
|
127
|
+
adminQueryTrackerRelationshipEvidence(options) {
|
|
128
|
+
return (options.client ?? this.client).post({
|
|
129
|
+
responseTransformer: async (data) => await zAdminQueryTrackerRelationshipEvidenceResponse.parseAsync(data),
|
|
111
130
|
security: [{ scheme: "bearer", type: "http" }],
|
|
112
|
-
url: "/v1/admin/
|
|
131
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-queries",
|
|
113
132
|
...options,
|
|
133
|
+
headers: {
|
|
134
|
+
"Content-Type": "application/json",
|
|
135
|
+
...options.headers,
|
|
136
|
+
},
|
|
114
137
|
});
|
|
115
138
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
139
|
+
/**
|
|
140
|
+
* Apply one reviewed relationship change with an atomic selected-state guard
|
|
141
|
+
*/
|
|
142
|
+
adminChangeTrackerRelationship(options) {
|
|
143
|
+
return (options.client ?? this.client).post({
|
|
144
|
+
responseTransformer: async (data) => await zAdminChangeTrackerRelationshipResponse.parseAsync(data),
|
|
119
145
|
security: [{ scheme: "bearer", type: "http" }],
|
|
120
|
-
url: "/v1/admin/
|
|
146
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-changes",
|
|
121
147
|
...options,
|
|
122
148
|
headers: {
|
|
123
149
|
"Content-Type": "application/json",
|
|
@@ -125,11 +151,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
125
151
|
},
|
|
126
152
|
});
|
|
127
153
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Verify a submitted relationship change without redispatch
|
|
156
|
+
*/
|
|
157
|
+
adminVerifyTrackerRelationship(options) {
|
|
158
|
+
return (options.client ?? this.client).post({
|
|
159
|
+
responseTransformer: async (data) => await zAdminVerifyTrackerRelationshipResponse.parseAsync(data),
|
|
131
160
|
security: [{ scheme: "bearer", type: "http" }],
|
|
132
|
-
url: "/v1/admin/
|
|
161
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-verification-queries",
|
|
133
162
|
...options,
|
|
134
163
|
headers: {
|
|
135
164
|
"Content-Type": "application/json",
|
|
@@ -137,67 +166,69 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
137
166
|
},
|
|
138
167
|
});
|
|
139
168
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Get the signed-in operator and capabilities
|
|
171
|
+
*/
|
|
172
|
+
adminGetSession(options) {
|
|
173
|
+
return (options?.client ?? this.client).get({
|
|
174
|
+
responseTransformer: async (data) => await zAdminGetSessionResponse.parseAsync(data),
|
|
143
175
|
security: [{ scheme: "bearer", type: "http" }],
|
|
144
|
-
url: "/v1/admin/
|
|
176
|
+
url: "/v1/admin/session",
|
|
145
177
|
...options,
|
|
146
178
|
});
|
|
147
179
|
}
|
|
148
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Inspect a tracker and selected public domains
|
|
182
|
+
*/
|
|
183
|
+
adminGetTracker(options) {
|
|
149
184
|
return (options.client ?? this.client).get({
|
|
150
|
-
responseTransformer: async (data) => await
|
|
151
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
152
|
-
url: "/v1/admin/trackers/{trackerId}/operational-state",
|
|
153
|
-
...options,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
adminGetSession(options) {
|
|
157
|
-
return (options?.client ?? this.client).get({
|
|
158
|
-
responseTransformer: async (data) => await zAdminGetSessionResponse.parseAsync(data),
|
|
185
|
+
responseTransformer: async (data) => await zAdminGetTrackerResponse.parseAsync(data),
|
|
159
186
|
security: [{ scheme: "bearer", type: "http" }],
|
|
160
|
-
url: "/v1/admin/
|
|
187
|
+
url: "/v1/admin/trackers/{trackerId}",
|
|
161
188
|
...options,
|
|
162
189
|
});
|
|
163
190
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Find trackers by an exact identifier
|
|
193
|
+
*/
|
|
194
|
+
adminSearchTrackers(options) {
|
|
195
|
+
return (options.client ?? this.client).get({
|
|
196
|
+
responseTransformer: async (data) => await zAdminSearchTrackersResponse.parseAsync(data),
|
|
167
197
|
security: [{ scheme: "bearer", type: "http" }],
|
|
168
|
-
url: "/v1/admin/
|
|
198
|
+
url: "/v1/admin/trackers",
|
|
169
199
|
...options,
|
|
170
|
-
headers: {
|
|
171
|
-
"Content-Type": "application/json",
|
|
172
|
-
...options.headers,
|
|
173
|
-
},
|
|
174
200
|
});
|
|
175
201
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
202
|
+
/**
|
|
203
|
+
* Inspect a page of stored tracker history
|
|
204
|
+
*/
|
|
205
|
+
adminListTrackerHistory(options) {
|
|
206
|
+
return (options.client ?? this.client).get({
|
|
207
|
+
responseTransformer: async (data) => await zAdminListTrackerHistoryResponse.parseAsync(data),
|
|
179
208
|
security: [{ scheme: "bearer", type: "http" }],
|
|
180
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
209
|
+
url: "/v1/admin/trackers/{trackerId}/history/{collection}",
|
|
181
210
|
...options,
|
|
182
|
-
headers: {
|
|
183
|
-
"Content-Type": "application/json",
|
|
184
|
-
...options.headers,
|
|
185
|
-
},
|
|
186
211
|
});
|
|
187
212
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
213
|
+
/**
|
|
214
|
+
* Inspect selected private operational domains
|
|
215
|
+
*/
|
|
216
|
+
adminGetTrackerOperationalState(options) {
|
|
217
|
+
return (options.client ?? this.client).get({
|
|
218
|
+
responseTransformer: async (data) => await zAdminGetTrackerOperationalStateResponse.parseAsync(data),
|
|
191
219
|
security: [{ scheme: "bearer", type: "http" }],
|
|
192
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
220
|
+
url: "/v1/admin/trackers/{trackerId}/operational-state",
|
|
193
221
|
...options,
|
|
194
222
|
});
|
|
195
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Request a tracker mode change
|
|
226
|
+
*/
|
|
196
227
|
adminRequestTrackerMode(options) {
|
|
197
|
-
return (options.client ?? this.client).
|
|
228
|
+
return (options.client ?? this.client).post({
|
|
198
229
|
responseTransformer: async (data) => await zAdminRequestTrackerModeResponse.parseAsync(data),
|
|
199
230
|
security: [{ scheme: "bearer", type: "http" }],
|
|
200
|
-
url: "/v1/admin/trackers/{trackerId}/mode",
|
|
231
|
+
url: "/v1/admin/trackers/{trackerId}/mode-requests",
|
|
201
232
|
...options,
|
|
202
233
|
headers: {
|
|
203
234
|
"Content-Type": "application/json",
|
|
@@ -205,11 +236,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
205
236
|
},
|
|
206
237
|
});
|
|
207
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* Replace or clear the pending tracker command using its expected value
|
|
241
|
+
*/
|
|
208
242
|
adminRequestTrackerCommand(options) {
|
|
209
243
|
return (options.client ?? this.client).put({
|
|
210
244
|
responseTransformer: async (data) => await zAdminRequestTrackerCommandResponse.parseAsync(data),
|
|
211
245
|
security: [{ scheme: "bearer", type: "http" }],
|
|
212
|
-
url: "/v1/admin/trackers/{trackerId}/command",
|
|
246
|
+
url: "/v1/admin/trackers/{trackerId}/pending-command",
|
|
213
247
|
...options,
|
|
214
248
|
headers: {
|
|
215
249
|
"Content-Type": "application/json",
|
|
@@ -217,6 +251,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
217
251
|
},
|
|
218
252
|
});
|
|
219
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* Update tracker configuration
|
|
256
|
+
*/
|
|
220
257
|
adminUpdateTrackerConfiguration(options) {
|
|
221
258
|
return (options.client ?? this.client).patch({
|
|
222
259
|
responseTransformer: async (data) => await zAdminUpdateTrackerConfigurationResponse.parseAsync(data),
|
|
@@ -229,6 +266,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
229
266
|
},
|
|
230
267
|
});
|
|
231
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Update tracker bike details
|
|
271
|
+
*/
|
|
232
272
|
adminUpdateTrackerBike(options) {
|
|
233
273
|
return (options.client ?? this.client).patch({
|
|
234
274
|
responseTransformer: async (data) => await zAdminUpdateTrackerBikeResponse.parseAsync(data),
|
|
@@ -241,11 +281,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
241
281
|
},
|
|
242
282
|
});
|
|
243
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Request tracker cleanup
|
|
286
|
+
*/
|
|
244
287
|
adminCleanTracker(options) {
|
|
245
288
|
return (options.client ?? this.client).post({
|
|
246
289
|
responseTransformer: async (data) => await zAdminCleanTrackerResponse.parseAsync(data),
|
|
247
290
|
security: [{ scheme: "bearer", type: "http" }],
|
|
248
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
291
|
+
url: "/v1/admin/trackers/{trackerId}/cleanup-requests",
|
|
249
292
|
...options,
|
|
250
293
|
headers: {
|
|
251
294
|
"Content-Type": "application/json",
|
|
@@ -253,6 +296,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
253
296
|
},
|
|
254
297
|
});
|
|
255
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Change tracker denylist status using its expected value
|
|
301
|
+
*/
|
|
256
302
|
adminSetTrackerDenylist(options) {
|
|
257
303
|
return (options.client ?? this.client).put({
|
|
258
304
|
responseTransformer: async (data) => await zAdminSetTrackerDenylistResponse.parseAsync(data),
|
|
@@ -265,11 +311,29 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
265
311
|
},
|
|
266
312
|
});
|
|
267
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Request a notification to tracker members
|
|
316
|
+
*/
|
|
268
317
|
adminNotifyTracker(options) {
|
|
269
318
|
return (options.client ?? this.client).post({
|
|
270
319
|
responseTransformer: async (data) => await zAdminNotifyTrackerResponse.parseAsync(data),
|
|
271
320
|
security: [{ scheme: "bearer", type: "http" }],
|
|
272
|
-
url: "/v1/admin/trackers/{trackerId}/
|
|
321
|
+
url: "/v1/admin/trackers/{trackerId}/notification-requests",
|
|
322
|
+
...options,
|
|
323
|
+
headers: {
|
|
324
|
+
"Content-Type": "application/json",
|
|
325
|
+
...options.headers,
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Add a tracker member
|
|
331
|
+
*/
|
|
332
|
+
adminAddTrackerMember(options) {
|
|
333
|
+
return (options.client ?? this.client).post({
|
|
334
|
+
responseTransformer: async (data) => await zAdminAddTrackerMemberResponse.parseAsync(data),
|
|
335
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
336
|
+
url: "/v1/admin/trackers/{trackerId}/members",
|
|
273
337
|
...options,
|
|
274
338
|
headers: {
|
|
275
339
|
"Content-Type": "application/json",
|
|
@@ -277,6 +341,20 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
277
341
|
},
|
|
278
342
|
});
|
|
279
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Remove a tracker member
|
|
346
|
+
*/
|
|
347
|
+
adminRemoveTrackerMember(options) {
|
|
348
|
+
return (options.client ?? this.client).delete({
|
|
349
|
+
responseTransformer: async (data) => await zAdminRemoveTrackerMemberResponse.parseAsync(data),
|
|
350
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
351
|
+
url: "/v1/admin/trackers/{trackerId}/members/{uid}",
|
|
352
|
+
...options,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Remove the current tracker subscription link
|
|
357
|
+
*/
|
|
280
358
|
adminUnlinkTrackerSubscription(options) {
|
|
281
359
|
return (options.client ?? this.client).delete({
|
|
282
360
|
responseTransformer: async (data) => await zAdminUnlinkTrackerSubscriptionResponse.parseAsync(data),
|
|
@@ -285,6 +363,9 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
285
363
|
...options,
|
|
286
364
|
});
|
|
287
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Link a subscription to a tracker
|
|
368
|
+
*/
|
|
288
369
|
adminLinkTrackerSubscription(options) {
|
|
289
370
|
return (options.client ?? this.client).put({
|
|
290
371
|
responseTransformer: async (data) => await zAdminLinkTrackerSubscriptionResponse.parseAsync(data),
|
|
@@ -297,11 +378,29 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
297
378
|
},
|
|
298
379
|
});
|
|
299
380
|
}
|
|
300
|
-
|
|
381
|
+
/**
|
|
382
|
+
* Request insurance synchronization for a tracker
|
|
383
|
+
*/
|
|
384
|
+
adminRequestTrackerInsurance(options) {
|
|
301
385
|
return (options.client ?? this.client).post({
|
|
302
|
-
responseTransformer: async (data) => await
|
|
386
|
+
responseTransformer: async (data) => await zAdminRequestTrackerInsuranceResponse.parseAsync(data),
|
|
387
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
388
|
+
url: "/v1/admin/trackers/{trackerId}/insurance-requests",
|
|
389
|
+
...options,
|
|
390
|
+
headers: {
|
|
391
|
+
"Content-Type": "application/json",
|
|
392
|
+
...options.headers,
|
|
393
|
+
},
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Request tracker subscription reconciliation
|
|
398
|
+
*/
|
|
399
|
+
adminReconcileTrackerSubscription(options) {
|
|
400
|
+
return (options.client ?? this.client).post({
|
|
401
|
+
responseTransformer: async (data) => await zAdminReconcileTrackerSubscriptionResponse.parseAsync(data),
|
|
303
402
|
security: [{ scheme: "bearer", type: "http" }],
|
|
304
|
-
url: "/v1/admin/
|
|
403
|
+
url: "/v1/admin/trackers/{trackerId}/subscription/reconciliation-requests",
|
|
305
404
|
...options,
|
|
306
405
|
headers: {
|
|
307
406
|
"Content-Type": "application/json",
|
|
@@ -309,11 +408,67 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
309
408
|
},
|
|
310
409
|
});
|
|
311
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* Upload a tracker photo
|
|
413
|
+
*/
|
|
414
|
+
adminUploadTrackerPhoto(options) {
|
|
415
|
+
return (options.client ?? this.client).post({
|
|
416
|
+
...formDataBodySerializer,
|
|
417
|
+
responseTransformer: async (data) => await zAdminUploadTrackerPhotoResponse.parseAsync(data),
|
|
418
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
419
|
+
url: "/v1/admin/trackers/{trackerId}/photos",
|
|
420
|
+
...options,
|
|
421
|
+
headers: {
|
|
422
|
+
"Content-Type": null,
|
|
423
|
+
...options.headers,
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Subscribe to a live tracker inspection
|
|
429
|
+
*/
|
|
430
|
+
adminSubscribeTracker(options) {
|
|
431
|
+
return (options.client ?? this.client).sse.get({
|
|
432
|
+
responseTransformer: async (data) => await zAdminSubscribeTrackerResponse.parseAsync(data),
|
|
433
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
434
|
+
url: "/v1/admin/trackers/{trackerId}/stream",
|
|
435
|
+
...options,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Inspect a user account
|
|
440
|
+
*/
|
|
441
|
+
adminGetUser(options) {
|
|
442
|
+
return (options.client ?? this.client).get({
|
|
443
|
+
responseTransformer: async (data) => await zAdminGetUserResponse.parseAsync(data),
|
|
444
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
445
|
+
url: "/v1/admin/users/{uid}",
|
|
446
|
+
...options,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Find user accounts by email or identifiers
|
|
451
|
+
*/
|
|
452
|
+
adminLookupUsers(options) {
|
|
453
|
+
return (options.client ?? this.client).post({
|
|
454
|
+
responseTransformer: async (data) => await zAdminLookupUsersResponse.parseAsync(data),
|
|
455
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
456
|
+
url: "/v1/admin/users/lookup",
|
|
457
|
+
...options,
|
|
458
|
+
headers: {
|
|
459
|
+
"Content-Type": "application/json",
|
|
460
|
+
...options.headers,
|
|
461
|
+
},
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Request insurance synchronization for a user
|
|
466
|
+
*/
|
|
312
467
|
adminRequestUserInsurance(options) {
|
|
313
468
|
return (options.client ?? this.client).post({
|
|
314
469
|
responseTransformer: async (data) => await zAdminRequestUserInsuranceResponse.parseAsync(data),
|
|
315
470
|
security: [{ scheme: "bearer", type: "http" }],
|
|
316
|
-
url: "/v1/admin/users/{uid}/insurance",
|
|
471
|
+
url: "/v1/admin/users/{uid}/insurance-requests",
|
|
317
472
|
...options,
|
|
318
473
|
headers: {
|
|
319
474
|
"Content-Type": "application/json",
|
|
@@ -321,11 +476,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
321
476
|
},
|
|
322
477
|
});
|
|
323
478
|
}
|
|
324
|
-
|
|
479
|
+
/**
|
|
480
|
+
* Link a user's sole available subscription and inactive tracker
|
|
481
|
+
*/
|
|
482
|
+
adminLinkSingleSubscription(options) {
|
|
325
483
|
return (options.client ?? this.client).post({
|
|
326
|
-
responseTransformer: async (data) => await
|
|
484
|
+
responseTransformer: async (data) => await zAdminLinkSingleSubscriptionResponse.parseAsync(data),
|
|
327
485
|
security: [{ scheme: "bearer", type: "http" }],
|
|
328
|
-
url: "/v1/admin/
|
|
486
|
+
url: "/v1/admin/users/{uid}/subscription-link-requests",
|
|
329
487
|
...options,
|
|
330
488
|
headers: {
|
|
331
489
|
"Content-Type": "application/json",
|
|
@@ -333,11 +491,47 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
333
491
|
},
|
|
334
492
|
});
|
|
335
493
|
}
|
|
336
|
-
|
|
494
|
+
/**
|
|
495
|
+
* Inspect a subscription
|
|
496
|
+
*/
|
|
497
|
+
adminGetSubscription(options) {
|
|
498
|
+
return (options.client ?? this.client).get({
|
|
499
|
+
responseTransformer: async (data) => await zAdminGetSubscriptionResponse.parseAsync(data),
|
|
500
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
501
|
+
url: "/v1/admin/subscriptions/{subscriptionId}",
|
|
502
|
+
...options,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Find subscriptions by an exact identifier
|
|
507
|
+
*/
|
|
508
|
+
adminSearchSubscriptions(options) {
|
|
509
|
+
return (options.client ?? this.client).get({
|
|
510
|
+
responseTransformer: async (data) => await zAdminSearchSubscriptionsResponse.parseAsync(data),
|
|
511
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
512
|
+
url: "/v1/admin/subscriptions",
|
|
513
|
+
...options,
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Inspect insurance records for a subscription
|
|
518
|
+
*/
|
|
519
|
+
adminListInsurance(options) {
|
|
520
|
+
return (options.client ?? this.client).get({
|
|
521
|
+
responseTransformer: async (data) => await zAdminListInsuranceResponse.parseAsync(data),
|
|
522
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
523
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance/{provider}",
|
|
524
|
+
...options,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Request insurance synchronization for a subscription
|
|
529
|
+
*/
|
|
530
|
+
adminRequestSubscriptionInsurance(options) {
|
|
337
531
|
return (options.client ?? this.client).post({
|
|
338
|
-
responseTransformer: async (data) => await
|
|
532
|
+
responseTransformer: async (data) => await zAdminRequestSubscriptionInsuranceResponse.parseAsync(data),
|
|
339
533
|
security: [{ scheme: "bearer", type: "http" }],
|
|
340
|
-
url: "/v1/admin/
|
|
534
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/insurance-requests",
|
|
341
535
|
...options,
|
|
342
536
|
headers: {
|
|
343
537
|
"Content-Type": "application/json",
|
|
@@ -345,11 +539,14 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
345
539
|
},
|
|
346
540
|
});
|
|
347
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* Request a refresh from the billing provider
|
|
544
|
+
*/
|
|
348
545
|
adminRefreshSubscription(options) {
|
|
349
546
|
return (options.client ?? this.client).post({
|
|
350
547
|
responseTransformer: async (data) => await zAdminRefreshSubscriptionResponse.parseAsync(data),
|
|
351
548
|
security: [{ scheme: "bearer", type: "http" }],
|
|
352
|
-
url: "/v1/admin/subscriptions/{subscriptionId}/refresh",
|
|
549
|
+
url: "/v1/admin/subscriptions/{subscriptionId}/refresh-requests",
|
|
353
550
|
...options,
|
|
354
551
|
headers: {
|
|
355
552
|
"Content-Type": "application/json",
|
|
@@ -357,11 +554,47 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
357
554
|
},
|
|
358
555
|
});
|
|
359
556
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
557
|
+
/**
|
|
558
|
+
* List the operator's favorite trackers
|
|
559
|
+
*/
|
|
560
|
+
adminListFavorites(options) {
|
|
561
|
+
return (options?.client ?? this.client).get({
|
|
562
|
+
responseTransformer: async (data) => await zAdminListFavoritesResponse.parseAsync(data),
|
|
363
563
|
security: [{ scheme: "bearer", type: "http" }],
|
|
364
|
-
url: "/v1/admin/
|
|
564
|
+
url: "/v1/admin/favorites",
|
|
565
|
+
...options,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Remove a favorite tracker
|
|
570
|
+
*/
|
|
571
|
+
adminDeleteFavorite(options) {
|
|
572
|
+
return (options.client ?? this.client).delete({
|
|
573
|
+
responseTransformer: async (data) => await zAdminDeleteFavoriteResponse.parseAsync(data),
|
|
574
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
575
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
576
|
+
...options,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Get a favorite tracker
|
|
581
|
+
*/
|
|
582
|
+
adminGetFavorite(options) {
|
|
583
|
+
return (options.client ?? this.client).get({
|
|
584
|
+
responseTransformer: async (data) => await zAdminGetFavoriteResponse.parseAsync(data),
|
|
585
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
586
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
587
|
+
...options,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Update a favorite tracker comment
|
|
592
|
+
*/
|
|
593
|
+
adminUpdateFavoriteComment(options) {
|
|
594
|
+
return (options.client ?? this.client).patch({
|
|
595
|
+
responseTransformer: async (data) => await zAdminUpdateFavoriteCommentResponse.parseAsync(data),
|
|
596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
597
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
365
598
|
...options,
|
|
366
599
|
headers: {
|
|
367
600
|
"Content-Type": "application/json",
|
|
@@ -369,6 +602,24 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
369
602
|
},
|
|
370
603
|
});
|
|
371
604
|
}
|
|
605
|
+
/**
|
|
606
|
+
* Save a favorite tracker
|
|
607
|
+
*/
|
|
608
|
+
adminPutFavorite(options) {
|
|
609
|
+
return (options.client ?? this.client).put({
|
|
610
|
+
responseTransformer: async (data) => await zAdminPutFavoriteResponse.parseAsync(data),
|
|
611
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
612
|
+
url: "/v1/admin/favorites/{trackerId}",
|
|
613
|
+
...options,
|
|
614
|
+
headers: {
|
|
615
|
+
"Content-Type": "application/json",
|
|
616
|
+
...options.headers,
|
|
617
|
+
},
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Create a business subscription
|
|
622
|
+
*/
|
|
372
623
|
adminCreateB2bSubscription(options) {
|
|
373
624
|
return (options.client ?? this.client).post({
|
|
374
625
|
responseTransformer: async (data) => await zAdminCreateB2bSubscriptionResponse.parseAsync(data),
|
|
@@ -381,35 +632,36 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
381
632
|
},
|
|
382
633
|
});
|
|
383
634
|
}
|
|
635
|
+
/**
|
|
636
|
+
* Request cancellation of a business subscription
|
|
637
|
+
*/
|
|
384
638
|
adminCancelB2bSubscription(options) {
|
|
385
639
|
return (options.client ?? this.client).post({
|
|
386
640
|
responseTransformer: async (data) => await zAdminCancelB2bSubscriptionResponse.parseAsync(data),
|
|
387
641
|
security: [{ scheme: "bearer", type: "http" }],
|
|
388
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/
|
|
642
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/cancellation-requests",
|
|
389
643
|
...options,
|
|
390
644
|
});
|
|
391
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* Request insurance synchronization for a business subscription
|
|
648
|
+
*/
|
|
392
649
|
adminSyncB2bInsurance(options) {
|
|
393
650
|
return (options.client ?? this.client).post({
|
|
394
651
|
responseTransformer: async (data) => await zAdminSyncB2bInsuranceResponse.parseAsync(data),
|
|
395
652
|
security: [{ scheme: "bearer", type: "http" }],
|
|
396
|
-
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance
|
|
653
|
+
url: "/v1/admin/b2b/subscriptions/{subscriptionId}/insurance-sync-requests",
|
|
397
654
|
...options,
|
|
398
655
|
});
|
|
399
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Request insurance synchronization for business subscriptions
|
|
659
|
+
*/
|
|
400
660
|
adminSyncAllB2bInsurance(options) {
|
|
401
661
|
return (options?.client ?? this.client).post({
|
|
402
662
|
responseTransformer: async (data) => await zAdminSyncAllB2bInsuranceResponse.parseAsync(data),
|
|
403
663
|
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",
|
|
664
|
+
url: "/v1/admin/b2b/subscriptions/insurance-sync-requests",
|
|
413
665
|
...options,
|
|
414
666
|
});
|
|
415
667
|
}
|