@arrowsphere/api-client 3.193.0-rc-bdj-3 → 3.194.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 CHANGED
@@ -3,6 +3,17 @@
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.194.0] - 2025.05.12
7
+
8
+ ### Added
9
+ - [customers] Add unknown licenses endpoint for reconciliation
10
+
11
+ ## [3.193.0] - 2025.05.09
12
+
13
+ ### Added
14
+ - [licenses] allow to get aggregations for licenses
15
+
16
+
6
17
  ## [3.192.0] - 2025.04.29
7
18
 
8
19
  ### Added
@@ -2,6 +2,7 @@ import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
2
  import { GetResult } from '../getResult';
3
3
  import { DataCustomers } from './entities/dataCustomers';
4
4
  import { DataInvitation } from './entities/dataInvitation';
5
+ import { DataUnknownLicenses } from './entities/dataUnknownLicenses';
5
6
  import { DataListOrders } from '../orders';
6
7
  import { CustomerContactList } from './entities/customers/customerContact/customerContactList';
7
8
  import { CustomerContact, CustomerContactRoleType, CustomerContactTypeType } from './entities/customers/customerContact/customerContact';
@@ -135,4 +136,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
135
136
  cancelCustomerMigration(customerReference: string, program: string): Promise<void | APIResponseError>;
136
137
  postCustomerProvision(customerReference: string, payload: PostCustomerMigrationPayload): Promise<void>;
137
138
  getCustomerProvision(customerReference: string, program: string): Promise<GetResult<CustomerProvision>>;
139
+ getUnknownLicenses(customerReference: string, parameters?: Parameters): Promise<GetResult<DataUnknownLicenses>>;
138
140
  }
@@ -5,6 +5,7 @@ const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataCustomers_1 = require("./entities/dataCustomers");
7
7
  const dataInvitation_1 = require("./entities/dataInvitation");
8
+ const dataUnknownLicenses_1 = require("./entities/dataUnknownLicenses");
8
9
  const orders_1 = require("../orders");
9
10
  const customerContactList_1 = require("./entities/customers/customerContact/customerContactList");
10
11
  const customerContact_1 = require("./entities/customers/customerContact/customerContact");
@@ -123,6 +124,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
123
124
  this.path = `/${customerReference}/provision`;
124
125
  return new getResult_1.GetResult(customerProvision_1.CustomerProvision, await this.get({ program }));
125
126
  }
127
+ async getUnknownLicenses(customerReference, parameters = {}) {
128
+ this.path = `/${customerReference}/unknownlicenses`;
129
+ return new getResult_1.GetResult(dataUnknownLicenses_1.DataUnknownLicenses, await this.get(parameters));
130
+ }
126
131
  }
127
132
  exports.CustomersClient = CustomersClient;
128
133
  //# sourceMappingURL=customersClient.js.map
