@arrowsphere/api-client 3.162.0-rc.ybo.0 → 3.162.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,10 +3,15 @@
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
- ## [Unreleased]
6
+ ## [3.162.0] - 2025.01.07
7
7
 
8
8
  ### Added
9
- - Add activation expired to licence events
9
+ - [customers] add reactivate customer feature
10
+
11
+ ## [3.161.1] - 2025.01.06
12
+
13
+ ### Fixed
14
+ - [customers] update PostCustomerPayload, add not mandatory field registration_number
10
15
 
11
16
  ## [3.161.0] - 2024.12.23
12
17
 
@@ -71,6 +71,7 @@ export declare type PostCustomerPayload = {
71
71
  [CustomerFields.COLUMN_BILLING_ID]?: string;
72
72
  [CustomerFields.COLUMN_INTERNAL_REFERENCE]?: string;
73
73
  [CustomerFields.COLUMN_CONTACT]?: PostCustomerContact;
74
+ [CustomerFields.COLUMN_REGISTRATION_NUMBER]?: string;
74
75
  };
75
76
  export declare enum PostCustomerInvitationFields {
76
77
  COLUMN_CONTACT_ID = "contactId",
@@ -118,6 +119,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
118
119
  patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
119
120
  createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
120
121
  updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerUpdated | APIResponseError>;
122
+ reactivateCustomer(customerRef: string, parameters?: Parameters): Promise<void>;
121
123
  postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
122
124
  postCustomerMigration(customerReference: string, payload: PostCustomerMigrationPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerMigration | APIResponseError>;
123
125
  }
@@ -90,6 +90,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
90
90
  this.path = `/${customerReference}`;
91
91
  return await this.patch(payload, parameters, {}, { returnAxiosData });
92
92
  }
93
+ async reactivateCustomer(customerRef, parameters = {}) {
94
+ this.path = `/${customerRef}`;
95
+ return await this.put({}, parameters);
96
+ }
93
97
  async postCustomerInvitation(payload, parameters = {}) {
94
98
  this.path = `/invitations`;
95
99
  return new getResult_1.GetResult(dataInvitation_1.DataInvitation, await this.post(payload, parameters));
@@ -39,7 +39,6 @@ export declare enum LicenseEventStatusCode {
39
39
  REJECTED = "85",
40
40
  COMPLETED = "86",
41
41
  SUSPENDED = "87",
42
- ACTIVATION_EXPIRED = "88",
43
42
  CANCELLED = "89",
44
43
  TRANSFERRED = "126"
45
44
  }
@@ -45,7 +45,6 @@ var LicenseEventStatusCode;
45
45
  LicenseEventStatusCode["REJECTED"] = "85";
46
46
  LicenseEventStatusCode["COMPLETED"] = "86";
47
47
  LicenseEventStatusCode["SUSPENDED"] = "87";
48
- LicenseEventStatusCode["ACTIVATION_EXPIRED"] = "88";
49
48
  LicenseEventStatusCode["CANCELLED"] = "89";
50
49
  LicenseEventStatusCode["TRANSFERRED"] = "126";
51
50
  })(LicenseEventStatusCode = exports.LicenseEventStatusCode || (exports.LicenseEventStatusCode = {}));
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.162.0-rc.ybo.0",
7
+ "version": "3.162.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",