@acorex/connectivity 20.0.22 → 20.0.25
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/acorex-connectivity-mock-countries-DHRrtbwM.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock-currencies-B-x3Mxql.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock-profiles-MJ9xFTtp.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock-timezones-CnNQ6EXw.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +157 -123
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +16 -3
- package/package.json +1 -1
package/mock/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import Dexie from 'dexie';
|
2
|
-
import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
3
|
-
import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
|
4
2
|
import * as i1$1 from '@acorex/platform/auth';
|
5
3
|
import { AXPSessionService, AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPRefreshTokenResult } from '@acorex/platform/auth';
|
6
4
|
import { AXPLockService, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPReportCategory, AXPReportDefinition } from '@acorex/platform/common';
|
5
|
+
import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
6
|
+
import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
|
7
7
|
import * as i0 from '@angular/core';
|
8
8
|
import { Injector } from '@angular/core';
|
9
9
|
import * as i1 from '@acorex/platform/runtime';
|
@@ -19,7 +19,20 @@ declare class AXPDexieEntityStorageService extends Dexie implements AXPEntitySto
|
|
19
19
|
get dbName(): string;
|
20
20
|
private detectChanges;
|
21
21
|
private addToHistory;
|
22
|
-
|
22
|
+
/**
|
23
|
+
* Seed the storage with the provided collection only if it has not been
|
24
|
+
* inserted before.
|
25
|
+
*
|
26
|
+
* Rather than relying on the total record count, we inspect whether the first
|
27
|
+
* item of the incoming collection (identified by its `id`) already exists in
|
28
|
+
* the table for the given `entityName`. If it exists, the data has already
|
29
|
+
* been seeded and no action is taken; otherwise, the entire collection is
|
30
|
+
* bulk-inserted.
|
31
|
+
*/
|
32
|
+
initial<T = any>(entityName: string, collection: T[], options?: {
|
33
|
+
mergeType: 'merge' | 'replace';
|
34
|
+
uniqueKeys: string[];
|
35
|
+
}): Promise<T[]>;
|
23
36
|
getOne<T = any>(entityName: string, id: string): Promise<T>;
|
24
37
|
updateOne<T = any>(entityName: string, id: string, keyValue: {
|
25
38
|
[key: string]: any;
|