@arrowsphere/api-client 3.383.0 → 3.384.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,19 @@
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.384.0] - 2026.07.20
7
+ ### Added
8
+ - [support-center] Add `key` to `IssueType`
9
+ - [order] Add `customFields` to `UpdateOrderInputType`
10
+
11
+ ## [3.383.1] - 2026.07.20
12
+ ### Security
13
+ - Fixed security vulnerabilities in development dependencies
14
+ - Replaced coveralls npm package with Coveralls GitHub Action to eliminate vulnerabilities
15
+
16
+ ### Changed
17
+ - Updated test:coverage:report script to generate lcov output format
18
+
6
19
  ## [3.383.0] - 2026.07.17
7
20
  ### Added
8
21
  - [support-center] Add `createdBy`, `dateCreationStart` and `dateCreationEnd` to `ListIssueParametersFields` enum
@@ -142,11 +142,20 @@ export declare type CreateOrderProductType = {
142
142
  };
143
143
  export declare enum UpdateOrderInputFields {
144
144
  COLUMN_PO_NUMBER = "PO_number",
145
- COLUMN_END_CUSTOMER_PO_NUMBER = "end_customer_PO_number"
145
+ COLUMN_END_CUSTOMER_PO_NUMBER = "end_customer_PO_number",
146
+ COLUMN_CUSTOM_FIELDS = "customFields"
147
+ }
148
+ export declare enum UpdateOrderCustomFields {
149
+ COLUMN_LABEL = "label",
150
+ COLUMN_VALUE = "value"
146
151
  }
147
152
  export declare type UpdateOrderInputType = {
148
153
  [UpdateOrderInputFields.COLUMN_PO_NUMBER]?: string;
149
154
  [UpdateOrderInputFields.COLUMN_END_CUSTOMER_PO_NUMBER]?: string;
155
+ [UpdateOrderInputFields.COLUMN_CUSTOM_FIELDS]?: Array<{
156
+ [UpdateOrderCustomFields.COLUMN_LABEL]: string;
157
+ [UpdateOrderCustomFields.COLUMN_VALUE]: string;
158
+ }>;
150
159
  };
