@mymehq/sdk 5.7.0 → 5.7.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -914,14 +914,20 @@ var MymeClient = class {
914
914
  return this.transport.request("GET", `/types/${id}`);
915
915
  },
916
916
  register: async (schema) => {
917
- return this.transport.request("POST", "/types", {
918
- body: schema
919
- });
917
+ const res = await this.transport.request(
918
+ "POST",
919
+ "/types",
920
+ { body: schema }
921
+ );
922
+ return res.type;
920
923
  },
921
924
  update: async (id, schema) => {
922
- return this.transport.request("PUT", `/types/${id}`, {
923
- body: schema
924
- });
925
+ const res = await this.transport.request(
926
+ "PUT",
927
+ `/types/${id}`,
928
+ { body: schema }
929
+ );
930
+ return res.type;
925
931
  },
926
932
  delete: async (id, options) => {
927
933
  const query = options?.force ? "?force=true" : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mymehq/sdk",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",