@arrowsphere/api-client 3.418.0 → 3.419.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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.419.0] - 2026.11.03
7
+ ### Fixed
8
+ - [subscriptions] Call `/subscriptions/admin` instead of `/admin/subscriptions` in `listRaw` and `listAdmin`, to be reachable through the public-api custom domain
9
+
10
+ ### Deprecated
11
+ - Deprecate the `isAdmin` option of `Options` (REST and GraphQL clients): the `/admin/<service>` prefix is not routed by the public-api custom domain. It will be removed in the next major version
12
+
6
13
  ## [3.418.0] - 2026.11.03
7
14
  ### Added
8
15
  - [quotes] Add `needsEligibility` to quote `ItemData`
@@ -38,6 +38,11 @@ export interface PayloadWithFile {
38
38
  [FileUploadKeys.File]?: File;
39
39
  }
40
40
  export declare type Options = {
41
+ /**
42
+ * @deprecated The `/admin/<service>` prefix is not routed by the public-api custom domain,
43
+ * declare the admin route as a path of the service instead (e.g. `/subscriptions/admin`).
44
+ * Will be removed in the next major version.
45
+ */
41
46
  isAdmin?: boolean;
42
47
  returnAxiosData?: boolean;
43
48
  };
@@ -71,9 +71,9 @@ export declare class SubscriptionsClient extends AbstractRestfulClient {
71
71
  */
72
72
  protected basePath: string;
73
73
  /**
74
- * The path of the List endpoint
74
+ * The path of the admin List endpoint
75
75
  */
76
- private LIST_PATH;
76
+ private ADMIN_LIST_PATH;
77
77
  /**
78
78
  * Pagination for these endpoints are camel cased (`&perPage=x` instead of `&per_page=x`)
79
79
  */
@@ -14,9 +14,9 @@ class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient
14
14
  */
15
15
  this.basePath = '/subscriptions';
16
16
  /**
17
- * The path of the List endpoint
17
+ * The path of the admin List endpoint
18
18
  */
19
- this.LIST_PATH = '';
19
+ this.ADMIN_LIST_PATH = '/admin';
20
20
  /**
21
21
  * Pagination for these endpoints are camel cased (`&perPage=x` instead of `&per_page=x`)
22
22
  */
@@ -30,8 +30,8 @@ class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient
30
30
  *
31
31
  * @returns Promise\<AxiosResponse\<{@link AdminSubscriptionsListData}\>\> */
32
32
  async listRaw(data = {}) {
33
- this.path = this.LIST_PATH;
34
- return this.get(data, {}, { isAdmin: true });
33
+ this.path = this.ADMIN_LIST_PATH;
34
+ return this.get(data);
35
35
  }
36
36
  /**
37
37
  * Lists subscriptions and returns a SubscriptionsListResult to manipulate the results.
@@ -46,7 +46,7 @@ class SubscriptionsClient extends abstractRestfulClient_1.AbstractRestfulClient
46
46
  *
47
47
  */
48
48
  async list(filters = {}) {
49
- return this.get(filters, {}, { isAdmin: false });
49
+ return this.get(filters);
50
50
  }
51
51
  async listAdmin(filters = {}, perPage = 100, page = 1) {
52
52
  this.setPerPage(perPage);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.418.0",
7
+ "version": "3.419.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",