@arrowsphere/api-client 3.71.0-rc.bdj.1 → 3.71.0-rc.fdi.1

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/build/index.d.ts +1 -0
  3. package/build/index.js +1 -0
  4. package/build/licenses/entities/event/licensesEventQueries.d.ts +20 -0
  5. package/build/licenses/entities/event/licensesEventQueries.js +12 -1
  6. package/build/licenses/entities/getLicense/assetsFindResult.d.ts +10 -0
  7. package/build/licenses/entities/getLicense/assetsFindResult.js +34 -0
  8. package/build/licenses/entities/getLicense/licenseGetResult.d.ts +15 -1
  9. package/build/licenses/entities/getLicense/licenseGetResult.js +37 -3
  10. package/build/licenses/entities/getLicense/promotionFindResult.d.ts +12 -0
  11. package/build/licenses/entities/getLicense/promotionFindResult.js +40 -0
  12. package/build/organisationUnit/entities/organizationUnit.d.ts +25 -0
  13. package/build/organisationUnit/entities/organizationUnit.js +67 -0
  14. package/build/organisationUnit/entities/organizationUnitList.d.ts +9 -0
  15. package/build/organisationUnit/entities/organizationUnitList.js +33 -0
  16. package/build/organisationUnit/index.d.ts +3 -0
  17. package/build/organisationUnit/index.js +20 -0
  18. package/build/organisationUnit/organizationUnitClient.d.ts +18 -0
  19. package/build/organisationUnit/organizationUnitClient.js +39 -0
  20. package/build/publicApiClient.d.ts +2 -0
  21. package/build/publicApiClient.js +6 -0
  22. package/build/supportCenter/supportCenterClient.js +1 -1
  23. package/build/wellArchitected/types/wellArchitectedGraphQLSchemas.d.ts +6 -2
  24. package/build/wellArchitected/types/wellArchitectedGraphQLTypes.d.ts +5 -0
  25. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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.71.0] - 2023-11-28
7
+
8
+ ### Changed
9
+ - Adds Organization unit client and endpoints
10
+
11
+ ## [3.70.6] - 2023-11-30
12
+
13
+ ### Fixed
14
+ - Fix empty assets and promotion in LicenseGetResult
15
+
16
+ ## [3.70.5] - 2023-11-29
17
+
18
+ ### Fixed
19
+ - Fix update issue support center
20
+
21
+ ## [3.70.4] - 2023-11-29
22
+
23
+ ### Changed
24
+ - Adds score by group for the Checks in Well Architected
25
+
26
+
27
+ ## [3.70.3] - 2023-11-29
28
+
29
+ ### Changed
30
+ - Adds fields below to LicenseGetResult:
31
+
32
+ * vendorBillingId
33
+ * promotion
34
+ * nextRenewalDate
35
+ * assets
36
+
37
+ ## [3.70.2] - 2023-11-29
38
+
39
+ ### Fixed
40
+ - Add more criteria to search licenses event
41
+
42
+ ## [3.70.1] - 2023-11-29
43
+
44
+ ### Fixed
45
+ - Fixes licenses event schema
46
+
6
47
  ## [3.70.0] - 2023-11-28
7
48
 
8
49
  ### Fixed
package/build/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './pagination';
15
15
  export * from './licenses/';
16
16
  export * from './notifications/';
17
17
  export * from './orders/';
18
+ export * from './organisationUnit/';
18
19
  export * from './partner';
19
20
  export * from './publicApiClient';
20
21
  export * from './publicGraphQLClient';
package/build/index.js CHANGED
@@ -44,6 +44,7 @@ __exportStar(require("./pagination"), exports);
44
44
  __exportStar(require("./licenses/"), exports);
45
45
  __exportStar(require("./notifications/"), exports);
46
46
  __exportStar(require("./orders/"), exports);
47
+ __exportStar(require("./organisationUnit/"), exports);
47
48
  __exportStar(require("./partner"), exports);
48
49
  __exportStar(require("./publicApiClient"), exports);
49
50
  __exportStar(require("./publicGraphQLClient"), exports);
@@ -57,12 +57,32 @@ export declare type LicensesEventInputFiltersType = {
57
57
  [LicensesEventInputFiltersField.NAMES]?: string;
58
58
  [LicensesEventInputFiltersField.VALUES]?: string | string[];
59
59
  };
60
+ export declare enum LicensesEventInputKeywordByFieldsField {
61
+ NAME = "name",
62
+ VALUES = "values",
63
+ OPERATOR = "operator"
64
+ }
65
+ export declare type LicensesEventInputKeywordByFieldsType = {
66
+ [LicensesEventInputKeywordByFieldsField.NAME]: string;
67
+ [LicensesEventInputKeywordByFieldsField.VALUES]: string[];
68
+ [LicensesEventInputKeywordByFieldsField.OPERATOR]?: string;
69
+ };
60
70
  export declare enum LicensesEvenInputSearchBodyField {
71
+ AGGREGATOR_FILTER = "aggregatorFilter",
72
+ EXCLUSION_FILTERS = "exclusionFilters",
61
73
  FILTERS = "filters",
74
+ HIGHLIGHT = "highlight",
75
+ KEYWORD_BY_FIELD = "keywordByFields",
76
+ KEYWORDS = "keywords",
62
77
  SORT = "sort"
63
78
  }
