@arrowsphere/api-client 3.204.0 → 3.205.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,11 @@
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.205.0] - 2025.07.03
7
+
8
+ ### Modified
9
+ - [organizationUnit] Change the URL Endpoint BasePath
10
+
6
11
  ## [3.204.0] - 2025.07.02
7
12
 
8
13
  ### Added
@@ -20,8 +20,8 @@ export declare class OrganizationUnitClient extends AbstractRestfulClient {
20
20
  protected basePath: string;
21
21
  getList(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<OrganizationUnitList>>;
22
22
  create(payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
23
- getOne(organizationUnitRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
24
- update(organizationUnitRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
25
- deleteOne(organizationUnitRef: string, parameters?: Parameters): Promise<void>;
23
+ getOne(ouRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
24
+ update(ouRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
25
+ deleteOne(ouRef: string, parameters?: Parameters): Promise<void>;
26
26
  batchUpdate(action: OrganizationUnitClientActionFields, organizationUnitRef: string, payload: OrganizationUnitClientActionType, parameters?: Parameters): Promise<void>;
27
27
  }
@@ -17,7 +17,7 @@ var OrganizationUnitClientActionFields;
17
17
  class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClient {
18
18
  constructor() {
19
19
  super(...arguments);
20
- this.basePath = '/partners/organizationUnits';
20
+ this.basePath = '/organizationUnit';
21
21
  }
22
22
  async getList(perPage = 25, page = 1, parameters = {}) {
23
23
  this.setPage(page);
@@ -27,24 +27,21 @@ class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClie
27
27
  async create(payload, parameters = {}) {
28
28
  return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.post(payload, parameters));
29
29
  }
30
- async getOne(organizationUnitRef, parameters = {}) {
31
- this.path = `/${organizationUnitRef}`;
30
+ async getOne(ouRef, parameters = {}) {
31
+ this.path = `/ouRef/${ouRef}`;
32
32
  return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.get(parameters));
33
33
  }
34
- async update(organizationUnitRef, payload, parameters = {}) {
35
- this.path = `/${organizationUnitRef}`;
34
+ async update(ouRef, payload, parameters = {}) {
35
+ this.path = `/ouRef/${ouRef}`;
36
36
  return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.patch(payload, parameters));
37
37
  }
38
- async deleteOne(organizationUnitRef, parameters = {}) {
39
- this.path = `/${organizationUnitRef}`;
38
+ async deleteOne(ouRef, parameters = {}) {
39
+ this.path = `/ouRef/${ouRef}`;
40
40
  return await this.delete(parameters);
41
41
  }
42
42
  async batchUpdate(action, organizationUnitRef, payload, parameters = {}) {
43
- this.basePath = '/organizationUnit';
44
43
  this.path = `/${action}/${organizationUnitRef}`;
45
- const response = await this.patch(payload, parameters);
46
- this.basePath = '/partners/organizationUnits';
47
- return response;
44
+ return await this.patch(payload, parameters);
48
45
  }
49
46
  }
50
47
  exports.OrganizationUnitClient = OrganizationUnitClient;
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.204.0",
7
+ "version": "3.205.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",