backendless 6.7.0 → 6.7.1-dev.2
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/backendless.d.ts +5 -0
- package/dist/backendless.js +20966 -23929
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/bl/constants.js +0 -2
- package/es/bl/custom-services.js +40 -65
- package/es/bl/events.js +30 -52
- package/es/bl/index.js +3 -9
- package/es/cache/index.js +125 -189
- package/es/commerce/index.js +78 -119
- package/es/counters/counter.js +0 -8
- package/es/counters/index.js +171 -258
- package/es/data/data-query-builder.js +2 -39
- package/es/data/geo/geo-constructor.js +5 -26
- package/es/data/geo/geo-json-parser.js +0 -7
- package/es/data/geo/geometry.js +4 -13
- package/es/data/geo/linestring.js +4 -21
- package/es/data/geo/point.js +4 -22
- package/es/data/geo/polygon.js +4 -30
- package/es/data/geo/spatial-reference-system.js +1 -7
- package/es/data/geo/wkt-parser.js +0 -10
- package/es/data/geo/wkt-to-geojson.js +4 -44
- package/es/data/group-query-builder.js +0 -23
- package/es/data/index.js +17 -54
- package/es/data/json-update-builder.js +0 -18
- package/es/data/load-relations-query-builder.js +0 -16
- package/es/data/persmission.js +0 -16
- package/es/data/rt-handlers.js +1 -46
- package/es/data/store.js +316 -518
- package/es/decorators/deprecated.js +2 -5
- package/es/decorators/index.js +0 -2
- package/es/device/index.js +3 -8
- package/es/expression.js +29 -0
- package/es/files/index.js +354 -493
- package/es/files/persmission.js +0 -15
- package/es/files/utils.js +32 -55
- package/es/hive/index.js +1 -13
- package/es/hive/stores/base-store.js +14 -50
- package/es/hive/stores/index.js +0 -10
- package/es/hive/stores/key-value.js +4 -37
- package/es/hive/stores/list.js +0 -32
- package/es/hive/stores/map.js +0 -34
- package/es/hive/stores/set.js +0 -29
- package/es/hive/stores/sorted-set.js +19 -94
- package/es/hive/utils.js +0 -2
- package/es/index.js +51 -71
- package/es/local-cache/index.js +0 -10
- package/es/local-cache/local-storage.js +1 -9
- package/es/local-cache/virtual-storage.js +0 -6
- package/es/logging/index.js +21 -46
- package/es/logging/logger.js +0 -6
- package/es/management/data.js +0 -8
- package/es/management/index.js +3 -7
- package/es/messaging/channel/index.js +0 -27
- package/es/messaging/helpers/body-parts.js +3 -6
- package/es/messaging/helpers/delivery-options.js +3 -6
- package/es/messaging/helpers/email-envelope.js +13 -25
- package/es/messaging/helpers/index.js +10 -16
- package/es/messaging/helpers/publish-options.js +3 -6
- package/es/messaging/index.js +213 -317
- package/es/persmission.js +7 -16
- package/es/request/index.js +2 -16
- package/es/rso/connection.js +3 -34
- package/es/rso/index.js +0 -7
- package/es/rt.js +21 -52
- package/es/unit-of-work/constants.js +1 -1
- package/es/unit-of-work/index.js +27 -145
- package/es/unit-of-work/json-adapter.js +14 -35
- package/es/unit-of-work/op-result-value-reference.js +1 -11
- package/es/unit-of-work/op-result.js +2 -13
- package/es/urls.js +18 -15
- package/es/user-agent.js +0 -7
- package/es/users/index.js +345 -552
- package/es/users/roles.js +79 -128
- package/es/users/social/container.js +0 -16
- package/es/users/social/index.js +166 -250
- package/es/users/user.js +2 -9
- package/es/users/utils.js +0 -3
- package/es/utils.js +0 -17
- package/lib/bl/constants.js +0 -2
- package/lib/bl/custom-services.js +40 -65
- package/lib/bl/events.js +30 -52
- package/lib/bl/index.js +3 -9
- package/lib/cache/index.js +125 -189
- package/lib/commerce/index.js +78 -119
- package/lib/counters/counter.js +0 -8
- package/lib/counters/index.js +171 -258
- package/lib/data/data-query-builder.js +2 -39
- package/lib/data/geo/geo-constructor.js +5 -26
- package/lib/data/geo/geo-json-parser.js +0 -7
- package/lib/data/geo/geometry.js +4 -13
- package/lib/data/geo/linestring.js +4 -21
- package/lib/data/geo/point.js +4 -22
- package/lib/data/geo/polygon.js +4 -30
- package/lib/data/geo/spatial-reference-system.js +1 -7
- package/lib/data/geo/wkt-parser.js +0 -10
- package/lib/data/geo/wkt-to-geojson.js +4 -44
- package/lib/data/group-query-builder.js +0 -23
- package/lib/data/index.js +17 -54
- package/lib/data/json-update-builder.js +0 -18
- package/lib/data/load-relations-query-builder.js +0 -16
- package/lib/data/persmission.js +0 -16
- package/lib/data/rt-handlers.js +1 -46
- package/lib/data/store.js +316 -518
- package/lib/decorators/deprecated.js +2 -5
- package/lib/decorators/index.js +0 -2
- package/lib/device/index.js +3 -8
- package/lib/expression.js +29 -0
- package/lib/files/index.js +354 -493
- package/lib/files/persmission.js +0 -15
- package/lib/files/utils.js +32 -55
- package/lib/hive/index.js +1 -13
- package/lib/hive/stores/base-store.js +14 -50
- package/lib/hive/stores/index.js +0 -10
- package/lib/hive/stores/key-value.js +4 -37
- package/lib/hive/stores/list.js +0 -32
- package/lib/hive/stores/map.js +0 -34
- package/lib/hive/stores/set.js +0 -29
- package/lib/hive/stores/sorted-set.js +19 -94
- package/lib/hive/utils.js +0 -2
- package/lib/index.js +51 -71
- package/lib/local-cache/index.js +0 -10
- package/lib/local-cache/local-storage.js +1 -9
- package/lib/local-cache/virtual-storage.js +0 -6
- package/lib/logging/index.js +21 -46
- package/lib/logging/logger.js +0 -6
- package/lib/management/data.js +0 -8
- package/lib/management/index.js +3 -7
- package/lib/messaging/channel/index.js +0 -27
- package/lib/messaging/helpers/body-parts.js +3 -6
- package/lib/messaging/helpers/delivery-options.js +3 -6
- package/lib/messaging/helpers/email-envelope.js +13 -25
- package/lib/messaging/helpers/index.js +10 -16
- package/lib/messaging/helpers/publish-options.js +3 -6
- package/lib/messaging/index.js +213 -317
- package/lib/persmission.js +7 -16
- package/lib/request/index.js +2 -16
- package/lib/rso/connection.js +3 -34
- package/lib/rso/index.js +0 -7
- package/lib/rt.js +21 -52
- package/lib/unit-of-work/constants.js +1 -1
- package/lib/unit-of-work/index.js +27 -145
- package/lib/unit-of-work/json-adapter.js +14 -35
- package/lib/unit-of-work/op-result-value-reference.js +1 -11
- package/lib/unit-of-work/op-result.js +2 -13
- package/lib/urls.js +18 -15
- package/lib/user-agent.js +0 -7
- package/lib/users/index.js +345 -552
- package/lib/users/roles.js +79 -128
- package/lib/users/social/container.js +0 -16
- package/lib/users/social/index.js +166 -250
- package/lib/users/user.js +2 -9
- package/lib/users/utils.js +0 -3
- package/lib/utils.js +0 -17
- package/package.json +16 -16
- package/src/data/store.js +3 -1
- package/src/expression.js +16 -0
- package/src/files/utils.js +1 -1
- package/src/index.js +5 -0
package/es/commerce/index.js
CHANGED
|
@@ -1,74 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
|
-
|
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
|
-
|
|
18
12
|
var Commerce = /*#__PURE__*/function () {
|
|
19
13
|
function Commerce(app) {
|
|
20
14
|
(0, _classCallCheck2["default"])(this, Commerce);
|
|
21
15
|
this.app = app;
|
|
22
16
|
}
|
|
23
|
-
|
|
24
17
|
(0, _createClass2["default"])(Commerce, [{
|
|
25
18
|
key: "validatePlayPurchase",
|
|
26
19
|
value: function () {
|
|
27
20
|
var _validatePlayPurchase = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(packageName, productId, token) {
|
|
28
21
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
29
|
-
while (1) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
case 6:
|
|
56
|
-
return _context.abrupt("return", this.app.request.get({
|
|
57
|
-
url: this.app.urls.commerceValidate(packageName, productId, token)
|
|
58
|
-
}));
|
|
59
|
-
|
|
60
|
-
case 7:
|
|
61
|
-
case "end":
|
|
62
|
-
return _context.stop();
|
|
63
|
-
}
|
|
22
|
+
while (1) switch (_context.prev = _context.next) {
|
|
23
|
+
case 0:
|
|
24
|
+
if (!(!packageName || typeof packageName !== 'string')) {
|
|
25
|
+
_context.next = 2;
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
throw new Error('Package Name must be provided and must be a string.');
|
|
29
|
+
case 2:
|
|
30
|
+
if (!(!productId || typeof productId !== 'string')) {
|
|
31
|
+
_context.next = 4;
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
throw new Error('Product Id must be provided and must be a string.');
|
|
35
|
+
case 4:
|
|
36
|
+
if (!(!token || typeof token !== 'string')) {
|
|
37
|
+
_context.next = 6;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
throw new Error('Token must be provided and must be a string.');
|
|
41
|
+
case 6:
|
|
42
|
+
return _context.abrupt("return", this.app.request.get({
|
|
43
|
+
url: this.app.urls.commerceValidate(packageName, productId, token)
|
|
44
|
+
}));
|
|
45
|
+
case 7:
|
|
46
|
+
case "end":
|
|
47
|
+
return _context.stop();
|
|
64
48
|
}
|
|
65
49
|
}, _callee, this);
|
|
66
50
|
}));
|
|
67
|
-
|
|
68
51
|
function validatePlayPurchase(_x, _x2, _x3) {
|
|
69
52
|
return _validatePlayPurchase.apply(this, arguments);
|
|
70
53
|
}
|
|
71
|
-
|
|
72
54
|
return validatePlayPurchase;
|
|
73
55
|
}()
|
|
74
56
|
}, {
|
|
@@ -76,49 +58,38 @@ var Commerce = /*#__PURE__*/function () {
|
|
|
76
58
|
value: function () {
|
|
77
59
|
var _cancelPlaySubscription = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(packageName, subscriptionId, token) {
|
|
78
60
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
79
|
-
while (1) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
case 6:
|
|
106
|
-
return _context2.abrupt("return", this.app.request.post({
|
|
107
|
-
url: this.app.urls.commerceSubCancel(packageName, subscriptionId, token)
|
|
108
|
-
}));
|
|
109
|
-
|
|
110
|
-
case 7:
|
|
111
|
-
case "end":
|
|
112
|
-
return _context2.stop();
|
|
113
|
-
}
|
|
61
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
if (!(!packageName || typeof packageName !== 'string')) {
|
|
64
|
+
_context2.next = 2;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
throw new Error('Package Name must be provided and must be a string.');
|
|
68
|
+
case 2:
|
|
69
|
+
if (!(!subscriptionId || typeof subscriptionId !== 'string')) {
|
|
70
|
+
_context2.next = 4;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
throw new Error('Subscription Id must be provided and must be a string.');
|
|
74
|
+
case 4:
|
|
75
|
+
if (!(!token || typeof token !== 'string')) {
|
|
76
|
+
_context2.next = 6;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
throw new Error('Token must be provided and must be a string.');
|
|
80
|
+
case 6:
|
|
81
|
+
return _context2.abrupt("return", this.app.request.post({
|
|
82
|
+
url: this.app.urls.commerceSubCancel(packageName, subscriptionId, token)
|
|
83
|
+
}));
|
|
84
|
+
case 7:
|
|
85
|
+
case "end":
|
|
86
|
+
return _context2.stop();
|
|
114
87
|
}
|
|
115
88
|
}, _callee2, this);
|
|
116
89
|
}));
|
|
117
|
-
|
|
118
90
|
function cancelPlaySubscription(_x4, _x5, _x6) {
|
|
119
91
|
return _cancelPlaySubscription.apply(this, arguments);
|
|
120
92
|
}
|
|
121
|
-
|
|
122
93
|
return cancelPlaySubscription;
|
|
123
94
|
}()
|
|
124
95
|
}, {
|
|
@@ -126,53 +97,41 @@ var Commerce = /*#__PURE__*/function () {
|
|
|
126
97
|
value: function () {
|
|
127
98
|
var _getPlaySubscriptionStatus = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(packageName, subscriptionId, token) {
|
|
128
99
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
129
|
-
while (1) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
case 6:
|
|
156
|
-
return _context3.abrupt("return", this.app.request.get({
|
|
157
|
-
url: this.app.urls.commerceSubStatus(packageName, subscriptionId, token)
|
|
158
|
-
}));
|
|
159
|
-
|
|
160
|
-
case 7:
|
|
161
|
-
case "end":
|
|
162
|
-
return _context3.stop();
|
|
163
|
-
}
|
|
100
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
101
|
+
case 0:
|
|
102
|
+
if (!(!packageName || typeof packageName !== 'string')) {
|
|
103
|
+
_context3.next = 2;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
throw new Error('Package Name must be provided and must be a string.');
|
|
107
|
+
case 2:
|
|
108
|
+
if (!(!subscriptionId || typeof subscriptionId !== 'string')) {
|
|
109
|
+
_context3.next = 4;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
throw new Error('Subscription Id must be provided and must be a string.');
|
|
113
|
+
case 4:
|
|
114
|
+
if (!(!token || typeof token !== 'string')) {
|
|
115
|
+
_context3.next = 6;
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
throw new Error('Token must be provided and must be a string.');
|
|
119
|
+
case 6:
|
|
120
|
+
return _context3.abrupt("return", this.app.request.get({
|
|
121
|
+
url: this.app.urls.commerceSubStatus(packageName, subscriptionId, token)
|
|
122
|
+
}));
|
|
123
|
+
case 7:
|
|
124
|
+
case "end":
|
|
125
|
+
return _context3.stop();
|
|
164
126
|
}
|
|
165
127
|
}, _callee3, this);
|
|
166
128
|
}));
|
|
167
|
-
|
|
168
129
|
function getPlaySubscriptionStatus(_x7, _x8, _x9) {
|
|
169
130
|
return _getPlaySubscriptionStatus.apply(this, arguments);
|
|
170
131
|
}
|
|
171
|
-
|
|
172
132
|
return getPlaySubscriptionStatus;
|
|
173
133
|
}()
|
|
174
134
|
}]);
|
|
175
135
|
return Commerce;
|
|
176
136
|
}();
|
|
177
|
-
|
|
178
137
|
exports["default"] = Commerce;
|
package/es/counters/counter.js
CHANGED
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
10
|
var Counter = /*#__PURE__*/function () {
|
|
15
11
|
function Counter(name, counters) {
|
|
16
12
|
(0, _classCallCheck2["default"])(this, Counter);
|
|
17
|
-
|
|
18
13
|
if (!name || typeof name !== 'string') {
|
|
19
14
|
throw new Error('Counter Name must be non empty String');
|
|
20
15
|
}
|
|
21
|
-
|
|
22
16
|
this.name = name;
|
|
23
17
|
this.counters = counters;
|
|
24
18
|
}
|
|
25
|
-
|
|
26
19
|
(0, _createClass2["default"])(Counter, [{
|
|
27
20
|
key: "incrementAndGet",
|
|
28
21
|
value: function incrementAndGet() {
|
|
@@ -71,5 +64,4 @@ var Counter = /*#__PURE__*/function () {
|
|
|
71
64
|
}]);
|
|
72
65
|
return Counter;
|
|
73
66
|
}();
|
|
74
|
-
|
|
75
67
|
exports["default"] = Counter;
|