repzo 1.0.45 → 1.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -829,6 +829,61 @@ export default class Repzo {
829
829
  },
830
830
  };
831
831
 
832
+ returnReason = {
833
+ _path: "/return-reason",
834
+ find: async (
835
+ params?: Service.ReturnReason.Find.Params
836
+ ): Promise<Service.ReturnReason.Find.Result> => {
837
+ let res: Service.ReturnReason.Find.Result = await this._fetch(
838
+ this.svAPIEndpoint,
839
+ this.returnReason._path,
840
+ params
841
+ );
842
+ return res;
843
+ },
844
+
845
+ get: async (
846
+ id: Service.ReturnReason.Get.ID
847
+ ): Promise<Service.ReturnReason.Get.Result> => {
848
+ return await this._fetch(
849
+ this.svAPIEndpoint,
850
+ this.returnReason._path + `/${id}`
851
+ );
852
+ },
853
+ create: async (
854
+ body: Service.ReturnReason.Create.Body
855
+ ): Promise<Service.ReturnReason.Create.Result> => {
856
+ let res = await this._create(
857
+ this.svAPIEndpoint,
858
+ this.returnReason._path,
859
+ body
860
+ );
861
+ return res;
862
+ },
863
+
864
+ update: async (
865
+ id: Service.ReturnReason.Update.ID,
866
+ body: Service.ReturnReason.Update.Body
867
+ ): Promise<Service.ReturnReason.Update.Result> => {
868
+ let res: Service.ReturnReason.Update.Result = await this._update(
869
+ this.svAPIEndpoint,
870
+ this.returnReason._path + `/${id}`,
871
+ body
872
+ );
873
+ return res;
874
+ },
875
+
876
+ remove: async (
877
+ id: Service.ReturnReason.Remove.ID
878
+ ): Promise<Service.ReturnReason.Remove.Result> => {
879
+ let res: Service.ReturnReason.Remove.Result = await this._delete(
880
+ this.svAPIEndpoint,
881
+ this.returnReason._path + `/${id}`
882
+ );
883
+ return res;
884
+ },
885
+ };
886
+
832
887
  rep = {
833
888
  _path: "/rep",
834
889
  find: async (
@@ -2759,6 +2759,7 @@ export namespace Service {
2759
2759
  name?: string[] | string;
2760
2760
  local_name?: string[] | string;
2761
2761
  disabled?: boolean;
2762
+ from_updatedAt?: number;
2762
2763
  [key: string]: any; // integration_meta.
2763
2764
  };
2764
2765
  export interface Result extends DefaultPaginationResult {