@arrowsphere/api-client 1.0.3 → 2.0.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 +50 -0
- package/UPGRADING.md +43 -0
- package/build/licenses/entities/filterFindResult.d.ts +2 -2
- package/build/licenses/entities/findResult.d.ts +17 -9
- package/build/licenses/entities/findResult.js +4 -4
- package/build/licenses/entities/license/activeSeatsFindResult.d.ts +29 -0
- package/build/licenses/entities/license/activeSeatsFindResult.js +47 -0
- package/build/licenses/entities/license/configFindResult.d.ts +37 -0
- package/build/licenses/entities/license/configFindResult.js +59 -0
- package/build/licenses/entities/license/licenseFindResult.d.ts +266 -13
- package/build/licenses/entities/license/licenseFindResult.js +324 -13
- package/build/licenses/entities/license/priceFindResult.d.ts +54 -0
- package/build/licenses/entities/license/priceFindResult.js +76 -0
- package/build/licenses/entities/license/warningFindResult.d.ts +33 -0
- package/build/licenses/entities/license/warningFindResult.js +51 -0
- package/build/licenses/entities/offer/actionFlagsFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/actionFlagsFindResult.js +59 -0
- package/build/licenses/entities/offer/offerFindResult.d.ts +63 -0
- package/build/licenses/entities/offer/offerFindResult.js +109 -0
- package/build/licenses/entities/offer/priceBandFindResult.d.ts +72 -0
- package/build/licenses/entities/offer/priceBandFindResult.js +131 -0
- package/build/licenses/entities/offer/priceband/billingFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/priceband/billingFindResult.js +59 -0
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.d.ts +25 -0
- package/build/licenses/entities/offer/priceband/identifiers/arrowsphereFindResult.js +43 -0
- package/build/licenses/entities/offer/priceband/identifiersFindResult.d.ts +25 -0
- package/build/licenses/entities/offer/priceband/identifiersFindResult.js +47 -0
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.d.ts +49 -0
- package/build/licenses/entities/offer/priceband/priceBandActionFlagsFindResult.js +80 -0
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.d.ts +37 -0
- package/build/licenses/entities/offer/priceband/priceBandPriceFindResult.js +59 -0
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.d.ts +29 -0
- package/build/licenses/entities/offer/priceband/saleConstraintsFindResult.js +47 -0
- package/build/licenses/index.d.ts +14 -3
- package/build/licenses/index.js +14 -3
- package/build/licenses/licensesClient.d.ts +48 -28
- package/build/licenses/licensesClient.js +28 -0
- package/build/publicApiClient.js +3 -1
- package/package.json +2 -2
- package/build/licenses/entities/license/abstractLicense.d.ts +0 -177
- package/build/licenses/entities/license/abstractLicense.js +0 -363
- package/build/licenses/entities/offer/licenseOfferFindResult.d.ts +0 -108
- package/build/licenses/entities/offer/licenseOfferFindResult.js +0 -232
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
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.0] - 2022-01-06
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- bad prettier library configuration, adding semicolon in file needed
|
|
11
|
+
- Update Offer object and Licence object
|
|
12
|
+
|
|
13
|
+
#### License
|
|
14
|
+
- Add more objects to define a license:
|
|
15
|
+
- Add object Warning as "warnings" field:
|
|
16
|
+
- key
|
|
17
|
+
- message
|
|
18
|
+
- Add object Config as "configs" field :
|
|
19
|
+
- name
|
|
20
|
+
- scope
|
|
21
|
+
- state
|
|
22
|
+
- Update field active_seat, it's now an object of type ActiveSeatsData:
|
|
23
|
+
- ActiveSeatsData:
|
|
24
|
+
- lastUpdate
|
|
25
|
+
- number
|
|
26
|
+
- Update field price, it's now an object of type PriceData
|
|
27
|
+
- PriceData:
|
|
28
|
+
- priceBandArrowsphereSku
|
|
29
|
+
- buy_price
|
|
30
|
+
- sell_price
|
|
31
|
+
- list_price
|
|
32
|
+
- currency
|
|
33
|
+
#### Offer
|
|
34
|
+
- Add more objects to define an offer:
|
|
35
|
+
- Add field "classification"
|
|
36
|
+
- Add field "isEnabled"
|
|
37
|
+
- Add field "lastUpdate"
|
|
38
|
+
- Add field "name"
|
|
39
|
+
- Add field "arrowSubCategories"
|
|
40
|
+
- Add object ActionFlags as "actionFlags" field:
|
|
41
|
+
- ActionFlagsData:
|
|
42
|
+
- isAutoRenew
|
|
43
|
+
- isManualProvisioning
|
|
44
|
+
- renewalSku
|
|
45
|
+
- Add object PriceBand as "priceBand" field:
|
|
46
|
+
- PriceBandData:
|
|
47
|
+
- actionFlags
|
|
48
|
+
- billing
|
|
49
|
+
- currency
|
|
50
|
+
- isEnabled
|
|
51
|
+
- marketplace
|
|
52
|
+
- prices
|
|
53
|
+
- saleConstraints
|
|
54
|
+
- identifiers
|
|
55
|
+
|
|
6
56
|
## [1.0.3] - 2021-06-21
|
|
7
57
|
|
|
8
58
|
### Changed
|
package/UPGRADING.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Upgrade guide
|
|
2
|
+
|
|
3
|
+
## 1.0.3 to 2.0.0
|
|
4
|
+
|
|
5
|
+
### Changes to the licences client
|
|
6
|
+
|
|
7
|
+
The object `LicensesClient` now has more information. Object `LicenseOfferFindResult` has been removed,
|
|
8
|
+
it's replaced by `OfferFindResult` with new fields, and object `AbstractLicense` extends `LicenseFindResult`
|
|
9
|
+
has more fields.
|
|
10
|
+
|
|
11
|
+
- `LicenseFindResultFields.ACTIVE_SEATS_LAST_UPDATE` has been renamed to `ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE`.
|
|
12
|
+
- `LicenseFindResultFields.ACTIVE_SEATS_NUMBER` has been renamed to `ActiveSeatsFindResultFields.COLUMN_NUMBER`
|
|
13
|
+
- `LicenseFindResultFields.PRICE_BUY_PRICE` has been renamed to `PriceFindResultFields.COLUMN_BUY_PRICE`
|
|
14
|
+
- `LicenseFindResultFields.PRICE_LIST_PRICE` has been renamed to `PriceFindResultFields.COLUMN_LIST_PRICE`
|
|
15
|
+
- `LicenseFindResultFields.PRICE_CURRENCY` has been renamed to `PriceFindResultFields.COLUMN_CURRENCY`
|
|
16
|
+
|
|
17
|
+
- `LicenseOfferFields` has been renamed to `OfferFindResultFields`
|
|
18
|
+
- `LicenseOfferFields.COLUMN_IS_AUTO_RENEW` has been renamed to `ActionFlagsFindResultFields.COLUMN_IS_AUTO_RENEW`
|
|
19
|
+
- `LicenseOfferFields.COLUMN_IS_MANUAL_PROVISIONING` has been renamed to `ActionFlagsFindResultFields.COLUMN_MANUAL_PROVISIONING`
|
|
20
|
+
- `LicenseOfferFields.COLUMN_ACTION_FLAGS` has been renamed to `PriceBandFindResultFields.COLUMN_ACTION_FLAGS`
|
|
21
|
+
- `LicenseOfferFields.COLUMN_CAN_BE_CANCELLED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_CANCELLED`
|
|
22
|
+
- `LicenseOfferFields.COLUMN_CAN_BE_REACTIVATED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_REACTIVATED`
|
|
23
|
+
- `LicenseOfferFields.COLUMN_CAN_BE_SUSPENDED` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_BE_SUSPENDED`
|
|
24
|
+
- `LicenseOfferFields.COLUMN_CAN_DECREASE_SEATS` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_DECREASE_SEATS`
|
|
25
|
+
- `LicenseOfferFields.COLUMN_CAN_INCREASE_SEATS` has been renamed to `PriceBandActionFlagsFindResultFields.COLUMN_CAN_INCREASE_SEATS`
|
|
26
|
+
- `LicenseOfferFields.COLUMN_MARKETPLACE` has been renamed to `PriceBandFindResultFields.COLUMN_MARKETPLACE`
|
|
27
|
+
- `LicenseOfferFields.COLUMN_IS_ENABLED` has been renamed to `PriceBandFindResultFields.COLUMN_IS_ENABLED`
|
|
28
|
+
- `LicenseOfferFields.COLUMN_CURRENCY` has been renamed to `PriceBandFindResultFields.COLUMN_CURRENCY`
|
|
29
|
+
- `LicenseOfferFields.COLUMN_PRICES` has been renamed to `PriceBandFindResultFields.COLUMN_PRICES`
|
|
30
|
+
- `LicenseOfferFields.COLUMN_PUBLIC` has been renamed to `PriceBandPriceFindResultFields.COLUMN_PUBLIC`
|
|
31
|
+
- `LicenseOfferFields.COLUMN_BUY` has been renamed to `PriceBandPriceFindResultFields.COLUMN_BUY`
|
|
32
|
+
- `LicenseOfferFields.COLUMN_SELL` has been renamed to `PriceBandPriceFindResultFields.COLUMN_SELL`
|
|
33
|
+
- `LicenseOfferFields.COLUMN_BILLING` has been renamed to `PriceBandFindResultFields.COLUMN_BILLING`
|
|
34
|
+
- `LicenseOfferFields.COLUMN_TERM` has been renamed to `BillingFindResultFields.COLUMN_TERM`
|
|
35
|
+
- `LicenseOfferFields.COLUMN_TYPE` has been renamed to `BillingFindResultFields.COLUMN_TYPE`
|
|
36
|
+
- `LicenseOfferFields.COLUMN_CYCLE` has been renamed to `BillingFindResultFields.COLUMN_CYCLE`
|
|
37
|
+
|
|
38
|
+
Different types have been replaced :
|
|
39
|
+
|
|
40
|
+
- `LicenseOfferFindResultData` becomes `OfferFindResultData`
|
|
41
|
+
- `LicenseDataKeywords` becomes `DataKeywords`
|
|
42
|
+
- `LicenseRawKeywordsParameters` becomes `LicenseRawKeywordsParametersLicence` and `LicenseRawKeywordsParametersOffer`
|
|
43
|
+
- `LicenseRawSortParameters` becomes `LicenseRawSortParametersLicense` and `LicenseRawSortParametersOffer`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import {
|
|
2
|
+
import { LicenseFindResultFields } from './license/licenseFindResult';
|
|
3
3
|
/**
|
|
4
4
|
* Filter data values
|
|
5
5
|
*/
|
|
6
6
|
export declare type FilterFindResultDataValues = {
|
|
7
|
-
[field in
|
|
7
|
+
[field in LicenseFindResultFields]?: unknown;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* Filter data
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
-
import { LicenseFindRawPayload, LicensesClient } from '../licensesClient';
|
|
3
|
-
import { Parameters } from '../../abstractClient';
|
|
4
1
|
import { LicenseFindResultData } from './license/licenseFindResult';
|
|
5
2
|
import { FilterFindResultData } from './filterFindResult';
|
|
6
|
-
import {
|
|
3
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
4
|
+
import { LicensesClient, LicenseFindRawPayload } from '../licensesClient';
|
|
5
|
+
import { OfferFindResultData } from './offer/offerFindResult';
|
|
6
|
+
import { Parameters } from '../../abstractClient';
|
|
7
7
|
export declare type FindData = {
|
|
8
8
|
pagination: {
|
|
9
9
|
currentPage: number;
|
|
@@ -12,19 +12,27 @@ export declare type FindData = {
|
|
|
12
12
|
};
|
|
13
13
|
results: Array<{
|
|
14
14
|
license: LicenseFindResultData;
|
|
15
|
-
offer?:
|
|
15
|
+
offer?: OfferFindResultData;
|
|
16
16
|
}>;
|
|
17
17
|
filters: Array<FilterFindResultData>;
|
|
18
18
|
};
|
|
19
19
|
export declare type FindResultData = {
|
|
20
20
|
results: AsyncGenerator<{
|
|
21
21
|
license: LicenseFindResultData;
|
|
22
|
-
offer?:
|
|
22
|
+
offer?: OfferFindResultData;
|
|
23
23
|
}, void, undefined>;
|
|
24
24
|
filters: FilterFindResultData[];
|
|
25
25
|
totalPage: number;
|
|
26
26
|
nbResults: number;
|
|
27
27
|
};
|
|
28
|
+
export declare type FindConfig = {
|
|
29
|
+
status: number;
|
|
30
|
+
data: Array<{
|
|
31
|
+
name: string;
|
|
32
|
+
scope: string;
|
|
33
|
+
state: string;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
28
36
|
export declare class FindResult extends AbstractEntity<FindData> {
|
|
29
37
|
#private;
|
|
30
38
|
/**
|
|
@@ -42,7 +50,7 @@ export declare class FindResult extends AbstractEntity<FindData> {
|
|
|
42
50
|
*/
|
|
43
51
|
getResultsForCurrentPage(): Generator<{
|
|
44
52
|
license: LicenseFindResultData;
|
|
45
|
-
offer?:
|
|
53
|
+
offer?: OfferFindResultData;
|
|
46
54
|
}, void, undefined>;
|
|
47
55
|
/**
|
|
48
56
|
* Gets all the licenses from the result, page per page.
|
|
@@ -51,11 +59,11 @@ export declare class FindResult extends AbstractEntity<FindData> {
|
|
|
51
59
|
*/
|
|
52
60
|
getResults(): AsyncGenerator<{
|
|
53
61
|
license: LicenseFindResultData;
|
|
54
|
-
offer?:
|
|
62
|
+
offer?: OfferFindResultData;
|
|
55
63
|
}, void, undefined>;
|
|
56
64
|
get results(): AsyncGenerator<{
|
|
57
65
|
license: LicenseFindResultData;
|
|
58
|
-
offer?:
|
|
66
|
+
offer?: OfferFindResultData;
|
|
59
67
|
}, void, undefined>;
|
|
60
68
|
get filters(): Array<FilterFindResultData>;
|
|
61
69
|
get nbResults(): number;
|
|
@@ -15,10 +15,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
15
15
|
var _results, _filters, _client, _postData, _parameters, _currentPage, _totalPage, _nbResults;
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FindResult = void 0;
|
|
18
|
-
const abstractEntity_1 = require("../../abstractEntity");
|
|
19
18
|
const licenseFindResult_1 = require("./license/licenseFindResult");
|
|
20
19
|
const filterFindResult_1 = require("./filterFindResult");
|
|
21
|
-
const
|
|
20
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
21
|
+
const offerFindResult_1 = require("./offer/offerFindResult");
|
|
22
22
|
class FindResult extends abstractEntity_1.AbstractEntity {
|
|
23
23
|
/**
|
|
24
24
|
* FindResult constructor. Uses the client and request data to go through the pages.
|
|
@@ -47,7 +47,7 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
47
47
|
__classPrivateFieldSet(this, _results, data.results.map((result) => ({
|
|
48
48
|
license: new licenseFindResult_1.LicenseFindResult(result.license).toJSON(),
|
|
49
49
|
offer: result.offer
|
|
50
|
-
? new
|
|
50
|
+
? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
|
|
51
51
|
: undefined,
|
|
52
52
|
})));
|
|
53
53
|
__classPrivateFieldSet(this, _filters, data.filters.map((filter) => new filterFindResult_1.FilterFindResult(filter).toJSON()));
|
|
@@ -81,7 +81,7 @@ class FindResult extends abstractEntity_1.AbstractEntity {
|
|
|
81
81
|
yield {
|
|
82
82
|
license: new licenseFindResult_1.LicenseFindResult(result.license).toJSON(),
|
|
83
83
|
offer: result.offer
|
|
84
|
-
? new
|
|
84
|
+
? new offerFindResult_1.OfferFindResult(result.offer).toJSON()
|
|
85
85
|
: undefined,
|
|
86
86
|
};
|
|
87
87
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
2
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
+
export declare enum ActiveSeatsFindResultFields {
|
|
4
|
+
COLUMN_LAST_UPDATE = "lastUpdate",
|
|
5
|
+
COLUMN_NUMBER = "number"
|
|
6
|
+
}
|
|
7
|
+
export declare type ActiveSeatsFindresultData = {
|
|
8
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: string | null;
|
|
9
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: number | null;
|
|
10
|
+
};
|
|
11
|
+
export declare type ActiveSeatsFindResultDataKeywords = {
|
|
12
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: DataKeywords;
|
|
13
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: DataKeywords;
|
|
14
|
+
};
|
|
15
|
+
export declare type ActiveSeatsFindResultDataSortParameters = {
|
|
16
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: SortParameters;
|
|
17
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: SortParameters;
|
|
18
|
+
};
|
|
19
|
+
export declare type ActiveSeatsFindResultDataFiltersParameters = {
|
|
20
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]?: FiltersParameters;
|
|
21
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]?: FiltersParameters;
|
|
22
|
+
};
|
|
23
|
+
export declare class ActiveSeatsFindResult extends AbstractEntity<ActiveSeatsFindresultData> {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(data: ActiveSeatsFindresultData);
|
|
26
|
+
get lastUpdate(): string | null | undefined;
|
|
27
|
+
get number(): number | null | undefined;
|
|
28
|
+
toJSON(): ActiveSeatsFindresultData;
|
|
29
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _lastUpdate, _number;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ActiveSeatsFindResult = exports.ActiveSeatsFindResultFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var ActiveSeatsFindResultFields;
|
|
20
|
+
(function (ActiveSeatsFindResultFields) {
|
|
21
|
+
ActiveSeatsFindResultFields["COLUMN_LAST_UPDATE"] = "lastUpdate";
|
|
22
|
+
ActiveSeatsFindResultFields["COLUMN_NUMBER"] = "number";
|
|
23
|
+
})(ActiveSeatsFindResultFields = exports.ActiveSeatsFindResultFields || (exports.ActiveSeatsFindResultFields = {}));
|
|
24
|
+
class ActiveSeatsFindResult extends abstractEntity_1.AbstractEntity {
|
|
25
|
+
constructor(data) {
|
|
26
|
+
super(data);
|
|
27
|
+
_lastUpdate.set(this, void 0);
|
|
28
|
+
_number.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _lastUpdate, data[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]);
|
|
30
|
+
__classPrivateFieldSet(this, _number, data[ActiveSeatsFindResultFields.COLUMN_NUMBER]);
|
|
31
|
+
}
|
|
32
|
+
get lastUpdate() {
|
|
33
|
+
return __classPrivateFieldGet(this, _lastUpdate);
|
|
34
|
+
}
|
|
35
|
+
get number() {
|
|
36
|
+
return __classPrivateFieldGet(this, _number);
|
|
37
|
+
}
|
|
38
|
+
toJSON() {
|
|
39
|
+
return {
|
|
40
|
+
[ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: this.lastUpdate,
|
|
41
|
+
[ActiveSeatsFindResultFields.COLUMN_NUMBER]: this.number,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ActiveSeatsFindResult = ActiveSeatsFindResult;
|
|
46
|
+
_lastUpdate = new WeakMap(), _number = new WeakMap();
|
|
47
|
+
//# sourceMappingURL=activeSeatsFindResult.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DataKeywords, FiltersParameters, SortParameters } from '../../licensesClient';
|
|
2
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
3
|
+
import { Rules } from 'validatorjs';
|
|
4
|
+
export declare enum ConfigFindResultFields {
|
|
5
|
+
COLUMN_NAME = "name",
|
|
6
|
+
COLUMN_SCOPE = "scope",
|
|
7
|
+
COLUMN_STATE = "state"
|
|
8
|
+
}
|
|
9
|
+
export declare type ConfigFindResultData = {
|
|
10
|
+
[ConfigFindResultFields.COLUMN_NAME]: string | undefined;
|
|
11
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: string | undefined;
|
|
12
|
+
[ConfigFindResultFields.COLUMN_STATE]: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare type ConfigFindResultDataKeywords = {
|
|
15
|
+
[ConfigFindResultFields.COLUMN_NAME]?: DataKeywords;
|
|
16
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: DataKeywords;
|
|
17
|
+
[ConfigFindResultFields.COLUMN_STATE]?: DataKeywords;
|
|
18
|
+
};
|
|
19
|
+
export declare type ConfigFindResultDataSortParameters = {
|
|
20
|
+
[ConfigFindResultFields.COLUMN_NAME]?: SortParameters;
|
|
21
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: SortParameters;
|
|
22
|
+
[ConfigFindResultFields.COLUMN_STATE]?: SortParameters;
|
|
23
|
+
};
|
|
24
|
+
export declare type ConfigFindResultDataFiltersParameters = {
|
|
25
|
+
[ConfigFindResultFields.COLUMN_NAME]?: FiltersParameters;
|
|
26
|
+
[ConfigFindResultFields.COLUMN_SCOPE]?: FiltersParameters;
|
|
27
|
+
[ConfigFindResultFields.COLUMN_STATE]?: FiltersParameters;
|
|
28
|
+
};
|
|
29
|
+
export declare class ConfigFindResult extends AbstractEntity<ConfigFindResultData> {
|
|
30
|
+
#private;
|
|
31
|
+
protected VALIDATION_RULES: Rules;
|
|
32
|
+
constructor(data: ConfigFindResultData);
|
|
33
|
+
get name(): string | undefined;
|
|
34
|
+
get scope(): string | undefined;
|
|
35
|
+
get state(): string | undefined;
|
|
36
|
+
toJSON(): ConfigFindResultData;
|
|
37
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {
|
|
3
|
+
if (!privateMap.has(receiver)) {
|
|
4
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
5
|
+
}
|
|
6
|
+
privateMap.set(receiver, value);
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {
|
|
10
|
+
if (!privateMap.has(receiver)) {
|
|
11
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
12
|
+
}
|
|
13
|
+
return privateMap.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _name, _scope, _state;
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ConfigFindResult = exports.ConfigFindResultFields = void 0;
|
|
18
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
19
|
+
var ConfigFindResultFields;
|
|
20
|
+
(function (ConfigFindResultFields) {
|
|
21
|
+
ConfigFindResultFields["COLUMN_NAME"] = "name";
|
|
22
|
+
ConfigFindResultFields["COLUMN_SCOPE"] = "scope";
|
|
23
|
+
ConfigFindResultFields["COLUMN_STATE"] = "state";
|
|
24
|
+
})(ConfigFindResultFields = exports.ConfigFindResultFields || (exports.ConfigFindResultFields = {}));
|
|
25
|
+
class ConfigFindResult extends abstractEntity_1.AbstractEntity {
|
|
26
|
+
constructor(data) {
|
|
27
|
+
super(data);
|
|
28
|
+
this.VALIDATION_RULES = {
|
|
29
|
+
[ConfigFindResultFields.COLUMN_NAME]: 'required|string',
|
|
30
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: 'required|string',
|
|
31
|
+
[ConfigFindResultFields.COLUMN_STATE]: 'required|string',
|
|
32
|
+
};
|
|
33
|
+
_name.set(this, void 0);
|
|
34
|
+
_scope.set(this, void 0);
|
|
35
|
+
_state.set(this, void 0);
|
|
36
|
+
__classPrivateFieldSet(this, _name, data[ConfigFindResultFields.COLUMN_NAME]);
|
|
37
|
+
__classPrivateFieldSet(this, _scope, data[ConfigFindResultFields.COLUMN_SCOPE]);
|
|
38
|
+
__classPrivateFieldSet(this, _state, data[ConfigFindResultFields.COLUMN_STATE]);
|
|
39
|
+
}
|
|
40
|
+
get name() {
|
|
41
|
+
return __classPrivateFieldGet(this, _name);
|
|
42
|
+
}
|
|
43
|
+
get scope() {
|
|
44
|
+
return __classPrivateFieldGet(this, _scope);
|
|
45
|
+
}
|
|
46
|
+
get state() {
|
|
47
|
+
return __classPrivateFieldGet(this, _state);
|
|
48
|
+
}
|
|
49
|
+
toJSON() {
|
|
50
|
+
return {
|
|
51
|
+
[ConfigFindResultFields.COLUMN_NAME]: this.name,
|
|
52
|
+
[ConfigFindResultFields.COLUMN_SCOPE]: this.scope,
|
|
53
|
+
[ConfigFindResultFields.COLUMN_STATE]: this.state,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ConfigFindResult = ConfigFindResult;
|
|
58
|
+
_name = new WeakMap(), _scope = new WeakMap(), _state = new WeakMap();
|
|
59
|
+
//# sourceMappingURL=configFindResult.js.map
|