backendless 6.5.6 → 6.5.8

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 CHANGED
@@ -414,10 +414,6 @@ declare module Backendless {
414
414
 
415
415
  get(indexFrom: number, indexTo: number): Promise<Array<JSONValue>>
416
416
 
417
- set(values: Array<JSONValue>): Promise<number>;
418
-
419
- set(value: JSONValue, index: number): Promise<void>;
420
-
421
417
  insertBefore(valueToInsert: JSONValue, anchorValue: JSONValue): Promise<number>;
422
418
 
423
419
  insertAfter(valueToInsert: JSONValue, anchorValue: JSONValue): Promise<number>;
@@ -477,8 +473,6 @@ declare module Backendless {
477
473
 
478
474
  setWithOverwrite(key: string, value: JSONValue, overwrite?: boolean): Promise<boolean>;
479
475
 
480
- add(data: object): Promise<number>;
481
-
482
476
  increment(key: string, count?: number): Promise<number>;
483
477
 
484
478
  decrement(key: string, count?: number): Promise<number>;
@@ -512,10 +506,6 @@ declare module Backendless {
512
506
 
513
507
  getRandomAndDelete(count?: number): Promise<Array<JSONValue>>;
514
508
 
515
- setValue(value: JSONValue): Promise<number>;
516
-
517
- setValues(values: Array<JSONValue>): Promise<number>;
518
-
519
509
  addValue(value: JSONValue): Promise<number>;
520
510
 
521
511
  addValues(values: Array<JSONValue>): Promise<number>;
@@ -567,8 +557,6 @@ declare module Backendless {
567
557
 
568
558
  add(items: Array<SortedSetItem>, options?: SortedSetItemOptionsI): Promise<number>
569
559
 
570
- set(items: Array<SortedSetItem>, options?: SortedSetItemOptionsI): Promise<number>
571
-
572
560
  incrementScore(value: JSONValue, scoreValue: number): Promise<number>
573
561
 
574
562
  decrementScore(value: JSONValue, scoreValue: number): Promise<number>
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 6.5.6
3
+ * Backendless SDK for JavaScript. Version: 6.5.8
4
4
  *
5
5
  * Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -19153,35 +19153,6 @@ var ListStore = /*#__PURE__*/function (_HiveStore) {
19153
19153
  url: this.getBaseURL()
19154
19154
  });
19155
19155
  }
19156
- }, {
19157
- key: "set",
19158
- value: function set(value, index) {
19159
- if (typeof index === 'undefined') {
19160
- if (!value || !Array.isArray(value) || !value.length || !(0, _utils.isHiveValueValid)(value)) {
19161
- throw new Error('Value must be provided and must be a list of valid JSON items.');
19162
- }
19163
-
19164
- return this.app.request.put({
19165
- url: this.getBaseURL(),
19166
- data: value
19167
- });
19168
- }
19169
-
19170
- if (!(0, _utils.isHiveValueValid)(value)) {
19171
- throw new Error('Value must be provided and must be one of types: string, number, boolean, object, array.');
19172
- }
19173
-
19174
- if (typeof index !== 'number' || isNaN(index)) {
19175
- throw new Error('Index must be a number.');
19176
- }
19177
-
19178
- return this.app.request.put({
19179
- url: "".concat(this.getBaseURL(), "/").concat(index),
19180
- data: {
19181
- value: value
19182
- }
19183
- });
19184
- }
19185
19156
  }, {
19186
19157
  key: "length",
19187
19158
  value: function length() {
@@ -19484,22 +19455,6 @@ var MapStore = /*#__PURE__*/function (_HiveStore) {
19484
19455
  }
19485
19456
  });
19486
19457
  }
19487
- }, {
19488
- key: "add",
19489
- value: function add(data) {
19490
- if (!_utils["default"].isObject(data)) {
19491
- throw new Error('Payload must be an object.');
19492
- }
19493
-
19494
- if (!Object.keys(data).length) {
19495
- throw new Error('Provided object must have at least 1 key.');
19496
- }
19497
-
19498
- return this.app.request.put({
19499
- url: "".concat(this.getBaseURL(), "/add"),
19500
- data: data
19501
- });
19502
- }
19503
19458
  }, {
19504
19459
  key: "increment",
19505
19460
  value: function increment(key, count) {
@@ -19643,30 +19598,6 @@ var SetStore = /*#__PURE__*/function (_HiveStore) {
19643
19598
  }
19644
19599
  });
19645
19600
  }
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
19601
  }, {
19671
19602
  key: "addValue",
19672
19603
  value: function addValue(value) {
@@ -19887,43 +19818,6 @@ var SortedSetStore = /*#__PURE__*/function (_HiveStore) {
19887
19818
  }, options)
19888
19819
  });
19889
19820
  }
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
19821
  }, {
19928
19822
  key: "incrementScore",
19929
19823
  value: function incrementScore(value, scoreValue) {