fk-platform-sdk 1.0.47 → 1.1.0-beta.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/package.json +1 -1
- package/dist/FKPlatform.d.ts +0 -27
- package/dist/FKPlatform.js +0 -53
- package/dist/analytics/Bill.d.ts +0 -31
- package/dist/analytics/Bill.js +0 -103
- package/dist/analytics/Cab.d.ts +0 -26
- package/dist/analytics/Cab.js +0 -66
- package/dist/analytics/EventValidator.d.ts +0 -6
- package/dist/analytics/EventValidator.js +0 -15
- package/dist/analytics/FoodDelivery.d.ts +0 -45
- package/dist/analytics/FoodDelivery.js +0 -131
- package/dist/analytics/FoodDish.d.ts +0 -7
- package/dist/analytics/FoodDish.js +0 -12
- package/dist/analytics/Healthcare.d.ts +0 -131
- package/dist/analytics/Healthcare.js +0 -231
- package/dist/analytics/Nft.d.ts +0 -37
- package/dist/analytics/Nft.js +0 -83
- package/dist/analytics/Person.d.ts +0 -6
- package/dist/analytics/Person.js +0 -11
- package/dist/analytics/Recharge.d.ts +0 -27
- package/dist/analytics/Recharge.js +0 -82
- package/dist/analytics/ShowTicket.d.ts +0 -36
- package/dist/analytics/ShowTicket.js +0 -97
- package/dist/analytics/Travel.d.ts +0 -45
- package/dist/analytics/Travel.js +0 -126
- package/dist/analytics/index.d.ts +0 -9
- package/dist/analytics/index.js +0 -18
- package/dist/analytics/interfaces/AnalyticsEvent.d.ts +0 -5
- package/dist/analytics/interfaces/AnalyticsEvent.js +0 -13
- package/dist/analytics/interfaces/AnalyticsHelper.d.ts +0 -67
- package/dist/analytics/interfaces/AnalyticsHelper.js +0 -2
- package/dist/analytics/interfaces/AnalyticsModule.d.ts +0 -19
- package/dist/analytics/interfaces/AnalyticsModule.js +0 -2
- package/dist/analytics/validation/ValidationMetadata.d.ts +0 -10
- package/dist/analytics/validation/ValidationMetadata.js +0 -2
- package/dist/analytics/validation/ValidationTypes.d.ts +0 -6
- package/dist/analytics/validation/ValidationTypes.js +0 -12
- package/dist/analytics/validation/Validator.d.ts +0 -3
- package/dist/analytics/validation/Validator.js +0 -38
- package/dist/analytics/validation/decorators.d.ts +0 -16
- package/dist/analytics/validation/decorators.js +0 -67
- package/dist/analytics/web/bill-index.d.ts +0 -1
- package/dist/analytics/web/bill-index.js +0 -4
- package/dist/analytics/web/cab-index.d.ts +0 -1
- package/dist/analytics/web/cab-index.js +0 -4
- package/dist/analytics/web/food-delivery-index.d.ts +0 -1
- package/dist/analytics/web/food-delivery-index.js +0 -4
- package/dist/analytics/web/recharge-index.d.ts +0 -1
- package/dist/analytics/web/recharge-index.js +0 -4
- package/dist/analytics/web/ticket-index.d.ts +0 -1
- package/dist/analytics/web/ticket-index.js +0 -4
- package/dist/analytics/web/travel-index.d.ts +0 -1
- package/dist/analytics/web/travel-index.js +0 -4
- package/dist/browser-index.d.ts +0 -1
- package/dist/browser-index.js +0 -8
- package/dist/constants/Errors.d.ts +0 -6
- package/dist/constants/Errors.js +0 -13
- package/dist/errors/FKPlatformError.d.ts +0 -3
- package/dist/errors/FKPlatformError.js +0 -20
- package/dist/errors/NativeModuleError.d.ts +0 -5
- package/dist/errors/NativeModuleError.js +0 -2
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -21
- package/dist/interfaces/AuthenticationTokens.d.ts +0 -4
- package/dist/interfaces/AuthenticationTokens.js +0 -2
- package/dist/interfaces/EventManager.d.ts +0 -3
- package/dist/interfaces/EventManager.js +0 -2
- package/dist/interfaces/FKExtension.d.ts +0 -11
- package/dist/interfaces/FKExtension.js +0 -2
- package/dist/interfaces/FKWindow.d.ts +0 -11
- package/dist/interfaces/FKWindow.js +0 -2
- package/dist/interfaces/NativeModuleManagerProvider.d.ts +0 -15
- package/dist/interfaces/NativeModuleManagerProvider.js +0 -2
- package/dist/interfaces/NativeModuleResponse.d.ts +0 -10
- package/dist/interfaces/NativeModuleResponse.js +0 -2
- package/dist/interfaces/modules/AppVersionModule.d.ts +0 -5
- package/dist/interfaces/modules/AppVersionModule.js +0 -2
- package/dist/interfaces/modules/ContactsModule.d.ts +0 -11
- package/dist/interfaces/modules/ContactsModule.js +0 -2
- package/dist/interfaces/modules/DownloaderModule.d.ts +0 -5
- package/dist/interfaces/modules/DownloaderModule.js +0 -2
- package/dist/interfaces/modules/ErrorHandlerModule.d.ts +0 -11
- package/dist/interfaces/modules/ErrorHandlerModule.js +0 -2
- package/dist/interfaces/modules/FontModule.d.ts +0 -5
- package/dist/interfaces/modules/FontModule.js +0 -2
- package/dist/interfaces/modules/GenericUltraShareModule.d.ts +0 -5
- package/dist/interfaces/modules/GenericUltraShareModule.js +0 -2
- package/dist/interfaces/modules/LocationModule.d.ts +0 -8
- package/dist/interfaces/modules/LocationModule.js +0 -2
- package/dist/interfaces/modules/NavigationModule.d.ts +0 -12
- package/dist/interfaces/modules/NavigationModule.js +0 -2
- package/dist/interfaces/modules/PermissionsModule.d.ts +0 -19
- package/dist/interfaces/modules/PermissionsModule.js +0 -8
- package/dist/interfaces/modules/SMSModule.d.ts +0 -5
- package/dist/interfaces/modules/SMSModule.js +0 -2
- package/dist/managers/ModuleManager.d.ts +0 -29
- package/dist/managers/ModuleManager.js +0 -84
- package/dist/managers/NativeModuleCallbackManager.d.ts +0 -12
- package/dist/managers/NativeModuleCallbackManager.js +0 -65
- package/dist/managers/NativeModuleHelper.d.ts +0 -17
- package/dist/managers/NativeModuleHelper.js +0 -65
- package/dist/managers/WindowManager.d.ts +0 -5
- package/dist/managers/WindowManager.js +0 -20
- package/dist/modules/AnalyticsModuleImpl.d.ts +0 -11
- package/dist/modules/AnalyticsModuleImpl.js +0 -74
- package/dist/modules/AppVersionModuleImpl.d.ts +0 -9
- package/dist/modules/AppVersionModuleImpl.js +0 -30
- package/dist/modules/AuthModuleImpl.d.ts +0 -6
- package/dist/modules/AuthModuleImpl.js +0 -27
- package/dist/modules/ContactsModuleImpl.d.ts +0 -11
- package/dist/modules/ContactsModuleImpl.js +0 -40
- package/dist/modules/DownloaderModuleImpl.d.ts +0 -9
- package/dist/modules/DownloaderModuleImpl.js +0 -32
- package/dist/modules/ErrorHandlerModuleImpl.d.ts +0 -8
- package/dist/modules/ErrorHandlerModuleImpl.js +0 -31
- package/dist/modules/FontModuleImpl.d.ts +0 -9
- package/dist/modules/FontModuleImpl.js +0 -32
- package/dist/modules/LocationModuleImpl.d.ts +0 -12
- package/dist/modules/LocationModuleImpl.js +0 -49
- package/dist/modules/NavigationModuleImpl.d.ts +0 -15
- package/dist/modules/NavigationModuleImpl.js +0 -72
- package/dist/modules/PermissionsModuleImpl.d.ts +0 -14
- package/dist/modules/PermissionsModuleImpl.js +0 -51
- package/dist/modules/SMSModuleImpl.d.ts +0 -9
- package/dist/modules/SMSModuleImpl.js +0 -30
- package/dist/modules/ShareModuleImpl.d.ts +0 -9
- package/dist/modules/ShareModuleImpl.js +0 -35
- package/dist/private/tracking-setup-index.d.ts +0 -1
- package/dist/private/tracking-setup-index.js +0 -49
- package/dist/setup/SetupHelper.d.ts +0 -22
- package/dist/setup/SetupHelper.js +0 -283
- package/dist/types/AppVersionManagerResponse.d.ts +0 -3
- package/dist/types/AppVersionManagerResponse.js +0 -2
- package/dist/types/DeviceInfoResponse.d.ts +0 -3
- package/dist/types/DeviceInfoResponse.js +0 -2
- package/dist/types/DownloadManagerResponse.d.ts +0 -3
- package/dist/types/DownloadManagerResponse.js +0 -2
- package/dist/types/FontsManagerResponse.d.ts +0 -3
- package/dist/types/FontsManagerResponse.js +0 -2
- package/dist/types/GenericShareManagerResponse.d.ts +0 -3
- package/dist/types/GenericShareManagerResponse.js +0 -2
- package/dist/types/LocationManagerResponse.d.ts +0 -7
- package/dist/types/LocationManagerResponse.js +0 -2
- package/dist/types/NativeModuleResponseType.d.ts +0 -1
- package/dist/types/NativeModuleResponseType.js +0 -2
- package/dist/types/PermissionsManagerResponse.d.ts +0 -3
- package/dist/types/PermissionsManagerResponse.js +0 -2
- package/dist/types/SMSManagerResponse.d.ts +0 -3
- package/dist/types/SMSManagerResponse.js +0 -2
- package/dist/web/index.d.ts +0 -5
- package/dist/web/index.js +0 -19
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
2
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
3
|
-
export declare class AuthModuleImpl extends NativeModule<NativeModuleManager> {
|
|
4
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
5
|
-
init(clientId: string): void;
|
|
6
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var AuthModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(AuthModuleImpl, _super);
|
|
16
|
-
function AuthModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().AuthModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
AuthModuleImpl.prototype.init = function (clientId) {
|
|
20
|
-
this.postMessage({
|
|
21
|
-
methodName: "init",
|
|
22
|
-
clientId: clientId,
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
return AuthModuleImpl;
|
|
26
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
27
|
-
exports.AuthModuleImpl = AuthModuleImpl;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
2
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
3
|
-
import { ContactsModule, Contact } from "../interfaces/modules/ContactsModule";
|
|
4
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
5
|
-
export declare class ContactsModuleImpl extends NativeModule<NativeModuleManager> implements ContactsModule {
|
|
6
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
7
|
-
pickPhoneNumber(): Promise<NativeModuleResponse<Contact>>;
|
|
8
|
-
getContactInfo(phoneNumbers: string[]): Promise<NativeModuleResponse<{
|
|
9
|
-
[key: string]: Contact;
|
|
10
|
-
}>>;
|
|
11
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var ContactsModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(ContactsModuleImpl, _super);
|
|
16
|
-
function ContactsModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().ContactsModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
ContactsModuleImpl.prototype.pickPhoneNumber = function () {
|
|
20
|
-
var _this = this;
|
|
21
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "pickPhoneNumber",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
ContactsModuleImpl.prototype.getContactInfo = function (phoneNumbers) {
|
|
29
|
-
var _this = this;
|
|
30
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
31
|
-
_this.postMessage({
|
|
32
|
-
methodName: "getContactInfo",
|
|
33
|
-
requestId: requestId,
|
|
34
|
-
numbers: JSON.stringify(phoneNumbers),
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
return ContactsModuleImpl;
|
|
39
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
40
|
-
exports.ContactsModuleImpl = ContactsModuleImpl;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
import { DownloaderModule } from "../interfaces/modules/DownloaderModule";
|
|
5
|
-
import { DownloadManagerResponse } from "../types/DownloadManagerResponse";
|
|
6
|
-
export declare class DownloaderModuleImpl extends NativeModule<NativeModuleManager> implements DownloaderModule {
|
|
7
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
-
fileDownload(url: string, mimeType: string): Promise<NativeModuleResponse<DownloadManagerResponse>>;
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var DownloaderModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(DownloaderModuleImpl, _super);
|
|
16
|
-
function DownloaderModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().DownloaderModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
DownloaderModuleImpl.prototype.fileDownload = function (url, mimeType) {
|
|
20
|
-
var _this = this;
|
|
21
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "fileDownload",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
url: url,
|
|
26
|
-
mimeType: mimeType
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
return DownloaderModuleImpl;
|
|
31
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
32
|
-
exports.DownloaderModuleImpl = DownloaderModuleImpl;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
2
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
3
|
-
import { ErrorHandlerModule } from "../interfaces/modules/ErrorHandlerModule";
|
|
4
|
-
import { ErrorInfoRequest } from "../interfaces/modules/ErrorHandlerModule";
|
|
5
|
-
export declare class ErrorHandlerModuleImpl extends NativeModule<NativeModuleManager> implements ErrorHandlerModule {
|
|
6
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
7
|
-
openErrorHandlingFlow(errorInfo: ErrorInfoRequest): void;
|
|
8
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var ErrorHandlerModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(ErrorHandlerModuleImpl, _super);
|
|
16
|
-
function ErrorHandlerModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().ErrorHandlerModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
ErrorHandlerModuleImpl.prototype.openErrorHandlingFlow = function (errorInfo) {
|
|
20
|
-
var _this = this;
|
|
21
|
-
this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "openErrorHandlingFlow",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
errorInfo: JSON.stringify(errorInfo)
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
return ErrorHandlerModuleImpl;
|
|
30
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
31
|
-
exports.ErrorHandlerModuleImpl = ErrorHandlerModuleImpl;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
2
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
3
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
4
|
-
import { FontsManagerResponse } from "../types/FontsManagerResponse";
|
|
5
|
-
import { FontModule } from "../interfaces/modules/FontModule";
|
|
6
|
-
export declare class FontModuleImpl extends NativeModule<NativeModuleManager> implements FontModule {
|
|
7
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
-
downloadFont(fontFamily: string, url: string): Promise<NativeModuleResponse<FontsManagerResponse>>;
|
|
9
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var FontModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(FontModuleImpl, _super);
|
|
16
|
-
function FontModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().FontModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
FontModuleImpl.prototype.downloadFont = function (fontFamily, url) {
|
|
20
|
-
var _this = this;
|
|
21
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "downloadFont",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
fontFamily: fontFamily,
|
|
26
|
-
url: url
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
return FontModuleImpl;
|
|
31
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
32
|
-
exports.FontModuleImpl = FontModuleImpl;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
import { LocationModule } from "../interfaces/modules/LocationModule";
|
|
5
|
-
import { LocationManagerResponse, PreciseLocationResponse } from "../types/LocationManagerResponse";
|
|
6
|
-
import { DeviceInfoResponse } from "../types/DeviceInfoResponse";
|
|
7
|
-
export declare class LocationModuleImpl extends NativeModule<NativeModuleManager> implements LocationModule {
|
|
8
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
9
|
-
getUserPinCode(clientID: string): Promise<NativeModuleResponse<LocationManagerResponse>>;
|
|
10
|
-
getUserDeviceId(): Promise<NativeModuleResponse<DeviceInfoResponse>>;
|
|
11
|
-
getUserLocation(): Promise<NativeModuleResponse<PreciseLocationResponse>>;
|
|
12
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var LocationModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(LocationModuleImpl, _super);
|
|
16
|
-
function LocationModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().LocationModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
LocationModuleImpl.prototype.getUserPinCode = function (clientID) {
|
|
20
|
-
var _this = this;
|
|
21
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "getUserPinCode",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
clientID: clientID
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
LocationModuleImpl.prototype.getUserDeviceId = function () {
|
|
30
|
-
var _this = this;
|
|
31
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
32
|
-
_this.postMessage({
|
|
33
|
-
methodName: "getUserDeviceID",
|
|
34
|
-
requestId: requestId
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
LocationModuleImpl.prototype.getUserLocation = function () {
|
|
39
|
-
var _this = this;
|
|
40
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
41
|
-
_this.postMessage({
|
|
42
|
-
methodName: "getUserLocation",
|
|
43
|
-
requestId: requestId
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
return LocationModuleImpl;
|
|
48
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
49
|
-
exports.LocationModuleImpl = LocationModuleImpl;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NavigationModule } from "../interfaces/modules/NavigationModule";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
export declare class NavigationModuleImpl extends NativeModule<NativeModuleManager> implements NavigationModule {
|
|
5
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
6
|
-
exitSession(): void;
|
|
7
|
-
exitToHomePage(): void;
|
|
8
|
-
clearHistory(): void;
|
|
9
|
-
startPayment(paymentToken: string): void;
|
|
10
|
-
notifyPageLocationChange(currentUri: string, isBackNavigation: boolean): void;
|
|
11
|
-
navigateToFlipkart(uri: string): void;
|
|
12
|
-
hideSplash(): void;
|
|
13
|
-
startPaymentByUrl(paymentUrl: string, postPaymentUrl: string): void;
|
|
14
|
-
overrideBackPressAndExitUltra(): void;
|
|
15
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var NavigationModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(NavigationModuleImpl, _super);
|
|
16
|
-
function NavigationModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().NavigationModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
NavigationModuleImpl.prototype.exitSession = function () {
|
|
20
|
-
this.postMessage({
|
|
21
|
-
methodName: "exitSession",
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
NavigationModuleImpl.prototype.exitToHomePage = function () {
|
|
25
|
-
this.postMessage({
|
|
26
|
-
methodName: "exitToHomePage",
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
NavigationModuleImpl.prototype.clearHistory = function () {
|
|
30
|
-
this.postMessage({
|
|
31
|
-
methodName: "clearHistory",
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
NavigationModuleImpl.prototype.startPayment = function (paymentToken) {
|
|
35
|
-
this.postMessage({
|
|
36
|
-
methodName: "startPayment",
|
|
37
|
-
paymentToken: paymentToken,
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
NavigationModuleImpl.prototype.notifyPageLocationChange = function (currentUri, isBackNavigation) {
|
|
41
|
-
this.postMessage({
|
|
42
|
-
methodName: "notifyPageLocationChange",
|
|
43
|
-
currentUri: currentUri,
|
|
44
|
-
isBackNavigation: isBackNavigation,
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
NavigationModuleImpl.prototype.navigateToFlipkart = function (uri) {
|
|
48
|
-
this.postMessage({
|
|
49
|
-
methodName: "navigateToFlipkart",
|
|
50
|
-
uri: uri,
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
NavigationModuleImpl.prototype.hideSplash = function () {
|
|
54
|
-
this.postMessage({
|
|
55
|
-
methodName: "hideSplash"
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
NavigationModuleImpl.prototype.startPaymentByUrl = function (paymentUrl, postPaymentUrl) {
|
|
59
|
-
this.postMessage({
|
|
60
|
-
methodName: "startPaymentByUrl",
|
|
61
|
-
paymentUrl: paymentUrl,
|
|
62
|
-
postPaymentUrl: postPaymentUrl
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
NavigationModuleImpl.prototype.overrideBackPressAndExitUltra = function () {
|
|
66
|
-
this.postMessage({
|
|
67
|
-
methodName: "overrideBackPressAndExitUltra"
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
return NavigationModuleImpl;
|
|
71
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
72
|
-
exports.NavigationModuleImpl = NavigationModuleImpl;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
import { PermissionsManagerResponse } from "../types/PermissionsManagerResponse";
|
|
5
|
-
import { PermissionsModule, Scope, ScopeAccessRequest } from "../interfaces/modules/PermissionsModule";
|
|
6
|
-
export declare class PermissionsModuleImpl extends NativeModule<NativeModuleManager> implements PermissionsModule {
|
|
7
|
-
private allScopes;
|
|
8
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
9
|
-
getToken(scopes: ScopeAccessRequest[]): Promise<NativeModuleResponse<PermissionsManagerResponse>>;
|
|
10
|
-
getScopes(): {
|
|
11
|
-
[key: string]: Scope;
|
|
12
|
-
};
|
|
13
|
-
getUltraPlusToken(): Promise<NativeModuleResponse<PermissionsManagerResponse>>;
|
|
14
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var PermissionsModule_1 = require("../interfaces/modules/PermissionsModule");
|
|
15
|
-
var PermissionsModuleImpl = /** @class */ (function (_super) {
|
|
16
|
-
__extends(PermissionsModuleImpl, _super);
|
|
17
|
-
function PermissionsModuleImpl(nativeModuleCallbackManager) {
|
|
18
|
-
var _this = _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().PermissionsModule, nativeModuleCallbackManager) || this;
|
|
19
|
-
_this.allScopes = Object.freeze({
|
|
20
|
-
USER_NAME: PermissionsModule_1.Scope.USER_NAME,
|
|
21
|
-
USER_EMAIL: PermissionsModule_1.Scope.USER_EMAIL,
|
|
22
|
-
USER_MOBILE: PermissionsModule_1.Scope.USER_MOBILE,
|
|
23
|
-
});
|
|
24
|
-
return _this;
|
|
25
|
-
}
|
|
26
|
-
PermissionsModuleImpl.prototype.getToken = function (scopes) {
|
|
27
|
-
var _this = this;
|
|
28
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
29
|
-
_this.postMessage({
|
|
30
|
-
methodName: "getToken",
|
|
31
|
-
requestId: requestId,
|
|
32
|
-
scopes: JSON.stringify(scopes),
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
PermissionsModuleImpl.prototype.getScopes = function () {
|
|
37
|
-
return this.allScopes;
|
|
38
|
-
};
|
|
39
|
-
// This is for ultraPlus where only token will be provided to clients
|
|
40
|
-
PermissionsModuleImpl.prototype.getUltraPlusToken = function () {
|
|
41
|
-
var _this = this;
|
|
42
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
43
|
-
_this.postMessage({
|
|
44
|
-
methodName: "getUltraPlusToken",
|
|
45
|
-
requestId: requestId
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
return PermissionsModuleImpl;
|
|
50
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
51
|
-
exports.PermissionsModuleImpl = PermissionsModuleImpl;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
import { SMSManagerResponse } from "../types/SMSManagerResponse";
|
|
5
|
-
import { SMSModule } from "../interfaces/modules/SMSModule";
|
|
6
|
-
export declare class SMSModuleImpl extends NativeModule<NativeModuleManager> implements SMSModule {
|
|
7
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
-
captureMessage(): Promise<NativeModuleResponse<SMSManagerResponse>>;
|
|
9
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var SMSModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(SMSModuleImpl, _super);
|
|
16
|
-
function SMSModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().SMSModule, nativeModuleCallbackManager) || this;
|
|
18
|
-
}
|
|
19
|
-
SMSModuleImpl.prototype.captureMessage = function () {
|
|
20
|
-
var _this = this;
|
|
21
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
-
_this.postMessage({
|
|
23
|
-
methodName: "captureMessage",
|
|
24
|
-
requestId: requestId,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
return SMSModuleImpl;
|
|
29
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
30
|
-
exports.SMSModuleImpl = SMSModuleImpl;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
-
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
-
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
-
import { GenericUltraShareModule } from "../interfaces/modules/GenericUltraShareModule";
|
|
5
|
-
import { GenericShareManagerResponse } from "../types/GenericShareManagerResponse";
|
|
6
|
-
export declare class ShareModuleImpl extends NativeModule<NativeModuleManager> implements GenericUltraShareModule {
|
|
7
|
-
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
-
share(title: string, text: string, url: string, fileContentUri: string): Promise<NativeModuleResponse<GenericShareManagerResponse>>;
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return function (d, b) {
|
|
7
|
-
extendStatics(d, b);
|
|
8
|
-
function __() { this.constructor = d; }
|
|
9
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
14
|
-
var ShareModuleImpl = /** @class */ (function (_super) {
|
|
15
|
-
__extends(ShareModuleImpl, _super);
|
|
16
|
-
function ShareModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
-
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider()
|
|
18
|
-
.GenericUltraShareModule, nativeModuleCallbackManager) || this;
|
|
19
|
-
}
|
|
20
|
-
ShareModuleImpl.prototype.share = function (title, text, url, fileContentUri) {
|
|
21
|
-
var _this = this;
|
|
22
|
-
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
23
|
-
_this.postMessage({
|
|
24
|
-
methodName: "share",
|
|
25
|
-
requestId: requestId,
|
|
26
|
-
title: title,
|
|
27
|
-
text: text,
|
|
28
|
-
url: url,
|
|
29
|
-
fileContentUri: fileContentUri
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
return ShareModuleImpl;
|
|
34
|
-
}(NativeModuleHelper_1.NativeModule));
|
|
35
|
-
exports.ShareModuleImpl = ShareModuleImpl;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var NativeModuleCallbackManager_1 = require("../managers/NativeModuleCallbackManager");
|
|
4
|
-
var NavigationModuleImpl_1 = require("../modules/NavigationModuleImpl");
|
|
5
|
-
var LAST_WINDOW_LOCATION = "";
|
|
6
|
-
var pushStateOriginal = history.pushState;
|
|
7
|
-
var replaceStateOriginal = history.replaceState;
|
|
8
|
-
var nativeCallbackManager = new NativeModuleCallbackManager_1.NativeModuleCallbackManager();
|
|
9
|
-
var nativeModule = new NavigationModuleImpl_1.NavigationModuleImpl(nativeCallbackManager);
|
|
10
|
-
function trySettingUpLocationChangeEvents() {
|
|
11
|
-
history.pushState = function (data, title, url) {
|
|
12
|
-
var args = [];
|
|
13
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
14
|
-
args[_i - 3] = arguments[_i];
|
|
15
|
-
}
|
|
16
|
-
notfiyLocationChange(url, false);
|
|
17
|
-
pushStateOriginal.call.apply(pushStateOriginal, [history, data, title, url].concat(args));
|
|
18
|
-
};
|
|
19
|
-
history.replaceState = function (data, title, url) {
|
|
20
|
-
var args = [];
|
|
21
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 3] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
notfiyLocationChange(url, false);
|
|
25
|
-
replaceStateOriginal.call.apply(replaceStateOriginal, [history, data, title, url].concat(args));
|
|
26
|
-
};
|
|
27
|
-
window.addEventListener("popstate", function (event) {
|
|
28
|
-
if (event.state) {
|
|
29
|
-
notfiyLocationChange(window.location.href, true);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function startsWith(searchString, stringVal) {
|
|
34
|
-
return stringVal.substring(0, searchString.length) === searchString;
|
|
35
|
-
}
|
|
36
|
-
function notfiyLocationChange(url, isBackNavigation) {
|
|
37
|
-
if (url) {
|
|
38
|
-
if (url !== LAST_WINDOW_LOCATION) {
|
|
39
|
-
LAST_WINDOW_LOCATION = url;
|
|
40
|
-
if (typeof url === "string") {
|
|
41
|
-
if (!startsWith("http", url)) {
|
|
42
|
-
url = location.protocol + "//" + window.location.hostname + url;
|
|
43
|
-
}
|
|
44
|
-
nativeModule.notifyPageLocationChange(url, !!isBackNavigation);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
trySettingUpLocationChangeEvents();
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import EventManager from "../interfaces/EventManager";
|
|
2
|
-
import { BillAnalyticsHelper, CabAnalyticsHelper, FoodDeliveryAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
3
|
-
import { RechargeAnalyticsHelper, TicketAnalyticsHelper, TravelAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
4
|
-
import { HealthcareAnalyticsHelper, NFTAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
5
|
-
export declare class SetupHelper {
|
|
6
|
-
static setUpForBrowser(): void;
|
|
7
|
-
static setupBillAnalyticsForBrowser(): void;
|
|
8
|
-
static setupCabAnalyticsForBrowser(): void;
|
|
9
|
-
static setupFoodDeliveryAnalyticsForBrowser(): void;
|
|
10
|
-
static setupRechargeAnalyticsForBrowser(): void;
|
|
11
|
-
static setupTicketAnalyticsForBrowser(): void;
|
|
12
|
-
static setupTravelAnalyticsForBrowser(): void;
|
|
13
|
-
static setUpForReactNative(eventManager: EventManager, nativeModules: any): void;
|
|
14
|
-
static getTravelObject(): TravelAnalyticsHelper;
|
|
15
|
-
static getBillObject(): BillAnalyticsHelper;
|
|
16
|
-
static getCabObject(): CabAnalyticsHelper;
|
|
17
|
-
static getFoodDeliveryObject(): FoodDeliveryAnalyticsHelper;
|
|
18
|
-
static getRechargeObject(): RechargeAnalyticsHelper;
|
|
19
|
-
static getTicketObject(): TicketAnalyticsHelper;
|
|
20
|
-
static getNftObject(): NFTAnalyticsHelper;
|
|
21
|
-
static getHealthcareObject(): HealthcareAnalyticsHelper;
|
|
22
|
-
}
|