@arrowsphere/api-client 3.168.0-rc.bdj-5 → 3.168.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,18 @@
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.168.0] - 2025.02.05
7
+
8
+ ### Added
9
+ - [catalog] added description field on ProgramExtraInfoItemFields
10
+ ### Fixed
11
+ - [order] Define a new type for programs
12
+
13
+ ## [3.167.1] - 2025.02.05
14
+
15
+ ### Fixed
16
+ - [campaign] update CampaignInputType schema add field Banner and remove field Banners
17
+
6
18
  ## [3.167.0] - 2025.02.04
7
19
 
8
20
  ### Added
@@ -22,7 +22,7 @@ export declare enum CampaignInputFields {
22
22
  COLUMN_RULES = "rules",
23
23
  COLUMN_START_DATE = "startDate",
24
24
  COLUMN_END_DATE = "endDate",
25
- COLUMN_BANNERS = "banners",
25
+ COLUMN_BANNER = "banner",
26
26
  COLUMN_LANDING_PAGE = "landingPage"
27
27
  }
28
28
  export declare enum RulesInputFields {
@@ -41,19 +41,19 @@ export declare type RulesInputType = {
41
41
  [RulesInputFields.COLUMN_RESELLERS]?: string[];
42
42
  [RulesInputFields.COLUMN_END_CUSTOMERS]?: string[];
43
43
  };
44
- export declare enum BannersInputFields {
44
+ export declare enum BannerInputFields {
45
45
  COLUMN_TYPE = "type",
46
46
  COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
47
47
  COLUMN_BUTTON_TEXT = "buttonText",
48
48
  COLUMN_TEXT = "text",
49
49
  COLUMN_TEXT_COLOR = "textColor"
50
50
  }
51
- export declare type BannersInputType = {
52
- [BannersInputFields.COLUMN_TYPE]?: string;
53
- [BannersInputFields.COLUMN_BUTTON_PLACEMENT]?: string;
54
- [BannersInputFields.COLUMN_BUTTON_TEXT]?: string;
55
- [BannersInputFields.COLUMN_TEXT]?: string;
56
- [BannersInputFields.COLUMN_TEXT_COLOR]?: string;
51
+ export declare type BannerInputType = {
52
+ [BannerInputFields.COLUMN_TYPE]?: string;
53
+ [BannerInputFields.COLUMN_BUTTON_PLACEMENT]?: string;
54
+ [BannerInputFields.COLUMN_BUTTON_TEXT]?: string;
55
+ [BannerInputFields.COLUMN_TEXT]?: string;
56
+ [BannerInputFields.COLUMN_TEXT_COLOR]?: string;
57
57
  };
58
58
  export declare enum LandingPageHeaderInputFields {
59
59
  COLUMN_BACKGROUND_COLOR = "backgroundColor",
@@ -119,7 +119,7 @@ export declare type CampaignInputType = {
119
119
  [CampaignInputFields.COLUMN_RULES]?: RulesInputType;
120
120
  [CampaignInputFields.COLUMN_START_DATE]?: string;
121
121
  [CampaignInputFields.COLUMN_END_DATE]?: string;
122
- [CampaignInputFields.COLUMN_BANNERS]?: BannersInputType[];
122
+ [CampaignInputFields.COLUMN_BANNER]?: BannerInputType;
123
123
  [CampaignInputFields.COLUMN_LANDING_PAGE]?: LandingPageInputType;
124
124
  };
125
125
  export declare type PostEmailCampaignMetadataType = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CampaignClient = exports.LandingPageInputFields = exports.LandingPageFooterInputFields = exports.LandingPageBodyInputFields = exports.LandingPageHeaderInputFields = exports.BannersInputFields = exports.RulesInputFields = exports.CampaignInputFields = exports.PostEmailCampaignFields = void 0;
3
+ exports.CampaignClient = exports.LandingPageInputFields = exports.LandingPageFooterInputFields = exports.LandingPageBodyInputFields = exports.LandingPageHeaderInputFields = exports.BannerInputFields = exports.RulesInputFields = exports.CampaignInputFields = exports.PostEmailCampaignFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const campaign_1 = require("./entities/campaign/campaign");
@@ -23,7 +23,7 @@ var CampaignInputFields;
23
23
  CampaignInputFields["COLUMN_RULES"] = "rules";
24
24
  CampaignInputFields["COLUMN_START_DATE"] = "startDate";
25
25
  CampaignInputFields["COLUMN_END_DATE"] = "endDate";
26
- CampaignInputFields["COLUMN_BANNERS"] = "banners";
26
+ CampaignInputFields["COLUMN_BANNER"] = "banner";
27
27
  CampaignInputFields["COLUMN_LANDING_PAGE"] = "landingPage";
28
28
  })(CampaignInputFields = exports.CampaignInputFields || (exports.CampaignInputFields = {}));
29
29
  var RulesInputFields;
@@ -35,14 +35,14 @@ var RulesInputFields;
35
35
  RulesInputFields["COLUMN_RESELLERS"] = "resellers";
36
36
  RulesInputFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
37
37
  })(RulesInputFields = exports.RulesInputFields || (exports.RulesInputFields = {}));
