@arrowsphere/api-client 3.47.0-rc.bdj.1 → 3.47.0-rc.bdj.3

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.
@@ -1,6 +1,10 @@
1
1
  import { CountryType } from './country';
2
2
  import { PartnertagType } from './partnertag';
3
3
  import { WorkgroupType } from './workgroup';
4
+ export declare type CompanyTypeType = {
5
+ id?: number;
6
+ type?: string;
7
+ };
4
8
  declare type BaseCompanyType = {
5
9
  acronym?: string;
6
10
  address1?: string;
@@ -25,9 +29,21 @@ declare type BaseCompanyType = {
25
29
  export declare type EndCustomerType = BaseCompanyType & {
26
30
  partner?: PartnerType;
27
31
  };
32
+ declare type CountableType = {
33
+ id?: number;
34
+ total?: number;
35
+ };
28
36
  export declare type PartnerType = BaseCompanyType & {
29
37
  country?: CountryType;
38
+ type?: CompanyTypeType;
30
39
  workgroup?: WorkgroupType;
40
+ subscriptionsPendingCount?: CountableType;
41
+ subscriptionsCount?: CountableType;
42
+ ordersNeedCount?: CountableType;
43
+ reportsCount?: CountableType;
44
+ ordersCount?: CountableType;
45
+ customersCount?: CountableType;
46
+ contactsCount?: CountableType;
31
47
  };
32
48
  export declare type ArrowCompanyType = Omit<BaseCompanyType, 'partnerTags'>;
33
49
  export {};
@@ -76,12 +76,20 @@ export declare type InputFiltersType = {
76
76
  export declare enum InputFilterValueField {
77
77
  NAME = "name",
78
78
  OPERATOR = "operator",
79
- VALUE = "value"
79
+ VALUE = "value",
80
+ EXCLUSION = "exclusion"
80
81
  }
81
82
  export declare type InputFilterValueType = {
82
83
  [InputFilterValueField.NAME]?: string;
83
84
  [InputFilterValueField.OPERATOR]?: ComparisonOperator;
84
85
  [InputFilterValueField.VALUE]?: string[];
86
+ [InputFilterValueField.EXCLUSION]?: boolean;
87
+ };
88
+ export declare enum InputQueryOptionsField {
89
+ SKIP_PARTITION = "skipPartition"
90
+ }
91
+ export declare type InputQueryOptionsType = {
92
+ [InputQueryOptionsField.SKIP_PARTITION]?: boolean;
85
93
  };
86
94
  export declare enum SelectableField {
87
95
  DATA = "data",
@@ -160,7 +168,8 @@ export declare enum QueryVariablesField {
160
168
  FILTERS = "filters",
161
169
  PAGINATION = "pagination",
162
170
  QUERY_MODIFIER = "queryModifier",
163
- SORT = "sort"
171
+ SORT = "sort",
172
+ OPTIONS = "options"
164
173
  }
165
174
  export declare type QueryVariablesType = {
166
175
  [QueryVariablesField.AGGREGATOR_FILTER]?: string[];
@@ -169,6 +178,7 @@ export declare type QueryVariablesType = {
169
178
  [QueryVariablesField.PAGINATION]?: InputPaginationType;
170
179
  [QueryVariablesField.QUERY_MODIFIER]?: QueryModifier;
171
180
  [QueryVariablesField.SORT]?: InputSortFilterType[];
181
+ [QueryVariablesField.OPTIONS]?: InputQueryOptionsType;
172
182
  };
173
183
  export declare enum Queries {
174
184
  SELECT_ALL = "selectAll",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Queries = exports.QueryVariablesField = exports.PaginationField = exports.ErrorsField = exports.SelectDataField = exports.SelectableField = exports.InputFilterValueField = exports.InputFiltersField = exports.InputSearchFilterField = exports.InputSortFilterField = exports.InputPaginationField = exports.Direction = exports.QueryModifier = exports.LogicalOperator = exports.ComparisonOperator = void 0;
3
+ exports.Queries = exports.QueryVariablesField = exports.PaginationField = exports.ErrorsField = exports.SelectDataField = exports.SelectableField = exports.InputQueryOptionsField = exports.InputFilterValueField = exports.InputFiltersField = exports.InputSearchFilterField = exports.InputSortFilterField = exports.InputPaginationField = exports.Direction = exports.QueryModifier = exports.LogicalOperator = exports.ComparisonOperator = void 0;
4
4
  /**
5
5
  * For field __args
6
6
  */
@@ -68,7 +68,12 @@ var InputFilterValueField;
68
68
  InputFilterValueField["NAME"] = "name";
69
69
  InputFilterValueField["OPERATOR"] = "operator";
70
70
  InputFilterValueField["VALUE"] = "value";
71
+ InputFilterValueField["EXCLUSION"] = "exclusion";
71
72
  })(InputFilterValueField = exports.InputFilterValueField || (exports.InputFilterValueField = {}));
73
+ var InputQueryOptionsField;
74
+ (function (InputQueryOptionsField) {
75
+ InputQueryOptionsField["SKIP_PARTITION"] = "skipPartition";
76
+ })(InputQueryOptionsField = exports.InputQueryOptionsField || (exports.InputQueryOptionsField = {}));
72
77
  var SelectableField;
73
78
  (function (SelectableField) {
74
79
  SelectableField["DATA"] = "data";
@@ -108,6 +113,7 @@ var QueryVariablesField;
108
113
  QueryVariablesField["PAGINATION"] = "pagination";
109
114
  QueryVariablesField["QUERY_MODIFIER"] = "queryModifier";
110
115
  QueryVariablesField["SORT"] = "sort";
116
+ QueryVariablesField["OPTIONS"] = "options";
111
117
  })(QueryVariablesField = exports.QueryVariablesField || (exports.QueryVariablesField = {}));
112
118
  var Queries;
113
119
  (function (Queries) {
@@ -6,4 +6,5 @@ export declare class PublicGraphQLClient extends AbstractGraphQLClient {
6
6
  getCatalogGraphQLClient(): CatalogGraphQLClient;
7
7
  getSecurityScoreGraphQLClient(): SecurityScoreGraphQLClient;
8
8
  getGraphqlApiClient(): GraphqlApiClient;
9
+ private applyConfig;
9
10
  }
@@ -7,27 +7,25 @@ const securityScore_1 = require("./securityScore");
7
7
  const graphqlApi_1 = require("./graphqlApi");
8
8
  class PublicGraphQLClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
9
9
  getCatalogGraphQLClient() {
10
- return new catalogGraphQLClient_1.CatalogGraphQLClient()
11
- .setUrl(this.url)
12
- .setToken(this.token)
13
- .setHeaders(this.headers)
14
- .setToken(this.token)
15
- .setHttpExceptionHandlers(this.httpExceptionHandlers);
10
+ const client = new catalogGraphQLClient_1.CatalogGraphQLClient();
11
+ this.applyConfig(client);
12
+ return client;
16
13
  }
17
14
  getSecurityScoreGraphQLClient() {
18
- return new securityScore_1.SecurityScoreGraphQLClient()
19
- .setUrl(this.url)
20
- .setToken(this.token)
21
- .setHeaders(this.headers)
22
- .setToken(this.token)
23
- .setHttpExceptionHandlers(this.httpExceptionHandlers);
15
+ const client = new securityScore_1.SecurityScoreGraphQLClient();
16
+ this.applyConfig(client);
17
+ return client;
24
18
  }
25
19
  getGraphqlApiClient() {
26
- return new graphqlApi_1.GraphqlApiClient()
20
+ const client = new graphqlApi_1.GraphqlApiClient();
21
+ this.applyConfig(client);
22
+ return client;
23
+ }
24
+ applyConfig(client) {
25
+ return client
27
26
  .setUrl(this.url)
28
- .setToken(this.token)
27
+ .setSecurity(this.security)
29
28
  .setHeaders(this.headers)
30
- .setToken(this.token)
31
29
  .setHttpExceptionHandlers(this.httpExceptionHandlers);
32
30
  }
33
31
  }
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.47.0-rc.bdj.1",
7
+ "version": "3.47.0-rc.bdj.3",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",