@@ -0,0 +1,14 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { UnknownLicense, UnknownLicenseType } from './unknownLicenses/unknownLicense';
3
+ export declare enum DataUnknownLicensesFields {
4
+ COLUMN_UNKNOWN_LICENSES = "unknownLicenses"
5
+ }
6
+ export declare type DataUnknownLicenseType = {
7
+ [DataUnknownLicensesFields.COLUMN_UNKNOWN_LICENSES]: UnknownLicenseType[];
8
+ };
9
+ export declare class DataUnknownLicenses extends AbstractEntity<DataUnknownLicenseType> {
10
+ #private;
11
+ constructor(dataUnknownLicenseDataInput: DataUnknownLicenseType);
12
+ get unknownLicenses(): UnknownLicense[];
13
+ toJSON(): DataUnknownLicenseType;
14
+ }
@@ -0,0 +1,39 @@
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 _DataUnknownLicenses_unknownLicenses;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DataUnknownLicenses = exports.DataUnknownLicensesFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const unknownLicense_1 = require("./unknownLicenses/unknownLicense");
18
+ var DataUnknownLicensesFields;
19
+ (function (DataUnknownLicensesFields) {
20
+ DataUnknownLicensesFields["COLUMN_UNKNOWN_LICENSES"] = "unknownLicenses";
21
+ })(DataUnknownLicensesFields = exports.DataUnknownLicensesFields || (exports.DataUnknownLicensesFields = {}));
22
+ class DataUnknownLicenses extends abstractEntity_1.AbstractEntity {
23
+ constructor(dataUnknownLicenseDataInput) {
24
+ super(dataUnknownLicenseDataInput);
25
+ _DataUnknownLicenses_unknownLicenses.set(this, void 0);
26
+ __classPrivateFieldSet(this, _DataUnknownLicenses_unknownLicenses, dataUnknownLicenseDataInput[DataUnknownLicensesFields.COLUMN_UNKNOWN_LICENSES].map((result) => new unknownLicense_1.UnknownLicense(result)), "f");
27
+ }
28
+ get unknownLicenses() {
29
+ return __classPrivateFieldGet(this, _DataUnknownLicenses_unknownLicenses, "f");
30
+ }
31
+ toJSON() {
32
+ return {
33
+ [DataUnknownLicensesFields.COLUMN_UNKNOWN_LICENSES]: this.unknownLicenses.map((result) => result.toJSON()),
34
+ };
35
+ }
36
+ }
37
+ exports.DataUnknownLicenses = DataUnknownLicenses;
38
+ _DataUnknownLicenses_unknownLicenses = new WeakMap();
39
+ //# sourceMappingURL=dataUnknownLicenses.js.map
@@ -0,0 +1,19 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum RelationFields {
3
+ COLUMN_TYPE = "type",
4
+ COLUMN_PARTNER_REF = "partnerRef",
5
+ COLUMN_SCOPE = "scope"
6
+ }
7
+ export declare type RelationType = {
8
+ [RelationFields.COLUMN_TYPE]: string;
9
+ [RelationFields.COLUMN_PARTNER_REF]?: string;
10
+ [RelationFields.COLUMN_SCOPE]: string;
11
+ };
12
+ export declare class Relation extends AbstractEntity<RelationType> {
13
+ #private;
14
+ constructor(relationDataInput: RelationType);
15
+ get type(): string;
16
+ get partnerRef(): string | undefined;
17
+ get scope(): string;
18
+ toJSON(): RelationType;
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 _Relation_type, _Relation_partnerRef, _Relation_scope;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.Relation = exports.RelationFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var RelationFields;
18
+ (function (RelationFields) {
19
+ RelationFields["COLUMN_TYPE"] = "type";
20
+ RelationFields["COLUMN_PARTNER_REF"] = "partnerRef";
21
+ RelationFields["COLUMN_SCOPE"] = "scope";
22
+ })(RelationFields = exports.RelationFields || (exports.RelationFields = {}));
23
+ class Relation extends abstractEntity_1.AbstractEntity {
24
+ constructor(relationDataInput) {
25
+ var _a;
26
+ super(relationDataInput);
27
+ _Relation_type.set(this, void 0);
28
+ _Relation_partnerRef.set(this, void 0);
29
+ _Relation_scope.set(this, void 0);
30
+ __classPrivateFieldSet(this, _Relation_type, relationDataInput[RelationFields.COLUMN_TYPE], "f");
31
+ __classPrivateFieldSet(this, _Relation_partnerRef, (_a = relationDataInput[RelationFields.COLUMN_PARTNER_REF]) !== null && _a !== void 0 ? _a : undefined, "f");
32
+ __classPrivateFieldSet(this, _Relation_scope, relationDataInput[RelationFields.COLUMN_SCOPE], "f");
33
+ }
34
+ get type() {
35
+ return __classPrivateFieldGet(this, _Relation_type, "f");
36
+ }
37
+ get partnerRef() {
38
+ return __classPrivateFieldGet(this, _Relation_partnerRef, "f");
39
+ }
40
+ get scope() {
41
+ return __classPrivateFieldGet(this, _Relation_scope, "f");
42
+ }
43
+ toJSON() {
44
+ return {
45
+ [RelationFields.COLUMN_TYPE]: this.type,
46
+ [RelationFields.COLUMN_PARTNER_REF]: this.partnerRef,
47
+ [RelationFields.COLUMN_SCOPE]: this.scope,
48
+ };
49
+ }
50
+ }
51
+ exports.Relation = Relation;
52
+ _Relation_type = new WeakMap(), _Relation_partnerRef = new WeakMap(), _Relation_scope = new WeakMap();
53
+ //# sourceMappingURL=relation.js.map
@@ -0,0 +1,56 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ import { Relation, RelationType } from './relation';
3
+ export declare enum UnknownLicenseFields {
4
+ COLUMN_VENDOR_REFERENCE_ID = "vendorReferenceId",
5
+ COLUMN_OFFER_NAME = "offerName",
6
+ COLUMN_OFFER_SKU = "offerSku",
7
+ COLUMN_PRICEBAND_ARROWSPHERE_SKU = "pricebandArrowsphereSku",
8
+ COLUMN_QUANTITY = "quantity",
9
+ COLUMN_SUBSCRIPTION_START_DATE = "subscriptionStartDate",
10
+ COLUMN_FRIENDLY_NAME = "friendlyName",
11
+ COLUMN_IS_RECONCILABLE = "isReconcilable",
12
+ COLUMN_RECONCILABLE_MESSAGE = "reconcilableMessage",
13
+ COLUMN_IS_ADDON = "isAddon",
14
+ COLUMN_PARENT_SUBSCRIPTION_VENDOR_REFERENCE_ID = "parentSubscriptionVendorReferenceId",
15
+ COLUMN_PARENT_PARTNER_REF = "parentPartnerRef",
16
+ COLUMN_STATUS = "status",
17
+ COLUMN_GROUP = "group",
18
+ COLUMN_RELATIONS = "relations"
19
+ }
20
+ export declare type UnknownLicenseType = {
21
+ [UnknownLicenseFields.COLUMN_VENDOR_REFERENCE_ID]: string;
22
+ [UnknownLicenseFields.COLUMN_OFFER_NAME]: string | null;
23
+ [UnknownLicenseFields.COLUMN_OFFER_SKU]: string | null;
24
+ [UnknownLicenseFields.COLUMN_PRICEBAND_ARROWSPHERE_SKU]: string | null;
25
+ [UnknownLicenseFields.COLUMN_QUANTITY]: number | null;
26
+ [UnknownLicenseFields.COLUMN_SUBSCRIPTION_START_DATE]: string | null;
27
+ [UnknownLicenseFields.COLUMN_FRIENDLY_NAME]: string;
28
+ [UnknownLicenseFields.COLUMN_IS_RECONCILABLE]: boolean;
29
+ [UnknownLicenseFields.COLUMN_RECONCILABLE_MESSAGE]: string;
30
+ [UnknownLicenseFields.COLUMN_IS_ADDON]: boolean;
31
+ [UnknownLicenseFields.COLUMN_PARENT_SUBSCRIPTION_VENDOR_REFERENCE_ID]: string | undefined;
32
+ [UnknownLicenseFields.COLUMN_PARENT_PARTNER_REF]: string | undefined;
33
+ [UnknownLicenseFields.COLUMN_STATUS]: string | null;
34
+ [UnknownLicenseFields.COLUMN_GROUP]: string | null;
35
+ [UnknownLicenseFields.COLUMN_RELATIONS]: RelationType[];
36
+ };
37
+ export declare class UnknownLicense extends AbstractEntity<UnknownLicenseType> {
38
+ #private;
39
+ constructor(UnknownLicenseDataInput: UnknownLicenseType);
40
+ get vendorReferenceId(): string;
41
+ get offerName(): string | null;
42
+ get offerSku(): string | null;
43
+ get pricebandArrowsphereSku(): string | null;
44
+ get quantity(): number | null;
45
+ get subscriptionStartDate(): string | null;
46
+ get friendlyName(): string;
47
+ get isReconcilable(): boolean;
48
+ get reconcilableMessage(): string;
49
+ get isAddon(): boolean;
50
+ get parentSubscriptionVendorReferenceId(): string | undefined;
51
+ get parentPartnerRef(): string | undefined;
52
+ get status(): string | null;
53
+ get group(): string | null;
54
+ get relations(): Relation[];
55
+ toJSON(): UnknownLicenseType;
56
+ }
@@ -0,0 +1,142 @@
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 _UnknownLicense_vendorReferenceId, _UnknownLicense_offerName, _UnknownLicense_offerSku, _UnknownLicense_pricebandArrowsphereSku, _UnknownLicense_quantity, _UnknownLicense_subscriptionStartDate, _UnknownLicense_friendlyName, _UnknownLicense_isReconcilable, _UnknownLicense_reconcilableMessage, _UnknownLicense_isAddon, _UnknownLicense_parentSubscriptionVendorReferenceId, _UnknownLicense_parentPartnerRef, _UnknownLicense_status, _UnknownLicense_group, _UnknownLicense_relations;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UnknownLicense = exports.UnknownLicenseFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ const relation_1 = require("./relation");
18
+ var UnknownLicenseFields;
19
+ (function (UnknownLicenseFields) {
20
+ UnknownLicenseFields["COLUMN_VENDOR_REFERENCE_ID"] = "vendorReferenceId";
21
+ UnknownLicenseFields["COLUMN_OFFER_NAME"] = "offerName";
22
+ UnknownLicenseFields["COLUMN_OFFER_SKU"] = "offerSku";
23
+ UnknownLicenseFields["COLUMN_PRICEBAND_ARROWSPHERE_SKU"] = "pricebandArrowsphereSku";
24
+ UnknownLicenseFields["COLUMN_QUANTITY"] = "quantity";
25
+ UnknownLicenseFields["COLUMN_SUBSCRIPTION_START_DATE"] = "subscriptionStartDate";
26
+ UnknownLicenseFields["COLUMN_FRIENDLY_NAME"] = "friendlyName";
27
+ UnknownLicenseFields["COLUMN_IS_RECONCILABLE"] = "isReconcilable";
28
+ UnknownLicenseFields["COLUMN_RECONCILABLE_MESSAGE"] = "reconcilableMessage";
29
+ UnknownLicenseFields["COLUMN_IS_ADDON"] = "isAddon";
30
+ UnknownLicenseFields["COLUMN_PARENT_SUBSCRIPTION_VENDOR_REFERENCE_ID"] = "parentSubscriptionVendorReferenceId";
31
+ UnknownLicenseFields["COLUMN_PARENT_PARTNER_REF"] = "parentPartnerRef";
32
+ UnknownLicenseFields["COLUMN_STATUS"] = "status";
33
+ UnknownLicenseFields["COLUMN_GROUP"] = "group";
34
+ UnknownLicenseFields["COLUMN_RELATIONS"] = "relations";
35
+ })(UnknownLicenseFields = exports.UnknownLicenseFields || (exports.UnknownLicenseFields = {}));
36
+ class UnknownLicense extends abstractEntity_1.AbstractEntity {
37
+ constructor(UnknownLicenseDataInput) {
38
+ var _a;
39
+ super(UnknownLicenseDataInput);
40
+ _UnknownLicense_vendorReferenceId.set(this, void 0);
41
+ _UnknownLicense_offerName.set(this, void 0);
42
+ _UnknownLicense_offerSku.set(this, void 0);
43
+ _UnknownLicense_pricebandArrowsphereSku.set(this, void 0);
44
+ _UnknownLicense_quantity.set(this, void 0);
45
+ _UnknownLicense_subscriptionStartDate.set(this, void 0);
46
+ _UnknownLicense_friendlyName.set(this, void 0);
47
+ _UnknownLicense_isReconcilable.set(this, void 0);
48
+ _UnknownLicense_reconcilableMessage.set(this, void 0);
49
+ _UnknownLicense_isAddon.set(this, void 0);
50
+ _UnknownLicense_parentSubscriptionVendorReferenceId.set(this, void 0);
51
+ _UnknownLicense_parentPartnerRef.set(this, void 0);
52
+ _UnknownLicense_status.set(this, void 0);
53
+ _UnknownLicense_group.set(this, void 0);
54
+ _UnknownLicense_relations.set(this, void 0);
55
+ __classPrivateFieldSet(this, _UnknownLicense_vendorReferenceId, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_VENDOR_REFERENCE_ID], "f");
56
+ __classPrivateFieldSet(this, _UnknownLicense_offerName, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_OFFER_NAME], "f");
57
+ __classPrivateFieldSet(this, _UnknownLicense_offerSku, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_OFFER_SKU], "f");
58
+ __classPrivateFieldSet(this, _UnknownLicense_pricebandArrowsphereSku, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_PRICEBAND_ARROWSPHERE_SKU], "f");
59
+ __classPrivateFieldSet(this, _UnknownLicense_quantity, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_QUANTITY], "f");
60
+ __classPrivateFieldSet(this, _UnknownLicense_subscriptionStartDate, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_SUBSCRIPTION_START_DATE], "f");
61
+ __classPrivateFieldSet(this, _UnknownLicense_friendlyName, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_FRIENDLY_NAME], "f");
62
+ __classPrivateFieldSet(this, _UnknownLicense_isReconcilable, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_IS_RECONCILABLE], "f");
63
+ __classPrivateFieldSet(this, _UnknownLicense_reconcilableMessage, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_RECONCILABLE_MESSAGE], "f");
64
+ __classPrivateFieldSet(this, _UnknownLicense_isAddon, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_IS_ADDON], "f");
65
+ __classPrivateFieldSet(this, _UnknownLicense_parentSubscriptionVendorReferenceId, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_PARENT_SUBSCRIPTION_VENDOR_REFERENCE_ID], "f");
66
+ __classPrivateFieldSet(this, _UnknownLicense_parentPartnerRef, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_PARENT_PARTNER_REF], "f");
67
+ __classPrivateFieldSet(this, _UnknownLicense_status, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_STATUS], "f");
68
+ __classPrivateFieldSet(this, _UnknownLicense_group, UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_GROUP], "f");
69
+ __classPrivateFieldSet(this, _UnknownLicense_relations, ((_a = UnknownLicenseDataInput[UnknownLicenseFields.COLUMN_RELATIONS]) !== null && _a !== void 0 ? _a : []).map((result) => new relation_1.Relation(result)), "f");
70
+ }
71
+ get vendorReferenceId() {
72
+ return __classPrivateFieldGet(this, _UnknownLicense_vendorReferenceId, "f");
73
+ }
74
+ get offerName() {
75
+ return __classPrivateFieldGet(this, _UnknownLicense_offerName, "f");
76
+ }
77
+ get offerSku() {
78
+ return __classPrivateFieldGet(this, _UnknownLicense_offerSku, "f");
79
+ }
80
+ get pricebandArrowsphereSku() {
81
+ return __classPrivateFieldGet(this, _UnknownLicense_pricebandArrowsphereSku, "f");
82
+ }
83
+ get quantity() {
84
+ return __classPrivateFieldGet(this, _UnknownLicense_quantity, "f");
85
+ }
86
+ get subscriptionStartDate() {
87
+ return __classPrivateFieldGet(this, _UnknownLicense_subscriptionStartDate, "f");
88
+ }
89
+ get friendlyName() {
90
+ return __classPrivateFieldGet(this, _UnknownLicense_friendlyName, "f");
91
+ }
92
+ get isReconcilable() {
93
+ return __classPrivateFieldGet(this, _UnknownLicense_isReconcilable, "f");
94
+ }
95
+ get reconcilableMessage() {
96
+ return __classPrivateFieldGet(this, _UnknownLicense_reconcilableMessage, "f");
97
+ }
98
+ get isAddon() {
99
+ return __classPrivateFieldGet(this, _UnknownLicense_isAddon, "f");
100
+ }
101
+ get parentSubscriptionVendorReferenceId() {
102
+ return __classPrivateFieldGet(this, _UnknownLicense_parentSubscriptionVendorReferenceId, "f");
103
+ }
104
+ get parentPartnerRef() {
105
+ return __classPrivateFieldGet(this, _UnknownLicense_parentPartnerRef, "f");
106
+ }
107
+ get status() {
108
+ return __classPrivateFieldGet(this, _UnknownLicense_status, "f");
109
+ }
110
+ get group() {
111
+ return __classPrivateFieldGet(this, _UnknownLicense_group, "f");
112
+ }
113
+ get relations() {
114
+ return __classPrivateFieldGet(this, _UnknownLicense_relations, "f");
115
+ }
116
+ toJSON() {
117
+ return {
118
+ [UnknownLicenseFields.COLUMN_VENDOR_REFERENCE_ID]: this.vendorReferenceId,
119
+ [UnknownLicenseFields.COLUMN_OFFER_NAME]: this.offerName,
120
+ [UnknownLicenseFields.COLUMN_OFFER_SKU]: this.offerSku,
121
+ [UnknownLicenseFields.COLUMN_PRICEBAND_ARROWSPHERE_SKU]: this
122
+ .pricebandArrowsphereSku,
123
+ [UnknownLicenseFields.COLUMN_QUANTITY]: this.quantity,
124
+ [UnknownLicenseFields.COLUMN_SUBSCRIPTION_START_DATE]: this
125
+ .subscriptionStartDate,
126
+ [UnknownLicenseFields.COLUMN_FRIENDLY_NAME]: this.friendlyName,
127
+ [UnknownLicenseFields.COLUMN_IS_RECONCILABLE]: this.isReconcilable,
128
+ [UnknownLicenseFields.COLUMN_RECONCILABLE_MESSAGE]: this
129
+ .reconcilableMessage,
130
+ [UnknownLicenseFields.COLUMN_IS_ADDON]: this.isAddon,
131
+ [UnknownLicenseFields.COLUMN_PARENT_SUBSCRIPTION_VENDOR_REFERENCE_ID]: this
132
+ .parentSubscriptionVendorReferenceId,
133
+ [UnknownLicenseFields.COLUMN_PARENT_PARTNER_REF]: this.parentPartnerRef,
134
+ [UnknownLicenseFields.COLUMN_STATUS]: this.status,
135
+ [UnknownLicenseFields.COLUMN_GROUP]: this.group,
136
+ [UnknownLicenseFields.COLUMN_RELATIONS]: this.relations.map((result) => result.toJSON()),
137
+ };
138
+ }
139
+ }
140
+ exports.UnknownLicense = UnknownLicense;
141
+ _UnknownLicense_vendorReferenceId = new WeakMap(), _UnknownLicense_offerName = new WeakMap(), _UnknownLicense_offerSku = new WeakMap(), _UnknownLicense_pricebandArrowsphereSku = new WeakMap(), _UnknownLicense_quantity = new WeakMap(), _UnknownLicense_subscriptionStartDate = new WeakMap(), _UnknownLicense_friendlyName = new WeakMap(), _UnknownLicense_isReconcilable = new WeakMap(), _UnknownLicense_reconcilableMessage = new WeakMap(), _UnknownLicense_isAddon = new WeakMap(), _UnknownLicense_parentSubscriptionVendorReferenceId = new WeakMap(), _UnknownLicense_parentPartnerRef = new WeakMap(), _UnknownLicense_status = new WeakMap(), _UnknownLicense_group = new WeakMap(), _UnknownLicense_relations = new WeakMap();
142
+ //# sourceMappingURL=unknownLicense.js.map
@@ -6,5 +6,8 @@ export * from './entities/customers/customer';
6
6
  export * from './entities/customers/details/details';
