@panneau/data 3.0.286 → 3.0.289
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/es/index.js +10 -4
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1231,15 +1231,21 @@ var ResourcesApi = /*#__PURE__*/function () {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
}, {
|
|
1233
1233
|
key: "clone",
|
|
1234
|
-
value: function clone(resource,
|
|
1235
|
-
|
|
1234
|
+
value: function clone(resource, id) {
|
|
1235
|
+
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
1236
|
+
return this.api.requestPost(this.resourceRoute(resource, 'clone', {
|
|
1237
|
+
id: id
|
|
1238
|
+
}), data, {
|
|
1236
1239
|
withCredentials: true
|
|
1237
1240
|
});
|
|
1238
1241
|
}
|
|
1239
1242
|
}, {
|
|
1240
1243
|
key: "restore",
|
|
1241
|
-
value: function restore(resource,
|
|
1242
|
-
|
|
1244
|
+
value: function restore(resource, id) {
|
|
1245
|
+
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
1246
|
+
return this.api.requestPost(this.resourceRoute(resource, 'restore', {
|
|
1247
|
+
id: id
|
|
1248
|
+
}), data, {
|
|
1243
1249
|
withCredentials: true
|
|
1244
1250
|
});
|
|
1245
1251
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/data",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.289",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@babel/runtime": "^7.12.5",
|
|
60
60
|
"@folklore/fetch": "^0.1.17",
|
|
61
61
|
"@folklore/routes": "^0.2.26",
|
|
62
|
-
"@panneau/core": "^3.0.
|
|
62
|
+
"@panneau/core": "^3.0.289",
|
|
63
63
|
"@tanstack/react-query": "^5.29.2",
|
|
64
64
|
"lodash-es": "^4.17.21",
|
|
65
65
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "edc1e168d65812a581fdc4315bf9b0832fb1b888"
|
|
72
72
|
}
|