@arrowsphere/api-client 3.48.2-rc.bdj.1 → 3.48.2

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,12 @@
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.48.2] - 2023-08-09
7
+
8
+ ### Changed
9
+
10
+ - Fix Order type, field license is now optional
11
+
6
12
  ## [3.48.1] - 2023-08-01
7
13
 
8
14
  ### Changed
@@ -31,7 +31,7 @@ export declare type OrderProductsType = {
31
31
  [OrderProductsFields.COLUMN_IS_TRIAL]: boolean;
32
32
  [OrderProductsFields.COLUMN_PRICES]: ProductPricesType;
33
33
  [OrderProductsFields.COLUMN_SUBSCRIPTION]: ReferenceLinkType;
34
- [OrderProductsFields.COLUMN_LICENSE]: ReferenceLinkType;
34
+ [OrderProductsFields.COLUMN_LICENSE]?: ReferenceLinkType;
35
35
  [OrderProductsFields.COLUMN_NAME]: string;
36
36
  [OrderProductsFields.COLUMN_CLASSIFICATION]: string;
37
37
  [OrderProductsFields.COLUMN_PROGRAM]: ProductProgramType;
@@ -50,7 +50,7 @@ export declare class OrderProduct extends AbstractEntity<OrderProductsType> {
50
50
  get isTrial(): boolean;
51
51
  get prices(): ProductPrices;
52
52
  get subscription(): ReferenceLink;
53
- get license(): ReferenceLink;
53
+ get license(): ReferenceLink | undefined;
54
54
  get name(): string;
55
55
  get classification(): string;
56
56
  get program(): ProductProgram;
@@ -65,7 +65,9 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
65
65
  __classPrivateFieldSet(this, _OrderProduct_isTrial, getOrderProducts[OrderProductsFields.COLUMN_IS_TRIAL], "f");
66
66
  __classPrivateFieldSet(this, _OrderProduct_prices, new productPrices_1.ProductPrices(getOrderProducts[OrderProductsFields.COLUMN_PRICES]), "f");
67
67
  __classPrivateFieldSet(this, _OrderProduct_subscription, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_SUBSCRIPTION]), "f");
68
- __classPrivateFieldSet(this, _OrderProduct_license, new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_LICENSE]), "f");
68
+ __classPrivateFieldSet(this, _OrderProduct_license, getOrderProducts[OrderProductsFields.COLUMN_LICENSE]
69
+ ? new referenceLink_1.ReferenceLink(getOrderProducts[OrderProductsFields.COLUMN_LICENSE])
70
+ : undefined, "f");
69
71
  __classPrivateFieldSet(this, _OrderProduct_name, getOrderProducts[OrderProductsFields.COLUMN_NAME], "f");
70
72
  __classPrivateFieldSet(this, _OrderProduct_classification, getOrderProducts[OrderProductsFields.COLUMN_CLASSIFICATION], "f");
71
73
  __classPrivateFieldSet(this, _OrderProduct_program, new productProgram_1.ProductProgram(getOrderProducts[OrderProductsFields.COLUMN_PROGRAM]), "f");
@@ -117,6 +119,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
117
119
  return __classPrivateFieldGet(this, _OrderProduct_identifier, "f");
118
120
  }
119
121
  toJSON() {
122
+ var _a;
120
123
  return {
121
124
  [OrderProductsFields.COLUMN_SKU]: this.sku,
122
125
  [OrderProductsFields.COLUMN_QUANTITY]: this.quantity,
@@ -128,7 +131,7 @@ class OrderProduct extends abstractEntity_1.AbstractEntity {
128
131
  [OrderProductsFields.COLUMN_IS_TRIAL]: this.isTrial,
129
132
  [OrderProductsFields.COLUMN_PRICES]: this.prices.toJSON(),
130
133
  [OrderProductsFields.COLUMN_SUBSCRIPTION]: this.subscription.toJSON(),
131
- [OrderProductsFields.COLUMN_LICENSE]: this.license.toJSON(),
134
+ [OrderProductsFields.COLUMN_LICENSE]: (_a = this.license) === null || _a === void 0 ? void 0 : _a.toJSON(),
132
135
  [OrderProductsFields.COLUMN_NAME]: this.name,
133
136
  [OrderProductsFields.COLUMN_CLASSIFICATION]: this.classification,
134
137
  [OrderProductsFields.COLUMN_PROGRAM]: this.program.toJSON(),
@@ -13,7 +13,7 @@ class SecurityScoreGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQL
13
13
  /**
14
14
  * The base path of the API
15
15
  */
16
- this.basePath = '/wellArchitected';
16
+ this.basePath = '/security';
17
17
  /**
18
18
  * The Path of graphql catalog API
19
19
  */
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.48.2-rc.bdj.1",
7
+ "version": "3.48.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",