@wakata-dev/api-client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -27
- package/dist/index.d.ts +27 -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
|
/**
|
|
@@ -2951,7 +2951,7 @@ type InspectionControllerListInspectionsData = {
|
|
|
2951
2951
|
*/
|
|
2952
2952
|
inspection_date_received_to?: string;
|
|
2953
2953
|
};
|
|
2954
|
-
url: '/
|
|
2954
|
+
url: '/public/inspection/list';
|
|
2955
2955
|
};
|
|
2956
2956
|
type InspectionControllerListInspectionsErrors = {
|
|
2957
2957
|
/**
|
|
@@ -2996,7 +2996,7 @@ type InspectionControllerSubmitInspectionPublicData = {
|
|
|
2996
2996
|
};
|
|
2997
2997
|
path?: never;
|
|
2998
2998
|
query?: never;
|
|
2999
|
-
url: '/
|
|
2999
|
+
url: '/public/inspection/submit';
|
|
3000
3000
|
};
|
|
3001
3001
|
type InspectionControllerSubmitInspectionPublicErrors = {
|
|
3002
3002
|
/**
|
|
@@ -3104,7 +3104,7 @@ type IssueControllerListIssuesData = {
|
|
|
3104
3104
|
*/
|
|
3105
3105
|
issue_id?: string;
|
|
3106
3106
|
};
|
|
3107
|
-
url: '/
|
|
3107
|
+
url: '/public/issue/list';
|
|
3108
3108
|
};
|
|
3109
3109
|
type IssueControllerListIssuesErrors = {
|
|
3110
3110
|
/**
|
|
@@ -3145,7 +3145,7 @@ type IssueControllerGetIssuePublicData = {
|
|
|
3145
3145
|
public_id: string;
|
|
3146
3146
|
};
|
|
3147
3147
|
query?: never;
|
|
3148
|
-
url: '/
|
|
3148
|
+
url: '/public/issue/{public_id}';
|
|
3149
3149
|
};
|
|
3150
3150
|
type IssueControllerGetIssuePublicErrors = {
|
|
3151
3151
|
/**
|
|
@@ -3195,7 +3195,7 @@ type IssueControllerUpdateIssuePublicData = {
|
|
|
3195
3195
|
public_id: string;
|
|
3196
3196
|
};
|
|
3197
3197
|
query?: never;
|
|
3198
|
-
url: '/
|
|
3198
|
+
url: '/public/issue/{public_id}';
|
|
3199
3199
|
};
|
|
3200
3200
|
type IssueControllerUpdateIssuePublicErrors = {
|
|
3201
3201
|
/**
|
|
@@ -3246,7 +3246,7 @@ type IssueControllerGetIssueHistoryPublicData = {
|
|
|
3246
3246
|
public_id: string;
|
|
3247
3247
|
};
|
|
3248
3248
|
query?: never;
|
|
3249
|
-
url: '/
|
|
3249
|
+
url: '/public/issue/{public_id}/history';
|
|
3250
3250
|
};
|
|
3251
3251
|
type IssueControllerGetIssueHistoryPublicErrors = {
|
|
3252
3252
|
/**
|
|
@@ -3287,7 +3287,7 @@ type UserPropertyControllerDeleteUserPropertyData = {
|
|
|
3287
3287
|
id: string;
|
|
3288
3288
|
};
|
|
3289
3289
|
query?: never;
|
|
3290
|
-
url: '/
|
|
3290
|
+
url: '/user-property/{id}';
|
|
3291
3291
|
};
|
|
3292
3292
|
type UserPropertyControllerDeleteUserPropertyErrors = {
|
|
3293
3293
|
/**
|
|
@@ -3337,7 +3337,7 @@ type UserPropertyControllerUpdateUserPropertyData = {
|
|
|
3337
3337
|
id: string;
|
|
3338
3338
|
};
|
|
3339
3339
|
query?: never;
|
|
3340
|
-
url: '/
|
|
3340
|
+
url: '/user-property/{id}';
|
|
3341
3341
|
};
|
|
3342
3342
|
type UserPropertyControllerUpdateUserPropertyErrors = {
|
|
3343
3343
|
/**
|
|
@@ -3382,7 +3382,7 @@ type AssetPropertyControllerDeleteAssetPropertyData = {
|
|
|
3382
3382
|
id: string;
|
|
3383
3383
|
};
|
|
3384
3384
|
query?: never;
|
|
3385
|
-
url: '/
|
|
3385
|
+
url: '/asset-property/{id}';
|
|
3386
3386
|
};
|
|
3387
3387
|
type AssetPropertyControllerDeleteAssetPropertyErrors = {
|
|
3388
3388
|
/**
|
|
@@ -3432,7 +3432,7 @@ type AssetPropertyControllerUpdateAssetPropertyData = {
|
|
|
3432
3432
|
id: string;
|
|
3433
3433
|
};
|
|
3434
3434
|
query?: never;
|
|
3435
|
-
url: '/
|
|
3435
|
+
url: '/asset-property/{id}';
|
|
3436
3436
|
};
|
|
3437
3437
|
type AssetPropertyControllerUpdateAssetPropertyErrors = {
|
|
3438
3438
|
/**
|
|
@@ -3509,7 +3509,7 @@ type AssetClassControllerGetAssetClassListData = {
|
|
|
3509
3509
|
*/
|
|
3510
3510
|
date_modified_to?: string;
|
|
3511
3511
|
};
|
|
3512
|
-
url: '/
|
|
3512
|
+
url: '/asset-class/list';
|
|
3513
3513
|
};
|
|
3514
3514
|
type AssetClassControllerGetAssetClassListErrors = {
|
|
3515
3515
|
/**
|
|
@@ -3554,7 +3554,7 @@ type AssetClassControllerCreateAssetClassData = {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
path?: never;
|
|
3556
3556
|
query?: never;
|
|
3557
|
-
url: '/
|
|
3557
|
+
url: '/asset-class';
|
|
3558
3558
|
};
|
|
3559
3559
|
type AssetClassControllerCreateAssetClassErrors = {
|
|
3560
3560
|
/**
|
|
@@ -3612,7 +3612,7 @@ type AssetClassControllerUpdateAssetClassData = {
|
|
|
3612
3612
|
id: string;
|
|
3613
3613
|
};
|
|
3614
3614
|
query?: never;
|
|
3615
|
-
url: '/
|
|
3615
|
+
url: '/asset-class/{id}';
|
|
3616
3616
|
};
|
|
3617
3617
|
type AssetClassControllerUpdateAssetClassErrors = {
|
|
3618
3618
|
/**
|
|
@@ -3689,7 +3689,7 @@ type SiteControllerListSitesData = {
|
|
|
3689
3689
|
*/
|
|
3690
3690
|
date_modified_to?: string;
|
|
3691
3691
|
};
|
|
3692
|
-
url: '/
|
|
3692
|
+
url: '/site/list';
|
|
3693
3693
|
};
|
|
3694
3694
|
type SiteControllerListSitesErrors = {
|
|
3695
3695
|
/**
|
|
@@ -3734,7 +3734,7 @@ type SiteControllerCreateSiteData = {
|
|
|
3734
3734
|
};
|
|
3735
3735
|
path?: never;
|
|
3736
3736
|
query?: never;
|
|
3737
|
-
url: '/
|
|
3737
|
+
url: '/site';
|
|
3738
3738
|
};
|
|
3739
3739
|
type SiteControllerCreateSiteErrors = {
|
|
3740
3740
|
/**
|
|
@@ -3779,7 +3779,7 @@ type SiteControllerDeleteSiteData = {
|
|
|
3779
3779
|
id: string;
|
|
3780
3780
|
};
|
|
3781
3781
|
query?: never;
|
|
3782
|
-
url: '/
|
|
3782
|
+
url: '/site/{id}';
|
|
3783
3783
|
};
|
|
3784
3784
|
type SiteControllerDeleteSiteErrors = {
|
|
3785
3785
|
/**
|
|
@@ -3829,7 +3829,7 @@ type SiteControllerUpdateSiteData = {
|
|
|
3829
3829
|
id: string;
|
|
3830
3830
|
};
|
|
3831
3831
|
query?: never;
|
|
3832
|
-
url: '/
|
|
3832
|
+
url: '/site/{id}';
|
|
3833
3833
|
};
|
|
3834
3834
|
type SiteControllerUpdateSiteErrors = {
|
|
3835
3835
|
/**
|
|
@@ -4416,7 +4416,7 @@ declare function generateIdempotencyKey(): string;
|
|
|
4416
4416
|
* See README.md for usage.
|
|
4417
4417
|
*/
|
|
4418
4418
|
declare const PACKAGE_NAME = "@wakata-dev/api-client";
|
|
4419
|
-
declare const PACKAGE_VERSION = "0.1.
|
|
4419
|
+
declare const PACKAGE_VERSION = "0.1.2";
|
|
4420
4420
|
/** Default base URL for the Wakata Public API (production). */
|
|
4421
4421
|
declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
4422
4422
|
|
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
|
/**
|
|
@@ -2951,7 +2951,7 @@ type InspectionControllerListInspectionsData = {
|
|
|
2951
2951
|
*/
|
|
2952
2952
|
inspection_date_received_to?: string;
|
|
2953
2953
|
};
|
|
2954
|
-
url: '/
|
|
2954
|
+
url: '/public/inspection/list';
|
|
2955
2955
|
};
|
|
2956
2956
|
type InspectionControllerListInspectionsErrors = {
|
|
2957
2957
|
/**
|
|
@@ -2996,7 +2996,7 @@ type InspectionControllerSubmitInspectionPublicData = {
|
|
|
2996
2996
|
};
|
|
2997
2997
|
path?: never;
|
|
2998
2998
|
query?: never;
|
|
2999
|
-
url: '/
|
|
2999
|
+
url: '/public/inspection/submit';
|
|
3000
3000
|
};
|
|
3001
3001
|
type InspectionControllerSubmitInspectionPublicErrors = {
|
|
3002
3002
|
/**
|
|
@@ -3104,7 +3104,7 @@ type IssueControllerListIssuesData = {
|
|
|
3104
3104
|
*/
|
|
3105
3105
|
issue_id?: string;
|
|
3106
3106
|
};
|
|
3107
|
-
url: '/
|
|
3107
|
+
url: '/public/issue/list';
|
|
3108
3108
|
};
|
|
3109
3109
|
type IssueControllerListIssuesErrors = {
|
|
3110
3110
|
/**
|
|
@@ -3145,7 +3145,7 @@ type IssueControllerGetIssuePublicData = {
|
|
|
3145
3145
|
public_id: string;
|
|
3146
3146
|
};
|
|
3147
3147
|
query?: never;
|
|
3148
|
-
url: '/
|
|
3148
|
+
url: '/public/issue/{public_id}';
|
|
3149
3149
|
};
|
|
3150
3150
|
type IssueControllerGetIssuePublicErrors = {
|
|
3151
3151
|
/**
|
|
@@ -3195,7 +3195,7 @@ type IssueControllerUpdateIssuePublicData = {
|
|
|
3195
3195
|
public_id: string;
|
|
3196
3196
|
};
|
|
3197
3197
|
query?: never;
|
|
3198
|
-
url: '/
|
|
3198
|
+
url: '/public/issue/{public_id}';
|
|
3199
3199
|
};
|
|
3200
3200
|
type IssueControllerUpdateIssuePublicErrors = {
|
|
3201
3201
|
/**
|
|
@@ -3246,7 +3246,7 @@ type IssueControllerGetIssueHistoryPublicData = {
|
|
|
3246
3246
|
public_id: string;
|
|
3247
3247
|
};
|
|
3248
3248
|
query?: never;
|
|
3249
|
-
url: '/
|
|
3249
|
+
url: '/public/issue/{public_id}/history';
|
|
3250
3250
|
};
|
|
3251
3251
|
type IssueControllerGetIssueHistoryPublicErrors = {
|
|
3252
3252
|
/**
|
|
@@ -3287,7 +3287,7 @@ type UserPropertyControllerDeleteUserPropertyData = {
|
|
|
3287
3287
|
id: string;
|
|
3288
3288
|
};
|
|
3289
3289
|
query?: never;
|
|
3290
|
-
url: '/
|
|
3290
|
+
url: '/user-property/{id}';
|
|
3291
3291
|
};
|
|
3292
3292
|
type UserPropertyControllerDeleteUserPropertyErrors = {
|
|
3293
3293
|
/**
|
|
@@ -3337,7 +3337,7 @@ type UserPropertyControllerUpdateUserPropertyData = {
|
|
|
3337
3337
|
id: string;
|
|
3338
3338
|
};
|
|
3339
3339
|
query?: never;
|
|
3340
|
-
url: '/
|
|
3340
|
+
url: '/user-property/{id}';
|
|
3341
3341
|
};
|
|
3342
3342
|
type UserPropertyControllerUpdateUserPropertyErrors = {
|
|
3343
3343
|
/**
|
|
@@ -3382,7 +3382,7 @@ type AssetPropertyControllerDeleteAssetPropertyData = {
|
|
|
3382
3382
|
id: string;
|
|
3383
3383
|
};
|
|
3384
3384
|
query?: never;
|
|
3385
|
-
url: '/
|
|
3385
|
+
url: '/asset-property/{id}';
|
|
3386
3386
|
};
|
|
3387
3387
|
type AssetPropertyControllerDeleteAssetPropertyErrors = {
|
|
3388
3388
|
/**
|
|
@@ -3432,7 +3432,7 @@ type AssetPropertyControllerUpdateAssetPropertyData = {
|
|
|
3432
3432
|
id: string;
|
|
3433
3433
|
};
|
|
3434
3434
|
query?: never;
|
|
3435
|
-
url: '/
|
|
3435
|
+
url: '/asset-property/{id}';
|
|
3436
3436
|
};
|
|
3437
3437
|
type AssetPropertyControllerUpdateAssetPropertyErrors = {
|
|
3438
3438
|
/**
|
|
@@ -3509,7 +3509,7 @@ type AssetClassControllerGetAssetClassListData = {
|
|
|
3509
3509
|
*/
|
|
3510
3510
|
date_modified_to?: string;
|
|
3511
3511
|
};
|
|
3512
|
-
url: '/
|
|
3512
|
+
url: '/asset-class/list';
|
|
3513
3513
|
};
|
|
3514
3514
|
type AssetClassControllerGetAssetClassListErrors = {
|
|
3515
3515
|
/**
|
|
@@ -3554,7 +3554,7 @@ type AssetClassControllerCreateAssetClassData = {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
path?: never;
|
|
3556
3556
|
query?: never;
|
|
3557
|
-
url: '/
|
|
3557
|
+
url: '/asset-class';
|
|
3558
3558
|
};
|
|
3559
3559
|
type AssetClassControllerCreateAssetClassErrors = {
|
|
3560
3560
|
/**
|
|
@@ -3612,7 +3612,7 @@ type AssetClassControllerUpdateAssetClassData = {
|
|
|
3612
3612
|
id: string;
|
|
3613
3613
|
};
|
|
3614
3614
|
query?: never;
|
|
3615
|
-
url: '/
|
|
3615
|
+
url: '/asset-class/{id}';
|
|
3616
3616
|
};
|
|
3617
3617
|
type AssetClassControllerUpdateAssetClassErrors = {
|
|
3618
3618
|
/**
|
|
@@ -3689,7 +3689,7 @@ type SiteControllerListSitesData = {
|
|
|
3689
3689
|
*/
|
|
3690
3690
|
date_modified_to?: string;
|
|
3691
3691
|
};
|
|
3692
|
-
url: '/
|
|
3692
|
+
url: '/site/list';
|
|
3693
3693
|
};
|
|
3694
3694
|
type SiteControllerListSitesErrors = {
|
|
3695
3695
|
/**
|
|
@@ -3734,7 +3734,7 @@ type SiteControllerCreateSiteData = {
|
|
|
3734
3734
|
};
|
|
3735
3735
|
path?: never;
|
|
3736
3736
|
query?: never;
|
|
3737
|
-
url: '/
|
|
3737
|
+
url: '/site';
|
|
3738
3738
|
};
|
|
3739
3739
|
type SiteControllerCreateSiteErrors = {
|
|
3740
3740
|
/**
|
|
@@ -3779,7 +3779,7 @@ type SiteControllerDeleteSiteData = {
|
|
|
3779
3779
|
id: string;
|
|
3780
3780
|
};
|
|
3781
3781
|
query?: never;
|
|
3782
|
-
url: '/
|
|
3782
|
+
url: '/site/{id}';
|
|
3783
3783
|
};
|
|
3784
3784
|
type SiteControllerDeleteSiteErrors = {
|
|
3785
3785
|
/**
|
|
@@ -3829,7 +3829,7 @@ type SiteControllerUpdateSiteData = {
|
|
|
3829
3829
|
id: string;
|
|
3830
3830
|
};
|
|
3831
3831
|
query?: never;
|
|
3832
|
-
url: '/
|
|
3832
|
+
url: '/site/{id}';
|
|
3833
3833
|
};
|
|
3834
3834
|
type SiteControllerUpdateSiteErrors = {
|
|
3835
3835
|
/**
|
|
@@ -4416,7 +4416,7 @@ declare function generateIdempotencyKey(): string;
|
|
|
4416
4416
|
* See README.md for usage.
|
|
4417
4417
|
*/
|
|
4418
4418
|
declare const PACKAGE_NAME = "@wakata-dev/api-client";
|
|
4419
|
-
declare const PACKAGE_VERSION = "0.1.
|
|
4419
|
+
declare const PACKAGE_VERSION = "0.1.2";
|
|
4420
4420
|
/** Default base URL for the Wakata Public API (production). */
|
|
4421
4421
|
declare const DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
4422
4422
|
|
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.2";
|
|
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.2";
|
|
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 };
|