repzo 1.0.178 → 1.0.180
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 +28 -3
- package/package.json +1 -1
- package/src/index.ts +11 -0
- package/src/types/index.ts +31 -3
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
|
@@ -15673,9 +15673,13 @@ export declare namespace Service {
|
|
|
15673
15673
|
}
|
|
15674
15674
|
interface Data {
|
|
15675
15675
|
day: string;
|
|
15676
|
-
day_total_result
|
|
15677
|
-
day_current_count
|
|
15678
|
-
day_total_pages
|
|
15676
|
+
day_total_result?: number;
|
|
15677
|
+
day_current_count?: number;
|
|
15678
|
+
day_total_pages?: number;
|
|
15679
|
+
has_planned: boolean;
|
|
15680
|
+
has_done: boolean;
|
|
15681
|
+
has_overdue: boolean;
|
|
15682
|
+
has_in_progress: boolean;
|
|
15679
15683
|
workorders: (OriginWorkorder | PlanedWorkorder)[];
|
|
15680
15684
|
}
|
|
15681
15685
|
namespace Find {
|
|
@@ -15703,6 +15707,27 @@ export declare namespace Service {
|
|
|
15703
15707
|
data: Data[];
|
|
15704
15708
|
}
|
|
15705
15709
|
}
|
|
15710
|
+
namespace Get {
|
|
15711
|
+
type ID = string;
|
|
15712
|
+
type Params = DefaultPaginationQueryParams & {
|
|
15713
|
+
client?: StringId[];
|
|
15714
|
+
disabled: boolean;
|
|
15715
|
+
client_location?: StringId[];
|
|
15716
|
+
workorder_categories?: StringId[];
|
|
15717
|
+
status?: Workorder.Data["status"] | Workorder.Data["status"][];
|
|
15718
|
+
priority_human?: Workorder.Data["priority_human"] | Workorder.Data["priority_human"][];
|
|
15719
|
+
assets?: StringId[];
|
|
15720
|
+
asset_units?: StringId[];
|
|
15721
|
+
contract?: StringId[];
|
|
15722
|
+
assigned_to?: StringId[];
|
|
15723
|
+
from_createdAt?: number;
|
|
15724
|
+
to_createdAt?: number;
|
|
15725
|
+
_id: StringId | StringId[];
|
|
15726
|
+
};
|
|
15727
|
+
interface Result extends DefaultPaginationQueryParams {
|
|
15728
|
+
data: Data["workorders"];
|
|
15729
|
+
}
|
|
15730
|
+
}
|
|
15706
15731
|
}
|
|
15707
15732
|
namespace ModuleCustomValidator {
|
|
15708
15733
|
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
|
@@ -17694,9 +17694,13 @@ export namespace Service {
|
|
|
17694
17694
|
}
|
|
17695
17695
|
export interface Data {
|
|
17696
17696
|
day: string;
|
|
17697
|
-
day_total_result
|
|
17698
|
-
day_current_count
|
|
17699
|
-
day_total_pages
|
|
17697
|
+
day_total_result?: number;
|
|
17698
|
+
day_current_count?: number;
|
|
17699
|
+
day_total_pages?: number;
|
|
17700
|
+
has_planned: boolean;
|
|
17701
|
+
has_done: boolean;
|
|
17702
|
+
has_overdue: boolean;
|
|
17703
|
+
has_in_progress: boolean;
|
|
17700
17704
|
workorders: (OriginWorkorder | PlanedWorkorder)[];
|
|
17701
17705
|
}
|
|
17702
17706
|
|
|
@@ -17727,6 +17731,30 @@ export namespace Service {
|
|
|
17727
17731
|
data: Data[];
|
|
17728
17732
|
}
|
|
17729
17733
|
}
|
|
17734
|
+
|
|
17735
|
+
export namespace Get {
|
|
17736
|
+
export type ID = string;
|
|
17737
|
+
export type Params = DefaultPaginationQueryParams & {
|
|
17738
|
+
client?: StringId[];
|
|
17739
|
+
disabled: boolean;
|
|
17740
|
+
client_location?: StringId[];
|
|
17741
|
+
workorder_categories?: StringId[];
|
|
17742
|
+
status?: Workorder.Data["status"] | Workorder.Data["status"][];
|
|
17743
|
+
priority_human?:
|
|
17744
|
+
| Workorder.Data["priority_human"]
|
|
17745
|
+
| Workorder.Data["priority_human"][];
|
|
17746
|
+
assets?: StringId[];
|
|
17747
|
+
asset_units?: StringId[];
|
|
17748
|
+
contract?: StringId[];
|
|
17749
|
+
assigned_to?: StringId[];
|
|
17750
|
+
from_createdAt?: number;
|
|
17751
|
+
to_createdAt?: number;
|
|
17752
|
+
_id: StringId | StringId[];
|
|
17753
|
+
};
|
|
17754
|
+
export interface Result extends DefaultPaginationQueryParams {
|
|
17755
|
+
data: Data["workorders"];
|
|
17756
|
+
}
|
|
17757
|
+
}
|
|
17730
17758
|
}
|
|
17731
17759
|
|
|
17732
17760
|
export namespace ModuleCustomValidator {
|