@code.store/arcxp-sdk-ts 5.0.0 → 5.0.1
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ArcAPIOptions, ArcAbstractAPI } from '../abstract-api.js';
|
|
2
|
-
import type { Count,
|
|
2
|
+
import type { Count, CountParams, DetailReport, DetailReportParams, GetANSParams, GetRecentGroupIdsResponse, GetRemainingTimeParams, GetRemainingTimeResponse, PostANSParams, PostANSPayload, Summary, SummaryReportParams } from './types.js';
|
|
3
3
|
export declare class ArcMigrationCenter extends ArcAbstractAPI {
|
|
4
4
|
constructor(options: ArcAPIOptions);
|
|
5
|
-
summary(params?:
|
|
5
|
+
summary(params?: SummaryReportParams): Promise<{
|
|
6
6
|
records: Summary;
|
|
7
7
|
nextFromId: string | undefined;
|
|
8
8
|
}>;
|
|
9
|
-
detailed(params?:
|
|
10
|
-
count(params?:
|
|
9
|
+
detailed(params?: DetailReportParams): Promise<DetailReport>;
|
|
10
|
+
count(params?: CountParams): Promise<Count>;
|
|
11
11
|
postAns(params: PostANSParams, payload: PostANSPayload): Promise<any>;
|
|
12
12
|
getAns(params: GetANSParams): Promise<any>;
|
|
13
13
|
getRemainingTime(params: GetRemainingTimeParams): Promise<GetRemainingTimeResponse>;
|
|
@@ -105,7 +105,7 @@ export type Count = {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
type ANSTypeCount = Partial<Record<MigrationStatus, number>>;
|
|
108
|
-
export type
|
|
108
|
+
export type DetailReportParams = {
|
|
109
109
|
sourceId?: string;
|
|
110
110
|
sourceType?: string;
|
|
111
111
|
ansId?: string;
|
|
@@ -113,11 +113,11 @@ export type DetailReportRequest = {
|
|
|
113
113
|
version?: string;
|
|
114
114
|
documentType?: string;
|
|
115
115
|
};
|
|
116
|
-
export type
|
|
116
|
+
export type CountParams = {
|
|
117
117
|
startDate?: Date;
|
|
118
118
|
endDate?: Date;
|
|
119
119
|
};
|
|
120
|
-
export type
|
|
120
|
+
export type SummaryReportParams = {
|
|
121
121
|
status?: MigrationStatus;
|
|
122
122
|
website: string;
|
|
123
123
|
groupId?: string;
|
package/dist/api/tags/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type ArcAPIOptions, ArcAbstractAPI } from '../abstract-api.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AddTagsPayload, AddTagsResponse, DeleteTagPayload, DeleteTagsResponse, GetAllTagsParams, GetTagsResponse, SearchTagsParams, SearchTagsV2Params } from './types.js';
|
|
3
3
|
export declare class ArcTags extends ArcAbstractAPI {
|
|
4
4
|
constructor(options: ArcAPIOptions);
|
|
5
5
|
getAllTags(params: GetAllTagsParams): Promise<GetTagsResponse>;
|
|
6
6
|
searchTags(params: SearchTagsParams): Promise<GetTagsResponse>;
|
|
7
7
|
searchTagsV2(params: SearchTagsV2Params): Promise<GetTagsResponse>;
|
|
8
|
-
addTags(payload:
|
|
9
|
-
deleteTags(payload:
|
|
8
|
+
addTags(payload: AddTagsPayload): Promise<AddTagsResponse>;
|
|
9
|
+
deleteTags(payload: DeleteTagPayload): Promise<DeleteTagsResponse>;
|
|
10
10
|
}
|
package/dist/api/tags/types.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export type DeleteTagsResponse = {
|
|
|
62
62
|
/**
|
|
63
63
|
* Create new tags. The maximum limit per request is 25 tags or 16 MB of data.
|
|
64
64
|
*/
|
|
65
|
-
export type
|
|
65
|
+
export type AddTagsPayload = {
|
|
66
66
|
slug: string;
|
|
67
67
|
name: string;
|
|
68
68
|
description?: string;
|
|
@@ -70,4 +70,4 @@ export type AddTagRequest = {
|
|
|
70
70
|
/**
|
|
71
71
|
* Delete tags. The maximum limit per request is 25 tags or 16 MB of data.
|
|
72
72
|
*/
|
|
73
|
-
export type
|
|
73
|
+
export type DeleteTagPayload = string[];
|