64
79
  export declare type LicensesEventInputSearchBodyType = {
80
+ [LicensesEvenInputSearchBodyField.AGGREGATOR_FILTER]?: string[];
81
+ [LicensesEvenInputSearchBodyField.EXCLUSION_FILTERS]?: LicensesEventInputFiltersType[];
65
82
  [LicensesEvenInputSearchBodyField.FILTERS]?: LicensesEventInputFiltersType[];
83
+ [LicensesEvenInputSearchBodyField.HIGHLIGHT]?: boolean;
84
+ [LicensesEvenInputSearchBodyField.KEYWORD_BY_FIELD]?: LicensesEventInputKeywordByFieldsType[];
85
+ [LicensesEvenInputSearchBodyField.KEYWORDS]?: string;
66
86
  [LicensesEvenInputSearchBodyField.SORT]?: LicensesEventInputSortType[];
67
87
  };
68
88
  export declare type LicensesEventQueryArgumentsType = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LicensesEventQueries = exports.LicensesEvenInputSearchBodyField = exports.LicensesEventInputFiltersField = exports.LicensesEventQueryArgumentField = exports.LicensesEventInputSortField = exports.LicensesEventPaginationField = exports.LicensesEventDataField = exports.LicensesEventGetEventsResponseField = exports.LicensesEventGetEventsQueryField = exports.LicensesEventInputPaginationField = exports.LicensesEventSortDirection = void 0;
3
+ exports.LicensesEventQueries = exports.LicensesEvenInputSearchBodyField = exports.LicensesEventInputKeywordByFieldsField = exports.LicensesEventInputFiltersField = exports.LicensesEventQueryArgumentField = exports.LicensesEventInputSortField = exports.LicensesEventPaginationField = exports.LicensesEventDataField = exports.LicensesEventGetEventsResponseField = exports.LicensesEventGetEventsQueryField = exports.LicensesEventInputPaginationField = exports.LicensesEventSortDirection = void 0;
4
4
  var LicensesEventSortDirection;
5
5
  (function (LicensesEventSortDirection) {
6
6
  LicensesEventSortDirection["asc"] = "asc";
@@ -49,9 +49,20 @@ var LicensesEventInputFiltersField;
49
49
  LicensesEventInputFiltersField["NAMES"] = "names";
50
50
  LicensesEventInputFiltersField["VALUES"] = "values";
51
51
  })(LicensesEventInputFiltersField = exports.LicensesEventInputFiltersField || (exports.LicensesEventInputFiltersField = {}));
52
+ var LicensesEventInputKeywordByFieldsField;
53
+ (function (LicensesEventInputKeywordByFieldsField) {
54
+ LicensesEventInputKeywordByFieldsField["NAME"] = "name";
55
+ LicensesEventInputKeywordByFieldsField["VALUES"] = "values";
56
+ LicensesEventInputKeywordByFieldsField["OPERATOR"] = "operator";
57
+ })(LicensesEventInputKeywordByFieldsField = exports.LicensesEventInputKeywordByFieldsField || (exports.LicensesEventInputKeywordByFieldsField = {}));
52
58
  var LicensesEvenInputSearchBodyField;
53
59
  (function (LicensesEvenInputSearchBodyField) {
60
+ LicensesEvenInputSearchBodyField["AGGREGATOR_FILTER"] = "aggregatorFilter";
61
+ LicensesEvenInputSearchBodyField["EXCLUSION_FILTERS"] = "exclusionFilters";
54
62
  LicensesEvenInputSearchBodyField["FILTERS"] = "filters";
63
+ LicensesEvenInputSearchBodyField["HIGHLIGHT"] = "highlight";
64
+ LicensesEvenInputSearchBodyField["KEYWORD_BY_FIELD"] = "keywordByFields";
65
+ LicensesEvenInputSearchBodyField["KEYWORDS"] = "keywords";
55
66
  LicensesEvenInputSearchBodyField["SORT"] = "sort";
56
67
  })(LicensesEvenInputSearchBodyField = exports.LicensesEvenInputSearchBodyField || (exports.LicensesEvenInputSearchBodyField = {}));
57
68
  var LicensesEventQueries;
