@arrowsphere/api-client 3.162.0-rc.ybo.0 → 3.162.1-rc-bdj-1
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
|
-
## [
|
|
6
|
+
## [3.162.0] - 2025.01.07
|
|
7
7
|
|
|
8
8
|
### Added
|
|
9
|
-
-
|
|
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
|
|
|
@@ -68,9 +68,16 @@ export declare type PostCustomerPayload = {
|
|
|
68
68
|
[CustomerFields.COLUMN_HEADCOUNT]?: number;
|
|
69
69
|
[CustomerFields.COLUMN_TAX_NUMBER]?: string;
|
|
70
70
|
[CustomerFields.COLUMN_REF]?: string;
|
|
71
|
+
[CustomerFields.COLUMN_BILLING_ADDRESS_1]?: string;
|
|
72
|
+
[CustomerFields.COLUMN_BILLING_ADDRESS_2]?: string;
|
|
73
|
+
[CustomerFields.COLUMN_BILLING_CITY]?: string;
|
|
74
|
+
[CustomerFields.COLUMN_BILLING_COUNTRY_CODE]?: string;
|
|
71
75
|
[CustomerFields.COLUMN_BILLING_ID]?: string;
|
|
76
|
+
[CustomerFields.COLUMN_BILLING_STATE]?: string;
|
|
77
|
+
[CustomerFields.COLUMN_BILLING_ZIP_CODE]?: string;
|
|
72
78
|
[CustomerFields.COLUMN_INTERNAL_REFERENCE]?: string;
|
|
73
79
|
[CustomerFields.COLUMN_CONTACT]?: PostCustomerContact;
|
|
80
|
+
[CustomerFields.COLUMN_REGISTRATION_NUMBER]?: string;
|
|
74
81
|
};
|
|
75
82
|
export declare enum PostCustomerInvitationFields {
|
|
76
83
|
COLUMN_CONTACT_ID = "contactId",
|
|
@@ -118,6 +125,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
118
125
|
patchCustomerContact(customerReference: string, contactReference: string, payload: PatchCustomerContactPayload, parameters?: Parameters): Promise<GetResult<CustomerContact>>;
|
|
119
126
|
createCustomer(payload: PostCustomerPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseResourceCreated | APIResponseError>;
|
|
120
127
|
updateCustomer(customerReference: string, payload: Partial<PostCustomerPayload>, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerUpdated | APIResponseError>;
|
|
128
|
+
reactivateCustomer(customerRef: string, parameters?: Parameters): Promise<void>;
|
|
121
129
|
postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
|
|
122
130
|
postCustomerMigration(customerReference: string, payload: PostCustomerMigrationPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerMigration | APIResponseError>;
|
|
123
131
|
}
|
|
@@ -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));
|
|
@@ -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.
|
|
7
|
+
"version": "3.162.1-rc-bdj-1",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|