@goweekdays/core 2.10.0 → 2.10.1
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/CHANGELOG.md +7 -0
- package/dist/index.d.ts +14 -4
- package/dist/index.js +437 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +449 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1076,15 +1076,20 @@ declare function usePermissionGroupController(): {
|
|
|
1076
1076
|
type TJobPost = {
|
|
1077
1077
|
_id?: ObjectId;
|
|
1078
1078
|
org: ObjectId | string;
|
|
1079
|
+
orgName?: string;
|
|
1079
1080
|
title: string;
|
|
1080
1081
|
setup: string;
|
|
1081
1082
|
location: string;
|
|
1082
1083
|
type: string;
|
|
1084
|
+
minSalary?: number;
|
|
1085
|
+
maxSalary?: number;
|
|
1086
|
+
currency?: string;
|
|
1087
|
+
payPeriod?: string;
|
|
1083
1088
|
description: string;
|
|
1084
1089
|
status?: string;
|
|
1085
|
-
createdAt?: Date;
|
|
1086
|
-
updatedAt?: Date;
|
|
1087
|
-
deletedAt?: Date;
|
|
1090
|
+
createdAt?: Date | string;
|
|
1091
|
+
updatedAt?: Date | string;
|
|
1092
|
+
deletedAt?: Date | string;
|
|
1088
1093
|
};
|
|
1089
1094
|
declare const schemaJobPost: Joi.ObjectSchema<any>;
|
|
1090
1095
|
declare const schemaJobPostUpdate: Joi.ObjectSchema<any>;
|
|
@@ -1098,6 +1103,9 @@ declare function useJobPostController(): {
|
|
|
1098
1103
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1099
1104
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1100
1105
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1106
|
+
getLocations: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1107
|
+
getJobTitles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1108
|
+
getCurrencies: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1101
1109
|
};
|
|
1102
1110
|
|
|
1103
1111
|
declare function useJobPostRepo(): {
|
|
@@ -1109,7 +1117,7 @@ declare function useJobPostRepo(): {
|
|
|
1109
1117
|
limit?: number | undefined;
|
|
1110
1118
|
status?: string | undefined;
|
|
1111
1119
|
}) => Promise<Record<string, any>>;
|
|
1112
|
-
getJobPostsByOrg: ({ search, page, limit, org, status
|
|
1120
|
+
getJobPostsByOrg: ({ search, page, limit, org, status }?: {
|
|
1113
1121
|
org: string | ObjectId;
|
|
1114
1122
|
page: number;
|
|
1115
1123
|
limit?: number | undefined;
|
|
@@ -1130,7 +1138,9 @@ declare function useJobPostRepo(): {
|
|
|
1130
1138
|
};
|
|
1131
1139
|
|
|
1132
1140
|
declare function useJobPostService(): {
|
|
1141
|
+
add: (value: TJobPost) => Promise<string>;
|
|
1133
1142
|
deleteById: (id: string) => Promise<string>;
|
|
1143
|
+
updateStatusById: (id: string, newStatus: string) => Promise<string>;
|
|
1134
1144
|
};
|
|
1135
1145
|
|
|
1136
1146
|
type TLedgerBill = {
|