@kinotic-ai/persistence 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +37 -37
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +37 -37
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -233,64 +233,64 @@ class AdminEntitiesService {
|
|
|
233
233
|
// packages/persistence/src/api/IEntityService.ts
|
|
234
234
|
var import_core3 = require("@kinotic-ai/core");
|
|
235
235
|
class EntityService {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
entityApplicationId;
|
|
237
|
+
entityName;
|
|
238
|
+
entityId;
|
|
239
239
|
entitiesService;
|
|
240
240
|
constructor(structureApplicationId, structureName, entitiesService) {
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
241
|
+
this.entityApplicationId = structureApplicationId;
|
|
242
|
+
this.entityName = structureName;
|
|
243
|
+
this.entityId = (structureApplicationId + "." + structureName).toLowerCase();
|
|
244
244
|
this.entitiesService = entitiesService ?? new EntitiesService(import_core3.Kinotic);
|
|
245
245
|
}
|
|
246
246
|
async bulkSave(entities) {
|
|
247
247
|
const entitiesToSave = await this.beforeBulkSaveOrUpdate(entities);
|
|
248
|
-
return this.entitiesService.bulkSave(this.
|
|
248
|
+
return this.entitiesService.bulkSave(this.entityId, entitiesToSave);
|
|
249
249
|
}
|
|
250
250
|
async bulkUpdate(entities) {
|
|
251
251
|
const entitiesToSave = await this.beforeBulkSaveOrUpdate(entities);
|
|
252
|
-
return this.entitiesService.bulkUpdate(this.
|
|
252
|
+
return this.entitiesService.bulkUpdate(this.entityId, entitiesToSave);
|
|
253
253
|
}
|
|
254
254
|
count() {
|
|
255
|
-
return this.entitiesService.count(this.
|
|
255
|
+
return this.entitiesService.count(this.entityId);
|
|
256
256
|
}
|
|
257
257
|
countByQuery(query) {
|
|
258
|
-
return this.entitiesService.countByQuery(this.
|
|
258
|
+
return this.entitiesService.countByQuery(this.entityId, query);
|
|
259
259
|
}
|
|
260
260
|
deleteById(id) {
|
|
261
|
-
return this.entitiesService.deleteById(this.
|
|
261
|
+
return this.entitiesService.deleteById(this.entityId, id);
|
|
262
262
|
}
|
|
263
263
|
deleteByQuery(query) {
|
|
264
|
-
return this.entitiesService.deleteByQuery(this.
|
|
264
|
+
return this.entitiesService.deleteByQuery(this.entityId, query);
|
|
265
265
|
}
|
|
266
266
|
findAll(pageable) {
|
|
267
|
-
return this.entitiesService.findAll(this.
|
|
267
|
+
return this.entitiesService.findAll(this.entityId, pageable);
|
|
268
268
|
}
|
|
269
269
|
findById(id) {
|
|
270
|
-
return this.entitiesService.findById(this.
|
|
270
|
+
return this.entitiesService.findById(this.entityId, id);
|
|
271
271
|
}
|
|
272
272
|
findByIds(ids) {
|
|
273
|
-
return this.entitiesService.findByIds(this.
|
|
273
|
+
return this.entitiesService.findByIds(this.entityId, ids);
|
|
274
274
|
}
|
|
275
275
|
namedQuery(queryName, queryParameters) {
|
|
276
|
-
return this.entitiesService.namedQuery(this.
|
|
276
|
+
return this.entitiesService.namedQuery(this.entityId, queryName, queryParameters);
|
|
277
277
|
}
|
|
278
278
|
namedQueryPage(queryName, queryParameters, pageable) {
|
|
279
|
-
return this.entitiesService.namedQueryPage(this.
|
|
279
|
+
return this.entitiesService.namedQueryPage(this.entityId, queryName, queryParameters, pageable);
|
|
280
280
|
}
|
|
281
281
|
async save(entity) {
|
|
282
282
|
const entityToSave = await this.beforeSaveOrUpdate(entity);
|
|
283
|
-
return this.entitiesService.save(this.
|
|
283
|
+
return this.entitiesService.save(this.entityId, entityToSave);
|
|
284
284
|
}
|
|
285
285
|
search(searchText, pageable) {
|
|
286
|
-
return this.entitiesService.search(this.
|
|
286
|
+
return this.entitiesService.search(this.entityId, searchText, pageable);
|
|
287
287
|
}
|
|
288
288
|
async syncIndex() {
|
|
289
|
-
return this.entitiesService.syncIndex(this.
|
|
289
|
+
return this.entitiesService.syncIndex(this.entityId);
|
|
290
290
|
}
|
|
291
291
|
async update(entity) {
|
|
292
292
|
const entityToSave = await this.beforeSaveOrUpdate(entity);
|
|
293
|
-
return this.entitiesService.update(this.
|
|
293
|
+
return this.entitiesService.update(this.entityId, entityToSave);
|
|
294
294
|
}
|
|
295
295
|
async beforeBulkSaveOrUpdate(entities) {
|
|
296
296
|
return Promise.resolve(entities);
|
|
@@ -302,45 +302,45 @@ class EntityService {
|
|
|
302
302
|
// packages/persistence/src/api/IAdminEntityService.ts
|
|
303
303
|
var import_core4 = require("@kinotic-ai/core");
|
|
304
304
|
class AdminEntityService {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
305
|
+
entityApplicationId;
|
|
306
|
+
entityName;
|
|
307
|
+
entityId;
|
|
308
308
|
adminEntitiesService;
|
|
309
309
|
constructor(structureApplicationId, structureName, adminEntitiesService) {
|
|
310
|
-
this.
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
310
|
+
this.entityApplicationId = structureApplicationId;
|
|
311
|
+
this.entityName = structureName;
|
|
312
|
+
this.entityId = (structureApplicationId + "." + structureName).toLowerCase();
|
|
313
313
|
this.adminEntitiesService = adminEntitiesService ?? new AdminEntitiesService(import_core4.Kinotic);
|
|
314
314
|
}
|
|
315
315
|
count(tenantSelection) {
|
|
316
|
-
return this.adminEntitiesService.count(this.
|
|
316
|
+
return this.adminEntitiesService.count(this.entityId, tenantSelection);
|
|
317
317
|
}
|
|
318
318
|
countByQuery(query, tenantSelection) {
|
|
319
|
-
return this.adminEntitiesService.countByQuery(this.
|
|
319
|
+
return this.adminEntitiesService.countByQuery(this.entityId, query, tenantSelection);
|
|
320
320
|
}
|
|
321
321
|
deleteById(id) {
|
|
322
|
-
return this.adminEntitiesService.deleteById(this.
|
|
322
|
+
return this.adminEntitiesService.deleteById(this.entityId, id);
|
|
323
323
|
}
|
|
324
324
|
deleteByQuery(query, tenantSelection) {
|
|
325
|
-
return this.adminEntitiesService.deleteByQuery(this.
|
|
325
|
+
return this.adminEntitiesService.deleteByQuery(this.entityId, query, tenantSelection);
|
|
326
326
|
}
|
|
327
327
|
findAll(tenantSelection, pageable) {
|
|
328
|
-
return this.adminEntitiesService.findAll(this.
|
|
328
|
+
return this.adminEntitiesService.findAll(this.entityId, tenantSelection, pageable);
|
|
329
329
|
}
|
|
330
330
|
findById(id) {
|
|
331
|
-
return this.adminEntitiesService.findById(this.
|
|
331
|
+
return this.adminEntitiesService.findById(this.entityId, id);
|
|
332
332
|
}
|
|
333
333
|
findByIds(ids) {
|
|
334
|
-
return this.adminEntitiesService.findByIds(this.
|
|
334
|
+
return this.adminEntitiesService.findByIds(this.entityId, ids);
|
|
335
335
|
}
|
|
336
336
|
namedQuery(queryName, queryParameters) {
|
|
337
|
-
return this.adminEntitiesService.namedQuery(this.
|
|
337
|
+
return this.adminEntitiesService.namedQuery(this.entityId, queryName, queryParameters);
|
|
338
338
|
}
|
|
339
339
|
namedQueryPage(queryName, queryParameters, pageable) {
|
|
340
|
-
return this.adminEntitiesService.namedQueryPage(this.
|
|
340
|
+
return this.adminEntitiesService.namedQueryPage(this.entityId, queryName, queryParameters, pageable);
|
|
341
341
|
}
|
|
342
342
|
search(searchText, tenantSelection, pageable) {
|
|
343
|
-
return this.adminEntitiesService.search(this.
|
|
343
|
+
return this.adminEntitiesService.search(this.entityId, searchText, tenantSelection, pageable);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
// packages/persistence/src/api/PersistencePlugin.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -205,18 +205,18 @@ declare class EntitiesService implements IEntitiesService {
|
|
|
205
205
|
*/
|
|
206
206
|
interface IEntityService<T> {
|
|
207
207
|
/**
|
|
208
|
-
* The applicationId of the
|
|
208
|
+
* The applicationId of the Entity this service is for
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
entityApplicationId: string;
|
|
211
211
|
/**
|
|
212
|
-
* The name of the
|
|
212
|
+
* The name of the Entity this service is for
|
|
213
213
|
*/
|
|
214
|
-
|
|
214
|
+
entityName: string;
|
|
215
215
|
/**
|
|
216
|
-
* The id of the
|
|
216
|
+
* The id of the Entity this service is for
|
|
217
217
|
* Which is the applicationId + '.' + name
|
|
218
218
|
*/
|
|
219
|
-
|
|
219
|
+
entityId: string;
|
|
220
220
|
/**
|
|
221
221
|
* Saves all given entities.
|
|
222
222
|
* @param entities all the entities to save
|
|
@@ -334,9 +334,9 @@ interface IEntityService<T> {
|
|
|
334
334
|
* It provides the basic CRUD operations for entities.
|
|
335
335
|
*/
|
|
336
336
|
declare class EntityService<T> implements IEntityService<T> {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
337
|
+
entityApplicationId: string;
|
|
338
|
+
entityName: string;
|
|
339
|
+
entityId: string;
|
|
340
340
|
private readonly entitiesService;
|
|
341
341
|
constructor(structureApplicationId: string, structureName: string, entitiesService?: IEntitiesService);
|
|
342
342
|
bulkSave(entities: T[]): Promise<void>;
|
|
@@ -554,18 +554,18 @@ import { Pageable as Pageable4, IterablePage as IterablePage4 } from "@kinotic-a
|
|
|
554
554
|
*/
|
|
555
555
|
interface IAdminEntityService<T> {
|
|
556
556
|
/**
|
|
557
|
-
* The application id of the
|
|
557
|
+
* The application id of the Entity this service is for
|
|
558
558
|
*/
|
|
559
|
-
|
|
559
|
+
entityApplicationId: string;
|
|
560
560
|
/**
|
|
561
|
-
* The name of the
|
|
561
|
+
* The name of the Entity this service is for
|
|
562
562
|
*/
|
|
563
|
-
|
|
563
|
+
entityName: string;
|
|
564
564
|
/**
|
|
565
|
-
* The id of the
|
|
565
|
+
* The id of the Entity this service is for
|
|
566
566
|
* Which is the applicationId + '.' + name
|
|
567
567
|
*/
|
|
568
|
-
|
|
568
|
+
entityId: string;
|
|
569
569
|
/**
|
|
570
570
|
* Returns the number of entities available.
|
|
571
571
|
*
|
|
@@ -652,9 +652,9 @@ interface IAdminEntityService<T> {
|
|
|
652
652
|
* It provides the basic CRUD operations for entities with multi-tenancy support.
|
|
653
653
|
*/
|
|
654
654
|
declare class AdminEntityService<T> implements IAdminEntityService<T> {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
entityApplicationId: string;
|
|
656
|
+
entityName: string;
|
|
657
|
+
entityId: string;
|
|
658
658
|
private readonly adminEntitiesService;
|
|
659
659
|
constructor(structureApplicationId: string, structureName: string, adminEntitiesService?: IAdminEntitiesService);
|
|
660
660
|
count(tenantSelection: TenantSelection): Promise<number>;
|
package/dist/index.d.ts
CHANGED
|
@@ -205,18 +205,18 @@ declare class EntitiesService implements IEntitiesService {
|
|
|
205
205
|
*/
|
|
206
206
|
interface IEntityService<T> {
|
|
207
207
|
/**
|
|
208
|
-
* The applicationId of the
|
|
208
|
+
* The applicationId of the Entity this service is for
|
|
209
209
|
*/
|
|
210
|
-
|
|
210
|
+
entityApplicationId: string;
|
|
211
211
|
/**
|
|
212
|
-
* The name of the
|
|
212
|
+
* The name of the Entity this service is for
|
|
213
213
|
*/
|
|
214
|
-
|
|
214
|
+
entityName: string;
|
|
215
215
|
/**
|
|
216
|
-
* The id of the
|
|
216
|
+
* The id of the Entity this service is for
|
|
217
217
|
* Which is the applicationId + '.' + name
|
|
218
218
|
*/
|
|
219
|
-
|
|
219
|
+
entityId: string;
|
|
220
220
|
/**
|
|
221
221
|
* Saves all given entities.
|
|
222
222
|
* @param entities all the entities to save
|
|
@@ -334,9 +334,9 @@ interface IEntityService<T> {
|
|
|
334
334
|
* It provides the basic CRUD operations for entities.
|
|
335
335
|
*/
|
|
336
336
|
declare class EntityService<T> implements IEntityService<T> {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
337
|
+
entityApplicationId: string;
|
|
338
|
+
entityName: string;
|
|
339
|
+
entityId: string;
|
|
340
340
|
private readonly entitiesService;
|
|
341
341
|
constructor(structureApplicationId: string, structureName: string, entitiesService?: IEntitiesService);
|
|
342
342
|
bulkSave(entities: T[]): Promise<void>;
|
|
@@ -554,18 +554,18 @@ import { Pageable as Pageable4, IterablePage as IterablePage4 } from "@kinotic-a
|
|
|
554
554
|
*/
|
|
555
555
|
interface IAdminEntityService<T> {
|
|
556
556
|
/**
|
|
557
|
-
* The application id of the
|
|
557
|
+
* The application id of the Entity this service is for
|
|
558
558
|
*/
|
|
559
|
-
|
|
559
|
+
entityApplicationId: string;
|
|
560
560
|
/**
|
|
561
|
-
* The name of the
|
|
561
|
+
* The name of the Entity this service is for
|
|
562
562
|
*/
|
|
563
|
-
|
|
563
|
+
entityName: string;
|
|
564
564
|
/**
|
|
565
|
-
* The id of the
|
|
565
|
+
* The id of the Entity this service is for
|
|
566
566
|
* Which is the applicationId + '.' + name
|
|
567
567
|
*/
|
|
568
|
-
|
|
568
|
+
entityId: string;
|
|
569
569
|
/**
|
|
570
570
|
* Returns the number of entities available.
|
|
571
571
|
*
|
|
@@ -652,9 +652,9 @@ interface IAdminEntityService<T> {
|
|
|
652
652
|
* It provides the basic CRUD operations for entities with multi-tenancy support.
|
|
653
653
|
*/
|
|
654
654
|
declare class AdminEntityService<T> implements IAdminEntityService<T> {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
entityApplicationId: string;
|
|
656
|
+
entityName: string;
|
|
657
|
+
entityId: string;
|
|
658
658
|
private readonly adminEntitiesService;
|
|
659
659
|
constructor(structureApplicationId: string, structureName: string, adminEntitiesService?: IAdminEntitiesService);
|
|
660
660
|
count(tenantSelection: TenantSelection): Promise<number>;
|
package/dist/index.js
CHANGED
|
@@ -177,64 +177,64 @@ class AdminEntitiesService {
|
|
|
177
177
|
// packages/persistence/src/api/IEntityService.ts
|
|
178
178
|
import { Kinotic } from "@kinotic-ai/core";
|
|
179
179
|
class EntityService {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
entityApplicationId;
|
|
181
|
+
entityName;
|
|
182
|
+
entityId;
|
|
183
183
|
entitiesService;
|
|
184
184
|
constructor(structureApplicationId, structureName, entitiesService) {
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
185
|
+
this.entityApplicationId = structureApplicationId;
|
|
186
|
+
this.entityName = structureName;
|
|
187
|
+
this.entityId = (structureApplicationId + "." + structureName).toLowerCase();
|
|
188
188
|
this.entitiesService = entitiesService ?? new EntitiesService(Kinotic);
|
|
189
189
|
}
|
|
190
190
|
async bulkSave(entities) {
|
|
191
191
|
const entitiesToSave = await this.beforeBulkSaveOrUpdate(entities);
|
|
192
|
-
return this.entitiesService.bulkSave(this.
|
|
192
|
+
return this.entitiesService.bulkSave(this.entityId, entitiesToSave);
|
|
193
193
|
}
|
|
194
194
|
async bulkUpdate(entities) {
|
|
195
195
|
const entitiesToSave = await this.beforeBulkSaveOrUpdate(entities);
|
|
196
|
-
return this.entitiesService.bulkUpdate(this.
|
|
196
|
+
return this.entitiesService.bulkUpdate(this.entityId, entitiesToSave);
|
|
197
197
|
}
|
|
198
198
|
count() {
|
|
199
|
-
return this.entitiesService.count(this.
|
|
199
|
+
return this.entitiesService.count(this.entityId);
|
|
200
200
|
}
|
|
201
201
|
countByQuery(query) {
|
|
202
|
-
return this.entitiesService.countByQuery(this.
|
|
202
|
+
return this.entitiesService.countByQuery(this.entityId, query);
|
|
203
203
|
}
|
|
204
204
|
deleteById(id) {
|
|
205
|
-
return this.entitiesService.deleteById(this.
|
|
205
|
+
return this.entitiesService.deleteById(this.entityId, id);
|
|
206
206
|
}
|
|
207
207
|
deleteByQuery(query) {
|
|
208
|
-
return this.entitiesService.deleteByQuery(this.
|
|
208
|
+
return this.entitiesService.deleteByQuery(this.entityId, query);
|
|
209
209
|
}
|
|
210
210
|
findAll(pageable) {
|
|
211
|
-
return this.entitiesService.findAll(this.
|
|
211
|
+
return this.entitiesService.findAll(this.entityId, pageable);
|
|
212
212
|
}
|
|
213
213
|
findById(id) {
|
|
214
|
-
return this.entitiesService.findById(this.
|
|
214
|
+
return this.entitiesService.findById(this.entityId, id);
|
|
215
215
|
}
|
|
216
216
|
findByIds(ids) {
|
|
217
|
-
return this.entitiesService.findByIds(this.
|
|
217
|
+
return this.entitiesService.findByIds(this.entityId, ids);
|
|
218
218
|
}
|
|
219
219
|
namedQuery(queryName, queryParameters) {
|
|
220
|
-
return this.entitiesService.namedQuery(this.
|
|
220
|
+
return this.entitiesService.namedQuery(this.entityId, queryName, queryParameters);
|
|
221
221
|
}
|
|
222
222
|
namedQueryPage(queryName, queryParameters, pageable) {
|
|
223
|
-
return this.entitiesService.namedQueryPage(this.
|
|
223
|
+
return this.entitiesService.namedQueryPage(this.entityId, queryName, queryParameters, pageable);
|
|
224
224
|
}
|
|
225
225
|
async save(entity) {
|
|
226
226
|
const entityToSave = await this.beforeSaveOrUpdate(entity);
|
|
227
|
-
return this.entitiesService.save(this.
|
|
227
|
+
return this.entitiesService.save(this.entityId, entityToSave);
|
|
228
228
|
}
|
|
229
229
|
search(searchText, pageable) {
|
|
230
|
-
return this.entitiesService.search(this.
|
|
230
|
+
return this.entitiesService.search(this.entityId, searchText, pageable);
|
|
231
231
|
}
|
|
232
232
|
async syncIndex() {
|
|
233
|
-
return this.entitiesService.syncIndex(this.
|
|
233
|
+
return this.entitiesService.syncIndex(this.entityId);
|
|
234
234
|
}
|
|
235
235
|
async update(entity) {
|
|
236
236
|
const entityToSave = await this.beforeSaveOrUpdate(entity);
|
|
237
|
-
return this.entitiesService.update(this.
|
|
237
|
+
return this.entitiesService.update(this.entityId, entityToSave);
|
|
238
238
|
}
|
|
239
239
|
async beforeBulkSaveOrUpdate(entities) {
|
|
240
240
|
return Promise.resolve(entities);
|
|
@@ -246,45 +246,45 @@ class EntityService {
|
|
|
246
246
|
// packages/persistence/src/api/IAdminEntityService.ts
|
|
247
247
|
import { Kinotic as Kinotic2 } from "@kinotic-ai/core";
|
|
248
248
|
class AdminEntityService {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
entityApplicationId;
|
|
250
|
+
entityName;
|
|
251
|
+
entityId;
|
|
252
252
|
adminEntitiesService;
|
|
253
253
|
constructor(structureApplicationId, structureName, adminEntitiesService) {
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
254
|
+
this.entityApplicationId = structureApplicationId;
|
|
255
|
+
this.entityName = structureName;
|
|
256
|
+
this.entityId = (structureApplicationId + "." + structureName).toLowerCase();
|
|
257
257
|
this.adminEntitiesService = adminEntitiesService ?? new AdminEntitiesService(Kinotic2);
|
|
258
258
|
}
|
|
259
259
|
count(tenantSelection) {
|
|
260
|
-
return this.adminEntitiesService.count(this.
|
|
260
|
+
return this.adminEntitiesService.count(this.entityId, tenantSelection);
|
|
261
261
|
}
|
|
262
262
|
countByQuery(query, tenantSelection) {
|
|
263
|
-
return this.adminEntitiesService.countByQuery(this.
|
|
263
|
+
return this.adminEntitiesService.countByQuery(this.entityId, query, tenantSelection);
|
|
264
264
|
}
|
|
265
265
|
deleteById(id) {
|
|
266
|
-
return this.adminEntitiesService.deleteById(this.
|
|
266
|
+
return this.adminEntitiesService.deleteById(this.entityId, id);
|
|
267
267
|
}
|
|
268
268
|
deleteByQuery(query, tenantSelection) {
|
|
269
|
-
return this.adminEntitiesService.deleteByQuery(this.
|
|
269
|
+
return this.adminEntitiesService.deleteByQuery(this.entityId, query, tenantSelection);
|
|
270
270
|
}
|
|
271
271
|
findAll(tenantSelection, pageable) {
|
|
272
|
-
return this.adminEntitiesService.findAll(this.
|
|
272
|
+
return this.adminEntitiesService.findAll(this.entityId, tenantSelection, pageable);
|
|
273
273
|
}
|
|
274
274
|
findById(id) {
|
|
275
|
-
return this.adminEntitiesService.findById(this.
|
|
275
|
+
return this.adminEntitiesService.findById(this.entityId, id);
|
|
276
276
|
}
|
|
277
277
|
findByIds(ids) {
|
|
278
|
-
return this.adminEntitiesService.findByIds(this.
|
|
278
|
+
return this.adminEntitiesService.findByIds(this.entityId, ids);
|
|
279
279
|
}
|
|
280
280
|
namedQuery(queryName, queryParameters) {
|
|
281
|
-
return this.adminEntitiesService.namedQuery(this.
|
|
281
|
+
return this.adminEntitiesService.namedQuery(this.entityId, queryName, queryParameters);
|
|
282
282
|
}
|
|
283
283
|
namedQueryPage(queryName, queryParameters, pageable) {
|
|
284
|
-
return this.adminEntitiesService.namedQueryPage(this.
|
|
284
|
+
return this.adminEntitiesService.namedQueryPage(this.entityId, queryName, queryParameters, pageable);
|
|
285
285
|
}
|
|
286
286
|
search(searchText, tenantSelection, pageable) {
|
|
287
|
-
return this.adminEntitiesService.search(this.
|
|
287
|
+
return this.adminEntitiesService.search(this.entityId, searchText, tenantSelection, pageable);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
// packages/persistence/src/api/PersistencePlugin.ts
|
package/package.json
CHANGED