@arrowsphere/api-client 3.78.0-rc.ckh.3 → 3.78.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 +15 -0
- package/build/graphqlApi/types/entities/company.d.ts +11 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +5 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/build/licenses/entities/getLicense/extraDataGetResult.d.ts +67 -0
- package/build/licenses/entities/getLicense/extraDataGetResult.js +94 -0
- package/build/licenses/entities/getLicense/licenseGetResult.d.ts +6 -6
- package/build/licenses/entities/getLicense/licenseGetResult.js +11 -11
- package/build/licenses/entities/license/credentialsResult.d.ts +19 -0
- package/build/licenses/entities/license/credentialsResult.js +53 -0
- package/build/licenses/entities/request/licenseRequest.d.ts +26 -14
- package/build/licenses/entities/request/licenseRequest.js +46 -23
- package/build/licenses/index.d.ts +3 -1
- package/build/licenses/index.js +3 -1
- package/build/licenses/licenseRequestClient.d.ts +2 -3
- package/build/licenses/licenseRequestClient.js +9 -1
- package/build/licenses/licensesClient.d.ts +14 -21
- package/build/licenses/licensesClient.js +19 -20
- package/build/orders/index.d.ts +1 -0
- package/build/orders/index.js +1 -0
- package/build/orders/types/orderStatus.d.ts +26 -0
- package/build/orders/types/orderStatus.js +31 -0
- package/package.json +1 -1
- package/build/licenses/entities/getLicense/extraDataFindResult.d.ts +0 -20
- package/build/licenses/entities/getLicense/extraDataFindResult.js +0 -48
- package/build/partialResponse.d.ts +0 -25
- package/build/partialResponse.js +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.78.0] - 2023-12-15
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- [graphql-api] Add company extraInformation
|
|
10
|
+
|
|
11
|
+
## [3.77.1] - 2023-12-15
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- Fixed get licenseRequest data structure
|
|
15
|
+
|
|
16
|
+
## [3.77.0] - 2023-12-13
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- Add license get credentials endpoint and update get license extraData
|
|
20
|
+
|
|
6
21
|
## [3.76.0] - 2023-12-08
|
|
7
22
|
|
|
8
23
|
### Changed
|
|
@@ -18,6 +18,7 @@ declare type BaseCompanyType = {
|
|
|
18
18
|
deletedAt?: string;
|
|
19
19
|
enabled?: boolean;
|
|
20
20
|
erpId?: string;
|
|
21
|
+
extraInformations?: CompanyExtraInformation[];
|
|
21
22
|
id?: number;
|
|
22
23
|
internalReference?: string;
|
|
23
24
|
locked?: boolean;
|
|
@@ -38,6 +39,16 @@ declare type CountableType = {
|
|
|
38
39
|
id?: number;
|
|
39
40
|
total?: number;
|
|
40
41
|
};
|
|
42
|
+
export declare type CompanyExtraInformation = {
|
|
43
|
+
id?: number;
|
|
44
|
+
companyId?: number;
|
|
45
|
+
code?: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
type?: string;
|
|
49
|
+
value?: string;
|
|
50
|
+
programName?: string;
|
|
51
|
+
};
|
|
41
52
|
export declare type PartnerType = BaseCompanyType & {
|
|
42
53
|
contactsCount?: CountableType;
|
|
43
54
|
country?: CountryType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Merge, Schema } from 'type-fest';
|
|
2
|
-
import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
|
|
2
|
+
import { ArrowCompanyType, CompanyExtraInformation, EndCustomerType, PartnerType } from './entities/company';
|
|
3
3
|
import { PartnertagType } from './entities/partnertag';
|
|
4
4
|
import { ContinentType, CountryType } from './entities/country';
|
|
5
5
|
import { WorkgroupType } from './entities/workgroup';
|
|
@@ -10,13 +10,16 @@ import { SubscriptionType } from './entities/subscription';
|
|
|
10
10
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
11
11
|
declare type MissingFieldsOfCompanySchema = {
|
|
12
12
|
contacts?: ContactsSchema;
|
|
13
|
+
extraInformations?: CompanyExtraInformationSchema;
|
|
13
14
|
partnerTags?: PartnertagSchema;
|
|
14
15
|
subscriptions?: SubscriptionSchema;
|
|
15
16
|
};
|
|
16
17
|
declare type MissingFieldsOfArrowCompanySchema = {
|
|
18
|
+
extraInformations?: CompanyExtraInformationSchema;
|
|
17
19
|
subscriptions?: SubscriptionSchema;
|
|
18
20
|
};
|
|
19
21
|
declare type MissingFieldsOfEndCustomerSchema = {
|
|
22
|
+
extraInformations?: CompanyExtraInformationSchema;
|
|
20
23
|
contacts?: ContactsSchema;
|
|
21
24
|
partnerTags?: PartnertagSchema;
|
|
22
25
|
partner?: PartnerSchema;
|
|
@@ -24,6 +27,7 @@ declare type MissingFieldsOfEndCustomerSchema = {
|
|
|
24
27
|
export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
|
|
25
28
|
export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
|
|
26
29
|
export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
|
|
30
|
+
export declare type CompanyExtraInformationSchema = Schema<CompanyExtraInformation, boolean>;
|
|
27
31
|
export declare type ContactsSchema = Schema<ContactsType, boolean>;
|
|
28
32
|
export declare type ContinentSchema = Schema<ContinentType, boolean>;
|
|
29
33
|
export declare type CountrySchema = Schema<CountryType, boolean>;
|
package/build/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export * from './exception/';
|
|
|
11
11
|
export * from './general/';
|
|
12
12
|
export * from './getResult';
|
|
13
13
|
export * from './graphqlApi';
|
|
14
|
-
export * from './partialResponse';
|
|
15
14
|
export * from './pagination';
|
|
16
15
|
export * from './licenses/';
|
|
17
16
|
export * from './notifications/';
|
package/build/index.js
CHANGED
|
@@ -40,7 +40,6 @@ __exportStar(require("./exception/"), exports);
|
|
|
40
40
|
__exportStar(require("./general/"), exports);
|
|
41
41
|
__exportStar(require("./getResult"), exports);
|
|
42
42
|
__exportStar(require("./graphqlApi"), exports);
|
|
43
|
-
__exportStar(require("./partialResponse"), exports);
|
|
44
43
|
__exportStar(require("./pagination"), exports);
|
|
45
44
|
__exportStar(require("./licenses/"), exports);
|
|
46
45
|
__exportStar(require("./notifications/"), exports);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum EavKeyEnum {
|
|
3
|
+
AVEPOINT_EMAIL = "avepoint_email",
|
|
4
|
+
AWS_ACCOUNT_NUMBER = "aws_account_number",
|
|
5
|
+
AWS_ACCOUNT_CREATION_DATE = "aws_account_creation_date",
|
|
6
|
+
AWS_ADDENDUM = "aws_addendum",
|
|
7
|
+
AWS_COMPETENCY = "aws_competency",
|
|
8
|
+
AWS_LAST_MONTH_TOTAL_AMOUNT_CONSUMPTION = "aws_last_month_total_amount_consumption",
|
|
9
|
+
AWS_PUBLIC_SECTOR = "aws_public_sector",
|
|
10
|
+
BINERO_CLOUD_EMAIL = "binero_cloud_email",
|
|
11
|
+
BINERO_CLOUD_USERNAME = "binero_cloud_username",
|
|
12
|
+
CHECKPOINT_USER_CENTER_ID = "checkpoint_user_center_id",
|
|
13
|
+
DECLINE_PROMOTION = "decline_promotion",
|
|
14
|
+
EXOSCALE_ORGANIZATION_EMAIL = "exoscale_organization_email",
|
|
15
|
+
FRIENDLY_NAME = "friendly_name",
|
|
16
|
+
GOOGLE_ORDER_EMAIL = "google_order_email",
|
|
17
|
+
GREENLAKE_OPPORTUNITY_ID = "greenlake_opportunity_id",
|
|
18
|
+
GREENLAKE_QUOTE_ID = "greenlake_quote_id",
|
|
19
|
+
IBM_ODER_REFERENCE_NUMBER = "ibm_order_reference_number",
|
|
20
|
+
IBM_VERIFY_TENANT_NAME = "ibm_verify_tenant_name",
|
|
21
|
+
IBM_VERIFY_REGION = "ibm_verify_region",
|
|
22
|
+
REALORDER_VENDOR_SUBSCRIPTION_ID = "realorder_vendor_subscription_id",
|
|
23
|
+
ORACLE_ONLINE_KEY = "oracle_online_key",
|
|
24
|
+
ORACLE_ORGANIZATION_EMAIL = "oracle_organization_email",
|
|
25
|
+
ORDER_COMMENT_ONE = "order_comment_1",
|
|
26
|
+
ORDER_COMMENT_TWO = "order_comment_2",
|
|
27
|
+
ORDER_PROMOTION_CODE = "order_promotion_code",
|
|
28
|
+
PARTNER_ATTESTATION = "partner_attestation",
|
|
29
|
+
QUOTE_PROMOTION_CODE = "quote_promotion_code",
|
|
30
|
+
SCALEWAY_ORDER_EMAIL = "scaleway_order_email",
|
|
31
|
+
SOPHOS_ADMIN_EMAIL = "sophos_admin_email",
|
|
32
|
+
SOPHOS_ADMIN_FIRST_NAME = "sophos_admin_first_name",
|
|
33
|
+
SOPHOS_ADMIN_LAST_NAME = "sophos_admin_last_name",
|
|
34
|
+
SOPHOS_ORDER_COUNTRY = "sophos_order_country",
|
|
35
|
+
SUBSCRIPTION_START_DATE = "subscription_start_date",
|
|
36
|
+
SUBSCRIPTION_END_DATE = "subscription_end_date",
|
|
37
|
+
VENDOR_SUBSCRIPTION_ID = "vendor_subscription_id",
|
|
38
|
+
VM_WARE_ORAN = "vm_ware_oran"
|
|
39
|
+
}
|
|
40
|
+
export declare enum CompanyDetailKeyEnum {
|
|
41
|
+
DOMAIN_NAME = "DOMAIN_NAME",
|
|
42
|
+
ORACLE_ONLINE_KEY = "ORACLE_ONLINE_KEY",
|
|
43
|
+
IBM_PARTNER_ID = "IBM_PARTNER_ID",
|
|
44
|
+
IBM_CE_ID = "IBM_CE_ID",
|
|
45
|
+
MIGRATION = "MIGRATION",
|
|
46
|
+
MICRO_EU_ENROL_NU = "MICRO_EU_ENROL_NU",
|
|
47
|
+
IBM_CUSTOMER_NUMBER = "IBM_CUSTOMER_NUMBER",
|
|
48
|
+
IBM_MAAS_ACCOUNT_ID = "IBM_MAAS_ACCOUNT_ID",
|
|
49
|
+
TENANT_ID = "TENANT_ID",
|
|
50
|
+
AZURE_TENANT_ID = "AZURE_TENANT_ID",
|
|
51
|
+
VADE_SECURE_TENANT_ID = "VADE_SECURE_TENANT_ID",
|
|
52
|
+
XCP_DOMAIN = "XCP_DOMAIN",
|
|
53
|
+
PRIVATE_CATALOG_EMAIL = "PRIVATE_CATALOG_EMAIL"
|
|
54
|
+
}
|
|
55
|
+
export declare enum ExtraDataFields {
|
|
56
|
+
COLUMN_NAME = "name",
|
|
57
|
+
COLUMN_VALUE = "value"
|
|
58
|
+
}
|
|
59
|
+
export declare type ExtraDataType = {
|
|
60
|
+
[ExtraDataFields.COLUMN_NAME]: string;
|
|
61
|
+
[ExtraDataFields.COLUMN_VALUE]?: string;
|
|
62
|
+
};
|
|
63
|
+
export declare class ExtraDataResult extends AbstractEntity<ExtraDataType> {
|
|
64
|
+
#private;
|
|
65
|
+
constructor(data: ExtraDataType);
|
|
66
|
+
toJSON(): ExtraDataType;
|
|
67
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 _ExtraDataResult_name, _ExtraDataResult_value;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ExtraDataResult = exports.ExtraDataFields = exports.CompanyDetailKeyEnum = exports.EavKeyEnum = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var EavKeyEnum;
|
|
18
|
+
(function (EavKeyEnum) {
|
|
19
|
+
EavKeyEnum["AVEPOINT_EMAIL"] = "avepoint_email";
|
|
20
|
+
EavKeyEnum["AWS_ACCOUNT_NUMBER"] = "aws_account_number";
|
|
21
|
+
EavKeyEnum["AWS_ACCOUNT_CREATION_DATE"] = "aws_account_creation_date";
|
|
22
|
+
EavKeyEnum["AWS_ADDENDUM"] = "aws_addendum";
|
|
23
|
+
EavKeyEnum["AWS_COMPETENCY"] = "aws_competency";
|
|
24
|
+
EavKeyEnum["AWS_LAST_MONTH_TOTAL_AMOUNT_CONSUMPTION"] = "aws_last_month_total_amount_consumption";
|
|
25
|
+
EavKeyEnum["AWS_PUBLIC_SECTOR"] = "aws_public_sector";
|
|
26
|
+
EavKeyEnum["BINERO_CLOUD_EMAIL"] = "binero_cloud_email";
|
|
27
|
+
EavKeyEnum["BINERO_CLOUD_USERNAME"] = "binero_cloud_username";
|
|
28
|
+
EavKeyEnum["CHECKPOINT_USER_CENTER_ID"] = "checkpoint_user_center_id";
|
|
29
|
+
EavKeyEnum["DECLINE_PROMOTION"] = "decline_promotion";
|
|
30
|
+
EavKeyEnum["EXOSCALE_ORGANIZATION_EMAIL"] = "exoscale_organization_email";
|
|
31
|
+
EavKeyEnum["FRIENDLY_NAME"] = "friendly_name";
|
|
32
|
+
EavKeyEnum["GOOGLE_ORDER_EMAIL"] = "google_order_email";
|
|
33
|
+
EavKeyEnum["GREENLAKE_OPPORTUNITY_ID"] = "greenlake_opportunity_id";
|
|
34
|
+
EavKeyEnum["GREENLAKE_QUOTE_ID"] = "greenlake_quote_id";
|
|
35
|
+
EavKeyEnum["IBM_ODER_REFERENCE_NUMBER"] = "ibm_order_reference_number";
|
|
36
|
+
EavKeyEnum["IBM_VERIFY_TENANT_NAME"] = "ibm_verify_tenant_name";
|
|
37
|
+
EavKeyEnum["IBM_VERIFY_REGION"] = "ibm_verify_region";
|
|
38
|
+
EavKeyEnum["REALORDER_VENDOR_SUBSCRIPTION_ID"] = "realorder_vendor_subscription_id";
|
|
39
|
+
EavKeyEnum["ORACLE_ONLINE_KEY"] = "oracle_online_key";
|
|
40
|
+
EavKeyEnum["ORACLE_ORGANIZATION_EMAIL"] = "oracle_organization_email";
|
|
41
|
+
EavKeyEnum["ORDER_COMMENT_ONE"] = "order_comment_1";
|
|
42
|
+
EavKeyEnum["ORDER_COMMENT_TWO"] = "order_comment_2";
|
|
43
|
+
EavKeyEnum["ORDER_PROMOTION_CODE"] = "order_promotion_code";
|
|
44
|
+
EavKeyEnum["PARTNER_ATTESTATION"] = "partner_attestation";
|
|
45
|
+
EavKeyEnum["QUOTE_PROMOTION_CODE"] = "quote_promotion_code";
|
|
46
|
+
EavKeyEnum["SCALEWAY_ORDER_EMAIL"] = "scaleway_order_email";
|
|
47
|
+
EavKeyEnum["SOPHOS_ADMIN_EMAIL"] = "sophos_admin_email";
|
|
48
|
+
EavKeyEnum["SOPHOS_ADMIN_FIRST_NAME"] = "sophos_admin_first_name";
|
|
49
|
+
EavKeyEnum["SOPHOS_ADMIN_LAST_NAME"] = "sophos_admin_last_name";
|
|
50
|
+
EavKeyEnum["SOPHOS_ORDER_COUNTRY"] = "sophos_order_country";
|
|
51
|
+
EavKeyEnum["SUBSCRIPTION_START_DATE"] = "subscription_start_date";
|
|
52
|
+
EavKeyEnum["SUBSCRIPTION_END_DATE"] = "subscription_end_date";
|
|
53
|
+
EavKeyEnum["VENDOR_SUBSCRIPTION_ID"] = "vendor_subscription_id";
|
|
54
|
+
EavKeyEnum["VM_WARE_ORAN"] = "vm_ware_oran";
|
|
55
|
+
})(EavKeyEnum = exports.EavKeyEnum || (exports.EavKeyEnum = {}));
|
|
56
|
+
var CompanyDetailKeyEnum;
|
|
57
|
+
(function (CompanyDetailKeyEnum) {
|
|
58
|
+
CompanyDetailKeyEnum["DOMAIN_NAME"] = "DOMAIN_NAME";
|
|
59
|
+
CompanyDetailKeyEnum["ORACLE_ONLINE_KEY"] = "ORACLE_ONLINE_KEY";
|
|
60
|
+
CompanyDetailKeyEnum["IBM_PARTNER_ID"] = "IBM_PARTNER_ID";
|
|
61
|
+
CompanyDetailKeyEnum["IBM_CE_ID"] = "IBM_CE_ID";
|
|
62
|
+
CompanyDetailKeyEnum["MIGRATION"] = "MIGRATION";
|
|
63
|
+
CompanyDetailKeyEnum["MICRO_EU_ENROL_NU"] = "MICRO_EU_ENROL_NU";
|
|
64
|
+
CompanyDetailKeyEnum["IBM_CUSTOMER_NUMBER"] = "IBM_CUSTOMER_NUMBER";
|
|
65
|
+
CompanyDetailKeyEnum["IBM_MAAS_ACCOUNT_ID"] = "IBM_MAAS_ACCOUNT_ID";
|
|
66
|
+
CompanyDetailKeyEnum["TENANT_ID"] = "TENANT_ID";
|
|
67
|
+
CompanyDetailKeyEnum["AZURE_TENANT_ID"] = "AZURE_TENANT_ID";
|
|
68
|
+
CompanyDetailKeyEnum["VADE_SECURE_TENANT_ID"] = "VADE_SECURE_TENANT_ID";
|
|
69
|
+
CompanyDetailKeyEnum["XCP_DOMAIN"] = "XCP_DOMAIN";
|
|
70
|
+
CompanyDetailKeyEnum["PRIVATE_CATALOG_EMAIL"] = "PRIVATE_CATALOG_EMAIL";
|
|
71
|
+
})(CompanyDetailKeyEnum = exports.CompanyDetailKeyEnum || (exports.CompanyDetailKeyEnum = {}));
|
|
72
|
+
var ExtraDataFields;
|
|
73
|
+
(function (ExtraDataFields) {
|
|
74
|
+
ExtraDataFields["COLUMN_NAME"] = "name";
|
|
75
|
+
ExtraDataFields["COLUMN_VALUE"] = "value";
|
|
76
|
+
})(ExtraDataFields = exports.ExtraDataFields || (exports.ExtraDataFields = {}));
|
|
77
|
+
class ExtraDataResult extends abstractEntity_1.AbstractEntity {
|
|
78
|
+
constructor(data) {
|
|
79
|
+
super(data);
|
|
80
|
+
_ExtraDataResult_name.set(this, void 0);
|
|
81
|
+
_ExtraDataResult_value.set(this, void 0);
|
|
82
|
+
__classPrivateFieldSet(this, _ExtraDataResult_name, data[ExtraDataFields.COLUMN_NAME], "f");
|
|
83
|
+
__classPrivateFieldSet(this, _ExtraDataResult_value, data[ExtraDataFields.COLUMN_VALUE], "f");
|
|
84
|
+
}
|
|
85
|
+
toJSON() {
|
|
86
|
+
return {
|
|
87
|
+
[ExtraDataFields.COLUMN_NAME]: __classPrivateFieldGet(this, _ExtraDataResult_name, "f"),
|
|
88
|
+
[ExtraDataFields.COLUMN_VALUE]: __classPrivateFieldGet(this, _ExtraDataResult_value, "f"),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.ExtraDataResult = ExtraDataResult;
|
|
93
|
+
_ExtraDataResult_name = new WeakMap(), _ExtraDataResult_value = new WeakMap();
|
|
94
|
+
//# sourceMappingURL=extraDataGetResult.js.map
|
|
@@ -7,7 +7,7 @@ import { ActiveSeatsFindResult, ActiveSeatsFindResultData } from '../license/act
|
|
|
7
7
|
import { SecurityFindResult, SecurityFindResultData } from '../license/securityFindResult';
|
|
8
8
|
import { PromotionData, PromotionFindResult } from './promotionFindResult';
|
|
9
9
|
import { AssetsData, AssetsFindResult } from './assetsFindResult';
|
|
10
|
-
import {
|
|
10
|
+
import { ExtraDataResult, ExtraDataType } from './extraDataGetResult';
|
|
11
11
|
import { PriceBandData, PriceBandGetResult } from './priceBandGetResult';
|
|
12
12
|
export declare enum LicenseGetFields {
|
|
13
13
|
COLUMN_LICENSE_ID = "license_id",
|
|
@@ -48,7 +48,7 @@ export declare enum LicenseGetFields {
|
|
|
48
48
|
COLUMN_VENDOR_BILLING_ID = "vendorBillingId",
|
|
49
49
|
COLUMN_EXTRA_DATA = "extraData",
|
|
50
50
|
COLUMN_PRICE_BAND = "priceBand",
|
|
51
|
-
|
|
51
|
+
COLUMN_VENDOR_CODE = "vendorCode"
|
|
52
52
|
}
|
|
53
53
|
export declare type LicenseGetData = {
|
|
54
54
|
[LicenseGetFields.COLUMN_LICENSE_ID]: string;
|
|
@@ -87,9 +87,9 @@ export declare type LicenseGetData = {
|
|
|
87
87
|
[LicenseGetFields.COLUMN_PROMOTION]?: PromotionData;
|
|
88
88
|
[LicenseGetFields.COLUMN_ASSETS]?: AssetsData;
|
|
89
89
|
[LicenseGetFields.COLUMN_VENDOR_BILLING_ID]?: string | null;
|
|
90
|
-
[LicenseGetFields.COLUMN_EXTRA_DATA]?:
|
|
90
|
+
[LicenseGetFields.COLUMN_EXTRA_DATA]?: ExtraDataType[];
|
|
91
91
|
[LicenseGetFields.COLUMN_PRICE_BAND]?: PriceBandData;
|
|
92
|
-
[LicenseGetFields.
|
|
92
|
+
[LicenseGetFields.COLUMN_VENDOR_CODE]?: string;
|
|
93
93
|
};
|
|
94
94
|
export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
95
95
|
#private;
|
|
@@ -130,8 +130,8 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
|
|
|
130
130
|
get promotion(): PromotionFindResult | undefined;
|
|
131
131
|
get assets(): AssetsFindResult | undefined;
|
|
132
132
|
get vendorBillingId(): string | null | undefined;
|
|
133
|
-
get extraData():
|
|
133
|
+
get extraData(): ExtraDataResult[] | undefined;
|
|
134
134
|
get priceBand(): PriceBandGetResult | undefined;
|
|
135
|
-
get
|
|
135
|
+
get vendorCode(): string | undefined;
|
|
136
136
|
toJSON(): LicenseGetData;
|
|
137
137
|
}
|
|
@@ -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_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_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,
|
|
13
|
+
var _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_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;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseGetResult = exports.LicenseGetFields = void 0;
|
|
16
16
|
const actionsGetResult_1 = require("./actionsGetResult");
|
|
@@ -22,7 +22,7 @@ const activeSeatsFindResult_1 = require("../license/activeSeatsFindResult");
|
|
|
22
22
|
const securityFindResult_1 = require("../license/securityFindResult");
|
|
23
23
|
const promotionFindResult_1 = require("./promotionFindResult");
|
|
24
24
|
const assetsFindResult_1 = require("./assetsFindResult");
|
|
25
|
-
const
|
|
25
|
+
const extraDataGetResult_1 = require("./extraDataGetResult");
|
|
26
26
|
const priceBandGetResult_1 = require("./priceBandGetResult");
|
|
27
27
|
var LicenseGetFields;
|
|
28
28
|
(function (LicenseGetFields) {
|
|
@@ -64,7 +64,7 @@ var LicenseGetFields;
|
|
|
64
64
|
LicenseGetFields["COLUMN_VENDOR_BILLING_ID"] = "vendorBillingId";
|
|
65
65
|
LicenseGetFields["COLUMN_EXTRA_DATA"] = "extraData";
|
|
66
66
|
LicenseGetFields["COLUMN_PRICE_BAND"] = "priceBand";
|
|
67
|
-
LicenseGetFields["
|
|
67
|
+
LicenseGetFields["COLUMN_VENDOR_CODE"] = "vendorCode";
|
|
68
68
|
})(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
|
|
69
69
|
class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
70
70
|
constructor(licenseGetDataInput) {
|
|
@@ -108,7 +108,7 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
108
108
|
_LicenseGetResult_vendorBillingId.set(this, void 0);
|
|
109
109
|
_LicenseGetResult_extraData.set(this, void 0);
|
|
110
110
|
_LicenseGetResult_priceBand.set(this, void 0);
|
|
111
|
-
|
|
111
|
+
_LicenseGetResult_vendorCode.set(this, void 0);
|
|
112
112
|
__classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
|
|
113
113
|
__classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
|
|
114
114
|
__classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
|
|
@@ -153,11 +153,11 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
153
153
|
__classPrivateFieldSet(this, _LicenseGetResult_assets, licenseGetDataInput[LicenseGetFields.COLUMN_ASSETS]
|
|
154
154
|
? new assetsFindResult_1.AssetsFindResult(licenseGetDataInput[LicenseGetFields.COLUMN_ASSETS])
|
|
155
155
|
: undefined, "f");
|
|
156
|
-
__classPrivateFieldSet(this, _LicenseGetResult_extraData, (_b = licenseGetDataInput[LicenseGetFields.COLUMN_EXTRA_DATA]) === null || _b === void 0 ? void 0 : _b.map((
|
|
156
|
+
__classPrivateFieldSet(this, _LicenseGetResult_extraData, (_b = licenseGetDataInput[LicenseGetFields.COLUMN_EXTRA_DATA]) === null || _b === void 0 ? void 0 : _b.map((e) => new extraDataGetResult_1.ExtraDataResult(e)), "f");
|
|
157
157
|
__classPrivateFieldSet(this, _LicenseGetResult_priceBand, licenseGetDataInput[LicenseGetFields.COLUMN_PRICE_BAND] !== undefined
|
|
158
158
|
? new priceBandGetResult_1.PriceBandGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_PRICE_BAND])
|
|
159
159
|
: undefined, "f");
|
|
160
|
-
__classPrivateFieldSet(this,
|
|
160
|
+
__classPrivateFieldSet(this, _LicenseGetResult_vendorCode, licenseGetDataInput[LicenseGetFields.COLUMN_VENDOR_CODE], "f");
|
|
161
161
|
}
|
|
162
162
|
get id() {
|
|
163
163
|
return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
|
|
@@ -273,8 +273,8 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
273
273
|
get priceBand() {
|
|
274
274
|
return __classPrivateFieldGet(this, _LicenseGetResult_priceBand, "f");
|
|
275
275
|
}
|
|
276
|
-
get
|
|
277
|
-
return __classPrivateFieldGet(this,
|
|
276
|
+
get vendorCode() {
|
|
277
|
+
return __classPrivateFieldGet(this, _LicenseGetResult_vendorCode, "f");
|
|
278
278
|
}
|
|
279
279
|
toJSON() {
|
|
280
280
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -316,12 +316,12 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
|
|
|
316
316
|
[LicenseGetFields.COLUMN_VENDOR_BILLING_ID]: this.vendorBillingId,
|
|
317
317
|
[LicenseGetFields.COLUMN_PROMOTION]: (_d = this.promotion) === null || _d === void 0 ? void 0 : _d.toJSON(),
|
|
318
318
|
[LicenseGetFields.COLUMN_ASSETS]: (_e = this.assets) === null || _e === void 0 ? void 0 : _e.toJSON(),
|
|
319
|
-
[LicenseGetFields.COLUMN_EXTRA_DATA]: (_f = this.extraData) === null || _f === void 0 ? void 0 : _f.map((
|
|
319
|
+
[LicenseGetFields.COLUMN_EXTRA_DATA]: (_f = this.extraData) === null || _f === void 0 ? void 0 : _f.map((e) => e.toJSON()),
|
|
320
320
|
[LicenseGetFields.COLUMN_PRICE_BAND]: (_g = this.priceBand) === null || _g === void 0 ? void 0 : _g.toJSON(),
|
|
321
|
-
[LicenseGetFields.
|
|
321
|
+
[LicenseGetFields.COLUMN_VENDOR_CODE]: this.vendorCode,
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
exports.LicenseGetResult = LicenseGetResult;
|
|
326
|
-
_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_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(),
|
|
326
|
+
_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_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();
|
|
327
327
|
//# sourceMappingURL=licenseGetResult.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
+
export declare enum CredentialsResultFields {
|
|
3
|
+
COLUMN_USERNAME = "username",
|
|
4
|
+
COLUMN_PASSWORD_RESET_URL = "passwordResetUrl",
|
|
5
|
+
COLUMN_URL = "url"
|
|
6
|
+
}
|
|
7
|
+
export declare type CredentialsResultType = {
|
|
8
|
+
[CredentialsResultFields.COLUMN_USERNAME]?: string;
|
|
9
|
+
[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL]?: string;
|
|
10
|
+
[CredentialsResultFields.COLUMN_URL]?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class CredentialsResult extends AbstractEntity<CredentialsResultType> {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(input: CredentialsResultType);
|
|
15
|
+
get username(): string | undefined;
|
|
16
|
+
get passwordResetUrl(): string | undefined;
|
|
17
|
+
get url(): string | undefined;
|
|
18
|
+
toJSON(): CredentialsResultType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 _CredentialsResult_username, _CredentialsResult_passwordResetUrl, _CredentialsResult_url;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CredentialsResult = exports.CredentialsResultFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
+
var CredentialsResultFields;
|
|
18
|
+
(function (CredentialsResultFields) {
|
|
19
|
+
CredentialsResultFields["COLUMN_USERNAME"] = "username";
|
|
20
|
+
CredentialsResultFields["COLUMN_PASSWORD_RESET_URL"] = "passwordResetUrl";
|
|
21
|
+
CredentialsResultFields["COLUMN_URL"] = "url";
|
|
22
|
+
})(CredentialsResultFields = exports.CredentialsResultFields || (exports.CredentialsResultFields = {}));
|
|
23
|
+
class CredentialsResult extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(input) {
|
|
25
|
+
super(input);
|
|
26
|
+
_CredentialsResult_username.set(this, void 0);
|
|
27
|
+
_CredentialsResult_passwordResetUrl.set(this, void 0);
|
|
28
|
+
_CredentialsResult_url.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _CredentialsResult_username, input[CredentialsResultFields.COLUMN_USERNAME], "f");
|
|
30
|
+
__classPrivateFieldSet(this, _CredentialsResult_passwordResetUrl, input[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL], "f");
|
|
31
|
+
__classPrivateFieldSet(this, _CredentialsResult_url, input[CredentialsResultFields.COLUMN_URL], "f");
|
|
32
|
+
}
|
|
33
|
+
get username() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CredentialsResult_username, "f");
|
|
35
|
+
}
|
|
36
|
+
get passwordResetUrl() {
|
|
37
|
+
return __classPrivateFieldGet(this, _CredentialsResult_passwordResetUrl, "f");
|
|
38
|
+
}
|
|
39
|
+
get url() {
|
|
40
|
+
return __classPrivateFieldGet(this, _CredentialsResult_url, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[CredentialsResultFields.COLUMN_USERNAME]: this.username,
|
|
45
|
+
[CredentialsResultFields.COLUMN_PASSWORD_RESET_URL]: this
|
|
46
|
+
.passwordResetUrl,
|
|
47
|
+
[CredentialsResultFields.COLUMN_URL]: this.url,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CredentialsResult = CredentialsResult;
|
|
52
|
+
_CredentialsResult_username = new WeakMap(), _CredentialsResult_passwordResetUrl = new WeakMap(), _CredentialsResult_url = new WeakMap();
|
|
53
|
+
//# sourceMappingURL=credentialsResult.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
2
|
export declare enum LicenseRequestFields {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
COLUMN_ACTION = "action",
|
|
4
|
+
COLUMN_CREATED_AT = "createdAt",
|
|
5
|
+
COLUMN_LICENSE_REFERENCE = "licenseReference",
|
|
6
|
+
COLUMN_MESSAGE = "message",
|
|
7
|
+
COLUMN_STATUS = "status",
|
|
8
|
+
COLUMN_UPDATED_AT = "updatedAt",
|
|
9
|
+
COLUMN_USER_NAME = "userName"
|
|
10
10
|
}
|
|
11
11
|
export declare type LicenseRequestType = {
|
|
12
|
-
[LicenseRequestFields.
|
|
13
|
-
[LicenseRequestFields.
|
|
14
|
-
[LicenseRequestFields.
|
|
15
|
-
[LicenseRequestFields.
|
|
16
|
-
[LicenseRequestFields.
|
|
17
|
-
[LicenseRequestFields.
|
|
18
|
-
[LicenseRequestFields.
|
|
12
|
+
[LicenseRequestFields.COLUMN_ACTION]?: string;
|
|
13
|
+
[LicenseRequestFields.COLUMN_CREATED_AT]?: string;
|
|
14
|
+
[LicenseRequestFields.COLUMN_LICENSE_REFERENCE]?: string;
|
|
15
|
+
[LicenseRequestFields.COLUMN_MESSAGE]?: string;
|
|
16
|
+
[LicenseRequestFields.COLUMN_STATUS]?: string;
|
|
17
|
+
[LicenseRequestFields.COLUMN_UPDATED_AT]?: string;
|
|
18
|
+
[LicenseRequestFields.COLUMN_USER_NAME]?: string;
|
|
19
19
|
};
|
|
20
20
|
export declare class LicenseRequest extends AbstractEntity<LicenseRequestType> {
|
|
21
21
|
#private;
|
|
@@ -29,3 +29,15 @@ export declare class LicenseRequest extends AbstractEntity<LicenseRequestType> {
|
|
|
29
29
|
get message(): string | undefined;
|
|
30
30
|
toJSON(): LicenseRequestType;
|
|
31
31
|
}
|
|
32
|
+
export declare enum LicenseRequestResultFields {
|
|
33
|
+
COLUMN_LICENSE_REQUEST = "licenseRequests"
|
|
34
|
+
}
|
|
35
|
+
export declare type LicenseRequestResultType = {
|
|
36
|
+
[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]?: LicenseRequestType[];
|
|
37
|
+
};
|
|
38
|
+
export declare class LicenseRequestResult extends AbstractEntity<LicenseRequestResultType> {
|
|
39
|
+
#private;
|
|
40
|
+
constructor(input: LicenseRequestResultType);
|
|
41
|
+
get licenseRequests(): LicenseRequest[] | undefined;
|
|
42
|
+
toJSON(): LicenseRequestResultType;
|
|
43
|
+
}
|
|
@@ -10,19 +10,19 @@ 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 _LicenseRequest_action, _LicenseRequest_createdAt, _LicenseRequest_licenseReference, _LicenseRequest_message, _LicenseRequest_status, _LicenseRequest_updatedAt, _LicenseRequest_userName;
|
|
13
|
+
var _LicenseRequest_action, _LicenseRequest_createdAt, _LicenseRequest_licenseReference, _LicenseRequest_message, _LicenseRequest_status, _LicenseRequest_updatedAt, _LicenseRequest_userName, _LicenseRequestResult_licenseRequests;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.LicenseRequest = exports.LicenseRequestFields = void 0;
|
|
15
|
+
exports.LicenseRequestResult = exports.LicenseRequestResultFields = exports.LicenseRequest = exports.LicenseRequestFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
17
|
var LicenseRequestFields;
|
|
18
18
|
(function (LicenseRequestFields) {
|
|
19
|
-
LicenseRequestFields["
|
|
20
|
-
LicenseRequestFields["
|
|
21
|
-
LicenseRequestFields["
|
|
22
|
-
LicenseRequestFields["
|
|
23
|
-
LicenseRequestFields["
|
|
24
|
-
LicenseRequestFields["
|
|
25
|
-
LicenseRequestFields["
|
|
19
|
+
LicenseRequestFields["COLUMN_ACTION"] = "action";
|
|
20
|
+
LicenseRequestFields["COLUMN_CREATED_AT"] = "createdAt";
|
|
21
|
+
LicenseRequestFields["COLUMN_LICENSE_REFERENCE"] = "licenseReference";
|
|
22
|
+
LicenseRequestFields["COLUMN_MESSAGE"] = "message";
|
|
23
|
+
LicenseRequestFields["COLUMN_STATUS"] = "status";
|
|
24
|
+
LicenseRequestFields["COLUMN_UPDATED_AT"] = "updatedAt";
|
|
25
|
+
LicenseRequestFields["COLUMN_USER_NAME"] = "userName";
|
|
26
26
|
})(LicenseRequestFields = exports.LicenseRequestFields || (exports.LicenseRequestFields = {}));
|
|
27
27
|
class LicenseRequest extends abstractEntity_1.AbstractEntity {
|
|
28
28
|
constructor(input) {
|
|
@@ -34,13 +34,13 @@ class LicenseRequest extends abstractEntity_1.AbstractEntity {
|
|
|
34
34
|
_LicenseRequest_status.set(this, void 0);
|
|
35
35
|
_LicenseRequest_updatedAt.set(this, void 0);
|
|
36
36
|
_LicenseRequest_userName.set(this, void 0);
|
|
37
|
-
__classPrivateFieldSet(this, _LicenseRequest_action, input[LicenseRequestFields.
|
|
38
|
-
__classPrivateFieldSet(this, _LicenseRequest_createdAt, input[LicenseRequestFields.
|
|
39
|
-
__classPrivateFieldSet(this, _LicenseRequest_licenseReference, input[LicenseRequestFields.
|
|
40
|
-
__classPrivateFieldSet(this, _LicenseRequest_message, input[LicenseRequestFields.
|
|
41
|
-
__classPrivateFieldSet(this, _LicenseRequest_status, input[LicenseRequestFields.
|
|
42
|
-
__classPrivateFieldSet(this, _LicenseRequest_updatedAt, input[LicenseRequestFields.
|
|
43
|
-
__classPrivateFieldSet(this, _LicenseRequest_userName, input[LicenseRequestFields.
|
|
37
|
+
__classPrivateFieldSet(this, _LicenseRequest_action, input[LicenseRequestFields.COLUMN_ACTION], "f");
|
|
38
|
+
__classPrivateFieldSet(this, _LicenseRequest_createdAt, input[LicenseRequestFields.COLUMN_CREATED_AT], "f");
|
|
39
|
+
__classPrivateFieldSet(this, _LicenseRequest_licenseReference, input[LicenseRequestFields.COLUMN_LICENSE_REFERENCE], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _LicenseRequest_message, input[LicenseRequestFields.COLUMN_MESSAGE], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _LicenseRequest_status, input[LicenseRequestFields.COLUMN_STATUS], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _LicenseRequest_updatedAt, input[LicenseRequestFields.COLUMN_UPDATED_AT], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _LicenseRequest_userName, input[LicenseRequestFields.COLUMN_USER_NAME], "f");
|
|
44
44
|
}
|
|
45
45
|
get userName() {
|
|
46
46
|
return __classPrivateFieldGet(this, _LicenseRequest_userName, "f");
|
|
@@ -65,16 +65,39 @@ class LicenseRequest extends abstractEntity_1.AbstractEntity {
|
|
|
65
65
|
}
|
|
66
66
|
toJSON() {
|
|
67
67
|
return {
|
|
68
|
-
[LicenseRequestFields.
|
|
69
|
-
[LicenseRequestFields.
|
|
70
|
-
[LicenseRequestFields.
|
|
71
|
-
[LicenseRequestFields.
|
|
72
|
-
[LicenseRequestFields.
|
|
73
|
-
[LicenseRequestFields.
|
|
74
|
-
[LicenseRequestFields.
|
|
68
|
+
[LicenseRequestFields.COLUMN_ACTION]: this.action,
|
|
69
|
+
[LicenseRequestFields.COLUMN_CREATED_AT]: this.createdAt,
|
|
70
|
+
[LicenseRequestFields.COLUMN_LICENSE_REFERENCE]: this.licenseReference,
|
|
71
|
+
[LicenseRequestFields.COLUMN_MESSAGE]: this.message,
|
|
72
|
+
[LicenseRequestFields.COLUMN_STATUS]: this.status,
|
|
73
|
+
[LicenseRequestFields.COLUMN_UPDATED_AT]: this.updatedAt,
|
|
74
|
+
[LicenseRequestFields.COLUMN_USER_NAME]: this.userName,
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
exports.LicenseRequest = LicenseRequest;
|
|
79
79
|
_LicenseRequest_action = new WeakMap(), _LicenseRequest_createdAt = new WeakMap(), _LicenseRequest_licenseReference = new WeakMap(), _LicenseRequest_message = new WeakMap(), _LicenseRequest_status = new WeakMap(), _LicenseRequest_updatedAt = new WeakMap(), _LicenseRequest_userName = new WeakMap();
|
|
80
|
+
var LicenseRequestResultFields;
|
|
81
|
+
(function (LicenseRequestResultFields) {
|
|
82
|
+
LicenseRequestResultFields["COLUMN_LICENSE_REQUEST"] = "licenseRequests";
|
|
83
|
+
})(LicenseRequestResultFields = exports.LicenseRequestResultFields || (exports.LicenseRequestResultFields = {}));
|
|
84
|
+
class LicenseRequestResult extends abstractEntity_1.AbstractEntity {
|
|
85
|
+
constructor(input) {
|
|
86
|
+
var _a;
|
|
87
|
+
super(input);
|
|
88
|
+
_LicenseRequestResult_licenseRequests.set(this, void 0);
|
|
89
|
+
__classPrivateFieldSet(this, _LicenseRequestResult_licenseRequests, (_a = input[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]) === null || _a === void 0 ? void 0 : _a.map((result) => new LicenseRequest(result)), "f");
|
|
90
|
+
}
|
|
91
|
+
get licenseRequests() {
|
|
92
|
+
return __classPrivateFieldGet(this, _LicenseRequestResult_licenseRequests, "f");
|
|
93
|
+
}
|
|
94
|
+
toJSON() {
|
|
95
|
+
var _a;
|
|
96
|
+
return {
|
|
97
|
+
[LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]: (_a = this.licenseRequests) === null || _a === void 0 ? void 0 : _a.map((result) => result.toJSON()),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.LicenseRequestResult = LicenseRequestResult;
|
|
102
|
+
_LicenseRequestResult_licenseRequests = new WeakMap();
|
|
80
103
|
//# sourceMappingURL=licenseRequest.js.map
|
|
@@ -7,7 +7,7 @@ export * from './entities/findResult';
|
|
|
7
7
|
export * from './entities/getLicense/actionMessagesGetResult';
|
|
8
8
|
export * from './entities/getLicense/actionsGetResult';
|
|
9
9
|
export * from './entities/getLicense/buySellFindResult';
|
|
10
|
-
export * from './entities/getLicense/
|
|
10
|
+
export * from './entities/getLicense/extraDataGetResult';
|
|
11
11
|
export * from './entities/getLicense/licenseGetResult';
|
|
12
12
|
export * from './entities/getLicense/licensePriceGetResult';
|
|
13
13
|
export * from './entities/getLicense/orderGetResult';
|
|
@@ -17,10 +17,12 @@ export * from './entities/history/licenceHistoryResult';
|
|
|
17
17
|
export * from './entities/license/activeSeatsFindResult';
|
|
18
18
|
export * from './entities/license/configFindResult';
|
|
19
19
|
export * from './entities/license/conversionSkuResult';
|
|
20
|
+
export * from './entities/license/credentialsResult';
|
|
20
21
|
export * from './entities/license/licenseConversionSkuResult';
|
|
21
22
|
export * from './entities/license/licenseFindResult';
|
|
22
23
|
export * from './entities/request/licenseRequest';
|
|
23
24
|
export * from './entities/license/priceFindResult';
|
|
25
|
+
export * from './entities/license/upgradeResult';
|
|
24
26
|
export * from './entities/license/warningFindResult';
|
|
25
27
|
export * from './entities/offer/actionFlagsFindResult';
|
|
26
28
|
export * from './entities/offer/offerFindResult';
|
package/build/licenses/index.js
CHANGED
|
@@ -23,7 +23,7 @@ __exportStar(require("./entities/findResult"), exports);
|
|
|
23
23
|
__exportStar(require("./entities/getLicense/actionMessagesGetResult"), exports);
|
|
24
24
|
__exportStar(require("./entities/getLicense/actionsGetResult"), exports);
|
|
25
25
|
__exportStar(require("./entities/getLicense/buySellFindResult"), exports);
|
|
26
|
-
__exportStar(require("./entities/getLicense/
|
|
26
|
+
__exportStar(require("./entities/getLicense/extraDataGetResult"), exports);
|
|
27
27
|
__exportStar(require("./entities/getLicense/licenseGetResult"), exports);
|
|
28
28
|
__exportStar(require("./entities/getLicense/licensePriceGetResult"), exports);
|
|
29
29
|
__exportStar(require("./entities/getLicense/orderGetResult"), exports);
|
|
@@ -33,10 +33,12 @@ __exportStar(require("./entities/history/licenceHistoryResult"), exports);
|
|
|
33
33
|
__exportStar(require("./entities/license/activeSeatsFindResult"), exports);
|
|
34
34
|
__exportStar(require("./entities/license/configFindResult"), exports);
|
|
35
35
|
__exportStar(require("./entities/license/conversionSkuResult"), exports);
|
|
36
|
+
__exportStar(require("./entities/license/credentialsResult"), exports);
|
|
36
37
|
__exportStar(require("./entities/license/licenseConversionSkuResult"), exports);
|
|
37
38
|
__exportStar(require("./entities/license/licenseFindResult"), exports);
|
|
38
39
|
__exportStar(require("./entities/request/licenseRequest"), exports);
|
|
39
40
|
__exportStar(require("./entities/license/priceFindResult"), exports);
|
|
41
|
+
__exportStar(require("./entities/license/upgradeResult"), exports);
|
|
40
42
|
__exportStar(require("./entities/license/warningFindResult"), exports);
|
|
41
43
|
__exportStar(require("./entities/offer/actionFlagsFindResult"), exports);
|
|
42
44
|
__exportStar(require("./entities/offer/offerFindResult"), exports);
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Class LicenseRequestClient
|
|
3
3
|
*/
|
|
4
4
|
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
5
|
-
import {
|
|
6
|
-
import { LicenseRequest } from './entities/request/licenseRequest';
|
|
5
|
+
import { LicenseRequestType } from './entities/request/licenseRequest';
|
|
7
6
|
export declare class LicenseRequestClient extends AbstractRestfulClient {
|
|
8
7
|
protected basePath: string;
|
|
9
|
-
getLastRequests(licenseReference: string): Promise<
|
|
8
|
+
getLastRequests(licenseReference: string): Promise<LicenseRequestType[]>;
|
|
10
9
|
}
|
|
@@ -14,7 +14,15 @@ class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient
|
|
|
14
14
|
}
|
|
15
15
|
async getLastRequests(licenseReference) {
|
|
16
16
|
this.path = `/${licenseReference}/request`;
|
|
17
|
-
|
|
17
|
+
const response = await this.get();
|
|
18
|
+
//A workaround, the public api endpoint is not returning "data" in the payload
|
|
19
|
+
response[getResult_1.GetResultFields.COLUMN_DATA] = {
|
|
20
|
+
[licenseRequest_1.LicenseRequestResultFields.COLUMN_LICENSE_REQUEST]: getResult_1.GetResultFields.COLUMN_DATA in response
|
|
21
|
+
? response[getResult_1.GetResultFields.COLUMN_DATA]
|
|
22
|
+
: [],
|
|
23
|
+
};
|
|
24
|
+
const result = new getResult_1.GetResult(licenseRequest_1.LicenseRequestResult, response);
|
|
25
|
+
return result.toJSON()[getResult_1.GetResultFields.COLUMN_DATA][licenseRequest_1.LicenseRequestResultFields.COLUMN_LICENSE_REQUEST];
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
exports.LicenseRequestClient = LicenseRequestClient;
|
|
@@ -18,7 +18,7 @@ import { GetLicenseResult } from './entities/getResult/getLicenseResult';
|
|
|
18
18
|
import { LicenceHistoryResult } from './entities/history/licenceHistoryResult';
|
|
19
19
|
import { UpgradeResult } from './entities/license/upgradeResult';
|
|
20
20
|
import { LicenseConversionSkuResult } from './entities/license/licenseConversionSkuResult';
|
|
21
|
-
import {
|
|
21
|
+
import { CredentialsResult } from './entities/license/credentialsResult';
|
|
22
22
|
/**
|
|
23
23
|
* Parameters passable to the request for refining search.
|
|
24
24
|
*/
|
|
@@ -184,11 +184,6 @@ export declare type LicenseFindRawPayload = {
|
|
|
184
184
|
};
|
|
185
185
|
[LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
|
|
186
186
|
};
|
|
187
|
-
export declare type UpdateLicenseData = {
|
|
188
|
-
[LicenseGetFields.COLUMN_FRIENDLY_NAME]?: string;
|
|
189
|
-
[LicenseGetFields.COLUMN_SEATS]?: number;
|
|
190
|
-
[LicenseGetFields.COLUMN_ORGANIZATION_UNIT_ID]?: number;
|
|
191
|
-
} & ExtraInformationType;
|
|
192
187
|
export declare type UpdateSeatsData = {
|
|
193
188
|
[LicenseGetFields.COLUMN_SEATS]: number;
|
|
194
189
|
} & ExtraInformationType;
|
|
@@ -206,19 +201,13 @@ export declare type PostUpgrade = {
|
|
|
206
201
|
term: number;
|
|
207
202
|
quantity: number;
|
|
208
203
|
};
|
|
209
|
-
export declare enum
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
COLUMN_TABLE_NAME = "tableName",
|
|
213
|
-
COLUMN_VALUE = "value"
|
|
204
|
+
export declare enum SaveBillingCommentsInputFields {
|
|
205
|
+
COLUMN_COMMENT_ONE = "comment1",
|
|
206
|
+
COLUMN_COMMENT_TWO = "comment2"
|
|
214
207
|
}
|
|
215
|
-
export declare type
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
[SaveOrderEavsInputFields.COLUMN_VALUE]: string | null;
|
|
219
|
-
};
|
|
220
|
-
export declare type SaveOrderEavsInputType = {
|
|
221
|
-
[SaveOrderEavsInputFields.COLUMN_EAVS]: OrderEavsInputType[];
|
|
208
|
+
export declare type SaveBillingCommentsInputType = {
|
|
209
|
+
[SaveBillingCommentsInputFields.COLUMN_COMMENT_ONE]?: string | null;
|
|
210
|
+
[SaveBillingCommentsInputFields.COLUMN_COMMENT_TWO]?: string | null;
|
|
222
211
|
};
|
|
223
212
|
export declare class LicensesClient extends AbstractRestfulClient {
|
|
224
213
|
/**
|
|
@@ -272,7 +261,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
272
261
|
/**
|
|
273
262
|
* The path to save the license order eavs
|
|
274
263
|
*/
|
|
275
|
-
private
|
|
264
|
+
private SAVE_BILLING_COMMENTS_PATH;
|
|
276
265
|
/**
|
|
277
266
|
* The path of license all available skus
|
|
278
267
|
*/
|
|
@@ -281,6 +270,10 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
281
270
|
* The path of license all existing skus
|
|
282
271
|
*/
|
|
283
272
|
private GET_LICENSE_EXISTING_CONVERSION_SKU;
|
|
273
|
+
/**
|
|
274
|
+
* The path to retrieve license credentials
|
|
275
|
+
*/
|
|
276
|
+
private GET_LICENSE_CREDENTIALS;
|
|
284
277
|
/**
|
|
285
278
|
* Returns the raw result from the find endpoint call
|
|
286
279
|
*
|
|
@@ -307,7 +300,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
307
300
|
updateConfigRaw(reference: string, config: ConfigFindResult): Promise<ConfigFindResultData>;
|
|
308
301
|
updateConfig(reference: string, config: ConfigFindResult): Promise<ConfigFindResult>;
|
|
309
302
|
getLicense(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetLicenseResult>>;
|
|
310
|
-
updateLicense(licenseReference: string, payload: UpdateLicenseData, parameters?: Parameters): Promise<void | PartialResponse>;
|
|
311
303
|
updateSeats(licenseReference: string, putData: UpdateSeatsData, parameters?: Parameters): Promise<void>;
|
|
312
304
|
suspendLicense(licenseReference: string, payload?: PutSuspend, parameters?: Parameters): Promise<void>;
|
|
313
305
|
reactivateLicense(licenseReference: string, payload?: PutReactivate, parameters?: Parameters): Promise<void>;
|
|
@@ -318,9 +310,10 @@ export declare class LicensesClient extends AbstractRestfulClient {
|
|
|
318
310
|
reactivateAutoRenew(licenseReference: string, payload?: PutReactivateAutoRenew, parameters?: Parameters): Promise<void>;
|
|
319
311
|
upgrade(licenseReference: string, payload: PostUpgrade, parameters?: Parameters): Promise<GetResult<UpgradeResult>>;
|
|
320
312
|
upgradeToExisting(licenseReference: string, targetLicenseReference: string, quantity: number, parameters?: Parameters): Promise<void>;
|
|
321
|
-
|
|
313
|
+
saveBillingComments(licenseReference: string, payload: SaveBillingCommentsInputType, parameters?: Parameters): Promise<void>;
|
|
322
314
|
getConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
323
315
|
getExistingConversionSku(licenseReference: string, parameters?: Parameters): Promise<GetResult<LicenseConversionSkuResult>>;
|
|
316
|
+
getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
|
|
324
317
|
private createFilters;
|
|
325
318
|
private createKeywords;
|
|
326
319
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LicensesClient = exports.
|
|
3
|
+
exports.LicensesClient = exports.SaveBillingCommentsInputFields = exports.LicenseFindParameters = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Class LicensesClient
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ const getLicenseResult_1 = require("./entities/getResult/getLicenseResult");
|
|
|
13
13
|
const licenceHistoryResult_1 = require("./entities/history/licenceHistoryResult");
|
|
14
14
|
const upgradeResult_1 = require("./entities/license/upgradeResult");
|
|
15
15
|
const licenseConversionSkuResult_1 = require("./entities/license/licenseConversionSkuResult");
|
|
16
|
-
const
|
|
16
|
+
const credentialsResult_1 = require("./entities/license/credentialsResult");
|
|
17
17
|
/**
|
|
18
18
|
* Parameters passable to the request for refining search.
|
|
19
19
|
*/
|
|
@@ -112,13 +112,11 @@ var LicenseFindParameters;
|
|
|
112
112
|
*/
|
|
113
113
|
LicenseFindParameters["FILTERS_LTE"] = "lte";
|
|
114
114
|
})(LicenseFindParameters = exports.LicenseFindParameters || (exports.LicenseFindParameters = {}));
|
|
115
|
-
var
|
|
116
|
-
(function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
SaveOrderEavsInputFields["COLUMN_VALUE"] = "value";
|
|
121
|
-
})(SaveOrderEavsInputFields = exports.SaveOrderEavsInputFields || (exports.SaveOrderEavsInputFields = {}));
|
|
115
|
+
var SaveBillingCommentsInputFields;
|
|
116
|
+
(function (SaveBillingCommentsInputFields) {
|
|
117
|
+
SaveBillingCommentsInputFields["COLUMN_COMMENT_ONE"] = "comment1";
|
|
118
|
+
SaveBillingCommentsInputFields["COLUMN_COMMENT_TWO"] = "comment2";
|
|
119
|
+
})(SaveBillingCommentsInputFields = exports.SaveBillingCommentsInputFields || (exports.SaveBillingCommentsInputFields = {}));
|
|
122
120
|
class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
123
121
|
constructor() {
|
|
124
122
|
super(...arguments);
|
|
@@ -173,7 +171,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
173
171
|
/**
|
|
174
172
|
* The path to save the license order eavs
|
|
175
173
|
*/
|
|
176
|
-
this.
|
|
174
|
+
this.SAVE_BILLING_COMMENTS_PATH = '/billingComments';
|
|
177
175
|
/**
|
|
178
176
|
* The path of license all available skus
|
|
179
177
|
*/
|
|
@@ -182,6 +180,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
182
180
|
* The path of license all existing skus
|
|
183
181
|
*/
|
|
184
182
|
this.GET_LICENSE_EXISTING_CONVERSION_SKU = '/conversion/existing';
|
|
183
|
+
/**
|
|
184
|
+
* The path to retrieve license credentials
|
|
185
|
+
*/
|
|
186
|
+
this.GET_LICENSE_CREDENTIALS = '/credentials';
|
|
185
187
|
}
|
|
186
188
|
/**
|
|
187
189
|
* Returns the raw result from the find endpoint call
|
|
@@ -271,13 +273,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
271
273
|
this.path = `/${licenseReference}`;
|
|
272
274
|
return new getResult_1.GetResult(getLicenseResult_1.GetLicenseResult, await this.get(parameters));
|
|
273
275
|
}
|
|
274
|
-
async updateLicense(licenseReference, payload, parameters = {}) {
|
|
275
|
-
this.path = `/${licenseReference}`;
|
|
276
|
-
const response = await this.patch(payload, parameters);
|
|
277
|
-
if (response && response.status == 202) {
|
|
278
|
-
return new partialResponse_1.PartialResponse(response);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
276
|
updateSeats(licenseReference, putData, parameters = {}) {
|
|
282
277
|
this.path = `/${licenseReference}${this.SEATS_PATH}`;
|
|
283
278
|
return this.put(putData, parameters);
|
|
@@ -318,9 +313,9 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
318
313
|
this.path = `/${licenseReference}${this.UPGRADE_PATH}/${targetLicenseReference}`;
|
|
319
314
|
await this.post({ quantity }, parameters);
|
|
320
315
|
}
|
|
321
|
-
async
|
|
322
|
-
this.path = `/${licenseReference}${this.
|
|
323
|
-
await this.post(
|
|
316
|
+
async saveBillingComments(licenseReference, payload, parameters = {}) {
|
|
317
|
+
this.path = `/${licenseReference}${this.SAVE_BILLING_COMMENTS_PATH}`;
|
|
318
|
+
await this.post(payload, parameters);
|
|
324
319
|
}
|
|
325
320
|
async getConversionSku(licenseReference, parameters = {}) {
|
|
326
321
|
this.path = `/${licenseReference}${this.GET_LICENSE_CONVERSION_SKU}`;
|
|
@@ -344,6 +339,10 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
344
339
|
};
|
|
345
340
|
return new getResult_1.GetResult(licenseConversionSkuResult_1.LicenseConversionSkuResult, response);
|
|
346
341
|
}
|
|
342
|
+
async getCredentials(licenseReference, parameters = {}) {
|
|
343
|
+
this.path = `/${licenseReference}${this.GET_LICENSE_CREDENTIALS}`;
|
|
344
|
+
return new getResult_1.GetResult(credentialsResult_1.CredentialsResult, await this.get(parameters));
|
|
345
|
+
}
|
|
347
346
|
createFilters(parameters, keyParent) {
|
|
348
347
|
let appropriateParameters;
|
|
349
348
|
if (typeof parameters === 'object') {
|
package/build/orders/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export * from './entities/orders/products/program/productProgram';
|
|
|
8
8
|
export * from './entities/orders/products/products';
|
|
9
9
|
export * from '../shared/extraInformation/additionalExtraInformation';
|
|
10
10
|
export * from './entities/referenceLink';
|
|
11
|
+
export * from './types/orderStatus';
|
|
11
12
|
export * from './ordersClient';
|
package/build/orders/index.js
CHANGED
|
@@ -24,5 +24,6 @@ __exportStar(require("./entities/orders/products/program/productProgram"), expor
|
|
|
24
24
|
__exportStar(require("./entities/orders/products/products"), exports);
|
|
25
25
|
__exportStar(require("../shared/extraInformation/additionalExtraInformation"), exports);
|
|
26
26
|
__exportStar(require("./entities/referenceLink"), exports);
|
|
27
|
+
__exportStar(require("./types/orderStatus"), exports);
|
|
27
28
|
__exportStar(require("./ordersClient"), exports);
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum OrderStatusEnum {
|
|
2
|
+
ACCEPTED = "Accepted",
|
|
3
|
+
ARCHIVE = "Archived",
|
|
4
|
+
BILLFEED_ERROR = "Billfeed Error",
|
|
5
|
+
EXTERNAL_WARNING = "External Warning",
|
|
6
|
+
FULFILLED = "Fulfilled",
|
|
7
|
+
IN_PROGRESS = "In progress",
|
|
8
|
+
INTERNAL_WARNING = "Internal Warning",
|
|
9
|
+
MIGRATION_CANCELED = "Migration canceled",
|
|
10
|
+
MIGRATION_CANCEL_IN_PROGRESS = "Migration cancel in progress",
|
|
11
|
+
MIGRATION_FAILED = "Migration failed",
|
|
12
|
+
NEED_VALIDATION = "Needs Validation",
|
|
13
|
+
NEED_PARTNER_VALIDATION = "Needs Partner Validation",
|
|
14
|
+
NOT_ACCEPTED = "Not Accepted",
|
|
15
|
+
ONGOING_VALIDATION = "Ongoing Validation",
|
|
16
|
+
OPEN = "Open",
|
|
17
|
+
ORDER_QUEUED = "Order queued",
|
|
18
|
+
SYNCING_WITH_BILLFEED = "Syncing with Billfeed",
|
|
19
|
+
TRANSFER_FAILED = "Transfer Failed",
|
|
20
|
+
TRANSFER_IN_PROGRESS = "Transfer in progress",
|
|
21
|
+
TRANSFER_OK = "Transfer ok",
|
|
22
|
+
SEND = "Sent",
|
|
23
|
+
ORDER_VALIDATED = "Order Validated",
|
|
24
|
+
SCHEDULED_ORDER = "Scheduled Order",
|
|
25
|
+
CANCELED = "Canceled"
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderStatusEnum = void 0;
|
|
4
|
+
var OrderStatusEnum;
|
|
5
|
+
(function (OrderStatusEnum) {
|
|
6
|
+
OrderStatusEnum["ACCEPTED"] = "Accepted";
|
|
7
|
+
OrderStatusEnum["ARCHIVE"] = "Archived";
|
|
8
|
+
OrderStatusEnum["BILLFEED_ERROR"] = "Billfeed Error";
|
|
9
|
+
OrderStatusEnum["EXTERNAL_WARNING"] = "External Warning";
|
|
10
|
+
OrderStatusEnum["FULFILLED"] = "Fulfilled";
|
|
11
|
+
OrderStatusEnum["IN_PROGRESS"] = "In progress";
|
|
12
|
+
OrderStatusEnum["INTERNAL_WARNING"] = "Internal Warning";
|
|
13
|
+
OrderStatusEnum["MIGRATION_CANCELED"] = "Migration canceled";
|
|
14
|
+
OrderStatusEnum["MIGRATION_CANCEL_IN_PROGRESS"] = "Migration cancel in progress";
|
|
15
|
+
OrderStatusEnum["MIGRATION_FAILED"] = "Migration failed";
|
|
16
|
+
OrderStatusEnum["NEED_VALIDATION"] = "Needs Validation";
|
|
17
|
+
OrderStatusEnum["NEED_PARTNER_VALIDATION"] = "Needs Partner Validation";
|
|
18
|
+
OrderStatusEnum["NOT_ACCEPTED"] = "Not Accepted";
|
|
19
|
+
OrderStatusEnum["ONGOING_VALIDATION"] = "Ongoing Validation";
|
|
20
|
+
OrderStatusEnum["OPEN"] = "Open";
|
|
21
|
+
OrderStatusEnum["ORDER_QUEUED"] = "Order queued";
|
|
22
|
+
OrderStatusEnum["SYNCING_WITH_BILLFEED"] = "Syncing with Billfeed";
|
|
23
|
+
OrderStatusEnum["TRANSFER_FAILED"] = "Transfer Failed";
|
|
24
|
+
OrderStatusEnum["TRANSFER_IN_PROGRESS"] = "Transfer in progress";
|
|
25
|
+
OrderStatusEnum["TRANSFER_OK"] = "Transfer ok";
|
|
26
|
+
OrderStatusEnum["SEND"] = "Sent";
|
|
27
|
+
OrderStatusEnum["ORDER_VALIDATED"] = "Order Validated";
|
|
28
|
+
OrderStatusEnum["SCHEDULED_ORDER"] = "Scheduled Order";
|
|
29
|
+
OrderStatusEnum["CANCELED"] = "Canceled";
|
|
30
|
+
})(OrderStatusEnum = exports.OrderStatusEnum || (exports.OrderStatusEnum = {}));
|
|
31
|
+
//# sourceMappingURL=orderStatus.js.map
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum OrderEavKeyEnum {
|
|
3
|
-
ORRDER_COMMENT_ONE = "order_comment_1",
|
|
4
|
-
ORRDER_COMMENT_TWO = "order_comment_2"
|
|
5
|
-
}
|
|
6
|
-
export declare enum ExtraDataFields {
|
|
7
|
-
EAV_KEY_NAME = "eavkeyName",
|
|
8
|
-
TABLE_NAME = "tableName",
|
|
9
|
-
VALUE = "value"
|
|
10
|
-
}
|
|
11
|
-
export declare type ExtraData = {
|
|
12
|
-
[ExtraDataFields.EAV_KEY_NAME]?: string;
|
|
13
|
-
[ExtraDataFields.TABLE_NAME]?: string;
|
|
14
|
-
[ExtraDataFields.VALUE]?: string;
|
|
15
|
-
};
|
|
16
|
-
export declare class ExtraDataFindResult extends AbstractEntity<ExtraData> {
|
|
17
|
-
#private;
|
|
18
|
-
constructor(data: ExtraData);
|
|
19
|
-
toJSON(): ExtraData;
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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 _ExtraDataFindResult_eavkeyName, _ExtraDataFindResult_tableName, _ExtraDataFindResult_value;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ExtraDataFindResult = exports.ExtraDataFields = exports.OrderEavKeyEnum = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var OrderEavKeyEnum;
|
|
18
|
-
(function (OrderEavKeyEnum) {
|
|
19
|
-
OrderEavKeyEnum["ORRDER_COMMENT_ONE"] = "order_comment_1";
|
|
20
|
-
OrderEavKeyEnum["ORRDER_COMMENT_TWO"] = "order_comment_2";
|
|
21
|
-
})(OrderEavKeyEnum = exports.OrderEavKeyEnum || (exports.OrderEavKeyEnum = {}));
|
|
22
|
-
var ExtraDataFields;
|
|
23
|
-
(function (ExtraDataFields) {
|
|
24
|
-
ExtraDataFields["EAV_KEY_NAME"] = "eavkeyName";
|
|
25
|
-
ExtraDataFields["TABLE_NAME"] = "tableName";
|
|
26
|
-
ExtraDataFields["VALUE"] = "value";
|
|
27
|
-
})(ExtraDataFields = exports.ExtraDataFields || (exports.ExtraDataFields = {}));
|
|
28
|
-
class ExtraDataFindResult extends abstractEntity_1.AbstractEntity {
|
|
29
|
-
constructor(data) {
|
|
30
|
-
super(data);
|
|
31
|
-
_ExtraDataFindResult_eavkeyName.set(this, void 0);
|
|
32
|
-
_ExtraDataFindResult_tableName.set(this, void 0);
|
|
33
|
-
_ExtraDataFindResult_value.set(this, void 0);
|
|
34
|
-
__classPrivateFieldSet(this, _ExtraDataFindResult_eavkeyName, data[ExtraDataFields.EAV_KEY_NAME], "f");
|
|
35
|
-
__classPrivateFieldSet(this, _ExtraDataFindResult_tableName, data[ExtraDataFields.TABLE_NAME], "f");
|
|
36
|
-
__classPrivateFieldSet(this, _ExtraDataFindResult_value, data[ExtraDataFields.VALUE], "f");
|
|
37
|
-
}
|
|
38
|
-
toJSON() {
|
|
39
|
-
return {
|
|
40
|
-
[ExtraDataFields.EAV_KEY_NAME]: __classPrivateFieldGet(this, _ExtraDataFindResult_eavkeyName, "f"),
|
|
41
|
-
[ExtraDataFields.TABLE_NAME]: __classPrivateFieldGet(this, _ExtraDataFindResult_tableName, "f"),
|
|
42
|
-
[ExtraDataFields.VALUE]: __classPrivateFieldGet(this, _ExtraDataFindResult_value, "f"),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.ExtraDataFindResult = ExtraDataFindResult;
|
|
47
|
-
_ExtraDataFindResult_eavkeyName = new WeakMap(), _ExtraDataFindResult_tableName = new WeakMap(), _ExtraDataFindResult_value = new WeakMap();
|
|
48
|
-
//# sourceMappingURL=extraDataFindResult.js.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from './abstractEntity';
|
|
2
|
-
/**
|
|
3
|
-
* Filter data values
|
|
4
|
-
*/
|
|
5
|
-
export declare enum PartialResponseFields {
|
|
6
|
-
COLUMN_STATUS = "status",
|
|
7
|
-
COLUMN_ERROR = "error",
|
|
8
|
-
COLUMN_MESSAGES = "messages"
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Filter data
|
|
12
|
-
*/
|
|
13
|
-
export declare type PartialResponseData = {
|
|
14
|
-
[PartialResponseFields.COLUMN_STATUS]: number;
|
|
15
|
-
[PartialResponseFields.COLUMN_ERROR]: string;
|
|
16
|
-
[PartialResponseFields.COLUMN_MESSAGES]: string[];
|
|
17
|
-
};
|
|
18
|
-
export declare class PartialResponse extends AbstractEntity<PartialResponseData> {
|
|
19
|
-
#private;
|
|
20
|
-
constructor(data: PartialResponseData);
|
|
21
|
-
get status(): number;
|
|
22
|
-
get error(): string;
|
|
23
|
-
get messages(): string[];
|
|
24
|
-
toJSON(): PartialResponseData;
|
|
25
|
-
}
|
package/build/partialResponse.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
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 _PartialResponse_status, _PartialResponse_error, _PartialResponse_messages;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PartialResponse = exports.PartialResponseFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("./abstractEntity");
|
|
17
|
-
/**
|
|
18
|
-
* Filter data values
|
|
19
|
-
*/
|
|
20
|
-
var PartialResponseFields;
|
|
21
|
-
(function (PartialResponseFields) {
|
|
22
|
-
PartialResponseFields["COLUMN_STATUS"] = "status";
|
|
23
|
-
PartialResponseFields["COLUMN_ERROR"] = "error";
|
|
24
|
-
PartialResponseFields["COLUMN_MESSAGES"] = "messages";
|
|
25
|
-
})(PartialResponseFields = exports.PartialResponseFields || (exports.PartialResponseFields = {}));
|
|
26
|
-
class PartialResponse extends abstractEntity_1.AbstractEntity {
|
|
27
|
-
constructor(data) {
|
|
28
|
-
super(data);
|
|
29
|
-
_PartialResponse_status.set(this, void 0);
|
|
30
|
-
_PartialResponse_error.set(this, void 0);
|
|
31
|
-
_PartialResponse_messages.set(this, void 0);
|
|
32
|
-
__classPrivateFieldSet(this, _PartialResponse_status, data['status'], "f");
|
|
33
|
-
__classPrivateFieldSet(this, _PartialResponse_error, data['error'], "f");
|
|
34
|
-
__classPrivateFieldSet(this, _PartialResponse_messages, data['messages'], "f");
|
|
35
|
-
}
|
|
36
|
-
get status() {
|
|
37
|
-
return __classPrivateFieldGet(this, _PartialResponse_status, "f");
|
|
38
|
-
}
|
|
39
|
-
get error() {
|
|
40
|
-
return __classPrivateFieldGet(this, _PartialResponse_error, "f");
|
|
41
|
-
}
|
|
42
|
-
get messages() {
|
|
43
|
-
return __classPrivateFieldGet(this, _PartialResponse_messages, "f");
|
|
44
|
-
}
|
|
45
|
-
toJSON() {
|
|
46
|
-
return {
|
|
47
|
-
[PartialResponseFields.COLUMN_STATUS]: this.status,
|
|
48
|
-
[PartialResponseFields.COLUMN_ERROR]: this.error,
|
|
49
|
-
[PartialResponseFields.COLUMN_MESSAGES]: this.messages,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.PartialResponse = PartialResponse;
|
|
54
|
-
_PartialResponse_status = new WeakMap(), _PartialResponse_error = new WeakMap(), _PartialResponse_messages = new WeakMap();
|
|
55
|
-
//# sourceMappingURL=partialResponse.js.map
|