@arrowsphere/api-client 3.190.0-rc-bdj-2 → 3.191.0-rc-cpe-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 +5 -0
- package/build/abstractRestfulClient.js +6 -2
- package/build/customers/customersClient.d.ts +1 -0
- package/build/exception/notFoundException.d.ts +2 -1
- package/build/exception/notFoundException.js +2 -1
- package/build/exception/publicApiClientException.d.ts +2 -2
- package/build/graphqlApi/types/entities/contact.d.ts +0 -2
- package/build/licenses/entities/getLicense/actionsGetResult.d.ts +7 -1
- package/build/licenses/entities/getLicense/actionsGetResult.js +16 -2
- package/package.json +1 -1
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.190.0] - 2025.04.28
|
|
7
|
+
|
|
8
|
+
### Updated
|
|
9
|
+
- [Error] update error messages to be more descriptive
|
|
10
|
+
|
|
6
11
|
## [3.189.0] - 2025.04.23
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -143,10 +143,14 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
143
143
|
}
|
|
144
144
|
const statusCode = response.status;
|
|
145
145
|
if (statusCode === 404) {
|
|
146
|
-
throw new exception_1.NotFoundException(
|
|
146
|
+
throw new exception_1.NotFoundException(response.data.messages, response.data.error, statusCode, {
|
|
147
|
+
origin: `Resource not found on URL ${this.getUrl()}${this.basePath}${this.path}`,
|
|
148
|
+
});
|
|
147
149
|
}
|
|
148
150
|
if (statusCode >= 400 && statusCode <= 599) {
|
|
149
|
-
throw new exception_1.PublicApiClientException(
|
|
151
|
+
throw new exception_1.PublicApiClientException(response.data.messages, response.data.error, statusCode, {
|
|
152
|
+
origin: `Error: status code: ${statusCode}. URL: ${this.getUrl()}${this.basePath}${this.path}`,
|
|
153
|
+
});
|
|
150
154
|
}
|
|
151
155
|
return response.data;
|
|
152
156
|
}
|
|
@@ -106,6 +106,7 @@ export declare type APIResponseCustomerMigration = {
|
|
|
106
106
|
export interface APIResponseError {
|
|
107
107
|
status: number;
|
|
108
108
|
error: string;
|
|
109
|
+
messages: string;
|
|
109
110
|
}
|
|
110
111
|
export declare type PatchCustomerContactPayload = {
|
|
111
112
|
[Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare class NotFoundException extends Error {
|
|
2
2
|
httpCode: number;
|
|
3
3
|
httpError: string;
|
|
4
|
-
|
|
4
|
+
config?: Record<string, unknown>;
|
|
5
|
+
constructor(message: string, httpError?: string, httpCode?: number, config?: Record<string, unknown>);
|
|
5
6
|
}
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NotFoundException = void 0;
|
|
4
4
|
class NotFoundException extends Error {
|
|
5
|
-
constructor(message, httpError = '', httpCode = 0) {
|
|
5
|
+
constructor(message, httpError = '', httpCode = 0, config = {}) {
|
|
6
6
|
super(message);
|
|
7
7
|
this.httpCode = httpCode;
|
|
8
8
|
this.httpError = httpError;
|
|
9
|
+
this.config = config;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
exports.NotFoundException = NotFoundException;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare class PublicApiClientException extends Error {
|
|
2
2
|
httpCode: number;
|
|
3
3
|
httpError: string;
|
|
4
|
-
config?: unknown
|
|
5
|
-
constructor(message: string, httpError?: string, httpCode?: number, config?:
|
|
4
|
+
config?: Record<string, unknown>;
|
|
5
|
+
constructor(message: string, httpError?: string, httpCode?: number, config?: Record<string, unknown>);
|
|
6
6
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EndCustomerType } from './company';
|
|
2
2
|
import { OrganizationUnitsType } from './organizationUnit';
|
|
3
|
-
import { UserType } from './user';
|
|
4
3
|
export declare type ContactsType = {
|
|
5
4
|
id?: number;
|
|
6
5
|
active?: boolean;
|
|
@@ -19,7 +18,6 @@ export declare type ContactsType = {
|
|
|
19
18
|
username?: string;
|
|
20
19
|
type?: ContactTypeType;
|
|
21
20
|
role?: ContactRole;
|
|
22
|
-
user?: UserType;
|
|
23
21
|
};
|
|
24
22
|
declare type ContactRole = {
|
|
25
23
|
id?: number;
|
|
@@ -12,7 +12,9 @@ export declare enum ActionsGetFields {
|
|
|
12
12
|
COLUMN_CANCEL = "cancel",
|
|
13
13
|
COLUMN_CONVERSION = "conversion",
|
|
14
14
|
COLUMN_PAUSE = "pause",
|
|
15
|
-
COLUMN_UPGRADE = "upgrade"
|
|
15
|
+
COLUMN_UPGRADE = "upgrade",
|
|
16
|
+
COLUMN_UPDATE_FRIENDLY_NAME = "updateFriendlyName",
|
|
17
|
+
COLUMN_SCHEDULED_TASK = "scheduledTask"
|
|
16
18
|
}
|
|
17
19
|
export declare type ActionsGetData = {
|
|
18
20
|
[ActionsGetFields.COLUMN_HISTORY]: string;
|
|
@@ -28,6 +30,8 @@ export declare type ActionsGetData = {
|
|
|
28
30
|
[ActionsGetFields.COLUMN_CONVERSION]?: string;
|
|
29
31
|
[ActionsGetFields.COLUMN_PAUSE]?: string;
|
|
30
32
|
[ActionsGetFields.COLUMN_UPGRADE]?: string;
|
|
33
|
+
[ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]?: string;
|
|
34
|
+
[ActionsGetFields.COLUMN_SCHEDULED_TASK]?: string;
|
|
31
35
|
};
|
|
32
36
|
export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
|
|
33
37
|
#private;
|
|
@@ -45,5 +49,7 @@ export declare class ActionsGetResult extends AbstractEntity<ActionsGetData> {
|
|
|
45
49
|
get conversion(): string | undefined;
|
|
46
50
|
get pause(): string | undefined;
|
|
47
51
|
get upgrade(): string | undefined;
|
|
52
|
+
get updateFriendlyName(): string | undefined;
|
|
53
|
+
get scheduledTask(): string | undefined;
|
|
48
54
|
toJSON(): ActionsGetData;
|
|
49
55
|
}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade;
|
|
13
|
+
var _ActionsGetResult_history, _ActionsGetResult_update, _ActionsGetResult_increaseSeats, _ActionsGetResult_decreaseSeats, _ActionsGetResult_addons_catalog, _ActionsGetResult_suspend, _ActionsGetResult_reactivate, _ActionsGetResult_autoRenewOff, _ActionsGetResult_autoRenewOn, _ActionsGetResult_cancel, _ActionsGetResult_conversion, _ActionsGetResult_pause, _ActionsGetResult_upgrade, _ActionsGetResult_updateFriendlyName, _ActionsGetResult_scheduledTask;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ActionsGetResult = exports.ActionsGetFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -29,6 +29,8 @@ var ActionsGetFields;
|
|
|
29
29
|
ActionsGetFields["COLUMN_CONVERSION"] = "conversion";
|
|
30
30
|
ActionsGetFields["COLUMN_PAUSE"] = "pause";
|
|
31
31
|
ActionsGetFields["COLUMN_UPGRADE"] = "upgrade";
|
|
32
|
+
ActionsGetFields["COLUMN_UPDATE_FRIENDLY_NAME"] = "updateFriendlyName";
|
|
33
|
+
ActionsGetFields["COLUMN_SCHEDULED_TASK"] = "scheduledTask";
|
|
32
34
|
})(ActionsGetFields = exports.ActionsGetFields || (exports.ActionsGetFields = {}));
|
|
33
35
|
class ActionsGetResult extends abstractEntity_1.AbstractEntity {
|
|
34
36
|
constructor(data) {
|
|
@@ -46,6 +48,8 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
46
48
|
_ActionsGetResult_conversion.set(this, void 0);
|
|
47
49
|
_ActionsGetResult_pause.set(this, void 0);
|
|
48
50
|
_ActionsGetResult_upgrade.set(this, void 0);
|
|
51
|
+
_ActionsGetResult_updateFriendlyName.set(this, void 0);
|
|
52
|
+
_ActionsGetResult_scheduledTask.set(this, void 0);
|
|
49
53
|
__classPrivateFieldSet(this, _ActionsGetResult_history, data[ActionsGetFields.COLUMN_HISTORY], "f");
|
|
50
54
|
__classPrivateFieldSet(this, _ActionsGetResult_update, data[ActionsGetFields.COLUMN_UPDATE], "f");
|
|
51
55
|
__classPrivateFieldSet(this, _ActionsGetResult_increaseSeats, data[ActionsGetFields.COLUMN_INCREASE_SEATS], "f");
|
|
@@ -59,6 +63,8 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
59
63
|
__classPrivateFieldSet(this, _ActionsGetResult_conversion, data[ActionsGetFields.COLUMN_CONVERSION], "f");
|
|
60
64
|
__classPrivateFieldSet(this, _ActionsGetResult_pause, data[ActionsGetFields.COLUMN_PAUSE], "f");
|
|
61
65
|
__classPrivateFieldSet(this, _ActionsGetResult_upgrade, data[ActionsGetFields.COLUMN_UPGRADE], "f");
|
|
66
|
+
__classPrivateFieldSet(this, _ActionsGetResult_updateFriendlyName, data[ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME], "f");
|
|
67
|
+
__classPrivateFieldSet(this, _ActionsGetResult_scheduledTask, data[ActionsGetFields.COLUMN_SCHEDULED_TASK], "f");
|
|
62
68
|
}
|
|
63
69
|
get history() {
|
|
64
70
|
return __classPrivateFieldGet(this, _ActionsGetResult_history, "f");
|
|
@@ -99,6 +105,12 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
99
105
|
get upgrade() {
|
|
100
106
|
return __classPrivateFieldGet(this, _ActionsGetResult_upgrade, "f");
|
|
101
107
|
}
|
|
108
|
+
get updateFriendlyName() {
|
|
109
|
+
return __classPrivateFieldGet(this, _ActionsGetResult_updateFriendlyName, "f");
|
|
110
|
+
}
|
|
111
|
+
get scheduledTask() {
|
|
112
|
+
return __classPrivateFieldGet(this, _ActionsGetResult_scheduledTask, "f");
|
|
113
|
+
}
|
|
102
114
|
toJSON() {
|
|
103
115
|
return {
|
|
104
116
|
[ActionsGetFields.COLUMN_HISTORY]: this.history,
|
|
@@ -114,9 +126,11 @@ class ActionsGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
114
126
|
[ActionsGetFields.COLUMN_CONVERSION]: this.conversion,
|
|
115
127
|
[ActionsGetFields.COLUMN_PAUSE]: this.pause,
|
|
116
128
|
[ActionsGetFields.COLUMN_UPGRADE]: this.upgrade,
|
|
129
|
+
[ActionsGetFields.COLUMN_UPDATE_FRIENDLY_NAME]: this.updateFriendlyName,
|
|
130
|
+
[ActionsGetFields.COLUMN_SCHEDULED_TASK]: this.scheduledTask,
|
|
117
131
|
};
|
|
118
132
|
}
|
|
119
133
|
}
|
|
120
134
|
exports.ActionsGetResult = ActionsGetResult;
|
|
121
|
-
_ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap();
|
|
135
|
+
_ActionsGetResult_history = new WeakMap(), _ActionsGetResult_update = new WeakMap(), _ActionsGetResult_increaseSeats = new WeakMap(), _ActionsGetResult_decreaseSeats = new WeakMap(), _ActionsGetResult_addons_catalog = new WeakMap(), _ActionsGetResult_suspend = new WeakMap(), _ActionsGetResult_reactivate = new WeakMap(), _ActionsGetResult_autoRenewOff = new WeakMap(), _ActionsGetResult_autoRenewOn = new WeakMap(), _ActionsGetResult_cancel = new WeakMap(), _ActionsGetResult_conversion = new WeakMap(), _ActionsGetResult_pause = new WeakMap(), _ActionsGetResult_upgrade = new WeakMap(), _ActionsGetResult_updateFriendlyName = new WeakMap(), _ActionsGetResult_scheduledTask = new WeakMap();
|
|
122
136
|
//# sourceMappingURL=actionsGetResult.js.map
|
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.
|
|
7
|
+
"version": "3.191.0-rc-cpe-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",
|