@arrowsphere/api-client 3.30.0 → 3.31.1-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 CHANGED
@@ -3,7 +3,33 @@
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.28.0] - 2023-05-22
6
+ ## [3.31.0] - 2023-05-26
7
+
8
+ ### Changed
9
+
10
+ - Add method removeHeader
11
+
12
+ ## [3.30.0] - 2023-05-26
13
+
14
+ ### Changed
15
+
16
+ - Add a new Rest client & rename AbstractRestfulClient
17
+ - Allow to mergeHeaders
18
+ - Allow to propagate easily an error handler from PublicApiClient to its instances
19
+ - Add marketplacesAgg type
20
+ - Fix ScoresAggType
21
+ - Fix array type
22
+ - Fix CheckAggType
23
+
24
+ ## [3.29.0] - 2023-05-11
25
+
26
+ ### Changed
27
+
28
+ - Add GQL client with token security and strong typing
29
+ - Add GQL client with token security and strong typing
30
+ - Add option token security for the abstract restful client
31
+
32
+ ## [3.28.0] - 2023-05-09
7
33
 
8
34
  ### Changed
9
35
 
@@ -50,6 +50,7 @@ export declare abstract class AbstractHttpClient {
50
50
  * @param headers
51
51
  */
52
52
  mergeHeaders(headers: Record<string, string>): this;
53
+ removeHeader(headerKey: string): this;
53
54
  /**
54
55
  * Allow to register error/exception handler.
55
56
  * Handlers can be developed in another projects as long as they respect the interface HttpExceptionHandler.
@@ -73,6 +73,10 @@ class AbstractHttpClient {
73
73
  this.setHeaders(mergedHeaders);
74
74
  return this;
75
75
  }
76
+ removeHeader(headerKey) {
77
+ delete this.headers[headerKey];
78
+ return this;
79
+ }
76
80
  /**
77
81
  * Allow to register error/exception handler.
78
82
  * Handlers can be developed in another projects as long as they respect the interface HttpExceptionHandler.
@@ -1,5 +1,5 @@
1
1
  import { AbstractEntity } from '../../abstractEntity';
2
- import { AccountsAggType, FilterType, ScoreResultType, MonthlyTrendAggType, SeveritiesAggType, PaginationsType, PeriodsType, StandardType, ChecksAggType, ScoresAggType } from '../types/securityScoreGraphQLTypes';
2
+ import { AccountsAggType, FilterType, ScoreResultType, MonthlyTrendAggType, SeveritiesAggType, PaginationsType, PeriodsType, ChecksAggType, ScoresAggType, StandardWithCheckType } from '../types/securityScoreGraphQLTypes';
3
3
  import { SecurityScoreQueries } from '../types/queryArguments';
4
4
  export declare enum GetCustomerDataFields {
5
5
  COLUMN_ACCOUNTS_AGG = "accountsAgg",
@@ -26,7 +26,7 @@ export declare type GetCustomerDataType = {
26
26
  [GetCustomerDataFields.COLUMN_RESULTS]?: ScoreResultType[];
27
27
  [GetCustomerDataFields.COLUMN_SCORES_AGG]?: ScoresAggType;
28
28
  [GetCustomerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggType;
29
- [GetCustomerDataFields.COLUMN_STANDARDS]?: StandardType[];
29
+ [GetCustomerDataFields.COLUMN_STANDARDS]?: StandardWithCheckType[];
30
30
  [GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: number;
31
31
  };
32
32
  export declare type GetCustomerDataGraphQLResultType = {
@@ -45,7 +45,7 @@ export declare class GetCustomerData extends AbstractEntity<GetCustomerDataType>
45
45
  get results(): ScoreResultType[] | undefined;
46
46
  get scoresAgg(): ScoresAggType | undefined;
47
47
  get severitiesAgg(): SeveritiesAggType | undefined;
48
- get standards(): StandardType[] | undefined;
48
+ get standards(): StandardWithCheckType[] | undefined;
49
49
  get subscriptionReferences(): number | undefined;
50
50
  toJSON(): GetCustomerDataType;
51
51
  }
@@ -1,5 +1,5 @@
1
1
  import { SearchBodyArgument, PaginateArgument, SecurityScoreQueries } from './queryArguments';
2
- import { AccountsAggSchema, ChecksAggSchema, EndCustomersAggSchema, FilterSchema, MonthlyTrendAggSchema, PaginationSchema, PeriodsSchema, ScoreResultSchema, ScoresAggSchema, SeveritiesAggSchema, StandardsAggSchema, StandardSchema, StandardWithCheckSchema, MarketplacesAggSchema } from './securityScoreGraphQLSchemas';
2
+ import { AccountsAggSchema, ChecksAggSchema, EndCustomersAggSchema, FilterSchema, MonthlyTrendAggSchema, PaginationSchema, PeriodsSchema, ScoreResultSchema, ScoresAggSchema, SeveritiesAggSchema, StandardsAggSchema, StandardWithCheckSchema, MarketplacesAggSchema } from './securityScoreGraphQLSchemas';
3
3
  import { GetPartnerDataFields } from '../entities/getPartnerData';
4
4
  import { GetCustomerDataFields } from '../entities/getCustomerData';
5
5
  import { GetCustomerAccountDataFields } from '../entities/getCustomerAccountData';
@@ -38,7 +38,7 @@ export declare type GetCustomerDataQuery = {
38
38
  [GetCustomerDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
39
39
  [GetCustomerDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
40
40
  [GetCustomerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
41
- [GetCustomerDataFields.COLUMN_STANDARDS]?: StandardSchema;
41
+ [GetCustomerDataFields.COLUMN_STANDARDS]?: StandardWithCheckSchema;
42
42
  [GetCustomerDataFields.COLUMN_SUBSCRIPTION_REFERENCES]?: boolean;
43
43
  };
44
44
  };
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.30.0",
7
+ "version": "3.31.1-rc.bdj.1",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",