@code.store/arcxp-sdk-ts 4.48.0 → 4.49.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,10 +1,15 @@
|
|
|
1
1
|
import type { AGallery } from '../../types/gallery';
|
|
2
2
|
import type { ARedirectObject, AStory } from '../../types/story';
|
|
3
3
|
export type GetStoryParams = {
|
|
4
|
-
|
|
5
|
-
published: boolean;
|
|
4
|
+
/** Specifies the ID of the website making the request. Required. */
|
|
6
5
|
website: string;
|
|
7
|
-
website_url
|
|
6
|
+
/** Specifies the Arc ID of the target document. Either _id or website_url must be provided. */
|
|
7
|
+
_id?: string;
|
|
8
|
+
/** The relative URL path of the document on the specified website. Either _id or website_url must be provided. */
|
|
9
|
+
website_url?: string;
|
|
10
|
+
/** Determines whether to return published or draft documents. Defaults to true. */
|
|
11
|
+
published?: boolean;
|
|
12
|
+
/** A comma-separated list of fields to include in the response. Improves performance when specified. */
|
|
8
13
|
included_fields?: string;
|
|
9
14
|
};
|
|
10
15
|
export type GetStoriesByIdsParams = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ArcAPIOptions, ArcAbstractAPI } from '../abstract-api';
|
|
2
|
-
import type { Count, CountRequest, DetailReport, DetailReportRequest, GetANSParams, GetRemainingTimeParams, GetRemainingTimeResponse, PostANSParams, PostANSPayload, Summary, SummaryReportRequest } from './types';
|
|
2
|
+
import type { Count, CountRequest, DetailReport, DetailReportRequest, GetANSParams, GetRecentGroupIdsResponse, GetRemainingTimeParams, GetRemainingTimeResponse, PostANSParams, PostANSPayload, Summary, SummaryReportRequest } from './types';
|
|
3
3
|
export declare class ArcMigrationCenter extends ArcAbstractAPI {
|
|
4
4
|
constructor(options: ArcAPIOptions);
|
|
5
5
|
summary(params?: SummaryReportRequest): Promise<{
|
|
@@ -11,4 +11,5 @@ export declare class ArcMigrationCenter extends ArcAbstractAPI {
|
|
|
11
11
|
postAns(params: PostANSParams, payload: PostANSPayload): Promise<any>;
|
|
12
12
|
getAns(params: GetANSParams): Promise<any>;
|
|
13
13
|
getRemainingTime(params: GetRemainingTimeParams): Promise<GetRemainingTimeResponse>;
|
|
14
|
+
getRecentGroupIds(): Promise<GetRecentGroupIdsResponse>;
|
|
14
15
|
}
|
|
@@ -36,6 +36,10 @@ class ArcMigrationCenter extends abstract_api_1.ArcAbstractAPI {
|
|
|
36
36
|
const { data } = await this.client.get('/report/remaining-time', { params });
|
|
37
37
|
return data;
|
|
38
38
|
}
|
|
39
|
+
async getRecentGroupIds() {
|
|
40
|
+
const { data } = await this.client.get('/report/group-ids');
|
|
41
|
+
return data;
|
|
42
|
+
}
|
|
39
43
|
}
|
|
40
44
|
exports.ArcMigrationCenter = ArcMigrationCenter;
|
|
41
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/migration-center/index.ts"],"names":[],"mappings":";;;AAAA,kDAAqE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/migration-center/index.ts"],"names":[],"mappings":";;;AAAA,kDAAqE;AAgBrE,MAAa,kBAAmB,SAAQ,6BAAc;IACpD,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAA6B;QACzC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,iBAAiB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACxF,MAAM,UAAU,GAAuB,OAAO,CAAC,eAAe,CAAC,CAAC;QAEhE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAA4B;QACzC,MAAM,EAAE,IAAI,EAA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CC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code.store/arcxp-sdk-ts",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.1",
|
|
4
4
|
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"url": "https://github.com/code-store-platform/arcxp-sdk-ts"
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/code-store-platform/arcxp-sdk-ts",
|
|
16
|
-
"files": [
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
17
19
|
"scripts": {
|
|
18
20
|
"build": "tsc",
|
|
19
21
|
"format": "npx @biomejs/biome format --write .",
|
|
@@ -25,7 +27,11 @@
|
|
|
25
27
|
"cs": "npx changeset && npx changeset version",
|
|
26
28
|
"swaggerToTypes": "npx swagger-typescript-api -p ./tmp/swagger.json -o ./tmp -n swaggerTypes.ts"
|
|
27
29
|
},
|
|
28
|
-
"keywords": [
|
|
30
|
+
"keywords": [
|
|
31
|
+
"ArcXP",
|
|
32
|
+
"SDK",
|
|
33
|
+
"Code.Store"
|
|
34
|
+
],
|
|
29
35
|
"author": "code.store",
|
|
30
36
|
"license": "MIT",
|
|
31
37
|
"dependencies": {
|