@@ -0,0 +1,10 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare type AssetsData = {
3
+ mainLogoUrl?: string;
4
+ squareLogoUrl?: string;
5
+ };
6
+ export declare class AssetsFindResult extends AbstractEntity<AssetsData> {
7
+ #private;
8
+ constructor(data: AssetsData);
9
+ toJSON(): AssetsData;
10
+ }
@@ -0,0 +1,34 @@
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 _AssetsFindResult_mainLogoUrl, _AssetsFindResult_squareLogoUrl;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AssetsFindResult = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ class AssetsFindResult extends abstractEntity_1.AbstractEntity {
18
+ constructor(data) {
19
+ super(data);
20
+ _AssetsFindResult_mainLogoUrl.set(this, void 0);
21
+ _AssetsFindResult_squareLogoUrl.set(this, void 0);
22
+ __classPrivateFieldSet(this, _AssetsFindResult_mainLogoUrl, data.mainLogoUrl, "f");
23
+ __classPrivateFieldSet(this, _AssetsFindResult_squareLogoUrl, data.squareLogoUrl, "f");
24
+ }
25
+ toJSON() {
26
+ return {
27
+ mainLogoUrl: __classPrivateFieldGet(this, _AssetsFindResult_mainLogoUrl, "f"),
28
+ squareLogoUrl: __classPrivateFieldGet(this, _AssetsFindResult_squareLogoUrl, "f"),
29
+ };
30
+ }
31
+ }
32
+ exports.AssetsFindResult = AssetsFindResult;
33
+ _AssetsFindResult_mainLogoUrl = new WeakMap(), _AssetsFindResult_squareLogoUrl = new WeakMap();
34
+ //# sourceMappingURL=assetsFindResult.js.map
@@ -5,6 +5,8 @@ import { LicensePriceGetData, LicensePriceGetResult } from './licensePriceGetRes
5
5
  import { AbstractEntity } from '../../../abstractEntity';
6
6
  import { ActiveSeatsFindResult, ActiveSeatsFindResultData } from '../license/activeSeatsFindResult';
7
7
  import { SecurityFindResult, SecurityFindResultData } from '../license/securityFindResult';
