@arrowsphere/api-client 2.0.0 → 2.0.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,6 +3,12 @@
|
|
|
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
|
+
## [2.0.1] - 2022-01-19
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Fixed type `SortParameters` and `FiltersParameters`
|
|
11
|
+
|
|
6
12
|
## [2.0.0] - 2022-01-06
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -62,7 +62,47 @@ export declare enum LicenseFindParameters {
|
|
|
62
62
|
/**
|
|
63
63
|
* Use this operator to search for all keywords with values in the range specified (for date ranges)
|
|
64
64
|
*/
|
|
65
|
-
OPERATOR_BETWEEN = "BETWEEN"
|
|
65
|
+
OPERATOR_BETWEEN = "BETWEEN",
|
|
66
|
+
/**
|
|
67
|
+
* Use this operator to search with a compare field Equal
|
|
68
|
+
*/
|
|
69
|
+
OPERATOR_EQ = "EQ",
|
|
70
|
+
/**
|
|
71
|
+
* Use this operator to search with a compare field Not Equal
|
|
72
|
+
*/
|
|
73
|
+
OPERATOR_NEQ = "NEQ",
|
|
74
|
+
/**
|
|
75
|
+
* Use this operator to search with a compare field Greater Than
|
|
76
|
+
*/
|
|
77
|
+
OPERATOR_GT = "GT",
|
|
78
|
+
/**
|
|
79
|
+
* Use this operator to search with a compare field Greater Than or Equal
|
|
80
|
+
*/
|
|
81
|
+
OPERATOR_GTE = "GTE",
|
|
82
|
+
/**
|
|
83
|
+
* Use this operator to search with a compare field Lower Than
|
|
84
|
+
*/
|
|
85
|
+
OPERATOR_LT = "LT",
|
|
86
|
+
/**
|
|
87
|
+
* Use this operator to search with a compare field Lower Than or Equal
|
|
88
|
+
*/
|
|
89
|
+
OPERATOR_LTE = "LTE",
|
|
90
|
+
/**
|
|
91
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GTE / FILTERS_LT / FILTERS_LTE
|
|
92
|
+
*/
|
|
93
|
+
FILTERS_GT = "gt",
|
|
94
|
+
/**
|
|
95
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_LT / FILTERS_LTE
|
|
96
|
+
*/
|
|
97
|
+
FILTERS_GTE = "gte",
|
|
98
|
+
/**
|
|
99
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LTE
|
|
100
|
+
*/
|
|
101
|
+
FILTERS_LT = "lt",
|
|
102
|
+
/**
|
|
103
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LT
|
|
104
|
+
*/
|
|
105
|
+
FILTERS_LTE = "lte"
|
|
66
106
|
}
|
|
67
107
|
/**
|
|
68
108
|
* List of keywords to search with.
|
|
@@ -84,9 +124,7 @@ export declare type LicenseRawKeywordsParametersLicence = {
|
|
|
84
124
|
export declare type LicenseRawKeywordsParametersOffer = {
|
|
85
125
|
[field: string]: DataKeywords | ActionFlagsFindResultDataKeywords | PriceBandFindResultDataKeywords | undefined;
|
|
86
126
|
};
|
|
87
|
-
export declare type SortParameters =
|
|
88
|
-
[LicenseFindParameters.DATA_SORT]: LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
|
|
89
|
-
};
|
|
127
|
+
export declare type SortParameters = LicenseFindParameters.SORT_ASCENDING | LicenseFindParameters.SORT_DESCENDING;
|
|
90
128
|
/**
|
|
91
129
|
* Sort parameters to pass to the request
|
|
92
130
|
*/
|
|
@@ -100,9 +138,13 @@ export declare type LicenseRawSortParametersLicense = {
|
|
|
100
138
|
export declare type LicenseRawSortParametersOffer = {
|
|
101
139
|
[field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
|
|
102
140
|
};
|
|
103
|
-
export declare type
|
|
104
|
-
[LicenseFindParameters.
|
|
141
|
+
export declare type FiltersCompareValue = {
|
|
142
|
+
[LicenseFindParameters.FILTERS_GT]?: string | number;
|
|
143
|
+
[LicenseFindParameters.FILTERS_GTE]?: string | number;
|
|
144
|
+
[LicenseFindParameters.FILTERS_LT]?: string | number;
|
|
145
|
+
[LicenseFindParameters.FILTERS_LTE]?: string | number;
|
|
105
146
|
};
|
|
147
|
+
export declare type FiltersParameters = string | string[] | number | number[] | boolean | FiltersCompareValue;
|
|
106
148
|
/**
|
|
107
149
|
* Filter parameters to pass to the request.
|
|
108
150
|
*/
|
|
@@ -60,6 +60,46 @@ var LicenseFindParameters;
|
|
|
60
60
|
* Use this operator to search for all keywords with values in the range specified (for date ranges)
|
|
61
61
|
*/
|
|
62
62
|
LicenseFindParameters["OPERATOR_BETWEEN"] = "BETWEEN";
|
|
63
|
+
/**
|
|
64
|
+
* Use this operator to search with a compare field Equal
|
|
65
|
+
*/
|
|
66
|
+
LicenseFindParameters["OPERATOR_EQ"] = "EQ";
|
|
67
|
+
/**
|
|
68
|
+
* Use this operator to search with a compare field Not Equal
|
|
69
|
+
*/
|
|
70
|
+
LicenseFindParameters["OPERATOR_NEQ"] = "NEQ";
|
|
71
|
+
/**
|
|
72
|
+
* Use this operator to search with a compare field Greater Than
|
|
73
|
+
*/
|
|
74
|
+
LicenseFindParameters["OPERATOR_GT"] = "GT";
|
|
75
|
+
/**
|
|
76
|
+
* Use this operator to search with a compare field Greater Than or Equal
|
|
77
|
+
*/
|
|
78
|
+
LicenseFindParameters["OPERATOR_GTE"] = "GTE";
|
|
79
|
+
/**
|
|
80
|
+
* Use this operator to search with a compare field Lower Than
|
|
81
|
+
*/
|
|
82
|
+
LicenseFindParameters["OPERATOR_LT"] = "LT";
|
|
83
|
+
/**
|
|
84
|
+
* Use this operator to search with a compare field Lower Than or Equal
|
|
85
|
+
*/
|
|
86
|
+
LicenseFindParameters["OPERATOR_LTE"] = "LTE";
|
|
87
|
+
/**
|
|
88
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GTE / FILTERS_LT / FILTERS_LTE
|
|
89
|
+
*/
|
|
90
|
+
LicenseFindParameters["FILTERS_GT"] = "gt";
|
|
91
|
+
/**
|
|
92
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_LT / FILTERS_LTE
|
|
93
|
+
*/
|
|
94
|
+
LicenseFindParameters["FILTERS_GTE"] = "gte";
|
|
95
|
+
/**
|
|
96
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LTE
|
|
97
|
+
*/
|
|
98
|
+
LicenseFindParameters["FILTERS_LT"] = "lt";
|
|
99
|
+
/**
|
|
100
|
+
* Use this filter to compare 2 value with other filter like FILTERS_GT / FILTERS_GTE / FILTERS_LT
|
|
101
|
+
*/
|
|
102
|
+
LicenseFindParameters["FILTERS_LTE"] = "lte";
|
|
63
103
|
})(LicenseFindParameters = exports.LicenseFindParameters || (exports.LicenseFindParameters = {}));
|
|
64
104
|
class LicensesClient extends abstractClient_1.AbstractClient {
|
|
65
105
|
constructor() {
|
package/package.json
CHANGED