@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.
- package/dist/index.js +12 -6
- 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
|
-
|
|
918
|
-
|
|
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
|
-
|
|
923
|
-
|
|
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" : "";
|