8
+ import { PromotionData, PromotionFindResult } from './promotionFindResult';
9
+ import { AssetsData, AssetsFindResult } from './assetsFindResult';
8
10
  export declare enum LicenseGetFields {
9
11
  COLUMN_LICENSE_ID = "license_id",
10
12
  COLUMN_PARENT_LICENSE_ID = "parent_license_id",
@@ -37,7 +39,11 @@ export declare enum LicenseGetFields {
37
39
  COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM = "associatedSubscriptionProgram",
38
40
  COLUMN_PRICE = "price",
39
41
  COLUMN_ARROW_SUB_CATEGORIES = "arrowSubCategories",
40
- COLUMN_SECURITY = "security"
42
+ COLUMN_SECURITY = "security",
43
+ COLUMN_NEXT_RENEWAL_DATE = "nextRenewalDate",
44
+ COLUMN_PROMOTION = "promotion",
45
+ COLUMN_ASSETS = "assets",
46
+ COLUMN_VENDOR_BILLING_ID = "vendorBillingId"
41
47
  }
42
48
  export declare type LicenseGetData = {
43
49
  [LicenseGetFields.COLUMN_LICENSE_ID]: string;
@@ -72,6 +78,10 @@ export declare type LicenseGetData = {
72
78
  [LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM]: string;
73
79
  [LicenseGetFields.COLUMN_PRICE]: LicensePriceGetData;
74
80
  [LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]?: Array<string> | null;
81
+ [LicenseGetFields.COLUMN_NEXT_RENEWAL_DATE]?: string;
82
+ [LicenseGetFields.COLUMN_PROMOTION]?: PromotionData;
83
+ [LicenseGetFields.COLUMN_ASSETS]?: AssetsData;
84
+ [LicenseGetFields.COLUMN_VENDOR_BILLING_ID]?: string | null;
75
85
  };
76
86
  export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
77
87
  #private;
@@ -108,5 +118,9 @@ export declare class LicenseGetResult extends AbstractEntity<LicenseGetData> {
108
118
  get associatedSubscriptionProgram(): string;
109
119
  get price(): LicensePriceGetResult;
110
120
  get arrowSubCategories(): Array<string> | null | undefined;
121
+ get nextRenewalDate(): string | undefined;
122
+ get promotion(): PromotionFindResult | undefined;
123
+ get assets(): AssetsFindResult | undefined;
124
+ get vendorBillingId(): string | null | undefined;
111
125
  toJSON(): LicenseGetData;
112
126
  }
@@ -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;
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;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LicenseGetResult = exports.LicenseGetFields = void 0;
16
16
  const actionsGetResult_1 = require("./actionsGetResult");
@@ -20,6 +20,8 @@ const licensePriceGetResult_1 = require("./licensePriceGetResult");
20
20
  const abstractEntity_1 = require("../../../abstractEntity");
21
21
  const activeSeatsFindResult_1 = require("../license/activeSeatsFindResult");
22
22
  const securityFindResult_1 = require("../license/securityFindResult");
23
+ const promotionFindResult_1 = require("./promotionFindResult");
24
+ const assetsFindResult_1 = require("./assetsFindResult");
23
25
  var LicenseGetFields;
24
26
  (function (LicenseGetFields) {
25
27
  LicenseGetFields["COLUMN_LICENSE_ID"] = "license_id";
@@ -54,6 +56,10 @@ var LicenseGetFields;
54
56
  LicenseGetFields["COLUMN_PRICE"] = "price";
55
57
  LicenseGetFields["COLUMN_ARROW_SUB_CATEGORIES"] = "arrowSubCategories";
56
58
  LicenseGetFields["COLUMN_SECURITY"] = "security";
59
+ LicenseGetFields["COLUMN_NEXT_RENEWAL_DATE"] = "nextRenewalDate";
60
+ LicenseGetFields["COLUMN_PROMOTION"] = "promotion";
61
+ LicenseGetFields["COLUMN_ASSETS"] = "assets";
62
+ LicenseGetFields["COLUMN_VENDOR_BILLING_ID"] = "vendorBillingId";
57
63
  })(LicenseGetFields = exports.LicenseGetFields || (exports.LicenseGetFields = {}));
58
64
  class LicenseGetResult extends abstractEntity_1.AbstractEntity {
59
65
  constructor(licenseGetDataInput) {
@@ -91,6 +97,10 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
91
97
  _LicenseGetResult_associatedSubscriptionProgram.set(this, void 0);
92
98
  _LicenseGetResult_price.set(this, void 0);
93
99
  _LicenseGetResult_arrowSubCategories.set(this, void 0);
100
+ _LicenseGetResult_nextRenewalDate.set(this, void 0);
101
+ _LicenseGetResult_promotion.set(this, void 0);
102
+ _LicenseGetResult_assets.set(this, void 0);
103
+ _LicenseGetResult_vendorBillingId.set(this, void 0);
94
104
  __classPrivateFieldSet(this, _LicenseGetResult_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_LICENSE_ID], "f");
95
105
  __classPrivateFieldSet(this, _LicenseGetResult_parent_license_id, licenseGetDataInput[LicenseGetFields.COLUMN_PARENT_LICENSE_ID], "f");
96
106
  __classPrivateFieldSet(this, _LicenseGetResult_friendlyName, licenseGetDataInput[LicenseGetFields.COLUMN_FRIENDLY_NAME], "f");
@@ -127,6 +137,14 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
127
137
  __classPrivateFieldSet(this, _LicenseGetResult_associatedSubscriptionProgram, licenseGetDataInput[LicenseGetFields.COLUMN_ASSOCIATED_SUBSCRIPTION_PROGRAM], "f");
128
138
  __classPrivateFieldSet(this, _LicenseGetResult_price, new licensePriceGetResult_1.LicensePriceGetResult(licenseGetDataInput[LicenseGetFields.COLUMN_PRICE]), "f");
129
139
  __classPrivateFieldSet(this, _LicenseGetResult_arrowSubCategories, licenseGetDataInput[LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES], "f");
140
+ __classPrivateFieldSet(this, _LicenseGetResult_nextRenewalDate, licenseGetDataInput[LicenseGetFields.COLUMN_NEXT_RENEWAL_DATE], "f");
141
+ __classPrivateFieldSet(this, _LicenseGetResult_vendorBillingId, licenseGetDataInput[LicenseGetFields.COLUMN_VENDOR_BILLING_ID], "f");
142
+ __classPrivateFieldSet(this, _LicenseGetResult_promotion, licenseGetDataInput[LicenseGetFields.COLUMN_PROMOTION]
143
+ ? new promotionFindResult_1.PromotionFindResult(licenseGetDataInput[LicenseGetFields.COLUMN_PROMOTION])
144
+ : undefined, "f");
145
+ __classPrivateFieldSet(this, _LicenseGetResult_assets, licenseGetDataInput[LicenseGetFields.COLUMN_ASSETS]
146
+ ? new assetsFindResult_1.AssetsFindResult(licenseGetDataInput[LicenseGetFields.COLUMN_ASSETS])
147
+ : undefined, "f");
130
148
  }
131
149
  get id() {
132
150
  return __classPrivateFieldGet(this, _LicenseGetResult_license_id, "f");
@@ -224,8 +242,20 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
224
242
  get arrowSubCategories() {
225
243
  return __classPrivateFieldGet(this, _LicenseGetResult_arrowSubCategories, "f");
226
244
  }
245
+ get nextRenewalDate() {
246
+ return __classPrivateFieldGet(this, _LicenseGetResult_nextRenewalDate, "f");
247
+ }
248
+ get promotion() {
249
+ return __classPrivateFieldGet(this, _LicenseGetResult_promotion, "f");
250
+ }
251
+ get assets() {
252
+ return __classPrivateFieldGet(this, _LicenseGetResult_assets, "f");
253
+ }
254
+ get vendorBillingId() {
255
+ return __classPrivateFieldGet(this, _LicenseGetResult_vendorBillingId, "f");
256
+ }
227
257
  toJSON() {
228
- var _a, _b, _c;
258
+ var _a, _b, _c, _d, _e;
229
259
  return {
230
260
  [LicenseGetFields.COLUMN_LICENSE_ID]: this.id,
231
261
  [LicenseGetFields.COLUMN_PARENT_LICENSE_ID]: this.parentLicenseId,
@@ -260,9 +290,13 @@ class LicenseGetResult extends abstractEntity_1.AbstractEntity {
260
290
  .associatedSubscriptionProgram,
261
291
  [LicenseGetFields.COLUMN_PRICE]: this.price.toJSON(),
262
292
  [LicenseGetFields.COLUMN_ARROW_SUB_CATEGORIES]: this.arrowSubCategories,
293
+ [LicenseGetFields.COLUMN_NEXT_RENEWAL_DATE]: this.nextRenewalDate,
294
+ [LicenseGetFields.COLUMN_VENDOR_BILLING_ID]: this.vendorBillingId,
295
+ [LicenseGetFields.COLUMN_PROMOTION]: (_d = this.promotion) === null || _d === void 0 ? void 0 : _d.toJSON(),
296
+ [LicenseGetFields.COLUMN_ASSETS]: (_e = this.assets) === null || _e === void 0 ? void 0 : _e.toJSON(),
263
297
  };
264
298
  }
265
299
  }
266
300
  exports.LicenseGetResult = LicenseGetResult;
267
- _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();
301
+ _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();
268
302
  //# sourceMappingURL=licenseGetResult.js.map
@@ -0,0 +1,12 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare type PromotionData = {
3
+ promotionId?: string;
4
+ promotionType?: string;
5
+ pricingType?: string;
6
+ pricingValue?: string;
7
+ };
8
+ export declare class PromotionFindResult extends AbstractEntity<PromotionData> {
9
+ #private;
10
+ constructor(data: PromotionData);
11
+ toJSON(): PromotionData;
12
+ }
@@ -0,0 +1,40 @@
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 _PromotionFindResult_promotionId, _PromotionFindResult_promotionType, _PromotionFindResult_pricingType, _PromotionFindResult_pricingValue;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PromotionFindResult = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ class PromotionFindResult extends abstractEntity_1.AbstractEntity {
18
+ constructor(data) {
19
+ super(data);
20
+ _PromotionFindResult_promotionId.set(this, void 0);
21
+ _PromotionFindResult_promotionType.set(this, void 0);
22
+ _PromotionFindResult_pricingType.set(this, void 0);
23
+ _PromotionFindResult_pricingValue.set(this, void 0);
24
+ __classPrivateFieldSet(this, _PromotionFindResult_promotionId, data.promotionId, "f");
25
+ __classPrivateFieldSet(this, _PromotionFindResult_promotionType, data.promotionType, "f");
26
+ __classPrivateFieldSet(this, _PromotionFindResult_pricingType, data.pricingType, "f");
27
+ __classPrivateFieldSet(this, _PromotionFindResult_pricingValue, data.pricingValue, "f");
28
+ }
29
+ toJSON() {
30
+ return {
31
+ promotionId: __classPrivateFieldGet(this, _PromotionFindResult_promotionId, "f"),
32
+ promotionType: __classPrivateFieldGet(this, _PromotionFindResult_promotionType, "f"),
33
+ pricingType: __classPrivateFieldGet(this, _PromotionFindResult_pricingType, "f"),
34
+ pricingValue: __classPrivateFieldGet(this, _PromotionFindResult_pricingValue, "f"),
35
+ };
36
+ }
37
+ }
38
+ exports.PromotionFindResult = PromotionFindResult;
39
+ _PromotionFindResult_promotionId = new WeakMap(), _PromotionFindResult_promotionType = new WeakMap(), _PromotionFindResult_pricingType = new WeakMap(), _PromotionFindResult_pricingValue = new WeakMap();
40
+ //# sourceMappingURL=promotionFindResult.js.map
@@ -0,0 +1,25 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum OrganizationUnitFields {
3
+ COLUMN_ORGANIZATION_UNIT_REF = "organizationUnitRef",
4
+ COLUMN_COMPANY_REF = "companyRef",
5
+ COLUMN_NAME = "name",
6
+ COLUMN_COUNT_USERS = "countUsers",
7
+ COLUMN_COUNT_CUSTOMERS = "countCustomers"
8
+ }
9
+ export declare type OrganizationUnitType = {
10
+ [OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: string;
11
+ [OrganizationUnitFields.COLUMN_COMPANY_REF]: string;
12
+ [OrganizationUnitFields.COLUMN_NAME]: string;
13
+ [OrganizationUnitFields.COLUMN_COUNT_USERS]?: number;
14
+ [OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]?: number;
15
+ };
16
+ export declare class OrganizationUnit extends AbstractEntity<OrganizationUnitType> {
17
+ #private;
18
+ constructor(organizationUnitInput: OrganizationUnitType);
19
+ get organizationUnitRef(): string;
20
+ get companyRef(): string;
21
+ get name(): string;
22
+ get countUsers(): number | undefined;
23
+ get countCustomers(): number | undefined;
24
+ toJSON(): OrganizationUnitType;
25
+ }
@@ -0,0 +1,67 @@
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 _OrganizationUnit_organizationUnitRef, _OrganizationUnit_companyRef, _OrganizationUnit_name, _OrganizationUnit_countUsers, _OrganizationUnit_countCustomers;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrganizationUnit = exports.OrganizationUnitFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var OrganizationUnitFields;
18
+ (function (OrganizationUnitFields) {
19
+ OrganizationUnitFields["COLUMN_ORGANIZATION_UNIT_REF"] = "organizationUnitRef";
20
+ OrganizationUnitFields["COLUMN_COMPANY_REF"] = "companyRef";
21
+ OrganizationUnitFields["COLUMN_NAME"] = "name";
22
+ OrganizationUnitFields["COLUMN_COUNT_USERS"] = "countUsers";
23
+ OrganizationUnitFields["COLUMN_COUNT_CUSTOMERS"] = "countCustomers";
24
+ })(OrganizationUnitFields = exports.OrganizationUnitFields || (exports.OrganizationUnitFields = {}));
25
+ class OrganizationUnit extends abstractEntity_1.AbstractEntity {
26
+ constructor(organizationUnitInput) {
27
+ super(organizationUnitInput);
28
+ _OrganizationUnit_organizationUnitRef.set(this, void 0);
29
+ _OrganizationUnit_companyRef.set(this, void 0);
30
+ _OrganizationUnit_name.set(this, void 0);
31
+ _OrganizationUnit_countUsers.set(this, void 0);
32
+ _OrganizationUnit_countCustomers.set(this, void 0);
33
+ __classPrivateFieldSet(this, _OrganizationUnit_organizationUnitRef, organizationUnitInput[OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF], "f");
34
+ __classPrivateFieldSet(this, _OrganizationUnit_companyRef, organizationUnitInput[OrganizationUnitFields.COLUMN_COMPANY_REF], "f");
35
+ __classPrivateFieldSet(this, _OrganizationUnit_name, organizationUnitInput[OrganizationUnitFields.COLUMN_NAME], "f");
36
+ __classPrivateFieldSet(this, _OrganizationUnit_countUsers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_USERS], "f");
37
+ __classPrivateFieldSet(this, _OrganizationUnit_countCustomers, organizationUnitInput[OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS], "f");
38
+ }
39
+ get organizationUnitRef() {
40
+ return __classPrivateFieldGet(this, _OrganizationUnit_organizationUnitRef, "f");
41
+ }
42
+ get companyRef() {
43
+ return __classPrivateFieldGet(this, _OrganizationUnit_companyRef, "f");
44
+ }
45
+ get name() {
46
+ return __classPrivateFieldGet(this, _OrganizationUnit_name, "f");
47
+ }
48
+ get countUsers() {
49
+ return __classPrivateFieldGet(this, _OrganizationUnit_countUsers, "f");
50
+ }
51
+ get countCustomers() {
52
+ return __classPrivateFieldGet(this, _OrganizationUnit_countCustomers, "f");
53
+ }
54
+ toJSON() {
55
+ return {
56
+ [OrganizationUnitFields.COLUMN_ORGANIZATION_UNIT_REF]: this
57
+ .organizationUnitRef,
58
+ [OrganizationUnitFields.COLUMN_COMPANY_REF]: this.companyRef,
59
+ [OrganizationUnitFields.COLUMN_NAME]: this.name,
60
+ [OrganizationUnitFields.COLUMN_COUNT_USERS]: this.countUsers,
61
+ [OrganizationUnitFields.COLUMN_COUNT_CUSTOMERS]: this.countCustomers,
62
+ };
63
+ }
64
+ }
65
+ exports.OrganizationUnit = OrganizationUnit;
66
+ _OrganizationUnit_organizationUnitRef = new WeakMap(), _OrganizationUnit_companyRef = new WeakMap(), _OrganizationUnit_name = new WeakMap(), _OrganizationUnit_countUsers = new WeakMap(), _OrganizationUnit_countCustomers = new WeakMap();
67
+ //# sourceMappingURL=organizationUnit.js.map
@@ -0,0 +1,9 @@
1
+ import { OrganizationUnit, OrganizationUnitType } from './organizationUnit';
2
+ import { AbstractEntity } from '../../abstractEntity';
3
+ export declare type OrganizationUnitListType = Array<OrganizationUnitType>;
4
+ export declare class OrganizationUnitList extends AbstractEntity<OrganizationUnitListType> {
5
+ #private;
6
+ constructor(organizationUnitsDataInput: OrganizationUnitListType);
7
+ get organizationUnitList(): Array<OrganizationUnit>;
8
+ toJSON(): OrganizationUnitListType;
9
+ }
@@ -0,0 +1,33 @@
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 _OrganizationUnitList_organizationUnitList;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrganizationUnitList = void 0;
16
+ const organizationUnit_1 = require("./organizationUnit");
17
+ const abstractEntity_1 = require("../../abstractEntity");
18
+ class OrganizationUnitList extends abstractEntity_1.AbstractEntity {
19
+ constructor(organizationUnitsDataInput) {
20
+ super(organizationUnitsDataInput);
21
+ _OrganizationUnitList_organizationUnitList.set(this, void 0);
22
+ __classPrivateFieldSet(this, _OrganizationUnitList_organizationUnitList, organizationUnitsDataInput.map((organizationUnit) => new organizationUnit_1.OrganizationUnit(organizationUnit)), "f");
23
+ }
24
+ get organizationUnitList() {
25
+ return __classPrivateFieldGet(this, _OrganizationUnitList_organizationUnitList, "f");
26
+ }
27
+ toJSON() {
28
+ return this.organizationUnitList.map((organizationUnit) => organizationUnit.toJSON());
29
+ }
30
+ }
31
+ exports.OrganizationUnitList = OrganizationUnitList;
32
+ _OrganizationUnitList_organizationUnitList = new WeakMap();
33
+ //# sourceMappingURL=organizationUnitList.js.map
@@ -0,0 +1,3 @@
1
+ export * from './entities/organizationUnitList';
2
+ export * from './entities/organizationUnit';
3
+ export * from './organizationUnitClient';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities/organizationUnitList"), exports);
18
+ __exportStar(require("./entities/organizationUnit"), exports);
19
+ __exportStar(require("./organizationUnitClient"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,18 @@
1
+ import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
+ import { GetResult } from '../getResult';
3
+ import { OrganizationUnit } from './entities/organizationUnit';
4
+ import { OrganizationUnitList } from './entities/organizationUnitList';
5
+ export declare enum OrganizationUnitPayloadFields {
6
+ COLUMN_NAME = "name"
7
+ }
8
+ export declare type OrganizationUnitPayloadType = {
9
+ [OrganizationUnitPayloadFields.COLUMN_NAME]: string;
10
+ };
11
+ export declare class OrganizationUnitClient extends AbstractRestfulClient {
12
+ protected basePath: string;
13
+ getList(perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<OrganizationUnitList>>;
14
+ create(payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
15
+ getOne(organizationUnitRef: string, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
16
+ update(organizationUnitRef: string, payload: OrganizationUnitPayloadType, parameters?: Parameters): Promise<GetResult<OrganizationUnit>>;
17
+ deleteOne(organizationUnitRef: string, parameters?: Parameters): Promise<void>;
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationUnitClient = exports.OrganizationUnitPayloadFields = void 0;
4
+ const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
+ const getResult_1 = require("../getResult");
6
+ const organizationUnit_1 = require("./entities/organizationUnit");
7
+ const organizationUnitList_1 = require("./entities/organizationUnitList");
8
+ var OrganizationUnitPayloadFields;
9
+ (function (OrganizationUnitPayloadFields) {
10
+ OrganizationUnitPayloadFields["COLUMN_NAME"] = "name";
11
+ })(OrganizationUnitPayloadFields = exports.OrganizationUnitPayloadFields || (exports.OrganizationUnitPayloadFields = {}));
12
+ class OrganizationUnitClient extends abstractRestfulClient_1.AbstractRestfulClient {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.basePath = '/partners/organizationUnits';
16
+ }
17
+ async getList(perPage = 25, page = 1, parameters = {}) {
18
+ this.setPage(page);
19
+ this.setPerPage(perPage);
20
+ return new getResult_1.GetResult(organizationUnitList_1.OrganizationUnitList, await this.get(parameters));
21
+ }
22
+ async create(payload, parameters = {}) {
23
+ return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.post(payload, parameters));
24
+ }
25
+ async getOne(organizationUnitRef, parameters = {}) {
26
+ this.path = `/${organizationUnitRef}`;
27
+ return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.get(parameters));
28
+ }
29
+ async update(organizationUnitRef, payload, parameters = {}) {
30
+ this.path = `/${organizationUnitRef}`;
31
+ return new getResult_1.GetResult(organizationUnit_1.OrganizationUnit, await this.patch(payload, parameters));
32
+ }
33
+ async deleteOne(organizationUnitRef, parameters = {}) {
34
+ this.path = `/${organizationUnitRef}`;
35
+ return await this.delete(parameters);
36
+ }
37
+ }
38
+ exports.OrganizationUnitClient = OrganizationUnitClient;
39
+ //# sourceMappingURL=organizationUnitClient.js.map
@@ -15,6 +15,7 @@ import { UserClient } from './user';
15
15
  import { NotificationsClient } from './notifications';
16
16
  import { RegisterClient, StandardsClient } from './security';
17
17
  import { PartnerClient } from './partner';
18
+ import { OrganizationUnitClient } from './organisationUnit';
18
19
  /**
19
20
  * Public API Client class, should be the main entry point for your calls
20
21
  */
@@ -89,5 +90,6 @@ export declare class PublicApiClient extends AbstractRestfulClient {
89
90
  getCatalogClient(configuration?: ConfigurationsClient): CatalogClient;
90
91
  getUserClient(configuration?: ConfigurationsClient): UserClient;
91
92
  getNotificationsClient(configuration?: ConfigurationsClient): NotificationsClient;
93
+ getOrganizationUnitClient(configuration?: ConfigurationsClient): OrganizationUnitClient;
92
94
  }
93
95
  export default PublicApiClient;
@@ -18,6 +18,7 @@ const user_1 = require("./user");
18
18
  const notifications_1 = require("./notifications");
19
19
  const security_1 = require("./security");
20
20
  const partner_1 = require("./partner");
21
+ const organisationUnit_1 = require("./organisationUnit");
21
22
  /**
22
23
  * Public API Client class, should be the main entry point for your calls
23
24
  */
@@ -181,6 +182,11 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
181
182
  this.applyConfig(client);
182
183
  return client;
183
184
  }
185
+ getOrganizationUnitClient(configuration) {
186
+ const client = new organisationUnit_1.OrganizationUnitClient(configuration);
187
+ this.applyConfig(client);
188
+ return client;
189
+ }
184
190
  }
185
191
  exports.PublicApiClient = PublicApiClient;
186
192
  exports.default = PublicApiClient;
@@ -44,7 +44,7 @@ class SupportCenterClient extends abstractRestfulClient_1.AbstractRestfulClient
44
44
  }
45
45
  async updateIssue(issueId, payload, parameters = {}) {
46
46
  this.path = `/issues/${issueId}`;
47
- return new getResult_1.GetResult(issue_1.Issue, await this.patch(payload, parameters));
47
+ return await this.patch(payload, parameters);
48
48
  }
49
49
  async listIssueComments(issueId, parameters = {}) {
50
50
  this.path = `/issues/${issueId}/comments`;
@@ -1,5 +1,5 @@
1
1
  import { Merge, Schema } from 'type-fest';
2
- import { AccountAggType, AccountByDateAggType, AccountType, CheckAggType, CheckByDateType, CheckCountByDateAggType, ChecksByStandardType, CheckType, EndCustomerAggType, EndCustomerByDateAggType, ExtraDataType, FilterValuesType, MarketplaceAggType, MarketplaceByDateAggType, MarketplacePartnerAggByDateAggType, MarketplacePartnerAggType, MonthlyTrendAggType, PartnerAggType, PartnerByDateAggType, RegistrationType, ScoreByDateAggType, ScoreByMonthAggType, ScoreByMonthSeverityType, ScoresAggType, SeverityAggType, SeverityByDateAggType, StandardAggType, StandardByDateAggType, StandardType, StandardWithCheckType, UnregisteredEndCustomerAggType, UnregisteredOfferIaasSubscriptionType, UnregisteredOfferIaasType, UnregisteredOfferSaasType, WellArchitectedPaginationType, WellArchitectedPeriodType } from './wellArchitectedGraphQLTypes';
2
+ import { AccountAggType, AccountByDateAggType, AccountType, CheckAggType, CheckByDateType, CheckByGroupType, CheckCountByDateAggType, ChecksByStandardType, CheckType, EndCustomerAggType, EndCustomerByDateAggType, ExtraDataType, FilterValuesType, MarketplaceAggType, MarketplaceByDateAggType, MarketplacePartnerAggByDateAggType, MarketplacePartnerAggType, MonthlyTrendAggType, PartnerAggType, PartnerByDateAggType, RegistrationType, ScoreByDateAggType, ScoreByMonthAggType, ScoreByMonthSeverityType, ScoresAggType, SeverityAggType, SeverityByDateAggType, StandardAggType, StandardByDateAggType, StandardType, StandardWithCheckType, UnregisteredEndCustomerAggType, UnregisteredOfferIaasSubscriptionType, UnregisteredOfferIaasType, UnregisteredOfferSaasType, WellArchitectedPaginationType, WellArchitectedPeriodType } from './wellArchitectedGraphQLTypes';
3
3
  declare type MissingFieldsOfScoreByMonthAggSchema = {
4
4
  severities: Schema<ScoreByMonthSeverityType, boolean>;
5
5
  };
@@ -47,7 +47,11 @@ export declare type FilterSchema = {
47
47
  name?: boolean;
48
48
  values?: FilterValuesSchema;
49
49
  };
50
- declare type CheckCountByDateAggSchema = Schema<CheckCountByDateAggType, boolean>;
50
+ export declare type CheckByGroupSchema = Schema<CheckByGroupType, boolean>;
51
+ declare type MissingFieldsInCheckCountByDateAggSchema = {
52
+ byGroup?: CheckByGroupSchema;
53
+ };
54
+ declare type CheckCountByDateAggSchema = Merge<Schema<CheckCountByDateAggType, boolean>, MissingFieldsInCheckCountByDateAggSchema>;
51
55
  declare type MissingFieldsInCheckAggSchema = {
52
56
  data?: CheckCountByDateAggSchema;
53
57
  };
@@ -112,8 +112,13 @@ export declare type SeveritiesAggType = {
112
112
  /**
113
113
  * Check Aggregation Types
114
114
  */
115
+ export declare type CheckByGroupType = {
116
+ groupName: string;
117
+ score: string;
118
+ };
115
119
  export declare type CheckCountByDateAggType = {
116
120
  accounts?: number;
121
+ byGroup?: CheckByGroupType[];
117
122
  customers?: number;
118
123
  date?: string;
119
124
  partners?: number;
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.71.0-rc.bdj.1",
7
+ "version": "3.71.0-rc.fdi.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",