@arrowsphere/api-client 3.45.0 → 3.46.0-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.
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,34 @@
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
@@ -0,0 +1,7 @@
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';
@@ -0,0 +1,24 @@
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
@@ -0,0 +1,33 @@
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 {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=company.js.map
@@ -0,0 +1,14 @@
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
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=country.js.map
@@ -0,0 +1,6 @@
1
+ export declare type PartnertagType = {
2
+ createdAt?: string;
3
+ description?: string;
4
+ id?: number;
5
+ label?: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=partnertag.js.map
@@ -0,0 +1,7 @@
1
+ import { ArrowCompanyType } from './company';
2
+ export declare type WorkgroupType = {
3
+ arrowCompany?: ArrowCompanyType;
4
+ code?: string;
5
+ id?: number;
6
+ name?: string;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=workgroup.js.map
@@ -0,0 +1,207 @@
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, PaginationSchema, 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 InputPaginationFields {
45
+ PAGE = "page",
46
+ PER_PAGE = "perPage"
47
+ }
48
+ export declare type InputPaginationType = {
49
+ [InputPaginationFields.PAGE]?: number;
50
+ [InputPaginationFields.PER_PAGE]?: number;
51
+ };
52
+ export declare enum InputSortFilterFields {
53
+ DIRECTION = "direction",
54
+ NAME = "name"
55
+ }
56
+ export declare type InputSortFilterType = {
57
+ [InputSortFilterFields.DIRECTION]?: Direction;
58
+ [InputSortFilterFields.NAME]?: string;
59
+ };
60
+ export declare enum InputSearchFilterFields {
61
+ GROUPS = "groups",
62
+ LOGICAL_OPERATOR = "logicalOperator"
63
+ }
64
+ export declare type InputSearchFilterType = {
65
+ [InputSearchFilterFields.GROUPS]?: InputFiltersType[];
66
+ [InputSearchFilterFields.LOGICAL_OPERATOR]?: LogicalOperator;
67
+ };
68
+ export declare enum InputFiltersFields {
69
+ ITEMS = "items",
70
+ LOGICAL_OPERATOR = "logicalOperator"
71
+ }
72
+ export declare type InputFiltersType = {
73
+ [InputFiltersFields.ITEMS]?: InputFilterValueType[];
74
+ [InputFiltersFields.LOGICAL_OPERATOR]?: LogicalOperator;
75
+ };
76
+ export declare enum InputFilterValueFields {
77
+ NAME = "name",
78
+ OPERATOR = "operator",
79
+ VALUE = "value"
80
+ }
81
+ export declare type InputFilterValueType = {
82
+ [InputFilterValueFields.NAME]?: string;
83
+ [InputFilterValueFields.OPERATOR]?: ComparisonOperator;
84
+ [InputFilterValueFields.VALUE]?: string[];
85
+ };
86
+ export declare enum SelectableFields {
87
+ DATA = "data",
88
+ ERRORS = "errors",
89
+ PAGINATION = "pagination"
90
+ }
91
+ export declare enum SelectDataFields {
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
+ [SelectableFields.DATA]?: SelectAllResponseDataType;
103
+ [SelectableFields.ERRORS]?: ErrorsType;
104
+ [SelectableFields.PAGINATION]?: PaginationType;
105
+ };
106
+ };
107
+ export declare type SelectAllResponseDataType = {
108
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanyType[];
109
+ [SelectDataFields.CONTINENT]?: ContinentType[];
110
+ [SelectDataFields.COUNTRY]?: CountryType[];
111
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerType[];
112
+ [SelectDataFields.PARTNER]?: PartnerType[];
113
+ [SelectDataFields.PARTNERTAG]?: PartnertagType[];
114
+ [SelectDataFields.WORKGROUP]?: WorkgroupType[];
115
+ };
116
+ export declare enum ErrorsFields {
117
+ CODE = "code",
118
+ MESSAGE = "message"
119
+ }
120
+ export declare type ErrorsType = {
121
+ [ErrorsFields.CODE]?: string;
122
+ [ErrorsFields.MESSAGE]?: string;
123
+ };
124
+ export declare enum PaginationFields {
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 PaginationType = {
134
+ [PaginationFields.CURRENT_PAGE]?: number;
135
+ [PaginationFields.NEXT]?: number;
136
+ [PaginationFields.PER_PAGE]?: number;
137
+ [PaginationFields.PREVIOUS]?: number;
138
+ [PaginationFields.TOTAL]?: number;
139
+ [PaginationFields.TOTAL_PAGE]?: number;
140
+ [PaginationFields.TOTAL_PAGES]?: number;
141
+ };
142
+ export declare type SelectOneResultType = {
143
+ [Queries.SELECT_ONE]: {
144
+ [SelectableFields.DATA]?: SelectOneResponseDataType;
145
+ [SelectableFields.ERRORS]?: ErrorsType;
146
+ };
147
+ };
148
+ export declare type SelectOneResponseDataType = {
149
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanyType;
150
+ [SelectDataFields.CONTINENT]?: ContinentType;
151
+ [SelectDataFields.COUNTRY]?: CountryType;
152
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerType;
153
+ [SelectDataFields.PARTNER]?: PartnerType;
154
+ [SelectDataFields.PARTNERTAG]?: PartnertagType;
155
+ [SelectDataFields.WORKGROUP]?: WorkgroupType;
156
+ };
157
+ export declare enum QueryVariablesFields {
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
+ [QueryVariablesFields.AGGREGATOR_FILTER]?: string[];
167
+ [QueryVariablesFields.EXCLUSION_FILTERS]?: InputSearchFilterType;
168
+ [QueryVariablesFields.FILTERS]?: InputSearchFilterType;
169
+ [QueryVariablesFields.PAGINATION]?: InputPaginationType;
170
+ [QueryVariablesFields.QUERY_MODIFIER]?: QueryModifier;
171
+ [QueryVariablesFields.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, QueryVariablesFields.PAGINATION>;
180
+ [SelectableFields.DATA]: {
181
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanySchema;
182
+ [SelectDataFields.CONTINENT]?: ContinentSchema;
183
+ [SelectDataFields.COUNTRY]?: CountrySchema;
184
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerSchema;
185
+ [SelectDataFields.PARTNER]?: PartnerSchema;
186
+ [SelectDataFields.PARTNERTAG]?: PartnertagSchema;
187
+ [SelectDataFields.WORKGROUP]?: WorkgroupSchema;
188
+ };
189
+ [SelectableFields.ERRORS]?: ErrorsSchema;
190
+ };
191
+ };
192
+ export declare type SelectAllQueryType = {
193
+ [Queries.SELECT_ALL]: {
194
+ __args?: QueryVariablesType;
195
+ [SelectableFields.DATA]: {
196
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanySchema;
197
+ [SelectDataFields.CONTINENT]?: ContinentSchema;
198
+ [SelectDataFields.COUNTRY]?: CountrySchema;
199
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerSchema;
200
+ [SelectDataFields.PARTNER]?: PartnerSchema;
201
+ [SelectDataFields.PARTNERTAG]?: PartnertagSchema;
202
+ [SelectDataFields.WORKGROUP]?: WorkgroupSchema;
203
+ };
204
+ [SelectableFields.ERRORS]?: ErrorsSchema;
205
+ [SelectableFields.PAGINATION]?: PaginationSchema;
206
+ };
207
+ };
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Queries = exports.QueryVariablesFields = exports.PaginationFields = exports.ErrorsFields = exports.SelectDataFields = exports.SelectableFields = exports.InputFilterValueFields = exports.InputFiltersFields = exports.InputSearchFilterFields = exports.InputSortFilterFields = exports.InputPaginationFields = 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 InputPaginationFields;
47
+ (function (InputPaginationFields) {
48
+ InputPaginationFields["PAGE"] = "page";
49
+ InputPaginationFields["PER_PAGE"] = "perPage";
50
+ })(InputPaginationFields = exports.InputPaginationFields || (exports.InputPaginationFields = {}));
51
+ var InputSortFilterFields;
52
+ (function (InputSortFilterFields) {
53
+ InputSortFilterFields["DIRECTION"] = "direction";
54
+ InputSortFilterFields["NAME"] = "name";
55
+ })(InputSortFilterFields = exports.InputSortFilterFields || (exports.InputSortFilterFields = {}));
56
+ var InputSearchFilterFields;
57
+ (function (InputSearchFilterFields) {
58
+ InputSearchFilterFields["GROUPS"] = "groups";
59
+ InputSearchFilterFields["LOGICAL_OPERATOR"] = "logicalOperator";
60
+ })(InputSearchFilterFields = exports.InputSearchFilterFields || (exports.InputSearchFilterFields = {}));
61
+ var InputFiltersFields;
62
+ (function (InputFiltersFields) {
63
+ InputFiltersFields["ITEMS"] = "items";
64
+ InputFiltersFields["LOGICAL_OPERATOR"] = "logicalOperator";
65
+ })(InputFiltersFields = exports.InputFiltersFields || (exports.InputFiltersFields = {}));
66
+ var InputFilterValueFields;
67
+ (function (InputFilterValueFields) {
68
+ InputFilterValueFields["NAME"] = "name";
69
+ InputFilterValueFields["OPERATOR"] = "operator";
70
+ InputFilterValueFields["VALUE"] = "value";
71
+ })(InputFilterValueFields = exports.InputFilterValueFields || (exports.InputFilterValueFields = {}));
72
+ var SelectableFields;
73
+ (function (SelectableFields) {
74
+ SelectableFields["DATA"] = "data";
75
+ SelectableFields["ERRORS"] = "errors";
76
+ SelectableFields["PAGINATION"] = "pagination";
77
+ })(SelectableFields = exports.SelectableFields || (exports.SelectableFields = {}));
78
+ var SelectDataFields;
79
+ (function (SelectDataFields) {
80
+ SelectDataFields["ARROW_COMPANY"] = "arrowCompany";
81
+ SelectDataFields["CONTINENT"] = "continent";
82
+ SelectDataFields["COUNTRY"] = "country";
83
+ SelectDataFields["END_CUSTOMER"] = "endCustomer";
84
+ SelectDataFields["PARTNER"] = "partner";
85
+ SelectDataFields["PARTNERTAG"] = "partnertag";
86
+ SelectDataFields["WORKGROUP"] = "workgroup";
87
+ })(SelectDataFields = exports.SelectDataFields || (exports.SelectDataFields = {}));
88
+ var ErrorsFields;
89
+ (function (ErrorsFields) {
90
+ ErrorsFields["CODE"] = "code";
91
+ ErrorsFields["MESSAGE"] = "message";
92
+ })(ErrorsFields = exports.ErrorsFields || (exports.ErrorsFields = {}));
93
+ var PaginationFields;
94
+ (function (PaginationFields) {
95
+ PaginationFields["CURRENT_PAGE"] = "currentPage";
96
+ PaginationFields["NEXT"] = "next";
97
+ PaginationFields["PER_PAGE"] = "perPage";
98
+ PaginationFields["PREVIOUS"] = "previous";
99
+ PaginationFields["TOTAL"] = "total";
100
+ PaginationFields["TOTAL_PAGE"] = "totalPage";
101
+ PaginationFields["TOTAL_PAGES"] = "totalPages";
102
+ })(PaginationFields = exports.PaginationFields || (exports.PaginationFields = {}));
103
+ var QueryVariablesFields;
104
+ (function (QueryVariablesFields) {
105
+ QueryVariablesFields["AGGREGATOR_FILTER"] = "aggregatorFilter";
106
+ QueryVariablesFields["EXCLUSION_FILTERS"] = "exclusionFilters";
107
+ QueryVariablesFields["FILTERS"] = "filters";
108
+ QueryVariablesFields["PAGINATION"] = "pagination";
109
+ QueryVariablesFields["QUERY_MODIFIER"] = "queryModifier";
110
+ QueryVariablesFields["SORT"] = "sort";
111
+ })(QueryVariablesFields = exports.QueryVariablesFields || (exports.QueryVariablesFields = {}));
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
@@ -0,0 +1,52 @@
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, PaginationType, Queries, SelectDataFields, SelectableFields } 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 PaginationSchema = Schema<PaginationType, boolean>;
18
+ export declare type WorkgroupSchema = Schema<WorkgroupType, boolean>;
19
+ export declare type SelectAllResultSchema = {
20
+ [SelectableFields.DATA]?: SelectAllResponseDataSchema;
21
+ [SelectableFields.ERRORS]?: ErrorsSchema;
22
+ [SelectableFields.PAGINATION]?: PaginationSchema;
23
+ };
24
+ export declare type SelectAllResponseDataSchema = {
25
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanySchema;
26
+ [SelectDataFields.CONTINENT]?: ContinentSchema;
27
+ [SelectDataFields.COUNTRY]?: CountrySchema;
28
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerSchema;
29
+ [SelectDataFields.PARTNER]?: PartnerSchema;
30
+ [SelectDataFields.PARTNERTAG]?: PartnertagSchema;
31
+ [SelectDataFields.WORKGROUP]?: WorkgroupSchema;
32
+ };
33
+ export declare type SelectOneResultSchema = {
34
+ [SelectableFields.DATA]?: SelectOneResponseDataSchema;
35
+ [SelectableFields.ERRORS]?: ErrorsSchema;
36
+ };
37
+ export declare type SelectOneResponseDataSchema = {
38
+ [SelectDataFields.ARROW_COMPANY]?: ArrowCompanySchema;
39
+ [SelectDataFields.CONTINENT]?: ContinentSchema;
40
+ [SelectDataFields.COUNTRY]?: CountrySchema;
41
+ [SelectDataFields.END_CUSTOMER]?: EndCustomerSchema;
42
+ [SelectDataFields.PARTNER]?: PartnerSchema;
43
+ [SelectDataFields.PARTNERTAG]?: PartnertagSchema;
44
+ [SelectDataFields.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 {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const graphqlApiQueries_1 = require("./graphqlApiQueries");
4
+ //# sourceMappingURL=graphqlApiSchemas.js.map
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.45.0",
7
+ "version": "3.46.0-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",