backendless 6.5.6 → 6.5.7
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 +0 -6
- package/dist/backendless.js +1 -62
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/hive/stores/set.js +0 -24
- package/es/hive/stores/sorted-set.js +0 -37
- package/lib/hive/stores/set.js +0 -24
- package/lib/hive/stores/sorted-set.js +0 -37
- package/package.json +1 -1
- package/src/hive/stores/set.js +0 -24
- package/src/hive/stores/sorted-set.js +0 -36
package/backendless.d.ts
CHANGED
|
@@ -512,10 +512,6 @@ declare module Backendless {
|
|
|
512
512
|
|
|
513
513
|
getRandomAndDelete(count?: number): Promise<Array<JSONValue>>;
|
|
514
514
|
|
|
515
|
-
setValue(value: JSONValue): Promise<number>;
|
|
516
|
-
|
|
517
|
-
setValues(values: Array<JSONValue>): Promise<number>;
|
|
518
|
-
|
|
519
515
|
addValue(value: JSONValue): Promise<number>;
|
|
520
516
|
|
|
521
517
|
addValues(values: Array<JSONValue>): Promise<number>;
|
|
@@ -567,8 +563,6 @@ declare module Backendless {
|
|
|
567
563
|
|
|
568
564
|
add(items: Array<SortedSetItem>, options?: SortedSetItemOptionsI): Promise<number>
|
|
569
565
|
|
|
570
|
-
set(items: Array<SortedSetItem>, options?: SortedSetItemOptionsI): Promise<number>
|
|
571
|
-
|
|
572
566
|
incrementScore(value: JSONValue, scoreValue: number): Promise<number>
|
|
573
567
|
|
|
574
568
|
decrementScore(value: JSONValue, scoreValue: number): Promise<number>
|
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 6.5.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 6.5.7
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -19643,30 +19643,6 @@ var SetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
19643
19643
|
}
|
|
19644
19644
|
});
|
|
19645
19645
|
}
|
|
19646
|
-
}, {
|
|
19647
|
-
key: "setValue",
|
|
19648
|
-
value: function setValue(value) {
|
|
19649
|
-
if (!(0, _utils.isHiveValueValid)(value)) {
|
|
19650
|
-
throw new Error('Value must be provided and must be one of types: string, number, boolean, object, array.');
|
|
19651
|
-
}
|
|
19652
|
-
|
|
19653
|
-
return this.app.request.put({
|
|
19654
|
-
url: this.getBaseURL(),
|
|
19655
|
-
data: [value]
|
|
19656
|
-
});
|
|
19657
|
-
}
|
|
19658
|
-
}, {
|
|
19659
|
-
key: "setValues",
|
|
19660
|
-
value: function setValues(values) {
|
|
19661
|
-
if (!values || !Array.isArray(values) || !values.length || !(0, _utils.isHiveValueValid)(values)) {
|
|
19662
|
-
throw new Error('Value must be provided and must be a list of valid JSON items.');
|
|
19663
|
-
}
|
|
19664
|
-
|
|
19665
|
-
return this.app.request.put({
|
|
19666
|
-
url: this.getBaseURL(),
|
|
19667
|
-
data: values
|
|
19668
|
-
});
|
|
19669
|
-
}
|
|
19670
19646
|
}, {
|
|
19671
19647
|
key: "addValue",
|
|
19672
19648
|
value: function addValue(value) {
|
|
@@ -19887,43 +19863,6 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
|
|
|
19887
19863
|
}, options)
|
|
19888
19864
|
});
|
|
19889
19865
|
}
|
|
19890
|
-
}, {
|
|
19891
|
-
key: "set",
|
|
19892
|
-
value: function set(items, options) {
|
|
19893
|
-
if (!items || !Array.isArray(items)) {
|
|
19894
|
-
throw new Error('Items must be provided and must be an array.');
|
|
19895
|
-
}
|
|
19896
|
-
|
|
19897
|
-
if (options !== undefined) {
|
|
19898
|
-
if (!_utils["default"].isObject(options)) {
|
|
19899
|
-
throw new Error('Options must be an object.');
|
|
19900
|
-
}
|
|
19901
|
-
|
|
19902
|
-
var duplicateBehaviour = options.duplicateBehaviour,
|
|
19903
|
-
scoreUpdateMode = options.scoreUpdateMode,
|
|
19904
|
-
resultType = options.resultType;
|
|
19905
|
-
|
|
19906
|
-
if (duplicateBehaviour !== undefined && !['OnlyUpdate', 'AlwaysAdd'].includes(duplicateBehaviour)) {
|
|
19907
|
-
throw new Error('Duplicate Behaviour argument must be one of this values: OnlyUpdate, AlwaysAdd.');
|
|
19908
|
-
}
|
|
19909
|
-
|
|
19910
|
-
if (scoreUpdateMode !== undefined && !['Greater', 'Less'].includes(scoreUpdateMode)) {
|
|
19911
|
-
throw new Error('Score Update Mode argument must be one of this values: Greater, Less.');
|
|
19912
|
-
}
|
|
19913
|
-
|
|
19914
|
-
if (resultType !== undefined && !['NewAdded', 'TotalChanged'].includes(resultType)) {
|
|
19915
|
-
throw new Error('Result Type must be one of this values: NewAdded, TotalChanged.');
|
|
19916
|
-
}
|
|
19917
|
-
} //TODO: Waining for BKNDLSS-28543
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
return this.app.request.put({
|
|
19921
|
-
url: this.getBaseURL(),
|
|
19922
|
-
data: _objectSpread({
|
|
19923
|
-
items: items
|
|
19924
|
-
}, options)
|
|
19925
|
-
});
|
|
19926
|
-
}
|
|
19927
19866
|
}, {
|
|
19928
19867
|
key: "incrementScore",
|
|
19929
19868
|
value: function incrementScore(value, scoreValue) {
|