repzo 1.0.83 → 1.0.85

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/lib/index.js CHANGED
@@ -2077,12 +2077,12 @@ export default class Repzo {
2077
2077
  return res;
2078
2078
  },
2079
2079
  };
2080
- this.returnStoreAssetPartUnit = {
2081
- _path: "/return-store-asset-part-unit",
2080
+ this.returnAssetPartUnit = {
2081
+ _path: "/return-asset-part-unit",
2082
2082
  find: async (params) => {
2083
2083
  let res = await this._fetch(
2084
2084
  this.svAPIEndpoint,
2085
- this.returnStoreAssetPartUnit._path,
2085
+ this.returnAssetPartUnit._path,
2086
2086
  params
2087
2087
  );
2088
2088
  return res;
@@ -2090,13 +2090,13 @@ export default class Repzo {
2090
2090
  get: async (id) => {
2091
2091
  return await this._fetch(
2092
2092
  this.svAPIEndpoint,
2093
- this.returnStoreAssetPartUnit._path + `/${id}`
2093
+ this.returnAssetPartUnit._path + `/${id}`
2094
2094
  );
2095
2095
  },
2096
2096
  create: async (body) => {
2097
2097
  let res = await this._create(
2098
2098
  this.svAPIEndpoint,
2099
- this.returnStoreAssetPartUnit._path,
2099
+ this.returnAssetPartUnit._path,
2100
2100
  body
2101
2101
  );
2102
2102
  return res;
@@ -2104,7 +2104,7 @@ export default class Repzo {
2104
2104
  update: async (id, body) => {
2105
2105
  let res = await this._update(
2106
2106
  this.svAPIEndpoint,
2107
- this.returnStoreAssetPartUnit._path + `/${id}`,
2107
+ this.returnAssetPartUnit._path + `/${id}`,
2108
2108
  body
2109
2109
  );
2110
2110
  return res;
@@ -2112,7 +2112,49 @@ export default class Repzo {
2112
2112
  patch: async (params, body) => {
2113
2113
  let res = await this._patch(
2114
2114
  this.svAPIEndpoint,
2115
- this.returnStoreAssetPartUnit._path,
2115
+ this.returnAssetPartUnit._path,
2116
+ body,
2117
+ params
2118
+ );
2119
+ return res;
2120
+ },
2121
+ };
2122
+ this.storeAssetPartUnit = {
2123
+ _path: "/store-asset-part-unit",
2124
+ find: async (params) => {
2125
+ let res = await this._fetch(
2126
+ this.svAPIEndpoint,
2127
+ this.storeAssetPartUnit._path,
2128
+ params
2129
+ );
2130
+ return res;
2131
+ },
2132
+ get: async (id) => {
2133
+ return await this._fetch(
2134
+ this.svAPIEndpoint,
2135
+ this.storeAssetPartUnit._path + `/${id}`
2136
+ );
2137
+ },
2138
+ create: async (body) => {
2139
+ let res = await this._create(
2140
+ this.svAPIEndpoint,
2141
+ this.storeAssetPartUnit._path,
2142
+ body
2143
+ );
2144
+ return res;
2145
+ },
2146
+ update: async (id, body) => {
2147
+ let res = await this._update(
2148
+ this.svAPIEndpoint,
2149
+ this.storeAssetPartUnit._path + `/${id}`,
2150
+ body
2151
+ );
2152
+ return res;
2153
+ },
2154
+ patch: async (params, body) => {
2155
+ let res = await this._patch(
2156
+ this.svAPIEndpoint,
2157
+ this.storeAssetPartUnit._path,
2116
2158
  body,
2117
2159
  params
2118
2160
  );