@proveanything/smartlinks 1.5.2 → 1.5.3
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/api/appObjects.js
CHANGED
|
@@ -11,7 +11,7 @@ export var app;
|
|
|
11
11
|
*/
|
|
12
12
|
function basePath(collectionId, appId, admin = false) {
|
|
13
13
|
const zone = admin ? 'admin' : 'public';
|
|
14
|
-
return
|
|
14
|
+
return `/${zone}/collection/${encodeURIComponent(collectionId)}/app/${encodeURIComponent(appId)}/cases`;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Create a new case
|
|
@@ -105,7 +105,7 @@ export var app;
|
|
|
105
105
|
*/
|
|
106
106
|
function basePath(collectionId, appId, admin = false) {
|
|
107
107
|
const zone = admin ? 'admin' : 'public';
|
|
108
|
-
return
|
|
108
|
+
return `/${zone}/collection/${encodeURIComponent(collectionId)}/app/${encodeURIComponent(appId)}/threads`;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* Create a new thread
|
|
@@ -182,7 +182,7 @@ export var app;
|
|
|
182
182
|
*/
|
|
183
183
|
function basePath(collectionId, appId, admin = false) {
|
|
184
184
|
const zone = admin ? 'admin' : 'public';
|
|
185
|
-
return
|
|
185
|
+
return `/${zone}/collection/${encodeURIComponent(collectionId)}/app/${encodeURIComponent(appId)}/records`;
|
|
186
186
|
}
|
|
187
187
|
/**
|
|
188
188
|
* Create a new record
|
package/dist/docs/API_SUMMARY.md
CHANGED
package/docs/API_SUMMARY.md
CHANGED