@arrowsphere/api-client 3.67.0 → 3.68.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/abstractRestfulClient.d.ts +33 -0
- package/build/wellArchitected/register/registerClient.d.ts +2 -2
- package/build/wellArchitected/register/registerClient.js +4 -1
- package/build/wellArchitected/types/wellArchitectedGraphQLTypes.d.ts +13 -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.68.0] - 2023-11-21
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- [Well Architected] Add ExtraDataType to Checks
|
|
10
|
+
- [Well Architected] Add Status type to Standard
|
|
11
|
+
- [Well Architected] Pass a header with getVendorStatus for the register/check endpoint
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.67.0] - 2023-11-17
|
|
7
15
|
|
|
8
16
|
### Changed
|
|
@@ -31,6 +31,39 @@ export declare type Options = {
|
|
|
31
31
|
isAdmin?: boolean;
|
|
32
32
|
returnAxiosData?: boolean;
|
|
33
33
|
};
|
|
34
|
+
export declare type RegisterCheckReturnSyncStatusError = {
|
|
35
|
+
statusCode?: number;
|
|
36
|
+
message?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type RegisterCheckReturnVendorStatus = {
|
|
39
|
+
code?: string;
|
|
40
|
+
message?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare type RegisterCheckReturnSyncStatus = {
|
|
43
|
+
syncData?: string;
|
|
44
|
+
cost?: RegisterCheckReturnSyncStatusError;
|
|
45
|
+
security?: RegisterCheckReturnSyncStatusError;
|
|
46
|
+
sustainability?: RegisterCheckReturnSyncStatusError;
|
|
47
|
+
};
|
|
48
|
+
export declare type RegisterCheckReturnData = {
|
|
49
|
+
accountReference?: string;
|
|
50
|
+
creationDate?: string;
|
|
51
|
+
classification?: string;
|
|
52
|
+
customerReference?: string;
|
|
53
|
+
customerName?: string;
|
|
54
|
+
resellerReference?: string;
|
|
55
|
+
resellerName?: string;
|
|
56
|
+
subscriptionReference?: string;
|
|
57
|
+
marketplace?: string;
|
|
58
|
+
vendorSubscriptionId?: string;
|
|
59
|
+
vendorCode?: string;
|
|
60
|
+
syncStatus?: RegisterCheckReturnSyncStatus;
|
|
61
|
+
vendorStatus?: RegisterCheckReturnVendorStatus;
|
|
62
|
+
};
|
|
63
|
+
export declare type CheckStatusReturn = {
|
|
64
|
+
status?: number;
|
|
65
|
+
data?: RegisterCheckReturnData;
|
|
66
|
+
};
|
|
34
67
|
export declare type ConfigurationsClient = {
|
|
35
68
|
[ParameterKeys.API_KEY]?: string;
|
|
36
69
|
[ParameterKeys.URL]?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRestfulClient, Parameters } from '../../abstractRestfulClient';
|
|
1
|
+
import { AbstractRestfulClient, CheckStatusReturn, Parameters } from '../../abstractRestfulClient';
|
|
2
2
|
import { GetResult } from '../../getResult';
|
|
3
3
|
import { RegistrationLink } from './entity/registrationLink';
|
|
4
4
|
export declare class WellArchitectedRegisterClient extends AbstractRestfulClient {
|
|
@@ -8,6 +8,6 @@ export declare class WellArchitectedRegisterClient extends AbstractRestfulClient
|
|
|
8
8
|
protected basePath: string;
|
|
9
9
|
register(subscriptionReference: string, parameters?: Parameters): Promise<GetResult<RegistrationLink>>;
|
|
10
10
|
deregister(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
11
|
-
checkRegister(subscriptionReference: string, parameters?: Parameters): Promise<
|
|
11
|
+
checkRegister(subscriptionReference: string, parameters?: Parameters, getVendorStatus?: boolean): Promise<CheckStatusReturn>;
|
|
12
12
|
triggerAsynchronousUpdate(subscriptionReference: string, parameters?: Parameters): Promise<void>;
|
|
13
13
|
}
|
|
@@ -20,8 +20,11 @@ class WellArchitectedRegisterClient extends abstractRestfulClient_1.AbstractRest
|
|
|
20
20
|
this.path = `/${subscriptionReference}/deregister`;
|
|
21
21
|
return await this.post(parameters);
|
|
22
22
|
}
|
|
23
|
-
async checkRegister(subscriptionReference, parameters = {}) {
|
|
23
|
+
async checkRegister(subscriptionReference, parameters = {}, getVendorStatus) {
|
|
24
24
|
this.path = `/${subscriptionReference}/register/check`;
|
|
25
|
+
if (getVendorStatus) {
|
|
26
|
+
this.setHeaders({ getVendorStatus: 'true' });
|
|
27
|
+
}
|
|
25
28
|
return await this.get(parameters);
|
|
26
29
|
}
|
|
27
30
|
async triggerAsynchronousUpdate(subscriptionReference, parameters = {}) {
|
|
@@ -39,8 +39,18 @@ export declare type RegistrationType = {
|
|
|
39
39
|
subscription?: SubscriptionRegistrationType;
|
|
40
40
|
vendorCode?: string;
|
|
41
41
|
};
|
|
42
|
+
export declare type ExtraDataType = {
|
|
43
|
+
name?: string;
|
|
44
|
+
numberValue?: number;
|
|
45
|
+
value?: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type StatusType = {
|
|
48
|
+
code: number;
|
|
49
|
+
message: string;
|
|
50
|
+
};
|
|
42
51
|
export declare type CheckType = {
|
|
43
52
|
description?: string;
|
|
53
|
+
extraData?: ExtraDataType[];
|
|
44
54
|
flagged?: number;
|
|
45
55
|
group?: string;
|
|
46
56
|
hasResources?: boolean;
|
|
@@ -60,6 +70,7 @@ export declare type StandardType = {
|
|
|
60
70
|
passed?: number;
|
|
61
71
|
reference?: string;
|
|
62
72
|
score?: number;
|
|
73
|
+
status?: StatusType;
|
|
63
74
|
total?: number;
|
|
64
75
|
};
|
|
65
76
|
export declare type AccountType = {
|
|
@@ -318,7 +329,9 @@ export declare type MarketplacesAggType = {
|
|
|
318
329
|
*/
|
|
319
330
|
export declare type CheckByDateType = {
|
|
320
331
|
date?: string;
|
|
332
|
+
extraData?: ExtraDataType[];
|
|
321
333
|
flagged?: number;
|
|
334
|
+
group?: string;
|
|
322
335
|
hasResources?: boolean;
|
|
323
336
|
isFailed?: boolean;
|
|
324
337
|
name?: string;
|
package/package.json
CHANGED