@unvired/unvired-ts-core-sdk 0.0.14 → 0.0.15
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/BuildNo.txt +1 -1
- package/index.d.ts +34 -7
- package/index.js +600 -398
- package/package.json +1 -1
package/BuildNo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
R-0.000.
|
|
1
|
+
R-0.000.0015
|
package/index.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ declare module '@unvired/unvired-ts-core-sdk/database/databaseManager' {
|
|
|
296
296
|
count(dbType: DatabaseType, tableName: string, whereClause?: string): Promise<number>;
|
|
297
297
|
getFirstEntity(dbType: DatabaseType, tableName: string): Promise<any>;
|
|
298
298
|
saveWebData(): Promise<void>;
|
|
299
|
+
exportWebData(): Promise<void>;
|
|
299
300
|
private getFieldMetaDataList;
|
|
300
301
|
private constructInsertOrReplaceQuery;
|
|
301
302
|
private constructUpdateQuery;
|
|
@@ -445,7 +446,7 @@ declare module '@unvired/unvired-ts-core-sdk/helper/httpConnection' {
|
|
|
445
446
|
import { Observable } from 'rxjs';
|
|
446
447
|
import { UnviredAccount } from '@unvired/unvired-ts-core-sdk/helper/unviredAccount';
|
|
447
448
|
export class FetchAPIResponse {
|
|
448
|
-
header:
|
|
449
|
+
header: any | null;
|
|
449
450
|
data: string | null;
|
|
450
451
|
percentage: number | null;
|
|
451
452
|
httpStatusCode: number;
|
|
@@ -582,6 +583,7 @@ declare module '@unvired/unvired-ts-core-sdk/helper/reconciler' {
|
|
|
582
583
|
private conflictBe;
|
|
583
584
|
private databaseManager;
|
|
584
585
|
private reconcilerType;
|
|
586
|
+
errorMessage: string;
|
|
585
587
|
constructor(entityName: string, entityInDB: any, incomingEntity: any, incomingItems: any, conflictRule: string, isForeground: boolean, reconcilerType: ReconcilerType);
|
|
586
588
|
getConflictBe(): any;
|
|
587
589
|
reconcile(structureMetas: StructureMeta[], fieldMetas: FieldMeta[], requestType: ServiceConstants.RequestType, lid: string): Promise<boolean>;
|
|
@@ -654,16 +656,18 @@ declare module '@unvired/unvired-ts-core-sdk/helper/serverResponseHandler' {
|
|
|
654
656
|
|
|
655
657
|
}
|
|
656
658
|
declare module '@unvired/unvired-ts-core-sdk/helper/serviceConstants' {
|
|
657
|
-
export const FrameworkVersionNumber = "0.0.
|
|
659
|
+
export const FrameworkVersionNumber = "0.0.15";
|
|
658
660
|
export const FrameworkBuildNumber = "${BUILD_NUMBER}";
|
|
659
661
|
export const FrameworkRevisionNumber = "f4444dd36a88188c063db5fe24a4eaa8b7d22106";
|
|
660
662
|
export const FrameworkRevisionUrl = "";
|
|
661
663
|
export const ApplicationRevisionNumber = "99.99";
|
|
662
664
|
export const HeaderConstantConversationId = "X-UNVIRED-CONVERSATION-ID";
|
|
663
665
|
export const HeaderConstantRequestType = "REQUEST_TYPE";
|
|
664
|
-
export const HeaderConstantNumberOfPendingMessages = "
|
|
666
|
+
export const HeaderConstantNumberOfPendingMessages = "x-unvired-number-of-pending-messages";
|
|
667
|
+
export const HeaderConstantNumberOfProcessingMessages = "x-unvired-number-of-processing-messages";
|
|
665
668
|
export const HeaderConstantPullMode = "x-pull-mode";
|
|
666
669
|
export const HeaderConstantMessageType = "x-unvired-message-type";
|
|
670
|
+
export const HeaderConstantMessageSubType = "x-unvired-message-sub-type";
|
|
667
671
|
export const HeaderConstantChunkSize = "X-Chunk-Size";
|
|
668
672
|
export const HeaderConstantDataLength = "X-Data-Length";
|
|
669
673
|
export const ParamCompanyNamespace = "COMPANY_NAMESPACE";
|
|
@@ -1213,7 +1217,7 @@ declare module '@unvired/unvired-ts-core-sdk/helper/utils' {
|
|
|
1213
1217
|
* @param context - Optional context string for logging purposes
|
|
1214
1218
|
* @returns Promise<object> - Parsed JSON object or empty object if parsing fails
|
|
1215
1219
|
*/
|
|
1216
|
-
export function safeParseJson(response: Response, context?: string): Promise<any>;
|
|
1220
|
+
export function safeParseJson(response: Response, context?: string, returnObject?: boolean): Promise<any>;
|
|
1217
1221
|
|
|
1218
1222
|
}
|
|
1219
1223
|
declare module '@unvired/unvired-ts-core-sdk/inbox/downloadMessageService' {
|
|
@@ -1349,6 +1353,12 @@ declare module '@unvired/unvired-ts-core-sdk/platform/CordovaPlatformAdapter' {
|
|
|
1349
1353
|
getDatabaseAdapter(): IDatabaseAdapter;
|
|
1350
1354
|
getPushNotificationAdapter(): IPushNotificationAdapter | null;
|
|
1351
1355
|
getLoggerAdapter(): ILoggerAdapter;
|
|
1356
|
+
getStorageAdapter(): {
|
|
1357
|
+
getItem: (key: string) => string;
|
|
1358
|
+
setItem: (key: string, value: string) => void;
|
|
1359
|
+
removeItem: (key: string) => void;
|
|
1360
|
+
clear: () => void;
|
|
1361
|
+
};
|
|
1352
1362
|
}
|
|
1353
1363
|
|
|
1354
1364
|
}
|
|
@@ -1454,6 +1464,9 @@ declare module '@unvired/unvired-ts-core-sdk/platform/PlatformInterface' {
|
|
|
1454
1464
|
saveWebDB(options: {
|
|
1455
1465
|
userId: string;
|
|
1456
1466
|
}, callback: (result: any) => void, errorCallback: (error: any) => void): void;
|
|
1467
|
+
exportWebDB(options: {
|
|
1468
|
+
userId: string;
|
|
1469
|
+
}, callback: (result: any) => void, errorCallback: (error: any) => void): void;
|
|
1457
1470
|
deleteUserData(options: {
|
|
1458
1471
|
userId: string;
|
|
1459
1472
|
}, callback: () => void, errorCallback: (error: any) => void): void;
|
|
@@ -1477,11 +1490,23 @@ declare module '@unvired/unvired-ts-core-sdk/platform/PlatformInterface' {
|
|
|
1477
1490
|
getBackupLogFileContent(): Promise<string>;
|
|
1478
1491
|
clearLogFile(): void;
|
|
1479
1492
|
}
|
|
1493
|
+
export interface IStorageAdapter {
|
|
1494
|
+
getItem(key: string): void;
|
|
1495
|
+
setItem(key: string, value: string): void;
|
|
1496
|
+
removeItem(key: string): void;
|
|
1497
|
+
clear(): void;
|
|
1498
|
+
}
|
|
1499
|
+
export interface ILocalStorageAdapter {
|
|
1500
|
+
getItem(key: string): void;
|
|
1501
|
+
setItem(key: string, value: string): void;
|
|
1502
|
+
removeItem(key: string): void;
|
|
1503
|
+
clear(): void;
|
|
1504
|
+
}
|
|
1480
1505
|
/**
|
|
1481
1506
|
* Main Platform Adapter Interface
|
|
1482
1507
|
*/
|
|
1483
1508
|
export interface PlatformInterface {
|
|
1484
|
-
getDeviceInfo(): IDeviceInfo
|
|
1509
|
+
getDeviceInfo(): Promise<IDeviceInfo>;
|
|
1485
1510
|
getPlatform(): string;
|
|
1486
1511
|
getFrontendType(): string;
|
|
1487
1512
|
getDocumentDirectory(): string;
|
|
@@ -1491,6 +1516,7 @@ declare module '@unvired/unvired-ts-core-sdk/platform/PlatformInterface' {
|
|
|
1491
1516
|
getDatabaseAdapter(): IDatabaseAdapter;
|
|
1492
1517
|
getPushNotificationAdapter(): IPushNotificationAdapter | null;
|
|
1493
1518
|
getLoggerAdapter(): ILoggerAdapter;
|
|
1519
|
+
getStorageAdapter(): IStorageAdapter;
|
|
1494
1520
|
}
|
|
1495
1521
|
|
|
1496
1522
|
}
|
|
@@ -1558,9 +1584,9 @@ declare module '@unvired/unvired-ts-core-sdk/platform/PlatformManager' {
|
|
|
1558
1584
|
|
|
1559
1585
|
}
|
|
1560
1586
|
declare module '@unvired/unvired-ts-core-sdk/platform/ReactNativePlatformAdapter' {
|
|
1561
|
-
import { PlatformInterface, IDeviceInfo, IFileEntry, IDatabaseAdapter, IPushNotificationAdapter, ILoggerAdapter } from '@unvired/unvired-ts-core-sdk/platform/PlatformInterface';
|
|
1587
|
+
import { PlatformInterface, IDeviceInfo, IFileEntry, IDatabaseAdapter, IPushNotificationAdapter, ILoggerAdapter, IStorageAdapter } from '@unvired/unvired-ts-core-sdk/platform/PlatformInterface';
|
|
1562
1588
|
export class ReactNativePlatformAdapter implements PlatformInterface {
|
|
1563
|
-
getDeviceInfo(): IDeviceInfo
|
|
1589
|
+
getDeviceInfo(): Promise<IDeviceInfo>;
|
|
1564
1590
|
getPlatform(): string;
|
|
1565
1591
|
getFrontendType(): string;
|
|
1566
1592
|
getDocumentDirectory(): string;
|
|
@@ -1570,6 +1596,7 @@ declare module '@unvired/unvired-ts-core-sdk/platform/ReactNativePlatformAdapter
|
|
|
1570
1596
|
getDatabaseAdapter(): IDatabaseAdapter;
|
|
1571
1597
|
getPushNotificationAdapter(): IPushNotificationAdapter | null;
|
|
1572
1598
|
getLoggerAdapter(): ILoggerAdapter;
|
|
1599
|
+
getStorageAdapter(): IStorageAdapter;
|
|
1573
1600
|
}
|
|
1574
1601
|
|
|
1575
1602
|
}
|