@arrowsphere/api-client 3.98.0 → 3.100.0-rc.bdj.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 +52 -0
- package/build/billing/billingClient.js +21 -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/graphqlApi/index.d.ts +1 -0
- package/build/graphqlApi/index.js +1 -0
- package/build/graphqlApi/types/entities/licenseBudget.d.ts +11 -0
- package/build/graphqlApi/types/entities/licenseBudget.js +3 -0
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +4 -0
- package/build/graphqlApi/types/graphqlApiQueries.js +1 -0
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +8 -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.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,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
|
|
@@ -3,6 +3,7 @@ export * from './types/graphqlApiSchemas';
|
|
|
3
3
|
export * from './types/entities/contact';
|
|
4
4
|
export * from './types/entities/company';
|
|
5
5
|
export * from './types/entities/country';
|
|
6
|
+
export * from './types/entities/licenseBudget';
|
|
6
7
|
export * from './types/entities/order';
|
|
7
8
|
export * from './types/entities/partnertag';
|
|
8
9
|
export * from './types/entities/subscription';
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./types/graphqlApiSchemas"), exports);
|
|
|
19
19
|
__exportStar(require("./types/entities/contact"), exports);
|
|
20
20
|
__exportStar(require("./types/entities/company"), exports);
|
|
21
21
|
__exportStar(require("./types/entities/country"), exports);
|
|
22
|
+
__exportStar(require("./types/entities/licenseBudget"), exports);
|
|
22
23
|
__exportStar(require("./types/entities/order"), exports);
|
|
23
24
|
__exportStar(require("./types/entities/partnertag"), exports);
|
|
24
25
|
__exportStar(require("./types/entities/subscription"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type LicenseBudgetType = {
|
|
2
|
+
id?: number;
|
|
3
|
+
licenseId?: number;
|
|
4
|
+
notifications?: LicenseBudgetNotificationType[];
|
|
5
|
+
threshold?: number;
|
|
6
|
+
type?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type LicenseBudgetNotificationType = {
|
|
9
|
+
id?: number;
|
|
10
|
+
name?: string;
|
|
11
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
|
|
2
2
|
import { ContinentType, CountryType } from './entities/country';
|
|
3
|
+
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
3
4
|
import { PartnertagType } from './entities/partnertag';
|
|
4
5
|
import { SubscribedProgramType } from './entities/program';
|
|
5
6
|
import { SubscriptionType } from './entities/subscription';
|
|
@@ -113,6 +114,7 @@ export declare enum SelectDataField {
|
|
|
113
114
|
CONTINENT = "continent",
|
|
114
115
|
COUNTRY = "country",
|
|
115
116
|
END_CUSTOMER = "endCustomer",
|
|
117
|
+
LICENSE_BUDGET = "licenseBudget",
|
|
116
118
|
PARTNER = "partner",
|
|
117
119
|
PARTNERTAG = "partnertag",
|
|
118
120
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
@@ -131,6 +133,7 @@ export declare type SelectAllResponseDataType = {
|
|
|
131
133
|
[SelectDataField.CONTINENT]?: ContinentType[];
|
|
132
134
|
[SelectDataField.COUNTRY]?: CountryType[];
|
|
133
135
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType[];
|
|
136
|
+
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType[];
|
|
134
137
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
135
138
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
136
139
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
|
|
@@ -175,6 +178,7 @@ export declare type SelectOneResponseDataType = {
|
|
|
175
178
|
[SelectDataField.CONTINENT]?: ContinentType;
|
|
176
179
|
[SelectDataField.COUNTRY]?: CountryType;
|
|
177
180
|
[SelectDataField.END_CUSTOMER]?: EndCustomerType;
|
|
181
|
+
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetType;
|
|
178
182
|
[SelectDataField.PARTNER]?: PartnerType;
|
|
179
183
|
[SelectDataField.PARTNERTAG]?: PartnertagType;
|
|
180
184
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
|
|
@@ -94,6 +94,7 @@ var SelectDataField;
|
|
|
94
94
|
SelectDataField["CONTINENT"] = "continent";
|
|
95
95
|
SelectDataField["COUNTRY"] = "country";
|
|
96
96
|
SelectDataField["END_CUSTOMER"] = "endCustomer";
|
|
97
|
+
SelectDataField["LICENSE_BUDGET"] = "licenseBudget";
|
|
97
98
|
SelectDataField["PARTNER"] = "partner";
|
|
98
99
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
99
100
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
@@ -11,6 +11,7 @@ import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
|
11
11
|
import { OrderItemsType, OrdersType } from './entities/order';
|
|
12
12
|
import { VendorsType } from './entities/vendor';
|
|
13
13
|
import { SubscribedProgramType } from './entities/program';
|
|
14
|
+
import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
|
|
14
15
|
export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
|
|
15
16
|
declare type MissingFieldsOfCompanySchema = {
|
|
16
17
|
contacts?: ContactsSchema;
|
|
@@ -38,6 +39,10 @@ declare type MissingFieldsOfOrderItemSchema = {
|
|
|
38
39
|
declare type MissingFieldsOfOrdersSchema = {
|
|
39
40
|
items?: OrderItemsSchema;
|
|
40
41
|
};
|
|
42
|
+
declare type MissingFieldsOfLicenseBudgetSchema = {
|
|
43
|
+
notifications?: LicenseBudgetNotificationSchema;
|
|
44
|
+
};
|
|
45
|
+
export declare type LicenseBudgetSchema = Merge<Schema<LicenseBudgetType, boolean>, MissingFieldsOfLicenseBudgetSchema>;
|
|
41
46
|
export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
|
|
42
47
|
export declare type OrdersSchema = Merge<Schema<OrdersType, boolean>, MissingFieldsOfOrdersSchema>;
|
|
43
48
|
export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
|
|
@@ -48,6 +53,7 @@ export declare type ContactsSchema = Schema<ContactsType, boolean>;
|
|
|
48
53
|
export declare type ContinentSchema = Schema<ContinentType, boolean>;
|
|
49
54
|
export declare type CountrySchema = Schema<CountryType, boolean>;
|
|
50
55
|
export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
56
|
+
export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
|
|
51
57
|
export declare type PageSchema = Schema<PageType, boolean>;
|
|
52
58
|
export declare type ProgramSchema = Schema<ProgramType, boolean>;
|
|
53
59
|
export declare type SpecialPriceRateSchema = Schema<SpecialPriceRateType, boolean>;
|
|
@@ -65,6 +71,7 @@ export declare type SelectAllResponseDataSchema = {
|
|
|
65
71
|
[SelectDataField.CONTINENT]?: ContinentSchema;
|
|
66
72
|
[SelectDataField.COUNTRY]?: CountrySchema;
|
|
67
73
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
74
|
+
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
|
|
68
75
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
69
76
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
70
77
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
|
@@ -80,6 +87,7 @@ export declare type SelectOneResponseDataSchema = {
|
|
|
80
87
|
[SelectDataField.CONTINENT]?: ContinentSchema;
|
|
81
88
|
[SelectDataField.COUNTRY]?: CountrySchema;
|
|
82
89
|
[SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
|
|
90
|
+
[SelectDataField.LICENSE_BUDGET]?: LicenseBudgetSchema;
|
|
83
91
|
[SelectDataField.PARTNER]?: PartnerSchema;
|
|
84
92
|
[SelectDataField.PARTNERTAG]?: PartnertagSchema;
|
|
85
93
|
[SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
|
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