@code.store/arcxp-sdk-ts 4.47.2 → 4.48.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.
@@ -0,0 +1,8 @@
1
+ import type { AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ import { type ArcAPIOptions, ArcAbstractAPI } from '../abstract-api';
3
+ export interface RequestConfig extends AxiosRequestConfig {
4
+ }
5
+ export declare class Custom extends ArcAbstractAPI {
6
+ constructor(options: ArcAPIOptions);
7
+ request<T = unknown>(endpoint: `/${string}`, config?: AxiosRequestConfig): Promise<AxiosResponse<T>>;
8
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Custom = void 0;
4
+ const abstract_api_1 = require("../abstract-api");
5
+ class Custom extends abstract_api_1.ArcAbstractAPI {
6
+ constructor(options) {
7
+ super({ ...options, apiPath: '' });
8
+ }
9
+ async request(endpoint, config = {}) {
10
+ const response = await this.client.request({
11
+ url: endpoint,
12
+ ...config,
13
+ });
14
+ return response;
15
+ }
16
+ }
17
+ exports.Custom = Custom;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/custom/index.ts"],"names":[],"mappings":";;;AACA,kDAAqE;AAIrE,MAAa,MAAO,SAAQ,6BAAc;IACxC,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAEM,KAAK,CAAC,OAAO,CAClB,QAAsB,EACtB,SAA6B,EAAE;QAE/B,MAAM,QAAQ,GAAqB,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAI;YAC9D,GAAG,EAAE,QAAQ;YACb,GAAG,MAAM;SACV,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAhBD,wBAgBC"}
@@ -1,4 +1,4 @@
1
- import { AStory } from '../../types/story';
1
+ import type { AStory } from '../../types/story';
2
2
  import { type ArcAPIOptions, ArcAbstractAPI } from '../abstract-api';
3
3
  import type { Circulations, CreateDocumentRedirectPayload, CreateExternalRedirectPayload, CreateRedirectPayload, Document, DocumentRedirect, ExternalRedirect, Revision, Revisions, UpdateDraftRevisionPayload } from './types';
4
4
  export declare class ArcDraft extends ArcAbstractAPI {
@@ -2,6 +2,7 @@ import type { ArcAPIOptions } from './abstract-api';
2
2
  import { ArcAuthor } from './author';
3
3
  import { ArcContent } from './content';
4
4
  import { ArcContentOps } from './content-ops';
5
+ import { Custom } from './custom';
5
6
  import { ArcDraft } from './draft';
6
7
  import { GlobalSettings } from './global-settings';
7
8
  import { ArcIdentity } from './identity';
@@ -33,5 +34,6 @@ export declare const ArcAPI: (options: ArcAPIOptions) => {
33
34
  GlobalSettings: GlobalSettings;
34
35
  Tags: ArcTags;
35
36
  ContentOps: ArcContentOps;
37
+ Custom: Custom;
36
38
  };
37
39
  export type ArcAPIType = ReturnType<typeof ArcAPI>;
package/dist/api/index.js CHANGED
@@ -4,6 +4,7 @@ exports.ArcAPI = void 0;
4
4
  const author_1 = require("./author");
5
5
  const content_1 = require("./content");
6
6
  const content_ops_1 = require("./content-ops");
7
+ const custom_1 = require("./custom");
7
8
  const draft_1 = require("./draft");
8
9
  const global_settings_1 = require("./global-settings");
9
10
  const identity_1 = require("./identity");
@@ -34,6 +35,7 @@ const ArcAPI = (options) => {
34
35
  GlobalSettings: new global_settings_1.GlobalSettings(options),
35
36
  Tags: new tags_1.ArcTags(options),
36
37
  ContentOps: new content_ops_1.ArcContentOps(options),
38
+ Custom: new custom_1.Custom(options),
37
39
  };
38
40
  return {
39
41
  ...API,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;AACA,qCAAqC;AACrC,uCAAuC;AACvC,+CAA8C;AAC9C,mCAAmC;AACnC,uDAAmD;A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AC;QACtC,MAAM,EAAE,IAAI,eAAM,CAAC,OAAO,CAAC;KAC5B,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,IAAI,+BAAe,CAAC,OAAO,CAAC;KAC3C,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,MAAM,UA2BjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code.store/arcxp-sdk-ts",
3
- "version": "4.47.2",
3
+ "version": "4.48.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",
@@ -13,9 +13,7 @@
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": [
17
- "dist"
18
- ],
16
+ "files": ["dist"],
19
17
  "scripts": {
20
18
  "build": "tsc",
21
19
  "format": "npx @biomejs/biome format --write .",
@@ -27,11 +25,7 @@
27
25
  "cs": "npx changeset && npx changeset version",
28
26
  "swaggerToTypes": "npx swagger-typescript-api -p ./tmp/swagger.json -o ./tmp -n swaggerTypes.ts"
29
27
  },
30
- "keywords": [
31
- "ArcXP",
32
- "SDK",
33
- "Code.Store"
34
- ],
28
+ "keywords": ["ArcXP", "SDK", "Code.Store"],
35
29
  "author": "code.store",
36
30
  "license": "MIT",
37
31
  "dependencies": {