@arrowsphere/api-client 3.60.0 → 3.61.0-rc.bdj.3

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.
@@ -0,0 +1,31 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum LicenseRequestFields {
3
+ ACTION = "action",
4
+ CREATED_AT = "createdAt",
5
+ LICENSE_REFERENCE = "licenseReference",
6
+ MESSAGE = "message",
7
+ STATUS = "status",
8
+ UPDATED_AT = "updatedAt",
9
+ USER_NAME = "userName"
10
+ }
11
+ export declare type LicenseRequestType = {
12
+ [LicenseRequestFields.ACTION]?: string;
13
+ [LicenseRequestFields.CREATED_AT]?: string;
14
+ [LicenseRequestFields.LICENSE_REFERENCE]?: string;
15
+ [LicenseRequestFields.MESSAGE]?: string;
16
+ [LicenseRequestFields.STATUS]?: string;
17
+ [LicenseRequestFields.UPDATED_AT]?: string;
18
+ [LicenseRequestFields.USER_NAME]?: string;
19
+ };
20
+ export declare class LicenseRequest extends AbstractEntity<LicenseRequestType> {
21
+ #private;
22
+ constructor(input: LicenseRequestType);
23
+ get userName(): string | undefined;
24
+ get licenseReference(): string | undefined;
25
+ get createdAt(): string | undefined;
26
+ get updatedAt(): string | undefined;
27
+ get status(): string | undefined;
28
+ get action(): string | undefined;
29
+ get message(): string | undefined;
30
+ toJSON(): LicenseRequestType;
31
+ }
@@ -0,0 +1,80 @@
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 _LicenseRequest_action, _LicenseRequest_createdAt, _LicenseRequest_licenseReference, _LicenseRequest_message, _LicenseRequest_status, _LicenseRequest_updatedAt, _LicenseRequest_userName;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.LicenseRequest = exports.LicenseRequestFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var LicenseRequestFields;
18
+ (function (LicenseRequestFields) {
19
+ LicenseRequestFields["ACTION"] = "action";
20
+ LicenseRequestFields["CREATED_AT"] = "createdAt";
21
+ LicenseRequestFields["LICENSE_REFERENCE"] = "licenseReference";
22
+ LicenseRequestFields["MESSAGE"] = "message";
23
+ LicenseRequestFields["STATUS"] = "status";
24
+ LicenseRequestFields["UPDATED_AT"] = "updatedAt";
25
+ LicenseRequestFields["USER_NAME"] = "userName";
26
+ })(LicenseRequestFields = exports.LicenseRequestFields || (exports.LicenseRequestFields = {}));
27
+ class LicenseRequest extends abstractEntity_1.AbstractEntity {
28
+ constructor(input) {
29
+ super(input);
30
+ _LicenseRequest_action.set(this, void 0);
31
+ _LicenseRequest_createdAt.set(this, void 0);
32
+ _LicenseRequest_licenseReference.set(this, void 0);
33
+ _LicenseRequest_message.set(this, void 0);
34
+ _LicenseRequest_status.set(this, void 0);
35
+ _LicenseRequest_updatedAt.set(this, void 0);
36
+ _LicenseRequest_userName.set(this, void 0);
37
+ __classPrivateFieldSet(this, _LicenseRequest_action, input[LicenseRequestFields.ACTION], "f");
38
+ __classPrivateFieldSet(this, _LicenseRequest_createdAt, input[LicenseRequestFields.CREATED_AT], "f");
39
+ __classPrivateFieldSet(this, _LicenseRequest_licenseReference, input[LicenseRequestFields.LICENSE_REFERENCE], "f");
40
+ __classPrivateFieldSet(this, _LicenseRequest_message, input[LicenseRequestFields.MESSAGE], "f");
41
+ __classPrivateFieldSet(this, _LicenseRequest_status, input[LicenseRequestFields.STATUS], "f");
42
+ __classPrivateFieldSet(this, _LicenseRequest_updatedAt, input[LicenseRequestFields.UPDATED_AT], "f");
43
+ __classPrivateFieldSet(this, _LicenseRequest_userName, input[LicenseRequestFields.USER_NAME], "f");
44
+ }
45
+ get userName() {
46
+ return __classPrivateFieldGet(this, _LicenseRequest_userName, "f");
47
+ }
48
+ get licenseReference() {
49
+ return __classPrivateFieldGet(this, _LicenseRequest_licenseReference, "f");
50
+ }
51
+ get createdAt() {
52
+ return __classPrivateFieldGet(this, _LicenseRequest_createdAt, "f");
53
+ }
54
+ get updatedAt() {
55
+ return __classPrivateFieldGet(this, _LicenseRequest_updatedAt, "f");
56
+ }
57
+ get status() {
58
+ return __classPrivateFieldGet(this, _LicenseRequest_status, "f");
59
+ }
60
+ get action() {
61
+ return __classPrivateFieldGet(this, _LicenseRequest_action, "f");
62
+ }
63
+ get message() {
64
+ return __classPrivateFieldGet(this, _LicenseRequest_message, "f");
65
+ }
66
+ toJSON() {
67
+ return {
68
+ [LicenseRequestFields.ACTION]: this.action,
69
+ [LicenseRequestFields.CREATED_AT]: this.createdAt,
70
+ [LicenseRequestFields.LICENSE_REFERENCE]: this.licenseReference,
71
+ [LicenseRequestFields.MESSAGE]: this.message,
72
+ [LicenseRequestFields.STATUS]: this.status,
73
+ [LicenseRequestFields.UPDATED_AT]: this.updatedAt,
74
+ [LicenseRequestFields.USER_NAME]: this.userName,
75
+ };
76
+ }
77
+ }
78
+ exports.LicenseRequest = LicenseRequest;
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
+ //# sourceMappingURL=licenseRequest.js.map
@@ -16,6 +16,7 @@ export * from './entities/history/licenceHistoryResult';
16
16
  export * from './entities/license/activeSeatsFindResult';
