@wakata-dev/api-client 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -27
- package/dist/index.d.ts +39 -27
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -289,7 +289,7 @@ type ApiErrorBody = {
|
|
|
289
289
|
/**
|
|
290
290
|
* Stable, machine-readable code identifying the failure class. Integrators should switch on this rather than parsing the message. Codes are append-only — they are never removed or renamed.
|
|
291
291
|
*/
|
|
292
|
-
code: 'validation_error' | 'bad_request' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
|
|
292
|
+
code: 'validation_error' | 'bad_request' | 'invalid_filter_value' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
|
|
293
293
|
/**
|
|
294
294
|
* Human-readable description of the failure. Subject to wording tweaks — do not parse.
|
|
295
295
|
*/
|
|
@@ -2159,7 +2159,7 @@ type AssetControllerCreateAssetPublicData = {
|
|
|
2159
2159
|
};
|
|
2160
2160
|
path?: never;
|
|
2161
2161
|
query?: never;
|
|
2162
|
-
url: '/
|
|
2162
|
+
url: '/public/asset';
|
|
2163
2163
|
};
|
|
2164
2164
|
type AssetControllerCreateAssetPublicErrors = {
|
|
2165
2165
|
/**
|
|
@@ -2265,7 +2265,7 @@ type AssetControllerListAssetsData = {
|
|
|
2265
2265
|
*/
|
|
2266
2266
|
site_name?: string;
|
|
2267
2267
|
};
|
|
2268
|
-
url: '/
|
|
2268
|
+
url: '/asset/list';
|
|
2269
2269
|
};
|
|
2270
2270
|
type AssetControllerListAssetsErrors = {
|
|
2271
2271
|
/**
|
|
@@ -2336,7 +2336,7 @@ type AssetControllerGetAssetData = {
|
|
|
2336
2336
|
id: string;
|
|
2337
2337
|
};
|
|
2338
2338
|
query?: never;
|
|
2339
|
-
url: '/
|
|
2339
|
+
url: '/asset/{id}';
|
|
2340
2340
|
};
|
|
2341
2341
|
type AssetControllerGetAssetErrors = {
|
|
2342
2342
|
/**
|
|
@@ -2408,7 +2408,7 @@ type AssetControllerUpdateAssetData = {
|
|
|
2408
2408
|
id: string;
|
|
2409
2409
|
};
|
|
2410
2410
|
query?: never;
|
|
2411
|
-
url: '/
|
|
2411
|
+
url: '/asset/{id}';
|
|
2412
2412
|
};
|
|
2413
2413
|
type AssetControllerUpdateAssetErrors = {
|
|
2414
2414
|
/**
|
|
@@ -2534,7 +2534,7 @@ type UserControllerListUsersData = {
|
|
|
2534
2534
|
*/
|
|
2535
2535
|
created_by?: string;
|
|
2536
2536
|
};
|
|
2537
|
-
url: '/
|
|
2537
|
+
url: '/user/list';
|
|
2538
2538
|
};
|
|
2539
2539
|
type UserControllerListUsersErrors = {
|
|
2540
2540
|
/**
|
|
@@ -2581,7 +2581,7 @@ type UserControllerGetUserData = {
|
|
|
2581
2581
|
id: string;
|
|
2582
2582
|
};
|
|
2583
2583
|
query?: never;
|
|
2584
|
-
url: '/
|
|
2584
|
+
url: '/user/{id}';
|
|
2585
2585
|
};
|
|
2586
2586
|
type UserControllerGetUserErrors = {
|
|
2587
2587
|
/**
|
|
@@ -2657,7 +2657,7 @@ type UserControllerUpdateUserData = {
|
|
|
2657
2657
|
id: string;
|
|
2658
2658
|
};
|
|
2659
2659
|
query?: never;
|
|
2660
|
-
url: '/
|
|
2660
|
+
url: '/user/{id}';
|
|
2661
2661
|
};
|
|
2662
2662
|
type UserControllerUpdateUserErrors = {
|
|
2663
2663
|
/**
|
|
@@ -2758,7 +2758,7 @@ type UserControllerCreateUserData = {
|
|
|
2758
2758
|
};
|
|
2759
2759
|
path?: never;
|
|
2760
2760
|
query?: never;
|
|
2761
|
-
url: '/
|
|
2761
|
+
url: '/user';
|
|
2762
2762
|
};
|
|
2763
2763
|
type UserControllerCreateUserErrors = {
|
|
2764
2764
|
/**
|
|
@@ -2950,8 +2950,20 @@ type InspectionControllerListInspectionsData = {
|
|
|
2950
2950
|
* Filter by date received to (inclusive)
|
|
2951
2951
|
*/
|
|
2952
2952
|
inspection_date_received_to?: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Filter by inspection status (exact match), e.g. "completed" or "in_progress". Other values include "submitted", "suspended", "discarded".
|
|
2955
|
+
*/
|
|
2956
|
+
inspection_status?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* Filter by last-updated date from (inclusive). Maps to the server-side `updated_at`, which is bumped on every change (including in_progress → completed). This is the recommended watermark for incremental sync — unlike submitted_at (device wall-clock) or created_at (set once at receipt).
|
|
2959
|
+
*/
|
|
2960
|
+
inspection_date_updated_from?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* Filter by last-updated date to (inclusive). Maps to `updated_at`.
|
|
2963
|
+
*/
|
|
2964
|
+
inspection_date_updated_to?: string;
|
|
2953
2965
|
};
|
|
2954
|
-
url: '/
|
|
2966
|
+
url: '/public/inspection/list';
|
|
2955
2967
|
};
|
|
2956
2968
|
type InspectionControllerListInspectionsErrors = {
|
|
2957
2969
|
/**
|
|
@@ -2996,7 +3008,7 @@ type InspectionControllerSubmitInspectionPublicData = {
|
|
|
2996
3008
|
};
|
|
2997
3009
|
path?: never;
|
|
2998
3010
|
query?: never;
|
|
2999
|
-
url: '/
|
|
3011
|
+
url: '/public/inspection/submit';
|
|
3000
3012
|
};
|
|
3001
3013
|
type InspectionControllerSubmitInspectionPublicErrors = {
|
|
3002
3014
|
/**
|
|
@@ -3104,7 +3116,7 @@ type IssueControllerListIssuesData = {
|
|
|
3104
3116
|
*/
|
|
3105
3117
|
issue_id?: string;
|
|
3106
3118
|
};
|
|
3107
|
-
url: '/
|
|
3119
|
+
url: '/public/issue/list';
|
|
3108
3120
|
};
|
|
3109
3121
|
type IssueControllerListIssuesErrors = {
|
|
3110
3122
|
/**
|
|
@@ -3145,7 +3157,7 @@ type IssueControllerGetIssuePublicData = {
|
|
|
3145
3157
|
public_id: string;
|
|
3146
3158
|
};
|
|
3147
3159
|
query?: never;
|
|
3148
|
-
url: '/
|
|
3160
|
+
url: '/public/issue/{public_id}';
|
|
3149
3161
|
};
|
|
3150
3162
|
type IssueControllerGetIssuePublicErrors = {
|
|
3151
3163
|
/**
|
|
@@ -3195,7 +3207,7 @@ type IssueControllerUpdateIssuePublicData = {
|
|
|
3195
3207
|
public_id: string;
|
|
3196
3208
|
};
|
|
3197
3209
|
query?: never;
|
|
3198
|
-
url: '/
|
|
3210
|
+
url: '/public/issue/{public_id}';
|
|
3199
3211
|
};
|
|
3200
3212
|
type IssueControllerUpdateIssuePublicErrors = {
|
|
3201
3213
|
/**
|
|
@@ -3246,7 +3258,7 @@ type IssueControllerGetIssueHistoryPublicData = {
|
|
|
3246
3258
|
public_id: string;
|
|
3247
3259
|
};
|
|
3248
3260
|
query?: never;
|
|
3249
|
-
url: '/
|
|
3261
|
+
url: '/public/issue/{public_id}/history';
|
|
3250
3262
|
};
|
|
3251
3263
|
type IssueControllerGetIssueHistoryPublicErrors = {
|
|
3252
3264
|
/**
|
|
@@ -3287,7 +3299,7 @@ type UserPropertyControllerDeleteUserPropertyData = {
|
|
|
3287
3299
|
id: string;
|
|
3288
3300
|
};
|
|
3289
3301
|
query?: never;
|
|
3290
|
-
url: '/
|
|
3302
|
+
url: '/user-property/{id}';
|
|
3291
3303
|
};
|
|
3292
3304
|
type UserPropertyControllerDeleteUserPropertyErrors = {
|
|
3293
3305
|
/**
|
|
@@ -3337,7 +3349,7 @@ type UserPropertyControllerUpdateUserPropertyData = {
|
|
|
3337
3349
|
id: string;
|
|
3338
3350
|
};
|
|
3339
3351
|
query?: never;
|
|
3340
|
-
url: '/
|
|
3352
|
+
url: '/user-property/{id}';
|
|
3341
3353
|
};
|
|
3342
3354
|
type UserPropertyControllerUpdateUserPropertyErrors = {
|
|
3343
3355
|
/**
|
|
@@ -3382,7 +3394,7 @@ type AssetPropertyControllerDeleteAssetPropertyData = {
|
|
|
3382
3394
|
id: string;
|
|
3383
3395
|
};
|
|
3384
3396
|
query?: never;
|
|
3385
|
-
url: '/
|
|
3397
|
+
url: '/asset-property/{id}';
|
|
3386
3398
|
};
|
|
3387
3399
|
type AssetPropertyControllerDeleteAssetPropertyErrors = {
|
|
3388
3400
|
/**
|
|
@@ -3432,7 +3444,7 @@ type AssetPropertyControllerUpdateAssetPropertyData = {
|
|
|
3432
3444
|
id: string;
|
|
3433
3445
|
};
|
|
3434
3446
|
query?: never;
|
|
3435
|
-
url: '/
|
|
3447
|
+
url: '/asset-property/{id}';
|
|
3436
3448
|
};
|
|
3437
3449
|
type AssetPropertyControllerUpdateAssetPropertyErrors = {
|
|
3438
3450
|
/**
|
|
@@ -3509,7 +3521,7 @@ type AssetClassControllerGetAssetClassListData = {
|
|
|
3509
3521
|
*/
|
|
3510
3522
|
date_modified_to?: string;
|
|
3511
3523
|
};
|
|
3512
|
-
url: '/
|
|
3524
|
+
url: '/asset-class/list';
|
|
3513
3525
|
};
|
|
3514
3526
|
type AssetClassControllerGetAssetClassListErrors = {
|
|
3515
3527
|
/**
|
|
@@ -3554,7 +3566,7 @@ type AssetClassControllerCreateAssetClassData = {
|
|
|
3554
3566
|
};
|
|
3555
3567
|
path?: never;
|
|
3556
3568
|
query?: never;
|
|
3557
|
-
url: '/
|
|
3569
|
+
url: '/asset-class';
|
|
3558
3570
|
};
|
|
3559
3571
|
type AssetClassControllerCreateAssetClassErrors = {
|
|
3560
3572
|
/**
|
|
@@ -3612,7 +3624,7 @@ type AssetClassControllerUpdateAssetClassData = {
|
|
|
3612
3624
|
id: string;
|
|
3613
3625
|
};
|
|
3614
3626
|
query?: never;
|
|
3615
|
-
url: '/
|
|
3627
|
+
url: '/asset-class/{id}';
|
|
3616
3628
|
};
|
|
3617
3629
|
type AssetClassControllerUpdateAssetClassErrors = {
|
|
3618
3630
|
/**
|
|
@@ -3689,7 +3701,7 @@ type SiteControllerListSitesData = {
|
|
|
3689
3701
|
*/
|
|
3690
3702
|
date_modified_to?: string;
|
|
3691
3703
|
};
|
|
3692
|
-
url: '/
|
|
3704
|
+
url: '/site/list';
|
|
3693
3705
|
};
|
|
3694
3706
|
type SiteControllerListSitesErrors = {
|
|
3695
3707
|
/**
|
|
@@ -3734,7 +3746,7 @@ type SiteControllerCreateSiteData = {
|
|
|
3734
3746
|
};
|
|
3735
3747
|
path?: never;
|
|
3736
3748
|
query?: never;
|
|
3737
|
-
url: '/
|
|
3749
|
+
url: '/site';
|
|
3738
3750
|
};
|
|
3739
3751
|
type SiteControllerCreateSiteErrors = {
|
|
3740
3752
|
/**
|
|
@@ -3779,7 +3791,7 @@ type SiteControllerDeleteSiteData = {
|
|
|
3779
3791
|
id: string;
|
|
3780
3792
|
};
|
|
3781
3793
|
query?: never;
|
|
3782
|
-
url: '/
|
|
3794
|
+
url: '/site/{id}';
|
|
3783
3795
|
};
|
|
3784
3796
|
type SiteControllerDeleteSiteErrors = {
|
|
3785
3797
|
/**
|
|
@@ -3829,7 +3841,7 @@ type SiteControllerUpdateSiteData = {
|
|
|
3829
3841
|
id: string;
|
|
3830
3842
|
};
|
|
3831
3843
|
query?: never;
|
|
3832
|
-
url: '/
|
|
3844
|
+
url: '/site/{id}';
|
|
3833
3845
|
};
|
|
3834
3846
|
type SiteControllerUpdateSiteErrors = {
|
|
3835
3847
|
/**
|
|
@@ -4416,7 +4428,7 @@ declare function generateIdempotencyKey(): string;
|
|
|
4416
4428
|
* See README.md for usage.
|
|
4417
4429
|
*/
|
|
4418
4430
|
declare const PACKAGE_NAME = "@wakata-dev/api-client";
|
|
4419
|
-
declare const PACKAGE_VERSION = "0.1.
|
|
4431
|
+
declare const PACKAGE_VERSION = "0.1.3";
|
|
4420
4432
|
/** Default base URL for the Wakata Public API (production). */
|
|
4421
4433
|
declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
4422
4434
|
|
package/dist/index.d.ts
CHANGED
|
@@ -289,7 +289,7 @@ type ApiErrorBody = {
|
|
|
289
289
|
/**
|
|
290
290
|
* Stable, machine-readable code identifying the failure class. Integrators should switch on this rather than parsing the message. Codes are append-only — they are never removed or renamed.
|
|
291
291
|
*/
|
|
292
|
-
code: 'validation_error' | 'bad_request' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
|
|
292
|
+
code: 'validation_error' | 'bad_request' | 'invalid_filter_value' | 'unauthorized' | 'forbidden' | 'ip_not_allowed' | 'not_found' | 'conflict' | 'idempotency_key_conflict' | 'rate_limited' | 'internal_error';
|
|
293
293
|
/**
|
|
294
294
|
* Human-readable description of the failure. Subject to wording tweaks — do not parse.
|
|
295
295
|
*/
|
|
@@ -2159,7 +2159,7 @@ type AssetControllerCreateAssetPublicData = {
|
|
|
2159
2159
|
};
|
|
2160
2160
|
path?: never;
|
|
2161
2161
|
query?: never;
|
|
2162
|
-
url: '/
|
|
2162
|
+
url: '/public/asset';
|
|
2163
2163
|
};
|
|
2164
2164
|
type AssetControllerCreateAssetPublicErrors = {
|
|
2165
2165
|
/**
|
|
@@ -2265,7 +2265,7 @@ type AssetControllerListAssetsData = {
|
|
|
2265
2265
|
*/
|
|
2266
2266
|
site_name?: string;
|
|
2267
2267
|
};
|
|
2268
|
-
url: '/
|
|
2268
|
+
url: '/asset/list';
|
|
2269
2269
|
};
|
|
2270
2270
|
type AssetControllerListAssetsErrors = {
|
|
2271
2271
|
/**
|
|
@@ -2336,7 +2336,7 @@ type AssetControllerGetAssetData = {
|
|
|
2336
2336
|
id: string;
|
|
2337
2337
|
};
|
|
2338
2338
|
query?: never;
|
|
2339
|
-
url: '/
|
|
2339
|
+
url: '/asset/{id}';
|
|
2340
2340
|
};
|
|
2341
2341
|
type AssetControllerGetAssetErrors = {
|
|
2342
2342
|
/**
|
|
@@ -2408,7 +2408,7 @@ type AssetControllerUpdateAssetData = {
|
|
|
2408
2408
|
id: string;
|
|
2409
2409
|
};
|
|
2410
2410
|
query?: never;
|
|
2411
|
-
url: '/
|
|
2411
|
+
url: '/asset/{id}';
|
|
2412
2412
|
};
|
|
2413
2413
|
type AssetControllerUpdateAssetErrors = {
|
|
2414
2414
|
/**
|
|
@@ -2534,7 +2534,7 @@ type UserControllerListUsersData = {
|
|
|
2534
2534
|
*/
|
|
2535
2535
|
created_by?: string;
|
|
2536
2536
|
};
|
|
2537
|
-
url: '/
|
|
2537
|
+
url: '/user/list';
|
|
2538
2538
|
};
|
|
2539
2539
|
type UserControllerListUsersErrors = {
|
|
2540
2540
|
/**
|
|
@@ -2581,7 +2581,7 @@ type UserControllerGetUserData = {
|
|
|
2581
2581
|
id: string;
|
|
2582
2582
|
};
|
|
2583
2583
|
query?: never;
|
|
2584
|
-
url: '/
|
|
2584
|
+
url: '/user/{id}';
|
|
2585
2585
|
};
|
|
2586
2586
|
type UserControllerGetUserErrors = {
|
|
2587
2587
|
/**
|
|
@@ -2657,7 +2657,7 @@ type UserControllerUpdateUserData = {
|
|
|
2657
2657
|
id: string;
|
|
2658
2658
|
};
|
|
2659
2659
|
query?: never;
|
|
2660
|
-
url: '/
|
|
2660
|
+
url: '/user/{id}';
|
|
2661
2661
|
};
|
|
2662
2662
|
type UserControllerUpdateUserErrors = {
|
|
2663
2663
|
/**
|
|
@@ -2758,7 +2758,7 @@ type UserControllerCreateUserData = {
|
|
|
2758
2758
|
};
|
|
2759
2759
|
path?: never;
|
|
2760
2760
|
query?: never;
|
|
2761
|
-
url: '/
|
|
2761
|
+
url: '/user';
|
|
2762
2762
|
};
|
|
2763
2763
|
type UserControllerCreateUserErrors = {
|
|
2764
2764
|
/**
|
|
@@ -2950,8 +2950,20 @@ type InspectionControllerListInspectionsData = {
|
|
|
2950
2950
|
* Filter by date received to (inclusive)
|
|
2951
2951
|
*/
|
|
2952
2952
|
inspection_date_received_to?: string;
|
|
2953
|
+
/**
|
|
2954
|
+
* Filter by inspection status (exact match), e.g. "completed" or "in_progress". Other values include "submitted", "suspended", "discarded".
|
|
2955
|
+
*/
|
|
2956
|
+
inspection_status?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* Filter by last-updated date from (inclusive). Maps to the server-side `updated_at`, which is bumped on every change (including in_progress → completed). This is the recommended watermark for incremental sync — unlike submitted_at (device wall-clock) or created_at (set once at receipt).
|
|
2959
|
+
*/
|
|
2960
|
+
inspection_date_updated_from?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* Filter by last-updated date to (inclusive). Maps to `updated_at`.
|
|
2963
|
+
*/
|
|
2964
|
+
inspection_date_updated_to?: string;
|
|
2953
2965
|
};
|
|
2954
|
-
url: '/
|
|
2966
|
+
url: '/public/inspection/list';
|
|
2955
2967
|
};
|
|
2956
2968
|
type InspectionControllerListInspectionsErrors = {
|
|
2957
2969
|
/**
|
|
@@ -2996,7 +3008,7 @@ type InspectionControllerSubmitInspectionPublicData = {
|
|
|
2996
3008
|
};
|
|
2997
3009
|
path?: never;
|
|
2998
3010
|
query?: never;
|
|
2999
|
-
url: '/
|
|
3011
|
+
url: '/public/inspection/submit';
|
|
3000
3012
|
};
|
|
3001
3013
|
type InspectionControllerSubmitInspectionPublicErrors = {
|
|
3002
3014
|
/**
|
|
@@ -3104,7 +3116,7 @@ type IssueControllerListIssuesData = {
|
|
|
3104
3116
|
*/
|
|
3105
3117
|
issue_id?: string;
|
|
3106
3118
|
};
|
|
3107
|
-
url: '/
|
|
3119
|
+
url: '/public/issue/list';
|
|
3108
3120
|
};
|
|
3109
3121
|
type IssueControllerListIssuesErrors = {
|
|
3110
3122
|
/**
|
|
@@ -3145,7 +3157,7 @@ type IssueControllerGetIssuePublicData = {
|
|
|
3145
3157
|
public_id: string;
|
|
3146
3158
|
};
|
|
3147
3159
|
query?: never;
|
|
3148
|
-
url: '/
|
|
3160
|
+
url: '/public/issue/{public_id}';
|
|
3149
3161
|
};
|
|
3150
3162
|
type IssueControllerGetIssuePublicErrors = {
|
|
3151
3163
|
/**
|
|
@@ -3195,7 +3207,7 @@ type IssueControllerUpdateIssuePublicData = {
|
|
|
3195
3207
|
public_id: string;
|
|
3196
3208
|
};
|
|
3197
3209
|
query?: never;
|
|
3198
|
-
url: '/
|
|
3210
|
+
url: '/public/issue/{public_id}';
|
|
3199
3211
|
};
|
|
3200
3212
|
type IssueControllerUpdateIssuePublicErrors = {
|
|
3201
3213
|
/**
|
|
@@ -3246,7 +3258,7 @@ type IssueControllerGetIssueHistoryPublicData = {
|
|
|
3246
3258
|
public_id: string;
|
|
3247
3259
|
};
|
|
3248
3260
|
query?: never;
|
|
3249
|
-
url: '/
|
|
3261
|
+
url: '/public/issue/{public_id}/history';
|
|
3250
3262
|
};
|
|
3251
3263
|
type IssueControllerGetIssueHistoryPublicErrors = {
|
|
3252
3264
|
/**
|
|
@@ -3287,7 +3299,7 @@ type UserPropertyControllerDeleteUserPropertyData = {
|
|
|
3287
3299
|
id: string;
|
|
3288
3300
|
};
|
|
3289
3301
|
query?: never;
|
|
3290
|
-
url: '/
|
|
3302
|
+
url: '/user-property/{id}';
|
|
3291
3303
|
};
|
|
3292
3304
|
type UserPropertyControllerDeleteUserPropertyErrors = {
|
|
3293
3305
|
/**
|
|
@@ -3337,7 +3349,7 @@ type UserPropertyControllerUpdateUserPropertyData = {
|
|
|
3337
3349
|
id: string;
|
|
3338
3350
|
};
|
|
3339
3351
|
query?: never;
|
|
3340
|
-
url: '/
|
|
3352
|
+
url: '/user-property/{id}';
|
|
3341
3353
|
};
|
|
3342
3354
|
type UserPropertyControllerUpdateUserPropertyErrors = {
|
|
3343
3355
|
/**
|
|
@@ -3382,7 +3394,7 @@ type AssetPropertyControllerDeleteAssetPropertyData = {
|
|
|
3382
3394
|
id: string;
|
|
3383
3395
|
};
|
|
3384
3396
|
query?: never;
|
|
3385
|
-
url: '/
|
|
3397
|
+
url: '/asset-property/{id}';
|
|
3386
3398
|
};
|
|
3387
3399
|
type AssetPropertyControllerDeleteAssetPropertyErrors = {
|
|
3388
3400
|
/**
|
|
@@ -3432,7 +3444,7 @@ type AssetPropertyControllerUpdateAssetPropertyData = {
|
|
|
3432
3444
|
id: string;
|
|
3433
3445
|
};
|
|
3434
3446
|
query?: never;
|
|
3435
|
-
url: '/
|
|
3447
|
+
url: '/asset-property/{id}';
|
|
3436
3448
|
};
|
|
3437
3449
|
type AssetPropertyControllerUpdateAssetPropertyErrors = {
|
|
3438
3450
|
/**
|
|
@@ -3509,7 +3521,7 @@ type AssetClassControllerGetAssetClassListData = {
|
|
|
3509
3521
|
*/
|
|
3510
3522
|
date_modified_to?: string;
|
|
3511
3523
|
};
|
|
3512
|
-
url: '/
|
|
3524
|
+
url: '/asset-class/list';
|
|
3513
3525
|
};
|
|
3514
3526
|
type AssetClassControllerGetAssetClassListErrors = {
|
|
3515
3527
|
/**
|
|
@@ -3554,7 +3566,7 @@ type AssetClassControllerCreateAssetClassData = {
|
|
|
3554
3566
|
};
|
|
3555
3567
|
path?: never;
|
|
3556
3568
|
query?: never;
|
|
3557
|
-
url: '/
|
|
3569
|
+
url: '/asset-class';
|
|
3558
3570
|
};
|
|
3559
3571
|
type AssetClassControllerCreateAssetClassErrors = {
|
|
3560
3572
|
/**
|
|
@@ -3612,7 +3624,7 @@ type AssetClassControllerUpdateAssetClassData = {
|
|
|
3612
3624
|
id: string;
|
|
3613
3625
|
};
|
|
3614
3626
|
query?: never;
|
|
3615
|
-
url: '/
|
|
3627
|
+
url: '/asset-class/{id}';
|
|
3616
3628
|
};
|
|
3617
3629
|
type AssetClassControllerUpdateAssetClassErrors = {
|
|
3618
3630
|
/**
|
|
@@ -3689,7 +3701,7 @@ type SiteControllerListSitesData = {
|
|
|
3689
3701
|
*/
|
|
3690
3702
|
date_modified_to?: string;
|
|
3691
3703
|
};
|
|
3692
|
-
url: '/
|
|
3704
|
+
url: '/site/list';
|
|
3693
3705
|
};
|
|
3694
3706
|
type SiteControllerListSitesErrors = {
|
|
3695
3707
|
/**
|
|
@@ -3734,7 +3746,7 @@ type SiteControllerCreateSiteData = {
|
|
|
3734
3746
|
};
|
|
3735
3747
|
path?: never;
|
|
3736
3748
|
query?: never;
|
|
3737
|
-
url: '/
|
|
3749
|
+
url: '/site';
|
|
3738
3750
|
};
|
|
3739
3751
|
type SiteControllerCreateSiteErrors = {
|
|
3740
3752
|
/**
|
|
@@ -3779,7 +3791,7 @@ type SiteControllerDeleteSiteData = {
|
|
|
3779
3791
|
id: string;
|
|
3780
3792
|
};
|
|
3781
3793
|
query?: never;
|
|
3782
|
-
url: '/
|
|
3794
|
+
url: '/site/{id}';
|
|
3783
3795
|
};
|
|
3784
3796
|
type SiteControllerDeleteSiteErrors = {
|
|
3785
3797
|
/**
|
|
@@ -3829,7 +3841,7 @@ type SiteControllerUpdateSiteData = {
|
|
|
3829
3841
|
id: string;
|
|
3830
3842
|
};
|
|
3831
3843
|
query?: never;
|
|
3832
|
-
url: '/
|
|
3844
|
+
url: '/site/{id}';
|
|
3833
3845
|
};
|
|
3834
3846
|
type SiteControllerUpdateSiteErrors = {
|
|
3835
3847
|
/**
|
|
@@ -4416,7 +4428,7 @@ declare function generateIdempotencyKey(): string;
|
|
|
4416
4428
|
* See README.md for usage.
|
|
4417
4429
|
*/
|
|
4418
4430
|
declare const PACKAGE_NAME = "@wakata-dev/api-client";
|
|
4419
|
-
declare const PACKAGE_VERSION = "0.1.
|
|
4431
|
+
declare const PACKAGE_VERSION = "0.1.3";
|
|
4420
4432
|
/** Default base URL for the Wakata Public API (production). */
|
|
4421
4433
|
declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
4422
4434
|
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ var assetControllerCreateAssetPublic = (options) => {
|
|
|
125
125
|
type: "http"
|
|
126
126
|
}
|
|
127
127
|
],
|
|
128
|
-
url: "/
|
|
128
|
+
url: "/public/asset",
|
|
129
129
|
...options,
|
|
130
130
|
headers: {
|
|
131
131
|
"Content-Type": "application/json",
|
|
@@ -141,7 +141,7 @@ var assetControllerListAssets = (options) => {
|
|
|
141
141
|
type: "http"
|
|
142
142
|
}
|
|
143
143
|
],
|
|
144
|
-
url: "/
|
|
144
|
+
url: "/asset/list",
|
|
145
145
|
...options
|
|
146
146
|
});
|
|
147
147
|
};
|
|
@@ -153,7 +153,7 @@ var assetControllerGetAsset = (options) => {
|
|
|
153
153
|
type: "http"
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
|
-
url: "/
|
|
156
|
+
url: "/asset/{id}",
|
|
157
157
|
...options
|
|
158
158
|
});
|
|
159
159
|
};
|
|
@@ -165,7 +165,7 @@ var assetControllerUpdateAsset = (options) => {
|
|
|
165
165
|
type: "http"
|
|
166
166
|
}
|
|
167
167
|
],
|
|
168
|
-
url: "/
|
|
168
|
+
url: "/asset/{id}",
|
|
169
169
|
...options,
|
|
170
170
|
headers: {
|
|
171
171
|
"Content-Type": "application/json",
|
|
@@ -181,7 +181,7 @@ var userControllerListUsers = (options) => {
|
|
|
181
181
|
type: "http"
|
|
182
182
|
}
|
|
183
183
|
],
|
|
184
|
-
url: "/
|
|
184
|
+
url: "/user/list",
|
|
185
185
|
...options
|
|
186
186
|
});
|
|
187
187
|
};
|
|
@@ -193,7 +193,7 @@ var userControllerGetUser = (options) => {
|
|
|
193
193
|
type: "http"
|
|
194
194
|
}
|
|
195
195
|
],
|
|
196
|
-
url: "/
|
|
196
|
+
url: "/user/{id}",
|
|
197
197
|
...options
|
|
198
198
|
});
|
|
199
199
|
};
|
|
@@ -206,7 +206,7 @@ var userControllerUpdateUser = (options) => {
|
|
|
206
206
|
type: "http"
|
|
207
207
|
}
|
|
208
208
|
],
|
|
209
|
-
url: "/
|
|
209
|
+
url: "/user/{id}",
|
|
210
210
|
...options,
|
|
211
211
|
headers: {
|
|
212
212
|
"Content-Type": null,
|
|
@@ -223,7 +223,7 @@ var userControllerCreateUser = (options) => {
|
|
|
223
223
|
type: "http"
|
|
224
224
|
}
|
|
225
225
|
],
|
|
226
|
-
url: "/
|
|
226
|
+
url: "/user",
|
|
227
227
|
...options,
|
|
228
228
|
headers: {
|
|
229
229
|
"Content-Type": null,
|
|
@@ -239,7 +239,7 @@ var inspectionControllerListInspections = (options) => {
|
|
|
239
239
|
type: "http"
|
|
240
240
|
}
|
|
241
241
|
],
|
|
242
|
-
url: "/
|
|
242
|
+
url: "/public/inspection/list",
|
|
243
243
|
...options
|
|
244
244
|
});
|
|
245
245
|
};
|
|
@@ -251,7 +251,7 @@ var inspectionControllerSubmitInspectionPublic = (options) => {
|
|
|
251
251
|
type: "http"
|
|
252
252
|
}
|
|
253
253
|
],
|
|
254
|
-
url: "/
|
|
254
|
+
url: "/public/inspection/submit",
|
|
255
255
|
...options,
|
|
256
256
|
headers: {
|
|
257
257
|
"Content-Type": "application/json",
|
|
@@ -267,7 +267,7 @@ var issueControllerListIssues = (options) => {
|
|
|
267
267
|
type: "http"
|
|
268
268
|
}
|
|
269
269
|
],
|
|
270
|
-
url: "/
|
|
270
|
+
url: "/public/issue/list",
|
|
271
271
|
...options
|
|
272
272
|
});
|
|
273
273
|
};
|
|
@@ -279,7 +279,7 @@ var issueControllerGetIssuePublic = (options) => {
|
|
|
279
279
|
type: "http"
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
|
-
url: "/
|
|
282
|
+
url: "/public/issue/{public_id}",
|
|
283
283
|
...options
|
|
284
284
|
});
|
|
285
285
|
};
|
|
@@ -291,7 +291,7 @@ var issueControllerUpdateIssuePublic = (options) => {
|
|
|
291
291
|
type: "http"
|
|
292
292
|
}
|
|
293
293
|
],
|
|
294
|
-
url: "/
|
|
294
|
+
url: "/public/issue/{public_id}",
|
|
295
295
|
...options,
|
|
296
296
|
headers: {
|
|
297
297
|
"Content-Type": "application/json",
|
|
@@ -307,7 +307,7 @@ var issueControllerGetIssueHistoryPublic = (options) => {
|
|
|
307
307
|
type: "http"
|
|
308
308
|
}
|
|
309
309
|
],
|
|
310
|
-
url: "/
|
|
310
|
+
url: "/public/issue/{public_id}/history",
|
|
311
311
|
...options
|
|
312
312
|
});
|
|
313
313
|
};
|
|
@@ -319,7 +319,7 @@ var userPropertyControllerDeleteUserProperty = (options) => {
|
|
|
319
319
|
type: "http"
|
|
320
320
|
}
|
|
321
321
|
],
|
|
322
|
-
url: "/
|
|
322
|
+
url: "/user-property/{id}",
|
|
323
323
|
...options
|
|
324
324
|
});
|
|
325
325
|
};
|
|
@@ -331,7 +331,7 @@ var userPropertyControllerUpdateUserProperty = (options) => {
|
|
|
331
331
|
type: "http"
|
|
332
332
|
}
|
|
333
333
|
],
|
|
334
|
-
url: "/
|
|
334
|
+
url: "/user-property/{id}",
|
|
335
335
|
...options,
|
|
336
336
|
headers: {
|
|
337
337
|
"Content-Type": "application/json",
|
|
@@ -347,7 +347,7 @@ var siteControllerListSites = (options) => {
|
|
|
347
347
|
type: "http"
|
|
348
348
|
}
|
|
349
349
|
],
|
|
350
|
-
url: "/
|
|
350
|
+
url: "/site/list",
|
|
351
351
|
...options
|
|
352
352
|
});
|
|
353
353
|
};
|
|
@@ -359,7 +359,7 @@ var siteControllerCreateSite = (options) => {
|
|
|
359
359
|
type: "http"
|
|
360
360
|
}
|
|
361
361
|
],
|
|
362
|
-
url: "/
|
|
362
|
+
url: "/site",
|
|
363
363
|
...options,
|
|
364
364
|
headers: {
|
|
365
365
|
"Content-Type": "application/json",
|
|
@@ -375,7 +375,7 @@ var siteControllerDeleteSite = (options) => {
|
|
|
375
375
|
type: "http"
|
|
376
376
|
}
|
|
377
377
|
],
|
|
378
|
-
url: "/
|
|
378
|
+
url: "/site/{id}",
|
|
379
379
|
...options
|
|
380
380
|
});
|
|
381
381
|
};
|
|
@@ -387,7 +387,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
387
387
|
type: "http"
|
|
388
388
|
}
|
|
389
389
|
],
|
|
390
|
-
url: "/
|
|
390
|
+
url: "/site/{id}",
|
|
391
391
|
...options,
|
|
392
392
|
headers: {
|
|
393
393
|
"Content-Type": "application/json",
|
|
@@ -398,7 +398,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
398
398
|
|
|
399
399
|
// src/client.ts
|
|
400
400
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
401
|
-
var PACKAGE_VERSION = "0.1.
|
|
401
|
+
var PACKAGE_VERSION = "0.1.3";
|
|
402
402
|
function unwrap(result) {
|
|
403
403
|
if (result.data === void 0) {
|
|
404
404
|
throw new WakataApiError({
|
|
@@ -527,7 +527,7 @@ var WakataClient = class {
|
|
|
527
527
|
|
|
528
528
|
// src/index.ts
|
|
529
529
|
var PACKAGE_NAME = "@wakata-dev/api-client";
|
|
530
|
-
var PACKAGE_VERSION2 = "0.1.
|
|
530
|
+
var PACKAGE_VERSION2 = "0.1.3";
|
|
531
531
|
var DEFAULT_BASE_URL2 = "https://api.wakata.ai/api/v1";
|
|
532
532
|
|
|
533
533
|
export { DEFAULT_BASE_URL2 as DEFAULT_BASE_URL, PACKAGE_NAME, PACKAGE_VERSION2 as PACKAGE_VERSION, WakataApiError, WakataAuthError, WakataClient, WakataConflictError, WakataNotFoundError, WakataPermissionError, WakataRateLimitError, WakataServerError, WakataValidationError, generateIdempotencyKey, mapApiError };
|