@goweekdays/core 2.10.0 → 2.10.2

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @goweekdays/core
2
2
 
3
+ ## 2.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4902c2a: Fix organization, no subscription by default
8
+
9
+ ## 2.10.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 23e67be: Add salary fields to job post model
14
+ - 08763a4: Add job post attribute management and endpoints
15
+
3
16
  ## 2.10.0
4
17
 
5
18
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -398,6 +398,7 @@ declare function useOrgRepo(): {
398
398
  getByEmail: (email: string) => Promise<TOrg | null>;
399
399
  updateById: (_id: string | ObjectId, options: Pick<TOrg, "name" | "description" | "email" | "contact">) => Promise<void>;
400
400
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<string>;
401
+ companySearch: (name: string) => Promise<bson.Document[]>;
401
402
  };
402
403
 
403
404
  declare function useOrgService(): {
@@ -417,6 +418,7 @@ declare function useOrgController(): {
417
418
  getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
418
419
  getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
419
420
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
421
+ companySearch: (req: Request, res: Response, next: NextFunction) => Promise<void>;
420
422
  };
421
423
 
422
424
  type TPromo = {
@@ -765,9 +767,7 @@ declare function useVerificationService(): {
765
767
  }) => Promise<bson.ObjectId>;
766
768
  cancelInviteMember: (id: string) => Promise<string>;
767
769
  forgetPassword: (email: string) => Promise<string>;
768
- orgSetupFee: (value: TOrg & {
769
- seats: number;
770
- }) => Promise<{
770
+ orgSetupFee: (value: TOrg) => Promise<{
771
771
  paypalOrderLink: any;
772
772
  }>;
773
773
  };
@@ -1076,15 +1076,22 @@ declare function usePermissionGroupController(): {
1076
1076
  type TJobPost = {
1077
1077
  _id?: ObjectId;
1078
1078
  org: ObjectId | string;
1079
+ orgName?: string;
1080
+ company: ObjectId;
1081
+ companyName?: string;
1079
1082
  title: string;
1080
1083
  setup: string;
1081
1084
  location: string;
1082
1085
  type: string;
1086
+ minSalary?: number;
1087
+ maxSalary?: number;
1088
+ currency?: string;
1089
+ payPeriod?: string;
1083
1090
  description: string;
1084
1091
  status?: string;
1085
- createdAt?: Date;
1086
- updatedAt?: Date;
1087
- deletedAt?: Date;
1092
+ createdAt?: Date | string;
1093
+ updatedAt?: Date | string;
1094
+ deletedAt?: Date | string;
1088
1095
  };
1089
1096
  declare const schemaJobPost: Joi.ObjectSchema<any>;
1090
1097
  declare const schemaJobPostUpdate: Joi.ObjectSchema<any>;
@@ -1098,6 +1105,9 @@ declare function useJobPostController(): {
1098
1105
  updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1099
1106
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1100
1107
  updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1108
+ getLocations: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1109
+ getJobTitles: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1110
+ getCurrencies: (req: Request, res: Response, next: NextFunction) => Promise<void>;
1101
1111
  };
1102
1112
 
1103
1113
  declare function useJobPostRepo(): {
@@ -1109,7 +1119,7 @@ declare function useJobPostRepo(): {
1109
1119
  limit?: number | undefined;
1110
1120
  status?: string | undefined;
1111
1121
  }) => Promise<Record<string, any>>;
1112
- getJobPostsByOrg: ({ search, page, limit, org, status, }?: {
1122
+ getJobPostsByOrg: ({ search, page, limit, org, status }?: {
1113
1123
  org: string | ObjectId;
1114
1124
  page: number;
1115
1125
  limit?: number | undefined;
@@ -1130,7 +1140,9 @@ declare function useJobPostRepo(): {
1130
1140
  };
1131
1141
 
1132
1142
  declare function useJobPostService(): {
1143
+ add: (value: TJobPost) => Promise<string>;
1133
1144
  deleteById: (id: string) => Promise<string>;
1145
+ updateStatusById: (id: string, newStatus: string) => Promise<string>;
1134
1146
  };
1135
1147
 
1136
1148
  type TLedgerBill = {