38
- var BannersInputFields;
39
- (function (BannersInputFields) {
40
- BannersInputFields["COLUMN_TYPE"] = "type";
41
- BannersInputFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
42
- BannersInputFields["COLUMN_BUTTON_TEXT"] = "buttonText";
43
- BannersInputFields["COLUMN_TEXT"] = "text";
44
- BannersInputFields["COLUMN_TEXT_COLOR"] = "textColor";
45
- })(BannersInputFields = exports.BannersInputFields || (exports.BannersInputFields = {}));
38
+ var BannerInputFields;
39
+ (function (BannerInputFields) {
40
+ BannerInputFields["COLUMN_TYPE"] = "type";
41
+ BannerInputFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
42
+ BannerInputFields["COLUMN_BUTTON_TEXT"] = "buttonText";
43
+ BannerInputFields["COLUMN_TEXT"] = "text";
44
+ BannerInputFields["COLUMN_TEXT_COLOR"] = "textColor";
45
+ })(BannerInputFields = exports.BannerInputFields || (exports.BannerInputFields = {}));
46
46
  var LandingPageHeaderInputFields;
47
47
  (function (LandingPageHeaderInputFields) {
48
48
  LandingPageHeaderInputFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
@@ -22,7 +22,8 @@ export declare enum ProgramExtraInfoItemFields {
22
22
  LABEL = "label",
23
23
  TYPE = "type",
24
24
  REGEX = "regex",
25
- MANDATORY = "mandatory"
25
+ MANDATORY = "mandatory",
26
+ DESCRIPTION = "description"
26
27
  }
27
28
  export declare type ProgramType = {
28
29
  [ProgramFields.REFERENCE]?: string;
@@ -48,6 +49,7 @@ export declare type ExtraInfoItemType = {
48
49
  [ProgramExtraInfoItemFields.TYPE]: string;
49
50
  [ProgramExtraInfoItemFields.REGEX]: string;
50
51
  [ProgramExtraInfoItemFields.MANDATORY]: boolean;
52
+ [ProgramExtraInfoItemFields.DESCRIPTION]?: string;
51
53
  };
52
54
  export declare class Program extends AbstractEntity<ProgramType> {
53
55
  #private;
@@ -42,6 +42,7 @@ var ProgramExtraInfoItemFields;
42
42
  ProgramExtraInfoItemFields["TYPE"] = "type";
43
43
  ProgramExtraInfoItemFields["REGEX"] = "regex";
44
44
  ProgramExtraInfoItemFields["MANDATORY"] = "mandatory";
45
+ ProgramExtraInfoItemFields["DESCRIPTION"] = "description";
45
46
  })(ProgramExtraInfoItemFields = exports.ProgramExtraInfoItemFields || (exports.ProgramExtraInfoItemFields = {}));
46
47
  class Program extends abstractEntity_1.AbstractEntity {
47
48
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { AbstractGraphQLClient } from '../abstractGraphQLClient';
2
2
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './types/entities/company';
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';
3
+ import { InputPaginationType, SelectAllQueryType, SelectAllResultType, SelectOneQueryType, SelectOneResultType } from './types/graphqlApiQueries';
4
+ import { ArrowCompanySchema, EndCustomerSchema, PartnerSchema, SelectOneResponseDataSchema } from './types/graphqlApiSchemas';
5
5
  export declare class GraphqlApiClient extends AbstractGraphQLClient {
6
6
  /**
7
7
  * The Path of graphql catalog API
@@ -10,10 +10,8 @@ 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, filters?: InputSearchFilterType, exclusionFilters?: InputSearchFilterType): Promise<T | null>;
13
+ findOneById<T>(id: number, fieldSchema: SelectOneResponseDataSchema, pagination?: InputPaginationType): 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>;
19
17
  }
@@ -30,17 +30,27 @@ 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, filters, exclusionFilters) {
34
- var _a, _b, _c, _d, _e;
33
+ async findOneById(id, fieldSchema, pagination) {
34
+ var _a, _b, _c, _d, _e, _f, _g, _h;
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
- id,
42
- filters,
43
- exclusionFilters,
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
+ },
44
54
  };
45
55
  if ((pagination === null || pagination === void 0 ? void 0 : pagination[graphqlApiQueries_1.InputPaginationField.PER_PAGE]) ||
46
56
  (pagination === null || pagination === void 0 ? void 0 : pagination[graphqlApiQueries_1.InputPaginationField.PAGE])) {
@@ -55,7 +65,7 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
55
65
  }
56
66
  }
57
67
  const query = {
58
- [graphqlApiQueries_1.Queries.SELECT_ONE_BY_ID]: {
68
+ [graphqlApiQueries_1.Queries.SELECT_ONE]: {
59
69
  __args: queryArguments,
60
70
  [graphqlApiQueries_1.SelectableField.DATA]: fieldSchema,
61
71
  [graphqlApiQueries_1.SelectableField.ERRORS]: {
@@ -65,10 +75,10 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
65
75
  };
66
76
  const queryStr = this.stringifyQuery(query);
67
77
  const result = await this.find(queryStr);
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]);
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]);
70
80
  }
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];
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];
72
82
  }
73
83
  async findEndCustomerById(id, fields, pagination) {
74
84
  return await this.findOneById(id, {
@@ -85,41 +95,6 @@ class GraphqlApiClient extends abstractGraphQLClient_1.AbstractGraphQLClient {
85
95
  [graphqlApiQueries_1.SelectDataField.ARROW_COMPANY]: fields,
86
96
  }, pagination);
87
97
  }
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
- }
123
98
  }
124
99
  exports.GraphqlApiClient = GraphqlApiClient;
125
100
  //# sourceMappingURL=graphqlApiClient.js.map
@@ -1,15 +1,13 @@
1
1
  import { ArrowCompanyType, EndCustomerType, PartnerType } from './entities/company';
2
- import { ContactsType } from './entities/contact';
3
2
  import { ContinentType, CountryType } from './entities/country';
4
3
  import { LicenseBudgetType } from './entities/licenseBudget';
5
4
  import { PartnertagType } from './entities/partnertag';
6
5
  import { GraphqlApiProgramType, SubscribedProgramType } from './entities/program';
7
6
  import { QuoteType } from './entities/quote';
8
- import { SpecialPriceRateType } from './entities/specialPriceRate';
9
7
  import { SubscriptionType } from './entities/subscription';
10
8
  import { UserHistoryType, UserType } from './entities/user';
11
9
  import { WorkgroupType } from './entities/workgroup';
12
- import { ContactsSchema, ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './graphqlApiSchemas';
10
+ import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema } from './graphqlApiSchemas';
13
11
  /**
14
12
  * For field __args
15
13
  */
@@ -115,7 +113,6 @@ export declare enum SelectableField {
115
113
  }
116
114
  export declare enum SelectDataField {
117
115
  ARROW_COMPANY = "arrowCompany",
118
- CONTACT = "contact",
119
116
  CONTINENT = "continent",
120
117
  COUNTRY = "country",
121
118
  END_CUSTOMER = "endCustomer",
@@ -124,7 +121,6 @@ export declare enum SelectDataField {
124
121
  PARTNERTAG = "partnertag",
125
122
  PROGRAM = "program",
126
123
  QUOTE = "quote",
127
- SPECIAL_PRICE_RATE = "specialPriceRate",
128
124
  SUBSCRIBED_PROGRAM = "subscribedProgram",
129
125
  SUBSCRIPTION = "subscription",
130
126
  USER = "user",
@@ -187,30 +183,6 @@ export declare type SelectOneResultType = {
187
183
  [SelectableField.PAGINATION]?: PageType;
188
184
  };
189
185
  };
190
- export declare type SelectOneByIdResultType = {
191
- [Queries.SELECT_ONE_BY_ID]: {
192
- [SelectableField.DATA]?: SelectOneResponseDataType;
193
- [SelectableField.ERRORS]?: ErrorsType;
194
- [SelectableField.PAGINATION]?: PageType;
195
- };
196
- };
197
- export declare type GetLocalContactResultType = {
198
- [Queries.GET_LOCAL_CONTACT]: {
199
- [SelectableField.DATA]?: {
200
- [SelectDataField.CONTACT]: ContactsType;
201
- };
202
- [SelectableField.ERRORS]?: ErrorsType;
203
- };
204
- };
205
- export declare type GetSpecialPriceRatesHistoryResultType = {
206
- [Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
207
- [SelectableField.DATA]?: {
208
- [SelectDataField.SPECIAL_PRICE_RATE]: SpecialPriceRateType[];
209
- };
210
- [SelectableField.ERRORS]?: ErrorsType;
211
- [SelectableField.PAGINATION]?: PageType;
212
- };
213
- };
214
186
  export declare type SelectOneResponseDataType = {
215
187
  [SelectDataField.ARROW_COMPANY]?: ArrowCompanyType;
216
188
  [SelectDataField.CONTINENT]?: ContinentType;
@@ -245,27 +217,10 @@ export declare type QueryVariablesType = {
245
217
  [QueryVariablesField.SORT]?: InputSortFilterType[];
246
218
  [QueryVariablesField.OPTIONS]?: InputQueryOptionsType;
247
219
  };
248
- export declare type SelectOneByIdQueryVariablesType = {
249
- id: number;
250
- [QueryVariablesField.EXCLUSION_FILTERS]?: InputSearchFilterType;
251
- [QueryVariablesField.FILTERS]?: InputSearchFilterType;
252
- [QueryVariablesField.PAGINATION]?: InputPaginationType;
253
- };
254
220
  export declare enum Queries {
255
221
  SELECT_ALL = "selectAll",
256
- SELECT_ONE = "selectOne",
257
- SELECT_ONE_BY_ID = "selectOneById",
258
- GET_LOCAL_CONTACT = "getLocalContact",
259
- GET_SPECIAL_PRICE_RATES_HISTORY = "getSpecialPriceRatesHistory"
222
+ SELECT_ONE = "selectOne"
260
223
  }
261
- export declare type SelectAllQueryType = {
262
- [Queries.SELECT_ALL]: {
263
- __args?: QueryVariablesType;
264
- [SelectableField.DATA]: SelectAllResponseDataSchema;
265
- [SelectableField.ERRORS]?: ErrorsSchema;
266
- [SelectableField.PAGINATION]?: PageSchema;
267
- };
268
- };
269
224
  export declare type SelectOneQueryType = {
270
225
  [Queries.SELECT_ONE]: {
271
226
  __args?: QueryVariablesType;
@@ -274,34 +229,10 @@ export declare type SelectOneQueryType = {
274
229
  [SelectableField.PAGINATION]?: PageSchema;
275
230
  };
276
231
  };
277
- export declare type SelectOneByIdQueryType = {
278
- [Queries.SELECT_ONE_BY_ID]: {
279
- __args: SelectOneByIdQueryVariablesType;
280
- [SelectableField.DATA]: SelectOneResponseDataSchema;
281
- [SelectableField.ERRORS]?: ErrorsSchema;
282
- [SelectableField.PAGINATION]?: PageSchema;
283
- };
284
- };
285
- export declare type GetLocalContactQueryType = {
286
- [Queries.GET_LOCAL_CONTACT]: {
287
- __args: {
288
- programInternalName: string;
289
- partnerId: number;
290
- };
291
- [SelectableField.DATA]: {
292
- [SelectDataField.CONTACT]: ContactsSchema;
293
- };
294
- [SelectableField.ERRORS]?: ErrorsSchema;
295
- };
296
- };
297
- export declare type GetSpecialPriceRatesHistoryQueryType = {
298
- [Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
299
- __args: {
300
- licenseId: number;
301
- } & QueryVariablesType;
302
- [SelectableField.DATA]: {
303
- [SelectDataField.SPECIAL_PRICE_RATE]: SpecialPriceRateSchema;
304
- };
232
+ export declare type SelectAllQueryType = {
233
+ [Queries.SELECT_ALL]: {
234
+ __args?: QueryVariablesType;
235
+ [SelectableField.DATA]: SelectAllResponseDataSchema;
305
236
  [SelectableField.ERRORS]?: ErrorsSchema;
306
237
  [SelectableField.PAGINATION]?: PageSchema;
307
238
  };
@@ -91,7 +91,6 @@ var SelectableField;
91
91
  var SelectDataField;
92
92
  (function (SelectDataField) {
93
93
  SelectDataField["ARROW_COMPANY"] = "arrowCompany";
94
- SelectDataField["CONTACT"] = "contact";
95
94
  SelectDataField["CONTINENT"] = "continent";
96
95
  SelectDataField["COUNTRY"] = "country";
97
96
  SelectDataField["END_CUSTOMER"] = "endCustomer";
@@ -100,7 +99,6 @@ var SelectDataField;
100
99
  SelectDataField["PARTNERTAG"] = "partnertag";
101
100
  SelectDataField["PROGRAM"] = "program";
102
101
  SelectDataField["QUOTE"] = "quote";
103
- SelectDataField["SPECIAL_PRICE_RATE"] = "specialPriceRate";
104
102
  SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
105
103
  SelectDataField["SUBSCRIPTION"] = "subscription";
106
104
  SelectDataField["USER"] = "user";
@@ -136,8 +134,5 @@ var Queries;
136
134
  (function (Queries) {
137
135
  Queries["SELECT_ALL"] = "selectAll";
138
136
  Queries["SELECT_ONE"] = "selectOne";
139
- Queries["SELECT_ONE_BY_ID"] = "selectOneById";
140
- Queries["GET_LOCAL_CONTACT"] = "getLocalContact";
141
- Queries["GET_SPECIAL_PRICE_RATES_HISTORY"] = "getSpecialPriceRatesHistory";
142
137
  })(Queries = exports.Queries || (exports.Queries = {}));
143
138
  //# sourceMappingURL=graphqlApiQueries.js.map
@@ -49,6 +49,11 @@ export declare enum scenarioType {
49
49
  RECONCILIATION = "reconciliation",
50
50
  PROVISION = "provision"
51
51
  }
52
+ export declare type OrderProgramsType = {
53
+ [key: string]: {
54
+ [name: string]: string;
55
+ };
56
+ };
52
57
  export declare type CreateOrderInputType = {
53
58
  [CreateOrderInputFields.COLUMN_CUSTOMER]: {
54
59
  [CreateOrderInputFields.COLUMN_REFERENCE]: string;
@@ -58,11 +63,7 @@ export declare type CreateOrderInputType = {
58
63
  [CreateOrderInputFields.COLUMN_SCHEDULE_DATE]?: string;
59
64
  [CreateOrderInputFields.COLUMN_PRODUCTS]: Array<CreateOrderProductType>;
60
65
  [CreateOrderInputFields.COLUMN_EXTRA_INFORMATION]?: {
61
- programs: {
62
- [key: string]: {
63
- [name: string]: string;
64
- };
65
- };
66
+ programs: OrderProgramsType;
66
67
  };
67
68
  [CreateOrderInputFields.COLUMN_ORGANIZATION_UNIT_REF]?: string;
68
69
  };
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-rc.bdj-5",
7
+ "version": "3.168.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",