7
7
  export * from './entities/dataCustomers';
8
8
  export * from './entities/dataInvitation';
9
+ export * from './entities/dataUnknownLicenses';
9
10
  export * from './entities/invitations/company/company';
10
11
  export * from './entities/invitations/contact/invitationContact';
12
+ export * from './entities/unknownLicenses/relation';
13
+ export * from './entities/unknownLicenses/unknownLicense';
@@ -22,6 +22,9 @@ __exportStar(require("./entities/customers/customer"), exports);
22
22
  __exportStar(require("./entities/customers/details/details"), exports);
23
23
  __exportStar(require("./entities/dataCustomers"), exports);
24
24
  __exportStar(require("./entities/dataInvitation"), exports);
25
+ __exportStar(require("./entities/dataUnknownLicenses"), exports);
25
26
  __exportStar(require("./entities/invitations/company/company"), exports);
26
27
  __exportStar(require("./entities/invitations/contact/invitationContact"), exports);
28
+ __exportStar(require("./entities/unknownLicenses/relation"), exports);
29
+ __exportStar(require("./entities/unknownLicenses/unknownLicense"), exports);
27
30
  //# sourceMappingURL=index.js.map
@@ -69,27 +69,3 @@ export declare type GraphqlApiOrderHistoryType = {
69
69
  order?: OrdersType;
70
70
  user?: UserType;
71
71
  };
