@arrowsphere/api-client 3.78.0-rc.wev.1 → 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 +10 -0
- package/build/graphqlApi/types/entities/company.d.ts +11 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +5 -1
- package/build/licenses/entities/license/licenseFindResult.d.ts +0 -24
- package/build/licenses/entities/license/licenseFindResult.js +2 -32
- package/build/licenses/entities/request/licenseRequest.d.ts +26 -14
- package/build/licenses/entities/request/licenseRequest.js +46 -23
- package/build/licenses/licenseRequestClient.d.ts +2 -3
- package/build/licenses/licenseRequestClient.js +9 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
|
|
6
16
|
## [3.77.0] - 2023-12-13
|
|
7
17
|
|
|
8
18
|
### 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>;
|
|
@@ -34,10 +34,6 @@ export declare enum LicenseFindResultFields {
|
|
|
34
34
|
COLUMN_MARKETPLACE = "marketplace",
|
|
35
35
|
COLUMN_MESSAGE = "message",
|
|
36
36
|
COLUMN_OFFER = "offer",
|
|
37
|
-
COLUMN_OFFER_ARROWSPHERE_SKU = "offer_arrowsphere_sku",
|
|
38
|
-
COLUMN_ORDER_REF = "order_ref",
|
|
39
|
-
COLUMN_PRICEBAND_VENDOR_SKU = "priceband_vendor_sku",
|
|
40
|
-
COLUMN_NEXT_RENEWAL_DATE = "next_renewal_date",
|
|
41
37
|
COLUMN_PARENT_LINE_ID = "parent_line_id",
|
|
42
38
|
COLUMN_PARENT_ORDER_REF = "parent_order_ref",
|
|
43
39
|
COLUMN_PARTNER_REF = "partner_ref",
|
|
@@ -85,10 +81,6 @@ export declare type LicenseFindResultData = {
|
|
|
85
81
|
[LicenseFindResultFields.COLUMN_MARKETPLACE]: string;
|
|
86
82
|
[LicenseFindResultFields.COLUMN_MESSAGE]: string;
|
|
87
83
|
[LicenseFindResultFields.COLUMN_OFFER]: string;
|
|
88
|
-
[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU]: string;
|
|
89
|
-
[LicenseFindResultFields.COLUMN_ORDER_REF]: string;
|
|
90
|
-
[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU]: string;
|
|
91
|
-
[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE]: string;
|
|
92
84
|
[LicenseFindResultFields.COLUMN_PARENT_LINE_ID]: number | null;
|
|
93
85
|
[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF]: string | null;
|
|
94
86
|
[LicenseFindResultFields.COLUMN_PARTNER_REF]: string;
|
|
@@ -133,10 +125,6 @@ export declare type LicenceFindDataKeywords = {
|
|
|
133
125
|
[LicenseFindResultFields.COLUMN_MARKETPLACE]?: DataKeywords;
|
|
134
126
|
[LicenseFindResultFields.COLUMN_MESSAGE]?: DataKeywords;
|
|
135
127
|
[LicenseFindResultFields.COLUMN_OFFER]?: DataKeywords;
|
|
136
|
-
[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU]?: DataKeywords;
|
|
137
|
-
[LicenseFindResultFields.COLUMN_ORDER_REF]?: DataKeywords;
|
|
138
|
-
[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU]?: DataKeywords;
|
|
139
|
-
[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE]?: DataKeywords;
|
|
140
128
|
[LicenseFindResultFields.COLUMN_PARENT_LINE_ID]?: DataKeywords;
|
|
141
129
|
[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF]?: DataKeywords;
|
|
142
130
|
[LicenseFindResultFields.COLUMN_PARTNER_REF]?: DataKeywords;
|
|
@@ -180,10 +168,6 @@ export declare type LicenceFindDataSortParameters = {
|
|
|
180
168
|
[LicenseFindResultFields.COLUMN_MARKETPLACE]?: SortParameters;
|
|
181
169
|
[LicenseFindResultFields.COLUMN_MESSAGE]?: SortParameters;
|
|
182
170
|
[LicenseFindResultFields.COLUMN_OFFER]?: SortParameters;
|
|
183
|
-
[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU]?: SortParameters;
|
|
184
|
-
[LicenseFindResultFields.COLUMN_ORDER_REF]?: SortParameters;
|
|
185
|
-
[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU]?: SortParameters;
|
|
186
|
-
[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE]?: SortParameters;
|
|
187
171
|
[LicenseFindResultFields.COLUMN_PARENT_LINE_ID]?: SortParameters;
|
|
188
172
|
[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF]?: SortParameters;
|
|
189
173
|
[LicenseFindResultFields.COLUMN_PARTNER_REF]?: SortParameters;
|
|
@@ -227,10 +211,6 @@ export declare type LicenceFindDataFiltersParameters = {
|
|
|
227
211
|
[LicenseFindResultFields.COLUMN_MARKETPLACE]?: FiltersParameters;
|
|
228
212
|
[LicenseFindResultFields.COLUMN_MESSAGE]?: FiltersParameters;
|
|
229
213
|
[LicenseFindResultFields.COLUMN_OFFER]?: FiltersParameters;
|
|
230
|
-
[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU]?: FiltersParameters;
|
|
231
|
-
[LicenseFindResultFields.COLUMN_ORDER_REF]?: FiltersParameters;
|
|
232
|
-
[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU]?: FiltersParameters;
|
|
233
|
-
[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE]?: FiltersParameters;
|
|
234
214
|
[LicenseFindResultFields.COLUMN_PARENT_LINE_ID]?: FiltersParameters;
|
|
235
215
|
[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF]?: FiltersParameters;
|
|
236
216
|
[LicenseFindResultFields.COLUMN_PARTNER_REF]?: FiltersParameters;
|
|
@@ -282,10 +262,6 @@ export declare class LicenseFindResult extends AbstractEntity<LicenseFindResultD
|
|
|
282
262
|
get marketplace(): string;
|
|
283
263
|
get message(): string;
|
|
284
264
|
get offer(): string;
|
|
285
|
-
get offerArrowsphereSku(): string;
|
|
286
|
-
get orderRef(): string;
|
|
287
|
-
get pricebandVendorSku(): string;
|
|
288
|
-
get nextRenewalDate(): string;
|
|
289
265
|
get parentLineId(): number | null;
|
|
290
266
|
get parentOrderRef(): string | null;
|
|
291
267
|
get partnerRef(): string;
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer,
|
|
13
|
+
var _LicenseFindResult_acceptEula, _LicenseFindResult_activeSeats, _LicenseFindResult_autoRenew, _LicenseFindResult_baseSeat, _LicenseFindResult_category, _LicenseFindResult_classification, _LicenseFindResult_configs, _LicenseFindResult_warnings, _LicenseFindResult_customerName, _LicenseFindResult_customerRef, _LicenseFindResult_endDate, _LicenseFindResult_friendlyName, _LicenseFindResult_id, _LicenseFindResult_enabled, _LicenseFindResult_lastUpdate, _LicenseFindResult_marketplace, _LicenseFindResult_message, _LicenseFindResult_offer, _LicenseFindResult_parentLineId, _LicenseFindResult_parentOrderRef, _LicenseFindResult_partnerRef, _LicenseFindResult_periodicity, _LicenseFindResult_price, _LicenseFindResult_resellerName, _LicenseFindResult_resellerRef, _LicenseFindResult_seat, _LicenseFindResult_security, _LicenseFindResult_serviceRef, _LicenseFindResult_sku, _LicenseFindResult_startDate, _LicenseFindResult_statusCode, _LicenseFindResult_statusLabel, _LicenseFindResult_subscriptionId, _LicenseFindResult_subsidiaryName, _LicenseFindResult_term, _LicenseFindResult_trial, _LicenseFindResult_type, _LicenseFindResult_uom, _LicenseFindResult_vendorCode, _LicenseFindResult_vendorName, _LicenseFindResult_vendorSubscriptionId, _LicenseFindResult_highlight;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.LicenseFindResult = exports.LicenseFindResultFields = void 0;
|
|
16
16
|
const activeSeatsFindResult_1 = require("./activeSeatsFindResult");
|
|
@@ -42,10 +42,6 @@ var LicenseFindResultFields;
|
|
|
42
42
|
LicenseFindResultFields["COLUMN_MARKETPLACE"] = "marketplace";
|
|
43
43
|
LicenseFindResultFields["COLUMN_MESSAGE"] = "message";
|
|
44
44
|
LicenseFindResultFields["COLUMN_OFFER"] = "offer";
|
|
45
|
-
LicenseFindResultFields["COLUMN_OFFER_ARROWSPHERE_SKU"] = "offer_arrowsphere_sku";
|
|
46
|
-
LicenseFindResultFields["COLUMN_ORDER_REF"] = "order_ref";
|
|
47
|
-
LicenseFindResultFields["COLUMN_PRICEBAND_VENDOR_SKU"] = "priceband_vendor_sku";
|
|
48
|
-
LicenseFindResultFields["COLUMN_NEXT_RENEWAL_DATE"] = "next_renewal_date";
|
|
49
45
|
LicenseFindResultFields["COLUMN_PARENT_LINE_ID"] = "parent_line_id";
|
|
50
46
|
LicenseFindResultFields["COLUMN_PARENT_ORDER_REF"] = "parent_order_ref";
|
|
51
47
|
LicenseFindResultFields["COLUMN_PARTNER_REF"] = "partner_ref";
|
|
@@ -118,10 +114,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
118
114
|
_LicenseFindResult_marketplace.set(this, void 0);
|
|
119
115
|
_LicenseFindResult_message.set(this, void 0);
|
|
120
116
|
_LicenseFindResult_offer.set(this, void 0);
|
|
121
|
-
_LicenseFindResult_offerArrowsphereSku.set(this, void 0);
|
|
122
|
-
_LicenseFindResult_orderRef.set(this, void 0);
|
|
123
|
-
_LicenseFindResult_pricebandVendorSku.set(this, void 0);
|
|
124
|
-
_LicenseFindResult_nextRenewalDate.set(this, void 0);
|
|
125
117
|
_LicenseFindResult_parentLineId.set(this, void 0);
|
|
126
118
|
_LicenseFindResult_parentOrderRef.set(this, void 0);
|
|
127
119
|
_LicenseFindResult_partnerRef.set(this, void 0);
|
|
@@ -168,10 +160,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
168
160
|
__classPrivateFieldSet(this, _LicenseFindResult_marketplace, data[LicenseFindResultFields.COLUMN_MARKETPLACE], "f");
|
|
169
161
|
__classPrivateFieldSet(this, _LicenseFindResult_message, data[LicenseFindResultFields.COLUMN_MESSAGE], "f");
|
|
170
162
|
__classPrivateFieldSet(this, _LicenseFindResult_offer, data[LicenseFindResultFields.COLUMN_OFFER], "f");
|
|
171
|
-
__classPrivateFieldSet(this, _LicenseFindResult_offerArrowsphereSku, data[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU], "f");
|
|
172
|
-
__classPrivateFieldSet(this, _LicenseFindResult_orderRef, data[LicenseFindResultFields.COLUMN_ORDER_REF], "f");
|
|
173
|
-
__classPrivateFieldSet(this, _LicenseFindResult_pricebandVendorSku, data[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU], "f");
|
|
174
|
-
__classPrivateFieldSet(this, _LicenseFindResult_nextRenewalDate, data[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE], "f");
|
|
175
163
|
__classPrivateFieldSet(this, _LicenseFindResult_parentLineId, data[LicenseFindResultFields.COLUMN_PARENT_LINE_ID], "f");
|
|
176
164
|
__classPrivateFieldSet(this, _LicenseFindResult_parentOrderRef, data[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF], "f");
|
|
177
165
|
__classPrivateFieldSet(this, _LicenseFindResult_partnerRef, data[LicenseFindResultFields.COLUMN_PARTNER_REF], "f");
|
|
@@ -260,18 +248,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
260
248
|
get offer() {
|
|
261
249
|
return __classPrivateFieldGet(this, _LicenseFindResult_offer, "f");
|
|
262
250
|
}
|
|
263
|
-
get offerArrowsphereSku() {
|
|
264
|
-
return __classPrivateFieldGet(this, _LicenseFindResult_offerArrowsphereSku, "f");
|
|
265
|
-
}
|
|
266
|
-
get orderRef() {
|
|
267
|
-
return __classPrivateFieldGet(this, _LicenseFindResult_orderRef, "f");
|
|
268
|
-
}
|
|
269
|
-
get pricebandVendorSku() {
|
|
270
|
-
return __classPrivateFieldGet(this, _LicenseFindResult_pricebandVendorSku, "f");
|
|
271
|
-
}
|
|
272
|
-
get nextRenewalDate() {
|
|
273
|
-
return __classPrivateFieldGet(this, _LicenseFindResult_nextRenewalDate, "f");
|
|
274
|
-
}
|
|
275
251
|
get parentLineId() {
|
|
276
252
|
return __classPrivateFieldGet(this, _LicenseFindResult_parentLineId, "f");
|
|
277
253
|
}
|
|
@@ -369,12 +345,6 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
369
345
|
[LicenseFindResultFields.COLUMN_MARKETPLACE]: this.marketplace,
|
|
370
346
|
[LicenseFindResultFields.COLUMN_MESSAGE]: this.message,
|
|
371
347
|
[LicenseFindResultFields.COLUMN_OFFER]: this.offer,
|
|
372
|
-
[LicenseFindResultFields.COLUMN_OFFER_ARROWSPHERE_SKU]: this
|
|
373
|
-
.offerArrowsphereSku,
|
|
374
|
-
[LicenseFindResultFields.COLUMN_ORDER_REF]: this.orderRef,
|
|
375
|
-
[LicenseFindResultFields.COLUMN_PRICEBAND_VENDOR_SKU]: this
|
|
376
|
-
.pricebandVendorSku,
|
|
377
|
-
[LicenseFindResultFields.COLUMN_NEXT_RENEWAL_DATE]: this.nextRenewalDate,
|
|
378
348
|
[LicenseFindResultFields.COLUMN_PARENT_LINE_ID]: this.parentLineId,
|
|
379
349
|
[LicenseFindResultFields.COLUMN_PARENT_ORDER_REF]: this.parentOrderRef,
|
|
380
350
|
[LicenseFindResultFields.COLUMN_PARTNER_REF]: this.partnerRef,
|
|
@@ -404,5 +374,5 @@ class LicenseFindResult extends abstractEntity_1.AbstractEntity {
|
|
|
404
374
|
}
|
|
405
375
|
}
|
|
406
376
|
exports.LicenseFindResult = LicenseFindResult;
|
|
407
|
-
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(),
|
|
377
|
+
_LicenseFindResult_acceptEula = new WeakMap(), _LicenseFindResult_activeSeats = new WeakMap(), _LicenseFindResult_autoRenew = new WeakMap(), _LicenseFindResult_baseSeat = new WeakMap(), _LicenseFindResult_category = new WeakMap(), _LicenseFindResult_classification = new WeakMap(), _LicenseFindResult_configs = new WeakMap(), _LicenseFindResult_warnings = new WeakMap(), _LicenseFindResult_customerName = new WeakMap(), _LicenseFindResult_customerRef = new WeakMap(), _LicenseFindResult_endDate = new WeakMap(), _LicenseFindResult_friendlyName = new WeakMap(), _LicenseFindResult_id = new WeakMap(), _LicenseFindResult_enabled = new WeakMap(), _LicenseFindResult_lastUpdate = new WeakMap(), _LicenseFindResult_marketplace = new WeakMap(), _LicenseFindResult_message = new WeakMap(), _LicenseFindResult_offer = new WeakMap(), _LicenseFindResult_parentLineId = new WeakMap(), _LicenseFindResult_parentOrderRef = new WeakMap(), _LicenseFindResult_partnerRef = new WeakMap(), _LicenseFindResult_periodicity = new WeakMap(), _LicenseFindResult_price = new WeakMap(), _LicenseFindResult_resellerName = new WeakMap(), _LicenseFindResult_resellerRef = new WeakMap(), _LicenseFindResult_seat = new WeakMap(), _LicenseFindResult_security = new WeakMap(), _LicenseFindResult_serviceRef = new WeakMap(), _LicenseFindResult_sku = new WeakMap(), _LicenseFindResult_startDate = new WeakMap(), _LicenseFindResult_statusCode = new WeakMap(), _LicenseFindResult_statusLabel = new WeakMap(), _LicenseFindResult_subscriptionId = new WeakMap(), _LicenseFindResult_subsidiaryName = new WeakMap(), _LicenseFindResult_term = new WeakMap(), _LicenseFindResult_trial = new WeakMap(), _LicenseFindResult_type = new WeakMap(), _LicenseFindResult_uom = new WeakMap(), _LicenseFindResult_vendorCode = new WeakMap(), _LicenseFindResult_vendorName = new WeakMap(), _LicenseFindResult_vendorSubscriptionId = new WeakMap(), _LicenseFindResult_highlight = new WeakMap();
|
|
408
378
|
//# sourceMappingURL=licenseFindResult.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
|
|
@@ -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;
|
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