@arrowsphere/api-client 3.97.0 → 3.98.0-rc.ckh.1
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 +5 -0
- package/build/billing/billingClient.d.ts +59 -0
- package/build/billing/billingClient.js +28 -0
- package/build/billing/entities/export/exportAsyncRequest.d.ts +13 -0
- package/build/billing/entities/export/exportAsyncRequest.js +38 -0
- package/build/billing/index.d.ts +2 -0
- package/build/billing/index.js +19 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/publicApiClient.d.ts +2 -0
- package/build/publicApiClient.js +6 -0
- package/package.json +1 -1
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.98.0] - 2024.02.13
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [billing] add generate billing export async
|
|
10
|
+
|
|
6
11
|
## [3.97.0] - 2024.02.12
|
|
7
12
|
|
|
8
13
|
### Updated
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
2
|
+
import { GetResult } from '../getResult';
|
|
3
|
+
import { BillingExportAsyncRequest } from './entities/export/exportAsyncRequest';
|
|
4
|
+
export declare type GenerateExportAsyncRequestPayload = {
|
|
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
|
+
/**
|
|
52
|
+
* Generates a billing export asynchronously.
|
|
53
|
+
*
|
|
54
|
+
* @param {GenerateExportAsyncRequestPayload} payload - The request payload for generating the export.
|
|
55
|
+
*
|
|
56
|
+
* @return {Promise<GetResult<BillingExportAsyncRequest>>} - A promise that resolves to the result of the export request.
|
|
57
|
+
*/
|
|
58
|
+
generateExportAsync(payload: GenerateExportAsyncRequestPayload): Promise<GetResult<BillingExportAsyncRequest>>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* Generates a billing export asynchronously.
|
|
17
|
+
*
|
|
18
|
+
* @param {GenerateExportAsyncRequestPayload} payload - The request payload for generating the export.
|
|
19
|
+
*
|
|
20
|
+
* @return {Promise<GetResult<BillingExportAsyncRequest>>} - A promise that resolves to the result of the export request.
|
|
21
|
+
*/
|
|
22
|
+
async generateExportAsync(payload) {
|
|
23
|
+
this.path = `/exports/async`;
|
|
24
|
+
return new getResult_1.GetResult(exportAsyncRequest_1.BillingExportAsyncRequest, await this.post(payload));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.BillingClient = BillingClient;
|
|
28
|
+
//# 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,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;
|
package/build/publicApiClient.js
CHANGED
|
@@ -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