@arrowsphere/api-client 3.98.0 → 3.99.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,11 @@
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.99.0] - 2024.02.20
7
+
8
+ ### Added
9
+
10
+ - [billing] add generate billing export async
6
11
 
7
12
  ## [3.98.0] - 2024-02-14
8
13
  ### Added
@@ -0,0 +1,52 @@
1
+ import { AbstractRestfulClient } from '../abstractRestfulClient';
2
+ import { GetResult } from '../getResult';
3
+ import { BillingExportAsyncRequest } from './entities/export/exportAsyncRequest';
4
+ export declare type BillingGenerateExportAsyncRequestPayload = {
5
+ outputFormat?: {
6
+ file: 'csv' | 'xlsx';
7
+ date: string;
8
+ };
9
+ exportTypeReference: string;
10
+ filters: {
11
+ issueDate?: {
12
+ from: string;
13
+ to: string;
14
+ };
15
+ validationDate?: {
16
+ from: string;
17
+ to: string;
18
+ };
19
+ reportPeriod?: {
20
+ from: string;
21
+ to: string;
22
+ };
23
+ subscriptionDate?: {
24
+ from: string;
25
+ to: string;
26
+ };
27
+ createdAt?: {
28
+ from: string;
29
+ to: string;
30
+ };
31
+ classifications?: string[];
32
+ vendors?: string[];
33
+ programs?: string[];
34
+ marketplaces?: string[];
35
+ sequences?: string[];
36
+ references?: string[];
37
+ resellerXspRefs?: string[];
38
+ resellerCompanyTags?: string[];
39
+ customerXspRefs?: string[];
40
+ vendorSubscriptionIds?: string[];
41
+ friendlyNames?: string[];
42
+ arrowSku?: string;
43
+ };
44
+ callbackUrl: string;
45
+ };
46
+ export declare class BillingClient extends AbstractRestfulClient {
47
+ /**
48
+ * The base path of the API
49
+ */
50
+ protected basePath: string;
51
+ generateExportAsync(payload: BillingGenerateExportAsyncRequestPayload): Promise<GetResult<BillingExportAsyncRequest>>;
52
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingClient = void 0;
4
+ const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
+ const getResult_1 = require("../getResult");
6
+ const exportAsyncRequest_1 = require("./entities/export/exportAsyncRequest");
7
+ class BillingClient extends abstractRestfulClient_1.AbstractRestfulClient {
8
+ constructor() {
9
+ super(...arguments);
10
+ /**
11
+ * The base path of the API
12
+ */
13
+ this.basePath = '/billing/erp';
14
+ }
15
+ async generateExportAsync(payload) {
16
+ this.path = `/exports/async`;
17
+ return new getResult_1.GetResult(exportAsyncRequest_1.BillingExportAsyncRequest, await this.post(payload));
18
+ }
19
+ }
20
+ exports.BillingClient = BillingClient;
21
+ //# sourceMappingURL=billingClient.js.map
@@ -0,0 +1,13 @@
1
+ import { AbstractEntity } from '../../../abstractEntity';
2
+ export declare enum BillingExportAsyncRequestFields {
3
+ COLUMN_REQUEST_REF = "requestRef"
4
+ }
5
+ export declare type BillingExportAsyncRequestType = {
6
+ [BillingExportAsyncRequestFields.COLUMN_REQUEST_REF]: string;
7
+ };
8
+ export declare class BillingExportAsyncRequest extends AbstractEntity<BillingExportAsyncRequestType> {
9
+ #private;
10
+ constructor(billingExportAsyncRequestResponse: BillingExportAsyncRequestType);
11
+ get requestRef(): string;
12
+ toJSON(): BillingExportAsyncRequestType;
13
+ }
@@ -0,0 +1,38 @@
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 _BillingExportAsyncRequest_requestRef;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.BillingExportAsyncRequest = exports.BillingExportAsyncRequestFields = void 0;
16
+ const abstractEntity_1 = require("../../../abstractEntity");
17
+ var BillingExportAsyncRequestFields;
18
+ (function (BillingExportAsyncRequestFields) {
19
+ BillingExportAsyncRequestFields["COLUMN_REQUEST_REF"] = "requestRef";
20
+ })(BillingExportAsyncRequestFields = exports.BillingExportAsyncRequestFields || (exports.BillingExportAsyncRequestFields = {}));
21
+ class BillingExportAsyncRequest extends abstractEntity_1.AbstractEntity {
22
+ constructor(billingExportAsyncRequestResponse) {
23
+ super(billingExportAsyncRequestResponse);
24
+ _BillingExportAsyncRequest_requestRef.set(this, void 0);
25
+ __classPrivateFieldSet(this, _BillingExportAsyncRequest_requestRef, billingExportAsyncRequestResponse[BillingExportAsyncRequestFields.COLUMN_REQUEST_REF], "f");
26
+ }
27
+ get requestRef() {
28
+ return __classPrivateFieldGet(this, _BillingExportAsyncRequest_requestRef, "f");
29
+ }
30
+ toJSON() {
31
+ return {
32
+ [BillingExportAsyncRequestFields.COLUMN_REQUEST_REF]: this.requestRef,
33
+ };
34
+ }
35
+ }
36
+ exports.BillingExportAsyncRequest = BillingExportAsyncRequest;
37
+ _BillingExportAsyncRequest_requestRef = new WeakMap();
38
+ //# sourceMappingURL=exportAsyncRequest.js.map
@@ -0,0 +1,2 @@
1
+ export * from './entities/export/exportAsyncRequest';
2
+ export * from './billingClient';
@@ -0,0 +1,19 @@
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/export/exportAsyncRequest"), exports);
18
+ __exportStar(require("./billingClient"), exports);
19
+ //# sourceMappingURL=index.js.map
package/build/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export * from './subscriptions/';
27
27
  export * from './supportCenter/';
28
28
  export * from './securityScore/';
29
29
  export * from './user/';
30
+ export * from './billing/';
30
31
  export { WellArchitected };
31
32
  import * as WellArchitected from './wellArchitected';
32
33
  export { ContactInformation };
package/build/index.js CHANGED
@@ -56,6 +56,7 @@ __exportStar(require("./subscriptions/"), exports);
56
56
  __exportStar(require("./supportCenter/"), exports);
57
57
  __exportStar(require("./securityScore/"), exports);
58
58
  __exportStar(require("./user/"), exports);
59
+ __exportStar(require("./billing/"), exports);
59
60
  const WellArchitected = __importStar(require("./wellArchitected"));
60
61
  exports.WellArchitected = WellArchitected;
61
62
  const ContactInformation = __importStar(require("./contact"));
@@ -17,6 +17,7 @@ import { RegisterClient, StandardsClient } from './security';
17
17
  import { PartnerClient } from './partner';
18
18
  import { OrganizationUnitClient } from './organisationUnit';
19
19
  import { QuotesClient } from './quotes';
20
+ import { BillingClient } from './billing';
20
21
  /**
21
22
  * Public API Client class, should be the main entry point for your calls
22
23
  */
@@ -97,5 +98,6 @@ export declare class PublicApiClient extends AbstractRestfulClient {
97
98
  getUserClient(configuration?: ConfigurationsClient): UserClient;
98
99
  getNotificationsClient(configuration?: ConfigurationsClient): NotificationsClient;
99
100
  getOrganizationUnitClient(configuration?: ConfigurationsClient): OrganizationUnitClient;
101
+ getBillingClient(configuration?: ConfigurationsClient): BillingClient;
100
102
  }
101
103
  export default PublicApiClient;
@@ -20,6 +20,7 @@ const security_1 = require("./security");
20
20
  const partner_1 = require("./partner");
21
21
  const organisationUnit_1 = require("./organisationUnit");
22
22
  const quotes_1 = require("./quotes");
23
+ const billing_1 = require("./billing");
23
24
  /**
24
25
  * Public API Client class, should be the main entry point for your calls
25
26
  */
@@ -197,6 +198,11 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
197
198
  this.applyConfig(client);
198
199
  return client;
199
200
  }
201
+ getBillingClient(configuration) {
202
+ const client = new billing_1.BillingClient(configuration);
203
+ this.applyConfig(client);
204
+ return client;
205
+ }
200
206
  }
201
207
  exports.PublicApiClient = PublicApiClient;
202
208
  exports.default = PublicApiClient;
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.98.0",
7
+ "version": "3.99.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",