72
- export declare type GraphqlApiOrderListType = {
73
- id?: number;
74
- country?: string;
75
- createdAt?: string;
76
- createdBy?: string;
77
- createdByImpersonate?: string;
78
- currency?: string;
79
- endCustomerName?: string;
80
- orderType?: string;
81
- partnerId?: number;
82
- partnerName?: string;
83
- partnerTags?: string;
84
- programId?: number;
85
- programName?: string;
86
- reference?: string;
87
- scheduledAt?: string;
88
- status?: string;
89
- statusId?: number;
90
- totalCommitment?: number;
91
- totalPrice?: number;
92
- updatedAt?: string;
93
- uuid?: number;
94
- vendorName?: string;
95
- };
@@ -3,7 +3,7 @@ import { ContactsType } from './entities/contact';
3
3
  import { GraphqlApiStaffType } from './entities/contributor';
4
4
  import { ContinentType, CountryType } from './entities/country';
5
5
  import { LicenseBudgetType } from './entities/licenseBudget';
6
- import { GraphqlApiOrderHistoryType, GraphqlApiOrderListType, OrdersType } from './entities/order';
6
+ import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
7
7
  import { OrganizationUnitsType } from './entities/organizationUnit';
8
8
  import { PartnertagType } from './entities/partnertag';
