fk-platform-sdk 1.0.37-beta2 → 1.0.37-beta4
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/Bill.js +19 -22
- package/dist/analytics/Cab.js +13 -11
- package/dist/analytics/EventValidator.js +0 -1
- package/dist/analytics/FoodDelivery.js +26 -27
- package/dist/analytics/FoodDish.js +0 -1
- package/dist/analytics/Healthcare.js +40 -31
- package/dist/analytics/Person.js +0 -1
- package/dist/analytics/Recharge.js +18 -16
- package/dist/analytics/ShowTicket.js +21 -18
- package/dist/analytics/Travel.js +27 -23
- package/dist/analytics/index.js +0 -1
- package/dist/analytics/interfaces/AnalyticsEvent.js +0 -1
- package/dist/analytics/validation/ValidationTypes.js +2 -2
- package/dist/analytics/validation/Validator.js +0 -1
- package/dist/analytics/validation/decorators.js +0 -1
- package/dist/constants/Errors.js +2 -2
- package/dist/errors/FKPlatformError.js +3 -9
- package/dist/index.js +2 -3
- package/dist/interfaces/modules/PermissionsModule.js +0 -1
- package/dist/managers/ModuleManager.js +0 -1
- package/dist/managers/NativeModuleCallbackManager.js +3 -2
- package/dist/managers/NativeModuleHelper.js +0 -1
- package/dist/managers/WindowManager.js +0 -1
- package/dist/modules/AnalyticsModuleImpl.js +3 -9
- package/dist/modules/AppVersionModuleImpl.js +3 -9
- package/dist/modules/AuthModuleImpl.js +3 -9
- package/dist/modules/ContactsModuleImpl.js +3 -9
- package/dist/modules/DownloaderModuleImpl.js +3 -9
- package/dist/modules/FontModuleImpl.js +3 -9
- package/dist/modules/LocationModuleImpl.js +3 -9
- package/dist/modules/NavigationModuleImpl.js +3 -9
- package/dist/modules/PermissionsModuleImpl.js +57 -15
- package/dist/modules/SMSModuleImpl.js +3 -9
- package/dist/private/tracking-setup-index.js +2 -11
- package/dist/setup/SetupHelper.js +0 -1
- package/dist/types/LocationManagerResponse.d.ts +2 -2
- package/dist/types/NativeModuleResponseType.d.ts +1 -1
- package/dist/web/index.js +2 -3
- package/package.json +1 -1
|
@@ -6,12 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.OrderConfirmation = exports.ProceedToPay = exports.AddToCart = exports.Select = void 0;
|
|
10
9
|
var EventValidator_1 = require("./EventValidator");
|
|
11
10
|
var Validator_1 = require("./validation/Validator");
|
|
12
11
|
var decorators_1 = require("./validation/decorators");
|
|
13
12
|
var metadataMap = {};
|
|
14
|
-
var Select =
|
|
13
|
+
var Select = /** @class */ (function () {
|
|
15
14
|
function Select(name, category, time, eventLocation, noOfPeople) {
|
|
16
15
|
this.type = "ShowTicket.Select";
|
|
17
16
|
this.name = name;
|
|
@@ -21,18 +20,19 @@ var Select = exports.Select = /** @class */ (function () {
|
|
|
21
20
|
this.noOfPeople = noOfPeople;
|
|
22
21
|
}
|
|
23
22
|
Select.prototype.getValidator = function () {
|
|
24
|
-
var invalidValues =
|
|
23
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "Select");
|
|
25
24
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
26
25
|
};
|
|
27
26
|
__decorate([
|
|
28
|
-
|
|
27
|
+
decorators_1.NonEmpty(metadataMap, "Select")
|
|
29
28
|
], Select.prototype, "name", void 0);
|
|
30
29
|
__decorate([
|
|
31
|
-
|
|
30
|
+
decorators_1.NonEmpty(metadataMap, "Select")
|
|
32
31
|
], Select.prototype, "category", void 0);
|
|
33
32
|
return Select;
|
|
34
33
|
}());
|
|
35
|
-
|
|
34
|
+
exports.Select = Select;
|
|
35
|
+
var AddToCart = /** @class */ (function () {
|
|
36
36
|
function AddToCart(ticketClass, price, eventTime) {
|
|
37
37
|
this.type = "ShowTicket.AddToCart";
|
|
38
38
|
this.ticketClass = ticketClass;
|
|
@@ -40,18 +40,19 @@ var AddToCart = exports.AddToCart = /** @class */ (function () {
|
|
|
40
40
|
this.eventTime = eventTime;
|
|
41
41
|
}
|
|
42
42
|
AddToCart.prototype.getValidator = function () {
|
|
43
|
-
var invalidValues =
|
|
43
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "AddToCart");
|
|
44
44
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
45
45
|
};
|
|
46
46
|
__decorate([
|
|
47
|
-
|
|
47
|
+
decorators_1.NonEmpty(metadataMap, "AddToCart")
|
|
48
48
|
], AddToCart.prototype, "ticketClass", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
|
|
50
|
+
decorators_1.Positive(metadataMap, "AddToCart")
|
|
51
51
|
], AddToCart.prototype, "price", void 0);
|
|
52
52
|
return AddToCart;
|
|
53
53
|
}());
|
|
54
|
-
|
|
54
|
+
exports.AddToCart = AddToCart;
|
|
55
|
+
var ProceedToPay = /** @class */ (function () {
|
|
55
56
|
function ProceedToPay(amountToPay, offerAmount, noOfTickets, bookingCharge) {
|
|
56
57
|
this.type = "ShowTicket.ProceedToPay";
|
|
57
58
|
this.amountToPay = amountToPay;
|
|
@@ -60,35 +61,37 @@ var ProceedToPay = exports.ProceedToPay = /** @class */ (function () {
|
|
|
60
61
|
this.bookingCharge = bookingCharge;
|
|
61
62
|
}
|
|
62
63
|
ProceedToPay.prototype.getValidator = function () {
|
|
63
|
-
var invalidValues =
|
|
64
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPay");
|
|
64
65
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
65
66
|
};
|
|
66
67
|
__decorate([
|
|
67
|
-
|
|
68
|
+
decorators_1.Positive(metadataMap, "ProceedToPay")
|
|
68
69
|
], ProceedToPay.prototype, "amountToPay", void 0);
|
|
69
70
|
__decorate([
|
|
70
|
-
|
|
71
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
71
72
|
], ProceedToPay.prototype, "offerAmount", void 0);
|
|
72
73
|
__decorate([
|
|
73
|
-
|
|
74
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
74
75
|
], ProceedToPay.prototype, "noOfTickets", void 0);
|
|
75
76
|
__decorate([
|
|
76
|
-
|
|
77
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
77
78
|
], ProceedToPay.prototype, "bookingCharge", void 0);
|
|
78
79
|
return ProceedToPay;
|
|
79
80
|
}());
|
|
80
|
-
|
|
81
|
+
exports.ProceedToPay = ProceedToPay;
|
|
82
|
+
var OrderConfirmation = /** @class */ (function () {
|
|
81
83
|
function OrderConfirmation(amountToPay, paymentMethod) {
|
|
82
84
|
this.type = "ShowTicket.OrderConfirmation";
|
|
83
85
|
this.amountToPay = amountToPay;
|
|
84
86
|
this.paymentMethod = paymentMethod;
|
|
85
87
|
}
|
|
86
88
|
OrderConfirmation.prototype.getValidator = function () {
|
|
87
|
-
var invalidValues =
|
|
89
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "OrderConfirmation");
|
|
88
90
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
89
91
|
};
|
|
90
92
|
__decorate([
|
|
91
|
-
|
|
93
|
+
decorators_1.Positive(metadataMap, "OrderConfirmation")
|
|
92
94
|
], OrderConfirmation.prototype, "amountToPay", void 0);
|
|
93
95
|
return OrderConfirmation;
|
|
94
96
|
}());
|
|
97
|
+
exports.OrderConfirmation = OrderConfirmation;
|
package/dist/analytics/Travel.js
CHANGED
|
@@ -6,12 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.OrderConfirmation = exports.CustomerDetails = exports.ProceedToPay = exports.Select = exports.Search = void 0;
|
|
10
9
|
var EventValidator_1 = require("./EventValidator");
|
|
11
10
|
var decorators_1 = require("./validation/decorators");
|
|
12
11
|
var Validator_1 = require("./validation/Validator");
|
|
13
12
|
var metadataMap = {};
|
|
14
|
-
var Search =
|
|
13
|
+
var Search = /** @class */ (function () {
|
|
15
14
|
function Search(fromLocation, toLocation, date, roundTrip, travellerCount) {
|
|
16
15
|
this.type = "Travel.Search";
|
|
17
16
|
this.fromLocation = fromLocation;
|
|
@@ -21,21 +20,22 @@ var Search = exports.Search = /** @class */ (function () {
|
|
|
21
20
|
this.travellerCount = travellerCount;
|
|
22
21
|
}
|
|
23
22
|
Search.prototype.getValidator = function () {
|
|
24
|
-
var invalidValues =
|
|
23
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "Search");
|
|
25
24
|
if (!this.date || this.date.length === 0) {
|
|
26
25
|
invalidValues.push("date array should have atleast 1 value");
|
|
27
26
|
}
|
|
28
27
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
29
28
|
};
|
|
30
29
|
__decorate([
|
|
31
|
-
|
|
30
|
+
decorators_1.NonEmpty(metadataMap, "Search")
|
|
32
31
|
], Search.prototype, "fromLocation", void 0);
|
|
33
32
|
__decorate([
|
|
34
|
-
|
|
33
|
+
decorators_1.NonNegative(metadataMap, "Search")
|
|
35
34
|
], Search.prototype, "travellerCount", void 0);
|
|
36
35
|
return Search;
|
|
37
36
|
}());
|
|
38
|
-
|
|
37
|
+
exports.Search = Search;
|
|
38
|
+
var Select = /** @class */ (function () {
|
|
39
39
|
function Select(name, category, price) {
|
|
40
40
|
this.type = "Travel.Select";
|
|
41
41
|
this.name = name;
|
|
@@ -43,21 +43,22 @@ var Select = exports.Select = /** @class */ (function () {
|
|
|
43
43
|
this.price = price;
|
|
44
44
|
}
|
|
45
45
|
Select.prototype.getValidator = function () {
|
|
46
|
-
var invalidValues =
|
|
46
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "Select");
|
|
47
47
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
48
48
|
};
|
|
49
49
|
__decorate([
|
|
50
|
-
|
|
50
|
+
decorators_1.NonEmpty(metadataMap, "Select")
|
|
51
51
|
], Select.prototype, "name", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
|
|
53
|
+
decorators_1.NonEmpty(metadataMap, "Select")
|
|
54
54
|
], Select.prototype, "category", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
|
|
56
|
+
decorators_1.Positive(metadataMap, "Select")
|
|
57
57
|
], Select.prototype, "price", void 0);
|
|
58
58
|
return Select;
|
|
59
59
|
}());
|
|
60
|
-
|
|
60
|
+
exports.Select = Select;
|
|
61
|
+
var ProceedToPay = /** @class */ (function () {
|
|
61
62
|
function ProceedToPay(amountToPay, offerAmount, bookingCharge, vasCharge) {
|
|
62
63
|
this.type = "Travel.ProceedToPay";
|
|
63
64
|
this.amountToPay = amountToPay;
|
|
@@ -66,24 +67,25 @@ var ProceedToPay = exports.ProceedToPay = /** @class */ (function () {
|
|
|
66
67
|
this.vasCharge = vasCharge;
|
|
67
68
|
}
|
|
68
69
|
ProceedToPay.prototype.getValidator = function () {
|
|
69
|
-
var invalidValues =
|
|
70
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPay");
|
|
70
71
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
71
72
|
};
|
|
72
73
|
__decorate([
|
|
73
|
-
|
|
74
|
+
decorators_1.Positive(metadataMap, "ProceedToPay")
|
|
74
75
|
], ProceedToPay.prototype, "amountToPay", void 0);
|
|
75
76
|
__decorate([
|
|
76
|
-
|
|
77
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
77
78
|
], ProceedToPay.prototype, "offerAmount", void 0);
|
|
78
79
|
__decorate([
|
|
79
|
-
|
|
80
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
80
81
|
], ProceedToPay.prototype, "bookingCharge", void 0);
|
|
81
82
|
__decorate([
|
|
82
|
-
|
|
83
|
+
decorators_1.NonNegative(metadataMap, "ProceedToPay")
|
|
83
84
|
], ProceedToPay.prototype, "vasCharge", void 0);
|
|
84
85
|
return ProceedToPay;
|
|
85
86
|
}());
|
|
86
|
-
|
|
87
|
+
exports.ProceedToPay = ProceedToPay;
|
|
88
|
+
var CustomerDetails = /** @class */ (function () {
|
|
87
89
|
function CustomerDetails(email, phoneNumber, travellers) {
|
|
88
90
|
this.type = "Travel.CustomerDetails";
|
|
89
91
|
this.email = email;
|
|
@@ -91,32 +93,34 @@ var CustomerDetails = exports.CustomerDetails = /** @class */ (function () {
|
|
|
91
93
|
this.traveller = travellers;
|
|
92
94
|
}
|
|
93
95
|
CustomerDetails.prototype.getValidator = function () {
|
|
94
|
-
var invalidValues =
|
|
96
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "CustomerDetails");
|
|
95
97
|
if (!this.traveller || this.traveller.length === 0) {
|
|
96
98
|
invalidValues.push("traveller list should not be empty");
|
|
97
99
|
}
|
|
98
100
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
99
101
|
};
|
|
100
102
|
__decorate([
|
|
101
|
-
|
|
103
|
+
decorators_1.NonEmpty(metadataMap, "CustomerDetails")
|
|
102
104
|
], CustomerDetails.prototype, "email", void 0);
|
|
103
105
|
__decorate([
|
|
104
|
-
|
|
106
|
+
decorators_1.NonEmpty(metadataMap, "CustomerDetails")
|
|
105
107
|
], CustomerDetails.prototype, "phoneNumber", void 0);
|
|
106
108
|
return CustomerDetails;
|
|
107
109
|
}());
|
|
108
|
-
|
|
110
|
+
exports.CustomerDetails = CustomerDetails;
|
|
111
|
+
var OrderConfirmation = /** @class */ (function () {
|
|
109
112
|
function OrderConfirmation(orderAmount, paymentMethod) {
|
|
110
113
|
this.type = "Travel.OrderConfirmation";
|
|
111
114
|
this.orderAmount = orderAmount;
|
|
112
115
|
this.paymentMethod = paymentMethod;
|
|
113
116
|
}
|
|
114
117
|
OrderConfirmation.prototype.getValidator = function () {
|
|
115
|
-
var invalidValues =
|
|
118
|
+
var invalidValues = Validator_1.validate(metadataMap, this, "OrderConfirmation");
|
|
116
119
|
return new EventValidator_1.EventValidator(invalidValues);
|
|
117
120
|
};
|
|
118
121
|
__decorate([
|
|
119
|
-
|
|
122
|
+
decorators_1.Positive(metadataMap, "OrderConfirmation")
|
|
120
123
|
], OrderConfirmation.prototype, "orderAmount", void 0);
|
|
121
124
|
return OrderConfirmation;
|
|
122
125
|
}());
|
|
126
|
+
exports.OrderConfirmation = OrderConfirmation;
|
package/dist/analytics/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Healthcare = exports.Travel = exports.Ticket = exports.Recharge = exports.FoodDelivery = exports.Cab = exports.Bill = void 0;
|
|
4
3
|
var Travel = require("./Travel");
|
|
5
4
|
exports.Travel = Travel;
|
|
6
5
|
var Cab = require("./Cab");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
var ValidationTypes = exports.ValidationTypes = /** @class */ (function () {
|
|
3
|
+
var ValidationTypes = /** @class */ (function () {
|
|
5
4
|
function ValidationTypes() {
|
|
6
5
|
}
|
|
7
6
|
ValidationTypes.POSITIVE = "Positive";
|
|
@@ -10,3 +9,4 @@ var ValidationTypes = exports.ValidationTypes = /** @class */ (function () {
|
|
|
10
9
|
ValidationTypes.NON_NULL = "NonNull";
|
|
11
10
|
return ValidationTypes;
|
|
12
11
|
}());
|
|
12
|
+
exports.ValidationTypes = ValidationTypes;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NonNull = exports.NonNegative = exports.Positive = exports.NonEmpty = void 0;
|
|
4
3
|
var ValidationTypes_1 = require("./ValidationTypes");
|
|
5
4
|
/**
|
|
6
5
|
* Checks that the string should not be empty
|
package/dist/constants/Errors.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
var Errors = exports.Errors = /** @class */ (function () {
|
|
3
|
+
var Errors = /** @class */ (function () {
|
|
5
4
|
function Errors() {
|
|
6
5
|
}
|
|
7
6
|
Errors.MESSAGE_AUTH_ERROR = "Method called before authorization, make sure platform is available and" +
|
|
@@ -11,3 +10,4 @@ var Errors = exports.Errors = /** @class */ (function () {
|
|
|
11
10
|
Errors.NATIVE_MODULES_MISSING = "Native modules are missing, make sure you are inside Flipkart app and platform is available";
|
|
12
11
|
return Errors;
|
|
13
12
|
}());
|
|
13
|
+
exports.Errors = Errors;
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FKPlatformError = void 0;
|
|
19
13
|
var FKPlatformError = /** @class */ (function (_super) {
|
|
20
14
|
__extends(FKPlatformError, _super);
|
|
21
15
|
function FKPlatformError(message) {
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FKPlatformError = exports.Scope = void 0;
|
|
4
3
|
var FKPlatformError_1 = require("./errors/FKPlatformError");
|
|
5
|
-
|
|
4
|
+
exports.FKPlatformError = FKPlatformError_1.FKPlatformError;
|
|
6
5
|
var FKPlatform_1 = require("./FKPlatform");
|
|
7
6
|
var SetupHelper_1 = require("./setup/SetupHelper");
|
|
8
7
|
var WindowManager_1 = require("./managers/WindowManager");
|
|
9
8
|
var react_native_1 = require("react-native");
|
|
10
9
|
var PermissionsModule_1 = require("./interfaces/modules/PermissionsModule");
|
|
11
|
-
|
|
10
|
+
exports.Scope = PermissionsModule_1.Scope;
|
|
12
11
|
if (WindowManager_1.WindowManager.isBrowser()) {
|
|
13
12
|
throw new FKPlatformError_1.FKPlatformError("React Native Environment not detected. Incase of browser, import from fk-platform-sdk/web");
|
|
14
13
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModuleManager = void 0;
|
|
4
3
|
var NavigationModuleImpl_1 = require("../modules/NavigationModuleImpl");
|
|
5
4
|
var PermissionsModuleImpl_1 = require("../modules/PermissionsModuleImpl");
|
|
6
5
|
var ContactsModuleImpl_1 = require("../modules/ContactsModuleImpl");
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NativeModuleCallbackManager = void 0;
|
|
4
3
|
var WindowManager_1 = require("./WindowManager");
|
|
5
4
|
var tcs_instanceqm_1 = require("tcs-instanceqm");
|
|
6
|
-
var NativeModuleCallbackManager =
|
|
5
|
+
var NativeModuleCallbackManager = /** @class */ (function () {
|
|
7
6
|
function NativeModuleCallbackManager() {
|
|
8
7
|
var _this = this;
|
|
9
8
|
this.nativeModuleResolve = function (response) {
|
|
@@ -34,6 +33,7 @@ var NativeModuleCallbackManager = exports.NativeModuleCallbackManager = /** @cla
|
|
|
34
33
|
moduleInvoker(newRequestId);
|
|
35
34
|
return new Promise(function (resolve, reject) {
|
|
36
35
|
tcs_1.getResultAsync().then(function (response) {
|
|
36
|
+
console.log("yee2", response);
|
|
37
37
|
resolve({
|
|
38
38
|
grantToken: response.grantToken,
|
|
39
39
|
result: response.result,
|
|
@@ -63,3 +63,4 @@ var NativeModuleCallbackManager = exports.NativeModuleCallbackManager = /** @cla
|
|
|
63
63
|
NativeModuleCallbackManager.callbackId = 1;
|
|
64
64
|
return NativeModuleCallbackManager;
|
|
65
65
|
}());
|
|
66
|
+
exports.NativeModuleCallbackManager = NativeModuleCallbackManager;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NativeModule = exports.NativeModuleHelper = void 0;
|
|
4
3
|
var WindowManager_1 = require("./WindowManager");
|
|
5
4
|
var Errors_1 = require("../constants/Errors");
|
|
6
5
|
var FKPlatformError_1 = require("../errors/FKPlatformError");
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AnalyticsModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var AnalyticsModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(AnalyticsModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AppVersionModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var AppVersionModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(AppVersionModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AuthModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var AuthModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(AuthModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ContactsModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var ContactsModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(ContactsModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DownloaderModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var DownloaderModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(DownloaderModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.FontModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var FontModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(FontModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.LocationModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var LocationModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(LocationModuleImpl, _super);
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
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]; };
|
|
9
6
|
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
7
|
extendStatics(d, b);
|
|
13
8
|
function __() { this.constructor = d; }
|
|
14
9
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
10
|
};
|
|
16
11
|
})();
|
|
17
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.NavigationModuleImpl = void 0;
|
|
19
13
|
var NativeModuleHelper_1 = require("../managers/NativeModuleHelper");
|
|
20
14
|
var NavigationModuleImpl = /** @class */ (function (_super) {
|
|
21
15
|
__extends(NavigationModuleImpl, _super);
|