@privateaim/core-http-kit 0.5.0 → 0.6.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/CHANGELOG.md +23 -0
- package/dist/client/module.d.ts +2 -2
- package/dist/client/module.d.ts.map +1 -1
- package/dist/domains/analysis/module.d.ts +1 -1
- package/dist/domains/analysis/module.d.ts.map +1 -1
- package/dist/domains/analysis-bucket/module.d.ts +1 -1
- package/dist/domains/analysis-bucket/module.d.ts.map +1 -1
- package/dist/domains/analysis-bucket-file/module.d.ts +2 -2
- package/dist/domains/analysis-bucket-file/module.d.ts.map +1 -1
- package/dist/domains/analysis-log/module.d.ts +1 -1
- package/dist/domains/analysis-log/module.d.ts.map +1 -1
- package/dist/domains/analysis-node/module.d.ts +1 -1
- package/dist/domains/analysis-node/module.d.ts.map +1 -1
- package/dist/domains/master-image/module.d.ts +1 -1
- package/dist/domains/master-image/module.d.ts.map +1 -1
- package/dist/domains/master-image-group/module.d.ts +1 -1
- package/dist/domains/master-image-group/module.d.ts.map +1 -1
- package/dist/domains/node/module.d.ts +1 -1
- package/dist/domains/node/module.d.ts.map +1 -1
- package/dist/domains/project/module.d.ts +1 -1
- package/dist/domains/project/module.d.ts.map +1 -1
- package/dist/domains/project-node/module.d.ts +1 -1
- package/dist/domains/project-node/module.d.ts.map +1 -1
- package/dist/domains/registry/module.d.ts +1 -1
- package/dist/domains/registry/module.d.ts.map +1 -1
- package/dist/domains/registry-project/module.d.ts +1 -1
- package/dist/domains/registry-project/module.d.ts.map +1 -1
- package/dist/domains/service/module.d.ts +2 -2
- package/dist/domains/service/module.d.ts.map +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/client/module.ts +3 -3
- package/src/domains/analysis/module.ts +1 -1
- package/src/domains/analysis-bucket/module.ts +1 -1
- package/src/domains/analysis-bucket-file/module.ts +7 -7
- package/src/domains/analysis-log/module.ts +1 -1
- package/src/domains/analysis-node/module.ts +1 -1
- package/src/domains/master-image/module.ts +1 -1
- package/src/domains/master-image-group/module.ts +1 -1
- package/src/domains/node/module.ts +1 -1
- package/src/domains/project/module.ts +1 -1
- package/src/domains/project-node/module.ts +1 -1
- package/src/domains/registry/module.ts +1 -1
- package/src/domains/registry-project/module.ts +1 -1
- package/src/domains/service/module.ts +2 -2
- package/tsconfig.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privateaim/core-http-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"exports": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"build-watch": "rimraf ./dist && tsc -p tsconfig.build.json --watch"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@authup/kit": "^1.0.0-beta.
|
|
30
|
-
"@privateaim/core": "^0.
|
|
29
|
+
"@authup/kit": "^1.0.0-beta.18",
|
|
30
|
+
"@privateaim/core-kit": "^0.6.0",
|
|
31
31
|
"hapic": "^2.5.1",
|
|
32
32
|
"rapiq": "^0.9.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@authup/kit": "^1.0.0-beta.
|
|
36
|
-
"@privateaim/core": "^0.
|
|
35
|
+
"@authup/kit": "^1.0.0-beta.18",
|
|
36
|
+
"@privateaim/core-kit": "^0.6.0",
|
|
37
37
|
"hapic": "^2.5.1",
|
|
38
38
|
"rapiq": "^0.9.0"
|
|
39
39
|
},
|
package/src/client/module.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { RequestBaseOptions } from 'hapic';
|
|
|
9
9
|
import { Client as BaseClient, HookName, isClientError } from 'hapic';
|
|
10
10
|
import {
|
|
11
11
|
AnalysisAPI,
|
|
12
|
-
|
|
12
|
+
AnalysisBucketFileAPI,
|
|
13
13
|
AnalysisLogAPI,
|
|
14
14
|
MasterImageAPI,
|
|
15
15
|
MasterImageGroupAPI,
|
|
@@ -42,7 +42,7 @@ export class Client extends BaseClient {
|
|
|
42
42
|
|
|
43
43
|
public readonly analysisBucket : AnalysisBucketAPI;
|
|
44
44
|
|
|
45
|
-
public readonly analysisBucketFile :
|
|
45
|
+
public readonly analysisBucketFile : AnalysisBucketFileAPI;
|
|
46
46
|
|
|
47
47
|
public readonly analysisLog: AnalysisLogAPI;
|
|
48
48
|
|
|
@@ -62,7 +62,7 @@ export class Client extends BaseClient {
|
|
|
62
62
|
this.node = new NodeAPI({ client: this });
|
|
63
63
|
this.analysis = new AnalysisAPI({ client: this });
|
|
64
64
|
this.analysisBucket = new AnalysisBucketAPI({ client: this });
|
|
65
|
-
this.analysisBucketFile = new
|
|
65
|
+
this.analysisBucketFile = new AnalysisBucketFileAPI({ client: this });
|
|
66
66
|
this.analysisLog = new AnalysisLogAPI({ client: this });
|
|
67
67
|
this.analysisNode = new TrainStationAPI({ client: this });
|
|
68
68
|
this.service = new ServiceAPI({ client: this });
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { RequestBaseOptions } from 'hapic';
|
|
9
9
|
import type { BuildInput } from 'rapiq';
|
|
10
10
|
import { buildQuery } from 'rapiq';
|
|
11
|
-
import type { Analysis, AnalysisAPICommand } from '@privateaim/core';
|
|
11
|
+
import type { Analysis, AnalysisAPICommand } from '@privateaim/core-kit';
|
|
12
12
|
import { BaseAPI } from '../base';
|
|
13
13
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
14
14
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { AnalysisBucket } from '@privateaim/core';
|
|
10
|
+
import type { AnalysisBucket } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { AnalysisBucketFile } from '@privateaim/core';
|
|
10
|
+
import type { AnalysisBucketFile } from '@privateaim/core-kit';
|
|
11
11
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
12
12
|
import { BaseAPI } from '../base';
|
|
13
13
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class AnalysisBucketFileAPI extends BaseAPI {
|
|
16
16
|
async getMany(
|
|
17
17
|
options?: BuildInput<AnalysisBucketFile>,
|
|
18
18
|
): Promise<CollectionResourceResponse<AnalysisBucketFile>> {
|
|
19
|
-
const response = await this.client.get(`analysis-files${buildQuery(options)}`);
|
|
19
|
+
const response = await this.client.get(`analysis-bucket-files${buildQuery(options)}`);
|
|
20
20
|
|
|
21
21
|
return response.data;
|
|
22
22
|
}
|
|
@@ -24,7 +24,7 @@ export class AnalysisFileAPI extends BaseAPI {
|
|
|
24
24
|
async getOne(
|
|
25
25
|
id: AnalysisBucketFile['id'],
|
|
26
26
|
): Promise<SingleResourceResponse<AnalysisBucketFile>> {
|
|
27
|
-
const response = await this.client.get(`analysis-files/${id}`);
|
|
27
|
+
const response = await this.client.get(`analysis-bucket-files/${id}`);
|
|
28
28
|
|
|
29
29
|
return response.data;
|
|
30
30
|
}
|
|
@@ -32,19 +32,19 @@ export class AnalysisFileAPI extends BaseAPI {
|
|
|
32
32
|
async delete(
|
|
33
33
|
id: AnalysisBucketFile['id'],
|
|
34
34
|
): Promise<SingleResourceResponse<AnalysisBucketFile>> {
|
|
35
|
-
const response = await this.client.delete(`analysis-files/${id}`);
|
|
35
|
+
const response = await this.client.delete(`analysis-bucket-files/${id}`);
|
|
36
36
|
|
|
37
37
|
return response.data;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
async update(id: AnalysisBucketFile['id'], data: Partial<AnalysisBucketFile>): Promise<SingleResourceResponse<AnalysisBucketFile>> {
|
|
41
|
-
const { data: response } = await this.client.post(`analysis-files/${id}`, nullifyEmptyObjectProperties(data));
|
|
41
|
+
const { data: response } = await this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
|
|
42
42
|
|
|
43
43
|
return response;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
async create(data: Partial<AnalysisBucketFile>): Promise<SingleResourceResponse<AnalysisBucketFile>> {
|
|
47
|
-
const { data: response } = await this.client.post('analysis-files', nullifyEmptyObjectProperties(data));
|
|
47
|
+
const { data: response } = await this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
|
|
48
48
|
|
|
49
49
|
return response;
|
|
50
50
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { AnalysisLog } from '@privateaim/core';
|
|
10
|
+
import type { AnalysisLog } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { AnalysisNode } from '@privateaim/core';
|
|
10
|
+
import type { AnalysisNode } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
10
|
|
|
11
|
-
import type { MasterImage, MasterImageCommand } from '@privateaim/core';
|
|
11
|
+
import type { MasterImage, MasterImageCommand } from '@privateaim/core-kit';
|
|
12
12
|
import { BaseAPI } from '../base';
|
|
13
13
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
14
14
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { MasterImageGroup } from '@privateaim/core';
|
|
10
|
+
import type { MasterImageGroup } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
|
|
13
13
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { Node } from '@privateaim/core';
|
|
10
|
+
import type { Node } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { Project } from '@privateaim/core';
|
|
10
|
+
import type { Project } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
13
13
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { ProjectNode } from '@privateaim/core';
|
|
10
|
+
import type { ProjectNode } from '@privateaim/core-kit';
|
|
11
11
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
12
12
|
import { BaseAPI } from '../base';
|
|
13
13
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { Registry } from '@privateaim/core';
|
|
10
|
+
import type { Registry } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { BuildInput } from 'rapiq';
|
|
9
9
|
import { buildQuery } from 'rapiq';
|
|
10
|
-
import type { RegistryProject } from '@privateaim/core';
|
|
10
|
+
import type { RegistryProject } from '@privateaim/core-kit';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import type { CollectionResourceResponse, SingleResourceResponse } from '../types-base';
|
|
13
13
|
import { nullifyEmptyObjectProperties } from '../../utils';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* view the LICENSE file that was distributed with this source code.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { Registry, RegistryAPICommand, RegistryProject } from '@privateaim/core';
|
|
9
|
-
import { ServiceID } from '@privateaim/core';
|
|
8
|
+
import type { Registry, RegistryAPICommand, RegistryProject } from '@privateaim/core-kit';
|
|
9
|
+
import { ServiceID } from '@privateaim/core-kit';
|
|
10
10
|
import type { SingleResourceResponse } from '../types-base';
|
|
11
11
|
import { BaseAPI } from '../base';
|
|
12
12
|
import { nullifyEmptyObjectProperties } from '../../utils';
|