@arrowsphere/api-client 3.360.0-rc-mel-1 → 3.361.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 +12 -0
- package/build/catalog/types/queryProductArguments.d.ts +0 -1
- package/build/customers/customersClient.d.ts +2 -0
- package/build/customers/entities/customers/customer.d.ts +5 -1
- package/build/customers/entities/customers/customer.js +12 -3
- package/build/customers/entities/customers/customerCustomField.d.ts +16 -0
- package/build/customers/entities/customers/customerCustomField.js +45 -0
- package/build/licenses/entities/getLicense/licenseCustomField.d.ts +16 -0
- package/build/licenses/entities/getLicense/licenseCustomField.js +45 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +5 -1
- package/build/licenses/entities/getLicense/licenseGetResult.js +12 -4
- package/build/licenses/entities/license/licenseFindResult.d.ts +7 -1
- package/build/licenses/entities/license/licenseFindResult.js +11 -2
- package/build/licenses/licensesClient.d.ts +6 -1
- package/build/licenses/licensesClient.js +1 -0
- package/build/orders/entities/orders/customField/customField.d.ts +16 -0
- package/build/orders/entities/orders/customField/customField.js +45 -0
- package/build/orders/entities/orders/order.d.ts +5 -1
- package/build/orders/entities/orders/order.js +12 -3
- package/build/orders/ordersClient.d.ts +6 -1
- package/build/orders/ordersClient.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.361.0] - 2026.04.21
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [order] Add `customFields` in order entity and create order payload
|
|
10
|
+
- [license] Add `customFields` in get license and save billing comments payload
|
|
11
|
+
- [customer] Add `customFields` in customer entity and create/update payload
|
|
12
|
+
|
|
13
|
+
## [3.360.0] - 2026.04.15
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- [license] Add hasSeatDifference to LicenseGetData
|
|
17
|
+
|
|
6
18
|
## [3.359.0] - 2026.04.13
|
|
7
19
|
|
|
8
20
|
### Added
|
|
@@ -12,6 +12,7 @@ import { CustomerProvision } from './entities/customerProvision';
|
|
|
12
12
|
import { CustomerCredentials } from './entities/customerCredentials';
|
|
13
13
|
import { CustomerAgreements } from './entities/customers/agreements/customerAgreements';
|
|
14
14
|
import { DataInvitationActivate } from './entities/dataInvitationActivate';
|
|
15
|
+
import { CustomerCustomFieldType } from './entities/customers/customerCustomField';
|
|
15
16
|
export declare enum CustomerMigrationAttributeFields {
|
|
16
17
|
NAME = "name",
|
|
17
18
|
VALUE = "value"
|
|
@@ -98,6 +99,7 @@ export declare type PostCustomerPayload = {
|
|
|
98
99
|
[CustomerFields.COLUMN_INTERNAL_REFERENCE]?: string;
|
|
99
100
|
[CustomerFields.COLUMN_CONTACT]?: PostCustomerContact;
|
|
100
101
|
[CustomerFields.COLUMN_REGISTRATION_NUMBER]?: string;
|
|
102
|
+
[CustomerFields.COLUMN_CUSTOM_FIELDS]?: CustomerCustomFieldType[];
|
|
101
103
|
};
|
|
102
104
|
export declare enum PostCustomerInvitationFields {
|
|
103
105
|
COLUMN_CONTACT_ID = "contactId",
|
|
@@ -3,6 +3,7 @@ import { Contact, ContactType } from './contact/contact';
|
|
|
3
3
|
import { Details, DetailsType } from './details/details';
|
|
4
4
|
import { AdditionalExtraInformation, AdditionalExtraInformationType } from '../../../shared';
|
|
5
5
|
import { OrganizationUnit, OrganizationUnitType } from '../../../organisationUnit';
|
|
6
|
+
import { CustomerCustomField, CustomerCustomFieldType } from './customerCustomField';
|
|
6
7
|
export declare enum CustomerFields {
|
|
7
8
|
COLUMN_REFERENCE = "Reference",
|
|
8
9
|
COLUMN_WORKGROUP_CODE = "WorkgroupCode",
|
|
@@ -44,7 +45,8 @@ export declare enum CustomerFields {
|
|
|
44
45
|
COLUMN_ORGANISATION_UNIT = "OrganisationUnit",
|
|
45
46
|
COLUMN_RESELLER = "Reseller",
|
|
46
47
|
COLUMN_PARTNER_TAGS = "PartnerTags",
|
|
47
|
-
COLUMN_PARTNER_TAGS_LABEL = "label"
|
|
48
|
+
COLUMN_PARTNER_TAGS_LABEL = "label",
|
|
49
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
48
50
|
}
|
|
49
51
|
export declare type CompanyReseller = {
|
|
50
52
|
[CustomerFields.COLUMN_REF]: string;
|
|
@@ -94,6 +96,7 @@ export declare type CustomerType = {
|
|
|
94
96
|
[CustomerFields.COLUMN_ORGANISATION_UNIT]?: OrganizationUnitType;
|
|
95
97
|
[CustomerFields.COLUMN_RESELLER]?: CompanyReseller;
|
|
96
98
|
[CustomerFields.COLUMN_PARTNER_TAGS]?: PartnerTags[];
|
|
99
|
+
[CustomerFields.COLUMN_CUSTOM_FIELDS]?: CustomerCustomFieldType[];
|
|
97
100
|
};
|
|
98
101
|
export declare class Customer extends AbstractEntity<CustomerType> {
|
|
99
102
|
#private;
|
|
@@ -138,5 +141,6 @@ export declare class Customer extends AbstractEntity<CustomerType> {
|
|
|
138
141
|
get OrganisationUnit(): OrganizationUnit | undefined;
|
|
139
142
|
get Reseller(): CompanyReseller | undefined;
|
|
140
143
|
get PartnerTags(): PartnerTags[] | undefined;
|
|
144
|
+
get CustomFields(): CustomerCustomField[] | undefined;
|
|
141
145
|
toJSON(): CustomerType;
|
|
142
146
|
}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _Customer_reference, _Customer_workgroupCode, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_registrationNumber, _Customer_billingId, _Customer_billingAddress1, _Customer_billingAddress2, _Customer_billingCity, _Customer_billingState, _Customer_billingZipCode, _Customer_billingCountryCode, _Customer_adminNote, _Customer_isr, _Customer_fsr, _Customer_poNumberMandatory, _Customer_type, _Customer_internalReference, _Customer_contact, _Customer_deletedAt, _Customer_createdAt, _Customer_xacResellerId, _Customer_xacEndCustomerId, _Customer_details, _Customer_extraInformation, _Customer_organisationUnit, _Customer_reseller, _Customer_partnerTags;
|
|
13
|
+
var _Customer_reference, _Customer_workgroupCode, _Customer_companyName, _Customer_partnerCompanyId, _Customer_addressLine1, _Customer_addressLine2, _Customer_zip, _Customer_city, _Customer_countryCode, _Customer_state, _Customer_receptionPhone, _Customer_websiteUrl, _Customer_emailContact, _Customer_headcount, _Customer_taxNumber, _Customer_ref, _Customer_registrationNumber, _Customer_billingId, _Customer_billingAddress1, _Customer_billingAddress2, _Customer_billingCity, _Customer_billingState, _Customer_billingZipCode, _Customer_billingCountryCode, _Customer_adminNote, _Customer_isr, _Customer_fsr, _Customer_poNumberMandatory, _Customer_type, _Customer_internalReference, _Customer_contact, _Customer_deletedAt, _Customer_createdAt, _Customer_xacResellerId, _Customer_xacEndCustomerId, _Customer_details, _Customer_extraInformation, _Customer_organisationUnit, _Customer_reseller, _Customer_partnerTags, _Customer_customFields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Customer = exports.CustomerFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -18,6 +18,7 @@ const contact_1 = require("./contact/contact");
|
|
|
18
18
|
const details_1 = require("./details/details");
|
|
19
19
|
const shared_1 = require("../../../shared");
|
|
20
20
|
const organisationUnit_1 = require("../../../organisationUnit");
|
|
21
|
+
const customerCustomField_1 = require("./customerCustomField");
|
|
21
22
|
var CustomerFields;
|
|
22
23
|
(function (CustomerFields) {
|
|
23
24
|
CustomerFields["COLUMN_REFERENCE"] = "Reference";
|
|
@@ -61,9 +62,11 @@ var CustomerFields;
|
|
|
61
62
|
CustomerFields["COLUMN_RESELLER"] = "Reseller";
|
|
62
63
|
CustomerFields["COLUMN_PARTNER_TAGS"] = "PartnerTags";
|
|
63
64
|
CustomerFields["COLUMN_PARTNER_TAGS_LABEL"] = "label";
|
|
65
|
+
CustomerFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
64
66
|
})(CustomerFields = exports.CustomerFields || (exports.CustomerFields = {}));
|
|
65
67
|
class Customer extends abstractEntity_1.AbstractEntity {
|
|
66
68
|
constructor(getCustomersDataInput) {
|
|
69
|
+
var _a;
|
|
67
70
|
super(getCustomersDataInput);
|
|
68
71
|
_Customer_reference.set(this, void 0);
|
|
69
72
|
_Customer_workgroupCode.set(this, void 0);
|
|
@@ -105,6 +108,7 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
105
108
|
_Customer_organisationUnit.set(this, void 0);
|
|
106
109
|
_Customer_reseller.set(this, void 0);
|
|
107
110
|
_Customer_partnerTags.set(this, void 0);
|
|
111
|
+
_Customer_customFields.set(this, void 0);
|
|
108
112
|
__classPrivateFieldSet(this, _Customer_reference, getCustomersDataInput[CustomerFields.COLUMN_REFERENCE], "f");
|
|
109
113
|
__classPrivateFieldSet(this, _Customer_workgroupCode, getCustomersDataInput[CustomerFields.COLUMN_WORKGROUP_CODE], "f");
|
|
110
114
|
__classPrivateFieldSet(this, _Customer_companyName, getCustomersDataInput[CustomerFields.COLUMN_COMPANY_NAME], "f");
|
|
@@ -149,6 +153,7 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
149
153
|
: undefined, "f");
|
|
150
154
|
__classPrivateFieldSet(this, _Customer_reseller, getCustomersDataInput[CustomerFields.COLUMN_RESELLER], "f");
|
|
151
155
|
__classPrivateFieldSet(this, _Customer_partnerTags, getCustomersDataInput[CustomerFields.COLUMN_PARTNER_TAGS], "f");
|
|
156
|
+
__classPrivateFieldSet(this, _Customer_customFields, (_a = getCustomersDataInput[CustomerFields.COLUMN_CUSTOM_FIELDS]) === null || _a === void 0 ? void 0 : _a.map((field) => new customerCustomField_1.CustomerCustomField(field)), "f");
|
|
152
157
|
}
|
|
153
158
|
get Reference() {
|
|
154
159
|
return __classPrivateFieldGet(this, _Customer_reference, "f");
|
|
@@ -270,8 +275,11 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
270
275
|
get PartnerTags() {
|
|
271
276
|
return __classPrivateFieldGet(this, _Customer_partnerTags, "f");
|
|
272
277
|
}
|
|
278
|
+
get CustomFields() {
|
|
279
|
+
return __classPrivateFieldGet(this, _Customer_customFields, "f");
|
|
280
|
+
}
|
|
273
281
|
toJSON() {
|
|
274
|
-
var _a, _b;
|
|
282
|
+
var _a, _b, _c;
|
|
275
283
|
return {
|
|
276
284
|
[CustomerFields.COLUMN_REFERENCE]: this.Reference,
|
|
277
285
|
[CustomerFields.COLUMN_WORKGROUP_CODE]: this.WorkgroupCode,
|
|
@@ -313,9 +321,10 @@ class Customer extends abstractEntity_1.AbstractEntity {
|
|
|
313
321
|
[CustomerFields.COLUMN_ORGANISATION_UNIT]: (_b = this.OrganisationUnit) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
314
322
|
[CustomerFields.COLUMN_RESELLER]: this.Reseller,
|
|
315
323
|
[CustomerFields.COLUMN_PARTNER_TAGS]: this.PartnerTags,
|
|
324
|
+
[CustomerFields.COLUMN_CUSTOM_FIELDS]: (_c = this.CustomFields) === null || _c === void 0 ? void 0 : _c.map((field) => field.toJSON()),
|
|
316
325
|
};
|
|
317
326
|
}
|
|
318
327
|
}
|
|
319
328
|
exports.Customer = Customer;
|
|
320
|
-
_Customer_reference = new WeakMap(), _Customer_workgroupCode = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_registrationNumber = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_billingAddress1 = new WeakMap(), _Customer_billingAddress2 = new WeakMap(), _Customer_billingCity = new WeakMap(), _Customer_billingState = new WeakMap(), _Customer_billingZipCode = new WeakMap(), _Customer_billingCountryCode = new WeakMap(), _Customer_adminNote = new WeakMap(), _Customer_isr = new WeakMap(), _Customer_fsr = new WeakMap(), _Customer_poNumberMandatory = new WeakMap(), _Customer_type = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(), _Customer_createdAt = new WeakMap(), _Customer_xacResellerId = new WeakMap(), _Customer_xacEndCustomerId = new WeakMap(), _Customer_details = new WeakMap(), _Customer_extraInformation = new WeakMap(), _Customer_organisationUnit = new WeakMap(), _Customer_reseller = new WeakMap(), _Customer_partnerTags = new WeakMap();
|
|
329
|
+
_Customer_reference = new WeakMap(), _Customer_workgroupCode = new WeakMap(), _Customer_companyName = new WeakMap(), _Customer_partnerCompanyId = new WeakMap(), _Customer_addressLine1 = new WeakMap(), _Customer_addressLine2 = new WeakMap(), _Customer_zip = new WeakMap(), _Customer_city = new WeakMap(), _Customer_countryCode = new WeakMap(), _Customer_state = new WeakMap(), _Customer_receptionPhone = new WeakMap(), _Customer_websiteUrl = new WeakMap(), _Customer_emailContact = new WeakMap(), _Customer_headcount = new WeakMap(), _Customer_taxNumber = new WeakMap(), _Customer_ref = new WeakMap(), _Customer_registrationNumber = new WeakMap(), _Customer_billingId = new WeakMap(), _Customer_billingAddress1 = new WeakMap(), _Customer_billingAddress2 = new WeakMap(), _Customer_billingCity = new WeakMap(), _Customer_billingState = new WeakMap(), _Customer_billingZipCode = new WeakMap(), _Customer_billingCountryCode = new WeakMap(), _Customer_adminNote = new WeakMap(), _Customer_isr = new WeakMap(), _Customer_fsr = new WeakMap(), _Customer_poNumberMandatory = new WeakMap(), _Customer_type = new WeakMap(), _Customer_internalReference = new WeakMap(), _Customer_contact = new WeakMap(), _Customer_deletedAt = new WeakMap(), _Customer_createdAt = new WeakMap(), _Customer_xacResellerId = new WeakMap(), _Customer_xacEndCustomerId = new WeakMap(), _Customer_details = new WeakMap(), _Customer_extraInformation = new WeakMap(), _Customer_organisationUnit = new WeakMap(), _Customer_reseller = new WeakMap(), _Customer_partnerTags = new WeakMap(), _Customer_customFields = new WeakMap();
|
|
321
330
|
//# sourceMappingURL=customer.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CustomerCustomFieldFields {
|
|
3
|
+
COLUMN_LABEL = "label",
|
|
4
|
+
COLUMN_VALUE = "value"
|
|
5
|
+
}
|
|
6
|
+
export declare type CustomerCustomFieldType = {
|
|
7
|
+
[CustomerCustomFieldFields.COLUMN_LABEL]: string;
|
|
8
|
+
[CustomerCustomFieldFields.COLUMN_VALUE]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class CustomerCustomField extends AbstractEntity<CustomerCustomFieldType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(input: CustomerCustomFieldType);
|
|
13
|
+
get label(): string;
|
|
14
|
+
get value(): string;
|
|
15
|
+
toJSON(): CustomerCustomFieldType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _CustomerCustomField_label, _CustomerCustomField_value;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CustomerCustomField = exports.CustomerCustomFieldFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CustomerCustomFieldFields;
|
|
18
|
+
(function (CustomerCustomFieldFields) {
|
|
19
|
+
CustomerCustomFieldFields["COLUMN_LABEL"] = "label";
|
|
20
|
+
CustomerCustomFieldFields["COLUMN_VALUE"] = "value";
|
|
21
|
+
})(CustomerCustomFieldFields = exports.CustomerCustomFieldFields || (exports.CustomerCustomFieldFields = {}));
|
|
22
|
+
class CustomerCustomField extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
super(input);
|
|
25
|
+
_CustomerCustomField_label.set(this, void 0);
|
|
26
|
+
_CustomerCustomField_value.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _CustomerCustomField_label, input[CustomerCustomFieldFields.COLUMN_LABEL], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _CustomerCustomField_value, input[CustomerCustomFieldFields.COLUMN_VALUE], "f");
|
|
29
|
+
}
|
|
30
|
+
get label() {
|
|
31
|
+
return __classPrivateFieldGet(this, _CustomerCustomField_label, "f");
|
|
32
|
+
}
|
|
33
|
+
get value() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CustomerCustomField_value, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[CustomerCustomFieldFields.COLUMN_LABEL]: this.label,
|
|
39
|
+
[CustomerCustomFieldFields.COLUMN_VALUE]: this.value,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CustomerCustomField = CustomerCustomField;
|
|
44
|
+
_CustomerCustomField_label = new WeakMap(), _CustomerCustomField_value = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=customerCustomField.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum LicenseCustomFieldFields {
|
|
3
|
+
COLUMN_LABEL = "label",
|
|
4
|
+
COLUMN_VALUE = "value"
|
|
5
|
+
}
|
|
6
|
+
export declare type LicenseCustomFieldType = {
|
|
7
|
+
[LicenseCustomFieldFields.COLUMN_LABEL]: string;
|
|
8
|
+
[LicenseCustomFieldFields.COLUMN_VALUE]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class LicenseCustomField extends AbstractEntity<LicenseCustomFieldType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(input: LicenseCustomFieldType);
|
|
13
|
+
get label(): string;
|
|
14
|
+
get value(): string;
|
|
15
|
+
toJSON(): LicenseCustomFieldType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _LicenseCustomField_label, _LicenseCustomField_value;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.LicenseCustomField = exports.LicenseCustomFieldFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var LicenseCustomFieldFields;
|
|
18
|
+
(function (LicenseCustomFieldFields) {
|
|
19
|
+
LicenseCustomFieldFields["COLUMN_LABEL"] = "label";
|
|
20
|
+
LicenseCustomFieldFields["COLUMN_VALUE"] = "value";
|
|
21
|
+
})(LicenseCustomFieldFields = exports.LicenseCustomFieldFields || (exports.LicenseCustomFieldFields = {}));
|
|
22
|
+
class LicenseCustomField extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
super(input);
|
|
25
|
+
_LicenseCustomField_label.set(this, void 0);
|
|
26
|
+
_LicenseCustomField_value.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _LicenseCustomField_label, input[LicenseCustomFieldFields.COLUMN_LABEL], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _LicenseCustomField_value, input[LicenseCustomFieldFields.COLUMN_VALUE], "f");
|
|
29
|
+
}
|
|
30
|
+
get label() {
|
|
31
|
+
return __classPrivateFieldGet(this, _LicenseCustomField_label, "f");
|
|
32
|
+
}
|
|
33
|
+
get value() {
|
|
34
|
+
return __classPrivateFieldGet(this, _LicenseCustomField_value, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[LicenseCustomFieldFields.COLUMN_LABEL]: this.label,
|
|
39
|
+
[LicenseCustomFieldFields.COLUMN_VALUE]: this.value,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.LicenseCustomField = LicenseCustomField;
|
|
44
|
+
_LicenseCustomField_label = new WeakMap(), _LicenseCustomField_value = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=licenseCustomField.js.map
|
|
@@ -13,6 +13,7 @@ import { RatesGetData, RatesGetResult } from './ratesGetResult';
|
|
|
13
13
|
import { RelationGetData, RelationGetResult } from './relationGetResult';
|
|
14
14
|
import { ConfigFindResult, ConfigFindResultData } from '../license/configFindResult';
|
|
15
15
|
import { WarningFindResult, WarningFindResultData } from '../license/warningFindResult';
|
|
16
|
+
import { LicenseCustomField, LicenseCustomFieldType } from './licenseCustomField';
|
|
16
17
|
export declare enum LicenseGetFields {
|
|
17
18
|
COLUMN_ADDITIONAL_INFORMATION = "additional_information",
|
|
18
19
|
COLUMN_CLASSIFICATION = "classification",
|
|
@@ -66,7 +67,8 @@ export declare enum LicenseGetFields {
|
|
|
66
67
|
COLUMN_CONFIGS = "configs",
|
|
67
68
|
COLUMN_WARNINGS = "warnings",
|
|
68
69
|
COLUMN_END_DATE = "endDate",
|
|
69
|
-
COLUMN_ATTRIBUTES = "attributes"
|
|
70
|
+
COLUMN_ATTRIBUTES = "attributes",
|
|
71
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
70
72
|
}
|
|
71
73
|
export declare enum RenewalPolicyEnum {
|
|
72
74
|
CANCEL = "cancel",
|
|
@@ -127,6 +129,7 @@ export declare type LicenseGetData = {
|
|
|
127
129
|
[LicenseGetFields.COLUMN_WARNINGS]?: Array<WarningFindResultData> | null;
|
|
128
130
|
[LicenseGetFields.COLUMN_END_DATE]: string;
|
|
129
131
|
[LicenseGetFields.COLUMN_ATTRIBUTES]: Record<string, string>;
|
|
132
|
+
[LicenseGetFields.COLUMN_CUSTOM_FIELDS]?: Array<LicenseCustomFieldType>;
|
|
130
133
|
};
|
|
131
134
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
132
135
|
#private;
|
|
@@ -184,5 +187,6 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
184
187
|
get warnings(): Array<WarningFindResult> | null | undefined;
|
|
185
188
|
get endDate(): string;
|
|
186
189
|
get attributes(): Record<string, string>;
|
|
190
|
+
get customFields(): Array<LicenseCustomField> | undefined;
|
|
187
191
|
toJSON(): LicenseGetData;
|
|
188
192
|
}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_renewalPolicy, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate, _LicenseGetResult_attributes;
|
|
13
|
+
var _LicenseGetResult_additionalInformation, _LicenseGetResult_classification, _LicenseGetResult_license_id, _LicenseGetResult_parent_license_id, _LicenseGetResult_friendlyName, _LicenseGetResult_customer_ref, _LicenseGetResult_state, _LicenseGetResult_statusCode, _LicenseGetResult_isTrial, _LicenseGetResult_isAddon, _LicenseGetResult_service_ref, _LicenseGetResult_sku, _LicenseGetResult_name, _LicenseGetResult_seats, _LicenseGetResult_activeSeats, _LicenseGetResult_security, _LicenseGetResult_activation_datetime, _LicenseGetResult_expiry_datetime, _LicenseGetResult_autoRenew, _LicenseGetResult_renewalPolicy, _LicenseGetResult_marketplace, _LicenseGetResult_message, _LicenseGetResult_actions, _LicenseGetResult_actionMessages, _LicenseGetResult_order_reference, _LicenseGetResult_order, _LicenseGetResult_vendor_license_id, _LicenseGetResult_periodicity, _LicenseGetResult_periodicityCode, _LicenseGetResult_term, _LicenseGetResult_termCode, _LicenseGetResult_category, _LicenseGetResult_program, _LicenseGetResult_associatedSubscriptionProgram, _LicenseGetResult_price, _LicenseGetResult_arrowSubCategories, _LicenseGetResult_nextRenewalDate, _LicenseGetResult_promotion, _LicenseGetResult_assets, _LicenseGetResult_vendorBillingId, _LicenseGetResult_extraData, _LicenseGetResult_priceBand, _LicenseGetResult_vendorCode, _LicenseGetResult_vendor_code, _LicenseGetResult_vendorSku, _LicenseGetResult_rates, _LicenseGetResult_organizationUnitId, _LicenseGetResult_relation, _LicenseGetResult_marketSegment, _LicenseGetResult_configs, _LicenseGetResult_warnings, _LicenseGetResult_endDate, _LicenseGetResult_attributes, _LicenseGetResult_customFields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.RenewalPolicyEnum = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -28,6 +28,7 @@ const ratesGetResult_1 = require("./ratesGetResult");
|
|
|
28
28
|
const relationGetResult_1 = require("./relationGetResult");
|
|
29
29
|
const configFindResult_1 = require("../license/configFindResult");
|
|
30
30
|
const warningFindResult_1 = require("../license/warningFindResult");
|
|
31
|
+
const licenseCustomField_1 = require("./licenseCustomField");
|
|
31
32
|
var LicenseGetFields;
|
|
32
33
|
(function (LicenseGetFields) {
|
|
33
34
|
LicenseGetFields["COLUMN_ADDITIONAL_INFORMATION"] = "additional_information";
|
|
@@ -83,6 +84,7 @@ var LicenseGetFields;
|
|
|
83
84
|
LicenseGetFields["COLUMN_WARNINGS"] = "warnings";
|
|
84
85
|
LicenseGetFields["COLUMN_END_DATE"] = "endDate";
|
|
85
86
|
LicenseGetFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
87
|
+
LicenseGetFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
86
88
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
87
89
|
var RenewalPolicyEnum;
|
|
88
90
|
(function (RenewalPolicyEnum) {
|
|
@@ -92,7 +94,7 @@ var RenewalPolicyEnum;
|
|
|
92
94
|
})(RenewalPolicyEnum = exports.RenewalPolicyEnum || (exports.RenewalPolicyEnum = {}));
|
|
93
95
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
94
96
|
constructor(licenseGetDataInput) {
|
|
95
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
97
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
96
98
|
super(licenseGetDataInput);
|
|
97
99
|
_LicenseGetResult_additionalInformation.set(this, void 0);
|
|
98
100
|
_LicenseGetResult_classification.set(this, void 0);
|
|
@@ -147,6 +149,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
147
149
|
_LicenseGetResult_warnings.set(this, void 0);
|
|
148
150
|
_LicenseGetResult_endDate.set(this, void 0);
|
|
149
151
|
_LicenseGetResult_attributes.set(this, void 0);
|
|
152
|
+
_LicenseGetResult_customFields.set(this, void 0);
|
|
150
153
|
__classPrivateFieldSet(this, _LicenseGetResult_additionalInformation, licenseGetDataInput[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION], "f");
|
|
151
154
|
__classPrivateFieldSet(this, _LicenseGetResult_classification, licenseGetDataInput[LicenseGetFields.COLUMN_CLASSIFICATION], "f");
|
|
152
155
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
@@ -214,6 +217,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
214
217
|
__classPrivateFieldSet(this, _LicenseGetResult_warnings, (_e = licenseGetDataInput[LicenseGetFields.COLUMN_WARNINGS]) === null || _e === void 0 ? void 0 : _e.map((warningData) => new warningFindResult_1.WarningFindResult(warningData)), "f");
|
|
215
218
|
__classPrivateFieldSet(this, _LicenseGetResult_endDate, (_f = licenseGetDataInput[LicenseGetFields.COLUMN_END_DATE]) !== null && _f !== void 0 ? _f : '', "f");
|
|
216
219
|
__classPrivateFieldSet(this, _LicenseGetResult_attributes, (_g = licenseGetDataInput[LicenseGetFields.COLUMN_ATTRIBUTES]) !== null && _g !== void 0 ? _g : {}, "f");
|
|
220
|
+
__classPrivateFieldSet(this, _LicenseGetResult_customFields, (_h = licenseGetDataInput[LicenseGetFields.COLUMN_CUSTOM_FIELDS]) === null || _h === void 0 ? void 0 : _h.map((field) => new licenseCustomField_1.LicenseCustomField(field)), "f");
|
|
217
221
|
}
|
|
218
222
|
get classification() {
|
|
219
223
|
return __classPrivateFieldGet(this, _LicenseGetResult_classification, "f");
|
|
@@ -377,8 +381,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
377
381
|
get attributes() {
|
|
378
382
|
return __classPrivateFieldGet(this, _LicenseGetResult_attributes, "f");
|
|
379
383
|
}
|
|
384
|
+
get customFields() {
|
|
385
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_customFields, "f");
|
|
386
|
+
}
|
|
380
387
|
toJSON() {
|
|
381
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
388
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
382
389
|
return {
|
|
383
390
|
[LicenseGetFields.COLUMN_ADDITIONAL_INFORMATION]: this
|
|
384
391
|
.additionalInformation,
|
|
@@ -435,9 +442,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
435
442
|
[LicenseGetFields.COLUMN_WARNINGS]: (_l = this.warnings) === null || _l === void 0 ? void 0 : _l.map((warning) => warning.toJSON()),
|
|
436
443
|
[LicenseGetFields.COLUMN_END_DATE]: this.endDate,
|
|
437
444
|
[LicenseGetFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
445
|
+
[LicenseGetFields.COLUMN_CUSTOM_FIELDS]: (_m = this.customFields) === null || _m === void 0 ? void 0 : _m.map((field) => field.toJSON()),
|
|
438
446
|
};
|
|
439
447
|
}
|
|
440
448
|
}
|
|
441
449
|
exports.LicenseGetResult = LicenseGetResult;
|
|
442
|
-
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_renewalPolicy = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap(), _LicenseGetResult_attributes = new WeakMap();
|
|
450
|
+
_LicenseGetResult_additionalInformation = new WeakMap(), _LicenseGetResult_classification = new WeakMap(), _LicenseGetResult_license_id = new WeakMap(), _LicenseGetResult_parent_license_id = new WeakMap(), _LicenseGetResult_friendlyName = new WeakMap(), _LicenseGetResult_customer_ref = new WeakMap(), _LicenseGetResult_state = new WeakMap(), _LicenseGetResult_statusCode = new WeakMap(), _LicenseGetResult_isTrial = new WeakMap(), _LicenseGetResult_isAddon = new WeakMap(), _LicenseGetResult_service_ref = new WeakMap(), _LicenseGetResult_sku = new WeakMap(), _LicenseGetResult_name = new WeakMap(), _LicenseGetResult_seats = new WeakMap(), _LicenseGetResult_activeSeats = new WeakMap(), _LicenseGetResult_security = new WeakMap(), _LicenseGetResult_activation_datetime = new WeakMap(), _LicenseGetResult_expiry_datetime = new WeakMap(), _LicenseGetResult_autoRenew = new WeakMap(), _LicenseGetResult_renewalPolicy = new WeakMap(), _LicenseGetResult_marketplace = new WeakMap(), _LicenseGetResult_message = new WeakMap(), _LicenseGetResult_actions = new WeakMap(), _LicenseGetResult_actionMessages = new WeakMap(), _LicenseGetResult_order_reference = new WeakMap(), _LicenseGetResult_order = new WeakMap(), _LicenseGetResult_vendor_license_id = new WeakMap(), _LicenseGetResult_periodicity = new WeakMap(), _LicenseGetResult_periodicityCode = new WeakMap(), _LicenseGetResult_term = new WeakMap(), _LicenseGetResult_termCode = new WeakMap(), _LicenseGetResult_category = new WeakMap(), _LicenseGetResult_program = new WeakMap(), _LicenseGetResult_associatedSubscriptionProgram = new WeakMap(), _LicenseGetResult_price = new WeakMap(), _LicenseGetResult_arrowSubCategories = new WeakMap(), _LicenseGetResult_nextRenewalDate = new WeakMap(), _LicenseGetResult_promotion = new WeakMap(), _LicenseGetResult_assets = new WeakMap(), _LicenseGetResult_vendorBillingId = new WeakMap(), _LicenseGetResult_extraData = new WeakMap(), _LicenseGetResult_priceBand = new WeakMap(), _LicenseGetResult_vendorCode = new WeakMap(), _LicenseGetResult_vendor_code = new WeakMap(), _LicenseGetResult_vendorSku = new WeakMap(), _LicenseGetResult_rates = new WeakMap(), _LicenseGetResult_organizationUnitId = new WeakMap(), _LicenseGetResult_relation = new WeakMap(), _LicenseGetResult_marketSegment = new WeakMap(), _LicenseGetResult_configs = new WeakMap(), _LicenseGetResult_warnings = new WeakMap(), _LicenseGetResult_endDate = new WeakMap(), _LicenseGetResult_attributes = new WeakMap(), _LicenseGetResult_customFields = new WeakMap();
|
|
443
451
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -62,7 +62,8 @@ export declare enum LicenseFindResultFields {
|
|
|
62
62
|
COLUMN_VENDOR_NAME = "vendor_name",
|
|
63
63
|
COLUMN_VENDOR_SUBSCRIPTION_ID = "vendor_subscription_id",
|
|
64
64
|
COLUMN_HIGHLIGHT = "highlight",
|
|
65
|
-
COLUMN_ATTRIBUTES = "attributes"
|
|
65
|
+
COLUMN_ATTRIBUTES = "attributes",
|
|
66
|
+
COLUMN_HAS_SEAT_DIFFERENCE = "has_seat_difference"
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
69
|
* License data fields and their corresponding types
|
|
@@ -115,6 +116,7 @@ export declare type LicenseFindResultData = {
|
|
|
115
116
|
[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]: string | null;
|
|
116
117
|
[LicenseFindResultFields.COLUMN_HIGHLIGHT]?: Highlight;
|
|
117
118
|
[LicenseFindResultFields.COLUMN_ATTRIBUTES]?: Record<string, string>;
|
|
119
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]: boolean | null;
|
|
118
120
|
};
|
|
119
121
|
export declare type LicenceFindDataKeywords = {
|
|
120
122
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]?: DataKeywords;
|
|
@@ -162,6 +164,7 @@ export declare type LicenceFindDataKeywords = {
|
|
|
162
164
|
[LicenseFindResultFields.COLUMN_VENDOR_CODE]?: DataKeywords;
|
|
163
165
|
[LicenseFindResultFields.COLUMN_VENDOR_NAME]?: DataKeywords;
|
|
164
166
|
[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]?: DataKeywords;
|
|
167
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]?: DataKeywords;
|
|
165
168
|
};
|
|
166
169
|
export declare type LicenceFindDataSortParameters = {
|
|
167
170
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]?: SortParameters;
|
|
@@ -209,6 +212,7 @@ export declare type LicenceFindDataSortParameters = {
|
|
|
209
212
|
[LicenseFindResultFields.COLUMN_VENDOR_CODE]?: SortParameters;
|
|
210
213
|
[LicenseFindResultFields.COLUMN_VENDOR_NAME]?: SortParameters;
|
|
211
214
|
[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]?: SortParameters;
|
|
215
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]?: SortParameters;
|
|
212
216
|
};
|
|
213
217
|
export declare type LicenceFindDataFiltersParameters = {
|
|
214
218
|
[LicenseFindResultFields.COLUMN_ACCEPT_EULA]?: FiltersParameters;
|
|
@@ -257,6 +261,7 @@ export declare type LicenceFindDataFiltersParameters = {
|
|
|
257
261
|
[LicenseFindResultFields.COLUMN_VENDOR_NAME]?: FiltersParameters;
|
|
258
262
|
[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID]?: FiltersParameters;
|
|
259
263
|
[LicenseFindResultFields.COLUMN_ATTRIBUTES]?: Record<string, FiltersParameters>;
|
|
264
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]?: FiltersParameters;
|
|
260
265
|
};
|
|
261
266
|
export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultData> {
|
|
262
267
|
#private;
|
|
@@ -314,6 +319,7 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
314
319
|
get vendorSubscriptionId(): string | null;
|
|
315
320
|
get highlight(): Highlight;
|
|
316
321
|
get attributes(): Record<string, string> | undefined;
|
|
322
|
+
get hasSeatDifference(): boolean | null;
|
|
317
323
|
/**
|
|
318
324
|
* Plain JSON object representation of the license entity.
|
|
319
325
|
* @returns {@link LicenseData}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_offerArrowsphereSku, _LicenseFindResult_orderRef, _LicenseFindResult_pricebandVendorSku, _LicenseFindResult_nextRenewalDate, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_security, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight, _LicenseFindResult_attributes;
|
|
13
|
+
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_offerArrowsphereSku, _LicenseFindResult_orderRef, _LicenseFindResult_pricebandVendorSku, _LicenseFindResult_nextRenewalDate, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_security, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight, _LicenseFindResult_attributes, _LicenseFindResult_hasSeatDifference;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
16
16
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
@@ -71,6 +71,7 @@ var LicenseFindResultFields;
|
|
|
71
71
|
LicenseFindResultFields["COLUMN_VENDOR_SUBSCRIPTION_ID"] = "vendor_subscription_id";
|
|
72
72
|
LicenseFindResultFields["COLUMN_HIGHLIGHT"] = "highlight";
|
|
73
73
|
LicenseFindResultFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
74
|
+
LicenseFindResultFields["COLUMN_HAS_SEAT_DIFFERENCE"] = "has_seat_difference";
|
|
74
75
|
})(LicenseFindResultFields = exports.LicenseFindResultFields || (exports.LicenseFindResultFields = {}));
|
|
75
76
|
class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
76
77
|
/**
|
|
@@ -100,6 +101,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
100
101
|
[LicenseFindResultFields.COLUMN_VENDOR_NAME]: 'required',
|
|
101
102
|
[LicenseFindResultFields.COLUMN_VENDOR_CODE]: 'required',
|
|
102
103
|
[LicenseFindResultFields.COLUMN_HIGHLIGHT]: 'object',
|
|
104
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]: 'boolean',
|
|
103
105
|
};
|
|
104
106
|
_LicenseFindResult_acceptEula.set(this, void 0);
|
|
105
107
|
_LicenseFindResult_activeSeats.set(this, void 0);
|
|
@@ -148,6 +150,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
148
150
|
_LicenseFindResult_vendorSubscriptionId.set(this, void 0);
|
|
149
151
|
_LicenseFindResult_highlight.set(this, void 0);
|
|
150
152
|
_LicenseFindResult_attributes.set(this, void 0);
|
|
153
|
+
_LicenseFindResult_hasSeatDifference.set(this, void 0);
|
|
151
154
|
__classPrivateFieldSet(this, _LicenseFindResult_acceptEula, data[LicenseFindResultFields.COLUMN_ACCEPT_EULA], "f");
|
|
152
155
|
const activeSeats = {
|
|
153
156
|
[activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE]: data[LicenseFindResultFields.COLUMN_ACTIVE_SEATS][activeSeatsFindResult_1.ActiveSeatsFindResultFields.COLUMN_LAST_UPDATE],
|
|
@@ -208,6 +211,7 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
208
211
|
__classPrivateFieldSet(this, _LicenseFindResult_vendorSubscriptionId, data[LicenseFindResultFields.COLUMN_VENDOR_SUBSCRIPTION_ID], "f");
|
|
209
212
|
__classPrivateFieldSet(this, _LicenseFindResult_highlight, (_d = data[LicenseFindResultFields.COLUMN_HIGHLIGHT]) !== null && _d !== void 0 ? _d : {}, "f");
|
|
210
213
|
__classPrivateFieldSet(this, _LicenseFindResult_attributes, data[LicenseFindResultFields.COLUMN_ATTRIBUTES], "f");
|
|
214
|
+
__classPrivateFieldSet(this, _LicenseFindResult_hasSeatDifference, data[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE], "f");
|
|
211
215
|
}
|
|
212
216
|
get id() {
|
|
213
217
|
return __classPrivateFieldGet(this, _LicenseFindResult_id, "f");
|
|
@@ -350,6 +354,9 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
350
354
|
get attributes() {
|
|
351
355
|
return __classPrivateFieldGet(this, _LicenseFindResult_attributes, "f");
|
|
352
356
|
}
|
|
357
|
+
get hasSeatDifference() {
|
|
358
|
+
return __classPrivateFieldGet(this, _LicenseFindResult_hasSeatDifference, "f");
|
|
359
|
+
}
|
|
353
360
|
/**
|
|
354
361
|
* Plain JSON object representation of the license entity.
|
|
355
362
|
* @returns {@link LicenseData}
|
|
@@ -407,9 +414,11 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
407
414
|
.vendorSubscriptionId,
|
|
408
415
|
[LicenseFindResultFields.COLUMN_HIGHLIGHT]: this.highlight,
|
|
409
416
|
[LicenseFindResultFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
417
|
+
[LicenseFindResultFields.COLUMN_HAS_SEAT_DIFFERENCE]: this
|
|
418
|
+
.hasSeatDifference,
|
|
410
419
|
};
|
|
411
420
|
}
|
|
412
421
|
}
|
|
413
422
|
exports.LicenseFindResult = LicenseFindResult;
|
|
414
|
-
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_offerArrowsphereSku = new WeakMap(), _LicenseFindResult_orderRef = new WeakMap(), _LicenseFindResult_pricebandVendorSku = new WeakMap(), _LicenseFindResult_nextRenewalDate = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_security = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap(), _LicenseFindResult_attributes = new WeakMap();
|
|
423
|
+
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_offerArrowsphereSku = new WeakMap(), _LicenseFindResult_orderRef = new WeakMap(), _LicenseFindResult_pricebandVendorSku = new WeakMap(), _LicenseFindResult_nextRenewalDate = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_security = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap(), _LicenseFindResult_attributes = new WeakMap(), _LicenseFindResult_hasSeatDifference = new WeakMap();
|
|
415
424
|
//# sourceMappingURL=licenseFindResult.js.map
|
|
@@ -250,7 +250,8 @@ export declare type PostUpgrade = {
|
|
|
250
250
|
};
|
|
251
251
|
export declare enum SaveBillingCommentsInputFields {
|
|
252
252
|
COLUMN_COMMENT_ONE = "comment1",
|
|
253
|
-
COLUMN_COMMENT_TWO = "comment2"
|
|
253
|
+
COLUMN_COMMENT_TWO = "comment2",
|
|
254
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
254
255
|
}
|
|
255
256
|
export declare enum SaveSpecialBidInputFields {
|
|
256
257
|
COLUMN_ARW_RATE_VALUE = "arwRateValue",
|
|
@@ -266,6 +267,10 @@ export declare enum RewriteRateHistoryInputFields {
|
|
|
266
267
|
export declare type SaveBillingCommentsInputType = {
|
|
267
268
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
|
|
268
269
|
[SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
|
|
270
|
+
[SaveBillingCommentsInputFields.COLUMN_CUSTOM_FIELDS]?: Array<{
|
|
271
|
+
label: string;
|
|
272
|
+
value: string;
|
|
273
|
+
}>;
|
|
269
274
|
};
|
|
270
275
|
export declare type DeleteScheduledTaskType = ExtraInformationType;
|
|
271
276
|
export declare type ScheduleTasks = {
|
|
@@ -136,6 +136,7 @@ var SaveBillingCommentsInputFields;
|
|
|
136
136
|
(function (SaveBillingCommentsInputFields) {
|
|
137
137
|
SaveBillingCommentsInputFields["COLUMN_COMMENT_ONE"] = "comment1";
|
|
138
138
|
SaveBillingCommentsInputFields["COLUMN_COMMENT_TWO"] = "comment2";
|
|
139
|
+
SaveBillingCommentsInputFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
139
140
|
})(SaveBillingCommentsInputFields = exports.SaveBillingCommentsInputFields || (exports.SaveBillingCommentsInputFields = {}));
|
|
140
141
|
var SaveSpecialBidInputFields;
|
|
141
142
|
(function (SaveSpecialBidInputFields) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
+
export declare enum OrderCustomFieldFields {
|
|
3
|
+
COLUMN_LABEL = "label",
|
|
4
|
+
COLUMN_VALUE = "value"
|
|
5
|
+
}
|
|
6
|
+
export declare type OrderCustomFieldType = {
|
|
7
|
+
[OrderCustomFieldFields.COLUMN_LABEL]: string;
|
|
8
|
+
[OrderCustomFieldFields.COLUMN_VALUE]: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class OrderCustomField extends AbstractEntity<OrderCustomFieldType> {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(input: OrderCustomFieldType);
|
|
13
|
+
get label(): string;
|
|
14
|
+
get value(): string;
|
|
15
|
+
toJSON(): OrderCustomFieldType;
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 _OrderCustomField_label, _OrderCustomField_value;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OrderCustomField = exports.OrderCustomFieldFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
+
var OrderCustomFieldFields;
|
|
18
|
+
(function (OrderCustomFieldFields) {
|
|
19
|
+
OrderCustomFieldFields["COLUMN_LABEL"] = "label";
|
|
20
|
+
OrderCustomFieldFields["COLUMN_VALUE"] = "value";
|
|
21
|
+
})(OrderCustomFieldFields = exports.OrderCustomFieldFields || (exports.OrderCustomFieldFields = {}));
|
|
22
|
+
class OrderCustomField extends abstractEntity_1.AbstractEntity {
|
|
23
|
+
constructor(input) {
|
|
24
|
+
super(input);
|
|
25
|
+
_OrderCustomField_label.set(this, void 0);
|
|
26
|
+
_OrderCustomField_value.set(this, void 0);
|
|
27
|
+
__classPrivateFieldSet(this, _OrderCustomField_label, input[OrderCustomFieldFields.COLUMN_LABEL], "f");
|
|
28
|
+
__classPrivateFieldSet(this, _OrderCustomField_value, input[OrderCustomFieldFields.COLUMN_VALUE], "f");
|
|
29
|
+
}
|
|
30
|
+
get label() {
|
|
31
|
+
return __classPrivateFieldGet(this, _OrderCustomField_label, "f");
|
|
32
|
+
}
|
|
33
|
+
get value() {
|
|
34
|
+
return __classPrivateFieldGet(this, _OrderCustomField_value, "f");
|
|
35
|
+
}
|
|
36
|
+
toJSON() {
|
|
37
|
+
return {
|
|
38
|
+
[OrderCustomFieldFields.COLUMN_LABEL]: this.label,
|
|
39
|
+
[OrderCustomFieldFields.COLUMN_VALUE]: this.value,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.OrderCustomField = OrderCustomField;
|
|
44
|
+
_OrderCustomField_label = new WeakMap(), _OrderCustomField_value = new WeakMap();
|
|
45
|
+
//# sourceMappingURL=customField.js.map
|
|
@@ -3,6 +3,7 @@ import { OrderProduct, OrderProductsType } from './products/products';
|
|
|
3
3
|
import { OrderPartner, OrderPartnerType } from './partner/partner';
|
|
4
4
|
import { ReferenceLink, ReferenceLinkType } from '../referenceLink';
|
|
5
5
|
import { AdditionalExtraInformation, AdditionalExtraInformationType } from '../../../shared';
|
|
6
|
+
import { OrderCustomField, OrderCustomFieldType } from './customField/customField';
|
|
6
7
|
export declare enum OrderFields {
|
|
7
8
|
COLUMN_REFERENCE = "reference",
|
|
8
9
|
COLUMN_STATUS = "status",
|
|
@@ -15,7 +16,8 @@ export declare enum OrderFields {
|
|
|
15
16
|
COLUMN_END_CUSTOMER_PO_NUMBER = "endCustomerPONumber",
|
|
16
17
|
COLUMN_PRODUCTS = "products",
|
|
17
18
|
COLUMN_EXTRA_INFORMATION = "extraInformation",
|
|
18
|
-
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef"
|
|
19
|
+
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
20
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
19
21
|
}
|
|
20
22
|
export declare type OrderType = {
|
|
21
23
|
[OrderFields.COLUMN_REFERENCE]: string;
|
|
@@ -30,6 +32,7 @@ export declare type OrderType = {
|
|
|
30
32
|
[OrderFields.COLUMN_PRODUCTS]: Array<OrderProductsType>;
|
|
31
33
|
[OrderFields.COLUMN_EXTRA_INFORMATION]?: AdditionalExtraInformationType;
|
|
32
34
|
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
35
|
+
[OrderFields.COLUMN_CUSTOM_FIELDS]?: Array<OrderCustomFieldType>;
|
|
33
36
|
};
|
|
34
37
|
export declare class Order extends AbstractEntity<OrderType> {
|
|
35
38
|
#private;
|
|
@@ -46,5 +49,6 @@ export declare class Order extends AbstractEntity<OrderType> {
|
|
|
46
49
|
get products(): Array<OrderProduct>;
|
|
47
50
|
get extraInformation(): AdditionalExtraInformation | undefined;
|
|
48
51
|
get organizationUnitRef(): string | undefined;
|
|
52
|
+
get customFields(): Array<OrderCustomField> | undefined;
|
|
49
53
|
toJSON(): OrderType;
|
|
50
54
|
}
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_endCustomerPONumber, _Order_products, _Order_extraInformation, _Order_organizationUnitRef;
|
|
13
|
+
var _Order_reference, _Order_status, _Order_dateStatus, _Order_dateCreation, _Order_order_reference, _Order_partner, _Order_customer, _Order_ponumber, _Order_endCustomerPONumber, _Order_products, _Order_extraInformation, _Order_organizationUnitRef, _Order_customFields;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Order = exports.OrderFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
@@ -18,6 +18,7 @@ const products_1 = require("./products/products");
|
|
|
18
18
|
const partner_1 = require("./partner/partner");
|
|
19
19
|
const referenceLink_1 = require("../referenceLink");
|
|
20
20
|
const shared_1 = require("../../../shared");
|
|
21
|
+
const customField_1 = require("./customField/customField");
|
|
21
22
|
var OrderFields;
|
|
22
23
|
(function (OrderFields) {
|
|
23
24
|
OrderFields["COLUMN_REFERENCE"] = "reference";
|
|
@@ -32,9 +33,11 @@ var OrderFields;
|
|
|
32
33
|
OrderFields["COLUMN_PRODUCTS"] = "products";
|
|
33
34
|
OrderFields["COLUMN_EXTRA_INFORMATION"] = "extraInformation";
|
|
34
35
|
OrderFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
36
|
+
OrderFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
35
37
|
})(OrderFields = exports.OrderFields || (exports.OrderFields = {}));
|
|
36
38
|
class Order extends abstractEntity_1.AbstractEntity {
|
|
37
39
|
constructor(getOrderDataInput) {
|
|
40
|
+
var _a;
|
|
38
41
|
super(getOrderDataInput);
|
|
39
42
|
_Order_reference.set(this, void 0);
|
|
40
43
|
_Order_status.set(this, void 0);
|
|
@@ -48,6 +51,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
48
51
|
_Order_products.set(this, void 0);
|
|
49
52
|
_Order_extraInformation.set(this, void 0);
|
|
50
53
|
_Order_organizationUnitRef.set(this, void 0);
|
|
54
|
+
_Order_customFields.set(this, void 0);
|
|
51
55
|
__classPrivateFieldSet(this, _Order_reference, getOrderDataInput[OrderFields.COLUMN_REFERENCE], "f");
|
|
52
56
|
__classPrivateFieldSet(this, _Order_status, getOrderDataInput[OrderFields.COLUMN_STATUS], "f");
|
|
53
57
|
__classPrivateFieldSet(this, _Order_dateStatus, getOrderDataInput[OrderFields.COLUMN_DATESTATUS], "f");
|
|
@@ -64,6 +68,7 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
64
68
|
? new shared_1.AdditionalExtraInformation(getOrderDataInput[OrderFields.COLUMN_EXTRA_INFORMATION])
|
|
65
69
|
: undefined, "f");
|
|
66
70
|
__classPrivateFieldSet(this, _Order_organizationUnitRef, getOrderDataInput[OrderFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
|
|
71
|
+
__classPrivateFieldSet(this, _Order_customFields, (_a = getOrderDataInput[OrderFields.COLUMN_CUSTOM_FIELDS]) === null || _a === void 0 ? void 0 : _a.map((field) => new customField_1.OrderCustomField(field)), "f");
|
|
67
72
|
}
|
|
68
73
|
get reference() {
|
|
69
74
|
return __classPrivateFieldGet(this, _Order_reference, "f");
|
|
@@ -101,8 +106,11 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
101
106
|
get organizationUnitRef() {
|
|
102
107
|
return __classPrivateFieldGet(this, _Order_organizationUnitRef, "f");
|
|
103
108
|
}
|
|
109
|
+
get customFields() {
|
|
110
|
+
return __classPrivateFieldGet(this, _Order_customFields, "f");
|
|
111
|
+
}
|
|
104
112
|
toJSON() {
|
|
105
|
-
var _a, _b;
|
|
113
|
+
var _a, _b, _c;
|
|
106
114
|
return {
|
|
107
115
|
[OrderFields.COLUMN_REFERENCE]: this.reference,
|
|
108
116
|
[OrderFields.COLUMN_STATUS]: this.status,
|
|
@@ -116,9 +124,10 @@ class Order extends abstractEntity_1.AbstractEntity {
|
|
|
116
124
|
[OrderFields.COLUMN_PRODUCTS]: this.products.map((order) => order.toJSON()),
|
|
117
125
|
[OrderFields.COLUMN_EXTRA_INFORMATION]: (_b = this.extraInformation) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
118
126
|
[OrderFields.COLUMN_ORGANIZATION_UNIT_REF]: this.organizationUnitRef,
|
|
127
|
+
[OrderFields.COLUMN_CUSTOM_FIELDS]: (_c = this.customFields) === null || _c === void 0 ? void 0 : _c.map((field) => field.toJSON()),
|
|
119
128
|
};
|
|
120
129
|
}
|
|
121
130
|
}
|
|
122
131
|
exports.Order = Order;
|
|
123
|
-
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_endCustomerPONumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap(), _Order_organizationUnitRef = new WeakMap();
|
|
132
|
+
_Order_reference = new WeakMap(), _Order_status = new WeakMap(), _Order_dateStatus = new WeakMap(), _Order_dateCreation = new WeakMap(), _Order_order_reference = new WeakMap(), _Order_partner = new WeakMap(), _Order_customer = new WeakMap(), _Order_ponumber = new WeakMap(), _Order_endCustomerPONumber = new WeakMap(), _Order_products = new WeakMap(), _Order_extraInformation = new WeakMap(), _Order_organizationUnitRef = new WeakMap(), _Order_customFields = new WeakMap();
|
|
124
133
|
//# sourceMappingURL=order.js.map
|
|
@@ -45,7 +45,8 @@ export declare enum CreateOrderInputFields {
|
|
|
45
45
|
COLUMN_PROMOTION_ID = "promotionId",
|
|
46
46
|
COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
|
|
47
47
|
COLUMN_EAVS = "eavs",
|
|
48
|
-
COLUMN_QUOTE_REF = "quoteRef"
|
|
48
|
+
COLUMN_QUOTE_REF = "quoteRef",
|
|
49
|
+
COLUMN_CUSTOM_FIELDS = "customFields"
|
|
49
50
|
}
|
|
50
51
|
export declare enum scenarioType {
|
|
51
52
|
INJECTION = "injection",
|
|
@@ -78,6 +79,10 @@ export declare type CreateOrderInputType = {
|
|
|
78
79
|
};
|
|
79
80
|
[CreateOrderInputFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
|
|
80
81
|
[CreateOrderInputFields.COLUMN_QUOTE_REF]?: string;
|
|
82
|
+
[CreateOrderInputFields.COLUMN_CUSTOM_FIELDS]?: Array<{
|
|
83
|
+
label: string;
|
|
84
|
+
value: string;
|
|
85
|
+
}>;
|
|
81
86
|
};
|
|
82
87
|
export declare type CreateOrderProductType = {
|
|
83
88
|
[CreateOrderInputFields.COLUMN_ARROW_SPHERE_PRICE_BAND_SKU]?: string;
|
|
@@ -50,6 +50,7 @@ var CreateOrderInputFields;
|
|
|
50
50
|
CreateOrderInputFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
|
|
51
51
|
CreateOrderInputFields["COLUMN_EAVS"] = "eavs";
|
|
52
52
|
CreateOrderInputFields["COLUMN_QUOTE_REF"] = "quoteRef";
|
|
53
|
+
CreateOrderInputFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
|
|
53
54
|
})(CreateOrderInputFields = exports.CreateOrderInputFields || (exports.CreateOrderInputFields = {}));
|
|
54
55
|
var scenarioType;
|
|
55
56
|
(function (scenarioType) {
|
package/package.json
CHANGED