@bikefinder/api-client 0.4.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/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 +41 -1
- package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
- package/dist/admin/generated/sdk.gen.js +139 -1
- package/dist/admin/generated/sdk.gen.js.map +1 -1
- package/dist/admin/generated/types.gen.d.ts +631 -0
- package/dist/admin/generated/types.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.d.ts +1152 -33
- package/dist/admin/generated/zod.gen.d.ts.map +1 -1
- package/dist/admin/generated/zod.gen.js +193 -0
- package/dist/admin/generated/zod.gen.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/generated/index.ts +64 -0
- package/src/admin/generated/sdk.gen.ts +306 -0
- package/src/admin/generated/types.gen.ts +737 -0
- package/src/admin/generated/zod.gen.ts +247 -0
|
@@ -17,6 +17,9 @@ import type {
|
|
|
17
17
|
AdminCancelB2bSubscriptionData,
|
|
18
18
|
AdminCancelB2bSubscriptionErrors,
|
|
19
19
|
AdminCancelB2bSubscriptionResponses,
|
|
20
|
+
AdminChangeTrackerRelationshipData,
|
|
21
|
+
AdminChangeTrackerRelationshipErrors,
|
|
22
|
+
AdminChangeTrackerRelationshipResponses,
|
|
20
23
|
AdminCleanTrackerData,
|
|
21
24
|
AdminCleanTrackerErrors,
|
|
22
25
|
AdminCleanTrackerResponses,
|
|
@@ -34,6 +37,9 @@ import type {
|
|
|
34
37
|
AdminGetSessionResponses,
|
|
35
38
|
AdminGetSubscriptionData,
|
|
36
39
|
AdminGetSubscriptionErrors,
|
|
40
|
+
AdminGetSubscriptionFactEvidenceData,
|
|
41
|
+
AdminGetSubscriptionFactEvidenceErrors,
|
|
42
|
+
AdminGetSubscriptionFactEvidenceResponses,
|
|
37
43
|
AdminGetSubscriptionResponses,
|
|
38
44
|
AdminGetTrackerData,
|
|
39
45
|
AdminGetTrackerErrors,
|
|
@@ -50,6 +56,12 @@ import type {
|
|
|
50
56
|
AdminLinkTrackerSubscriptionData,
|
|
51
57
|
AdminLinkTrackerSubscriptionErrors,
|
|
52
58
|
AdminLinkTrackerSubscriptionResponses,
|
|
59
|
+
AdminListAccountSubscriptionEvidenceData,
|
|
60
|
+
AdminListAccountSubscriptionEvidenceErrors,
|
|
61
|
+
AdminListAccountSubscriptionEvidenceResponses,
|
|
62
|
+
AdminListAccountTrackerEvidenceData,
|
|
63
|
+
AdminListAccountTrackerEvidenceErrors,
|
|
64
|
+
AdminListAccountTrackerEvidenceResponses,
|
|
53
65
|
AdminListFavoritesData,
|
|
54
66
|
AdminListFavoritesErrors,
|
|
55
67
|
AdminListFavoritesResponses,
|
|
@@ -68,6 +80,21 @@ import type {
|
|
|
68
80
|
AdminPutFavoriteData,
|
|
69
81
|
AdminPutFavoriteErrors,
|
|
70
82
|
AdminPutFavoriteResponses,
|
|
83
|
+
AdminQueryCommerceBindingEvidenceData,
|
|
84
|
+
AdminQueryCommerceBindingEvidenceErrors,
|
|
85
|
+
AdminQueryCommerceBindingEvidenceResponses,
|
|
86
|
+
AdminQueryTrackerFactEvidenceData,
|
|
87
|
+
AdminQueryTrackerFactEvidenceErrors,
|
|
88
|
+
AdminQueryTrackerFactEvidenceResponses,
|
|
89
|
+
AdminQueryTrackerHistoryEvidenceData,
|
|
90
|
+
AdminQueryTrackerHistoryEvidenceErrors,
|
|
91
|
+
AdminQueryTrackerHistoryEvidenceResponses,
|
|
92
|
+
AdminQueryTrackerRelationshipEvidenceData,
|
|
93
|
+
AdminQueryTrackerRelationshipEvidenceErrors,
|
|
94
|
+
AdminQueryTrackerRelationshipEvidenceResponses,
|
|
95
|
+
AdminQueryTrackerSubscriptionEvidenceData,
|
|
96
|
+
AdminQueryTrackerSubscriptionEvidenceErrors,
|
|
97
|
+
AdminQueryTrackerSubscriptionEvidenceResponses,
|
|
71
98
|
AdminReconcileTrackerSubscriptionData,
|
|
72
99
|
AdminReconcileTrackerSubscriptionErrors,
|
|
73
100
|
AdminReconcileTrackerSubscriptionResponses,
|
|
@@ -126,27 +153,39 @@ import type {
|
|
|
126
153
|
AdminUploadTrackerPhotoData,
|
|
127
154
|
AdminUploadTrackerPhotoErrors,
|
|
128
155
|
AdminUploadTrackerPhotoResponses,
|
|
156
|
+
AdminVerifyTrackerRelationshipData,
|
|
157
|
+
AdminVerifyTrackerRelationshipErrors,
|
|
158
|
+
AdminVerifyTrackerRelationshipResponses,
|
|
129
159
|
} from "./types.gen.js";
|
|
130
160
|
import {
|
|
131
161
|
zAdminAddTrackerMemberResponse,
|
|
132
162
|
zAdminCancelB2bSubscriptionResponse,
|
|
163
|
+
zAdminChangeTrackerRelationshipResponse,
|
|
133
164
|
zAdminCleanTrackerResponse,
|
|
134
165
|
zAdminCreateB2bSubscriptionResponse,
|
|
135
166
|
zAdminDeleteFavoriteResponse,
|
|
136
167
|
zAdminGetFavoriteResponse,
|
|
137
168
|
zAdminGetSessionResponse,
|
|
169
|
+
zAdminGetSubscriptionFactEvidenceResponse,
|
|
138
170
|
zAdminGetSubscriptionResponse,
|
|
139
171
|
zAdminGetTrackerOperationalStateResponse,
|
|
140
172
|
zAdminGetTrackerResponse,
|
|
141
173
|
zAdminGetUserResponse,
|
|
142
174
|
zAdminLinkSingleSubscriptionResponse,
|
|
143
175
|
zAdminLinkTrackerSubscriptionResponse,
|
|
176
|
+
zAdminListAccountSubscriptionEvidenceResponse,
|
|
177
|
+
zAdminListAccountTrackerEvidenceResponse,
|
|
144
178
|
zAdminListFavoritesResponse,
|
|
145
179
|
zAdminListInsuranceResponse,
|
|
146
180
|
zAdminListTrackerHistoryResponse,
|
|
147
181
|
zAdminLookupUsersResponse,
|
|
148
182
|
zAdminNotifyTrackerResponse,
|
|
149
183
|
zAdminPutFavoriteResponse,
|
|
184
|
+
zAdminQueryCommerceBindingEvidenceResponse,
|
|
185
|
+
zAdminQueryTrackerFactEvidenceResponse,
|
|
186
|
+
zAdminQueryTrackerHistoryEvidenceResponse,
|
|
187
|
+
zAdminQueryTrackerRelationshipEvidenceResponse,
|
|
188
|
+
zAdminQueryTrackerSubscriptionEvidenceResponse,
|
|
150
189
|
zAdminReconcileTrackerSubscriptionResponse,
|
|
151
190
|
zAdminRefreshSubscriptionResponse,
|
|
152
191
|
zAdminRemoveTrackerMemberResponse,
|
|
@@ -166,6 +205,7 @@ import {
|
|
|
166
205
|
zAdminUpdateTrackerBikeResponse,
|
|
167
206
|
zAdminUpdateTrackerConfigurationResponse,
|
|
168
207
|
zAdminUploadTrackerPhotoResponse,
|
|
208
|
+
zAdminVerifyTrackerRelationshipResponse,
|
|
169
209
|
} from "./zod.gen.js";
|
|
170
210
|
|
|
171
211
|
export type Options<
|
|
@@ -223,6 +263,272 @@ export class BikeFinderAdminSdk extends HeyApiClient {
|
|
|
223
263
|
BikeFinderAdminSdk.__registry.set(this, args?.key);
|
|
224
264
|
}
|
|
225
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Read a bounded tracker identifier page for one account
|
|
268
|
+
*/
|
|
269
|
+
public adminListAccountTrackerEvidence<ThrowOnError extends boolean = false>(
|
|
270
|
+
options: Options<AdminListAccountTrackerEvidenceData, ThrowOnError>,
|
|
271
|
+
): RequestResult<
|
|
272
|
+
AdminListAccountTrackerEvidenceResponses,
|
|
273
|
+
AdminListAccountTrackerEvidenceErrors,
|
|
274
|
+
ThrowOnError
|
|
275
|
+
> {
|
|
276
|
+
return (options.client ?? this.client).get<
|
|
277
|
+
AdminListAccountTrackerEvidenceResponses,
|
|
278
|
+
AdminListAccountTrackerEvidenceErrors,
|
|
279
|
+
ThrowOnError
|
|
280
|
+
>({
|
|
281
|
+
responseTransformer: async (data) =>
|
|
282
|
+
await zAdminListAccountTrackerEvidenceResponse.parseAsync(data),
|
|
283
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
284
|
+
url: "/v1/admin/product-evidence/accounts/{accountId}/trackers",
|
|
285
|
+
...options,
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Read a bounded subscription identifier page for one account
|
|
291
|
+
*/
|
|
292
|
+
public adminListAccountSubscriptionEvidence<
|
|
293
|
+
ThrowOnError extends boolean = false,
|
|
294
|
+
>(
|
|
295
|
+
options: Options<AdminListAccountSubscriptionEvidenceData, ThrowOnError>,
|
|
296
|
+
): RequestResult<
|
|
297
|
+
AdminListAccountSubscriptionEvidenceResponses,
|
|
298
|
+
AdminListAccountSubscriptionEvidenceErrors,
|
|
299
|
+
ThrowOnError
|
|
300
|
+
> {
|
|
301
|
+
return (options.client ?? this.client).get<
|
|
302
|
+
AdminListAccountSubscriptionEvidenceResponses,
|
|
303
|
+
AdminListAccountSubscriptionEvidenceErrors,
|
|
304
|
+
ThrowOnError
|
|
305
|
+
>({
|
|
306
|
+
responseTransformer: async (data) =>
|
|
307
|
+
await zAdminListAccountSubscriptionEvidenceResponse.parseAsync(data),
|
|
308
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
309
|
+
url: "/v1/admin/product-evidence/accounts/{accountId}/subscriptions",
|
|
310
|
+
...options,
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Read selected tracker facts within an explicit account scope
|
|
316
|
+
*/
|
|
317
|
+
public adminQueryTrackerFactEvidence<ThrowOnError extends boolean = false>(
|
|
318
|
+
options: Options<AdminQueryTrackerFactEvidenceData, ThrowOnError>,
|
|
319
|
+
): RequestResult<
|
|
320
|
+
AdminQueryTrackerFactEvidenceResponses,
|
|
321
|
+
AdminQueryTrackerFactEvidenceErrors,
|
|
322
|
+
ThrowOnError
|
|
323
|
+
> {
|
|
324
|
+
return (options.client ?? this.client).post<
|
|
325
|
+
AdminQueryTrackerFactEvidenceResponses,
|
|
326
|
+
AdminQueryTrackerFactEvidenceErrors,
|
|
327
|
+
ThrowOnError
|
|
328
|
+
>({
|
|
329
|
+
responseTransformer: async (data) =>
|
|
330
|
+
await zAdminQueryTrackerFactEvidenceResponse.parseAsync(data),
|
|
331
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
332
|
+
url: "/v1/admin/product-evidence/tracker-fact-queries",
|
|
333
|
+
...options,
|
|
334
|
+
headers: {
|
|
335
|
+
"Content-Type": "application/json",
|
|
336
|
+
...options.headers,
|
|
337
|
+
},
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Read one selected subscription fact domain
|
|
343
|
+
*/
|
|
344
|
+
public adminGetSubscriptionFactEvidence<ThrowOnError extends boolean = false>(
|
|
345
|
+
options: Options<AdminGetSubscriptionFactEvidenceData, ThrowOnError>,
|
|
346
|
+
): RequestResult<
|
|
347
|
+
AdminGetSubscriptionFactEvidenceResponses,
|
|
348
|
+
AdminGetSubscriptionFactEvidenceErrors,
|
|
349
|
+
ThrowOnError
|
|
350
|
+
> {
|
|
351
|
+
return (options.client ?? this.client).get<
|
|
352
|
+
AdminGetSubscriptionFactEvidenceResponses,
|
|
353
|
+
AdminGetSubscriptionFactEvidenceErrors,
|
|
354
|
+
ThrowOnError
|
|
355
|
+
>({
|
|
356
|
+
responseTransformer: async (data) =>
|
|
357
|
+
await zAdminGetSubscriptionFactEvidenceResponse.parseAsync(data),
|
|
358
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
359
|
+
url: "/v1/admin/product-evidence/subscriptions/{subscriptionId}",
|
|
360
|
+
...options,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Read tracker and reverse subscription references in one transaction
|
|
366
|
+
*/
|
|
367
|
+
public adminQueryTrackerSubscriptionEvidence<
|
|
368
|
+
ThrowOnError extends boolean = false,
|
|
369
|
+
>(
|
|
370
|
+
options: Options<AdminQueryTrackerSubscriptionEvidenceData, ThrowOnError>,
|
|
371
|
+
): RequestResult<
|
|
372
|
+
AdminQueryTrackerSubscriptionEvidenceResponses,
|
|
373
|
+
AdminQueryTrackerSubscriptionEvidenceErrors,
|
|
374
|
+
ThrowOnError
|
|
375
|
+
> {
|
|
376
|
+
return (options.client ?? this.client).post<
|
|
377
|
+
AdminQueryTrackerSubscriptionEvidenceResponses,
|
|
378
|
+
AdminQueryTrackerSubscriptionEvidenceErrors,
|
|
379
|
+
ThrowOnError
|
|
380
|
+
>({
|
|
381
|
+
responseTransformer: async (data) =>
|
|
382
|
+
await zAdminQueryTrackerSubscriptionEvidenceResponse.parseAsync(data),
|
|
383
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
384
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/subscription-queries",
|
|
385
|
+
...options,
|
|
386
|
+
headers: {
|
|
387
|
+
"Content-Type": "application/json",
|
|
388
|
+
...options.headers,
|
|
389
|
+
},
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Read bounded product bindings for an explicit commerce subscription
|
|
395
|
+
*/
|
|
396
|
+
public adminQueryCommerceBindingEvidence<
|
|
397
|
+
ThrowOnError extends boolean = false,
|
|
398
|
+
>(
|
|
399
|
+
options: Options<AdminQueryCommerceBindingEvidenceData, ThrowOnError>,
|
|
400
|
+
): RequestResult<
|
|
401
|
+
AdminQueryCommerceBindingEvidenceResponses,
|
|
402
|
+
AdminQueryCommerceBindingEvidenceErrors,
|
|
403
|
+
ThrowOnError
|
|
404
|
+
> {
|
|
405
|
+
return (options.client ?? this.client).post<
|
|
406
|
+
AdminQueryCommerceBindingEvidenceResponses,
|
|
407
|
+
AdminQueryCommerceBindingEvidenceErrors,
|
|
408
|
+
ThrowOnError
|
|
409
|
+
>({
|
|
410
|
+
responseTransformer: async (data) =>
|
|
411
|
+
await zAdminQueryCommerceBindingEvidenceResponse.parseAsync(data),
|
|
412
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
413
|
+
url: "/v1/admin/product-evidence/commerce-subscriptions/{wooId}/binding-queries",
|
|
414
|
+
...options,
|
|
415
|
+
headers: {
|
|
416
|
+
"Content-Type": "application/json",
|
|
417
|
+
...options.headers,
|
|
418
|
+
},
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Read scoped diagnostics and operation history with precise cursor bounds
|
|
424
|
+
*/
|
|
425
|
+
public adminQueryTrackerHistoryEvidence<ThrowOnError extends boolean = false>(
|
|
426
|
+
options: Options<AdminQueryTrackerHistoryEvidenceData, ThrowOnError>,
|
|
427
|
+
): RequestResult<
|
|
428
|
+
AdminQueryTrackerHistoryEvidenceResponses,
|
|
429
|
+
AdminQueryTrackerHistoryEvidenceErrors,
|
|
430
|
+
ThrowOnError
|
|
431
|
+
> {
|
|
432
|
+
return (options.client ?? this.client).post<
|
|
433
|
+
AdminQueryTrackerHistoryEvidenceResponses,
|
|
434
|
+
AdminQueryTrackerHistoryEvidenceErrors,
|
|
435
|
+
ThrowOnError
|
|
436
|
+
>({
|
|
437
|
+
responseTransformer: async (data) =>
|
|
438
|
+
await zAdminQueryTrackerHistoryEvidenceResponse.parseAsync(data),
|
|
439
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
440
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/history-queries",
|
|
441
|
+
...options,
|
|
442
|
+
headers: {
|
|
443
|
+
"Content-Type": "application/json",
|
|
444
|
+
...options.headers,
|
|
445
|
+
},
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Read the exact selected account and subscription relationship snapshot
|
|
451
|
+
*/
|
|
452
|
+
public adminQueryTrackerRelationshipEvidence<
|
|
453
|
+
ThrowOnError extends boolean = false,
|
|
454
|
+
>(
|
|
455
|
+
options: Options<AdminQueryTrackerRelationshipEvidenceData, ThrowOnError>,
|
|
456
|
+
): RequestResult<
|
|
457
|
+
AdminQueryTrackerRelationshipEvidenceResponses,
|
|
458
|
+
AdminQueryTrackerRelationshipEvidenceErrors,
|
|
459
|
+
ThrowOnError
|
|
460
|
+
> {
|
|
461
|
+
return (options.client ?? this.client).post<
|
|
462
|
+
AdminQueryTrackerRelationshipEvidenceResponses,
|
|
463
|
+
AdminQueryTrackerRelationshipEvidenceErrors,
|
|
464
|
+
ThrowOnError
|
|
465
|
+
>({
|
|
466
|
+
responseTransformer: async (data) =>
|
|
467
|
+
await zAdminQueryTrackerRelationshipEvidenceResponse.parseAsync(data),
|
|
468
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
469
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-queries",
|
|
470
|
+
...options,
|
|
471
|
+
headers: {
|
|
472
|
+
"Content-Type": "application/json",
|
|
473
|
+
...options.headers,
|
|
474
|
+
},
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Apply one reviewed relationship change with an atomic selected-state guard
|
|
480
|
+
*/
|
|
481
|
+
public adminChangeTrackerRelationship<ThrowOnError extends boolean = false>(
|
|
482
|
+
options: Options<AdminChangeTrackerRelationshipData, ThrowOnError>,
|
|
483
|
+
): RequestResult<
|
|
484
|
+
AdminChangeTrackerRelationshipResponses,
|
|
485
|
+
AdminChangeTrackerRelationshipErrors,
|
|
486
|
+
ThrowOnError
|
|
487
|
+
> {
|
|
488
|
+
return (options.client ?? this.client).post<
|
|
489
|
+
AdminChangeTrackerRelationshipResponses,
|
|
490
|
+
AdminChangeTrackerRelationshipErrors,
|
|
491
|
+
ThrowOnError
|
|
492
|
+
>({
|
|
493
|
+
responseTransformer: async (data) =>
|
|
494
|
+
await zAdminChangeTrackerRelationshipResponse.parseAsync(data),
|
|
495
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
496
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-changes",
|
|
497
|
+
...options,
|
|
498
|
+
headers: {
|
|
499
|
+
"Content-Type": "application/json",
|
|
500
|
+
...options.headers,
|
|
501
|
+
},
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Verify a submitted relationship change without redispatch
|
|
507
|
+
*/
|
|
508
|
+
public adminVerifyTrackerRelationship<ThrowOnError extends boolean = false>(
|
|
509
|
+
options: Options<AdminVerifyTrackerRelationshipData, ThrowOnError>,
|
|
510
|
+
): RequestResult<
|
|
511
|
+
AdminVerifyTrackerRelationshipResponses,
|
|
512
|
+
AdminVerifyTrackerRelationshipErrors,
|
|
513
|
+
ThrowOnError
|
|
514
|
+
> {
|
|
515
|
+
return (options.client ?? this.client).post<
|
|
516
|
+
AdminVerifyTrackerRelationshipResponses,
|
|
517
|
+
AdminVerifyTrackerRelationshipErrors,
|
|
518
|
+
ThrowOnError
|
|
519
|
+
>({
|
|
520
|
+
responseTransformer: async (data) =>
|
|
521
|
+
await zAdminVerifyTrackerRelationshipResponse.parseAsync(data),
|
|
522
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
523
|
+
url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-verification-queries",
|
|
524
|
+
...options,
|
|
525
|
+
headers: {
|
|
526
|
+
"Content-Type": "application/json",
|
|
527
|
+
...options.headers,
|
|
528
|
+
},
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
|
|
226
532
|
/**
|
|
227
533
|
* Get the signed-in operator and capabilities
|
|
228
534
|
*/
|