@aignostics/sdk 3.1.0 → 3.2.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/aignostics-sdk-3.2.0.tgz +0 -0
- package/dist/{api-CZ17GBr_.d.cts → api-Ce-0fPc3.d.cts} +1 -1
- package/dist/{api-CZ17GBr_.d.ts → api-Ce-0fPc3.d.ts} +1 -1
- package/dist/index.cjs +18 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/dist/test-utils/http-mocks.d.cts +1 -1
- package/dist/test-utils/http-mocks.d.ts +1 -1
- package/package.json +1 -1
- package/dist/aignostics-sdk-3.1.0.tgz +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, R as RunReadResponse, b as RunCreationRequest, c as RunCreationResponse, I as ItemResultReadResponse, V as VersionReadResponse } from './api-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, R as RunReadResponse, b as RunCreationRequest, c as RunCreationResponse, I as ItemState, d as ItemTerminationReason, e as ItemResultReadResponse, V as VersionReadResponse } from './api-Ce-0fPc3.cjs';
|
|
2
|
+
export { f as ApplicationVersion, g as ArtifactOutput, h as ArtifactState, i as ArtifactTerminationReason, Z as Configuration, Y as ConfigurationParameters, C as CustomMetadataUpdateRequest, j as CustomMetadataUpdateResponse, H as HTTPValidationError, k as InputArtifact, l as InputArtifactCreationRequest, m as ItemCreationRequest, n as ItemOutput, M as MeReadResponse, O as OrganizationReadResponse, o as OutputArtifact, p as OutputArtifactResultReadResponse, q as OutputArtifactScope, r as OutputArtifactVisibility, X as PublicApi, D as PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, P as PublicApiAxiosParamCreator, E as PublicApiCancelRunV1RunsRunIdCancelPostRequest, F as PublicApiCreateRunV1RunsPostRequest, G as PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, z as PublicApiFactory, y as PublicApiFp, J as PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, K as PublicApiGetRunV1RunsRunIdGetRequest, B as PublicApiInterface, L as PublicApiListApplicationsV1ApplicationsGetRequest, N as PublicApiListRunItemsV1RunsRunIdItemsGetRequest, Q as PublicApiListRunsV1RunsGetRequest, S as PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, T as PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, W as PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, s as RunItemStatistics, t as RunOutput, u as RunState, v as RunTerminationReason, U as UserReadResponse, w as ValidationError, x as ValidationErrorLocInner } from './api-Ce-0fPc3.cjs';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -33,11 +33,22 @@ interface PlatformSDK {
|
|
|
33
33
|
listApplicationRuns(options?: {
|
|
34
34
|
applicationId?: string;
|
|
35
35
|
applicationVersion?: string;
|
|
36
|
+
page?: number;
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
customMetadata?: string;
|
|
39
|
+
sort?: string[];
|
|
36
40
|
}): Promise<RunReadResponse[]>;
|
|
37
41
|
createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse>;
|
|
38
42
|
getRun(applicationRunId: string): Promise<RunReadResponse>;
|
|
39
43
|
cancelApplicationRun(applicationRunId: string): Promise<void>;
|
|
40
|
-
listRunResults(applicationRunId: string
|
|
44
|
+
listRunResults(applicationRunId: string, options?: {
|
|
45
|
+
page?: number;
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
sort?: string[];
|
|
48
|
+
externalIdIn?: string[];
|
|
49
|
+
state?: ItemState;
|
|
50
|
+
terminationReason?: ItemTerminationReason;
|
|
51
|
+
}): Promise<ItemResultReadResponse[]>;
|
|
41
52
|
getApplicationVersionDetails(applicationId: string, version: string): Promise<VersionReadResponse>;
|
|
42
53
|
}
|
|
43
54
|
/**
|
|
@@ -202,6 +213,8 @@ declare class PlatformSDKHttp implements PlatformSDK {
|
|
|
202
213
|
applicationVersion?: string;
|
|
203
214
|
customMetadata?: string;
|
|
204
215
|
sort?: string[];
|
|
216
|
+
page?: number;
|
|
217
|
+
pageSize?: number;
|
|
205
218
|
}): Promise<RunReadResponse[]>;
|
|
206
219
|
/**
|
|
207
220
|
* Create and submit a new application run for processing
|
|
@@ -326,7 +339,14 @@ declare class PlatformSDKHttp implements PlatformSDK {
|
|
|
326
339
|
* }
|
|
327
340
|
* ```
|
|
328
341
|
*/
|
|
329
|
-
listRunResults(applicationRunId: string
|
|
342
|
+
listRunResults(applicationRunId: string, { page, pageSize, sort, externalIdIn, state, terminationReason, }?: {
|
|
343
|
+
page?: number;
|
|
344
|
+
pageSize?: number;
|
|
345
|
+
sort?: string[];
|
|
346
|
+
externalIdIn?: string[];
|
|
347
|
+
state?: ItemState;
|
|
348
|
+
terminationReason?: ItemTerminationReason;
|
|
349
|
+
}): Promise<ItemResultReadResponse[]>;
|
|
330
350
|
/**
|
|
331
351
|
* Get the current version of the SDK
|
|
332
352
|
*
|
|
@@ -454,4 +474,4 @@ declare class ConfigurationError extends BaseError {
|
|
|
454
474
|
constructor(message: string, options?: BaseErrorOptions);
|
|
455
475
|
}
|
|
456
476
|
|
|
457
|
-
export { APIError, ApplicationReadResponse, ApplicationReadShortResponse, AuthenticationError, BaseError, ConfigurationError, ItemResultReadResponse, type PlatformSDK, type PlatformSDKConfig, PlatformSDKHttp, RunCreationRequest, RunCreationResponse, RunReadResponse, type TokenProvider, VersionReadResponse, PlatformSDKHttp as default };
|
|
477
|
+
export { APIError, ApplicationReadResponse, ApplicationReadShortResponse, AuthenticationError, BaseError, ConfigurationError, ItemResultReadResponse, ItemState, ItemTerminationReason, type PlatformSDK, type PlatformSDKConfig, PlatformSDKHttp, RunCreationRequest, RunCreationResponse, RunReadResponse, type TokenProvider, VersionReadResponse, PlatformSDKHttp as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, R as RunReadResponse, b as RunCreationRequest, c as RunCreationResponse, I as ItemResultReadResponse, V as VersionReadResponse } from './api-
|
|
2
|
-
export {
|
|
1
|
+
import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, R as RunReadResponse, b as RunCreationRequest, c as RunCreationResponse, I as ItemState, d as ItemTerminationReason, e as ItemResultReadResponse, V as VersionReadResponse } from './api-Ce-0fPc3.js';
|
|
2
|
+
export { f as ApplicationVersion, g as ArtifactOutput, h as ArtifactState, i as ArtifactTerminationReason, Z as Configuration, Y as ConfigurationParameters, C as CustomMetadataUpdateRequest, j as CustomMetadataUpdateResponse, H as HTTPValidationError, k as InputArtifact, l as InputArtifactCreationRequest, m as ItemCreationRequest, n as ItemOutput, M as MeReadResponse, O as OrganizationReadResponse, o as OutputArtifact, p as OutputArtifactResultReadResponse, q as OutputArtifactScope, r as OutputArtifactVisibility, X as PublicApi, D as PublicApiApplicationVersionDetailsV1ApplicationsApplicationIdVersionsVersionGetRequest, P as PublicApiAxiosParamCreator, E as PublicApiCancelRunV1RunsRunIdCancelPostRequest, F as PublicApiCreateRunV1RunsPostRequest, G as PublicApiDeleteRunItemsV1RunsRunIdArtifactsDeleteRequest, z as PublicApiFactory, y as PublicApiFp, J as PublicApiGetItemByRunV1RunsRunIdItemsExternalIdGetRequest, K as PublicApiGetRunV1RunsRunIdGetRequest, B as PublicApiInterface, L as PublicApiListApplicationsV1ApplicationsGetRequest, N as PublicApiListRunItemsV1RunsRunIdItemsGetRequest, Q as PublicApiListRunsV1RunsGetRequest, S as PublicApiPutItemCustomMetadataByRunV1RunsRunIdItemsExternalIdCustomMetadataPutRequest, T as PublicApiPutRunCustomMetadataV1RunsRunIdCustomMetadataPutRequest, W as PublicApiReadApplicationByIdV1ApplicationsApplicationIdGetRequest, s as RunItemStatistics, t as RunOutput, u as RunState, v as RunTerminationReason, U as UserReadResponse, w as ValidationError, x as ValidationErrorLocInner } from './api-Ce-0fPc3.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -33,11 +33,22 @@ interface PlatformSDK {
|
|
|
33
33
|
listApplicationRuns(options?: {
|
|
34
34
|
applicationId?: string;
|
|
35
35
|
applicationVersion?: string;
|
|
36
|
+
page?: number;
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
customMetadata?: string;
|
|
39
|
+
sort?: string[];
|
|
36
40
|
}): Promise<RunReadResponse[]>;
|
|
37
41
|
createApplicationRun(request: RunCreationRequest): Promise<RunCreationResponse>;
|
|
38
42
|
getRun(applicationRunId: string): Promise<RunReadResponse>;
|
|
39
43
|
cancelApplicationRun(applicationRunId: string): Promise<void>;
|
|
40
|
-
listRunResults(applicationRunId: string
|
|
44
|
+
listRunResults(applicationRunId: string, options?: {
|
|
45
|
+
page?: number;
|
|
46
|
+
pageSize?: number;
|
|
47
|
+
sort?: string[];
|
|
48
|
+
externalIdIn?: string[];
|
|
49
|
+
state?: ItemState;
|
|
50
|
+
terminationReason?: ItemTerminationReason;
|
|
51
|
+
}): Promise<ItemResultReadResponse[]>;
|
|
41
52
|
getApplicationVersionDetails(applicationId: string, version: string): Promise<VersionReadResponse>;
|
|
42
53
|
}
|
|
43
54
|
/**
|
|
@@ -202,6 +213,8 @@ declare class PlatformSDKHttp implements PlatformSDK {
|
|
|
202
213
|
applicationVersion?: string;
|
|
203
214
|
customMetadata?: string;
|
|
204
215
|
sort?: string[];
|
|
216
|
+
page?: number;
|
|
217
|
+
pageSize?: number;
|
|
205
218
|
}): Promise<RunReadResponse[]>;
|
|
206
219
|
/**
|
|
207
220
|
* Create and submit a new application run for processing
|
|
@@ -326,7 +339,14 @@ declare class PlatformSDKHttp implements PlatformSDK {
|
|
|
326
339
|
* }
|
|
327
340
|
* ```
|
|
328
341
|
*/
|
|
329
|
-
listRunResults(applicationRunId: string
|
|
342
|
+
listRunResults(applicationRunId: string, { page, pageSize, sort, externalIdIn, state, terminationReason, }?: {
|
|
343
|
+
page?: number;
|
|
344
|
+
pageSize?: number;
|
|
345
|
+
sort?: string[];
|
|
346
|
+
externalIdIn?: string[];
|
|
347
|
+
state?: ItemState;
|
|
348
|
+
terminationReason?: ItemTerminationReason;
|
|
349
|
+
}): Promise<ItemResultReadResponse[]>;
|
|
330
350
|
/**
|
|
331
351
|
* Get the current version of the SDK
|
|
332
352
|
*
|
|
@@ -454,4 +474,4 @@ declare class ConfigurationError extends BaseError {
|
|
|
454
474
|
constructor(message: string, options?: BaseErrorOptions);
|
|
455
475
|
}
|
|
456
476
|
|
|
457
|
-
export { APIError, ApplicationReadResponse, ApplicationReadShortResponse, AuthenticationError, BaseError, ConfigurationError, ItemResultReadResponse, type PlatformSDK, type PlatformSDKConfig, PlatformSDKHttp, RunCreationRequest, RunCreationResponse, RunReadResponse, type TokenProvider, VersionReadResponse, PlatformSDKHttp as default };
|
|
477
|
+
export { APIError, ApplicationReadResponse, ApplicationReadShortResponse, AuthenticationError, BaseError, ConfigurationError, ItemResultReadResponse, ItemState, ItemTerminationReason, type PlatformSDK, type PlatformSDKConfig, PlatformSDKHttp, RunCreationRequest, RunCreationResponse, RunReadResponse, type TokenProvider, VersionReadResponse, PlatformSDKHttp as default };
|
package/dist/index.js
CHANGED
|
@@ -1477,7 +1477,9 @@ var PlatformSDKHttp = class {
|
|
|
1477
1477
|
applicationId: options?.applicationId,
|
|
1478
1478
|
applicationVersion: options?.applicationVersion,
|
|
1479
1479
|
customMetadata: options?.customMetadata,
|
|
1480
|
-
sort: options?.sort
|
|
1480
|
+
sort: options?.sort,
|
|
1481
|
+
page: options?.page,
|
|
1482
|
+
pageSize: options?.pageSize
|
|
1481
1483
|
});
|
|
1482
1484
|
return response.data;
|
|
1483
1485
|
} catch (error) {
|
|
@@ -1636,11 +1638,24 @@ var PlatformSDKHttp = class {
|
|
|
1636
1638
|
* }
|
|
1637
1639
|
* ```
|
|
1638
1640
|
*/
|
|
1639
|
-
async listRunResults(applicationRunId
|
|
1641
|
+
async listRunResults(applicationRunId, {
|
|
1642
|
+
page,
|
|
1643
|
+
pageSize,
|
|
1644
|
+
sort,
|
|
1645
|
+
externalIdIn,
|
|
1646
|
+
state,
|
|
1647
|
+
terminationReason
|
|
1648
|
+
} = {}) {
|
|
1640
1649
|
const client = await this.#getClient();
|
|
1641
1650
|
try {
|
|
1642
1651
|
const response = await client.listRunItemsV1RunsRunIdItemsGet({
|
|
1643
|
-
runId: applicationRunId
|
|
1652
|
+
runId: applicationRunId,
|
|
1653
|
+
page,
|
|
1654
|
+
pageSize,
|
|
1655
|
+
sort,
|
|
1656
|
+
externalIdIn,
|
|
1657
|
+
state,
|
|
1658
|
+
terminationReason
|
|
1644
1659
|
});
|
|
1645
1660
|
return response.data;
|
|
1646
1661
|
} catch (error) {
|