@arrowsphere/api-client 3.167.1 → 3.168.0-rc.bdj-2
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 +0 -5
- package/build/campaign/campaignClient.d.ts +9 -9
- package/build/campaign/campaignClient.js +10 -10
- package/build/graphqlApi/graphqlApiClient.d.ts +5 -3
- package/build/graphqlApi/graphqlApiClient.js +44 -19
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +74 -6
- package/build/graphqlApi/types/graphqlApiQueries.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
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.167.1] - 2025.02.05
|
|
7
|
-
|
|
8
|
-
### Fixed
|
|
9
|
-
- [campaign] update CampaignInputType schema add field Banner and remove field Banners
|
|
10
|
-
|
|
11
6
|
## [3.167.0] - 2025.02.04
|
|
12
7
|
|
|
13
8
|
### 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
|
-
|
|
25
|
+
COLUMN_BANNERS = "banners",
|
|
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
|
|
44
|
+
export declare enum BannersInputFields {
|
|
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
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
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;
|
|
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.
|
|
122
|
+
[CampaignInputFields.COLUMN_BANNERS]?: BannersInputType[];
|
|
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.
|
|
3
|
+
exports.CampaignClient = exports.LandingPageInputFields = exports.LandingPageFooterInputFields = exports.LandingPageBodyInputFields = exports.LandingPageHeaderInputFields = exports.BannersInputFields = 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["
|
|
26
|
+
CampaignInputFields["COLUMN_BANNERS"] = "banners";
|
|
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
|
|
39
|
-
(function (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})(
|
|
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 = {}));
|
|
46
46
|
var LandingPageHeaderInputFields;
|
|
47
47
|
(function (LandingPageHeaderInputFields) {
|
|
48
48
|
LandingPageHeaderInputFields["COLUMN_BACKGROUND_COLOR"] = "backgroundColor";
|
|
@@ -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
|
|
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
|
-
|
|
42
|
-
|
|
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.
|
|
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 ((
|
|
79
|
-
throw new Error((
|
|
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 (
|
|
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
|
|
@@ -1,13 +1,15 @@
|
|
|
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 { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
7
9
|
import { SubscriptionType } from './entities/subscription';
|
|
8
10
|
import { UserHistoryType, UserType } from './entities/user';
|
|
9
11
|
import { WorkgroupType } from './entities/workgroup';
|
|
10
|
-
import { ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema } from './graphqlApiSchemas';
|
|
12
|
+
import { ContactsSchema, ErrorsSchema, PageSchema, SelectAllResponseDataSchema, SelectOneResponseDataSchema, SpecialPriceRateSchema } from './graphqlApiSchemas';
|
|
11
13
|
/**
|
|
12
14
|
* For field __args
|
|
13
15
|
*/
|
|
@@ -113,6 +115,7 @@ export declare enum SelectableField {
|
|
|
113
115
|
}
|
|
114
116
|
export declare enum SelectDataField {
|
|
115
117
|
ARROW_COMPANY = "arrowCompany",
|
|
118
|
+
CONTACT = "contact",
|
|
116
119
|
CONTINENT = "continent",
|
|
117
120
|
COUNTRY = "country",
|
|
118
121
|
END_CUSTOMER = "endCustomer",
|
|
@@ -121,6 +124,7 @@ export declare enum SelectDataField {
|
|
|
121
124
|
PARTNERTAG = "partnertag",
|
|
122
125
|
PROGRAM = "program",
|
|
123
126
|
QUOTE = "quote",
|
|
127
|
+
SPECIAL_PRICE_RATE = "specialPriceRate",
|
|
124
128
|
SUBSCRIBED_PROGRAM = "subscribedProgram",
|
|
125
129
|
SUBSCRIPTION = "subscription",
|
|
126
130
|
USER = "user",
|
|
@@ -183,6 +187,29 @@ export declare type SelectOneResultType = {
|
|
|
183
187
|
[SelectableField.PAGINATION]?: PageType;
|
|
184
188
|
};
|
|
185
189
|
};
|
|
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
|
+
};
|
|
212
|
+
};
|
|
186
213
|
export declare type SelectOneResponseDataType = {
|
|
187
214
|
[SelectDataField.ARROW_COMPANY]?: ArrowCompanyType;
|
|
188
215
|
[SelectDataField.CONTINENT]?: ContinentType;
|
|
@@ -217,10 +244,27 @@ export declare type QueryVariablesType = {
|
|
|
217
244
|
[QueryVariablesField.SORT]?: InputSortFilterType[];
|
|
218
245
|
[QueryVariablesField.OPTIONS]?: InputQueryOptionsType;
|
|
219
246
|
};
|
|
247
|
+
export declare type SelectOneByIdQueryVariablesType = {
|
|
248
|
+
id: number;
|
|
249
|
+
[QueryVariablesField.EXCLUSION_FILTERS]?: InputSearchFilterType;
|
|
250
|
+
[QueryVariablesField.FILTERS]?: InputSearchFilterType;
|
|
251
|
+
[QueryVariablesField.PAGINATION]?: InputPaginationType;
|
|
252
|
+
};
|
|
220
253
|
export declare enum Queries {
|
|
221
254
|
SELECT_ALL = "selectAll",
|
|
222
|
-
SELECT_ONE = "selectOne"
|
|
255
|
+
SELECT_ONE = "selectOne",
|
|
256
|
+
SELECT_ONE_BY_ID = "selectOneById",
|
|
257
|
+
GET_LOCAL_CONTACT = "getLocalContact",
|
|
258
|
+
GET_SPECIAL_PRICE_RATES_HISTORY = "getSpecialPriceRatesHistory"
|
|
223
259
|
}
|
|
260
|
+
export declare type SelectAllQueryType = {
|
|
261
|
+
[Queries.SELECT_ALL]: {
|
|
262
|
+
__args?: QueryVariablesType;
|
|
263
|
+
[SelectableField.DATA]: SelectAllResponseDataSchema;
|
|
264
|
+
[SelectableField.ERRORS]?: ErrorsSchema;
|
|
265
|
+
[SelectableField.PAGINATION]?: PageSchema;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
224
268
|
export declare type SelectOneQueryType = {
|
|
225
269
|
[Queries.SELECT_ONE]: {
|
|
226
270
|
__args?: QueryVariablesType;
|
|
@@ -229,10 +273,34 @@ export declare type SelectOneQueryType = {
|
|
|
229
273
|
[SelectableField.PAGINATION]?: PageSchema;
|
|
230
274
|
};
|
|
231
275
|
};
|
|
232
|
-
export declare type
|
|
233
|
-
[Queries.
|
|
234
|
-
__args
|
|
235
|
-
[SelectableField.DATA]:
|
|
276
|
+
export declare type SelectOneByIdQueryType = {
|
|
277
|
+
[Queries.SELECT_ONE_BY_ID]: {
|
|
278
|
+
__args: SelectOneByIdQueryVariablesType;
|
|
279
|
+
[SelectableField.DATA]: SelectOneResponseDataSchema;
|
|
280
|
+
[SelectableField.ERRORS]?: ErrorsSchema;
|
|
281
|
+
[SelectableField.PAGINATION]?: PageSchema;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
export declare type GetLocalContactQueryType = {
|
|
285
|
+
[Queries.GET_LOCAL_CONTACT]: {
|
|
286
|
+
__args: {
|
|
287
|
+
programInternalName: string;
|
|
288
|
+
partnerId: number;
|
|
289
|
+
};
|
|
290
|
+
[SelectableField.DATA]: {
|
|
291
|
+
[SelectDataField.CONTACT]: ContactsSchema;
|
|
292
|
+
};
|
|
293
|
+
[SelectableField.ERRORS]?: ErrorsSchema;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
export declare type GetSpecialPriceRatesHistoryQueryType = {
|
|
297
|
+
[Queries.GET_SPECIAL_PRICE_RATES_HISTORY]: {
|
|
298
|
+
__args: {
|
|
299
|
+
licenseId: number;
|
|
300
|
+
} & QueryVariablesType;
|
|
301
|
+
[SelectableField.DATA]: {
|
|
302
|
+
[SelectDataField.SPECIAL_PRICE_RATE]: SpecialPriceRateSchema;
|
|
303
|
+
};
|
|
236
304
|
[SelectableField.ERRORS]?: ErrorsSchema;
|
|
237
305
|
[SelectableField.PAGINATION]?: PageSchema;
|
|
238
306
|
};
|
|
@@ -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,7 @@ var SelectDataField;
|
|
|
99
100
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
100
101
|
SelectDataField["PROGRAM"] = "program";
|
|
101
102
|
SelectDataField["QUOTE"] = "quote";
|
|
103
|
+
SelectDataField["SPECIAL_PRICE_RATE"] = "specialPriceRate";
|
|
102
104
|
SelectDataField["SUBSCRIBED_PROGRAM"] = "subscribedProgram";
|
|
103
105
|
SelectDataField["SUBSCRIPTION"] = "subscription";
|
|
104
106
|
SelectDataField["USER"] = "user";
|
|
@@ -134,5 +136,8 @@ var Queries;
|
|
|
134
136
|
(function (Queries) {
|
|
135
137
|
Queries["SELECT_ALL"] = "selectAll";
|
|
136
138
|
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";
|
|
137
142
|
})(Queries = exports.Queries || (exports.Queries = {}));
|
|
138
143
|
//# sourceMappingURL=graphqlApiQueries.js.map
|
package/package.json
CHANGED