@mediusinc/mng-commons-data-api-class 6.2.0 → 7.0.0-rc.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/fesm2022/mediusinc-mng-commons-data-api-class-tableview.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-data-api-class-v1.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-data-api-class.mjs.map +1 -1
- package/index.d.ts +95 -5
- package/package.json +4 -4
- package/tableview/index.d.ts +42 -2
- package/v1/index.d.ts +353 -15
- package/version-info.json +6 -6
- package/lib/models/query-result.model.d.ts +0 -13
- package/lib/serder/object-serializer.d.ts +0 -26
- package/lib/services/api.abstract.service.d.ts +0 -21
- package/lib/services/crud-api.abstract.service.d.ts +0 -25
- package/lib/services/get-all-api.abstract.service.d.ts +0 -14
- package/tableview/tableview-crud-create.d.ts +0 -24
- package/tableview/tableview-crud.data-provider.d.ts +0 -16
- package/v1/helpers/query-param-convert.d.ts +0 -23
- package/v1/helpers/tableview-crud-create.d.ts +0 -23
- package/v1/models/builders/query-param.builder.d.ts +0 -36
- package/v1/models/filter-match-type.model.d.ts +0 -25
- package/v1/models/filter-param.model.d.ts +0 -23
- package/v1/models/query-mode.model.d.ts +0 -16
- package/v1/models/query-param.model.d.ts +0 -31
- package/v1/models/query-result.model.d.ts +0 -24
- package/v1/provide.d.ts +0 -11
- package/v1/services/api.abstract.service.d.ts +0 -36
- package/v1/services/crud-api.abstract.service.d.ts +0 -37
- package/v1/services/get-all-api.abstract.service.d.ts +0 -30
- package/v1/services/tokens/data-api-class.token.d.ts +0 -5
- package/v1/tableview/tableview-crud.data-provider.d.ts +0 -29
- package/v1/utils/query-param-map.util.d.ts +0 -22
package/v1/index.d.ts
CHANGED
|
@@ -1,15 +1,353 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ClassAttributeDef, DataListParams, DataListResult, ClassType, IdType, ServiceClassType, CommonsFeature } from '@mediusinc/mng-commons/core';
|
|
3
|
+
import * as _mediusinc_mng_commons_tableview_api from '@mediusinc/mng-commons/tableview/api';
|
|
4
|
+
import { TableviewDataProviderInst, TableviewInputBuilder, TableviewDescriptorInst } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
+
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
6
|
+
import { ObjectSerializer } from '@mediusinc/mng-commons-data-api-class';
|
|
7
|
+
import { Type, InjectionToken, Provider } from '@angular/core';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Generated API
|
|
11
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
12
|
+
*
|
|
13
|
+
* The version of the OpenAPI document: 1.0
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17
|
+
* https://openapi-generator.tech
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
declare enum MediusFilterMatchType {
|
|
21
|
+
Equals = "EQUALS",
|
|
22
|
+
NotEquals = "NOT_EQUALS",
|
|
23
|
+
FromTo = "FROM_TO",
|
|
24
|
+
Contains = "CONTAINS",
|
|
25
|
+
StartsWith = "STARTS_WITH",
|
|
26
|
+
EndsWith = "ENDS_WITH",
|
|
27
|
+
In = "IN",
|
|
28
|
+
NotIn = "NOT_IN",
|
|
29
|
+
SmallerThan = "SMALLER_THAN",
|
|
30
|
+
GreaterThan = "GREATER_THAN",
|
|
31
|
+
Exists = "EXISTS",
|
|
32
|
+
DoesNotExist = "DOES_NOT_EXIST"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Generated API
|
|
37
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
38
|
+
*
|
|
39
|
+
* The version of the OpenAPI document: 1.0
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
43
|
+
* https://openapi-generator.tech
|
|
44
|
+
* Do not edit the class manually.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
declare class MediusFilterParam {
|
|
48
|
+
property?: string;
|
|
49
|
+
filterValue?: any;
|
|
50
|
+
filterValueTo?: any;
|
|
51
|
+
filterMatchType?: MediusFilterMatchType;
|
|
52
|
+
filterMatchCaseSensitive?: boolean;
|
|
53
|
+
static discriminator?: string;
|
|
54
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
55
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generated API
|
|
60
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
61
|
+
*
|
|
62
|
+
* The version of the OpenAPI document: 1.0
|
|
63
|
+
*
|
|
64
|
+
*
|
|
65
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
66
|
+
* https://openapi-generator.tech
|
|
67
|
+
* Do not edit the class manually.
|
|
68
|
+
*/
|
|
69
|
+
declare enum MediusQueryMode {
|
|
70
|
+
Count = "COUNT",
|
|
71
|
+
Data = "DATA",
|
|
72
|
+
All = "ALL"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Generated API
|
|
77
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
78
|
+
*
|
|
79
|
+
* The version of the OpenAPI document: 1.0
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
83
|
+
* https://openapi-generator.tech
|
|
84
|
+
* Do not edit the class manually.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
declare class MediusQueryParam {
|
|
88
|
+
sortProperty?: Array<string>;
|
|
89
|
+
sortAsc?: Array<boolean>;
|
|
90
|
+
itemsOffset?: number;
|
|
91
|
+
itemsPerPage?: number;
|
|
92
|
+
filterParams?: Array<MediusFilterParam>;
|
|
93
|
+
filterAllParam?: string;
|
|
94
|
+
filterAllProperties?: Array<string>;
|
|
95
|
+
validateProperties?: Array<string>;
|
|
96
|
+
selectInTwoSteps?: boolean;
|
|
97
|
+
sortEnumByOrdinal?: boolean;
|
|
98
|
+
groupByProperties?: Array<string>;
|
|
99
|
+
queryMode?: MediusQueryMode;
|
|
100
|
+
static discriminator?: string;
|
|
101
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
102
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Generated API
|
|
107
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
108
|
+
*
|
|
109
|
+
* The version of the OpenAPI document: 1.0
|
|
110
|
+
*
|
|
111
|
+
*
|
|
112
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
113
|
+
* https://openapi-generator.tech
|
|
114
|
+
* Do not edit the class manually.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
declare class MediusQueryResult<T> implements IMediusQueryResult<T> {
|
|
118
|
+
allDataCount?: number;
|
|
119
|
+
pageData?: Array<T>;
|
|
120
|
+
static discriminator?: string;
|
|
121
|
+
static fromArray<T>(pageData: T[], allDataCount?: number): MediusQueryResult<T>;
|
|
122
|
+
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
123
|
+
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
124
|
+
}
|
|
125
|
+
interface IMediusQueryResult<T> {
|
|
126
|
+
allDataCount?: number;
|
|
127
|
+
pageData?: Array<T>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* A class representing a mapping of query parameters.
|
|
132
|
+
*
|
|
133
|
+
* @typeparam Sorts - The type for available sort keys on get all operation.
|
|
134
|
+
* @typeparam Filters - The type for available sort keys on get all operation.
|
|
135
|
+
*
|
|
136
|
+
* @deprecated
|
|
137
|
+
*/
|
|
138
|
+
declare class QueryParamMap<Sorts, Filters extends keyof any> {
|
|
139
|
+
private readonly _params?;
|
|
140
|
+
private readonly _sorts;
|
|
141
|
+
private readonly _filters;
|
|
142
|
+
protected constructor(_params?: DataListParams<Sorts, Filters> | undefined);
|
|
143
|
+
static create(): QueryParamMap<string, string>;
|
|
144
|
+
static forParams<Sorts, Filters extends keyof any>(params?: DataListParams<Sorts, Filters>): QueryParamMap<Sorts, Filters>;
|
|
145
|
+
withSortMap(sort: Sorts, mapTo: string): this;
|
|
146
|
+
withFilterMap(filter: Filters, mapTo: string): this;
|
|
147
|
+
mapSort(sort: string): string;
|
|
148
|
+
mapFilter(filter: string): string;
|
|
149
|
+
mapParams(): DataListParams<any, any> | undefined;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare function toV1QueryParam(): undefined;
|
|
153
|
+
declare function toV1QueryParam<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters>, map?: QueryParamMap<Sorts, Filters>): MediusQueryParam;
|
|
154
|
+
declare function toV1QueryParam<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters> | undefined, map?: QueryParamMap<Sorts, Filters>): MediusQueryParam | undefined;
|
|
155
|
+
declare function toV1FilterMatchType(match: string): MediusFilterMatchType;
|
|
156
|
+
/**
|
|
157
|
+
* Convert a query result from an obsolete API version 1 to a `DataListResult`
|
|
158
|
+
*
|
|
159
|
+
* @param {DataListParams} params - The data list parameters for the query
|
|
160
|
+
* @param {Service} service - The service object used to make the API call
|
|
161
|
+
* @param {function} apiOperation - The API operation function that returns an `Observable<MediusQueryResult<Item>>`
|
|
162
|
+
* @param {any} additionalParams - Additional parameters to pass to the API operation function (optional)
|
|
163
|
+
*
|
|
164
|
+
* @returns {Observable<DataListResult<Item>>} - An observable that emits a `DataListResult` object
|
|
165
|
+
*
|
|
166
|
+
* @deprecated
|
|
167
|
+
*/
|
|
168
|
+
declare function executeV1GetAll<Item, Service>(params: DataListParams, service: Service, apiOperation: (qp: MediusQueryParam, ...additionalParams: any) => Observable<MediusQueryResult<Item>>, additionalParams?: any): Observable<DataListResult<Item>>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* This is an abstract class that provides base functionality for API services.
|
|
172
|
+
*
|
|
173
|
+
* @deprecated
|
|
174
|
+
*/
|
|
175
|
+
declare abstract class ACommonsBaseV1ApiService {
|
|
176
|
+
protected readonly objectSerializer: ObjectSerializer;
|
|
177
|
+
protected readonly http: HttpClient;
|
|
178
|
+
protected readonly obsoleteConfig: boolean;
|
|
179
|
+
protected abstract getBasePath(): string;
|
|
180
|
+
protected abstract getServiceBasePath(): string | null;
|
|
181
|
+
protected getUrl(...pathSegments: Array<string>): string;
|
|
182
|
+
protected serializeQueryParam(queryParam: MediusQueryParam, type?: string): any;
|
|
183
|
+
protected deserializeQueryResult<QR>(item: any, qrType: ClassType<QR>): QR;
|
|
184
|
+
protected deserializeClass<C>(item: any, type: ClassType<C>): C;
|
|
185
|
+
protected deserializeClassArray<C>(item: any, type: ClassType<C>): Array<C>;
|
|
186
|
+
protected serializeClass<C>(item: C, type: ClassType<C>): any;
|
|
187
|
+
protected serializeClassArray<C>(item: Array<C>, type: ClassType<C>): any;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Represents an abstract base class for the ACommonsV1ApiService.
|
|
191
|
+
*
|
|
192
|
+
* @typeparam T The main type of data to be handled by the service.
|
|
193
|
+
*
|
|
194
|
+
* @deprecated
|
|
195
|
+
*/
|
|
196
|
+
declare abstract class ACommonsV1ApiService<T> extends ACommonsBaseV1ApiService {
|
|
197
|
+
protected type: ClassType<T>;
|
|
198
|
+
protected constructor(type: ClassType<T>);
|
|
199
|
+
protected deserialize(item: any): T;
|
|
200
|
+
protected serialize(item: T): any;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* A service interface for getting paginated data results using POST method.
|
|
205
|
+
*
|
|
206
|
+
* @typeparam QRT The type of the query result in get all operation.
|
|
207
|
+
*
|
|
208
|
+
* @deprecated
|
|
209
|
+
*/
|
|
210
|
+
interface ICommonsGetAllV1ApiService<QRT extends MediusQueryResult<any>> {
|
|
211
|
+
getAllPost(queryParamBody?: MediusQueryParam, params?: HttpParams, locale?: string): Observable<QRT>;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* An abstract class representing a service for retrieving all obsolete entities.
|
|
215
|
+
*
|
|
216
|
+
* @typeparam T The main type of data to be handled by the service.
|
|
217
|
+
* @typeparam QRT The type of the query result in get all operation.
|
|
218
|
+
*
|
|
219
|
+
* @deprecated
|
|
220
|
+
*/
|
|
221
|
+
declare abstract class ACommonsGetAllV1ApiService<T, QRT extends MediusQueryResult<any>> extends ACommonsV1ApiService<T> implements ICommonsGetAllV1ApiService<QRT> {
|
|
222
|
+
protected queryResultType: ClassType<QRT>;
|
|
223
|
+
protected constructor(type: ClassType<T>, queryResultType: ClassType<QRT>);
|
|
224
|
+
getAllPost(queryParamBody?: MediusQueryParam, params?: HttpParams, locale?: string): Observable<QRT>;
|
|
225
|
+
protected getGetAllPostPath(): string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* A service interface for CRUD operation on a resource.
|
|
230
|
+
*
|
|
231
|
+
* @typeparam T The main type of data to be handled by the service.
|
|
232
|
+
*
|
|
233
|
+
* @deprecated
|
|
234
|
+
*/
|
|
235
|
+
interface ICommonsCrudV1ApiService<T> {
|
|
236
|
+
createPost?(item: T, params?: HttpParams): Observable<T>;
|
|
237
|
+
getByIdGet?(id: IdType, params?: HttpParams, locale?: string): Observable<T>;
|
|
238
|
+
updatePut?(id: IdType, item: T, params?: HttpParams): Observable<T>;
|
|
239
|
+
removeDelete?(id: IdType, item?: T, params?: HttpParams): Observable<T | null>;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Abstract class for creating CRUD API service implementation.
|
|
243
|
+
*
|
|
244
|
+
* @typeparam T The type of the entity.
|
|
245
|
+
* @typeparam QRT The type of the query result.
|
|
246
|
+
*
|
|
247
|
+
* @deprecated
|
|
248
|
+
*/
|
|
249
|
+
declare abstract class ACommonsCrudV1ApiService<T, QRT extends MediusQueryResult<any>> extends ACommonsGetAllV1ApiService<T, QRT> implements ICommonsCrudV1ApiService<T> {
|
|
250
|
+
protected constructor(type: ClassType<T>, queryResultType: ClassType<QRT>);
|
|
251
|
+
createPost(item: T, params?: HttpParams): Observable<T>;
|
|
252
|
+
getByIdGet(id: IdType, params?: HttpParams, locale?: string): Observable<T>;
|
|
253
|
+
updatePut(id: IdType, item: T, params?: HttpParams): Observable<T>;
|
|
254
|
+
removeDelete(id: IdType, item?: T, params?: HttpParams): Observable<T | null>;
|
|
255
|
+
protected getCreatePostPath(item: T): string;
|
|
256
|
+
protected getUpdatePutPath(id: IdType, item: T): string;
|
|
257
|
+
protected getGetByIdGetPath(id: IdType): string;
|
|
258
|
+
protected getRemoveDeletePath(id: IdType, item?: T): string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* A data provider for a CRUD table view that uses an obsolete version 1 API service.
|
|
263
|
+
*
|
|
264
|
+
* @typeparam Model - The type of the data model.
|
|
265
|
+
* @typeparam Service - The type of the API service.
|
|
266
|
+
* @typeparam Sorts - The type for available sort keys on get all operation.
|
|
267
|
+
* @typeparam Filters - The type for available sort keys on get all operation.
|
|
268
|
+
*
|
|
269
|
+
* @deprecated
|
|
270
|
+
*/
|
|
271
|
+
declare class TableviewCrudV1DataProviderInst<Model, Service extends ICommonsCrudV1ApiService<Model> & ICommonsGetAllV1ApiService<MediusQueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model> extends TableviewDataProviderInst<Model, Service, Sorts, Filters, ServiceClassType<Service>> {
|
|
272
|
+
protected constructor(serviceType: Type<Service>, idPropertyName?: string, useGetAllForFetch?: boolean);
|
|
273
|
+
}
|
|
274
|
+
declare class TableviewCrudV1DataProvider extends TableviewCrudV1DataProviderInst<any, any> {
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated
|
|
277
|
+
*/
|
|
278
|
+
static create<Model, Service extends ICommonsCrudV1ApiService<Model> & ICommonsGetAllV1ApiService<MediusQueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, serviceType: Type<Service>, idProperty?: keyof Model, useGetAllForFetch?: boolean): TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>;
|
|
279
|
+
/**
|
|
280
|
+
* @deprecated
|
|
281
|
+
*/
|
|
282
|
+
static createUnsafe<Model, Service extends ICommonsCrudV1ApiService<Model> & ICommonsGetAllV1ApiService<MediusQueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, serviceType: Type<Service>, idProperty?: string, useGetAllForFetch?: boolean): TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Creates a tableview with the given class, service based on data API v1 (obsolete) and optional class/model configuration.
|
|
287
|
+
*
|
|
288
|
+
* @param {ClassType<Model>} type - The class representing the model.
|
|
289
|
+
* @param {ServiceClassType<Service>} service - The class type of the service implementing `IMngCrudObsoleteV1ApiService` and `IMngGetAllObsoleteV1ApiService`.
|
|
290
|
+
* @param {{ idProperty?: keyof Model; titleProperty?: keyof Model; i18nBaseKey?: ClassType<any> | string; }} [modelConfig] - Additional optional model configuration.
|
|
291
|
+
* @param {(builder: TableviewBuilder) => void} [buildFn] - The optional callback function to customize the tableview using the prepared builder.
|
|
292
|
+
*
|
|
293
|
+
* @returns {Tableview} - The built table view.
|
|
294
|
+
*
|
|
295
|
+
* @deprecated
|
|
296
|
+
*/
|
|
297
|
+
declare function tableviewCrudV1<Model, Service extends ICommonsCrudV1ApiService<Model> & ICommonsGetAllV1ApiService<MediusQueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, service: ServiceClassType<Service>, modelConfig?: {
|
|
298
|
+
idProperty?: keyof Model;
|
|
299
|
+
titleProperty?: keyof Model;
|
|
300
|
+
i18nBaseKey?: ClassType<any> | string;
|
|
301
|
+
}, buildFn?: (builder: TableviewInputBuilder<Model, Service, TableviewDescriptorInst<Model, Sorts, Filters, undefined, Model, Model, Model, Model>, TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>, Sorts, Filters>) => void): _mediusinc_mng_commons_tableview_api.TableviewInput<Model, Service, Sorts, Filters, Model, Model, Model, TableviewDescriptorInst<Model, Sorts, Filters, undefined, Model, Model, Model, Model>, TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>>;
|
|
302
|
+
|
|
303
|
+
declare class MediusQueryParamBuilder {
|
|
304
|
+
private queryParam;
|
|
305
|
+
private constructor();
|
|
306
|
+
/**
|
|
307
|
+
* Creates a new instance of `MediusQueryParamBuilder` with the specified `itemsPerPage` and `itemsOffset` values.
|
|
308
|
+
*
|
|
309
|
+
* @param {number} [itemsPerPage=50] - The number of items per page.
|
|
310
|
+
* @param {number} [itemsOffset=0] - The offset value for the items.
|
|
311
|
+
*
|
|
312
|
+
* @returns {MediusQueryParamBuilder} A new instance of `MediusQueryParamBuilder`.
|
|
313
|
+
*
|
|
314
|
+
* @deprecated
|
|
315
|
+
*/
|
|
316
|
+
static create(itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new instance of MediusQueryParamBuilder based on an existing MediusQueryParam object.
|
|
319
|
+
*
|
|
320
|
+
* @param {MediusQueryParam} queryParam - The existing MediusQueryParam object to create from.
|
|
321
|
+
* @param {number} [itemsPerPage] - The number of items per page for the new instance. If not provided, default value is used.
|
|
322
|
+
* @param {number} [itemsOffset] - The offset for the new instance. If not provided, default value is used.
|
|
323
|
+
*
|
|
324
|
+
* @returns {MediusQueryParamBuilder} - A new instance of MediusQueryParamBuilder.
|
|
325
|
+
*
|
|
326
|
+
* @deprecated
|
|
327
|
+
*/
|
|
328
|
+
static createFromExisting(queryParam: MediusQueryParam, itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
|
|
329
|
+
withItemsPerPage(itemsPerPage: number): MediusQueryParamBuilder;
|
|
330
|
+
withItemsOffset(itemsOffset: number): MediusQueryParamBuilder;
|
|
331
|
+
withQueryMode(queryMode: MediusQueryMode): MediusQueryParamBuilder;
|
|
332
|
+
withSort(property: string, asc?: boolean): MediusQueryParamBuilder;
|
|
333
|
+
withFilter(property: string, value: any, valueTo?: any, matchType?: MediusFilterMatchType, matchCaseSensitive?: boolean): MediusQueryParamBuilder;
|
|
334
|
+
build(): MediusQueryParam;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Some fake token to incept needed types for query params and object serializer setup
|
|
339
|
+
*/
|
|
340
|
+
declare const COMMONS_DATA_API_CLASS_OBSOLETE_CONFIG_IT: InjectionToken<boolean>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Prepares providers for usage of the Obsolete Data API functionalities.
|
|
344
|
+
*
|
|
345
|
+
* @returns {CommonsFeature} The `CommonsFeature` object with the Data API Obsolete configuration.
|
|
346
|
+
*
|
|
347
|
+
* @deprecated.
|
|
348
|
+
*/
|
|
349
|
+
declare function withDataApiV1(): CommonsFeature;
|
|
350
|
+
declare function provideDataApiV1Child(): Provider;
|
|
351
|
+
|
|
352
|
+
export { ACommonsBaseV1ApiService, ACommonsCrudV1ApiService, ACommonsGetAllV1ApiService, ACommonsV1ApiService, COMMONS_DATA_API_CLASS_OBSOLETE_CONFIG_IT, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, QueryParamMap, TableviewCrudV1DataProvider, TableviewCrudV1DataProviderInst, executeV1GetAll, provideDataApiV1Child, tableviewCrudV1, toV1FilterMatchType, toV1QueryParam, withDataApiV1 };
|
|
353
|
+
export type { ICommonsCrudV1ApiService, ICommonsGetAllV1ApiService, IMediusQueryResult };
|
package/version-info.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mediusinc/mng-commons-data-api-class",
|
|
3
|
-
"version": "
|
|
4
|
-
"tag": "v6.2.0",
|
|
5
|
-
"distance":
|
|
6
|
-
"hash": "
|
|
3
|
+
"version": "7.0.0-rc.0",
|
|
4
|
+
"tag": "v6.2.0-rc.0",
|
|
5
|
+
"distance": 6,
|
|
6
|
+
"hash": "ce245f4b",
|
|
7
7
|
"dirty": true,
|
|
8
|
-
"semver": "6.2.0+
|
|
8
|
+
"semver": "6.2.0-rc.0+6.gce245f4b.dirty",
|
|
9
9
|
"buildTimestamp": null,
|
|
10
|
-
"raw": "v6.2.0-
|
|
10
|
+
"raw": "v6.2.0-rc.0-6-ce245f4b-dirty"
|
|
11
11
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ClassAttributeDef } from '@mediusinc/mng-commons/core';
|
|
2
|
-
export declare class QueryResult<Item> implements IMediusQueryResultV2<Item> {
|
|
3
|
-
totalCount?: number;
|
|
4
|
-
data?: Array<Item>;
|
|
5
|
-
static discriminator?: string;
|
|
6
|
-
static fromArray<Item>(pageData: Item[], allDataCount?: number): QueryResult<Item>;
|
|
7
|
-
static attributeTypeMap: Array<ClassAttributeDef>;
|
|
8
|
-
static getAttributeTypeMap(): ClassAttributeDef[];
|
|
9
|
-
}
|
|
10
|
-
export interface IMediusQueryResultV2<Item> {
|
|
11
|
-
totalCount?: number;
|
|
12
|
-
data?: Array<Item>;
|
|
13
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ClassType } from '@mediusinc/mng-commons/core';
|
|
2
|
-
export declare class ObjectSerializer {
|
|
3
|
-
private static _instance;
|
|
4
|
-
private readonly _logCategory;
|
|
5
|
-
private readonly _primitives;
|
|
6
|
-
private dateTimeInUtc;
|
|
7
|
-
private dateTimeWithTimezone;
|
|
8
|
-
private dateTimeWithMillis;
|
|
9
|
-
get primitives(): string[];
|
|
10
|
-
/**
|
|
11
|
-
* Only use one instance of object (out of Angular context)
|
|
12
|
-
*/
|
|
13
|
-
static get(): ObjectSerializer;
|
|
14
|
-
configure(config: {
|
|
15
|
-
dateTimeInUtc?: boolean;
|
|
16
|
-
dateTimeWithTimezone?: boolean;
|
|
17
|
-
dateTimeWithMillis?: boolean;
|
|
18
|
-
}): void;
|
|
19
|
-
findCorrectType(data: any, expectedTypeName: string): string;
|
|
20
|
-
serializeClass<T>(data: T, type: ClassType<T>): any;
|
|
21
|
-
serializeClassArray<T>(data: Array<T>, type: ClassType<T>): any;
|
|
22
|
-
serialize(data: any, typeName?: string, subtype?: string): any;
|
|
23
|
-
deserializeClass<T>(data: any, type: ClassType<T>): T;
|
|
24
|
-
deserializeClassArray<T>(data: any, type: ClassType<T>): Array<T>;
|
|
25
|
-
deserialize(data: any, type?: string): any;
|
|
26
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ClassType } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { ObjectSerializer } from '../serder/object-serializer';
|
|
4
|
-
export declare abstract class ACommonsBaseApiService {
|
|
5
|
-
protected readonly objectSerializer: ObjectSerializer;
|
|
6
|
-
protected readonly http: HttpClient;
|
|
7
|
-
protected abstract getBasePath(): string;
|
|
8
|
-
protected abstract getServiceBasePath(): string | null;
|
|
9
|
-
protected getUrl(...pathSegments: Array<string>): string;
|
|
10
|
-
protected deserializeQueryResult<QR>(item: any, qrType: ClassType<QR>): QR;
|
|
11
|
-
protected deserializeClass<C>(item: any, type: ClassType<C>): C;
|
|
12
|
-
protected deserializeClassArray<C>(item: any, type: ClassType<C>): Array<C>;
|
|
13
|
-
protected serializeClass<C>(item: C, type: ClassType<C>): any;
|
|
14
|
-
protected serializeClassArray<C>(item: Array<C>, type: ClassType<C>): any;
|
|
15
|
-
}
|
|
16
|
-
export declare abstract class ACommonsApiService<T> extends ACommonsBaseApiService {
|
|
17
|
-
protected type: ClassType<T>;
|
|
18
|
-
protected constructor(type: ClassType<T>);
|
|
19
|
-
protected deserialize(item: any): T;
|
|
20
|
-
protected serialize(item: T): any;
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HttpParams } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ClassType, IdType } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { QueryResult } from '../models/query-result.model';
|
|
5
|
-
import { ACommonsGetAllApiService } from './get-all-api.abstract.service';
|
|
6
|
-
export interface ICommonsCrudApiService<FetchType, RequestType> {
|
|
7
|
-
createPost?(item: RequestType, params?: HttpParams): Observable<FetchType>;
|
|
8
|
-
getByIdGet?(id: IdType, params?: HttpParams, locale?: string): Observable<FetchType>;
|
|
9
|
-
updatePut?(id: IdType, item: RequestType, params?: HttpParams): Observable<FetchType>;
|
|
10
|
-
removeDelete?(id: IdType, item?: FetchType, params?: HttpParams): Observable<FetchType | undefined>;
|
|
11
|
-
}
|
|
12
|
-
export declare abstract class ACommonsCrudApiService<FetchType, RequestType, QueryResultType extends QueryResult<any>> extends ACommonsGetAllApiService<FetchType, QueryResultType> implements ICommonsCrudApiService<FetchType, RequestType> {
|
|
13
|
-
protected requestType: ClassType<RequestType>;
|
|
14
|
-
protected constructor(fetchType: ClassType<FetchType>, requestType: ClassType<RequestType>, queryResultType: ClassType<QueryResultType>);
|
|
15
|
-
createPost(item: RequestType, params?: HttpParams): Observable<FetchType>;
|
|
16
|
-
getByIdGet(id: IdType, params?: HttpParams, locale?: string): Observable<FetchType>;
|
|
17
|
-
updatePut(id: IdType, item: RequestType, params?: HttpParams): Observable<FetchType>;
|
|
18
|
-
removeDelete(id: IdType, item?: FetchType, params?: HttpParams): Observable<FetchType | undefined>;
|
|
19
|
-
protected getCreatePostPath(item: RequestType): string;
|
|
20
|
-
protected getUpdatePutPath(id: IdType, item: RequestType): string;
|
|
21
|
-
protected getGetByIdGetPath(id: IdType): string;
|
|
22
|
-
protected getRemoveDeletePath(id: IdType, item?: FetchType): string;
|
|
23
|
-
protected deserializeRequest(item: any): RequestType;
|
|
24
|
-
protected serializeRequest(item: RequestType): any;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpParams } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ClassType, DataListParams } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { QueryResult } from '../models/query-result.model';
|
|
5
|
-
import { ACommonsApiService } from './api.abstract.service';
|
|
6
|
-
export interface ICommonsGetAllApiService<QRT extends QueryResult<any>> {
|
|
7
|
-
getAllGet(requestParams?: DataListParams<any, any>, params?: HttpParams, locale?: string): Observable<QRT>;
|
|
8
|
-
}
|
|
9
|
-
export declare abstract class ACommonsGetAllApiService<FetchType, QueryResultType extends QueryResult<any>> extends ACommonsApiService<FetchType> implements ICommonsGetAllApiService<QueryResultType> {
|
|
10
|
-
protected queryResultType: ClassType<QueryResultType>;
|
|
11
|
-
protected constructor(fetchType: ClassType<FetchType>, queryResultType: ClassType<QueryResultType>);
|
|
12
|
-
getAllGet(requestParams?: DataListParams, params?: HttpParams, locale?: string): Observable<QueryResultType>;
|
|
13
|
-
protected getGetAllGetPath(): string;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ICommonsCrudApiService, ICommonsGetAllApiService, QueryResult } from '@mediusinc/mng-commons-data-api-class';
|
|
2
|
-
import { ClassType, ServiceClassType } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { ModelDescriptor, TypeDescriptor } from '@mediusinc/mng-commons/model';
|
|
4
|
-
import { TableviewDescriptorInst, TableviewInputBuilder } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
-
import { TableviewCrudDataProviderInst } from './tableview-crud.data-provider';
|
|
6
|
-
/**
|
|
7
|
-
* Creates a tableview with the given class, request class, service based on data API v2, sort, filters and optional class/model configuration.
|
|
8
|
-
* Sorts and filters are expected to be keys of class.
|
|
9
|
-
*
|
|
10
|
-
* @param {ClassType<Model>} type - The class representing the model.
|
|
11
|
-
* @param {ClassType<RequestModel>} requestType - The class representing the model for create and update operations.
|
|
12
|
-
* @param {ServiceClassType<Service>} service - The class type of the service implementing `IMngCrudApiService` and `IMngGetAllApiService`.
|
|
13
|
-
* @param {{ idProperty?: keyof Model; titleProperty?: keyof Model; i18nBaseKey?: ClassType<any> | string; }} [modelConfig] - Additional optional model configuration.
|
|
14
|
-
* @param {(builder: TableviewBuilder) => void} [buildFn] - The optional callback function to customize the tableview using the prepared builder.
|
|
15
|
-
*
|
|
16
|
-
* @returns A tableview instance with descriptor, data provider and actions.
|
|
17
|
-
*/
|
|
18
|
-
export declare function tableviewCrud<Model, RequestModel, Service extends ICommonsCrudApiService<Model, RequestModel> & ICommonsGetAllApiService<QueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, requestType: ClassType<RequestModel>, service: ServiceClassType<Service>, modelConfig?: {
|
|
19
|
-
idProperty?: keyof Model;
|
|
20
|
-
titleProperty?: keyof Model;
|
|
21
|
-
i18nBaseKey?: string;
|
|
22
|
-
sortsType?: TypeDescriptor<Sorts> | ModelDescriptor<Sorts>;
|
|
23
|
-
filtersType?: TypeDescriptor<Filters> | ModelDescriptor<Filters>;
|
|
24
|
-
}, buildFn?: (builder: TableviewInputBuilder<Model, Service, TableviewDescriptorInst<Model, Sorts, Filters>, TableviewCrudDataProviderInst<Model, RequestModel, Service, Sorts, Filters>, Sorts, Filters>) => void): import("@mediusinc/mng-commons/tableview/api").TableviewInput<Model, Service, Sorts, Filters, Model, Model, Model, TableviewDescriptorInst<Model, Sorts, Filters, undefined, Model, Model, Model, import("@mediusinc/mng-commons/tableview/api").TableviewDescriptorFieldsManageMultiType<Model, Model, Model>>, TableviewCrudDataProviderInst<Model, RequestModel, Service, Sorts, Filters>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { ICommonsCrudApiService, ICommonsGetAllApiService, QueryResult } from '@mediusinc/mng-commons-data-api-class';
|
|
3
|
-
import { ClassType, ServiceClassType } from '@mediusinc/mng-commons/core';
|
|
4
|
-
import { TableviewDataProviderInst } from '@mediusinc/mng-commons/tableview/api';
|
|
5
|
-
export type ToRequestMapFnType<Model, RequestModel> = (item?: Model) => RequestModel;
|
|
6
|
-
export declare class TableviewCrudDataProviderInst<Model, RequestModel, Service extends ICommonsCrudApiService<Model, RequestModel> & ICommonsGetAllApiService<QueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model> extends TableviewDataProviderInst<Model, Service, Sorts, Filters, ServiceClassType<Service>> {
|
|
7
|
-
protected requestType: ClassType<RequestModel>;
|
|
8
|
-
private _toRequestMap;
|
|
9
|
-
protected constructor(type: ClassType<Model>, requestType: ClassType<RequestModel>, serviceType: Type<Service>, idPropertyName?: string, useGetAllForFetch?: boolean);
|
|
10
|
-
get toRequestMap(): ToRequestMapFnType<Model, RequestModel>;
|
|
11
|
-
withToRequestMap(fn: ToRequestMapFnType<Model, RequestModel>): this;
|
|
12
|
-
}
|
|
13
|
-
export declare class TableviewCrudDataProvider extends TableviewCrudDataProviderInst<any, any, any> {
|
|
14
|
-
static create<Model, RequestModel, Service extends ICommonsCrudApiService<Model, RequestModel> & ICommonsGetAllApiService<QueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, requestType: ClassType<RequestModel>, serviceType: Type<Service>, idProperty?: keyof Model, useGetAllForFetch?: boolean): TableviewCrudDataProviderInst<Model, RequestModel, Service, Sorts, Filters>;
|
|
15
|
-
static createUnsafe<Model, RequestModel, Service extends ICommonsCrudApiService<Model, RequestModel> & ICommonsGetAllApiService<QueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, requestType: ClassType<RequestModel>, serviceType: Type<Service>, idProperty?: string, useGetAllForFetch?: boolean): TableviewCrudDataProviderInst<Model, RequestModel, Service, Sorts, Filters>;
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { DataListParams, DataListResult } from '@mediusinc/mng-commons/core';
|
|
3
|
-
import { MediusFilterMatchType } from '../models/filter-match-type.model';
|
|
4
|
-
import { MediusQueryParam } from '../models/query-param.model';
|
|
5
|
-
import { MediusQueryResult } from '../models/query-result.model';
|
|
6
|
-
import { QueryParamMap } from '../utils/query-param-map.util';
|
|
7
|
-
export declare function toV1QueryParam(): undefined;
|
|
8
|
-
export declare function toV1QueryParam<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters>, map?: QueryParamMap<Sorts, Filters>): MediusQueryParam;
|
|
9
|
-
export declare function toV1QueryParam<Sorts = string, Filters extends keyof any = string>(params: DataListParams<Sorts, Filters> | undefined, map?: QueryParamMap<Sorts, Filters>): MediusQueryParam | undefined;
|
|
10
|
-
export declare function toV1FilterMatchType(match: string): MediusFilterMatchType;
|
|
11
|
-
/**
|
|
12
|
-
* Convert a query result from an obsolete API version 1 to a `DataListResult`
|
|
13
|
-
*
|
|
14
|
-
* @param {DataListParams} params - The data list parameters for the query
|
|
15
|
-
* @param {Service} service - The service object used to make the API call
|
|
16
|
-
* @param {function} apiOperation - The API operation function that returns an `Observable<MediusQueryResult<Item>>`
|
|
17
|
-
* @param {any} additionalParams - Additional parameters to pass to the API operation function (optional)
|
|
18
|
-
*
|
|
19
|
-
* @returns {Observable<DataListResult<Item>>} - An observable that emits a `DataListResult` object
|
|
20
|
-
*
|
|
21
|
-
* @deprecated
|
|
22
|
-
*/
|
|
23
|
-
export declare function executeV1GetAll<Item, Service>(params: DataListParams, service: Service, apiOperation: (qp: MediusQueryParam, ...additionalParams: any) => Observable<MediusQueryResult<Item>>, additionalParams?: any): Observable<DataListResult<Item>>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ClassType, ServiceClassType } from '@mediusinc/mng-commons/core';
|
|
2
|
-
import { TableviewDescriptorInst, TableviewInputBuilder } from '@mediusinc/mng-commons/tableview/api';
|
|
3
|
-
import { MediusQueryResult } from '../models/query-result.model';
|
|
4
|
-
import { ICommonsCrudV1ApiService } from '../services/crud-api.abstract.service';
|
|
5
|
-
import { ICommonsGetAllV1ApiService } from '../services/get-all-api.abstract.service';
|
|
6
|
-
import { TableviewCrudV1DataProviderInst } from '../tableview/tableview-crud.data-provider';
|
|
7
|
-
/**
|
|
8
|
-
* Creates a tableview with the given class, service based on data API v1 (obsolete) and optional class/model configuration.
|
|
9
|
-
*
|
|
10
|
-
* @param {ClassType<Model>} type - The class representing the model.
|
|
11
|
-
* @param {ServiceClassType<Service>} service - The class type of the service implementing `IMngCrudObsoleteV1ApiService` and `IMngGetAllObsoleteV1ApiService`.
|
|
12
|
-
* @param {{ idProperty?: keyof Model; titleProperty?: keyof Model; i18nBaseKey?: ClassType<any> | string; }} [modelConfig] - Additional optional model configuration.
|
|
13
|
-
* @param {(builder: TableviewBuilder) => void} [buildFn] - The optional callback function to customize the tableview using the prepared builder.
|
|
14
|
-
*
|
|
15
|
-
* @returns {Tableview} - The built table view.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
export declare function tableviewCrudV1<Model, Service extends ICommonsCrudV1ApiService<Model> & ICommonsGetAllV1ApiService<MediusQueryResult<Model>>, Sorts = keyof Model, Filters extends keyof any = keyof Model>(type: ClassType<Model>, service: ServiceClassType<Service>, modelConfig?: {
|
|
20
|
-
idProperty?: keyof Model;
|
|
21
|
-
titleProperty?: keyof Model;
|
|
22
|
-
i18nBaseKey?: ClassType<any> | string;
|
|
23
|
-
}, buildFn?: (builder: TableviewInputBuilder<Model, Service, TableviewDescriptorInst<Model, Sorts, Filters, undefined, Model, Model, Model, Model>, TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>, Sorts, Filters>) => void): import("@mediusinc/mng-commons/tableview/api").TableviewInput<Model, Service, Sorts, Filters, Model, Model, Model, TableviewDescriptorInst<Model, Sorts, Filters, undefined, Model, Model, Model, Model>, TableviewCrudV1DataProviderInst<Model, Service, Sorts, Filters>>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { MediusFilterMatchType } from '../filter-match-type.model';
|
|
2
|
-
import { MediusQueryMode } from '../query-mode.model';
|
|
3
|
-
import { MediusQueryParam } from '../query-param.model';
|
|
4
|
-
export declare class MediusQueryParamBuilder {
|
|
5
|
-
private queryParam;
|
|
6
|
-
private constructor();
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new instance of `MediusQueryParamBuilder` with the specified `itemsPerPage` and `itemsOffset` values.
|
|
9
|
-
*
|
|
10
|
-
* @param {number} [itemsPerPage=50] - The number of items per page.
|
|
11
|
-
* @param {number} [itemsOffset=0] - The offset value for the items.
|
|
12
|
-
*
|
|
13
|
-
* @returns {MediusQueryParamBuilder} A new instance of `MediusQueryParamBuilder`.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
static create(itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new instance of MediusQueryParamBuilder based on an existing MediusQueryParam object.
|
|
20
|
-
*
|
|
21
|
-
* @param {MediusQueryParam} queryParam - The existing MediusQueryParam object to create from.
|
|
22
|
-
* @param {number} [itemsPerPage] - The number of items per page for the new instance. If not provided, default value is used.
|
|
23
|
-
* @param {number} [itemsOffset] - The offset for the new instance. If not provided, default value is used.
|
|
24
|
-
*
|
|
25
|
-
* @returns {MediusQueryParamBuilder} - A new instance of MediusQueryParamBuilder.
|
|
26
|
-
*
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
static createFromExisting(queryParam: MediusQueryParam, itemsPerPage?: number, itemsOffset?: number): MediusQueryParamBuilder;
|
|
30
|
-
withItemsPerPage(itemsPerPage: number): MediusQueryParamBuilder;
|
|
31
|
-
withItemsOffset(itemsOffset: number): MediusQueryParamBuilder;
|
|
32
|
-
withQueryMode(queryMode: MediusQueryMode): MediusQueryParamBuilder;
|
|
33
|
-
withSort(property: string, asc?: boolean): MediusQueryParamBuilder;
|
|
34
|
-
withFilter(property: string, value: any, valueTo?: any, matchType?: MediusFilterMatchType, matchCaseSensitive?: boolean): MediusQueryParamBuilder;
|
|
35
|
-
build(): MediusQueryParam;
|
|
36
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare enum MediusFilterMatchType {
|
|
13
|
-
Equals = "EQUALS",
|
|
14
|
-
NotEquals = "NOT_EQUALS",
|
|
15
|
-
FromTo = "FROM_TO",
|
|
16
|
-
Contains = "CONTAINS",
|
|
17
|
-
StartsWith = "STARTS_WITH",
|
|
18
|
-
EndsWith = "ENDS_WITH",
|
|
19
|
-
In = "IN",
|
|
20
|
-
NotIn = "NOT_IN",
|
|
21
|
-
SmallerThan = "SMALLER_THAN",
|
|
22
|
-
GreaterThan = "GREATER_THAN",
|
|
23
|
-
Exists = "EXISTS",
|
|
24
|
-
DoesNotExist = "DOES_NOT_EXIST"
|
|
25
|
-
}
|