@arrowsphere/api-client 3.418.0 → 3.420.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,17 @@
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.420.0] - 2026.11.03
7
+ ### Added
8
+ - [licenses] Add `LETSCOPILOT_TENANT_ID` to `CompanyDetailKeyEnum`
9
+
10
+ ## [3.419.0] - 2026.11.03
11
+ ### Fixed
12
+ - [subscriptions] Call `/subscriptions/admin` instead of `/admin/subscriptions` in `listRaw` and `listAdmin`, to be reachable through the public-api custom domain
13
+
14
+ ### Deprecated
15
+ - 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
16
+
6
17
  ## [3.418.0] - 2026.11.03
7
18
  ### Added
8
19
  - [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
  };
@@ -39,6 +39,7 @@ export declare enum EavKeyEnum {
39
39
  }
40
40
  export declare enum CompanyDetailKeyEnum {
41
41
  ADOBE_QUALIFICATION = "ADOBE_QUALIFICATION",
42
+ AVEPOINT_TENANT_OWNER_EMAIL = "AVEPOINT_TENANT_OWNER_EMAIL",
42
43
  AZURE_TENANT_ID = "AZURE_TENANT_ID",
43
44
  CHECK_POINT_DOMAIN_NAME = "CHECK_POINT_DOMAIN_NAME",
44
45
  CHECK_POINT_DOMAIN_NAME_UK = "CHECK_POINT_DOMAIN_NAME_UK",
@@ -55,12 +56,12 @@ export declare enum CompanyDetailKeyEnum {
55
56
  MICRO_EU_ENROL_NU = "MICRO_EU_ENROL_NU",
56
57
  MICROSOFT_ATTESTATION_AGREEMENT = "MICROSOFT_ATTESTATION_AGREEMENT",
57
58
  MIGRATION = "MIGRATION",
59
+ LETSCOPILOT_TENANT_ID = "LETSCOPILOT_TENANT_ID",
58
60
  ORACLE_ONLINE_KEY = "ORACLE_ONLINE_KEY",
59
61
  PRIVATE_CATALOG_EMAIL = "PRIVATE_CATALOG_EMAIL",
60
62
  TENANT_ID = "TENANT_ID",
61
63
  VADE_SECURE_TENANT_ID = "VADE_SECURE_TENANT_ID",
62
- XCP_DOMAIN = "XCP_DOMAIN",
63
- AVEPOINT_TENANT_OWNER_EMAIL = "AVEPOINT_TENANT_OWNER_EMAIL"
64
+ XCP_DOMAIN = "XCP_DOMAIN"
64
65
  }
65
66
  export declare enum ExtraDataFields {
66
67
  COLUMN_NAME = "name",
@@ -56,6 +56,7 @@ var EavKeyEnum;
56
56
  var CompanyDetailKeyEnum;
57
57
  (function (CompanyDetailKeyEnum) {
58
58
  CompanyDetailKeyEnum["ADOBE_QUALIFICATION"] = "ADOBE_QUALIFICATION";
59
+ CompanyDetailKeyEnum["AVEPOINT_TENANT_OWNER_EMAIL"] = "AVEPOINT_TENANT_OWNER_EMAIL";
59
60
  CompanyDetailKeyEnum["AZURE_TENANT_ID"] = "AZURE_TENANT_ID";
60
61
  CompanyDetailKeyEnum["CHECK_POINT_DOMAIN_NAME"] = "CHECK_POINT_DOMAIN_NAME";
61
62
  CompanyDetailKeyEnum["CHECK_POINT_DOMAIN_NAME_UK"] = "CHECK_POINT_DOMAIN_NAME_UK";
@@ -72,12 +73,12 @@ var CompanyDetailKeyEnum;
72
73
  CompanyDetailKeyEnum["MICRO_EU_ENROL_NU"] = "MICRO_EU_ENROL_NU";
73
74
  CompanyDetailKeyEnum["MICROSOFT_ATTESTATION_AGREEMENT"] = "MICROSOFT_ATTESTATION_AGREEMENT";
74
75
  CompanyDetailKeyEnum["MIGRATION"] = "MIGRATION";
76
+ CompanyDetailKeyEnum["LETSCOPILOT_TENANT_ID"] = "LETSCOPILOT_TENANT_ID";
75
77
  CompanyDetailKeyEnum["ORACLE_ONLINE_KEY"] = "ORACLE_ONLINE_KEY";
76
78
  CompanyDetailKeyEnum["PRIVATE_CATALOG_EMAIL"] = "PRIVATE_CATALOG_EMAIL";
77
79
  CompanyDetailKeyEnum["TENANT_ID"] = "TENANT_ID";
78
80
  CompanyDetailKeyEnum["VADE_SECURE_TENANT_ID"] = "VADE_SECURE_TENANT_ID";
79
81
  CompanyDetailKeyEnum["XCP_DOMAIN"] = "XCP_DOMAIN";
80
- CompanyDetailKeyEnum["AVEPOINT_TENANT_OWNER_EMAIL"] = "AVEPOINT_TENANT_OWNER_EMAIL";
81
82
  })(CompanyDetailKeyEnum = exports.CompanyDetailKeyEnum || (exports.CompanyDetailKeyEnum = {}));
82
83
  var ExtraDataFields;
83
84
  (function (ExtraDataFields) {
@@ -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.420.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",