@arrowsphere/api-client 3.182.0 → 3.183.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 +8 -0
- package/build/customers/customersClient.d.ts +4 -0
- package/build/customers/customersClient.js +13 -0
- package/build/customers/entities/customerProvision.d.ts +23 -0
- package/build/customers/entities/customerProvision.js +52 -0
- package/build/index.d.ts +11 -10
- package/build/index.js +11 -10
- package/build/monitoring/index.d.ts +1 -0
- package/build/monitoring/index.js +18 -0
- package/build/monitoring/monitoringClient.d.ts +20 -0
- package/build/monitoring/monitoringClient.js +23 -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,14 @@
|
|
|
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.183.0] - 2025.03.21
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [monitoring] add send monitoring report
|
|
10
|
+
- [company] add company start provision `postCustomerProvision`
|
|
11
|
+
- [company] add company get provision status `getCustomerProvision`
|
|
12
|
+
- [company] add company cancel migration `cancelCustomerMigration`
|
|
13
|
+
|
|
6
14
|
## [3.182.0] - 2025.03.21
|
|
7
15
|
|
|
8
16
|
### Added
|
|
@@ -7,6 +7,7 @@ import { CustomerContactList } from './entities/customers/customerContact/custom
|
|
|
7
7
|
import { CustomerContact, CustomerContactRoleType, CustomerContactTypeType } from './entities/customers/customerContact/customerContact';
|
|
8
8
|
import { CustomerFields, CustomerType } from './entities/customers/customer';
|
|
9
9
|
import { ContactFields } from './entities/customers/contact/contact';
|
|
10
|
+
import { CustomerProvision } from './entities/customerProvision';
|
|
10
11
|
export declare enum CustomerMigrationAttributeFields {
|
|
11
12
|
NAME = "name",
|
|
12
13
|
VALUE = "value"
|
|
@@ -130,4 +131,7 @@ export declare class CustomersClient extends AbstractRestfulClient {
|
|
|
130
131
|
postCustomerInvitation(payload: PostCustomerInvitation, parameters?: Parameters): Promise<GetResult<DataInvitation>>;
|
|
131
132
|
postCustomerMigration(customerReference: string, payload: PostCustomerMigrationPayload, parameters?: Parameters, returnAxiosData?: boolean): Promise<APIResponseCustomerMigration | APIResponseError>;
|
|
132
133
|
postReconciliationCustomers(program: string, parameters?: Parameters): Promise<void>;
|
|
134
|
+
cancelCustomerMigration(customerReference: string, program: string): Promise<void | APIResponseError>;
|
|
135
|
+
postCustomerProvision(customerReference: string, payload: PostCustomerMigrationPayload): Promise<void>;
|
|
136
|
+
getCustomerProvision(customerReference: string, program: string): Promise<GetResult<CustomerProvision>>;
|
|
133
137
|
}
|
|
@@ -10,6 +10,7 @@ const customerContactList_1 = require("./entities/customers/customerContact/cust
|
|
|
10
10
|
const customerContact_1 = require("./entities/customers/customerContact/customerContact");
|
|
11
11
|
const customer_1 = require("./entities/customers/customer");
|
|
12
12
|
const contact_1 = require("./entities/customers/contact/contact");
|
|
13
|
+
const customerProvision_1 = require("./entities/customerProvision");
|
|
13
14
|
var CustomerMigrationAttributeFields;
|
|
14
15
|
(function (CustomerMigrationAttributeFields) {
|
|
15
16
|
CustomerMigrationAttributeFields["NAME"] = "name";
|
|
@@ -110,6 +111,18 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
110
111
|
this.path = '/reconciliation';
|
|
111
112
|
await this.post({ program }, parameters);
|
|
112
113
|
}
|
|
114
|
+
async cancelCustomerMigration(customerReference, program) {
|
|
115
|
+
this.path = `/${customerReference}/migration`;
|
|
116
|
+
await this.delete({ program });
|
|
117
|
+
}
|
|
118
|
+
async postCustomerProvision(customerReference, payload) {
|
|
119
|
+
this.path = `/${customerReference}/provision`;
|
|
120
|
+
return await this.post(payload);
|
|
121
|
+
}
|
|
122
|
+
async getCustomerProvision(customerReference, program) {
|
|
123
|
+
this.path = `/${customerReference}/provision`;
|
|
124
|
+
return new getResult_1.GetResult(customerProvision_1.CustomerProvision, await this.get({ program }));
|
|
125
|
+
}
|
|
113
126
|
}
|
|
114
127
|
exports.CustomersClient = CustomersClient;
|
|
115
128
|
//# sourceMappingURL=customersClient.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../abstractEntity';
|
|
2
|
+
export declare enum CustomerProvisionFields {
|
|
3
|
+
COLUMN_STATUS = "status",
|
|
4
|
+
COLUMN_MESSAGE = "message",
|
|
5
|
+
COLUMN_ATTRIBUTES = "attributes"
|
|
6
|
+
}
|
|
7
|
+
export declare type CustomerProvisionType = {
|
|
8
|
+
[CustomerProvisionFields.COLUMN_STATUS]: string;
|
|
9
|
+
[CustomerProvisionFields.COLUMN_MESSAGE]: string;
|
|
10
|
+
[CustomerProvisionFields.COLUMN_ATTRIBUTES]: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare class CustomerProvision extends AbstractEntity<CustomerProvisionType> {
|
|
15
|
+
#private;
|
|
16
|
+
constructor(data: CustomerProvisionType);
|
|
17
|
+
get status(): string;
|
|
18
|
+
get message(): string;
|
|
19
|
+
get attributes(): {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
toJSON(): CustomerProvisionType;
|
|
23
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 _CustomerProvision_status, _CustomerProvision_message, _CustomerProvision_attributes;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CustomerProvision = exports.CustomerProvisionFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../abstractEntity");
|
|
17
|
+
var CustomerProvisionFields;
|
|
18
|
+
(function (CustomerProvisionFields) {
|
|
19
|
+
CustomerProvisionFields["COLUMN_STATUS"] = "status";
|
|
20
|
+
CustomerProvisionFields["COLUMN_MESSAGE"] = "message";
|
|
21
|
+
CustomerProvisionFields["COLUMN_ATTRIBUTES"] = "attributes";
|
|
22
|
+
})(CustomerProvisionFields = exports.CustomerProvisionFields || (exports.CustomerProvisionFields = {}));
|
|
23
|
+
class CustomerProvision extends abstractEntity_1.AbstractEntity {
|
|
24
|
+
constructor(data) {
|
|
25
|
+
super(data);
|
|
26
|
+
_CustomerProvision_status.set(this, void 0);
|
|
27
|
+
_CustomerProvision_message.set(this, void 0);
|
|
28
|
+
_CustomerProvision_attributes.set(this, void 0);
|
|
29
|
+
__classPrivateFieldSet(this, _CustomerProvision_status, data.status, "f");
|
|
30
|
+
__classPrivateFieldSet(this, _CustomerProvision_message, data.message, "f");
|
|
31
|
+
__classPrivateFieldSet(this, _CustomerProvision_attributes, data.attributes, "f");
|
|
32
|
+
}
|
|
33
|
+
get status() {
|
|
34
|
+
return __classPrivateFieldGet(this, _CustomerProvision_status, "f");
|
|
35
|
+
}
|
|
36
|
+
get message() {
|
|
37
|
+
return __classPrivateFieldGet(this, _CustomerProvision_message, "f");
|
|
38
|
+
}
|
|
39
|
+
get attributes() {
|
|
40
|
+
return __classPrivateFieldGet(this, _CustomerProvision_attributes, "f");
|
|
41
|
+
}
|
|
42
|
+
toJSON() {
|
|
43
|
+
return {
|
|
44
|
+
[CustomerProvisionFields.COLUMN_STATUS]: this.status,
|
|
45
|
+
[CustomerProvisionFields.COLUMN_MESSAGE]: this.message,
|
|
46
|
+
[CustomerProvisionFields.COLUMN_ATTRIBUTES]: this.attributes,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.CustomerProvision = CustomerProvision;
|
|
51
|
+
_CustomerProvision_status = new WeakMap(), _CustomerProvision_message = new WeakMap(), _CustomerProvision_attributes = new WeakMap();
|
|
52
|
+
//# sourceMappingURL=customerProvision.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export * from './axiosSingleton';
|
|
2
|
-
export * from './abstractRestfulClient';
|
|
3
1
|
export * from './abstractEntity';
|
|
4
2
|
export * from './abstractGraphQLClient';
|
|
3
|
+
export * from './abstractRestfulClient';
|
|
4
|
+
export * from './analytics/';
|
|
5
|
+
export * from './axiosSingleton';
|
|
6
|
+
export * from './billing/';
|
|
5
7
|
export * from './campaign/';
|
|
6
8
|
export * from './cart/';
|
|
7
9
|
export * from './catalog/';
|
|
@@ -11,26 +13,25 @@ export * from './exception/';
|
|
|
11
13
|
export * from './general/';
|
|
12
14
|
export * from './getResult';
|
|
13
15
|
export * from './graphqlApi';
|
|
14
|
-
export * from './partialResponse';
|
|
15
|
-
export * from './pagination';
|
|
16
16
|
export * from './licenses/';
|
|
17
|
+
export * from './monitoring/';
|
|
17
18
|
export * from './notifications/';
|
|
19
|
+
export * from './orderSoftware/';
|
|
18
20
|
export * from './orders/';
|
|
19
21
|
export * from './organisationUnit/';
|
|
22
|
+
export * from './pagination';
|
|
23
|
+
export * from './partialResponse';
|
|
20
24
|
export * from './partner';
|
|
21
25
|
export * from './publicApiClient';
|
|
22
26
|
export * from './publicGraphQLClient';
|
|
23
27
|
export * from './quotes';
|
|
24
|
-
export * from './
|
|
28
|
+
export * from './reports/';
|
|
25
29
|
export * from './security/';
|
|
30
|
+
export * from './securityScore/';
|
|
31
|
+
export * from './shared/';
|
|
26
32
|
export * from './subscriptions/';
|
|
27
33
|
export * from './supportCenter/';
|
|
28
|
-
export * from './securityScore/';
|
|
29
34
|
export * from './user/';
|
|
30
|
-
export * from './billing/';
|
|
31
|
-
export * from './analytics/';
|
|
32
|
-
export * from './reports/';
|
|
33
|
-
export * from './orderSoftware/';
|
|
34
35
|
export { WellArchitected };
|
|
35
36
|
import * as WellArchitected from './wellArchitected';
|
|
36
37
|
export { ContactInformation };
|
package/build/index.js
CHANGED
|
@@ -27,10 +27,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ContactInformation = exports.WellArchitected = void 0;
|
|
30
|
-
__exportStar(require("./axiosSingleton"), exports);
|
|
31
|
-
__exportStar(require("./abstractRestfulClient"), exports);
|
|
32
30
|
__exportStar(require("./abstractEntity"), exports);
|
|
33
31
|
__exportStar(require("./abstractGraphQLClient"), exports);
|
|
32
|
+
__exportStar(require("./abstractRestfulClient"), exports);
|
|
33
|
+
__exportStar(require("./analytics/"), exports);
|
|
34
|
+
__exportStar(require("./axiosSingleton"), exports);
|
|
35
|
+
__exportStar(require("./billing/"), exports);
|
|
34
36
|
__exportStar(require("./campaign/"), exports);
|
|
35
37
|
__exportStar(require("./cart/"), exports);
|
|
36
38
|
__exportStar(require("./catalog/"), exports);
|
|
@@ -40,26 +42,25 @@ __exportStar(require("./exception/"), exports);
|
|
|
40
42
|
__exportStar(require("./general/"), exports);
|
|
41
43
|
__exportStar(require("./getResult"), exports);
|
|
42
44
|
__exportStar(require("./graphqlApi"), exports);
|
|
43
|
-
__exportStar(require("./partialResponse"), exports);
|
|
44
|
-
__exportStar(require("./pagination"), exports);
|
|
45
45
|
__exportStar(require("./licenses/"), exports);
|
|
46
|
+
__exportStar(require("./monitoring/"), exports);
|
|
46
47
|
__exportStar(require("./notifications/"), exports);
|
|
48
|
+
__exportStar(require("./orderSoftware/"), exports);
|
|
47
49
|
__exportStar(require("./orders/"), exports);
|
|
48
50
|
__exportStar(require("./organisationUnit/"), exports);
|
|
51
|
+
__exportStar(require("./pagination"), exports);
|
|
52
|
+
__exportStar(require("./partialResponse"), exports);
|
|
49
53
|
__exportStar(require("./partner"), exports);
|
|
50
54
|
__exportStar(require("./publicApiClient"), exports);
|
|
51
55
|
__exportStar(require("./publicGraphQLClient"), exports);
|
|
52
56
|
__exportStar(require("./quotes"), exports);
|
|
53
|
-
__exportStar(require("./
|
|
57
|
+
__exportStar(require("./reports/"), exports);
|
|
54
58
|
__exportStar(require("./security/"), exports);
|
|
59
|
+
__exportStar(require("./securityScore/"), exports);
|
|
60
|
+
__exportStar(require("./shared/"), exports);
|
|
55
61
|
__exportStar(require("./subscriptions/"), exports);
|
|
56
62
|
__exportStar(require("./supportCenter/"), exports);
|
|
57
|
-
__exportStar(require("./securityScore/"), exports);
|
|
58
63
|
__exportStar(require("./user/"), exports);
|
|
59
|
-
__exportStar(require("./billing/"), exports);
|
|
60
|
-
__exportStar(require("./analytics/"), exports);
|
|
61
|
-
__exportStar(require("./reports/"), exports);
|
|
62
|
-
__exportStar(require("./orderSoftware/"), exports);
|
|
63
64
|
const WellArchitected = __importStar(require("./wellArchitected"));
|
|
64
65
|
exports.WellArchitected = WellArchitected;
|
|
65
66
|
const ContactInformation = __importStar(require("./contact"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './monitoringClient';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./monitoringClient"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
2
|
+
export declare type ReportMonitoringType = {
|
|
3
|
+
body: {
|
|
4
|
+
[keys in string]: string | number | null;
|
|
5
|
+
};
|
|
6
|
+
url: string;
|
|
7
|
+
userAgent: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class MonitoringClient extends AbstractRestfulClient {
|
|
11
|
+
/**
|
|
12
|
+
* The base path of the API
|
|
13
|
+
*/
|
|
14
|
+
protected basePath: string;
|
|
15
|
+
/**
|
|
16
|
+
* The path of the report endpoint
|
|
17
|
+
*/
|
|
18
|
+
private REPORT_PATH;
|
|
19
|
+
sendReport(report: ReportMonitoringType): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MonitoringClient = void 0;
|
|
4
|
+
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
+
class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
/**
|
|
9
|
+
* The base path of the API
|
|
10
|
+
*/
|
|
11
|
+
this.basePath = '/monitoring';
|
|
12
|
+
/**
|
|
13
|
+
* The path of the report endpoint
|
|
14
|
+
*/
|
|
15
|
+
this.REPORT_PATH = '/report';
|
|
16
|
+
}
|
|
17
|
+
sendReport(report) {
|
|
18
|
+
this.path = this.REPORT_PATH;
|
|
19
|
+
return this.post(report);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.MonitoringClient = MonitoringClient;
|
|
23
|
+
//# sourceMappingURL=monitoringClient.js.map
|
|
@@ -21,6 +21,7 @@ import { BillingClient } from './billing';
|
|
|
21
21
|
import { AnalyticsClient } from './analytics';
|
|
22
22
|
import { ReportsClient } from './reports';
|
|
23
23
|
import { OrderSoftwareClient } from './orderSoftware';
|
|
24
|
+
import { MonitoringClient } from './monitoring';
|
|
24
25
|
/**
|
|
25
26
|
* Public API Client class, should be the main entry point for your calls
|
|
26
27
|
*/
|
|
@@ -109,5 +110,6 @@ export declare class PublicApiClient extends AbstractRestfulClient {
|
|
|
109
110
|
getBillingClient(configuration?: ConfigurationsClient): BillingClient;
|
|
110
111
|
getAnalyticsClient(configuration?: ConfigurationsClient): AnalyticsClient;
|
|
111
112
|
getReportsClient(configuration?: ConfigurationsClient): ReportsClient;
|
|
113
|
+
getMonitoringClient(configuration?: ConfigurationsClient): MonitoringClient;
|
|
112
114
|
}
|
|
113
115
|
export default PublicApiClient;
|
package/build/publicApiClient.js
CHANGED
|
@@ -24,6 +24,7 @@ const billing_1 = require("./billing");
|
|
|
24
24
|
const analytics_1 = require("./analytics");
|
|
25
25
|
const reports_1 = require("./reports");
|
|
26
26
|
const orderSoftware_1 = require("./orderSoftware");
|
|
27
|
+
const monitoring_1 = require("./monitoring");
|
|
27
28
|
/**
|
|
28
29
|
* Public API Client class, should be the main entry point for your calls
|
|
29
30
|
*/
|
|
@@ -225,6 +226,11 @@ class PublicApiClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
225
226
|
this.applyConfig(client);
|
|
226
227
|
return client;
|
|
227
228
|
}
|
|
229
|
+
getMonitoringClient(configuration) {
|
|
230
|
+
const client = new monitoring_1.MonitoringClient(configuration);
|
|
231
|
+
this.applyConfig(client);
|
|
232
|
+
return client;
|
|
233
|
+
}
|
|
228
234
|
}
|
|
229
235
|
exports.PublicApiClient = PublicApiClient;
|
|
230
236
|
exports.default = PublicApiClient;
|
package/package.json
CHANGED