fk-platform-sdk 1.0.27-beta → 1.0.29-beta
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/dist/analytics/Healthcare.d.ts +5 -4
- package/dist/analytics/Healthcare.js +5 -4
- package/dist/analytics/interfaces/AnalyticsHelper.d.ts +2 -2
- package/dist/interfaces/modules/LocationModule.d.ts +2 -0
- package/dist/modules/LocationModuleImpl.d.ts +2 -0
- package/dist/modules/LocationModuleImpl.js +9 -0
- package/dist/setup/SetupHelper.js +4 -4
- package/dist/types/DeviceInfoResponse.d.ts +3 -0
- package/dist/types/DeviceInfoResponse.js +2 -0
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@ export declare class OrderConfirmation implements AnalyticsEvent {
|
|
|
9
9
|
private order_amount;
|
|
10
10
|
private offer_amount;
|
|
11
11
|
private payment_method;
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string,
|
|
12
|
+
private order_id;
|
|
13
|
+
private order_status;
|
|
14
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, order_id: string, order_status: string);
|
|
15
15
|
getValidator(): EventValidator;
|
|
16
16
|
}
|
|
17
17
|
export declare class ProceedToPayEvent implements AnalyticsEvent {
|
|
@@ -23,7 +23,8 @@ export declare class ProceedToPayEvent implements AnalyticsEvent {
|
|
|
23
23
|
private order_amount;
|
|
24
24
|
private offer_amount;
|
|
25
25
|
private payment_method;
|
|
26
|
-
|
|
26
|
+
private order_id;
|
|
27
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, order_id: string);
|
|
27
28
|
getValidator(): EventValidator;
|
|
28
29
|
}
|
|
29
30
|
export declare class UploadPrescription implements AnalyticsEvent {
|
|
@@ -11,7 +11,7 @@ var decorators_1 = require("./validation/decorators");
|
|
|
11
11
|
var Validator_1 = require("./validation/Validator");
|
|
12
12
|
var metadataMap = {};
|
|
13
13
|
var OrderConfirmation = /** @class */ (function () {
|
|
14
|
-
function OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method,
|
|
14
|
+
function OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id, order_status) {
|
|
15
15
|
this.type = "Healthcare.OrderConfirmation";
|
|
16
16
|
this.fk_accountid = fk_accountid;
|
|
17
17
|
this.fkh_userid = fkh_userid;
|
|
@@ -20,8 +20,8 @@ var OrderConfirmation = /** @class */ (function () {
|
|
|
20
20
|
this.order_amount = order_amount;
|
|
21
21
|
this.offer_amount = offer_amount;
|
|
22
22
|
this.payment_method = payment_method;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.order_id = order_id;
|
|
24
|
+
this.order_status = order_status;
|
|
25
25
|
}
|
|
26
26
|
OrderConfirmation.prototype.getValidator = function () {
|
|
27
27
|
var invalidValues = Validator_1.validate(metadataMap, this, "OrderConfirmation");
|
|
@@ -34,7 +34,7 @@ var OrderConfirmation = /** @class */ (function () {
|
|
|
34
34
|
}());
|
|
35
35
|
exports.OrderConfirmation = OrderConfirmation;
|
|
36
36
|
var ProceedToPayEvent = /** @class */ (function () {
|
|
37
|
-
function ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
|
|
37
|
+
function ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id) {
|
|
38
38
|
this.type = "Healthcare.ProceedToPayEvent";
|
|
39
39
|
this.fk_accountid = fk_accountid;
|
|
40
40
|
this.fkh_userid = fkh_userid;
|
|
@@ -43,6 +43,7 @@ var ProceedToPayEvent = /** @class */ (function () {
|
|
|
43
43
|
this.order_amount = order_amount;
|
|
44
44
|
this.offer_amount = offer_amount;
|
|
45
45
|
this.payment_method = payment_method;
|
|
46
|
+
this.order_id = order_id;
|
|
46
47
|
}
|
|
47
48
|
ProceedToPayEvent.prototype.getValidator = function () {
|
|
48
49
|
var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPayEvent");
|
|
@@ -48,8 +48,8 @@ export interface TravelAnalyticsHelper {
|
|
|
48
48
|
orderConfirmation: (amountToPay: number, paymentMethod: string) => Travel.OrderConfirmation;
|
|
49
49
|
}
|
|
50
50
|
export interface HealthcareAnalyticsHelper {
|
|
51
|
-
orderConfirmation: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string,
|
|
52
|
-
proceedToPayEvent: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string) => Healthcare.ProceedToPayEvent;
|
|
51
|
+
orderConfirmation: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, order_id: string, order_status: string) => Healthcare.OrderConfirmation;
|
|
52
|
+
proceedToPayEvent: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, order_id: string) => Healthcare.ProceedToPayEvent;
|
|
53
53
|
uploadPrescription: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string) => Healthcare.UploadPrescription;
|
|
54
54
|
addToCart: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, product_name: string, product_id: string, price: number, quantity: number, source: string) => Healthcare.AddToCart;
|
|
55
55
|
search: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, search_query: string) => Healthcare.Search;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { DeviceInfoResponse } from "../../types/DeviceInfoResponse";
|
|
1
2
|
import { LocationManagerResponse } from "../../types/LocationManagerResponse";
|
|
2
3
|
import { NativeModuleResponse } from "../NativeModuleResponse";
|
|
3
4
|
export interface LocationModule {
|
|
4
5
|
getUserPinCode: (clientID: string) => Promise<NativeModuleResponse<LocationManagerResponse>>;
|
|
6
|
+
getUserDeviceId: () => Promise<NativeModuleResponse<DeviceInfoResponse>>;
|
|
5
7
|
}
|
|
@@ -3,7 +3,9 @@ import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelpe
|
|
|
3
3
|
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
4
|
import { LocationModule } from "../interfaces/modules/LocationModule";
|
|
5
5
|
import { LocationManagerResponse } from "../types/LocationManagerResponse";
|
|
6
|
+
import { DeviceInfoResponse } from "../types/DeviceInfoResponse";
|
|
6
7
|
export declare class LocationModuleImpl extends NativeModule<NativeModuleManager> implements LocationModule {
|
|
7
8
|
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
9
|
getUserPinCode(clientID: string): Promise<NativeModuleResponse<LocationManagerResponse>>;
|
|
10
|
+
getUserDeviceId(): Promise<NativeModuleResponse<DeviceInfoResponse>>;
|
|
9
11
|
}
|
|
@@ -26,6 +26,15 @@ var LocationModuleImpl = /** @class */ (function (_super) {
|
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
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
|
+
};
|
|
29
38
|
return LocationModuleImpl;
|
|
30
39
|
}(NativeModuleHelper_1.NativeModule));
|
|
31
40
|
exports.LocationModuleImpl = LocationModuleImpl;
|
|
@@ -230,11 +230,11 @@ var SetupHelper = /** @class */ (function () {
|
|
|
230
230
|
};
|
|
231
231
|
SetupHelper.getHealthcareObject = function () {
|
|
232
232
|
return {
|
|
233
|
-
orderConfirmation: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method,
|
|
234
|
-
return new analytics_1.Healthcare.OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method,
|
|
233
|
+
orderConfirmation: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id, order_status) {
|
|
234
|
+
return new analytics_1.Healthcare.OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id, order_status);
|
|
235
235
|
},
|
|
236
|
-
proceedToPayEvent: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
|
|
237
|
-
return new analytics_1.Healthcare.ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method);
|
|
236
|
+
proceedToPayEvent: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id) {
|
|
237
|
+
return new analytics_1.Healthcare.ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id);
|
|
238
238
|
},
|
|
239
239
|
uploadPrescription: function (fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
240
240
|
return new analytics_1.Healthcare.UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name);
|