@code.store/arcxp-sdk-ts 4.12.0 → 4.13.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/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/redirect/index.d.ts +10 -0
- package/dist/api/redirect/index.js +23 -0
- package/dist/api/redirect/index.js.map +1 -0
- package/dist/api/redirect/types.d.ts +31 -0
- package/dist/api/redirect/types.js +3 -0
- package/dist/api/redirect/types.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ArcContent } from './content';
|
|
|
4
4
|
import { ArcDraft } from './draft';
|
|
5
5
|
import { ArcIdentity } from './identity';
|
|
6
6
|
import { ArcIFX } from './ifx';
|
|
7
|
+
import { ArcRedirect } from './redirect';
|
|
7
8
|
import { ArcMigrationCenter } from './migration-center';
|
|
8
9
|
import { ArcProtoCenter } from './photo-center';
|
|
9
10
|
import { ArcSales } from './sales';
|
|
@@ -18,6 +19,7 @@ export declare const ArcAPI: (options: ArcAPIOptions) => {
|
|
|
18
19
|
Draft: ArcDraft;
|
|
19
20
|
Identity: ArcIdentity;
|
|
20
21
|
IFX: ArcIFX;
|
|
22
|
+
Redirect: ArcRedirect;
|
|
21
23
|
MigrationCenter: ArcMigrationCenter;
|
|
22
24
|
Sales: ArcSales;
|
|
23
25
|
Site: ArcSite;
|
package/dist/api/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const content_1 = require("./content");
|
|
|
6
6
|
const draft_1 = require("./draft");
|
|
7
7
|
const identity_1 = require("./identity");
|
|
8
8
|
const ifx_1 = require("./ifx");
|
|
9
|
+
const redirect_1 = require("./redirect");
|
|
9
10
|
const migration_center_1 = require("./migration-center");
|
|
10
11
|
const photo_center_1 = require("./photo-center");
|
|
11
12
|
const sales_1 = require("./sales");
|
|
@@ -19,6 +20,7 @@ const ArcAPI = (options) => {
|
|
|
19
20
|
Draft: new draft_1.ArcDraft(options),
|
|
20
21
|
Identity: new identity_1.ArcIdentity(options),
|
|
21
22
|
IFX: new ifx_1.ArcIFX(options),
|
|
23
|
+
Redirect: new redirect_1.ArcRedirect(options),
|
|
22
24
|
MigrationCenter: new migration_center_1.ArcMigrationCenter(options),
|
|
23
25
|
Sales: new sales_1.ArcSales(options),
|
|
24
26
|
Site: new site_1.ArcSite(options),
|
package/dist/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AACrC,uCAAuC;AACvC,mCAAmC;AACnC,yCAAyC;AACzC,+BAA+B;AAC/B,yDAAwD;AACxD,iDAAgD;AAChD,mCAAmC;AACnC,uDAAsD;AACtD,iCAAiC;AACjC,uCAAuC;AACvC,2CAAuC;AAEhC,MAAM,MAAM,GAAG,CAAC,OAAsB,EAAE,EAAE;IAC/C,MAAM,GAAG,GAAG;QACV,MAAM,EAAE,IAAI,kBAAS,CAAC,OAAO,CAAC;QAC9B,KAAK,EAAE,IAAI,gBAAQ,CAAC,OAAO,CAAC;QAC5B,QAAQ,EAAE,IAAI,sBAAW,CAAC,OAAO,CAAC;QAClC,GAAG,EAAE,IAAI,YAAM,CAAC,OAAO,CAAC;QACxB,eAAe,EAAE,IAAI,qCAAkB,CAAC,OAAO,CAAC;QAChD,KAAK,EAAE,IAAI,gBAAQ,CAAC,OAAO,CAAC;QAC5B,IAAI,EAAE,IAAI,cAAO,CAAC,OAAO,CAAC;QAC1B,OAAO,EAAE,IAAI,oBAAU,CAAC,OAAO,CAAC;QAChC,OAAO,EAAE,IAAI,oBAAU,CAAC,OAAO,CAAC;QAChC,cAAc,EAAE,IAAI,mCAAiB,CAAC,OAAO,CAAC;QAC9C,WAAW,EAAE,IAAI,6BAAc,CAAC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AAC;QAChD,KAAK,EAAE,IAAI,gBAAQ,CAAC,OAAO,CAAC;QAC5B,IAAI,EAAE,IAAI,cAAO,CAAC,OAAO,CAAC;QAC1B,OAAO,EAAE,IAAI,oBAAU,CAAC,OAAO,CAAC;QAChC,OAAO,EAAE,IAAI,oBAAU,CAAC,OAAO,CAAC;QAChC,cAAc,EAAE,IAAI,mCAAiB,CAAC,OAAO,CAAC;QAC9C,WAAW,EAAE,IAAI,6BAAc,CAAC,OAAO,CAAC;KACzC,CAAC;IAEF,OAAO;QACL,GAAG,GAAG;QACN,SAAS,EAAE,CAAC,GAAW,EAAE,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACtD,CAAC;QACD,YAAY,EAAE,CAAC,QAA8B,GAAG,EAAE,EAAE;YAClD,MAAM,OAAO,GAAG,aAAa,OAAO,CAAC,WAAW,CAAC,gBAAgB,iDAAiD,KAAK,EAAE,CAAC;YAC1H,MAAM,OAAO,GAAG;gBACd,aAAa,EAAE,UAAU,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE;aAC3D,CAAC;YACF,OAAO,IAAI,oBAAQ,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AA7BW,QAAA,MAAM,UA6BjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ArcAbstractAPI, ArcAPIOptions } from '../abstract-api';
|
|
2
|
+
import { ArcRedirectRuleContentType, ArcRedirectRulesResponse, ArcRedirectRuleType } from './types';
|
|
3
|
+
export declare class ArcRedirect extends ArcAbstractAPI {
|
|
4
|
+
constructor(options: ArcAPIOptions);
|
|
5
|
+
getRedirects(orgSiteEnv: string): Promise<ArcRedirectRulesResponse>;
|
|
6
|
+
updateArcRedirectRule(orgSiteEnv: string, redirectID: string, redirectRuleContent: ArcRedirectRuleContentType): Promise<ArcRedirectRuleType>;
|
|
7
|
+
activateRedirectsVersion(orgSiteEnv: string): Promise<{
|
|
8
|
+
task_id: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArcRedirect = void 0;
|
|
4
|
+
const abstract_api_1 = require("../abstract-api");
|
|
5
|
+
class ArcRedirect extends abstract_api_1.ArcAbstractAPI {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super({ ...options, apiPath: `delivery-api/v1/cloudlet/redirector/site` });
|
|
8
|
+
}
|
|
9
|
+
async getRedirects(orgSiteEnv) {
|
|
10
|
+
const { data } = await this.client.get(`/${orgSiteEnv}/rule?limit=1000`);
|
|
11
|
+
return data;
|
|
12
|
+
}
|
|
13
|
+
async updateArcRedirectRule(orgSiteEnv, redirectID, redirectRuleContent) {
|
|
14
|
+
const { data } = await this.client.put(`/${orgSiteEnv}/rule/${redirectID}`, redirectRuleContent);
|
|
15
|
+
return data;
|
|
16
|
+
}
|
|
17
|
+
async activateRedirectsVersion(orgSiteEnv) {
|
|
18
|
+
const { data } = await this.client.post(`/${orgSiteEnv}/version`);
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.ArcRedirect = ArcRedirect;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/redirect/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAGhE,MAAa,WAAY,SAAQ,6BAAc;IAC7C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAkB;QACnC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,UAAU,kBAAkB,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,qBAAqB,CACzB,UAAkB,EAClB,UAAkB,EAClB,mBAA+C;QAE/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,UAAU,SAAS,UAAU,EAAE,EAAE,mBAAmB,CAAC,CAAC;QACjG,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,UAAkB;QAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,UAAU,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAvBD,kCAuBC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type ArcRedirectRuleMatchType = {
|
|
2
|
+
caseSensitive: boolean;
|
|
3
|
+
matchOperator: string;
|
|
4
|
+
matchType: string;
|
|
5
|
+
matchValue: string;
|
|
6
|
+
negate: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ArcRedirectRuleContentType = {
|
|
9
|
+
type: string;
|
|
10
|
+
end: number;
|
|
11
|
+
matches: ArcRedirectRuleMatchType[];
|
|
12
|
+
name: string;
|
|
13
|
+
redirectURL: string;
|
|
14
|
+
start: number;
|
|
15
|
+
statusCode: number;
|
|
16
|
+
useIncomingQueryString: boolean;
|
|
17
|
+
useRelativeUrl: string;
|
|
18
|
+
};
|
|
19
|
+
export type ArcRedirectRuleType = {
|
|
20
|
+
status: string;
|
|
21
|
+
id: string;
|
|
22
|
+
siteId: string;
|
|
23
|
+
policyType: string;
|
|
24
|
+
sort_key: number;
|
|
25
|
+
submittedBy: string;
|
|
26
|
+
submittedAt: string;
|
|
27
|
+
ruleContent: ArcRedirectRuleContentType;
|
|
28
|
+
};
|
|
29
|
+
export type ArcRedirectRulesResponse = {
|
|
30
|
+
rules: ArcRedirectRuleType[];
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/redirect/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './api/identity/types';
|
|
|
7
7
|
export * from './api/draft/types';
|
|
8
8
|
export * from './api/site/types';
|
|
9
9
|
export * from './api/ifx/types';
|
|
10
|
+
export * from './api/redirect/types';
|
|
10
11
|
export * from './api/migration-center/types';
|
|
11
12
|
export * from './api/sales/types';
|
|
12
13
|
export * from './api/websked/types';
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./api/identity/types"), exports);
|
|
|
41
41
|
__exportStar(require("./api/draft/types"), exports);
|
|
42
42
|
__exportStar(require("./api/site/types"), exports);
|
|
43
43
|
__exportStar(require("./api/ifx/types"), exports);
|
|
44
|
+
__exportStar(require("./api/redirect/types"), exports);
|
|
44
45
|
__exportStar(require("./api/migration-center/types"), exports);
|
|
45
46
|
__exportStar(require("./api/sales/types"), exports);
|
|
46
47
|
__exportStar(require("./api/websked/types"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAiBtB,uFAjBA,YAAM,OAiBA;AAhBf,yDAAwE;AAgB7C,+FAhBlB,iCAAc,OAgBkB;AAfzC,+CAA2C;AAe1B,yFAfR,oBAAQ,OAeQ;AAdzB,uCAAuC;AAckC,yFAdhE,gBAAQ,OAcgE;AAbjF,kDAAoC;AAa2B,4BAAQ;AAXvE,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,kDAAgC;AAChC,uDAAqC;AACrC,+DAA6C;AAC7C,oDAAkC;AAClC,sDAAoC;AACpC,sDAAoC;AACpC,2DAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code.store/arcxp-sdk-ts",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
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",
|