@rtsdk/topia 0.19.9 → 0.20.1
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/index.cjs +16 -4
- package/dist/index.js +16 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
47
47
|
PERFORMANCE OF THIS SOFTWARE.
|
|
48
48
|
***************************************************************************** */
|
|
49
49
|
|
|
50
|
+
function __rest(s, e) {
|
|
51
|
+
var t = {};
|
|
52
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
+
t[p[i]] = s[p[i]];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
51
63
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
52
64
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -40030,7 +40042,8 @@ class DroppedAsset extends Asset {
|
|
|
40030
40042
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
40031
40043
|
try {
|
|
40032
40044
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}/${updateType}`, Object.assign({}, payload), this.requestOptions);
|
|
40033
|
-
|
|
40045
|
+
const _c = response.data, { urlSlug: _slug, id: _id } = _c, data = __rest(_c, ["urlSlug", "id"]);
|
|
40046
|
+
Object.assign(this, data);
|
|
40034
40047
|
return response.data;
|
|
40035
40048
|
}
|
|
40036
40049
|
catch (error) {
|
|
@@ -40058,8 +40071,7 @@ class DroppedAsset extends Asset {
|
|
|
40058
40071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40059
40072
|
try {
|
|
40060
40073
|
const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
|
|
40061
|
-
const
|
|
40062
|
-
droppedAssetDetails.urlSlug = this.urlSlug;
|
|
40074
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40063
40075
|
Object.assign(this, droppedAssetDetails);
|
|
40064
40076
|
}
|
|
40065
40077
|
catch (error) {
|
|
@@ -40135,7 +40147,7 @@ class DroppedAsset extends Asset {
|
|
|
40135
40147
|
const filteredParams = removeUndefined(params);
|
|
40136
40148
|
try {
|
|
40137
40149
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}`, filteredParams, this.requestOptions);
|
|
40138
|
-
const
|
|
40150
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40139
40151
|
Object.assign(this, droppedAssetDetails);
|
|
40140
40152
|
}
|
|
40141
40153
|
catch (error) {
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
***************************************************************************** */
|
|
47
47
|
|
|
48
|
+
function __rest(s, e) {
|
|
49
|
+
var t = {};
|
|
50
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
+
t[p] = s[p];
|
|
52
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
+
t[p[i]] = s[p[i]];
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
49
61
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
62
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -40028,7 +40040,8 @@ class DroppedAsset extends Asset {
|
|
|
40028
40040
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
40029
40041
|
try {
|
|
40030
40042
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}/${updateType}`, Object.assign({}, payload), this.requestOptions);
|
|
40031
|
-
|
|
40043
|
+
const _c = response.data, { urlSlug: _slug, id: _id } = _c, data = __rest(_c, ["urlSlug", "id"]);
|
|
40044
|
+
Object.assign(this, data);
|
|
40032
40045
|
return response.data;
|
|
40033
40046
|
}
|
|
40034
40047
|
catch (error) {
|
|
@@ -40056,8 +40069,7 @@ class DroppedAsset extends Asset {
|
|
|
40056
40069
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40057
40070
|
try {
|
|
40058
40071
|
const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
|
|
40059
|
-
const
|
|
40060
|
-
droppedAssetDetails.urlSlug = this.urlSlug;
|
|
40072
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40061
40073
|
Object.assign(this, droppedAssetDetails);
|
|
40062
40074
|
}
|
|
40063
40075
|
catch (error) {
|
|
@@ -40133,7 +40145,7 @@ class DroppedAsset extends Asset {
|
|
|
40133
40145
|
const filteredParams = removeUndefined(params);
|
|
40134
40146
|
try {
|
|
40135
40147
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}`, filteredParams, this.requestOptions);
|
|
40136
|
-
const
|
|
40148
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40137
40149
|
Object.assign(this, droppedAssetDetails);
|
|
40138
40150
|
}
|
|
40139
40151
|
catch (error) {
|
package/package.json
CHANGED