fk-platform-sdk 1.0.19-ios-beta → 1.0.20-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/.vscode/launch.json +34 -0
- package/dist/analytics/Healthcare.d.ts +107 -0
- package/dist/analytics/Healthcare.js +198 -0
- package/dist/analytics/index.d.ts +2 -1
- package/dist/analytics/index.js +2 -0
- package/dist/analytics/interfaces/AnalyticsHelper.d.ts +13 -1
- package/dist/interfaces/NativeModuleManagerProvider.d.ts +1 -0
- package/dist/interfaces/modules/LocationModule.d.ts +5 -0
- package/dist/interfaces/modules/LocationModule.js +2 -0
- package/dist/managers/ModuleManager.d.ts +2 -0
- package/dist/managers/ModuleManager.js +6 -0
- package/dist/modules/LocationModuleImpl.d.ts +9 -0
- package/dist/modules/LocationModuleImpl.js +31 -0
- package/dist/setup/SetupHelper.d.ts +2 -0
- package/dist/setup/SetupHelper.js +31 -0
- package/dist/types/LocationManagerResponse.d.ts +3 -0
- package/dist/types/LocationManagerResponse.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
"name": "Attach by Process ID",
|
|
10
|
+
"processId": "${command:PickProcess}",
|
|
11
|
+
"request": "attach",
|
|
12
|
+
"skipFiles": [
|
|
13
|
+
"<node_internals>/**"
|
|
14
|
+
],
|
|
15
|
+
"type": "pwa-node"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Attach",
|
|
19
|
+
"port": 9229,
|
|
20
|
+
"request": "attach",
|
|
21
|
+
"skipFiles": [
|
|
22
|
+
"<node_internals>/**"
|
|
23
|
+
],
|
|
24
|
+
"type": "pwa-node"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "pwa-chrome",
|
|
28
|
+
"request": "launch",
|
|
29
|
+
"name": "Launch Chrome against localhost",
|
|
30
|
+
"url": "http://localhost:8080",
|
|
31
|
+
"webRoot": "${workspaceFolder}"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { AnalyticsEvent } from "./interfaces/AnalyticsEvent";
|
|
2
|
+
import { EventValidator } from "./EventValidator";
|
|
3
|
+
export declare class OrderConfirmation implements AnalyticsEvent {
|
|
4
|
+
type: string;
|
|
5
|
+
private fk_accountid;
|
|
6
|
+
private fkh_userid;
|
|
7
|
+
private token_id;
|
|
8
|
+
private pincode;
|
|
9
|
+
private order_amount;
|
|
10
|
+
private offer_amount;
|
|
11
|
+
private payment_method;
|
|
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
|
+
getValidator(): EventValidator;
|
|
16
|
+
}
|
|
17
|
+
export declare class ProceedToPayEvent implements AnalyticsEvent {
|
|
18
|
+
type: string;
|
|
19
|
+
private fk_accountid;
|
|
20
|
+
private fkh_userid;
|
|
21
|
+
private token_id;
|
|
22
|
+
private pincode;
|
|
23
|
+
private order_amount;
|
|
24
|
+
private offer_amount;
|
|
25
|
+
private payment_method;
|
|
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);
|
|
28
|
+
getValidator(): EventValidator;
|
|
29
|
+
}
|
|
30
|
+
export declare class UploadPrescription implements AnalyticsEvent {
|
|
31
|
+
type: string;
|
|
32
|
+
private fk_accountid;
|
|
33
|
+
private fkh_userid;
|
|
34
|
+
private token_id;
|
|
35
|
+
private pincode;
|
|
36
|
+
private page_name;
|
|
37
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string);
|
|
38
|
+
getValidator(): EventValidator;
|
|
39
|
+
}
|
|
40
|
+
export declare class AddToCart implements AnalyticsEvent {
|
|
41
|
+
type: string;
|
|
42
|
+
private fk_accountid;
|
|
43
|
+
private fkh_userid;
|
|
44
|
+
private token_id;
|
|
45
|
+
private pincode;
|
|
46
|
+
private product_name;
|
|
47
|
+
private product_id;
|
|
48
|
+
private price;
|
|
49
|
+
private quantity;
|
|
50
|
+
private source;
|
|
51
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, product_name: string, product_id: string, price: number, quantity: number, source: string);
|
|
52
|
+
getValidator(): EventValidator;
|
|
53
|
+
}
|
|
54
|
+
export declare class Search implements AnalyticsEvent {
|
|
55
|
+
type: string;
|
|
56
|
+
private fk_accountid;
|
|
57
|
+
private fkh_userid;
|
|
58
|
+
private token_id;
|
|
59
|
+
private pincode;
|
|
60
|
+
private search_query;
|
|
61
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, search_query: string);
|
|
62
|
+
getValidator(): EventValidator;
|
|
63
|
+
}
|
|
64
|
+
export declare class LocationPincodeEnter implements AnalyticsEvent {
|
|
65
|
+
type: string;
|
|
66
|
+
private fk_accountid;
|
|
67
|
+
private fkh_userid;
|
|
68
|
+
private token_id;
|
|
69
|
+
private pincode;
|
|
70
|
+
private city;
|
|
71
|
+
private state;
|
|
72
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, city: string, state: string);
|
|
73
|
+
getValidator(): EventValidator;
|
|
74
|
+
}
|
|
75
|
+
export declare class PageView implements AnalyticsEvent {
|
|
76
|
+
type: string;
|
|
77
|
+
private fk_accountid;
|
|
78
|
+
private fkh_userid;
|
|
79
|
+
private token_id;
|
|
80
|
+
private pincode;
|
|
81
|
+
private page_name;
|
|
82
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string);
|
|
83
|
+
getValidator(): EventValidator;
|
|
84
|
+
}
|
|
85
|
+
export declare class AddAddress implements AnalyticsEvent {
|
|
86
|
+
type: string;
|
|
87
|
+
private fk_accountid;
|
|
88
|
+
private fkh_userid;
|
|
89
|
+
private token_id;
|
|
90
|
+
private pincode;
|
|
91
|
+
private address_tag;
|
|
92
|
+
private subarea;
|
|
93
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, address_tag: string, subarea: string);
|
|
94
|
+
getValidator(): EventValidator;
|
|
95
|
+
}
|
|
96
|
+
export declare class ObpUploadPrescription implements AnalyticsEvent {
|
|
97
|
+
type: string;
|
|
98
|
+
private fk_accountid;
|
|
99
|
+
private fkh_userid;
|
|
100
|
+
private token_id;
|
|
101
|
+
private pincode;
|
|
102
|
+
private rx_file_size;
|
|
103
|
+
private no_of_rx_uploaded;
|
|
104
|
+
private rx_source;
|
|
105
|
+
constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, rx_file_size: number, no_of_rx_uploaded: number, rx_source: string);
|
|
106
|
+
getValidator(): EventValidator;
|
|
107
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
var EventValidator_1 = require("./EventValidator");
|
|
10
|
+
var decorators_1 = require("./validation/decorators");
|
|
11
|
+
var Validator_1 = require("./validation/Validator");
|
|
12
|
+
var metadataMap = {};
|
|
13
|
+
var OrderConfirmation = /** @class */ (function () {
|
|
14
|
+
function OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id, order_status) {
|
|
15
|
+
this.type = "Healthcare.OrderConfirmation";
|
|
16
|
+
this.fk_accountid = fk_accountid;
|
|
17
|
+
this.fkh_userid = fkh_userid;
|
|
18
|
+
this.token_id = token_id;
|
|
19
|
+
this.pincode = pincode;
|
|
20
|
+
this.order_amount = order_amount;
|
|
21
|
+
this.offer_amount = offer_amount;
|
|
22
|
+
this.payment_method = payment_method;
|
|
23
|
+
this.order_id = order_id;
|
|
24
|
+
this.order_status = order_status;
|
|
25
|
+
}
|
|
26
|
+
OrderConfirmation.prototype.getValidator = function () {
|
|
27
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "OrderConfirmation");
|
|
28
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
decorators_1.Positive(metadataMap, "OrderConfirmation")
|
|
32
|
+
], OrderConfirmation.prototype, "fk_accountid", void 0);
|
|
33
|
+
return OrderConfirmation;
|
|
34
|
+
}());
|
|
35
|
+
exports.OrderConfirmation = OrderConfirmation;
|
|
36
|
+
var ProceedToPayEvent = /** @class */ (function () {
|
|
37
|
+
function ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, order_id) {
|
|
38
|
+
this.type = "Healthcare.ProceedToPayEvent";
|
|
39
|
+
this.fk_accountid = fk_accountid;
|
|
40
|
+
this.fkh_userid = fkh_userid;
|
|
41
|
+
this.token_id = token_id;
|
|
42
|
+
this.pincode = pincode;
|
|
43
|
+
this.order_amount = order_amount;
|
|
44
|
+
this.offer_amount = offer_amount;
|
|
45
|
+
this.payment_method = payment_method;
|
|
46
|
+
this.order_id = order_id;
|
|
47
|
+
}
|
|
48
|
+
ProceedToPayEvent.prototype.getValidator = function () {
|
|
49
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPayEvent");
|
|
50
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
51
|
+
};
|
|
52
|
+
__decorate([
|
|
53
|
+
decorators_1.Positive(metadataMap, "ProceedToPayEvent")
|
|
54
|
+
], ProceedToPayEvent.prototype, "fk_accountid", void 0);
|
|
55
|
+
return ProceedToPayEvent;
|
|
56
|
+
}());
|
|
57
|
+
exports.ProceedToPayEvent = ProceedToPayEvent;
|
|
58
|
+
var UploadPrescription = /** @class */ (function () {
|
|
59
|
+
function UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
60
|
+
this.type = "Healthcare.UploadPrescription";
|
|
61
|
+
this.fk_accountid = fk_accountid;
|
|
62
|
+
this.fkh_userid = fkh_userid;
|
|
63
|
+
this.token_id = token_id;
|
|
64
|
+
this.pincode = pincode;
|
|
65
|
+
this.page_name = page_name;
|
|
66
|
+
}
|
|
67
|
+
UploadPrescription.prototype.getValidator = function () {
|
|
68
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "UploadPrescription");
|
|
69
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
70
|
+
};
|
|
71
|
+
__decorate([
|
|
72
|
+
decorators_1.Positive(metadataMap, "UploadPrescriprion")
|
|
73
|
+
], UploadPrescription.prototype, "fk_accountid", void 0);
|
|
74
|
+
return UploadPrescription;
|
|
75
|
+
}());
|
|
76
|
+
exports.UploadPrescription = UploadPrescription;
|
|
77
|
+
var AddToCart = /** @class */ (function () {
|
|
78
|
+
function AddToCart(fk_accountid, fkh_userid, token_id, pincode, product_name, product_id, price, quantity, source) {
|
|
79
|
+
this.type = "Healthcare.AddToCart";
|
|
80
|
+
this.fk_accountid = fk_accountid;
|
|
81
|
+
this.fkh_userid = fkh_userid;
|
|
82
|
+
this.token_id = token_id;
|
|
83
|
+
this.pincode = pincode;
|
|
84
|
+
this.product_name = product_name;
|
|
85
|
+
this.product_id = product_id;
|
|
86
|
+
this.price = price;
|
|
87
|
+
this.quantity = quantity;
|
|
88
|
+
this.source = source;
|
|
89
|
+
}
|
|
90
|
+
AddToCart.prototype.getValidator = function () {
|
|
91
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "AddToCart");
|
|
92
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
93
|
+
};
|
|
94
|
+
__decorate([
|
|
95
|
+
decorators_1.Positive(metadataMap, "AddToCart")
|
|
96
|
+
], AddToCart.prototype, "fk_accountid", void 0);
|
|
97
|
+
return AddToCart;
|
|
98
|
+
}());
|
|
99
|
+
exports.AddToCart = AddToCart;
|
|
100
|
+
var Search = /** @class */ (function () {
|
|
101
|
+
function Search(fk_accountid, fkh_userid, token_id, pincode, search_query) {
|
|
102
|
+
this.type = "Healthcare.Search";
|
|
103
|
+
this.fk_accountid = fk_accountid;
|
|
104
|
+
this.fkh_userid = fkh_userid;
|
|
105
|
+
this.token_id = token_id;
|
|
106
|
+
this.pincode = pincode;
|
|
107
|
+
this.search_query = search_query;
|
|
108
|
+
}
|
|
109
|
+
Search.prototype.getValidator = function () {
|
|
110
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "Search");
|
|
111
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
112
|
+
};
|
|
113
|
+
__decorate([
|
|
114
|
+
decorators_1.Positive(metadataMap, "Search")
|
|
115
|
+
], Search.prototype, "fk_accountid", void 0);
|
|
116
|
+
return Search;
|
|
117
|
+
}());
|
|
118
|
+
exports.Search = Search;
|
|
119
|
+
var LocationPincodeEnter = /** @class */ (function () {
|
|
120
|
+
function LocationPincodeEnter(fk_accountid, fkh_userid, token_id, pincode, city, state) {
|
|
121
|
+
this.type = "Healthcare.LocationPincodeEnter";
|
|
122
|
+
this.fk_accountid = fk_accountid;
|
|
123
|
+
this.fkh_userid = fkh_userid;
|
|
124
|
+
this.token_id = token_id;
|
|
125
|
+
this.pincode = pincode;
|
|
126
|
+
this.city = city;
|
|
127
|
+
this.state = state;
|
|
128
|
+
}
|
|
129
|
+
LocationPincodeEnter.prototype.getValidator = function () {
|
|
130
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "LocationPincodeEnter");
|
|
131
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
132
|
+
};
|
|
133
|
+
__decorate([
|
|
134
|
+
decorators_1.Positive(metadataMap, "LocationPincodeEnter")
|
|
135
|
+
], LocationPincodeEnter.prototype, "fk_accountid", void 0);
|
|
136
|
+
return LocationPincodeEnter;
|
|
137
|
+
}());
|
|
138
|
+
exports.LocationPincodeEnter = LocationPincodeEnter;
|
|
139
|
+
var PageView = /** @class */ (function () {
|
|
140
|
+
function PageView(fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
141
|
+
this.type = "Healthcare.PageView";
|
|
142
|
+
this.fk_accountid = fk_accountid;
|
|
143
|
+
this.fkh_userid = fkh_userid;
|
|
144
|
+
this.token_id = token_id;
|
|
145
|
+
this.pincode = pincode;
|
|
146
|
+
this.page_name = page_name;
|
|
147
|
+
}
|
|
148
|
+
PageView.prototype.getValidator = function () {
|
|
149
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "PageView");
|
|
150
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
151
|
+
};
|
|
152
|
+
__decorate([
|
|
153
|
+
decorators_1.Positive(metadataMap, "PageView")
|
|
154
|
+
], PageView.prototype, "fk_accountid", void 0);
|
|
155
|
+
return PageView;
|
|
156
|
+
}());
|
|
157
|
+
exports.PageView = PageView;
|
|
158
|
+
var AddAddress = /** @class */ (function () {
|
|
159
|
+
function AddAddress(fk_accountid, fkh_userid, token_id, pincode, address_tag, subarea) {
|
|
160
|
+
this.type = "Healthcare.AddAddress";
|
|
161
|
+
this.fk_accountid = fk_accountid;
|
|
162
|
+
this.fkh_userid = fkh_userid;
|
|
163
|
+
this.token_id = token_id;
|
|
164
|
+
this.pincode = pincode;
|
|
165
|
+
this.address_tag = address_tag;
|
|
166
|
+
this.subarea = subarea;
|
|
167
|
+
}
|
|
168
|
+
AddAddress.prototype.getValidator = function () {
|
|
169
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "AddAddress");
|
|
170
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
171
|
+
};
|
|
172
|
+
__decorate([
|
|
173
|
+
decorators_1.Positive(metadataMap, "AddAddress")
|
|
174
|
+
], AddAddress.prototype, "fk_accountid", void 0);
|
|
175
|
+
return AddAddress;
|
|
176
|
+
}());
|
|
177
|
+
exports.AddAddress = AddAddress;
|
|
178
|
+
var ObpUploadPrescription = /** @class */ (function () {
|
|
179
|
+
function ObpUploadPrescription(fk_accountid, fkh_userid, token_id, pincode, rx_file_size, no_of_rx_uploaded, rx_source) {
|
|
180
|
+
this.type = "Healthcare.ObpUploadPrescription";
|
|
181
|
+
this.fk_accountid = fk_accountid;
|
|
182
|
+
this.fkh_userid = fkh_userid;
|
|
183
|
+
this.token_id = token_id;
|
|
184
|
+
this.pincode = pincode;
|
|
185
|
+
this.rx_file_size = rx_file_size;
|
|
186
|
+
this.no_of_rx_uploaded = no_of_rx_uploaded;
|
|
187
|
+
this.rx_source = rx_source;
|
|
188
|
+
}
|
|
189
|
+
ObpUploadPrescription.prototype.getValidator = function () {
|
|
190
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "ObpUploadPrescription");
|
|
191
|
+
return new EventValidator_1.EventValidator(invalidValues);
|
|
192
|
+
};
|
|
193
|
+
__decorate([
|
|
194
|
+
decorators_1.Positive(metadataMap, "ObpUploadPrescription")
|
|
195
|
+
], ObpUploadPrescription.prototype, "fk_accountid", void 0);
|
|
196
|
+
return ObpUploadPrescription;
|
|
197
|
+
}());
|
|
198
|
+
exports.ObpUploadPrescription = ObpUploadPrescription;
|
|
@@ -4,4 +4,5 @@ import * as Recharge from "./Recharge";
|
|
|
4
4
|
import * as Bill from "./Bill";
|
|
5
5
|
import * as Ticket from "./ShowTicket";
|
|
6
6
|
import * as FoodDelivery from "./FoodDelivery";
|
|
7
|
-
|
|
7
|
+
import * as Healthcare from "./Healthcare";
|
|
8
|
+
export { Bill, Cab, FoodDelivery, Recharge, Ticket, Travel, Healthcare };
|
package/dist/analytics/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bill, Cab, FoodDelivery, Recharge, Ticket, Travel } from "../";
|
|
1
|
+
import { Bill, Cab, FoodDelivery, Recharge, Ticket, Travel, Healthcare } from "../";
|
|
2
2
|
import { FoodDish } from "../FoodDish";
|
|
3
3
|
import { Person } from "../Person";
|
|
4
4
|
export interface AnalyticsHelper {
|
|
@@ -8,6 +8,7 @@ export interface AnalyticsHelper {
|
|
|
8
8
|
recharge?: RechargeAnalyticsHelper;
|
|
9
9
|
ticket?: TicketAnalyticsHelper;
|
|
10
10
|
travel?: TravelAnalyticsHelper;
|
|
11
|
+
healthcare?: HealthcareAnalyticsHelper;
|
|
11
12
|
}
|
|
12
13
|
export interface BillAnalyticsHelper {
|
|
13
14
|
select: (productName: string, connectionNumber: string, category: string, price: number) => Bill.Select;
|
|
@@ -46,3 +47,14 @@ export interface TravelAnalyticsHelper {
|
|
|
46
47
|
customerDetails: (email: string, phoneNumber: string, travellers: Person[]) => Travel.CustomerDetails;
|
|
47
48
|
orderConfirmation: (amountToPay: number, paymentMethod: string) => Travel.OrderConfirmation;
|
|
48
49
|
}
|
|
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, 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
|
+
uploadPrescription: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string) => Healthcare.UploadPrescription;
|
|
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
|
+
search: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, search_query: string) => Healthcare.Search;
|
|
56
|
+
locationPincodeEnter: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, city: string, state: string) => Healthcare.LocationPincodeEnter;
|
|
57
|
+
pageView: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string) => Healthcare.PageView;
|
|
58
|
+
addAddress: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, address_tag: string, subarea: string) => Healthcare.AddAddress;
|
|
59
|
+
obpUploadPrescription: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, rx_file_size: number, no_of_rx_uploaded: number, rx_source: string) => Healthcare.ObpUploadPrescription;
|
|
60
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LocationManagerResponse } from "../../types/LocationManagerResponse";
|
|
2
|
+
import { NativeModuleResponse } from "../NativeModuleResponse";
|
|
3
|
+
export interface LocationModule {
|
|
4
|
+
getPincode: (clientID: string) => Promise<NativeModuleResponse<LocationManagerResponse>>;
|
|
5
|
+
}
|
|
@@ -4,6 +4,7 @@ import { ContactsModule } from "../interfaces/modules/ContactsModule";
|
|
|
4
4
|
import { NativeModuleCallbackManager } from "./NativeModuleCallbackManager";
|
|
5
5
|
import { AnalyticsModule } from "../analytics/interfaces/AnalyticsModule";
|
|
6
6
|
import { SMSModule } from "../interfaces/modules/SMSModule";
|
|
7
|
+
import { LocationModule } from "../interfaces/modules/LocationModule";
|
|
7
8
|
export declare class ModuleManager {
|
|
8
9
|
private moduleMap;
|
|
9
10
|
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
@@ -12,6 +13,7 @@ export declare class ModuleManager {
|
|
|
12
13
|
getContactsModule(): ContactsModule;
|
|
13
14
|
getAnalyticsModule(): AnalyticsModule;
|
|
14
15
|
getSMSModule(): SMSModule;
|
|
16
|
+
getLocationModule(): LocationModule;
|
|
15
17
|
private addModule;
|
|
16
18
|
private getModule;
|
|
17
19
|
}
|
|
@@ -5,6 +5,7 @@ var PermissionsModuleImpl_1 = require("../modules/PermissionsModuleImpl");
|
|
|
5
5
|
var ContactsModuleImpl_1 = require("../modules/ContactsModuleImpl");
|
|
6
6
|
var AnalyticsModuleImpl_1 = require("../modules/AnalyticsModuleImpl");
|
|
7
7
|
var SMSModuleImpl_1 = require("../modules/SMSModuleImpl");
|
|
8
|
+
var LocationModuleImpl_1 = require("../modules/LocationModuleImpl");
|
|
8
9
|
var MODULE_NAME;
|
|
9
10
|
(function (MODULE_NAME) {
|
|
10
11
|
MODULE_NAME[MODULE_NAME["PERMISSION_MODULE"] = 0] = "PERMISSION_MODULE";
|
|
@@ -12,6 +13,7 @@ var MODULE_NAME;
|
|
|
12
13
|
MODULE_NAME[MODULE_NAME["CONTACTS_MODULE"] = 2] = "CONTACTS_MODULE";
|
|
13
14
|
MODULE_NAME[MODULE_NAME["ANALYTICS_MODULE"] = 3] = "ANALYTICS_MODULE";
|
|
14
15
|
MODULE_NAME[MODULE_NAME["SMS_MODULE"] = 4] = "SMS_MODULE";
|
|
16
|
+
MODULE_NAME[MODULE_NAME["LOCATION_MODULE"] = 5] = "LOCATION_MODULE";
|
|
15
17
|
})(MODULE_NAME || (MODULE_NAME = {}));
|
|
16
18
|
var ModuleManager = /** @class */ (function () {
|
|
17
19
|
function ModuleManager(nativeModuleCallbackManager) {
|
|
@@ -21,6 +23,7 @@ var ModuleManager = /** @class */ (function () {
|
|
|
21
23
|
this.addModule(MODULE_NAME.CONTACTS_MODULE, new ContactsModuleImpl_1.ContactsModuleImpl(nativeModuleCallbackManager));
|
|
22
24
|
this.addModule(MODULE_NAME.ANALYTICS_MODULE, new AnalyticsModuleImpl_1.AnalyticsModuleImpl(nativeModuleCallbackManager));
|
|
23
25
|
this.addModule(MODULE_NAME.SMS_MODULE, new SMSModuleImpl_1.SMSModuleImpl(nativeModuleCallbackManager));
|
|
26
|
+
this.addModule(MODULE_NAME.LOCATION_MODULE, new LocationModuleImpl_1.LocationModuleImpl(nativeModuleCallbackManager));
|
|
24
27
|
}
|
|
25
28
|
ModuleManager.prototype.getNavigationModule = function () {
|
|
26
29
|
return this.getModule(MODULE_NAME.NAVIGATION_MODULE);
|
|
@@ -37,6 +40,9 @@ var ModuleManager = /** @class */ (function () {
|
|
|
37
40
|
ModuleManager.prototype.getSMSModule = function () {
|
|
38
41
|
return this.getModule(MODULE_NAME.SMS_MODULE);
|
|
39
42
|
};
|
|
43
|
+
ModuleManager.prototype.getLocationModule = function () {
|
|
44
|
+
return this.getModule(MODULE_NAME.LOCATION_MODULE);
|
|
45
|
+
};
|
|
40
46
|
ModuleManager.prototype.addModule = function (moduleName, nativeModule) {
|
|
41
47
|
this.moduleMap[moduleName] = nativeModule;
|
|
42
48
|
};
|
|
@@ -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 { LocationModule } from "../interfaces/modules/LocationModule";
|
|
5
|
+
import { LocationManagerResponse } from "../types/LocationManagerResponse";
|
|
6
|
+
export declare class LocationModuleImpl extends NativeModule<NativeModuleManager> implements LocationModule {
|
|
7
|
+
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
8
|
+
getPincode(clientID: string): Promise<NativeModuleResponse<LocationManagerResponse>>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.getPincode = 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
|
+
return LocationModuleImpl;
|
|
30
|
+
}(NativeModuleHelper_1.NativeModule));
|
|
31
|
+
exports.LocationModuleImpl = LocationModuleImpl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import EventManager from "../interfaces/EventManager";
|
|
2
2
|
import { BillAnalyticsHelper, CabAnalyticsHelper, FoodDeliveryAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
3
3
|
import { RechargeAnalyticsHelper, TicketAnalyticsHelper, TravelAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
4
|
+
import { HealthcareAnalyticsHelper } from "../analytics/interfaces/AnalyticsHelper";
|
|
4
5
|
export declare class SetupHelper {
|
|
5
6
|
static setUpForBrowser(): void;
|
|
6
7
|
static setupBillAnalyticsForBrowser(): void;
|
|
@@ -16,4 +17,5 @@ export declare class SetupHelper {
|
|
|
16
17
|
static getFoodDeliveryObject(): FoodDeliveryAnalyticsHelper;
|
|
17
18
|
static getRechargeObject(): RechargeAnalyticsHelper;
|
|
18
19
|
static getTicketObject(): TicketAnalyticsHelper;
|
|
20
|
+
static getHealthcareObject(): HealthcareAnalyticsHelper;
|
|
19
21
|
}
|
|
@@ -228,6 +228,37 @@ var SetupHelper = /** @class */ (function () {
|
|
|
228
228
|
},
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
+
SetupHelper.getHealthcareObject = function () {
|
|
232
|
+
return {
|
|
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
|
+
},
|
|
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
|
+
},
|
|
239
|
+
uploadPrescription: function (fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
240
|
+
return new analytics_1.Healthcare.UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name);
|
|
241
|
+
},
|
|
242
|
+
addToCart: function (fk_accountid, fkh_userid, token_id, pincode, product_name, product_id, price, quantity, source) {
|
|
243
|
+
return new analytics_1.Healthcare.AddToCart(fk_accountid, fkh_userid, token_id, pincode, product_name, product_id, price, quantity, source);
|
|
244
|
+
},
|
|
245
|
+
search: function (fk_accountid, fkh_userid, token_id, pincode, search_query) {
|
|
246
|
+
return new analytics_1.Healthcare.Search(fk_accountid, fkh_userid, token_id, pincode, search_query);
|
|
247
|
+
},
|
|
248
|
+
locationPincodeEnter: function (fk_accountid, fkh_userid, token_id, pincode, city, state) {
|
|
249
|
+
return new analytics_1.Healthcare.LocationPincodeEnter(fk_accountid, fkh_userid, token_id, pincode, city, state);
|
|
250
|
+
},
|
|
251
|
+
pageView: function (fk_accountid, fkh_userid, token_id, pincode, page_name) {
|
|
252
|
+
return new analytics_1.Healthcare.PageView(fk_accountid, fkh_userid, token_id, pincode, page_name);
|
|
253
|
+
},
|
|
254
|
+
addAddress: function (fk_accountid, fkh_userid, token_id, pincode, address_tag, subarea) {
|
|
255
|
+
return new analytics_1.Healthcare.AddAddress(fk_accountid, fkh_userid, token_id, pincode, address_tag, subarea);
|
|
256
|
+
},
|
|
257
|
+
obpUploadPrescription: function (fk_accountid, fkh_userid, token_id, pincode, rx_file_size, no_of_rx_uploaded, rx_source) {
|
|
258
|
+
return new analytics_1.Healthcare.ObpUploadPrescription(fk_accountid, fkh_userid, token_id, pincode, rx_file_size, no_of_rx_uploaded, rx_source);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
};
|
|
231
262
|
return SetupHelper;
|
|
232
263
|
}());
|
|
233
264
|
exports.SetupHelper = SetupHelper;
|