@arrowsphere/api-client 3.77.1-bdj.3 → 3.77.1-bdj.5

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.
@@ -5,6 +5,8 @@ exports.LicenseRequestClient = void 0;
5
5
  * Class LicenseRequestClient
6
6
  */
7
7
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
8
+ const getResult_1 = require("../getResult");
9
+ const licenseRequest_1 = require("./entities/request/licenseRequest");
8
10
  class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient {
9
11
  constructor() {
10
12
  super(...arguments);
@@ -12,7 +14,15 @@ class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient
12
14
  }
13
15
  async getLastRequests(licenseReference) {
14
16
  this.path = `/${licenseReference}/request`;
15
- return (await this.get());
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];
16
26
  }
17
27
  }
18
28
  exports.LicenseRequestClient = LicenseRequestClient;
@@ -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
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.77.1-bdj.3",
7
+ "version": "3.77.1-bdj.5",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",