@arrowsphere/api-client 3.193.0-rc-bdj-2 → 3.193.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 +6 -0
- package/build/graphqlApi/types/entities/order.d.ts +0 -24
- package/build/graphqlApi/types/graphqlApiQueries.d.ts +1 -3
- package/build/graphqlApi/types/graphqlApiQueries.js +0 -1
- package/build/graphqlApi/types/graphqlApiSchemas.d.ts +1 -2
- package/build/licenses/entities/filterFindResult.d.ts +8 -2
- package/build/licenses/licensesClient.d.ts +6 -0
- package/build/licenses/licensesClient.js +13 -0
- package/package.json +1 -1
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.193.0] - 2025.05.09
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- [licenses] allow to get aggregations for licenses
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
## [3.192.0] - 2025.04.29
|
|
7
13
|
|
|
8
14
|
### Added
|
|
@@ -69,27 +69,3 @@ export declare type GraphqlApiOrderHistoryType = {
|
|
|
69
69
|
order?: OrdersType;
|
|
70
70
|
user?: UserType;
|
|
71
71
|
};
|
|
72
|
-
export declare type GraphqlApiOrderListType = {
|
|
73
|
-
id?: number;
|
|
74
|
-
country?: string;
|
|
75
|
-
createdAt?: string;
|
|
76
|
-
createdBy?: string;
|
|
77
|
-
createdByImpersonate?: string;
|
|
78
|
-
endCustomerName?: string;
|
|
79
|
-
orderType?: string;
|
|
80
|
-
partnerName?: string;
|
|
81
|
-
programName?: string;
|
|
82
|
-
partnerId?: number;
|
|
83
|
-
partnerTags?: string;
|
|
84
|
-
programId?: number;
|
|
85
|
-
reference?: string;
|
|
86
|
-
scheduledAt?: string;
|
|
87
|
-
status?: string;
|
|
88
|
-
statusId?: number;
|
|
89
|
-
totalCommitment?: number;
|
|
90
|
-
totalPrice?: number;
|
|
91
|
-
unitSymbol?: string;
|
|
92
|
-
updatedAt?: string;
|
|
93
|
-
uuid?: number;
|
|
94
|
-
vendorName?: string;
|
|
95
|
-
};
|
|
@@ -3,7 +3,7 @@ import { ContactsType } from './entities/contact';
|
|
|
3
3
|
import { GraphqlApiStaffType } from './entities/contributor';
|
|
4
4
|
import { ContinentType, CountryType } from './entities/country';
|
|
5
5
|
import { LicenseBudgetType } from './entities/licenseBudget';
|
|
6
|
-
import { GraphqlApiOrderHistoryType,
|
|
6
|
+
import { GraphqlApiOrderHistoryType, OrdersType } from './entities/order';
|
|
7
7
|
import { OrganizationUnitsType } from './entities/organizationUnit';
|
|
8
8
|
import { PartnertagType } from './entities/partnertag';
|
|
9
9
|
import { GraphqlApiProgramType, ProgramLevelOptionGroupType, ProgramLevelType, SubscribedProgramType } from './entities/program';
|
|
@@ -127,7 +127,6 @@ export declare enum SelectDataField {
|
|
|
127
127
|
ORGANIZATION_UNIT = "organizationUnit",
|
|
128
128
|
ORDER = "order",
|
|
129
129
|
ORDER_HISTORY = "orderHistory",
|
|
130
|
-
ORDER_LIST = "orderList",
|
|
131
130
|
PARTNER = "partner",
|
|
132
131
|
PARTNERTAG = "partnertag",
|
|
133
132
|
PROGRAM = "program",
|
|
@@ -161,7 +160,6 @@ export declare type SelectAllResponseDataType = {
|
|
|
161
160
|
[SelectDataField.ORGANIZATION_UNIT]?: OrganizationUnitsType[];
|
|
162
161
|
[SelectDataField.ORDER]?: OrdersType[];
|
|
163
162
|
[SelectDataField.ORDER_HISTORY]?: GraphqlApiOrderHistoryType[];
|
|
164
|
-
[SelectDataField.ORDER_LIST]?: GraphqlApiOrderListType[];
|
|
165
163
|
[SelectDataField.PARTNER]?: PartnerType[];
|
|
166
164
|
[SelectDataField.PARTNERTAG]?: PartnertagType[];
|
|
167
165
|
[SelectDataField.PROGRAM]?: GraphqlApiProgramType[];
|
|
@@ -99,7 +99,6 @@ var SelectDataField;
|
|
|
99
99
|
SelectDataField["ORGANIZATION_UNIT"] = "organizationUnit";
|
|
100
100
|
SelectDataField["ORDER"] = "order";
|
|
101
101
|
SelectDataField["ORDER_HISTORY"] = "orderHistory";
|
|
102
|
-
SelectDataField["ORDER_LIST"] = "orderList";
|
|
103
102
|
SelectDataField["PARTNER"] = "partner";
|
|
104
103
|
SelectDataField["PARTNERTAG"] = "partnertag";
|
|
105
104
|
SelectDataField["PROGRAM"] = "program";
|
|
@@ -7,7 +7,7 @@ import { ErrorsType, PageType, Queries, SelectDataField, SelectableField } from
|
|
|
7
7
|
import { ContactsType } from './entities/contact';
|
|
8
8
|
import { SubscriptionType } from './entities/subscription';
|
|
9
9
|
import { SpecialPriceRateType } from './entities/specialPriceRate';
|
|
10
|
-
import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType,
|
|
10
|
+
import { GraphqlApiOrderHistoryType, GraphqlApiOrderLinkType, OrderItemsType, OrdersType } from './entities/order';
|
|
11
11
|
import { GraphqlApiProgramType, ProgramBenefitType, ProgramLevelType, ProgramRequirementType, ProgramLevelOptionGroupType, ProgramLevelOptionType, SubscribedProgramType, SubscriptionExtraFieldType } from './entities/program';
|
|
12
12
|
import { LicenseBudgetNotificationType, LicenseBudgetType } from './entities/licenseBudget';
|
|
13
13
|
import { UserHistoryType, UserType } from './entities/user';
|
|
@@ -109,7 +109,6 @@ export declare type ErrorsSchema = Schema<ErrorsType, boolean>;
|
|
|
109
109
|
export declare type GraphqlApiEavSchema = Schema<GraphqlApiEavType, boolean>;
|
|
110
110
|
export declare type GraphqlApiOrderHistorySchema = Schema<GraphqlApiOrderHistoryType, boolean>;
|
|
111
111
|
export declare type GraphqlApiOrderLinkSchema = Schema<GraphqlApiOrderLinkType, boolean>;
|
|
112
|
-
export declare type GraphqlApiOrderListSchema = Schema<GraphqlApiOrderListType, boolean>;
|
|
113
112
|
export declare type LicenseBudgetNotificationSchema = Schema<LicenseBudgetNotificationType, boolean>;
|
|
114
113
|
export declare type BaseCompanySchema = Schema<BaseCompanyType, boolean>;
|
|
115
114
|
export declare type OrganizationUnitSchema = Schema<OrganizationUnitsType, boolean>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../abstractEntity';
|
|
2
2
|
import { LicenseFindResultFields } from './license/licenseFindResult';
|
|
3
|
+
declare type FilterFindResultDataIterable = {
|
|
4
|
+
[field in LicenseFindResultFields]?: unknown;
|
|
5
|
+
};
|
|
3
6
|
/**
|
|
4
7
|
* Filter data values
|
|
5
8
|
*/
|
|
6
|
-
export declare type FilterFindResultDataValues =
|
|
7
|
-
|
|
9
|
+
export declare type FilterFindResultDataValues = FilterFindResultDataIterable | LicenseFilterAggregationType[];
|
|
10
|
+
export declare type LicenseFilterAggregationType = {
|
|
11
|
+
count: number;
|
|
12
|
+
values: string[];
|
|
8
13
|
};
|
|
9
14
|
/**
|
|
10
15
|
* Filter data
|
|
@@ -44,3 +49,4 @@ export declare class FilterFindResult extends AbstractEntity<FilterFindResultDat
|
|
|
44
49
|
*/
|
|
45
50
|
toJSON(): FilterFindResultData;
|
|
46
51
|
}
|
|
52
|
+
export {};
|
|
@@ -32,6 +32,10 @@ import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCoupon
|
|
|
32
32
|
* Parameters passable to the request for refining search.
|
|
33
33
|
*/
|
|
34
34
|
export declare enum LicenseFindParameters {
|
|
35
|
+
/**
|
|
36
|
+
* The key for aggregation search query parameter (to request extra aggregation, which are not provided by default)
|
|
37
|
+
*/
|
|
38
|
+
DATA_AGGREGATION = "aggregations",
|
|
35
39
|
/**
|
|
36
40
|
* The key for keyword search query parameter (to search one string in all available search fields)
|
|
37
41
|
*/
|
|
@@ -177,6 +181,7 @@ export declare type LicenseRawFiltersParameters = {
|
|
|
177
181
|
* Payload to pass the find request. Contains keyword(s), sort options, column filters and highlight option.
|
|
178
182
|
*/
|
|
179
183
|
export declare type LicenseFindPayload = {
|
|
184
|
+
[LicenseFindParameters.DATA_AGGREGATION]?: string[];
|
|
180
185
|
[LicenseFindParameters.DATA_KEYWORD]?: string;
|
|
181
186
|
[LicenseFindParameters.DATA_KEYWORDS]?: LicenseKeywordsParameters;
|
|
182
187
|
[LicenseFindParameters.DATA_FILTERS]?: LicenseFiltersParameters;
|
|
@@ -185,6 +190,7 @@ export declare type LicenseFindPayload = {
|
|
|
185
190
|
[LicenseFindParameters.DATA_HIGHLIGHT]?: boolean;
|
|
186
191
|
};
|
|
187
192
|
export declare type LicenseFindRawPayload = {
|
|
193
|
+
[LicenseFindParameters.DATA_AGGREGATION]?: string[];
|
|
188
194
|
[LicenseFindParameters.DATA_KEYWORD]?: string;
|
|
189
195
|
[LicenseFindParameters.DATA_KEYWORDS]?: {
|
|
190
196
|
license?: LicenseRawKeywordsParametersLicence;
|
|
@@ -27,6 +27,10 @@ const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCoup
|
|
|
27
27
|
*/
|
|
28
28
|
var LicenseFindParameters;
|
|
29
29
|
(function (LicenseFindParameters) {
|
|
30
|
+
/**
|
|
31
|
+
* The key for aggregation search query parameter (to request extra aggregation, which are not provided by default)
|
|
32
|
+
*/
|
|
33
|
+
LicenseFindParameters["DATA_AGGREGATION"] = "aggregations";
|
|
30
34
|
/**
|
|
31
35
|
* The key for keyword search query parameter (to search one string in all available search fields)
|
|
32
36
|
*/
|
|
@@ -257,6 +261,7 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
257
261
|
this.setPerPage(perPage);
|
|
258
262
|
this.setPage(page);
|
|
259
263
|
const rawLicensePayload = {
|
|
264
|
+
aggregations: postData.aggregations,
|
|
260
265
|
keyword: postData.keyword,
|
|
261
266
|
highlight: postData.highlight,
|
|
262
267
|
};
|
|
@@ -268,6 +273,14 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
268
273
|
...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
|
|
269
274
|
};
|
|
270
275
|
}
|
|
276
|
+
if (postData.keywords) {
|
|
277
|
+
// Flatten with prefix for each type of keyword (license and offer)
|
|
278
|
+
rawLicensePayload.keywords = {
|
|
279
|
+
...this.createKeywords(postData.keywords, 'license'),
|
|
280
|
+
...this.createKeywords(postData.keywords, 'offer'),
|
|
281
|
+
...this.createKeywords(postData.keywords, 'endCustomerOrganizationUnit'),
|
|
282
|
+
};
|
|
283
|
+
}
|
|
271
284
|
if (postData.filters) {
|
|
272
285
|
// Flatten with prefix for each type of filter (license and offer)
|
|
273
286
|
rawLicensePayload.filters = {
|
package/package.json
CHANGED