17
17
  export * from './entities/license/configFindResult';
18
18
  export * from './entities/license/licenseFindResult';
19
+ export * from './entities/request/licenseRequest';
19
20
  export * from './entities/license/priceFindResult';
20
21
  export * from './entities/license/warningFindResult';
21
22
  export * from './entities/offer/actionFlagsFindResult';
@@ -27,5 +28,6 @@ export * from './entities/offer/priceband/priceBandActionFlagsFindResult';
27
28
  export * from './entities/offer/priceband/priceBandPriceFindResult';
28
29
  export * from './entities/offer/priceband/saleConstraintsFindResult';
29
30
  export * from './entities/offer/priceband/identifiers/arrowsphereFindResult';
31
+ export * from './licenseRequestClient';
30
32
  export * from './licensesClient';
31
33
  export * from './licensesEventClient';
@@ -32,6 +32,7 @@ __exportStar(require("./entities/history/licenceHistoryResult"), exports);
32
32
  __exportStar(require("./entities/license/activeSeatsFindResult"), exports);
33
33
  __exportStar(require("./entities/license/configFindResult"), exports);
34
34
  __exportStar(require("./entities/license/licenseFindResult"), exports);
35
+ __exportStar(require("./entities/request/licenseRequest"), exports);
35
36
  __exportStar(require("./entities/license/priceFindResult"), exports);
36
37
  __exportStar(require("./entities/license/warningFindResult"), exports);
37
38
  __exportStar(require("./entities/offer/actionFlagsFindResult"), exports);
@@ -43,6 +44,7 @@ __exportStar(require("./entities/offer/priceband/priceBandActionFlagsFindResult"
43
44
  __exportStar(require("./entities/offer/priceband/priceBandPriceFindResult"), exports);
44
45
  __exportStar(require("./entities/offer/priceband/saleConstraintsFindResult"), exports);
45
46
  __exportStar(require("./entities/offer/priceband/identifiers/arrowsphereFindResult"), exports);
47
+ __exportStar(require("./licenseRequestClient"), exports);
46
48
  __exportStar(require("./licensesClient"), exports);
47
49
  __exportStar(require("./licensesEventClient"), exports);
48
50
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Class LicenseRequestClient
3
+ */
4
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
5
+ import { GetResult } from '../getResult';
6
+ import { LicenseRequest } from './entities/request/licenseRequest';
7
+ export declare class LicenseRequestClient extends AbstractRestfulClient {
8
+ protected basePath: string;
9
+ getLastRequests(licenseReference: string): Promise<GetResult<LicenseRequest>>;
10
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LicenseRequestClient = void 0;
4
+ /**
5
+ * Class LicenseRequestClient
6
+ */
7
+ const abstractRestfulClient_1 = require("../abstractRestfulClient");
8
+ const getResult_1 = require("../getResult");
9
+ const licenseRequest_1 = require("./entities/request/licenseRequest");
10
+ class LicenseRequestClient extends abstractRestfulClient_1.AbstractRestfulClient {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.basePath = '/licenses';
14
+ }
15
+ async getLastRequests(licenseReference) {
16
+ this.path = `/${licenseReference}/request`;
17
+ return new getResult_1.GetResult(licenseRequest_1.LicenseRequest, await this.get());
18
+ }
19
+ }
20
+ exports.LicenseRequestClient = LicenseRequestClient;
21
+ //# sourceMappingURL=licenseRequestClient.js.map
@@ -1,6 +1,6 @@
1
1
  import { AbstractRestfulClient, ConfigurationsClient } from './abstractRestfulClient';
2
2
  import { CheckDomainClient, WhoAmIClient } from './general';
3
- import { LicensesClient } from './licenses';
3
+ import { LicenseRequestClient, LicensesClient } from './licenses';
4
4
  import { SubscriptionsClient } from './subscriptions';
5
5
  import { CustomersClient } from './customers';
6
6
  import { OrdersClient } from './orders';
@@ -35,6 +35,11 @@ export declare class PublicApiClient extends AbstractRestfulClient {
35
35
  * @returns {@link LicensesClient}
36
36
  */
37
37
  getLicensesClient(configuration?: ConfigurationsClient): LicensesClient;
38
+ /**
39
+ * Creates a new {@link LicenseRequestClient} instance and returns it
40
+ * @returns {@link LicenseRequestClient}
41
+ */
42
+ getLicenseRequestClient(configuration?: ConfigurationsClient): LicenseRequestClient;
38
43
  /**
39
44
  * Creates a new {@link CheckDomainClient} instance and returns it
40
45
  * @returns {@link CheckDomainClient}
@@ -59,6 +59,15 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
59
59
  this.applyConfig(client);
60
60
  return client;
61
61
  }
62
+ /**
63
+ * Creates a new {@link LicenseRequestClient} instance and returns it
64
+ * @returns {@link LicenseRequestClient}
65
+ */
66
+ getLicenseRequestClient(configuration) {
67
+ const client = new licenses_1.LicenseRequestClient(configuration);
68
+ this.applyConfig(client);
69
+ return client;
70
+ }
62
71
  /**
63
72
  * Creates a new {@link CheckDomainClient} instance and returns it
64
73
  * @returns {@link CheckDomainClient}
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.60.0",
7
+ "version": "3.61.0-rc.bdj.3",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",