@proveanything/smartlinks 1.0.28 → 1.0.29
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/collection.js +1 -1
- package/package.json +1 -1
- package/src/api/collection.ts +1 -1
package/dist/api/collection.js
CHANGED
|
@@ -99,7 +99,7 @@ export var collection;
|
|
|
99
99
|
* @throws ErrorResponse if the request fails
|
|
100
100
|
*/
|
|
101
101
|
async function assignSN(collectionId, codeId, value) {
|
|
102
|
-
const path = `/admin/collection/${encodeURIComponent(collectionId)}/
|
|
102
|
+
const path = `/admin/collection/${encodeURIComponent(collectionId)}/assignSN/${encodeURIComponent(codeId)}`;
|
|
103
103
|
return post(path, { value });
|
|
104
104
|
}
|
|
105
105
|
collection.assignSN = assignSN;
|
package/package.json
CHANGED
package/src/api/collection.ts
CHANGED
|
@@ -111,7 +111,7 @@ export namespace collection {
|
|
|
111
111
|
codeId: string,
|
|
112
112
|
value: any
|
|
113
113
|
): Promise<any> {
|
|
114
|
-
const path = `/admin/collection/${encodeURIComponent(collectionId)}/
|
|
114
|
+
const path = `/admin/collection/${encodeURIComponent(collectionId)}/assignSN/${encodeURIComponent(codeId)}`
|
|
115
115
|
return post<any>(path, { value })
|
|
116
116
|
}
|
|
117
117
|
}
|