repzo 1.0.177 → 1.0.179

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.d.ts CHANGED
@@ -961,6 +961,7 @@ export default class Repzo {
961
961
  workorderAgenda: {
962
962
  _path: "workorder-agenda";
963
963
  find: (params: Service.WorkorderAgenda.Find.Params) => Promise<Service.WorkorderAgenda.Find.Result>;
964
+ get: (id: Service.WorkorderAgenda.Get.ID, params?: Service.WorkorderAgenda.Get.Params) => Promise<Service.WorkorderAgenda.Get.Result>;
964
965
  };
965
966
  moduleCustomValidator: {
966
967
  _path: "module-custom-validator";
package/lib/index.js CHANGED
@@ -1946,6 +1946,9 @@ class Repzo {
1946
1946
  let res = await this._fetch(this.svAPIEndpoint, this.workorderAgenda._path, params);
1947
1947
  return res;
1948
1948
  },
1949
+ get: async (id, params) => {
1950
+ return await this._fetch(this.svAPIEndpoint, this.workorderAgenda._path + `/${id}`, params);
1951
+ },
1949
1952
  };
1950
1953
  this.moduleCustomValidator = {
1951
1954
  _path: Repzo._end_points.MODULE_CUSTOM_VALIDATOR,
@@ -14746,7 +14746,7 @@ export declare namespace Service {
14746
14746
  activity_type: "transfer";
14747
14747
  from_name: string;
14748
14748
  to_name: string;
14749
- } & Pick<Transfer.Data, "type" | "serial_number" | "from" | "to" | "items_count" | "comment">;
14749
+ } & Pick<Transfer.Data, "type" | "serial_number" | "from" | "to" | "items_count" | "comment" | "status">;
14750
14750
  export type ReceivingMaterialDetails = {
14751
14751
  activity_type: "receiving-material";
14752
14752
  to_name: string;
@@ -15703,6 +15703,27 @@ export declare namespace Service {
15703
15703
  data: Data[];
15704
15704
  }
15705
15705
  }
15706
+ namespace Get {
15707
+ type ID = string;
15708
+ type Params = DefaultPaginationQueryParams & {
15709
+ client?: StringId[];
15710
+ disabled: boolean;
15711
+ client_location?: StringId[];
15712
+ workorder_categories?: StringId[];
15713
+ status?: Workorder.Data["status"] | Workorder.Data["status"][];
15714
+ priority_human?: Workorder.Data["priority_human"] | Workorder.Data["priority_human"][];
15715
+ assets?: StringId[];
15716
+ asset_units?: StringId[];
15717
+ contract?: StringId[];
15718
+ assigned_to?: StringId[];
15719
+ from_createdAt?: number;
15720
+ to_createdAt?: number;
15721
+ _id: StringId | StringId[];
15722
+ };
15723
+ interface Result extends DefaultPaginationQueryParams {
15724
+ data: Data["workorders"];
15725
+ }
15726
+ }
15706
15727
  }
15707
15728
  namespace ModuleCustomValidator {
15708
15729
  export interface NumberValidation {
@@ -15931,8 +15952,8 @@ export declare namespace Service {
15931
15952
  updatedAt?: Date;
15932
15953
  }
15933
15954
  export interface PatchBody {
15934
- executed: boolean;
15935
- command: Data["command"] | Data["command"][];
15955
+ executed?: boolean;
15956
+ command?: Data["command"] | Data["command"][];
15936
15957
  }
15937
15958
  type PopulatedKeys = "media";
15938
15959
  export namespace Find {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repzo",
3
- "version": "1.0.177",
3
+ "version": "1.0.179",
4
4
  "description": "Repzo TypeScript SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/index.ts CHANGED
@@ -4955,6 +4955,17 @@ export default class Repzo {
4955
4955
  );
4956
4956
  return res;
4957
4957
  },
4958
+
4959
+ get: async (
4960
+ id: Service.WorkorderAgenda.Get.ID,
4961
+ params?: Service.WorkorderAgenda.Get.Params,
4962
+ ): Promise<Service.WorkorderAgenda.Get.Result> => {
4963
+ return await this._fetch(
4964
+ this.svAPIEndpoint,
4965
+ this.workorderAgenda._path + `/${id}`,
4966
+ params,
4967
+ );
4968
+ },
4958
4969
  };
4959
4970
 
4960
4971
  moduleCustomValidator = {
@@ -15977,7 +15977,13 @@ export namespace Service {
15977
15977
  to_name: string;
15978
15978
  } & Pick<
15979
15979
  Transfer.Data,
15980
- "type" | "serial_number" | "from" | "to" | "items_count" | "comment"
15980
+ | "type"
15981
+ | "serial_number"
15982
+ | "from"
15983
+ | "to"
15984
+ | "items_count"
15985
+ | "comment"
15986
+ | "status"
15981
15987
  >;
15982
15988
 
15983
15989
  // ReceivingMaterial ********************************************************************
@@ -17721,6 +17727,30 @@ export namespace Service {
17721
17727
  data: Data[];
17722
17728
  }
17723
17729
  }
17730
+
17731
+ export namespace Get {
17732
+ export type ID = string;
17733
+ export type Params = DefaultPaginationQueryParams & {
17734
+ client?: StringId[];
17735
+ disabled: boolean;
17736
+ client_location?: StringId[];
17737
+ workorder_categories?: StringId[];
17738
+ status?: Workorder.Data["status"] | Workorder.Data["status"][];
17739
+ priority_human?:
17740
+ | Workorder.Data["priority_human"]
17741
+ | Workorder.Data["priority_human"][];
17742
+ assets?: StringId[];
17743
+ asset_units?: StringId[];
17744
+ contract?: StringId[];
17745
+ assigned_to?: StringId[];
17746
+ from_createdAt?: number;
17747
+ to_createdAt?: number;
17748
+ _id: StringId | StringId[];
17749
+ };
17750
+ export interface Result extends DefaultPaginationQueryParams {
17751
+ data: Data["workorders"];
17752
+ }
17753
+ }
17724
17754
  }
17725
17755
 
17726
17756
  export namespace ModuleCustomValidator {
@@ -17963,8 +17993,8 @@ export namespace Service {
17963
17993
  updatedAt?: Date;
17964
17994
  }
17965
17995
  export interface PatchBody {
17966
- executed: boolean;
17967
- command: Data["command"] | Data["command"][];
17996
+ executed?: boolean;
17997
+ command?: Data["command"] | Data["command"][];
17968
17998
  }
17969
17999
 
17970
18000
  type PopulatedKeys = "media";