@arrowsphere/api-client 3.106.1-rc.bdj.2 → 3.107.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 +10 -0
- package/build/licenses/entities/event/licensesEventQueries.d.ts +2 -2
- package/build/licenses/entities/event/licensesEventQueries.js +1 -1
- package/build/licenses/licensesClient.js +7 -0
- package/build/licenses/types/bulkArguments.d.ts +7 -4
- package/build/licenses/types/bulkArguments.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.107.0] - 2024.04.05
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [License Bulk Actions] Allow/Prepare client to bulk action to upload file
|
|
10
|
+
|
|
11
|
+
## [3.106.0] - 2024.04.04
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- [Licenses Events] add field `type` in keywordByFields.keywordByFields
|
|
15
|
+
|
|
6
16
|
## [3.105.0] - 2024.04.04
|
|
7
17
|
|
|
8
18
|
### Added
|
|
@@ -70,13 +70,13 @@ export declare enum LicensesEventInputKeywordByFieldsField {
|
|
|
70
70
|
NAME = "name",
|
|
71
71
|
VALUES = "values",
|
|
72
72
|
OPERATOR = "operator",
|
|
73
|
-
|
|
73
|
+
TYPE = "type"
|
|
74
74
|
}
|
|
75
75
|
export declare type LicensesEventInputKeywordByFieldsType = {
|
|
76
76
|
[LicensesEventInputKeywordByFieldsField.NAME]: string;
|
|
77
77
|
[LicensesEventInputKeywordByFieldsField.VALUES]: string[];
|
|
78
78
|
[LicensesEventInputKeywordByFieldsField.OPERATOR]?: string;
|
|
79
|
-
[LicensesEventInputKeywordByFieldsField.
|
|
79
|
+
[LicensesEventInputKeywordByFieldsField.TYPE]?: FieldType;
|
|
80
80
|
};
|
|
81
81
|
export declare enum LicensesEvenInputSearchBodyField {
|
|
82
82
|
AGGREGATOR_FILTER = "aggregatorFilter",
|
|
@@ -62,7 +62,7 @@ var LicensesEventInputKeywordByFieldsField;
|
|
|
62
62
|
LicensesEventInputKeywordByFieldsField["NAME"] = "name";
|
|
63
63
|
LicensesEventInputKeywordByFieldsField["VALUES"] = "values";
|
|
64
64
|
LicensesEventInputKeywordByFieldsField["OPERATOR"] = "operator";
|
|
65
|
-
LicensesEventInputKeywordByFieldsField["
|
|
65
|
+
LicensesEventInputKeywordByFieldsField["TYPE"] = "type";
|
|
66
66
|
})(LicensesEventInputKeywordByFieldsField = exports.LicensesEventInputKeywordByFieldsField || (exports.LicensesEventInputKeywordByFieldsField = {}));
|
|
67
67
|
var LicensesEvenInputSearchBodyField;
|
|
68
68
|
(function (LicensesEvenInputSearchBodyField) {
|
|
@@ -331,6 +331,13 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
331
331
|
};
|
|
332
332
|
postData = postSetRateData;
|
|
333
333
|
}
|
|
334
|
+
/*else if (bulkData.actionType == ActionTypes.UPLOAD_CHANGES) {
|
|
335
|
+
const postUploadChangesData: BulkUploadChangesBody = {
|
|
336
|
+
...postData,
|
|
337
|
+
[BulkBodyFields.FILE]: bulkData.file,
|
|
338
|
+
};
|
|
339
|
+
postData = postUploadChangesData;
|
|
340
|
+
}*/
|
|
334
341
|
return await this.post(postData);
|
|
335
342
|
}
|
|
336
343
|
async updateConfig(reference, config) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Except } from 'type-fest';
|
|
2
2
|
export declare enum ActionTypes {
|
|
3
3
|
SET_RATE = "setRate",
|
|
4
|
-
AUTO_RENEW = "autoRenew"
|
|
4
|
+
AUTO_RENEW = "autoRenew",
|
|
5
|
+
UPLOAD_CHANGES = "uploadChanges"
|
|
5
6
|
}
|
|
6
7
|
export declare enum AutoRenewStatuses {
|
|
7
8
|
OFF = "off",
|
|
@@ -21,7 +22,8 @@ export declare enum BulkBodyFields {
|
|
|
21
22
|
LICENSES = "licenses",
|
|
22
23
|
SPECIAL_PRICE_RATE_TYPE = "specialPriceRateType",
|
|
23
24
|
SPECIAL_PRICE_RATE_VALUE = "specialPriceRateValue",
|
|
24
|
-
SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE = "specialRateEffectiveApplicationDate"
|
|
25
|
+
SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE = "specialRateEffectiveApplicationDate",
|
|
26
|
+
FILE = "file"
|
|
25
27
|
}
|
|
26
28
|
export declare enum SpecialPriceRateActive {
|
|
27
29
|
ACTIVE_CURRENTLY = 1,
|
|
@@ -36,5 +38,6 @@ export declare type BulkBodyArgument = {
|
|
|
36
38
|
[BulkBodyFields.SPECIAL_PRICE_RATE_VALUE]?: string;
|
|
37
39
|
[BulkBodyFields.SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE]?: SpecialRateEffectiveApplicationDate;
|
|
38
40
|
};
|
|
39
|
-
export declare type BulkAutoRenewBody = Except<BulkBodyArgument, BulkBodyFields.SPECIAL_PRICE_RATE_TYPE & BulkBodyFields.SPECIAL_PRICE_RATE_VALUE & BulkBodyFields.SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE>;
|
|
40
|
-
export declare type BulkSetRateBody = Except<BulkBodyArgument, BulkBodyFields.AUTO_RENEW_STATUS>;
|
|
41
|
+
export declare type BulkAutoRenewBody = Except<BulkBodyArgument, BulkBodyFields.SPECIAL_PRICE_RATE_TYPE & BulkBodyFields.SPECIAL_PRICE_RATE_VALUE & BulkBodyFields.SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE & BulkBodyFields.FILE>;
|
|
42
|
+
export declare type BulkSetRateBody = Except<BulkBodyArgument, BulkBodyFields.AUTO_RENEW_STATUS & BulkBodyFields.FILE>;
|
|
43
|
+
export declare type BulkUploadChangesBody = Except<BulkBodyArgument, BulkBodyFields.AUTO_RENEW_STATUS & BulkBodyFields.SPECIAL_PRICE_RATE_TYPE & BulkBodyFields.SPECIAL_PRICE_RATE_VALUE & BulkBodyFields.SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE>;
|
|
@@ -5,6 +5,7 @@ var ActionTypes;
|
|
|
5
5
|
(function (ActionTypes) {
|
|
6
6
|
ActionTypes["SET_RATE"] = "setRate";
|
|
7
7
|
ActionTypes["AUTO_RENEW"] = "autoRenew";
|
|
8
|
+
ActionTypes["UPLOAD_CHANGES"] = "uploadChanges";
|
|
8
9
|
})(ActionTypes = exports.ActionTypes || (exports.ActionTypes = {}));
|
|
9
10
|
var AutoRenewStatuses;
|
|
10
11
|
(function (AutoRenewStatuses) {
|
|
@@ -29,6 +30,7 @@ var BulkBodyFields;
|
|
|
29
30
|
BulkBodyFields["SPECIAL_PRICE_RATE_TYPE"] = "specialPriceRateType";
|
|
30
31
|
BulkBodyFields["SPECIAL_PRICE_RATE_VALUE"] = "specialPriceRateValue";
|
|
31
32
|
BulkBodyFields["SPECIAL_RATE_EFFECTIVE_APPLICATION_DATE"] = "specialRateEffectiveApplicationDate";
|
|
33
|
+
BulkBodyFields["FILE"] = "file";
|
|
32
34
|
})(BulkBodyFields = exports.BulkBodyFields || (exports.BulkBodyFields = {}));
|
|
33
35
|
var SpecialPriceRateActive;
|
|
34
36
|
(function (SpecialPriceRateActive) {
|
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.107.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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/chai-as-promised": "7.1.3",
|
|
36
36
|
"@types/lodash": "^4.14.191",
|
|
37
37
|
"@types/mocha": "8.2.0",
|
|
38
|
-
"@types/node": "18.
|
|
38
|
+
"@types/node": "^18.19.9",
|
|
39
39
|
"@types/sinon": "9.0.10",
|
|
40
40
|
"@types/sinon-chai": "3.2.5",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "5.58.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"sinon": "9.2.4",
|
|
60
60
|
"sinon-chai": "3.5.0",
|
|
61
61
|
"source-map-support": "0.5.19",
|
|
62
|
-
"ts-node": "10.9.1",
|
|
62
|
+
"ts-node": "^10.9.1",
|
|
63
63
|
"typescript": "4.7.4"
|
|
64
64
|
},
|
|
65
65
|
"husky": {
|