@arrowsphere/api-client 3.46.0-rc.bdj.3 → 3.46.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 CHANGED
@@ -3,6 +3,12 @@
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.46.0] - 2023-07-18
7
+
8
+ ### Changed
9
+
10
+ - security score unregistered
11
+
6
12
  ## [3.45.0] - 2023-07-11
7
13
 
8
14
  ### Changed
package/build/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from './customers/';
10
10
  export * from './exception/';
11
11
  export * from './general/';
12
12
  export * from './getResult';
13
- export * from './graphqlApi';
14
13
  export * from './pagination';
15
14
  export * from './licenses/';
16
15
  export * from './notifications/';
package/build/index.js CHANGED
@@ -39,7 +39,6 @@ __exportStar(require("./customers/"), exports);
39
39
  __exportStar(require("./exception/"), exports);
40
40
  __exportStar(require("./general/"), exports);
41
41
  __exportStar(require("./getResult"), exports);
42
- __exportStar(require("./graphqlApi"), exports);
43
42
  __exportStar(require("./pagination"), exports);
44
43
  __exportStar(require("./licenses/"), exports);
45
44
  __exportStar(require("./notifications/"), exports);
@@ -69,7 +69,7 @@ export declare type GetAdminDataQuery = {
69
69
  [GetAdminDataFields.COLUMN_PAGINATION]?: PaginationSchema;
70
70
  [GetAdminDataFields.COLUMN_PERIOD]?: PeriodsSchema;
71
71
  [GetAdminDataFields.COLUMN_RESULTS]?: ScoreResultSchema;
72
- [GetPartnerDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
73
- [GetPartnerDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
72
+ [GetAdminDataFields.COLUMN_SCORES_AGG]?: ScoresAggSchema;
73
+ [GetAdminDataFields.COLUMN_SEVERITIES_AGG]?: SeveritiesAggSchema;
74
74
  };
75
75
  };
@@ -1,5 +1,5 @@
1
1
  import { Merge, Schema } from 'type-fest';
2
- import { AccountType, CheckType, FilterValuesType, MonthlyTrendAggType, PeriodsType, RegistrationType, StandardAggType, StandardType, EndCustomerByDateAggType, AccountByDateAggType, CheckAggType, PaginationsType, ScoreByDateAggType, StandardWithCheckType, ChecksByStandardType, CheckByDateType, NameCountByDateAggType, EndCustomerAggType, SeverityAggType, AccountAggType, StandardByDateAggType, ScoreByMonthAggType, ScoresAggType, MarketplaceAggType, MarketplaceByDateAggType, MarketplacePartnerAggType, MarketplacePartnerAggByDateAggType, CheckCountByDateAggType, PartnerByDateAggType, PartnerAggType } from './securityScoreGraphQLTypes';
2
+ import { AccountType, CheckType, FilterValuesType, MonthlyTrendAggType, PeriodsType, RegistrationType, StandardAggType, StandardType, EndCustomerByDateAggType, AccountByDateAggType, CheckAggType, PaginationsType, ScoreByDateAggType, StandardWithCheckType, ChecksByStandardType, CheckByDateType, NameCountByDateAggType, EndCustomerAggType, SeverityAggType, AccountAggType, StandardByDateAggType, ScoreByMonthAggType, ScoresAggType, MarketplaceAggType, MarketplaceByDateAggType, MarketplacePartnerAggType, MarketplacePartnerAggByDateAggType, CheckCountByDateAggType, PartnerByDateAggType, PartnerAggType, UnregisteredOfferIaasSubscriptionType, UnregisteredOfferIaasType, UnregisteredOfferSaasType, UnregisteredEndCustomerAggType } from './securityScoreGraphQLTypes';
3
3
  declare type MissingFieldsOfMonthlyTrendAggSchema = {
4
4
  scores?: Schema<ScoreByMonthAggType, boolean>;
5
5
  };
@@ -10,8 +10,24 @@ declare type MissingFieldsInEndCustomerAggSchema = {
10
10
  data?: EndCustomerByDateAggSchema;
11
11
  };
12
12
  declare type EndCustomerAggSchema = Merge<Schema<EndCustomerAggType, boolean>, MissingFieldsInEndCustomerAggSchema>;
13
+ declare type UnregisteredOfferIaasSubscriptionSchema = Schema<UnregisteredOfferIaasSubscriptionType, boolean>;
14
+ declare type MissingFieldsInUnregisteredOfferIaasSchema = {
15
+ subscriptions?: UnregisteredOfferIaasSubscriptionSchema;
16
+ };
17
+ declare type UnregisteredOfferIaasSchema = Merge<Schema<UnregisteredOfferIaasType, boolean>, MissingFieldsInUnregisteredOfferIaasSchema>;
18
+ declare type UnregisteredOfferSaasSchema = Schema<UnregisteredOfferSaasType, boolean>;
19
+ declare type UnregisteredOffersSchema = {
20
+ iaas?: UnregisteredOfferIaasSchema;
21
+ saas?: UnregisteredOfferSaasSchema;
22
+ };
23
+ declare type UnregisteredEndCustomerAggTypeSchema = Schema<UnregisteredEndCustomerAggType, boolean>;
24
+ declare type MissingFieldsInUnregisteredEndCustomerAggSchema = {
25
+ offers?: UnregisteredOffersSchema;
26
+ };
27
+ declare type UnregisteredEndCustomerAggSchema = Merge<UnregisteredEndCustomerAggTypeSchema, MissingFieldsInUnregisteredEndCustomerAggSchema>;
13
28
  export declare type EndCustomersAggSchema = {
14
29
  customers?: EndCustomerAggSchema;
30
+ unregisteredCustomers?: UnregisteredEndCustomerAggSchema;
15
31
  };
16
32
  declare type AccountByDateAggSchema = Schema<AccountByDateAggType, boolean>;
17
33
  declare type MissingFieldsInAccountAggSchema = {
@@ -20,6 +36,7 @@ declare type MissingFieldsInAccountAggSchema = {
20
36
  declare type AccountAggSchema = Merge<Schema<AccountAggType, boolean>, MissingFieldsInAccountAggSchema>;
21
37
  export declare type AccountsAggSchema = {
22
38
  accounts?: AccountAggSchema;
39
+ unregisteredAccounts?: UnregisteredOffersSchema;
23
40
  };
24
41
  declare type FilterValuesSchema = Schema<FilterValuesType, boolean>;
25
42
  export declare type FilterSchema = {
@@ -79,7 +79,7 @@ export declare type SeverityAggType = {
79
79
  progression?: number;
80
80
  };
81
81
  export declare type SeveritiesAggType = {
82
- severities: SeverityAggType[];
82
+ severities?: SeverityAggType[];
83
83
  };
84
84
  export declare type CheckCountByDateAggType = {
85
85
  count?: number;
@@ -104,6 +104,7 @@ export declare type EndCustomerByDateAggType = {
104
104
  avgCurrentScore?: number;
105
105
  date?: string;
106
106
  failed?: number;
107
+ name?: string;
107
108
  passed?: number;
108
109
  total?: number;
109
110
  subscriptionReferences?: number;
@@ -115,13 +116,38 @@ export declare type EndCustomerAggType = {
115
116
  progression?: number;
116
117
  reference?: string;
117
118
  };
119
+ export declare type UnregisteredOfferIaasSubscriptionType = {
120
+ partnerRef?: string;
121
+ friendlyName?: string;
122
+ vendorSubscriptionId?: string;
123
+ };
124
+ export declare type UnregisteredOfferIaasType = {
125
+ sku?: string;
126
+ name?: string;
127
+ subscriptions?: UnregisteredOfferIaasSubscriptionType[];
128
+ };
129
+ export declare type UnregisteredOfferSaasType = {
130
+ name?: string;
131
+ subscription?: string;
132
+ };
133
+ export declare type UnregisteredOffersType = {
134
+ iaas?: UnregisteredOfferIaasType[];
135
+ saas?: UnregisteredOfferSaasType[];
136
+ };
137
+ export declare type UnregisteredEndCustomerAggType = {
138
+ name?: string;
139
+ reference?: string;
140
+ offers?: UnregisteredOffersType;
141
+ };
118
142
  export declare type EndCustomersAggType = {
119
- customers: EndCustomerAggType[];
143
+ customers?: EndCustomerAggType[];
144
+ unregisteredCustomers?: UnregisteredEndCustomerAggType[];
120
145
  };
121
146
  export declare type PartnerByDateAggType = {
122
147
  avgCurrentScore?: number;
123
148
  date?: string;
124
149
  failed?: number;
150
+ name?: string;
125
151
  passed?: number;
126
152
  total?: number;
127
153
  };
@@ -140,9 +166,9 @@ export declare type ScoreByMonthAggType = {
140
166
  date?: string;
141
167
  };
142
168
  export declare type MonthlyTrendAggType = {
143
- avgCurrentScore: number;
144
- period: PeriodsType;
145
- scores: ScoreByMonthAggType[];
169
+ avgCurrentScore?: number;
170
+ period?: PeriodsType;
171
+ scores?: ScoreByMonthAggType[];
146
172
  };
147
173
  export declare type ScoreByDateAggType = {
148
174
  avgCurrentScore?: number;
@@ -156,10 +182,11 @@ export declare type ScoresAggType = {
156
182
  scores?: ScoreByDateAggType[];
157
183
  };
158
184
  export declare type AccountByDateAggType = {
159
- avgCurrentScore: number;
160
- date: string;
161
- failed: number;
162
- passed: number;
185
+ avgCurrentScore?: number;
186
+ date?: string;
187
+ failed?: number;
188
+ name?: string;
189
+ passed?: number;
163
190
  total?: number;
164
191
  };
165
192
  export declare type AccountAggType = {
@@ -170,7 +197,8 @@ export declare type AccountAggType = {
170
197
  reference?: string;
171
198
  };
172
199
  export declare type AccountsAggType = {
173
- accounts: AccountAggType[];
200
+ accounts?: AccountAggType[];
201
+ unregisteredAccounts?: UnregisteredOffersType;
174
202
  };
175
203
  export declare type StandardByDateAggType = {
176
204
  date?: string;
@@ -221,6 +249,7 @@ export declare type CheckByDateType = {
221
249
  date?: string;
222
250
  flagged?: number;
223
251
  isFailed?: boolean;
252
+ name?: string;
224
253
  processed?: number;
225
254
  score?: number;
226
255
  };
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.46.0-rc.bdj.3",
7
+ "version": "3.46.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -1,11 +0,0 @@
1
- import { AbstractGraphQLClient } from '../abstractGraphQLClient';
2
- import { SelectAllQueryType, SelectAllResultType, SelectOneQueryType, SelectOneResultType } from './types/graphqlApiQueries';
3
- export declare class GraphqlApiClient extends AbstractGraphQLClient {
4
- /**
5
- * The Path of graphql catalog API
6
- */
7
- private GRAPHQL;
8
- find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
9
- selectAll(query: SelectAllQueryType): Promise<SelectAllResultType | null>;
10
- selectOne(query: SelectOneQueryType): Promise<SelectOneResultType | null>;
11
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphqlApiClient = void 0;
4
- const abstractGraphQLClient_1 = require("../abstractGraphQLClient");
5
- class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
6
- constructor() {
7
- super(...arguments);
8
- /**
9
- * The Path of graphql catalog API
10
- */
11
- this.GRAPHQL = '';
12
- }
13
- async find(request) {
14
- this.path = this.GRAPHQL;
15
- try {
16
- return await this.post(request);
17
- }
18
- catch (error) {
19
- return null;
20
- }
21
- }
22
- async selectAll(query) {
23
- const queryStr = this.stringifyQuery(query);
24
- const result = await this.find(queryStr);
25
- return result;
26
- }
27
- async selectOne(query) {
28
- const queryStr = this.stringifyQuery(query);
29
- const result = await this.find(queryStr);
30
- return result;
31
- }
32
- }
33
- exports.GraphqlApiClient = GraphqlApiClient;
34
- //# sourceMappingURL=graphqlApiClient.js.map
@@ -1,7 +0,0 @@
1
- export * from './types/graphqlApiQueries';
2
- export * from './types/graphqlApiSchemas';
3
- export * from './types/entities/company';
4
- export * from './types/entities/country';
5
- export * from './types/entities/partnertag';
6
- export * from './types/entities/workgroup';
7
- export * from './graphqlApiClient';
@@ -1,24 +0,0 @@
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("./types/graphqlApiQueries"), exports);
18
- __exportStar(require("./types/graphqlApiSchemas"), exports);
19
- __exportStar(require("./types/entities/company"), exports);
20
- __exportStar(require("./types/entities/country"), exports);
21
- __exportStar(require("./types/entities/partnertag"), exports);
22
- __exportStar(require("./types/entities/workgroup"), exports);
23
- __exportStar(require("./graphqlApiClient"), exports);
24
- //# sourceMappingURL=index.js.map
@@ -1,33 +0,0 @@
1
- import { CountryType } from './country';
2
- import { PartnertagType } from './partnertag';
3
- import { WorkgroupType } from './workgroup';
4
- declare type BaseCompanyType = {
5
- acronym?: string;
6
- address1?: string;
7
- address2?: string;
8
- billingId?: string;
9
- city?: string;
10
- createdAt?: string;
11
- deletedAt?: string;
12
- enabled?: boolean;
13
- erpId?: string;
14
- id?: number;
15
- internalReference?: string;
16
- locked?: boolean;
17
- name?: string;
18
- partnerRef?: string;
19
- partnerTags?: PartnertagType[];
20
- phone?: string;
21
- state?: string;
22
- vatNumber?: string;
23
- zip?: string;
24
- };
25
- export declare type EndCustomerType = BaseCompanyType & {
26
- partner?: PartnerType;
27
- };
28
- export declare type PartnerType = BaseCompanyType & {
29
- country?: CountryType;
30
- workgroup?: WorkgroupType;
31
- };
32
- export declare type ArrowCompanyType = Omit<BaseCompanyType, 'partnerTags'>;
33
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=company.js.map
@@ -1,14 +0,0 @@
1
- export declare type ContinentType = {
2
- id?: number;
3
- name?: string;
4
- };
5
- export declare type CountryType = {
6
- code2?: string;
7
- code3?: string;
8
- continent?: ContinentType;
9
- id?: number;
10
- lat?: number;
11
- lng?: number;
12
- name?: string;
13
- phoneCode?: string;
14
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=country.js.map
@@ -1,6 +0,0 @@
1
- export declare type PartnertagType = {
2
- createdAt?: string;
3
- description?: string;
4
- id?: number;
5
- label?: string;
6
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=partnertag.js.map
@@ -1,7 +0,0 @@
1
- import { ArrowCompanyType } from './company';
2
- export declare type WorkgroupType = {
3
- arrowCompany?: ArrowCompanyType;
4
- code?: string;
5
- id?: number;
6
- name?: string;
7
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=workgroup.js.map
@@ -1,207 +0,0 @@
1
- import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
2
- import { ContinentType, CountryType } from './entities/country';
3
- import { PartnertagType } from './entities/partnertag';
4
- import { WorkgroupType } from './entities/workgroup';
5
- import { ArrowCompanySchema, ContinentSchema, CountrySchema, EndCustomerSchema, ErrorsSchema, PageSchema, PartnerSchema, PartnertagSchema, WorkgroupSchema } from './graphqlApiSchemas';
6
- /**
7
- * For field __args
8
- */
9
- export declare enum ComparisonOperator {
10
- BETWEEN = "BETWEEN",
11
- CONTAINS = "CONTAINS",
12
- ENDS_WITH = "ENDS_WITH",
13
- EQUALS = "EQUALS",
14
- GREAT_THAN = "GREAT_THAN",
15
- GREAT_THAN_OR_EQUALS = "GREAT_THAN_OR_EQUALS",
16
- IS_NULL = "IS_NULL",
17
- LESS_THAN = "LESS_THAN",
18
- LESS_THAN_OR_EQUALS = "LESS_THAN_OR_EQUALS",
19
- STARTS_WITH = "STARTS_WITH",
20
- DIFFERENT = "DIFFERENT"
21
- }
22
- export declare enum LogicalOperator {
23
- AND = "AND",
24
- OR = "OR"
25
- }
26
- export declare enum QueryModifier {
27
- ALL = "ALL",
28
- DISTINCT = "DISTINCT",
29
- DISTINCTROW = "DISTINCTROW",
30
- HIGH_PRIORITY = "HIGH_PRIORITY",
31
- SQL_BIG_RESULT = "SQL_BIG_RESULT",
32
- SQL_BUFFER_RESULT = "SQL_BUFFER_RESULT",
33
- SQL_CALC_FOUND_ROWS = "SQL_CALC_FOUND_ROWS",
34
- SQL_NO_CACHE = "SQL_NO_CACHE",
35
- SQL_SMALL_RESULT = "SQL_SMALL_RESULT",
36
- STRAIGHT_JOIN = "STRAIGHT_JOIN"
37
- }
38
- export declare enum Direction {
39
- ASC = "ASC",
40
- DESC = "DESC",
41
- asc = "asc",
42
- desc = "desc"
43
- }
44
- export declare enum InputPaginationField {
45
- PAGE = "page",
46
- PER_PAGE = "perPage"
47
- }
48
- export declare type InputPaginationType = {
49
- [InputPaginationField.PAGE]?: number;
50
- [InputPaginationField.PER_PAGE]?: number;
51
- };
52
- export declare enum InputSortFilterField {
53
- DIRECTION = "direction",
54
- NAME = "name"
55
- }
56
- export declare type InputSortFilterType = {
57
- [InputSortFilterField.DIRECTION]?: Direction;
58
- [InputSortFilterField.NAME]?: string;
59
- };
60
- export declare enum InputSearchFilterField {
61
- GROUPS = "groups",
62
- LOGICAL_OPERATOR = "logicalOperator"
63
- }
64
- export declare type InputSearchFilterType = {
65
- [InputSearchFilterField.GROUPS]?: InputFiltersType[];
66
- [InputSearchFilterField.LOGICAL_OPERATOR]?: LogicalOperator;
67
- };
68
- export declare enum InputFiltersField {
69
- ITEMS = "items",
70
- LOGICAL_OPERATOR = "logicalOperator"
71
- }
72
- export declare type InputFiltersType = {
73
- [InputFiltersField.ITEMS]?: InputFilterValueType[];
74
- [InputFiltersField.LOGICAL_OPERATOR]?: LogicalOperator;
75
- };
76
- export declare enum InputFilterValueField {
77
- NAME = "name",
78
- OPERATOR = "operator",
79
- VALUE = "value"
80
- }
81
- export declare type InputFilterValueType = {
82
- [InputFilterValueField.NAME]?: string;
83
- [InputFilterValueField.OPERATOR]?: ComparisonOperator;
84
- [InputFilterValueField.VALUE]?: string[];
85
- };
86
- export declare enum SelectableField {
87
- DATA = "data",
88
- ERRORS = "errors",
89
- PAGINATION = "pagination"
90
- }
91
- export declare enum SelectDataField {
92
- ARROW_COMPANY = "arrowCompany",
93
- CONTINENT = "continent",
94
- COUNTRY = "country",
95
- END_CUSTOMER = "endCustomer",
96
- PARTNER = "partner",
97
- PARTNERTAG = "partnertag",
98
- WORKGROUP = "workgroup"
99
- }
100
- export declare type SelectAllResultType = {
101
- [Queries.SELECT_ALL]: {
102
- [SelectableField.DATA]?: SelectAllResponseDataType;
103
- [SelectableField.ERRORS]?: ErrorsType;
104
- [SelectableField.PAGINATION]?: PageType;
105
- };
106
- };
107
- export declare type SelectAllResponseDataType = {
108
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType[];
109
- [SelectDataField.CONTINENT]?: ContinentType[];
110
- [SelectDataField.COUNTRY]?: CountryType[];
111
- [SelectDataField.END_CUSTOMER]?: EndCustomerType[];
112
- [SelectDataField.PARTNER]?: PartnerType[];
113
- [SelectDataField.PARTNERTAG]?: PartnertagType[];
114
- [SelectDataField.WORKGROUP]?: WorkgroupType[];
115
- };
116
- export declare enum ErrorsField {
117
- CODE = "code",
118
- MESSAGE = "message"
119
- }
120
- export declare type ErrorsType = {
121
- [ErrorsField.CODE]?: string;
122
- [ErrorsField.MESSAGE]?: string;
123
- };
124
- export declare enum PaginationField {
125
- CURRENT_PAGE = "currentPage",
126
- NEXT = "next",
127
- PER_PAGE = "perPage",
128
- PREVIOUS = "previous",
129
- TOTAL = "total",
130
- TOTAL_PAGE = "totalPage",
131
- TOTAL_PAGES = "totalPages"
132
- }
133
- export declare type PageType = {
134
- [PaginationField.CURRENT_PAGE]?: number;
135
- [PaginationField.NEXT]?: number;
136
- [PaginationField.PER_PAGE]?: number;
137
- [PaginationField.PREVIOUS]?: number;
138
- [PaginationField.TOTAL]?: number;
139
- [PaginationField.TOTAL_PAGE]?: number;
140
- [PaginationField.TOTAL_PAGES]?: number;
141
- };
142
- export declare type SelectOneResultType = {
143
- [Queries.SELECT_ONE]: {
144
- [SelectableField.DATA]?: SelectOneResponseDataType;
145
- [SelectableField.ERRORS]?: ErrorsType;
146
- };
147
- };
148
- export declare type SelectOneResponseDataType = {
149
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType;
150
- [SelectDataField.CONTINENT]?: ContinentType;
151
- [SelectDataField.COUNTRY]?: CountryType;
152
- [SelectDataField.END_CUSTOMER]?: EndCustomerType;
153
- [SelectDataField.PARTNER]?: PartnerType;
154
- [SelectDataField.PARTNERTAG]?: PartnertagType;
155
- [SelectDataField.WORKGROUP]?: WorkgroupType;
156
- };
157
- export declare enum QueryVariablesField {
158
- AGGREGATOR_FILTER = "aggregatorFilter",
159
- EXCLUSION_FILTERS = "exclusionFilters",
160
- FILTERS = "filters",
161
- PAGINATION = "pagination",
162
- QUERY_MODIFIER = "queryModifier",
163
- SORT = "sort"
164
- }
165
- export declare type QueryVariablesType = {
166
- [QueryVariablesField.AGGREGATOR_FILTER]?: string[];
167
- [QueryVariablesField.EXCLUSION_FILTERS]?: InputSearchFilterType;
168
- [QueryVariablesField.FILTERS]?: InputSearchFilterType;
169
- [QueryVariablesField.PAGINATION]?: InputPaginationType;
170
- [QueryVariablesField.QUERY_MODIFIER]?: QueryModifier;
171
- [QueryVariablesField.SORT]?: InputSortFilterType[];
172
- };
173
- export declare enum Queries {
174
- SELECT_ALL = "selectAll",
175
- SELECT_ONE = "selectOne"
176
- }
177
- export declare type SelectOneQueryType = {
178
- [Queries.SELECT_ONE]: {
179
- __args?: Omit<QueryVariablesType, QueryVariablesField.PAGINATION>;
180
- [SelectableField.DATA]: {
181
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
182
- [SelectDataField.CONTINENT]?: ContinentSchema;
183
- [SelectDataField.COUNTRY]?: CountrySchema;
184
- [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
185
- [SelectDataField.PARTNER]?: PartnerSchema;
186
- [SelectDataField.PARTNERTAG]?: PartnertagSchema;
187
- [SelectDataField.WORKGROUP]?: WorkgroupSchema;
188
- };
189
- [SelectableField.ERRORS]?: ErrorsSchema;
190
- };
191
- };
192
- export declare type SelectAllQueryType = {
193
- [Queries.SELECT_ALL]: {
194
- __args?: QueryVariablesType;
195
- [SelectableField.DATA]: {
196
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
197
- [SelectDataField.CONTINENT]?: ContinentSchema;
198
- [SelectDataField.COUNTRY]?: CountrySchema;
199
- [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
200
- [SelectDataField.PARTNER]?: PartnerSchema;
201
- [SelectDataField.PARTNERTAG]?: PartnertagSchema;
202
- [SelectDataField.WORKGROUP]?: WorkgroupSchema;
203
- };
204
- [SelectableField.ERRORS]?: ErrorsSchema;
205
- [SelectableField.PAGINATION]?: PageSchema;
206
- };
207
- };
@@ -1,117 +0,0 @@
1
- "use strict";
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;
4
- /**
5
- * For field __args
6
- */
7
- var ComparisonOperator;
8
- (function (ComparisonOperator) {
9
- ComparisonOperator["BETWEEN"] = "BETWEEN";
10
- ComparisonOperator["CONTAINS"] = "CONTAINS";
11
- ComparisonOperator["ENDS_WITH"] = "ENDS_WITH";
12
- ComparisonOperator["EQUALS"] = "EQUALS";
13
- ComparisonOperator["GREAT_THAN"] = "GREAT_THAN";
14
- ComparisonOperator["GREAT_THAN_OR_EQUALS"] = "GREAT_THAN_OR_EQUALS";
15
- ComparisonOperator["IS_NULL"] = "IS_NULL";
16
- ComparisonOperator["LESS_THAN"] = "LESS_THAN";
17
- ComparisonOperator["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
18
- ComparisonOperator["STARTS_WITH"] = "STARTS_WITH";
19
- ComparisonOperator["DIFFERENT"] = "DIFFERENT";
20
- })(ComparisonOperator = exports.ComparisonOperator || (exports.ComparisonOperator = {}));
21
- var LogicalOperator;
22
- (function (LogicalOperator) {
23
- LogicalOperator["AND"] = "AND";
24
- LogicalOperator["OR"] = "OR";
25
- })(LogicalOperator = exports.LogicalOperator || (exports.LogicalOperator = {}));
26
- var QueryModifier;
27
- (function (QueryModifier) {
28
- QueryModifier["ALL"] = "ALL";
29
- QueryModifier["DISTINCT"] = "DISTINCT";
30
- QueryModifier["DISTINCTROW"] = "DISTINCTROW";
31
- QueryModifier["HIGH_PRIORITY"] = "HIGH_PRIORITY";
32
- QueryModifier["SQL_BIG_RESULT"] = "SQL_BIG_RESULT";
33
- QueryModifier["SQL_BUFFER_RESULT"] = "SQL_BUFFER_RESULT";
34
- QueryModifier["SQL_CALC_FOUND_ROWS"] = "SQL_CALC_FOUND_ROWS";
35
- QueryModifier["SQL_NO_CACHE"] = "SQL_NO_CACHE";
36
- QueryModifier["SQL_SMALL_RESULT"] = "SQL_SMALL_RESULT";
37
- QueryModifier["STRAIGHT_JOIN"] = "STRAIGHT_JOIN";
38
- })(QueryModifier = exports.QueryModifier || (exports.QueryModifier = {}));
39
- var Direction;
40
- (function (Direction) {
41
- Direction["ASC"] = "ASC";
42
- Direction["DESC"] = "DESC";
43
- Direction["asc"] = "asc";
44
- Direction["desc"] = "desc";
45
- })(Direction = exports.Direction || (exports.Direction = {}));
46
- var InputPaginationField;
47
- (function (InputPaginationField) {
48
- InputPaginationField["PAGE"] = "page";
49
- InputPaginationField["PER_PAGE"] = "perPage";
50
- })(InputPaginationField = exports.InputPaginationField || (exports.InputPaginationField = {}));
51
- var InputSortFilterField;
52
- (function (InputSortFilterField) {
53
- InputSortFilterField["DIRECTION"] = "direction";
54
- InputSortFilterField["NAME"] = "name";
55
- })(InputSortFilterField = exports.InputSortFilterField || (exports.InputSortFilterField = {}));
56
- var InputSearchFilterField;
57
- (function (InputSearchFilterField) {
58
- InputSearchFilterField["GROUPS"] = "groups";
59
- InputSearchFilterField["LOGICAL_OPERATOR"] = "logicalOperator";
60
- })(InputSearchFilterField = exports.InputSearchFilterField || (exports.InputSearchFilterField = {}));
61
- var InputFiltersField;
62
- (function (InputFiltersField) {
63
- InputFiltersField["ITEMS"] = "items";
64
- InputFiltersField["LOGICAL_OPERATOR"] = "logicalOperator";
65
- })(InputFiltersField = exports.InputFiltersField || (exports.InputFiltersField = {}));
66
- var InputFilterValueField;
67
- (function (InputFilterValueField) {
68
- InputFilterValueField["NAME"] = "name";
69
- InputFilterValueField["OPERATOR"] = "operator";
70
- InputFilterValueField["VALUE"] = "value";
71
- })(InputFilterValueField = exports.InputFilterValueField || (exports.InputFilterValueField = {}));
72
- var SelectableField;
73
- (function (SelectableField) {
74
- SelectableField["DATA"] = "data";
75
- SelectableField["ERRORS"] = "errors";
76
- SelectableField["PAGINATION"] = "pagination";
77
- })(SelectableField = exports.SelectableField || (exports.SelectableField = {}));
78
- var SelectDataField;
79
- (function (SelectDataField) {
80
- SelectDataField["ARROW_COMPANY"] = "arrowCompany";
81
- SelectDataField["CONTINENT"] = "continent";
82
- SelectDataField["COUNTRY"] = "country";
83
- SelectDataField["END_CUSTOMER"] = "endCustomer";
84
- SelectDataField["PARTNER"] = "partner";
85
- SelectDataField["PARTNERTAG"] = "partnertag";
86
- SelectDataField["WORKGROUP"] = "workgroup";
87
- })(SelectDataField = exports.SelectDataField || (exports.SelectDataField = {}));
88
- var ErrorsField;
89
- (function (ErrorsField) {
90
- ErrorsField["CODE"] = "code";
91
- ErrorsField["MESSAGE"] = "message";
92
- })(ErrorsField = exports.ErrorsField || (exports.ErrorsField = {}));
93
- var PaginationField;
94
- (function (PaginationField) {
95
- PaginationField["CURRENT_PAGE"] = "currentPage";
96
- PaginationField["NEXT"] = "next";
97
- PaginationField["PER_PAGE"] = "perPage";
98
- PaginationField["PREVIOUS"] = "previous";
99
- PaginationField["TOTAL"] = "total";
100
- PaginationField["TOTAL_PAGE"] = "totalPage";
101
- PaginationField["TOTAL_PAGES"] = "totalPages";
102
- })(PaginationField = exports.PaginationField || (exports.PaginationField = {}));
103
- var QueryVariablesField;
104
- (function (QueryVariablesField) {
105
- QueryVariablesField["AGGREGATOR_FILTER"] = "aggregatorFilter";
106
- QueryVariablesField["EXCLUSION_FILTERS"] = "exclusionFilters";
107
- QueryVariablesField["FILTERS"] = "filters";
108
- QueryVariablesField["PAGINATION"] = "pagination";
109
- QueryVariablesField["QUERY_MODIFIER"] = "queryModifier";
110
- QueryVariablesField["SORT"] = "sort";
111
- })(QueryVariablesField = exports.QueryVariablesField || (exports.QueryVariablesField = {}));
112
- var Queries;
113
- (function (Queries) {
114
- Queries["SELECT_ALL"] = "selectAll";
115
- Queries["SELECT_ONE"] = "selectOne";
116
- })(Queries = exports.Queries || (exports.Queries = {}));
117
- //# sourceMappingURL=graphqlApiQueries.js.map
@@ -1,52 +0,0 @@
1
- import { Merge, Schema } from 'type-fest';
2
- import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
3
- import { PartnertagType } from './entities/partnertag';
4
- import { ContinentType, CountryType } from './entities/country';
5
- import { WorkgroupType } from './entities/workgroup';
6
- import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from './graphqlApiQueries';
7
- export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
8
- declare type MissingFieldsOfCompanySchema = {
9
- partnerTags?: PartnertagSchema;
10
- };
11
- export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfCompanySchema>;
12
- export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
13
- export declare type ArrowCompanySchema = Schema<ArrowCompanyType, boolean>;
14
- export declare type ContinentSchema = Schema<ContinentType, boolean>;
15
- export declare type CountrySchema = Schema<CountryType, boolean>;
16
- export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
17
- export declare type PageSchema = Schema<PageType, boolean>;
18
- export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
19
- export declare type SelectAllResultSchema = {
20
- [SelectableField.DATA]?: SelectAllResponseDataSchema;
21
- [SelectableField.ERRORS]?: ErrorsSchema;
22
- [SelectableField.PAGINATION]?: PageSchema;
23
- };
24
- export declare type SelectAllResponseDataSchema = {
25
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
26
- [SelectDataField.CONTINENT]?: ContinentSchema;
27
- [SelectDataField.COUNTRY]?: CountrySchema;
28
- [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
29
- [SelectDataField.PARTNER]?: PartnerSchema;
30
- [SelectDataField.PARTNERTAG]?: PartnertagSchema;
31
- [SelectDataField.WORKGROUP]?: WorkgroupSchema;
32
- };
33
- export declare type SelectOneResultSchema = {
34
- [SelectableField.DATA]?: SelectOneResponseDataSchema;
35
- [SelectableField.ERRORS]?: ErrorsSchema;
36
- };
37
- export declare type SelectOneResponseDataSchema = {
38
- [SelectDataField.ARROW_COMPANY]?: ArrowCompanySchema;
39
- [SelectDataField.CONTINENT]?: ContinentSchema;
40
- [SelectDataField.COUNTRY]?: CountrySchema;
41
- [SelectDataField.END_CUSTOMER]?: EndCustomerSchema;
42
- [SelectDataField.PARTNER]?: PartnerSchema;
43
- [SelectDataField.PARTNERTAG]?: PartnertagSchema;
44
- [SelectDataField.WORKGROUP]?: WorkgroupSchema;
45
- };
46
- export declare type SelectAllQuerySchema = {
47
- [Queries.SELECT_ALL]?: SelectAllResultSchema;
48
- };
49
- export declare type SelectOneQuerySchema = {
50
- [Queries.SELECT_ONE]?: SelectOneResultSchema;
51
- };
52
- export {};
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const graphqlApiQueries_1 = require("./graphqlApiQueries");
4
- //# sourceMappingURL=graphqlApiSchemas.js.map