151
160
  export declare enum UpdateContributorItemOrderInputFields {
152
161
  COLUMN_TYPE = "type",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrdersClient = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = void 0;
3
+ exports.OrdersClient = exports.UploadAttachmentOrderInputFields = exports.UpdateAdditionalInformationOrderInputFields = exports.UpdateAdditionalInformationItemOrderInputFields = exports.UpdateContributorOrderInputFields = exports.UpdateContributorItemOrderInputFields = exports.UpdateOrderCustomFields = exports.UpdateOrderInputFields = exports.StaffTypeEnum = exports.scenarioType = exports.CreateOrderInputFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataListOrders_1 = require("./entities/dataListOrders");
@@ -72,7 +72,13 @@ var UpdateOrderInputFields;
72
72
  (function (UpdateOrderInputFields) {
73
73
  UpdateOrderInputFields["COLUMN_PO_NUMBER"] = "PO_number";
74
74
  UpdateOrderInputFields["COLUMN_END_CUSTOMER_PO_NUMBER"] = "end_customer_PO_number";
75
+ UpdateOrderInputFields["COLUMN_CUSTOM_FIELDS"] = "customFields";
75
76
  })(UpdateOrderInputFields = exports.UpdateOrderInputFields || (exports.UpdateOrderInputFields = {}));
77
+ var UpdateOrderCustomFields;
78
+ (function (UpdateOrderCustomFields) {
79
+ UpdateOrderCustomFields["COLUMN_LABEL"] = "label";
80
+ UpdateOrderCustomFields["COLUMN_VALUE"] = "value";
81
+ })(UpdateOrderCustomFields = exports.UpdateOrderCustomFields || (exports.UpdateOrderCustomFields = {}));
76
82
  var UpdateContributorItemOrderInputFields;
77
83
  (function (UpdateContributorItemOrderInputFields) {
78
84
  UpdateContributorItemOrderInputFields["COLUMN_TYPE"] = "type";
@@ -6,6 +6,7 @@ export declare enum IssueFields {
6
6
  COLUMN_DESCRIPTION = "description",
7
7
  COLUMN_END_CUSTOMER_REF = "endCustomerRef",
8
8
  COLUMN_ID = "id",
9
+ COLUMN_KEY = "key",
9
10
  COLUMN_LANGUAGE = "language",
10
11
  COLUMN_OFFER = "offer",
11
12
  COLUMN_PRIORITY = "priority",
@@ -68,6 +69,7 @@ export declare type IssueAdditionalDataType = {
68
69
  };
69
70
  export declare type IssueType = {
70
71
  [IssueFields.COLUMN_ID]?: string;
72
+ [IssueFields.COLUMN_KEY]?: string;
71
73
  [IssueFields.COLUMN_TITLE]: string;
72
74
  [IssueFields.COLUMN_DESCRIPTION]: string;
73
75
  [IssueFields.COLUMN_TOPIC_ID]: string;
@@ -120,6 +122,7 @@ export declare class Issue extends AbstractEntity<IssueType> {
120
122
  #private;
121
123
  constructor(input: IssueType);
122
124
  get id(): string | undefined;
125
+ get key(): string | undefined;
123
126
  get title(): string;
124
127
  get description(): string;
125
128
  get topicId(): 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 _IssueOffer_sku, _IssueOffer_name, _IssueOffer_vendor, _IssueCreatedBy_email, _IssueCreatedBy_firstName, _IssueCreatedBy_lastName, _IssueCreatedBy_phone, _IssueSupportPlan_sku, _IssueSupportPlan_label, _IssueSupportPlan_sourcePortal, _IssueAdditionalData_name, _IssueAdditionalData_value, _Issue_id, _Issue_title, _Issue_description, _Issue_topic, _Issue_topicId, _Issue_endCustomerRef, _Issue_language, _Issue_offer, _Issue_priority, _Issue_status, _Issue_createdBy, _Issue_supportPlan, _Issue_program, _Issue_additionalData, _Issue_created, _Issue_updated, _Issues_list;
13
+ var _IssueOffer_sku, _IssueOffer_name, _IssueOffer_vendor, _IssueCreatedBy_email, _IssueCreatedBy_firstName, _IssueCreatedBy_lastName, _IssueCreatedBy_phone, _IssueSupportPlan_sku, _IssueSupportPlan_label, _IssueSupportPlan_sourcePortal, _IssueAdditionalData_name, _IssueAdditionalData_value, _Issue_id, _Issue_key, _Issue_title, _Issue_description, _Issue_topic, _Issue_topicId, _Issue_endCustomerRef, _Issue_language, _Issue_offer, _Issue_priority, _Issue_status, _Issue_createdBy, _Issue_supportPlan, _Issue_program, _Issue_additionalData, _Issue_created, _Issue_updated, _Issues_list;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Issues = exports.Issue = exports.IssueAdditionalData = exports.IssueSupportPlan = exports.IssueCreatedBy = exports.IssueOffer = exports.IssueStatusesType = exports.IssueAdditionalDataFields = exports.IssueSupportPlanFields = exports.IssueCreatedByFields = exports.IssueOfferFields = exports.IssueFields = void 0;
16
16
  const abstractEntity_1 = require("../../../abstractEntity");
@@ -22,6 +22,7 @@ var IssueFields;
22
22
  IssueFields["COLUMN_DESCRIPTION"] = "description";
23
23
  IssueFields["COLUMN_END_CUSTOMER_REF"] = "endCustomerRef";
24
24
  IssueFields["COLUMN_ID"] = "id";
25
+ IssueFields["COLUMN_KEY"] = "key";
25
26
  IssueFields["COLUMN_LANGUAGE"] = "language";
26
27
  IssueFields["COLUMN_OFFER"] = "offer";
27
28
  IssueFields["COLUMN_PRIORITY"] = "priority";
@@ -187,6 +188,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
187
188
  constructor(input) {
188
189
  super(input);
189
190
  _Issue_id.set(this, void 0);
191
+ _Issue_key.set(this, void 0);
190
192
  _Issue_title.set(this, void 0);
191
193
  _Issue_description.set(this, void 0);
192
194
  _Issue_topic.set(this, void 0);
@@ -203,6 +205,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
203
205
  _Issue_created.set(this, void 0);
204
206
  _Issue_updated.set(this, void 0);
205
207
  __classPrivateFieldSet(this, _Issue_id, input[IssueFields.COLUMN_ID], "f");
208
+ __classPrivateFieldSet(this, _Issue_key, input[IssueFields.COLUMN_KEY], "f");
206
209
  __classPrivateFieldSet(this, _Issue_title, input[IssueFields.COLUMN_TITLE], "f");
207
210
  __classPrivateFieldSet(this, _Issue_description, input[IssueFields.COLUMN_DESCRIPTION], "f");
208
211
  __classPrivateFieldSet(this, _Issue_topic, input[IssueFields.COLUMN_TOPIC], "f");
@@ -234,6 +237,9 @@ class Issue extends abstractEntity_1.AbstractEntity {
234
237
  get id() {
235
238
  return __classPrivateFieldGet(this, _Issue_id, "f");
236
239
  }
240
+ get key() {
241
+ return __classPrivateFieldGet(this, _Issue_key, "f");
242
+ }
237
243
  get title() {
238
244
  return __classPrivateFieldGet(this, _Issue_title, "f");
239
245
  }
@@ -283,6 +289,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
283
289
  var _a, _b, _c, _d, _e, _f;
284
290
  return {
285
291
  [IssueFields.COLUMN_ID]: this.id,
292
+ [IssueFields.COLUMN_KEY]: this.key,
286
293
  [IssueFields.COLUMN_TITLE]: this.title,
287
294
  [IssueFields.COLUMN_DESCRIPTION]: this.description,
288
295
  [IssueFields.COLUMN_TOPIC_ID]: this.topicId,
@@ -302,7 +309,7 @@ class Issue extends abstractEntity_1.AbstractEntity {
302
309
  }
303
310
  }
304
311
  exports.Issue = Issue;
305
- _Issue_id = new WeakMap(), _Issue_title = new WeakMap(), _Issue_description = new WeakMap(), _Issue_topic = new WeakMap(), _Issue_topicId = new WeakMap(), _Issue_endCustomerRef = new WeakMap(), _Issue_language = new WeakMap(), _Issue_offer = new WeakMap(), _Issue_priority = new WeakMap(), _Issue_status = new WeakMap(), _Issue_createdBy = new WeakMap(), _Issue_supportPlan = new WeakMap(), _Issue_program = new WeakMap(), _Issue_additionalData = new WeakMap(), _Issue_created = new WeakMap(), _Issue_updated = new WeakMap();
312
+ _Issue_id = new WeakMap(), _Issue_key = new WeakMap(), _Issue_title = new WeakMap(), _Issue_description = new WeakMap(), _Issue_topic = new WeakMap(), _Issue_topicId = new WeakMap(), _Issue_endCustomerRef = new WeakMap(), _Issue_language = new WeakMap(), _Issue_offer = new WeakMap(), _Issue_priority = new WeakMap(), _Issue_status = new WeakMap(), _Issue_createdBy = new WeakMap(), _Issue_supportPlan = new WeakMap(), _Issue_program = new WeakMap(), _Issue_additionalData = new WeakMap(), _Issue_created = new WeakMap(), _Issue_updated = new WeakMap();
306
313
  class Issues extends abstractEntity_1.AbstractEntity {
307
314
  constructor(input) {
308
315
  super(input);
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.383.0",
7
+ "version": "3.384.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",
@@ -19,7 +19,7 @@
19
19
  "test:one": "mocha -r ts-node/register",
20
20
  "test:watch": "mocha --watch -r ts-node/register \"tests/**/*.ts\"",
21
21
  "test:coverage": "nyc --check-coverage npm run test",
22
- "test:coverage:report": "nyc report --reporter=text-lcov | coveralls"
22
+ "test:coverage:report": "nyc report --reporter=lcov --reporter=text"
23
23
  },
24
24
  "keywords": [
25
25
  "arrow",
@@ -34,32 +34,35 @@
34
34
  "@types/validatorjs": "3.15.0",
35
35
  "@types/chai": "4.2.15",
36
36
  "@types/chai-as-promised": "7.1.3",
37
- "@types/mocha": "8.2.0",
37
+ "@types/mocha": "^10.0.10",
38
38
  "@types/node": "18.19.9",
39
39
  "@types/sinon": "9.0.10",
40
40
  "@types/sinon-chai": "3.2.5",
41
- "@typescript-eslint/eslint-plugin": "5.58.0",
42
- "@typescript-eslint/parser": "5.58.0",
41
+ "@typescript-eslint/eslint-plugin": "8.62.0",
42
+ "@typescript-eslint/parser": "8.62.0",
43
43
  "chai": "4.3.0",
44
44
  "chai-as-promised": "7.1.1",
45
- "coveralls": "3.1.1",
46
- "eslint": "8.38.0",
45
+ "eslint": "8.57.1",
47
46
  "eslint-config-prettier": "7.2.0",
48
47
  "eslint-plugin-prettier": "3.3.1",
49
- "eslint-plugin-tsdoc": "0.2.17",
50
- "husky": "4.3.8",
51
- "joi": "17.9.1",
52
- "lint-staged": "13.2.1",
53
- "mocha": "10.2.0",
54
- "mocha-suppress-logs": "0.3.1",
48
+ "eslint-plugin-tsdoc": "0.5.2",
49
+ "husky": "^9.1.7",
50
+ "joi": "17.13.4",
51
+ "lint-staged": "16.4.0",
52
+ "mocha": "11.7.6",
53
+ "mocha-suppress-logs": "0.6.0",
55
54
  "nock": "14.0.10",
56
- "nyc": "15.1.0",
55
+ "nyc": "18.0.0",
57
56
  "prettier": "2.2.1",
58
- "sinon": "9.2.4",
57
+ "sinon": "22.0.0",
59
58
  "sinon-chai": "3.5.0",
60
- "ts-node": "10.9.1",
59
+ "ts-node": "10.9.2",
61
60
  "typescript": "4.7.4"
62
61
  },
62
+ "resolutions": {
63
+ "mocha/diff": "^8.0.3",
64
+ "mocha/serialize-javascript": "^7.0.5"
65
+ },
63
66
  "husky": {
64
67
  "hooks": {
65
68
  "pre-commit": "lint-staged"
@@ -79,7 +82,7 @@
79
82
  "test": "tests"
80
83
  },
81
84
  "dependencies": {
82
- "axios": "1.13.6",
85
+ "axios": "1.18.1",
83
86
  "graphql": "16.8.1",
84
87
  "graphql-request": "7.3.5",
85
88
  "json-to-graphql-query": "2.3.0",