@arrowsphere/api-client 3.168.0 → 3.170.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.
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.169.0] - 2025.02.07
7
+
8
+ ### Added
9
+ - [order] Define a new type for programs
10
+ - [graphql-api] add queries getLocalContact, getSpecialPriceRatesHistory
11
+ ### Updated
12
+ - [graphql-api] update query findOneById
13
+
6
14
  ## [3.168.0] - 2025.02.05
7
15
 
8
16
  ### Added
@@ -1,7 +1,7 @@
1
1
  import { AbstractGraphQLClient } from '../abstractGraphQLClient';
2
2
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './types/entities/company';
3
- import { InputPaginationType, SelectAllQueryType, SelectAllResultType, SelectOneQueryType, SelectOneResultType } from './types/graphqlApiQueries';
4
- import { ArrowCompanySchema, EndCustomerSchema, PartnerSchema, SelectOneResponseDataSchema } from './types/graphqlApiSchemas';
3
+ import { GetLocalContactResultType, GetSpecialPriceRatesHistoryResultType, InputPaginationType, InputSearchFilterType, QueryVariablesType, SelectAllQueryType, SelectAllResultType, SelectOneQueryType, SelectOneResultType } from './types/graphqlApiQueries';
4
+ import { ArrowCompanySchema, ContactsSchema, EndCustomerSchema, PageSchema, PartnerSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './types/graphqlApiSchemas';
5
5
  export declare class GraphqlApiClient extends AbstractGraphQLClient {
6
6
  /**
7
7
  * The Path of graphql catalog API
@@ -10,8 +10,10 @@ export declare class GraphqlApiClient extends AbstractGraphQLClient {
10
10
  find<GraphQLResponseTypes>(request: string): Promise<GraphQLResponseTypes | null>;
11
11
  selectAll(query: SelectAllQueryType): Promise<SelectAllResultType | null>;
12
12
  selectOne(query: SelectOneQueryType): Promise<SelectOneResultType | null>;
13
- findOneById<T>(id: number, fieldSchema: SelectOneResponseDataSchema, pagination?: InputPaginationType): Promise<T | null>;
13
+ findOneById<T>(id: number, fieldSchema: SelectOneResponseDataSchema, pagination?: InputPaginationType, filters?: InputSearchFilterType, exclusionFilters?: InputSearchFilterType): Promise<T | null>;
14
14
  findEndCustomerById(id: number, fields: EndCustomerSchema, pagination?: InputPaginationType): Promise<EndCustomerType | null>;
15
15
  findPartnerById(id: number, fields: PartnerSchema, pagination?: InputPaginationType): Promise<PartnerType | null>;
16
16
  findArrowCompanyById(id: number, fields: ArrowCompanySchema, pagination?: InputPaginationType): Promise<ArrowCompanyType | null>;
17
+ getLocalContact(programInternalName: string, partnerId: number, fieldSchema: ContactsSchema): Promise<GetLocalContactResultType | null>;
18
+ getSpecialPriceRatesHistory(licenseId: number, fieldSchema: SpecialPriceRateSchema, pagination?: PageSchema, additionalParams?: QueryVariablesType): Promise<GetSpecialPriceRatesHistoryResultType | null>;
17
19
  }
@@ -30,27 +30,17 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
30
30
  const result = await this.find(queryStr);
31
31
  return result;
32
32
  }
33
- async findOneById(id, fieldSchema, pagination) {
34
- var _a, _b, _c, _d, _e, _f, _g, _h;
33
+ async findOneById(id, fieldSchema, pagination, filters, exclusionFilters) {
34
+ var _a, _b, _c, _d, _e;
35
35
  const keys = Object.keys(fieldSchema);
36
36
  if (keys.length === 0) {
37
37
  return null;
38
38
  }
39
39
  const type = keys[0];
40
40
  const queryArguments = {
41
- [graphqlApiQueries_1.QueryVariablesField.FILTERS]: {
42
- [graphqlApiQueries_1.InputSearchFilterField.GROUPS]: [
43
- {
44
- [graphqlApiQueries_1.InputFiltersField.ITEMS]: [
45
- {
46
- [graphqlApiQueries_1.InputFilterValueField.NAME]: 'id',
47
- [graphqlApiQueries_1.InputFilterValueField.OPERATOR]: graphqlApiQueries_1.ComparisonOperator.EQUALS,
48
- [graphqlApiQueries_1.InputFilterValueField.VALUE]: [`${id}`],
49
- },
50
- ],
51
- },
52
- ],
53
- },
41
+ id,
42
+ filters,
43
+ exclusionFilters,
54
44
  };
55
45
  if ((pagination === null || pagination === void 0 ? void 0 : pagination[graphqlApiQueries_1.InputPaginationField.PER_PAGE]) ||
56
46
  (pagination === null || pagination === void 0 ? void 0 : pagination[graphqlApiQueries_1.InputPaginationField.PAGE])) {
@@ -65,7 +55,7 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
65
55
  }
66
56
  }
67
57
  const query = {
68
- [graphqlApiQueries_1.Queries.SELECT_ONE]: {
58
+ [graphqlApiQueries_1.Queries.SELECT_ONE_BY_ID]: {
69
59
  __args: queryArguments,
70
60
  [graphqlApiQueries_1.SelectableField.DATA]: fieldSchema,
71
61
  [graphqlApiQueries_1.SelectableField.ERRORS]: {
@@ -75,10 +65,10 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
75
65
  };
76
66
  const queryStr = this.stringifyQuery(query);
77
67
  const result = await this.find(queryStr);
78
- if ((_d = (_c = (_b = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE]) === null || _b === void 0 ? void 0 : _b[graphqlApiQueries_1.SelectableField.ERRORS]) === null || _c === void 0 ? void 0 : _c[graphqlApiQueries_1.ErrorsField.MESSAGE]) === null || _d === void 0 ? void 0 : _d.length) {
79
- throw new Error((_f = (_e = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE]) === null || _e === void 0 ? void 0 : _e[graphqlApiQueries_1.SelectableField.ERRORS]) === null || _f === void 0 ? void 0 : _f[graphqlApiQueries_1.ErrorsField.MESSAGE]);
68
+ if ((_c = (_b = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE_BY_ID][graphqlApiQueries_1.SelectableField.ERRORS]) === null || _b === void 0 ? void 0 : _b[graphqlApiQueries_1.ErrorsField.MESSAGE]) === null || _c === void 0 ? void 0 : _c.length) {
69
+ throw new Error((_d = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE_BY_ID][graphqlApiQueries_1.SelectableField.ERRORS]) === null || _d === void 0 ? void 0 : _d[graphqlApiQueries_1.ErrorsField.MESSAGE]);
80
70
  }
81
- return (_h = (_g = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE]) === null || _g === void 0 ? void 0 : _g[graphqlApiQueries_1.SelectableField.DATA]) === null || _h === void 0 ? void 0 : _h[type];
71
+ return (_e = result === null || result === void 0 ? void 0 : result[graphqlApiQueries_1.Queries.SELECT_ONE_BY_ID][graphqlApiQueries_1.SelectableField.DATA]) === null || _e === void 0 ? void 0 : _e[type];
82
72
  }
83
73
  async findEndCustomerById(id, fields, pagination) {
84
74
  return await this.findOneById(id, {
@@ -95,6 +85,41 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
95
85
  [graphqlApiQueries_1.SelectDataField.ARROW_COMPANY]: fields,
96
86
  }, pagination);
97
87
  }
88
+ async getLocalContact(programInternalName, partnerId, fieldSchema) {
89
+ const query = {
90
+ [graphqlApiQueries_1.Queries.GET_LOCAL_CONTACT]: {
91
+ __args: {
92
+ programInternalName,
93
+ partnerId,
94
+ },
95
+ [graphqlApiQueries_1.SelectableField.DATA]: {
96
+ contact: fieldSchema,
97
+ },
98
+ [graphqlApiQueries_1.SelectableField.ERRORS]: {
99
+ [graphqlApiQueries_1.ErrorsField.MESSAGE]: true,
100
+ },
101
+ },
102
+ };
103
+ return await this.find(this.stringifyQuery(query));
104
+ }
105
+ async getSpecialPriceRatesHistory(licenseId, fieldSchema, pagination, additionalParams) {
106
+ const query = {
107
+ [graphqlApiQueries_1.Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
108
+ __args: {
109
+ licenseId,
110
+ ...additionalParams,
111
+ },
112
+ [graphqlApiQueries_1.SelectableField.DATA]: {
113
+ specialPriceRate: fieldSchema,
114
+ },
115
+ [graphqlApiQueries_1.SelectableField.ERRORS]: {
116
+ [graphqlApiQueries_1.ErrorsField.MESSAGE]: true,
117
+ },
118
+ [graphqlApiQueries_1.SelectableField.PAGINATION]: pagination,
119
+ },
120
+ };
121
+ return await this.find(this.stringifyQuery(query));
122
+ }
98
123
  }
99
124
  exports.GraphqlApiClient = GraphqlApiClient;
100
125
  //# sourceMappingURL=graphqlApiClient.js.map
@@ -10,8 +10,10 @@ export * from './types/entities/organizationUnit';
10
10
  export * from './types/entities/partnertag';
11
11
  export * from './types/entities/program';
12
12
  export * from './types/entities/quote';
13
+ export * from './types/entities/report';
13
14
  export * from './types/entities/subscription';
14
15
  export * from './types/entities/specialPriceRate';
16
+ export * from './types/entities/unit';
15
17
  export * from './types/entities/user';
16
18
  export * from './types/entities/vendor';
17
19
  export * from './types/entities/workgroup';
@@ -26,8 +26,10 @@ __exportStar(require("./types/entities/organizationUnit"), exports);
26
26
  __exportStar(require("./types/entities/partnertag"), exports);
27
27
  __exportStar(require("./types/entities/program"), exports);
28
28
  __exportStar(require("./types/entities/quote"), exports);
29
+ __exportStar(require("./types/entities/report"), exports);
29
30
  __exportStar(require("./types/entities/subscription"), exports);
30
31
  __exportStar(require("./types/entities/specialPriceRate"), exports);
32
+ __exportStar(require("./types/entities/unit"), exports);
31
33
  __exportStar(require("./types/entities/user"), exports);
32
34
  __exportStar(require("./types/entities/vendor"), exports);
33
35
  __exportStar(require("./types/entities/workgroup"), exports);
@@ -1,4 +1,5 @@
1
1
  import { ContactsType } from './contact';
2
+ import { CountableType } from './counting';
2
3
  import { CountryType } from './country';
3
4
  import { CurrencyType } from './currency';
4
5
  import { OrdersType } from './order';
@@ -40,10 +41,6 @@ export declare type EndCustomerType = BaseCompanyType & {
40
41
  country?: CountryType;
41
42
  partner?: PartnerType;
42
43
  };
43
- declare type CountableType = {
44
- id?: number;
45
- total?: number;
46
- };
47
44
  export declare type CompanyExtraInformation = {
48
45
  id?: number;
49
46
  companyId?: number;
@@ -0,0 +1,4 @@
1
+ export declare type CountableType = {
2
+ id?: number;
3
+ total?: number;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=counting.js.map
@@ -1,4 +1,5 @@
1
1
  import { SpecialPriceRateType } from './specialPriceRate';
2
+ import { GraphqlApiUnitType } from './unit';
2
3
  export declare type OrdersType = {
3
4
  id?: number;
4
5
  items?: OrderItemsType[];
@@ -7,3 +8,9 @@ export declare type OrderItemsType = {
7
8
  id?: number;
8
9
  priceRates?: SpecialPriceRateType[];
9
10
  };
11
+ export declare type GraphqlApiRealOrderType = {
12
+ id?: number;
13
+ customerId?: number;
14
+ totalAmount?: number;
15
+ unit?: GraphqlApiUnitType;
16
+ };
@@ -7,6 +7,12 @@ export declare type GraphqlApiProgramType = {
7
7
  name?: string;
8
8
  vendor?: VendorsType;
9
9
  };
10
+ export declare type GraphqlApiProgramLevelType = {
11
+ id?: number;
12
+ enabled?: boolean;
13
+ internalName?: string;
14
+ name?: string;
15
+ };
10
16
  export declare type SubscribedProgramType = {
11
17
  id?: number;
12
18
  availabilityEndedAt?: string;
@@ -0,0 +1,27 @@
1
+ import { CountableType } from './counting';
2
+ import { GraphqlApiRealOrderType } from './order';
3
+ import { SubscriptionType } from './subscription';
4
+ export declare type GraphqlApiReportType = {
5
+ id?: number;
6
+ adminNote?: string;
7
+ createdAt?: string;
8
+ endedAt?: string;
9
+ items?: GraphqlApiReportItemType[];
10
+ lastUpdatedAt?: string;
11
+ reportMonth?: string;
12
+ subscription?: SubscriptionType;
13
+ totalAmount?: number;
14
+ userNote?: string;
15
+ quantitySum?: CountableType;
16
+ order?: GraphqlApiRealOrderType;
17
+ status?: GraphqlApiReportStatusType;
18
+ };
19
+ export declare type GraphqlApiReportItemType = {
20
+ id?: number;
21
+ quantity?: number;
22
+ report?: GraphqlApiReportType;
23
+ };
24
+ export declare type GraphqlApiReportStatusType = {
25
+ id?: number;
26
+ name?: string;
27
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=report.js.map
@@ -1,10 +1,12 @@
1
1
  import { PartnerType } from './company';
2
2
  import { ContactsType } from './contact';
3
- import { GraphqlApiProgramType } from './program';
3
+ import { GraphqlApiProgramLevelType, GraphqlApiProgramType } from './program';
4
4
  export declare type SubscriptionType = {
5
5
  id?: number;
6
6
  company?: PartnerType;
7
+ level?: GraphqlApiProgramLevelType;
7
8
  localContact?: ContactsType;
8
9
  partnerContact?: ContactsType;
10
+ partnerId?: string;
9
11
  program?: GraphqlApiProgramType;
10
12
  };
@@ -0,0 +1,5 @@
1
+ export declare type GraphqlApiUnitType = {
2
+ id?: number;
3
+ name?: string;
4
+ symbol?: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=unit.js.map
@@ -1,13 +1,16 @@
1
1
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
2
+ import { ContactsType } from './entities/contact';
2
3
  import { ContinentType, CountryType } from './entities/country';
3
4
  import { LicenseBudgetType } from './entities/licenseBudget';
4
5
  import { PartnertagType } from './entities/partnertag';
5
6
  import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
6
7
  import { QuoteType } from './entities/quote';
8
+ import { GraphqlApiReportType } from './entities/report';
9
+ import { SpecialPriceRateType } from './entities/specialPriceRate';
7
10
  import { SubscriptionType } from './entities/subscription';
8
11
  import { UserHistoryType, UserType } from './entities/user';
9
12
  import { WorkgroupType } from './entities/workgroup';
10
- import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema } from './graphqlApiSchemas';
13
+ import { ContactsSchema, ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './graphqlApiSchemas';
11
14
  /**
12
15
  * For field __args
13
16
  */
@@ -113,6 +116,7 @@ export declare enum SelectableField {
113
116
  }
114
117
  export declare enum SelectDataField {
115
118
  ARROW_COMPANY = "arrowCompany",
119
+ CONTACT = "contact",
116
120
  CONTINENT = "continent",
117
121
  COUNTRY = "country",
118
122
  END_CUSTOMER = "endCustomer",
@@ -121,6 +125,8 @@ export declare enum SelectDataField {
121
125
  PARTNERTAG = "partnertag",
122
126
  PROGRAM = "program",
123
127
  QUOTE = "quote",
128
+ REPORT = "report",
129
+ SPECIAL_PRICE_RATE = "specialPriceRate",
124
130
  SUBSCRIBED_PROGRAM = "subscribedProgram",
125
131
  SUBSCRIPTION = "subscription",
126
132
  USER = "user",
@@ -144,6 +150,7 @@ export declare type SelectAllResponseDataType = {
144
150
  [SelectDataField.PARTNERTAG]?: PartnertagType[];
145
151
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
146
152
  [SelectDataField.QUOTE]?: QuoteType[];
153
+ [SelectDataField.REPORT]?: GraphqlApiReportType[];
147
154
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType[];
148
155
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType[];
149
156
  [SelectDataField.USER]?: UserType[];
@@ -183,6 +190,30 @@ export declare type SelectOneResultType = {
183
190
  [SelectableField.PAGINATION]?: PageType;
184
191
  };
185
192
  };
193
+ export declare type SelectOneByIdResultType = {
194
+ [Queries.SELECT_ONE_BY_ID]: {
195
+ [SelectableField.DATA]?: SelectOneResponseDataType;
196
+ [SelectableField.ERRORS]?: ErrorsType;
197
+ [SelectableField.PAGINATION]?: PageType;
198
+ };
199
+ };
200
+ export declare type GetLocalContactResultType = {
201
+ [Queries.GET_LOCAL_CONTACT]: {
202
+ [SelectableField.DATA]?: {
203
+ [SelectDataField.CONTACT]: ContactsType;
204
+ };
205
+ [SelectableField.ERRORS]?: ErrorsType;
206
+ };
207
+ };
208
+ export declare type GetSpecialPriceRatesHistoryResultType = {
209
+ [Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
210
+ [SelectableField.DATA]?: {
211
+ [SelectDataField.SPECIAL_PRICE_RATE]: SpecialPriceRateType[];
212
+ };
213
+ [SelectableField.ERRORS]?: ErrorsType;
214
+ [SelectableField.PAGINATION]?: PageType;
215
+ };
216
+ };
186
217
  export declare type SelectOneResponseDataType = {
187
218
  [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType;
188
219
  [SelectDataField.CONTINENT]?: ContinentType;
@@ -193,6 +224,7 @@ export declare type SelectOneResponseDataType = {
193
224
  [SelectDataField.PARTNERTAG]?: PartnertagType;
194
225
  [SelectDataField.PROGRAM]?: GraphqlApiProgramType;
195
226
  [SelectDataField.QUOTE]?: QuoteType;
227
+ [SelectDataField.REPORT]?: GraphqlApiReportType;
196
228
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramType;
197
229
  [SelectDataField.SUBSCRIPTION]?: SubscriptionType;
198
230
  [SelectDataField.USER]?: UserType;
@@ -217,10 +249,27 @@ export declare type QueryVariablesType = {
217
249
  [QueryVariablesField.SORT]?: InputSortFilterType[];
218
250
  [QueryVariablesField.OPTIONS]?: InputQueryOptionsType;
219
251
  };
252
+ export declare type SelectOneByIdQueryVariablesType = {
253
+ id: number;
254
+ [QueryVariablesField.EXCLUSION_FILTERS]?: InputSearchFilterType;
255
+ [QueryVariablesField.FILTERS]?: InputSearchFilterType;
256
+ [QueryVariablesField.PAGINATION]?: InputPaginationType;
257
+ };
220
258
  export declare enum Queries {
221
259
  SELECT_ALL = "selectAll",
222
- SELECT_ONE = "selectOne"
260
+ SELECT_ONE = "selectOne",
261
+ SELECT_ONE_BY_ID = "selectOneById",
262
+ GET_LOCAL_CONTACT = "getLocalContact",
263
+ GET_SPECIAL_PRICE_RATES_HISTORY = "getSpecialPriceRatesHistory"
223
264
  }
265
+ export declare type SelectAllQueryType = {
266
+ [Queries.SELECT_ALL]: {
267
+ __args?: QueryVariablesType;
268
+ [SelectableField.DATA]: SelectAllResponseDataSchema;
269
+ [SelectableField.ERRORS]?: ErrorsSchema;
270
+ [SelectableField.PAGINATION]?: PageSchema;
271
+ };
272
+ };
224
273
  export declare type SelectOneQueryType = {
225
274
  [Queries.SELECT_ONE]: {
226
275
  __args?: QueryVariablesType;
@@ -229,10 +278,34 @@ export declare type SelectOneQueryType = {
229
278
  [SelectableField.PAGINATION]?: PageSchema;
230
279
  };
231
280
  };
232
- export declare type SelectAllQueryType = {
233
- [Queries.SELECT_ALL]: {
234
- __args?: QueryVariablesType;
235
- [SelectableField.DATA]: SelectAllResponseDataSchema;
281
+ export declare type SelectOneByIdQueryType = {
282
+ [Queries.SELECT_ONE_BY_ID]: {
283
+ __args: SelectOneByIdQueryVariablesType;
284
+ [SelectableField.DATA]: SelectOneResponseDataSchema;
285
+ [SelectableField.ERRORS]?: ErrorsSchema;
286
+ [SelectableField.PAGINATION]?: PageSchema;
287
+ };
288
+ };
289
+ export declare type GetLocalContactQueryType = {
290
+ [Queries.GET_LOCAL_CONTACT]: {
291
+ __args: {
292
+ programInternalName: string;
293
+ partnerId: number;
294
+ };
295
+ [SelectableField.DATA]: {
296
+ [SelectDataField.CONTACT]: ContactsSchema;
297
+ };
298
+ [SelectableField.ERRORS]?: ErrorsSchema;
299
+ };
300
+ };
301
+ export declare type GetSpecialPriceRatesHistoryQueryType = {
302
+ [Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
303
+ __args: {
304
+ licenseId: number;
305
+ } & QueryVariablesType;
306
+ [SelectableField.DATA]: {
307
+ [SelectDataField.SPECIAL_PRICE_RATE]: SpecialPriceRateSchema;
308
+ };
236
309
  [SelectableField.ERRORS]?: ErrorsSchema;
237
310
  [SelectableField.PAGINATION]?: PageSchema;
238
311
  };
@@ -91,6 +91,7 @@ var SelectableField;
91
91
  var SelectDataField;
92
92
  (function (SelectDataField) {
93
93
  SelectDataField["ARROW_COMPANY"] = "arrowCompany";
94
+ SelectDataField["CONTACT"] = "contact";
94
95
  SelectDataField["CONTINENT"] = "continent";
95
96
  SelectDataField["COUNTRY"] = "country";
96
97
  SelectDataField["END_CUSTOMER"] = "endCustomer";
@@ -99,6 +100,8 @@ var SelectDataField;
99
100
  SelectDataField["PARTNERTAG"] = "partnertag";
100
101
  SelectDataField["PROGRAM"] = "program";
101
102
  SelectDataField["QUOTE"] = "quote";
103
+ SelectDataField["REPORT"] = "report";
104
+ SelectDataField["SPECIAL_PRICE_RATE"] = "specialPriceRate";
102
105
  SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
103
106
  SelectDataField["SUBSCRIPTION"] = "subscription";
104
107
  SelectDataField["USER"] = "user";
@@ -134,5 +137,8 @@ var Queries;
134
137
  (function (Queries) {
135
138
  Queries["SELECT_ALL"] = "selectAll";
136
139
  Queries["SELECT_ONE"] = "selectOne";
140
+ Queries["SELECT_ONE_BY_ID"] = "selectOneById";
141
+ Queries["GET_LOCAL_CONTACT"] = "getLocalContact";
142
+ Queries["GET_SPECIAL_PRICE_RATES_HISTORY"] = "getSpecialPriceRatesHistory";
137
143
  })(Queries = exports.Queries || (exports.Queries = {}));
138
144
  //# sourceMappingURL=graphqlApiQueries.js.map
@@ -17,6 +17,7 @@ import { CurrencyType } from './entities/currency';
17
17
  import { ItemData, QuoteItemType, QuoteType } from './entities/quote';
18
18
  import { QuoteVersion } from './entities/quoteVersion';
19
19
  import { Comment } from './entities/comment';
20
+ import { GraphqlApiReportItemType, GraphqlApiReportType } from './entities/report';
20
21
  export declare type PartnertagSchema = Schema<PartnertagType, boolean>;
21
22
  declare type MissingFieldsOfCompanySchema = {
22
23
  contacts?: ContactsSchema;
@@ -86,6 +87,11 @@ export declare type UserSchema = Merge<Schema<UserType, boolean>, MissingFieldsO
86
87
  export declare type LicenseBudgetSchema = Merge<Schema<LicenseBudgetType, boolean>, MissingFieldsOfLicenseBudgetSchema>;
87
88
  export declare type OrderItemsSchema = Merge<Schema<OrderItemsType, boolean>, MissingFieldsOfOrderItemSchema>;
88
89
  export declare type OrdersSchema = Merge<Schema<OrdersType, boolean>, MissingFieldsOfOrdersSchema>;
90
+ declare type MissingFieldsOfReportSchema = {
91
+ items?: ReportItemSchema;
92
+ };
93
+ export declare type ReportSchema = Merge<Schema<GraphqlApiReportType, boolean>, MissingFieldsOfReportSchema>;
94
+ export declare type ReportItemSchema = Schema<GraphqlApiReportItemType, boolean>;
89
95
  export declare type EndCustomerSchema = Merge<Schema<EndCustomerType, boolean>, MissingFieldsOfEndCustomerSchema>;
90
96
  export declare type PartnerSchema = Merge<Schema<PartnerType, boolean>, MissingFieldsOfCompanySchema>;
91
97
  export declare type ArrowCompanySchema = Merge<Schema<ArrowCompanyType, boolean>, MissingFieldsOfArrowCompanySchema>;
@@ -119,6 +125,7 @@ export declare type SelectAllResponseDataSchema = {
119
125
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
120
126
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
121
127
  [SelectDataField.QUOTE]?: QuoteSchema;
128
+ [SelectDataField.REPORT]?: ReportSchema;
122
129
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
123
130
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
124
131
  [SelectDataField.USER]?: UserSchema;
@@ -139,6 +146,7 @@ export declare type SelectOneResponseDataSchema = {
139
146
  [SelectDataField.PARTNERTAG]?: PartnertagSchema;
140
147
  [SelectDataField.PROGRAM]?: GraphqlApiProgramSchema;
141
148
  [SelectDataField.QUOTE]?: QuoteSchema;
149
+ [SelectDataField.REPORT]?: ReportSchema;
142
150
  [SelectDataField.SUBSCRIBED_PROGRAM]?: SubscribedProgramSchema;
143
151
  [SelectDataField.SUBSCRIPTION]?: SubscriptionSchema;
144
152
  [SelectDataField.USER]?: UserSchema;
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.168.0",
7
+ "version": "3.170.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",