@arrowsphere/api-client 3.96.0 → 3.97.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 +6 -0
- package/build/licenses/entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult.d.ts +30 -0
- package/build/licenses/entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult.js +54 -0
- package/build/licenses/entities/findResult.d.ts +4 -0
- package/build/licenses/entities/findResult.js +7 -0
- package/build/licenses/index.d.ts +1 -0
- package/build/licenses/index.js +1 -0
- package/build/licenses/licensesClient.d.ts +8 -3
- package/build/licenses/licensesClient.js +4 -0
- package/package.json +1 -1
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
|
+
## [3.97.0] - 2024.02.12
|
|
7
|
+
|
|
8
|
+
### Updated
|
|
9
|
+
- [licenses] update filters and keywords for licenses
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
## [3.96.0] - 2024.02.06
|
|
7
13
|
|
|
8
14
|
### Added
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
import { FiltersParameters, SortParameters } from '../../licensesClient';
|
|
3
|
+
export declare enum EndCustomerOrganizationUnitFindResultFields {
|
|
4
|
+
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
5
|
+
COLUMN_NAME = "name",
|
|
6
|
+
COLUMN_LAST_UPDATE = "lastUpdate"
|
|
7
|
+
}
|
|
8
|
+
export declare type EndCustomerOrganizationUnitFindResultType = {
|
|
9
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]: string;
|
|
10
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]: string;
|
|
11
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type EndCustomerOrganizationUnitSortParameters = {
|
|
14
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]?: SortParameters;
|
|
15
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]?: SortParameters;
|
|
16
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]?: SortParameters;
|
|
17
|
+
};
|
|
18
|
+
export declare type EndCustomerOrganizationUnitFiltersParameters = {
|
|
19
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]?: FiltersParameters;
|
|
20
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]?: FiltersParameters;
|
|
21
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]?: FiltersParameters;
|
|
22
|
+
};
|
|
23
|
+
export declare class EndCustomerOrganizationUnitFindResult extends AbstractEntity<EndCustomerOrganizationUnitFindResultType> {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(endCustomerOrganizationUnit: EndCustomerOrganizationUnitFindResultType);
|
|
26
|
+
get organizationUnitRef(): string;
|
|
27
|
+
get name(): string;
|
|
28
|
+
get lastUpdate(): string;
|
|
29
|
+
toJSON(): EndCustomerOrganizationUnitFindResultType;
|
|
30
|
+
}
|
package/build/licenses/entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _EndCustomerOrganizationUnitFindResult_organizationUnitRef, _EndCustomerOrganizationUnitFindResult_name, _EndCustomerOrganizationUnitFindResult_lastUpdate;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EndCustomerOrganizationUnitFindResult = exports.EndCustomerOrganizationUnitFindResultFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var EndCustomerOrganizationUnitFindResultFields;
|
|
18
|
+
(function (EndCustomerOrganizationUnitFindResultFields) {
|
|
19
|
+
EndCustomerOrganizationUnitFindResultFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
20
|
+
EndCustomerOrganizationUnitFindResultFields["COLUMN_NAME"] = "name";
|
|
21
|
+
EndCustomerOrganizationUnitFindResultFields["COLUMN_LAST_UPDATE"] = "lastUpdate";
|
|
22
|
+
})(EndCustomerOrganizationUnitFindResultFields = exports.EndCustomerOrganizationUnitFindResultFields || (exports.EndCustomerOrganizationUnitFindResultFields = {}));
|
|
23
|
+
class EndCustomerOrganizationUnitFindResult extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(endCustomerOrganizationUnit) {
|
|
25
|
+
super(endCustomerOrganizationUnit);
|
|
26
|
+
_EndCustomerOrganizationUnitFindResult_organizationUnitRef.set(this, void 0);
|
|
27
|
+
_EndCustomerOrganizationUnitFindResult_name.set(this, void 0);
|
|
28
|
+
_EndCustomerOrganizationUnitFindResult_lastUpdate.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _EndCustomerOrganizationUnitFindResult_organizationUnitRef, endCustomerOrganizationUnit[EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _EndCustomerOrganizationUnitFindResult_name, endCustomerOrganizationUnit[EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _EndCustomerOrganizationUnitFindResult_lastUpdate, endCustomerOrganizationUnit[EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE], "f");
|
|
32
|
+
}
|
|
33
|
+
get organizationUnitRef() {
|
|
34
|
+
return __classPrivateFieldGet(this, _EndCustomerOrganizationUnitFindResult_organizationUnitRef, "f");
|
|
35
|
+
}
|
|
36
|
+
get name() {
|
|
37
|
+
return __classPrivateFieldGet(this, _EndCustomerOrganizationUnitFindResult_name, "f");
|
|
38
|
+
}
|
|
39
|
+
get lastUpdate() {
|
|
40
|
+
return __classPrivateFieldGet(this, _EndCustomerOrganizationUnitFindResult_lastUpdate, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_ORGANIZATION_UNIT_REF]: this
|
|
45
|
+
.organizationUnitRef,
|
|
46
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_NAME]: this.name,
|
|
47
|
+
[EndCustomerOrganizationUnitFindResultFields.COLUMN_LAST_UPDATE]: this
|
|
48
|
+
.lastUpdate,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.EndCustomerOrganizationUnitFindResult = EndCustomerOrganizationUnitFindResult;
|
|
53
|
+
_EndCustomerOrganizationUnitFindResult_organizationUnitRef = new WeakMap(), _EndCustomerOrganizationUnitFindResult_name = new WeakMap(), _EndCustomerOrganizationUnitFindResult_lastUpdate = new WeakMap();
|
|
54
|
+
//# sourceMappingURL=endCustomerOrganizationUnitFindResult.js.map
|
|
@@ -4,6 +4,7 @@ import { AbstractEntity } from '../../abstractEntity';
|
|
|
4
4
|
import { LicensesClient, LicenseFindRawPayload } from '../licensesClient';
|
|
5
5
|
import { OfferFindResultData } from './offer/offerFindResult';
|
|
6
6
|
import { Parameters } from '../../abstractRestfulClient';
|
|
7
|
+
import { EndCustomerOrganizationUnitFindResultType } from './endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
|
|
7
8
|
export declare type FindData = {
|
|
8
9
|
pagination: {
|
|
9
10
|
currentPage: number;
|
|
@@ -13,6 +14,7 @@ export declare type FindData = {
|
|
|
13
14
|
results: Array<{
|
|
14
15
|
license: LicenseFindResultData;
|
|
15
16
|
offer?: OfferFindResultData;
|
|
17
|
+
endCustomerOrganizationUnit?: EndCustomerOrganizationUnitFindResultType;
|
|
16
18
|
}>;
|
|
17
19
|
filters: Array<FilterFindResultData>;
|
|
18
20
|
};
|
|
@@ -51,6 +53,7 @@ export declare class FindResult extends AbstractEntity<FindData> {
|
|
|
51
53
|
getResultsForCurrentPage(): Generator<{
|
|
52
54
|
license: LicenseFindResultData;
|
|
53
55
|
offer?: OfferFindResultData;
|
|
56
|
+
endCustomerOrganizationUnit?: EndCustomerOrganizationUnitFindResultType;
|
|
54
57
|
}, void, undefined>;
|
|
55
58
|
/**
|
|
56
59
|
* Gets all the licenses from the result, page per page.
|
|
@@ -60,6 +63,7 @@ export declare class FindResult extends AbstractEntity<FindData> {
|
|
|
60
63
|
getResults(): AsyncGenerator<{
|
|
61
64
|
license: LicenseFindResultData;
|
|
62
65
|
offer?: OfferFindResultData;
|
|
66
|
+
endCustomerOrganizationUnit?: EndCustomerOrganizationUnitFindResultType;
|
|
63
67
|
}, void, undefined>;
|
|
64
68
|
get results(): AsyncGenerator<{
|
|
65
69
|
license: LicenseFindResultData;
|
|
@@ -17,6 +17,7 @@ const licenseFindResult_1 = require("./license/licenseFindResult");
|
|
|
17
17
|
const filterFindResult_1 = require("./filterFindResult");
|
|
18
18
|
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
19
|
const offerFindResult_1 = require("./offer/offerFindResult");
|
|
20
|
+
const endCustomerOrganizationUnitFindResult_1 = require("./endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult");
|
|
20
21
|
class FindResult extends abstractEntity_1.AbstractEntity {
|
|
21
22
|
/**
|
|
22
23
|
* FindResult constructor. Uses the client and request data to go through the pages.
|
|
@@ -47,6 +48,9 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
47
48
|
offer: result.offer
|
|
48
49
|
? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
|
|
49
50
|
: undefined,
|
|
51
|
+
endCustomerOrganizationUnit: result.endCustomerOrganizationUnit
|
|
52
|
+
? new endCustomerOrganizationUnitFindResult_1.EndCustomerOrganizationUnitFindResult(result.endCustomerOrganizationUnit).toJSON()
|
|
53
|
+
: undefined,
|
|
50
54
|
})), "f");
|
|
51
55
|
__classPrivateFieldSet(this, _FindResult_filters, data.filters.map((filter) => new filterFindResult_1.FilterFindResult(filter).toJSON()), "f");
|
|
52
56
|
}
|
|
@@ -81,6 +85,9 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
81
85
|
offer: result.offer
|
|
82
86
|
? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
|
|
83
87
|
: undefined,
|
|
88
|
+
endCustomerOrganizationUnit: result.endCustomerOrganizationUnit
|
|
89
|
+
? new endCustomerOrganizationUnitFindResult_1.EndCustomerOrganizationUnitFindResult(result.endCustomerOrganizationUnit).toJSON()
|
|
90
|
+
: undefined,
|
|
84
91
|
};
|
|
85
92
|
}
|
|
86
93
|
}
|
package/build/licenses/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult"), exports);
|
|
17
18
|
__exportStar(require("./entities/event/licenseEvent"), exports);
|
|
18
19
|
__exportStar(require("./entities/event/licenseEventGraphQL"), exports);
|
|
19
20
|
__exportStar(require("./entities/event/licensesEventQueries"), exports);
|
|
@@ -23,6 +23,7 @@ import { ScheduleTasksResult } from './entities/schedule/scheduleTasksResult';
|
|
|
23
23
|
import { CompanyTypeEnum, RateTypeEnum } from './entities/pricingRate/getPricingRateResult';
|
|
24
24
|
import { PartialResponse } from '../partialResponse';
|
|
25
25
|
import { BulkBodyArgument, SpecialPriceRateActive } from './types/bulkArguments';
|
|
26
|
+
import { EndCustomerOrganizationUnitFiltersParameters, EndCustomerOrganizationUnitSortParameters } from './entities/endCustomerOrganizationUnit/endCustomerOrganizationUnitFindResult';
|
|
26
27
|
/**
|
|
27
28
|
* Parameters passable to the request for refining search.
|
|
28
29
|
*/
|
|
@@ -120,12 +121,13 @@ export declare enum LicenseFindParameters {
|
|
|
120
121
|
*/
|
|
121
122
|
FILTERS_LTE = "lte"
|
|
122
123
|
}
|
|
123
|
-
export declare type BaseParameters<LicenseType, OfferType> = {
|
|
124
|
+
export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizationUnitType> = {
|
|
124
125
|
license?: LicenseType;
|
|
125
126
|
offer?: OfferType;
|
|
127
|
+
endCustomerOrganizationUnit?: endCustomerOrganizationUnitType;
|
|
126
128
|
};
|
|
127
|
-
export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters>;
|
|
128
|
-
export declare type LicenseFiltersParameters = BaseParameters<LicenceFindDataFiltersParameters, OfferFindResultDataFiltersParameters>;
|
|
129
|
+
export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters>;
|
|
130
|
+
export declare type LicenseFiltersParameters = BaseParameters<LicenceFindDataFiltersParameters, OfferFindResultDataFiltersParameters, EndCustomerOrganizationUnitFiltersParameters>;
|
|
129
131
|
/**
|
|
130
132
|
* List of keywords to search with.
|
|
131
133
|
*/
|
|
@@ -153,6 +155,9 @@ export declare type LicenseRawSortParametersLicense = {
|
|
|
153
155
|
export declare type LicenseRawSortParametersOffer = {
|
|
154
156
|
[field: string]: SortParameters | ActionFlagsFindResultDataSortParameters | PriceBandFindResultDataSortParameters | undefined;
|
|
155
157
|
};
|
|
158
|
+
export declare type LicenseRawSortParametersEndCustomerOrganizationUnit = {
|
|
159
|
+
[field: string]: SortParameters | undefined;
|
|
160
|
+
};
|
|
156
161
|
export declare type FiltersCompareValue = {
|
|
157
162
|
[LicenseFindParameters.FILTERS_GT]?: string | number;
|
|
158
163
|
[LicenseFindParameters.FILTERS_GTE]?: string | number;
|
|
@@ -243,6 +243,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
243
243
|
rawLicensePayload.filters = {
|
|
244
244
|
...this.createFilters(postData.filters, 'license'),
|
|
245
245
|
...this.createFilters(postData.filters, 'offer'),
|
|
246
|
+
...this.createFilters(postData.filters, 'endCustomerOrganizationUnit'),
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
249
|
if (postData.exclusionFilters) {
|
|
@@ -250,6 +251,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
250
251
|
rawLicensePayload.exclusionFilters = {
|
|
251
252
|
...this.createFilters(postData.exclusionFilters, 'license'),
|
|
252
253
|
...this.createFilters(postData.exclusionFilters, 'offer'),
|
|
254
|
+
...this.createFilters(postData.exclusionFilters, 'endCustomerOrganizationUnit'),
|
|
253
255
|
};
|
|
254
256
|
}
|
|
255
257
|
if (postData.sort) {
|
|
@@ -257,8 +259,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
257
259
|
rawLicensePayload.sort = {
|
|
258
260
|
...this.createFilters(postData.sort, 'license'),
|
|
259
261
|
...this.createFilters(postData.sort, 'offer'),
|
|
262
|
+
...this.createFilters(postData.sort, 'endCustomerOrganizationUnit'),
|
|
260
263
|
};
|
|
261
264
|
}
|
|
265
|
+
console.info('RAW_LICENSE_PAYLOAD => ', rawLicensePayload);
|
|
262
266
|
const response = await this.findRaw(rawLicensePayload, parameters);
|
|
263
267
|
return new findResult_1.FindResult(response, this, rawLicensePayload, parameters);
|
|
264
268
|
}
|
package/package.json
CHANGED