9
9
  import { GraphqlApiProgramType, ProgramLevelOptionGroupType, ProgramLevelType, SubscribedProgramType } from './entities/program';
@@ -127,7 +127,6 @@ export declare enum SelectDataField {
127
127
  ORGANIZATION_UNIT = "organizationUnit",
128
128
  ORDER = "order",
129
129
  ORDER_HISTORY = "orderHistory",
130
- ORDER_LIST = "orderList",
131
130
  PARTNER = "partner",
132
131
  PARTNERTAG = "partnertag",
133
132
  PROGRAM = "program",
@@ -161,7 +160,6 @@ export declare type SelectAllResponseDataType = {
161
160
  [SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
162
161
  [SelectDataField.ORDER]?: OrdersType[];
163
162
  [SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType[];
164
- [SelectDataField.ORDER_LIST]?: GraphqlApiOrderListType[];
165
163
  [SelectDataField.PARTNER]?: PartnerType[];
166
164
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
167
165
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
@@ -99,7 +99,6 @@ var SelectDataField;
99
99
  SelectDataField["ORGANIZATION_UNIT"] = "organizationUnit";
100
100
  SelectDataField["ORDER"] = "order";
101
101
  SelectDataField["ORDER_HISTORY"] = "orderHistory";
102
- SelectDataField["ORDER_LIST"] = "orderList";
103
102
  SelectDataField["PARTNER"] = "partner";
104
103
  SelectDataField["PARTNERTAG"] = "partnertag";
105
104
  SelectDataField["PROGRAM"] = "program";
@@ -7,7 +7,7 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
7
7
  import { ContactsType } from './entities/contact';
8
8
  import { SubscriptionType } from './entities/subscription';
9
9
  import { SpecialPriceRateType } from './entities/specialPriceRate';
10
- import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, GraphqlApiOrderListType, OrderItemsType, OrdersType } from './entities/order';
10
+ import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, OrderItemsType, OrdersType } from './entities/order';
11
11
  import { GraphqlApiProgramType, ProgramBenefitType, ProgramLevelType, ProgramRequirementType, ProgramLevelOptionGroupType, ProgramLevelOptionType, SubscribedProgramType, SubscriptionExtraFieldType } from './entities/program';
12
12
  import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
13
13
  import { UserHistoryType, UserType } from './entities/user';
@@ -109,7 +109,6 @@ export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
109
109
  export declare type GraphqlApiEavSchema = Schema<GraphqlApiEavType, boolean>;
110
110
  export declare type GraphqlApiOrderHistorySchema = Schema<GraphqlApiOrderHistoryType, boolean>;
111
111
  export declare type GraphqlApiOrderLinkSchema = Schema<GraphqlApiOrderLinkType, boolean>;
112
- export declare type GraphqlApiOrderListSchema = Schema<GraphqlApiOrderListType, boolean>;
113
112
  export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
114
113
  export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
115
114
  export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
@@ -1,10 +1,15 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
2
  import { LicenseFindResultFields } from './license/licenseFindResult';
3
+ declare type FilterFindResultDataIterable = {
4
+ [field in LicenseFindResultFields]?: unknown;
5
+ };
3
6
  /**
4
7
  * Filter data values
5
8
  */
6
- export declare type FilterFindResultDataValues = {
7
- [field in LicenseFindResultFields]?: unknown;
9
+ export declare type FilterFindResultDataValues = FilterFindResultDataIterable | LicenseFilterAggregationType[];
10
+ export declare type LicenseFilterAggregationType = {
11
+ count: number;
12
+ values: string[];
8
13
  };
9
14
  /**
10
15
  * Filter data
@@ -44,3 +49,4 @@ export declare class FilterFindResult extends AbstractEntity<FilterFindResultDat
44
49
  */
45
50
  toJSON(): FilterFindResultData;
46
51
  }
52
+ export {};
@@ -32,6 +32,10 @@ import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCoupon
32
32
  * Parameters passable to the request for refining search.
33
33
  */
34
34
  export declare enum LicenseFindParameters {
35
+ /**
36
+ * The key for aggregation search query parameter (to request extra aggregation, which are not provided by default)
37
+ */
38
+ DATA_AGGREGATION = "aggregations",
35
39
  /**
36
40
  * The key for keyword search query parameter (to search one string in all available search fields)
37
41
  */
@@ -177,6 +181,7 @@ export declare type LicenseRawFiltersParameters = {
177
181
  * Payload to pass the find request. Contains keyword(s), sort options, column filters and highlight option.
178
182
  */
179
183
  export declare type LicenseFindPayload = {
184
+ [LicenseFindParameters.DATA_AGGREGATION]?: string[];
180
185
  [LicenseFindParameters.DATA_KEYWORD]?: string;
181
186
  [LicenseFindParameters.DATA_KEYWORDS]?: LicenseKeywordsParameters;
182
187
  [LicenseFindParameters.DATA_FILTERS]?: LicenseFiltersParameters;
@@ -185,6 +190,7 @@ export declare type LicenseFindPayload = {
185
190
  [LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
186
191
  };
187
192
  export declare type LicenseFindRawPayload = {
193
+ [LicenseFindParameters.DATA_AGGREGATION]?: string[];
188
194
  [LicenseFindParameters.DATA_KEYWORD]?: string;
189
195
  [LicenseFindParameters.DATA_KEYWORDS]?: {
190
196
  license?: LicenseRawKeywordsParametersLicence;
@@ -27,6 +27,10 @@ const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCoup
27
27
  */
28
28
  var LicenseFindParameters;
29
29
  (function (LicenseFindParameters) {
30
+ /**
31
+ * The key for aggregation search query parameter (to request extra aggregation, which are not provided by default)
32
+ */
33
+ LicenseFindParameters["DATA_AGGREGATION"] = "aggregations";
30
34
  /**
31
35
  * The key for keyword search query parameter (to search one string in all available search fields)
32
36
  */
@@ -257,6 +261,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
257
261
  this.setPerPage(perPage);
258
262
  this.setPage(page);
259
263
  const rawLicensePayload = {
264
+ aggregations: postData.aggregations,
260
265
  keyword: postData.keyword,
261
266
  highlight: postData.highlight,
262
267
  };
@@ -268,6 +273,14 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
268
273
  ...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
269
274
  };
270
275
  }
276
+ if (postData.keywords) {
277
+ // Flatten with prefix for each type of keyword (license and offer)
278
+ rawLicensePayload.keywords = {
279
+ ...this.createKeywords(postData.keywords, 'license'),
280
+ ...this.createKeywords(postData.keywords, 'offer'),
281
+ ...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
282
+ };
283
+ }
271
284
  if (postData.filters) {
272
285
  // Flatten with prefix for each type of filter (license and offer)
273
286
  rawLicensePayload.filters = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.193.0-rc-bdj-3",
7
+ "version": "3.194.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",