style(unvired-cordova-sdk): fix style

This commit is contained in:
Srinidhi Rao 2019-06-14 14:08:58 +05:30
parent b75f40c76e
commit 1b60247807

View File

@ -1,16 +1,10 @@
/** /**
* @name Unvired Cordova S D K * @name Unvired Cordova S D K
* @description * @description
* This plugin can be used to connect to UMP ( Unvired Mobile Platform ). * This plugin can be used to connect to UMP ( Unvired Mobile Platform ). This plugin has a dependency on the following Cocoapod. In your iOS project, first install the dependent pod and then install the plugin.
*
* iOS Notes
* -
* This plugin has a dependency on the following Cocoapod. In your iOS project, first install the dependent pod and then install the plugin.
* ``` * ```
* pod 'UnviredCordovaSDK' * pod 'UnviredCordovaSDK'
* ``` * ```
*
*
* @usage * @usage
* ```typescript * ```typescript
* import { UnviredCordovaSDK } from '@ionic-native/unvired-cordova-sdk/ngx'; * import { UnviredCordovaSDK } from '@ionic-native/unvired-cordova-sdk/ngx';
@ -19,7 +13,6 @@
* constructor(private unviredCordovaSDK: UnviredCordovaSDK) { } * constructor(private unviredCordovaSDK: UnviredCordovaSDK) { }
* *
* ... * ...
*
* // Login * // Login
* let loginParameters = new LoginParameters() * let loginParameters = new LoginParameters()
* loginParameters.appName = 'UNVIRED_DIGITAL_FORMS' * loginParameters.appName = 'UNVIRED_DIGITAL_FORMS'
@ -27,13 +20,10 @@
* *
* // Make a Sync call. * // Make a Sync call.
* let result = await this.unviredCordovaSDK.syncForeground(RequestType.QUERY, null, inputObj, 'UNVIRED_DIGITAL_FORMS_PA_MOBILE_GET_USERS', true) * let result = await this.unviredCordovaSDK.syncForeground(RequestType.QUERY, null, inputObj, 'UNVIRED_DIGITAL_FORMS_PA_MOBILE_GET_USERS', true)
*
* // Make Async call. * // Make Async call.
* let result = await this.unviredCordovaSDK.syncBackground(RequestType.QUERY, null, inputObj, 'UNVIRED_DIGITAL_FORMS_PA_MOBILE_GET_USERS', 'INPUT_GET_USERS', 'GUID', false) * let result = await this.unviredCordovaSDK.syncBackground(RequestType.QUERY, null, inputObj, 'UNVIRED_DIGITAL_FORMS_PA_MOBILE_GET_USERS', 'INPUT_GET_USERS', 'GUID', false)
*
* // Write Logs * // Write Logs
* this.unviredCordovaSDK.logInfo("AppComponent", "Initialize", " Some String") * this.unviredCordovaSDK.logInfo("AppComponent", "Initialize", " Some String")
*
* ``` * ```
*/ */
@ -52,10 +42,10 @@ export enum LoginListenerType {
} }
export enum LoginType { export enum LoginType {
unvired = "UNVIRED_ID", unvired = 'UNVIRED_ID',
ads = "ADS", ads = 'ADS',
sap = "SAP", sap = 'SAP',
custom = "CUSTOM" custom = 'CUSTOM'
} }
export enum ResultType { export enum ResultType {
@ -98,59 +88,59 @@ export enum AttachmentItemStatus {
} }
export class Settings { export class Settings {
loginType: LoginType loginType: LoginType;
ADS_DOMAIN: string ADS_DOMAIN: string;
SAP_PORT_NAME: string SAP_PORT_NAME: string;
EMAIL: string EMAIL: string;
ADS_USER_ID: string ADS_USER_ID: string;
SAP_USER_ID: string SAP_USER_ID: string;
FULL_NAME: string FULL_NAME: string;
URL: string URL: string;
USER_ID: string USER_ID: string;
} }
export class UnviredResult { export class UnviredResult {
data: any data: any;
message: string message: string;
type: number type: number;
error: string error: string;
errorDetail: string errorDetail: string;
} }
export class NotifResult extends UnviredResult { export class NotifResult extends UnviredResult {
type: NotificationListenerType type: NotificationListenerType;
} }
export class SettingsResult extends UnviredResult { export class SettingsResult extends UnviredResult {
data: Settings data: Settings;
type: ResultType type: ResultType;
} }
export class SyncResult extends UnviredResult { export class SyncResult extends UnviredResult {
type: ResultType type: ResultType;
} }
export class DbResult extends UnviredResult { export class DbResult extends UnviredResult {
type: ResultType type: ResultType;
} }
export class LoginParameters { export class LoginParameters {
appName: string appName: string;
company: string company: string;
username: string username: string;
password: string password: string;
url: string url: string;
domain: string domain: string;
loginType: LoginType loginType: LoginType;
feUserId: string feUserId: string;
port: string port: string;
metadataPath: string metadataPath: string;
isRequiredAttachmentBase64: boolean isRequiredAttachmentBase64: boolean;
autoSendTime: string autoSendTime: string;
autoSyncTime: string autoSyncTime: string;
} }
export class LoginResult extends UnviredResult { export class LoginResult extends UnviredResult {
type: LoginListenerType type: LoginListenerType;
} }
@Plugin({ @Plugin({
pluginName: 'UnviredCordovaSDK', pluginName: 'UnviredCordovaSDK',