@arrowsphere/api-client 3.77.1-bdj.1 → 3.77.1-bdj.3
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.
|
@@ -29,16 +29,15 @@ export declare class LicenseRequest extends AbstractEntity<LicenseRequestType> {
|
|
|
29
29
|
get message(): string | undefined;
|
|
30
30
|
toJSON(): LicenseRequestType;
|
|
31
31
|
}
|
|
32
|
-
export declare type LicenseRequestResultDataType = LicenseRequestType[];
|
|
33
32
|
export declare enum LicenseRequestResultFields {
|
|
34
33
|
COLUMN_LICENSE_REQUEST = "licenseRequests"
|
|
35
34
|
}
|
|
36
35
|
export declare type LicenseRequestResultType = {
|
|
37
36
|
[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]?: LicenseRequestType[];
|
|
38
37
|
};
|
|
39
|
-
export declare class LicenseRequestResult extends AbstractEntity<
|
|
38
|
+
export declare class LicenseRequestResult extends AbstractEntity<LicenseRequestResultType> {
|
|
40
39
|
#private;
|
|
41
|
-
constructor(input:
|
|
42
|
-
get
|
|
43
|
-
toJSON(): LicenseRequestResultType
|
|
40
|
+
constructor(input: LicenseRequestResultType);
|
|
41
|
+
get licenseRequests(): LicenseRequest[] | undefined;
|
|
42
|
+
toJSON(): LicenseRequestResultType;
|
|
44
43
|
}
|
|
@@ -83,17 +83,18 @@ var LicenseRequestResultFields;
|
|
|
83
83
|
})(LicenseRequestResultFields = exports.LicenseRequestResultFields || (exports.LicenseRequestResultFields = {}));
|
|
84
84
|
class LicenseRequestResult extends abstractEntity_1.AbstractEntity {
|
|
85
85
|
constructor(input) {
|
|
86
|
+
var _a;
|
|
86
87
|
super(input);
|
|
87
88
|
_LicenseRequestResult_licenseRequests.set(this, void 0);
|
|
88
|
-
__classPrivateFieldSet(this, _LicenseRequestResult_licenseRequests, input.map((result) => new LicenseRequest(result)), "f");
|
|
89
|
+
__classPrivateFieldSet(this, _LicenseRequestResult_licenseRequests, (_a = input[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]) === null || _a === void 0 ? void 0 : _a.map((result) => new LicenseRequest(result)), "f");
|
|
89
90
|
}
|
|
90
|
-
get
|
|
91
|
+
get licenseRequests() {
|
|
91
92
|
return __classPrivateFieldGet(this, _LicenseRequestResult_licenseRequests, "f");
|
|
92
93
|
}
|
|
93
94
|
toJSON() {
|
|
94
95
|
var _a;
|
|
95
96
|
return {
|
|
96
|
-
[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]: (_a = this.
|
|
97
|
+
[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]: (_a = this.licenseRequests) === null || _a === void 0 ? void 0 : _a.map((result) => result.toJSON()),
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Class LicenseRequestClient
|
|
3
3
|
*/
|
|
4
4
|
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
5
|
-
import {
|
|
6
|
-
import { LicenseRequest } from './entities/request/licenseRequest';
|
|
5
|
+
import { LicenseRequestType } from './entities/request/licenseRequest';
|
|
7
6
|
export declare class LicenseRequestClient extends AbstractRestfulClient {
|
|
8
7
|
protected basePath: string;
|
|
9
|
-
getLastRequests(licenseReference: string): Promise<
|
|
8
|
+
getLastRequests(licenseReference: string): Promise<LicenseRequestType[]>;
|
|
10
9
|
}
|
|
@@ -5,8 +5,6 @@ exports.LicenseRequestClient = void 0;
|
|
|
5
5
|
* Class LicenseRequestClient
|
|
6
6
|
*/
|
|
7
7
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
8
|
-
const getResult_1 = require("../getResult");
|
|
9
|
-
const licenseRequest_1 = require("./entities/request/licenseRequest");
|
|
10
8
|
class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
11
9
|
constructor() {
|
|
12
10
|
super(...arguments);
|
|
@@ -14,7 +12,7 @@ class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient
|
|
|
14
12
|
}
|
|
15
13
|
async getLastRequests(licenseReference) {
|
|
16
14
|
this.path = `/${licenseReference}/request`;
|
|
17
|
-
return
|
|
15
|
+
return (await this.get());
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
exports.LicenseRequestClient = LicenseRequestClient;
|
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.77.1-bdj.
|
|
7
|
+
"version": "3.77.1-bdj.3",
|
|
8
8
|
"description": "Node.js client for ArrowSphere's public API",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|