@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.
@@ -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)}/lookupSN/${encodeURIComponent(codeId)}`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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)}/lookupSN/${encodeURIComponent(codeId)}`
114
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/assignSN/${encodeURIComponent(codeId)}`
115
115
  return post<any>(path, { value })
116
116
  }
117
117
  }