@unvired/react-native-wrapper-sdk 0.0.6 → 0.0.7
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.
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* LoginParameters class - Local definition to avoid module resolution issues
|
|
3
|
+
*/
|
|
4
|
+
export declare class LoginParameters {
|
|
5
|
+
appName?: string;
|
|
6
|
+
company?: string;
|
|
7
|
+
username?: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
domain?: string;
|
|
11
|
+
loginType?: string;
|
|
12
|
+
feUserId?: string;
|
|
13
|
+
port?: string;
|
|
14
|
+
metadataPath?: string;
|
|
15
|
+
isRequiredAttachmentBase64?: boolean;
|
|
16
|
+
autoSendTime?: string;
|
|
17
|
+
autoSyncTime?: string;
|
|
18
|
+
metadataJSON?: string;
|
|
19
|
+
demoData?: string;
|
|
20
|
+
demoModeRequired?: boolean;
|
|
21
|
+
persistWebDb?: boolean;
|
|
22
|
+
jwtOptions?: object;
|
|
23
|
+
loginLanguage?: string;
|
|
24
|
+
cacheWebData?: boolean;
|
|
25
|
+
requireClientCredentials?: boolean;
|
|
26
|
+
}
|
|
2
27
|
/**
|
|
3
28
|
* LoginType enum for different authentication types
|
|
4
29
|
*/
|
|
@@ -40,5 +65,4 @@ export default class AuthBuilder implements PromiseLike<any> {
|
|
|
40
65
|
private execute;
|
|
41
66
|
then<TResult1 = any, TResult2 = never>(onfulfilled?: ((value: any) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
|
|
42
67
|
}
|
|
43
|
-
export { LoginParameters };
|
|
44
68
|
//# sourceMappingURL=AuthBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthBuilder.d.ts","sourceRoot":"","sources":["../../src/lib/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AAC,KAAK,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,EACnF,UAAU,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,GACpF,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC;CAGtC"}
|
package/dist/lib/AuthBuilder.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LoginType = exports.LoginParameters = void 0;
|
|
4
4
|
const unvired_ts_core_sdk_1 = require("@unvired/unvired-ts-core-sdk");
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* LoginParameters class - Local definition to avoid module resolution issues
|
|
7
|
+
*/
|
|
8
|
+
class LoginParameters {
|
|
9
|
+
}
|
|
10
|
+
exports.LoginParameters = LoginParameters;
|
|
7
11
|
/**
|
|
8
12
|
* LoginType enum for different authentication types
|
|
9
13
|
*/
|
|
@@ -20,7 +24,7 @@ var LoginType;
|
|
|
20
24
|
class AuthBuilder {
|
|
21
25
|
constructor(method) {
|
|
22
26
|
this.method = method;
|
|
23
|
-
this.loginParameters = new
|
|
27
|
+
this.loginParameters = new LoginParameters();
|
|
24
28
|
}
|
|
25
29
|
setAppName(appName) {
|
|
26
30
|
this.loginParameters.appName = appName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unvired/react-native-wrapper-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Unvired SDK for React Native - Enterprise mobile platform SDK with authentication, sync, and offline database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
package/src/lib/AuthBuilder.ts
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { AuthenticationService } from '@unvired/unvired-ts-core-sdk';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* LoginParameters class - Local definition to avoid module resolution issues
|
|
5
|
+
*/
|
|
6
|
+
export class LoginParameters {
|
|
7
|
+
appName?: string;
|
|
8
|
+
company?: string;
|
|
9
|
+
username?: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
url?: string;
|
|
12
|
+
domain?: string;
|
|
13
|
+
loginType?: string;
|
|
14
|
+
feUserId?: string;
|
|
15
|
+
port?: string;
|
|
16
|
+
metadataPath?: string;
|
|
17
|
+
isRequiredAttachmentBase64?: boolean;
|
|
18
|
+
autoSendTime?: string;
|
|
19
|
+
autoSyncTime?: string;
|
|
20
|
+
metadataJSON?: string;
|
|
21
|
+
demoData?: string;
|
|
22
|
+
demoModeRequired?: boolean;
|
|
23
|
+
persistWebDb?: boolean;
|
|
24
|
+
jwtOptions?: object;
|
|
25
|
+
loginLanguage?: string;
|
|
26
|
+
cacheWebData?: boolean;
|
|
27
|
+
requireClientCredentials?: boolean;
|
|
28
|
+
}
|
|
3
29
|
|
|
4
30
|
/**
|
|
5
31
|
* LoginType enum for different authentication types
|
|
@@ -156,6 +182,3 @@ export default class AuthBuilder implements PromiseLike<any> {
|
|
|
156
182
|
return this.execute().then(onfulfilled, onrejected);
|
|
157
183
|
}
|
|
158
184
|
}
|
|
159
|
-
|
|
160
|
-
// Re-export LoginParameters for convenience
|
|
161
|
-
export { LoginParameters };
|