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/src/index.ts CHANGED
@@ -3294,54 +3294,109 @@ export default class Repzo {
3294
3294
  },
3295
3295
  };
3296
3296
 
3297
- returnStoreAssetPartUnit = {
3298
- _path: "/return-store-asset-part-unit",
3297
+ returnAssetPartUnit = {
3298
+ _path: "/return-asset-part-unit",
3299
3299
  find: async (
3300
- params?: Service.ReturnStoreAssetPartUnit.Find.Params
3301
- ): Promise<Service.ReturnStoreAssetPartUnit.Find.Result> => {
3302
- let res: Service.ReturnStoreAssetPartUnit.Find.Result = await this._fetch(
3300
+ params?: Service.ReturnAssetPartUnit.Find.Params
3301
+ ): Promise<Service.ReturnAssetPartUnit.Find.Result> => {
3302
+ let res: Service.ReturnAssetPartUnit.Find.Result = await this._fetch(
3303
3303
  this.svAPIEndpoint,
3304
- this.returnStoreAssetPartUnit._path,
3304
+ this.returnAssetPartUnit._path,
3305
3305
  params
3306
3306
  );
3307
3307
  return res;
3308
3308
  },
3309
3309
  get: async (
3310
- id: Service.ReturnStoreAssetPartUnit.Get.ID
3311
- ): Promise<Service.ReturnStoreAssetPartUnit.Get.Result> => {
3310
+ id: Service.ReturnAssetPartUnit.Get.ID
3311
+ ): Promise<Service.ReturnAssetPartUnit.Get.Result> => {
3312
3312
  return await this._fetch(
3313
3313
  this.svAPIEndpoint,
3314
- this.returnStoreAssetPartUnit._path + `/${id}`
3314
+ this.returnAssetPartUnit._path + `/${id}`
3315
3315
  );
3316
3316
  },
3317
3317
  create: async (
3318
- body: Service.ReturnStoreAssetPartUnit.Create.Body
3319
- ): Promise<Service.ReturnStoreAssetPartUnit.Create.Result> => {
3318
+ body: Service.ReturnAssetPartUnit.Create.Body
3319
+ ): Promise<Service.ReturnAssetPartUnit.Create.Result> => {
3320
3320
  let res = await this._create(
3321
3321
  this.svAPIEndpoint,
3322
- this.returnStoreAssetPartUnit._path,
3322
+ this.returnAssetPartUnit._path,
3323
3323
  body
3324
3324
  );
3325
3325
  return res;
3326
3326
  },
3327
3327
  update: async (
3328
- id: Service.ReturnStoreAssetPartUnit.Update.ID,
3329
- body: Service.ReturnStoreAssetPartUnit.Update.Body
3330
- ): Promise<Service.ReturnStoreAssetPartUnit.Update.Result> => {
3331
- let res: Service.ReturnStoreAssetPartUnit.Update.Result = await this._update(
3328
+ id: Service.ReturnAssetPartUnit.Update.ID,
3329
+ body: Service.ReturnAssetPartUnit.Update.Body
3330
+ ): Promise<Service.ReturnAssetPartUnit.Update.Result> => {
3331
+ let res: Service.ReturnAssetPartUnit.Update.Result = await this._update(
3332
3332
  this.svAPIEndpoint,
3333
- this.returnStoreAssetPartUnit._path + `/${id}`,
3333
+ this.returnAssetPartUnit._path + `/${id}`,
3334
3334
  body
3335
3335
  );
3336
3336
  return res;
3337
3337
  },
3338
3338
  patch: async (
3339
- params: Service.ReturnStoreAssetPartUnit.Patch.Params,
3340
- body: Service.ReturnStoreAssetPartUnit.Patch.Body
3341
- ): Promise<Service.ReturnStoreAssetPartUnit.Patch.Result> => {
3342
- let res: Service.ReturnStoreAssetPartUnit.Patch.Result = await this._patch(
3339
+ params: Service.ReturnAssetPartUnit.Patch.Params,
3340
+ body: Service.ReturnAssetPartUnit.Patch.Body
3341
+ ): Promise<Service.ReturnAssetPartUnit.Patch.Result> => {
3342
+ let res: Service.ReturnAssetPartUnit.Patch.Result = await this._patch(
3343
3343
  this.svAPIEndpoint,
3344
- this.returnStoreAssetPartUnit._path,
3344
+ this.returnAssetPartUnit._path,
3345
+ body,
3346
+ params
3347
+ );
3348
+ return res;
3349
+ },
3350
+ };
3351
+
3352
+ storeAssetPartUnit = {
3353
+ _path: "/store-asset-part-unit",
3354
+ find: async (
3355
+ params?: Service.StoreAssetPartUnit.Find.Params
3356
+ ): Promise<Service.StoreAssetPartUnit.Find.Result> => {
3357
+ let res: Service.StoreAssetPartUnit.Find.Result = await this._fetch(
3358
+ this.svAPIEndpoint,
3359
+ this.storeAssetPartUnit._path,
3360
+ params
3361
+ );
3362
+ return res;
3363
+ },
3364
+ get: async (
3365
+ id: Service.StoreAssetPartUnit.Get.ID
3366
+ ): Promise<Service.StoreAssetPartUnit.Get.Result> => {
3367
+ return await this._fetch(
3368
+ this.svAPIEndpoint,
3369
+ this.storeAssetPartUnit._path + `/${id}`
3370
+ );
3371
+ },
3372
+ create: async (
3373
+ body: Service.StoreAssetPartUnit.Create.Body
3374
+ ): Promise<Service.StoreAssetPartUnit.Create.Result> => {
3375
+ let res = await this._create(
3376
+ this.svAPIEndpoint,
3377
+ this.storeAssetPartUnit._path,
3378
+ body
3379
+ );
3380
+ return res;
3381
+ },
3382
+ update: async (
3383
+ id: Service.StoreAssetPartUnit.Update.ID,
3384
+ body: Service.StoreAssetPartUnit.Update.Body
3385
+ ): Promise<Service.StoreAssetPartUnit.Update.Result> => {
3386
+ let res: Service.StoreAssetPartUnit.Update.Result = await this._update(
3387
+ this.svAPIEndpoint,
3388
+ this.storeAssetPartUnit._path + `/${id}`,
3389
+ body
3390
+ );
3391
+ return res;
3392
+ },
3393
+ patch: async (
3394
+ params: Service.StoreAssetPartUnit.Patch.Params,
3395
+ body: Service.StoreAssetPartUnit.Patch.Body
3396
+ ): Promise<Service.StoreAssetPartUnit.Patch.Result> => {
3397
+ let res: Service.StoreAssetPartUnit.Patch.Result = await this._patch(
3398
+ this.svAPIEndpoint,
3399
+ this.storeAssetPartUnit._path,
3345
3400
  body,
3346
3401
  params
3347
3402
  );