repzo 1.0.178 → 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 +1 -0
- package/lib/index.js +3 -0
- package/lib/types/index.d.ts +21 -0
- package/package.json +1 -1
- package/src/index.ts +11 -0
- package/src/types/index.ts +24 -0
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,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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 {
|
package/package.json
CHANGED
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 = {
|
package/src/types/index.ts
CHANGED
|
@@ -17727,6 +17727,30 @@ export namespace Service {
|
|
|
17727
17727
|
data: Data[];
|
|
17728
17728
|
}
|
|
17729
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
|
+
}
|
|
17730
17754
|
}
|
|
17731
17755
|
|
|
17732
17756
|
export namespace ModuleCustomValidator {
|