fk-platform-sdk 1.0.29-beta → 1.0.31-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 -6
- package/dist/analytics/Healthcare.js +13 -14
- package/dist/analytics/interfaces/AnalyticsHelper.d.ts +2 -2
- package/dist/interfaces/NativeModuleManagerProvider.d.ts +1 -0
- package/dist/interfaces/modules/AppVersionModule.d.ts +5 -0
- package/dist/interfaces/modules/AppVersionModule.js +2 -0
- package/dist/modules/AppVersionModuleImpl.d.ts +9 -0
- package/dist/modules/AppVersionModuleImpl.js +30 -0
- package/dist/setup/SetupHelper.js +4 -4
- package/dist/types/AppVersionManagerResponse.d.ts +3 -0
- package/dist/types/AppVersionManagerResponse.js +2 -0
- package/package.json +1 -1
|
@@ -9,12 +9,12 @@ 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 fkh_order_id;
|
|
13
|
+
private fkh_order_status;
|
|
14
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, fkh_order_id: string, fkh_order_status: string);
|
|
15
15
|
getValidator(): EventValidator;
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class ProceedToPay implements AnalyticsEvent {
|
|
18
18
|
type: string;
|
|
19
19
|
private fk_accountid;
|
|
20
20
|
private fkh_userid;
|
|
@@ -23,8 +23,7 @@ export declare class ProceedToPayEvent implements AnalyticsEvent {
|
|
|
23
23
|
private order_amount;
|
|
24
24
|
private offer_amount;
|
|
25
25
|
private payment_method;
|
|
26
|
-
|
|
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);
|
|
26
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string);
|
|
28
27
|
getValidator(): EventValidator;
|
|
29
28
|
}
|
|
30
29
|
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, fkh_order_id, fkh_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.fkh_order_id = fkh_order_id;
|
|
24
|
+
this.fkh_order_status = fkh_order_status;
|
|
25
25
|
}
|
|
26
26
|
OrderConfirmation.prototype.getValidator = function () {
|
|
27
27
|
var invalidValues = Validator_1.validate(metadataMap, this, "OrderConfirmation");
|
|
@@ -33,9 +33,9 @@ var OrderConfirmation = /** @class */ (function () {
|
|
|
33
33
|
return OrderConfirmation;
|
|
34
34
|
}());
|
|
35
35
|
exports.OrderConfirmation = OrderConfirmation;
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
this.type = "Healthcare.
|
|
36
|
+
var ProceedToPay = /** @class */ (function () {
|
|
37
|
+
function ProceedToPay(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
|
|
38
|
+
this.type = "Healthcare.ProceedToPay";
|
|
39
39
|
this.fk_accountid = fk_accountid;
|
|
40
40
|
this.fkh_userid = fkh_userid;
|
|
41
41
|
this.token_id = token_id;
|
|
@@ -43,18 +43,17 @@ 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;
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
var invalidValues = Validator_1.validate(metadataMap, this, "
|
|
47
|
+
ProceedToPay.prototype.getValidator = function () {
|
|
48
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPay");
|
|
50
49
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
51
50
|
};
|
|
52
51
|
__decorate([
|
|
53
|
-
decorators_1.Positive(metadataMap, "
|
|
54
|
-
],
|
|
55
|
-
return
|
|
52
|
+
decorators_1.Positive(metadataMap, "ProceedToPay")
|
|
53
|
+
], ProceedToPay.prototype, "fk_accountid", void 0);
|
|
54
|
+
return ProceedToPay;
|
|
56
55
|
}());
|
|
57
|
-
exports.
|
|
56
|
+
exports.ProceedToPay = ProceedToPay;
|
|
58
57
|
var UploadPrescription = /** @class */ (function () {
|
|
59
58
|
function UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
60
59
|
this.type = "Healthcare.UploadPrescription";
|
|
@@ -69,7 +68,7 @@ var UploadPrescription = /** @class */ (function () {
|
|
|
69
68
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
70
69
|
};
|
|
71
70
|
__decorate([
|
|
72
|
-
decorators_1.Positive(metadataMap, "
|
|
71
|
+
decorators_1.Positive(metadataMap, "UploadPrescription")
|
|
73
72
|
], UploadPrescription.prototype, "fk_accountid", void 0);
|
|
74
73
|
return UploadPrescription;
|
|
75
74
|
}());
|
|
@@ -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
|
-
|
|
51
|
+
orderConfirmation: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, fkh_order_id: string, fkh_order_status: string) => Healthcare.OrderConfirmation;
|
|
52
|
+
proceedToPay: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string) => Healthcare.ProceedToPay;
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NativeModuleResponse } from "../interfaces/NativeModuleResponse";
|
|
2
|
+
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
3
|
+
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
4
|
+
import { AppVersionModule } from "../interfaces/modules/AppVersionModule";
|
|
5
|
+
import { AppVersionManagerResponse } from "../types/AppVersionManagerResponse";
|
|
6
|
+
export declare class AppVersionModuleImpl extends NativeModule<NativeModuleManager> implements AppVersionModule {
|
|
7
|
+
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
+
getApkVersion(): Promise<NativeModuleResponse<AppVersionManagerResponse>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 AppVersionModuleImpl = /** @class */ (function (_super) {
|
|
15
|
+
__extends(AppVersionModuleImpl, _super);
|
|
16
|
+
function AppVersionModuleImpl(nativeModuleCallbackManager) {
|
|
17
|
+
return _super.call(this, NativeModuleHelper_1.NativeModuleHelper.getCurrentNativeModuleProvider().AppVersionModule, nativeModuleCallbackManager) || this;
|
|
18
|
+
}
|
|
19
|
+
AppVersionModuleImpl.prototype.getApkVersion = function () {
|
|
20
|
+
var _this = this;
|
|
21
|
+
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
22
|
+
_this.postMessage({
|
|
23
|
+
methodName: "getApkVersion",
|
|
24
|
+
requestId: requestId
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
return AppVersionModuleImpl;
|
|
29
|
+
}(NativeModuleHelper_1.NativeModule));
|
|
30
|
+
exports.AppVersionModuleImpl = AppVersionModuleImpl;
|
|
@@ -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, fkh_order_id, fkh_order_status) {
|
|
234
|
+
return new analytics_1.Healthcare.OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, fkh_order_id, fkh_order_status);
|
|
235
235
|
},
|
|
236
|
-
|
|
237
|
-
return new analytics_1.Healthcare.
|
|
236
|
+
proceedToPay: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
|
|
237
|
+
return new analytics_1.Healthcare.ProceedToPay(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method);
|
|
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);
|