storemw-core-api 1.0.139 → 1.0.141

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.
Files changed (105) hide show
  1. package/dist/app.js +1 -1
  2. package/dist/app.js.map +1 -1
  3. package/dist/controllers/index.d.ts +1 -2
  4. package/dist/controllers/index.js +5 -4
  5. package/dist/controllers/index.js.map +1 -1
  6. package/dist/controllers/user/userController.js +8 -4
  7. package/dist/controllers/user/userController.js.map +1 -1
  8. package/dist/controllers/user/userMeController.d.ts +3 -0
  9. package/dist/controllers/user/userMeController.js +52 -361
  10. package/dist/controllers/user/userMeController.js.map +1 -1
  11. package/dist/controllers/utils/unuse/changePasswordUtilController.d.ts +1 -0
  12. package/dist/controllers/utils/unuse/changePasswordUtilController.js +55 -0
  13. package/dist/controllers/utils/unuse/changePasswordUtilController.js.map +1 -0
  14. package/dist/middlewares/route/index.d.ts +1 -1
  15. package/dist/middlewares/route/index.js +4 -2
  16. package/dist/middlewares/route/index.js.map +1 -1
  17. package/dist/middlewares/route/validateUserMe.d.ts +2 -0
  18. package/dist/middlewares/route/validateUserMe.js +9 -1
  19. package/dist/middlewares/route/validateUserMe.js.map +1 -1
  20. package/dist/models/account/AccountModel.d.ts +13 -13
  21. package/dist/models/branch_user/BranchUserModel.d.ts +13 -13
  22. package/dist/models/user/AgentModel.d.ts +2 -24
  23. package/dist/models/user/MemberModel.d.ts +2 -24
  24. package/dist/models/user/UserModel.d.ts +13 -2
  25. package/dist/routes/index.d.ts +0 -1
  26. package/dist/routes/index.js +2 -3
  27. package/dist/routes/index.js.map +1 -1
  28. package/dist/routes/user/userMeRoutes.js +4 -0
  29. package/dist/routes/user/userMeRoutes.js.map +1 -1
  30. package/dist/routes/utils/unuse/changePasswordUtilRoutes.d.ts +1 -0
  31. package/dist/routes/utils/unuse/changePasswordUtilRoutes.js +10 -0
  32. package/dist/routes/utils/unuse/changePasswordUtilRoutes.js.map +1 -0
  33. package/dist/schema/payload/account/schemaAccount.d.ts +7 -0
  34. package/dist/schema/payload/index.d.ts +2 -2
  35. package/dist/schema/payload/index.js +7 -4
  36. package/dist/schema/payload/index.js.map +1 -1
  37. package/dist/schema/payload/user/schemaUser.d.ts +3 -0
  38. package/dist/schema/payload/user/schemaUser.js +1 -0
  39. package/dist/schema/payload/user/schemaUser.js.map +1 -1
  40. package/dist/schema/payload/user/schemaUserAdministrator.d.ts +14 -0
  41. package/dist/schema/payload/user/schemaUserAgent.d.ts +15 -12
  42. package/dist/schema/payload/user/schemaUserAgent.js +2 -2
  43. package/dist/schema/payload/user/schemaUserAgent.js.map +1 -1
  44. package/dist/schema/payload/user/schemaUserCustomer.d.ts +14 -0
  45. package/dist/schema/payload/user/schemaUserDriver.d.ts +14 -0
  46. package/dist/schema/payload/user/schemaUserMe.d.ts +31 -0
  47. package/dist/schema/payload/user/schemaUserMe.js +17 -0
  48. package/dist/schema/payload/user/schemaUserMe.js.map +1 -0
  49. package/dist/schema/payload/user/schemaUserMember.d.ts +15 -12
  50. package/dist/schema/payload/user/schemaUserMember.js +2 -2
  51. package/dist/schema/payload/user/schemaUserMember.js.map +1 -1
  52. package/dist/schema/payload/user/schemaUserOperator.d.ts +14 -0
  53. package/dist/schema/payload/user/schemaUserRetailer.d.ts +14 -0
  54. package/dist/schema/payload/user/schemaUserWorker.d.ts +14 -0
  55. package/dist/schema/payload/utils/unuse/schemaChangePasswordUtil.d.ts +53 -0
  56. package/dist/schema/payload/utils/unuse/schemaChangePasswordUtil.js +18 -0
  57. package/dist/schema/payload/utils/unuse/schemaChangePasswordUtil.js.map +1 -0
  58. package/dist/services/account/AccountService.js +14 -4
  59. package/dist/services/account/AccountService.js.map +1 -1
  60. package/dist/services/auth/AuthService.js +4 -1
  61. package/dist/services/auth/AuthService.js.map +1 -1
  62. package/dist/services/index.d.ts +2 -4
  63. package/dist/services/index.js +4 -3
  64. package/dist/services/index.js.map +1 -1
  65. package/dist/services/user/AdministratorService.d.ts +1 -0
  66. package/dist/services/user/AdministratorService.js +7 -0
  67. package/dist/services/user/AdministratorService.js.map +1 -1
  68. package/dist/services/user/AgentService.d.ts +2 -12
  69. package/dist/services/user/AgentService.js +35 -26
  70. package/dist/services/user/AgentService.js.map +1 -1
  71. package/dist/services/user/CustomerService.d.ts +1 -0
  72. package/dist/services/user/CustomerService.js +7 -0
  73. package/dist/services/user/CustomerService.js.map +1 -1
  74. package/dist/services/user/DriverService.d.ts +1 -0
  75. package/dist/services/user/DriverService.js +7 -0
  76. package/dist/services/user/DriverService.js.map +1 -1
  77. package/dist/services/user/MemberService.d.ts +2 -12
  78. package/dist/services/user/MemberService.js +35 -26
  79. package/dist/services/user/MemberService.js.map +1 -1
  80. package/dist/services/user/OperatorService.d.ts +4 -2
  81. package/dist/services/user/OperatorService.js +11 -3
  82. package/dist/services/user/OperatorService.js.map +1 -1
  83. package/dist/services/user/RetailerService.d.ts +1 -0
  84. package/dist/services/user/RetailerService.js +7 -0
  85. package/dist/services/user/RetailerService.js.map +1 -1
  86. package/dist/services/user/UserMeService.d.ts +31 -7
  87. package/dist/services/user/UserMeService.js +71 -3
  88. package/dist/services/user/UserMeService.js.map +1 -1
  89. package/dist/services/user/UserService.d.ts +27 -1
  90. package/dist/services/user/UserService.js +54 -38
  91. package/dist/services/user/UserService.js.map +1 -1
  92. package/dist/services/user/WorkerService.d.ts +1 -0
  93. package/dist/services/user/WorkerService.js +52 -44
  94. package/dist/services/user/WorkerService.js.map +1 -1
  95. package/dist/services/utils/unuse/ChangePasswordUtilService.d.ts +13 -0
  96. package/dist/services/utils/unuse/ChangePasswordUtilService.js +78 -0
  97. package/dist/services/utils/unuse/ChangePasswordUtilService.js.map +1 -0
  98. package/dist/utils/index.d.ts +1 -1
  99. package/dist/utils/index.js +3 -1
  100. package/dist/utils/index.js.map +1 -1
  101. package/dist/utils/passwordUtils.d.ts +3 -0
  102. package/dist/utils/passwordUtils.js +22 -0
  103. package/dist/utils/passwordUtils.js.map +1 -1
  104. package/package.json +1 -1
  105. package/prisma/schema.prisma +44 -47
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/middlewares/route/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAuJ;AAA9I,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAC/H,mDAAoF;AAA3E,wHAAA,sBAAsB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAC1D,yDAAuJ;AAA9I,8HAAA,yBAAyB,OAAA;AAAE,iIAAA,4BAA4B,OAAA;AAAE,+HAAA,0BAA0B,OAAA;AAAE,iIAAA,4BAA4B,OAAA;AAC1H,6DAAiG;AAAxF,kIAAA,2BAA2B,OAAA;AAAE,mIAAA,4BAA4B,OAAA;AAClE,iEAAsJ;AAA7I,0IAAA,iCAAiC,OAAA;AAAE,+IAAA,sCAAsC,OAAA;AAAE,0IAAA,iCAAiC,OAAA;AACrH,qDAAyK;AAAhK,0HAAA,uBAAuB,OAAA;AAAE,2HAAA,wBAAwB,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAC9I,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,2DAA2L;AAAlL,gIAAA,0BAA0B,OAAA;AAAE,iIAAA,2BAA2B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAC7J,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,+CAAuJ;AAA9I,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAC/H,+CAA+H;AAAtH,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,wHAAA,wBAAwB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AACvG,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,mDAAwI;AAA/H,wHAAA,sBAAsB,OAAA;AAAE,yHAAA,uBAAuB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAC9G,mEAA6G;AAApG,yIAAA,+BAA+B,OAAA;AAAE,2IAAA,iCAAiC,OAAA;AAC3E,+CAA0D;AAAjD,yHAAA,yBAAyB,OAAA;AAElC,2EAAsF;AAA7E,qJAAA,uCAAuC,OAAA;AAChD,iEAAoH;AAA3G,2IAAA,kCAAkC,OAAA;AAAE,+IAAA,sCAAsC,OAAA","sourcesContent":["export { validateRouteUserGet, validateRouteUserList, validateRouteUserCreate, validateRouteUserUpdate, validateRouteUserDelete } from \"./validateUser\"\nexport { validateRouteUserMeGet, validateRouteUserMeDelete } from \"./validateUserMe\"\nexport { validateRouteAccessKeyGet, validateRouteAccessKeyCreate, validateRouteAccessKeyList, validateRouteAccessKeyRevoke } from \"./validateAccessKey\"\nexport { validateRouteOneTimeCodeGet, validateRouteOneTimeCodeList } from \"./validateOneTimeCode\"\nexport { validateRouteResetPasswordRequest, validateRouteResetPasswordValidateCode, validateRouteResetPasswordPerform } from \"./validateResetPassword\"\nexport { validateRouteAccountGet, validateRouteAccountList, validateRouteAccountCreate, validateRouteAccountUpdate, validateRouteAccountDelete } from \"./validateAccount\"\nexport { validateRouteBusinessGet, validateRouteBusinessList, validateRouteBusinessCreate, validateRouteBusinessUpdate, validateRouteBusinessDelete } from \"./validateBusiness\"\nexport { validateRouteUserBranchGet, validateRouteUserBranchList, validateRouteUserBranchCreate, validateRouteUserBranchUpdate, validateRouteUserBranchDelete } from \"./validateUserBranch\"\nexport { validateRouteDocumentGet, validateRouteDocumentList, validateRouteDocumentCreate, validateRouteDocumentUpdate, validateRouteDocumentDelete } from \"./validateDocument\"\nexport { validateRouteItemGet, validateRouteItemList, validateRouteItemCreate, validateRouteItemUpdate, validateRouteItemDelete } from \"./validateItem\"\nexport { validateRouteFileGet, validateRouteFileList, validateRouteFilesUpload, validateRouteFileDelete } from \"./validateFile\"\nexport { validateRouteLocationGet, validateRouteLocationList, validateRouteLocationCreate, validateRouteLocationUpdate, validateRouteLocationDelete } from \"./validateLocation\"\nexport { validateRouteRegionGet, validateRouteRegionList, validateRouteRegionCreate, validateRouteRegionDelete } from \"./validateRegion\"\nexport { validateRouteInjectionFieldList, validateRouteInjectionFieldDelete } from \"./validateInjectionField\"\nexport { validateRouteAuthTokenGet } from \"./validateAuth\"\n\nexport { validateRouteChangePasswordUtilValidate } from \"./validateChangePasswordUtil\"\nexport { validateRouteAccessKeyUtilValidate, validateRouteAccessKeyUtilAccountOwner } from \"./validateAccessKeyUtil\""]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/middlewares/route/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAuJ;AAA9I,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAC/H,mDAAkJ;AAAzI,wHAAA,sBAAsB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAAE,mIAAA,iCAAiC,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AACxH,yDAAuJ;AAA9I,8HAAA,yBAAyB,OAAA;AAAE,iIAAA,4BAA4B,OAAA;AAAE,+HAAA,0BAA0B,OAAA;AAAE,iIAAA,4BAA4B,OAAA;AAC1H,6DAAiG;AAAxF,kIAAA,2BAA2B,OAAA;AAAE,mIAAA,4BAA4B,OAAA;AAClE,iEAAsJ;AAA7I,0IAAA,iCAAiC,OAAA;AAAE,+IAAA,sCAAsC,OAAA;AAAE,0IAAA,iCAAiC,OAAA;AACrH,qDAAyK;AAAhK,0HAAA,uBAAuB,OAAA;AAAE,2HAAA,wBAAwB,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAAE,6HAAA,0BAA0B,OAAA;AAC9I,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,2DAA2L;AAAlL,gIAAA,0BAA0B,OAAA;AAAE,iIAAA,2BAA2B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAAE,mIAAA,6BAA6B,OAAA;AAC7J,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,+CAAuJ;AAA9I,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AAC/H,+CAA+H;AAAtH,oHAAA,oBAAoB,OAAA;AAAE,qHAAA,qBAAqB,OAAA;AAAE,wHAAA,wBAAwB,OAAA;AAAE,uHAAA,uBAAuB,OAAA;AACvG,uDAA+K;AAAtK,4HAAA,wBAAwB,OAAA;AAAE,6HAAA,yBAAyB,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AAAE,+HAAA,2BAA2B,OAAA;AACnJ,mDAAwI;AAA/H,wHAAA,sBAAsB,OAAA;AAAE,yHAAA,uBAAuB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAAE,2HAAA,yBAAyB,OAAA;AAC9G,mEAA6G;AAApG,yIAAA,+BAA+B,OAAA;AAAE,2IAAA,iCAAiC,OAAA;AAC3E,+CAA0D;AAAjD,yHAAA,yBAAyB,OAAA;AAElC,2EAAsF;AAA7E,qJAAA,uCAAuC,OAAA;AAChD,iEAAoH;AAA3G,2IAAA,kCAAkC,OAAA;AAAE,+IAAA,sCAAsC,OAAA","sourcesContent":["export { validateRouteUserGet, validateRouteUserList, validateRouteUserCreate, validateRouteUserUpdate, validateRouteUserDelete } from \"./validateUser\"\nexport { validateRouteUserMeGet, validateRouteUserMeUpdate, validateRouteUserMeChangePassword, validateRouteUserMeDelete } from \"./validateUserMe\"\nexport { validateRouteAccessKeyGet, validateRouteAccessKeyCreate, validateRouteAccessKeyList, validateRouteAccessKeyRevoke } from \"./validateAccessKey\"\nexport { validateRouteOneTimeCodeGet, validateRouteOneTimeCodeList } from \"./validateOneTimeCode\"\nexport { validateRouteResetPasswordRequest, validateRouteResetPasswordValidateCode, validateRouteResetPasswordPerform } from \"./validateResetPassword\"\nexport { validateRouteAccountGet, validateRouteAccountList, validateRouteAccountCreate, validateRouteAccountUpdate, validateRouteAccountDelete } from \"./validateAccount\"\nexport { validateRouteBusinessGet, validateRouteBusinessList, validateRouteBusinessCreate, validateRouteBusinessUpdate, validateRouteBusinessDelete } from \"./validateBusiness\"\nexport { validateRouteUserBranchGet, validateRouteUserBranchList, validateRouteUserBranchCreate, validateRouteUserBranchUpdate, validateRouteUserBranchDelete } from \"./validateUserBranch\"\nexport { validateRouteDocumentGet, validateRouteDocumentList, validateRouteDocumentCreate, validateRouteDocumentUpdate, validateRouteDocumentDelete } from \"./validateDocument\"\nexport { validateRouteItemGet, validateRouteItemList, validateRouteItemCreate, validateRouteItemUpdate, validateRouteItemDelete } from \"./validateItem\"\nexport { validateRouteFileGet, validateRouteFileList, validateRouteFilesUpload, validateRouteFileDelete } from \"./validateFile\"\nexport { validateRouteLocationGet, validateRouteLocationList, validateRouteLocationCreate, validateRouteLocationUpdate, validateRouteLocationDelete } from \"./validateLocation\"\nexport { validateRouteRegionGet, validateRouteRegionList, validateRouteRegionCreate, validateRouteRegionDelete } from \"./validateRegion\"\nexport { validateRouteInjectionFieldList, validateRouteInjectionFieldDelete } from \"./validateInjectionField\"\nexport { validateRouteAuthTokenGet } from \"./validateAuth\"\n\nexport { validateRouteChangePasswordUtilValidate } from \"./validateChangePasswordUtil\"\nexport { validateRouteAccessKeyUtilValidate, validateRouteAccessKeyUtilAccountOwner } from \"./validateAccessKeyUtil\""]}
@@ -1,3 +1,5 @@
1
1
  import { Request, Response, NextFunction } from "express";
2
2
  export declare const validateRouteUserMeGet: (req: Request, res: Response, next: NextFunction) => void;
3
+ export declare const validateRouteUserMeUpdate: (req: Request, res: Response, next: NextFunction) => void;
4
+ export declare const validateRouteUserMeChangePassword: (req: Request, res: Response, next: NextFunction) => void;
3
5
  export declare const validateRouteUserMeDelete: (req: Request, res: Response, next: NextFunction) => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateRouteUserMeDelete = exports.validateRouteUserMeGet = void 0;
3
+ exports.validateRouteUserMeDelete = exports.validateRouteUserMeChangePassword = exports.validateRouteUserMeUpdate = exports.validateRouteUserMeGet = void 0;
4
4
  const utils_1 = require("../../utils");
5
5
  const common_1 = require("../../schema/common");
6
6
  exports.validateRouteUserMeGet = (0, utils_1.validateMultipleSchemas)([
@@ -10,6 +10,14 @@ exports.validateRouteUserMeGet = (0, utils_1.validateMultipleSchemas)([
10
10
  // [schemaRouteUserList, "params"],
11
11
  // [schemaQueryList, "query"]
12
12
  // ])
13
+ const validateRouteUserMeUpdate = (req, res, next) => {
14
+ next();
15
+ };
16
+ exports.validateRouteUserMeUpdate = validateRouteUserMeUpdate;
17
+ const validateRouteUserMeChangePassword = (req, res, next) => {
18
+ next();
19
+ };
20
+ exports.validateRouteUserMeChangePassword = validateRouteUserMeChangePassword;
13
21
  const validateRouteUserMeDelete = (req, res, next) => {
14
22
  next();
15
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"validateUserMe.js","sourceRoot":"","sources":["../../../src/middlewares/route/validateUserMe.ts"],"names":[],"mappings":";;;AAOA,mCAA0E;AAG1E,4CAAkE;AAErD,QAAA,sBAAsB,GAAG,IAAA,+BAAuB,EAAC;IAC1D,CAAC,uBAAc,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAA;AAEF,iEAAiE;AACjE,uCAAuC;AACvC,iCAAiC;AACjC,KAAK;AAEE,MAAM,yBAAyB,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACzF,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEF,gGAAgG;AAChG,cAAc;AACd,KAAK;AAEL,qGAAqG","sourcesContent":["\nimport {\n Request,\n Response,\n NextFunction\n} from \"express\";\n\nimport { validateMultipleSchemas, HTTP_STATUS, sendError } from \"@/utils\";\nimport { schemaRouteUserList } from \"@/schema/middleware/route\";\n\nimport { schemaQueryList, schemaQueryGet } from \"@/schema/common\";\n\nexport const validateRouteUserMeGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\n// export const validateRouteUserList = validateMultipleSchemas([\n// [schemaRouteUserList, \"params\"],\n// [schemaQueryList, \"query\"]\n// ])\n\nexport const validateRouteUserMeDelete = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\n// export const validateRouteUserUpdate = (req: Request, res: Response, next: NextFunction) => {\n// next();\n// };\n\n// export const validateRouteUserDelete = (req: Request, res: Response, next: NextFunction) => next()"]}
1
+ {"version":3,"file":"validateUserMe.js","sourceRoot":"","sources":["../../../src/middlewares/route/validateUserMe.ts"],"names":[],"mappings":";;;AAOA,mCAA0E;AAG1E,4CAAkE;AAErD,QAAA,sBAAsB,GAAG,IAAA,+BAAuB,EAAC;IAC1D,CAAC,uBAAc,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAA;AAEF,iEAAiE;AACjE,uCAAuC;AACvC,iCAAiC;AACjC,KAAK;AAEE,MAAM,yBAAyB,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACzF,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEK,MAAM,iCAAiC,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACjG,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,iCAAiC,qCAE5C;AAEK,MAAM,yBAAyB,GAAG,CAAC,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAE,EAAE;IACzF,IAAI,EAAE,CAAC;AACX,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEF,gGAAgG;AAChG,cAAc;AACd,KAAK;AAEL,qGAAqG","sourcesContent":["\nimport {\n Request,\n Response,\n NextFunction\n} from \"express\";\n\nimport { validateMultipleSchemas, HTTP_STATUS, sendError } from \"@/utils\";\nimport { schemaRouteUserList } from \"@/schema/middleware/route\";\n\nimport { schemaQueryList, schemaQueryGet } from \"@/schema/common\";\n\nexport const validateRouteUserMeGet = validateMultipleSchemas([\n [schemaQueryGet, \"query\"]\n])\n\n// export const validateRouteUserList = validateMultipleSchemas([\n// [schemaRouteUserList, \"params\"],\n// [schemaQueryList, \"query\"]\n// ])\n\nexport const validateRouteUserMeUpdate = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteUserMeChangePassword = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\nexport const validateRouteUserMeDelete = (req: Request, res: Response, next: NextFunction) => {\n next();\n};\n\n// export const validateRouteUserUpdate = (req: Request, res: Response, next: NextFunction) => {\n// next();\n// };\n\n// export const validateRouteUserDelete = (req: Request, res: Response, next: NextFunction) => next()"]}
@@ -14,8 +14,8 @@ export declare const ModelAccountFields: {
14
14
  name: "name";
15
15
  business_id: "business_id";
16
16
  account_code: "account_code";
17
- owner_user_id: "owner_user_id";
18
17
  account_id: "account_id";
18
+ owner_user_id: "owner_user_id";
19
19
  };
20
20
  export type ModelAccount = accounts;
21
21
  export type ModelAccountOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -47,7 +47,7 @@ export type ModelAccountListProps = {
47
47
  };
48
48
  export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
49
49
  selectedPrisma: any;
50
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "name" | "business_id" | "account_code" | "owner_user_id" | "account_id";
50
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "name" | "business_id" | "account_code" | "account_id" | "owner_user_id";
51
51
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
52
52
  name: string;
53
53
  type: string;
@@ -66,8 +66,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
66
66
  name: string;
67
67
  business_id: bigint | null;
68
68
  account_code: string | null;
69
- owner_user_id: bigint;
70
69
  account_id: bigint;
70
+ owner_user_id: bigint;
71
71
  }>;
72
72
  createMany: ({ dataList, disableRollback, }: {
73
73
  dataList: Omit<any, DefaultOmitFields>[];
@@ -84,8 +84,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
84
84
  name: string;
85
85
  business_id: bigint | null;
86
86
  account_code: string | null;
87
- owner_user_id: bigint;
88
87
  account_id: bigint;
88
+ owner_user_id: bigint;
89
89
  }[]>;
90
90
  get: ({ id, where, include, }: {
91
91
  id?: number;
@@ -103,8 +103,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
103
103
  name: string;
104
104
  business_id: bigint | null;
105
105
  account_code: string | null;
106
- owner_user_id: bigint;
107
106
  account_id: bigint;
107
+ owner_user_id: bigint;
108
108
  } | null>;
109
109
  list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
110
110
  createdatetime: Date | null;
@@ -118,14 +118,14 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
118
118
  name: string;
119
119
  business_id: bigint | null;
120
120
  account_code: string | null;
121
- owner_user_id: bigint;
122
121
  account_id: bigint;
122
+ owner_user_id: bigint;
123
123
  }[]>;
124
124
  count: ({ where }?: {
125
125
  where?: Record<string, any>;
126
126
  }) => Promise<number>;
127
127
  aggregate: ({ field, operation, where, }: {
128
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "name" | "business_id" | "account_code" | "owner_user_id" | "account_id";
128
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "name" | "business_id" | "account_code" | "account_id" | "owner_user_id";
129
129
  operation?: "sum" | "avg" | "min" | "max" | "count";
130
130
  where?: Record<string, any>;
131
131
  }) => Promise<number>;
@@ -144,8 +144,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
144
144
  name: string;
145
145
  business_id: bigint | null;
146
146
  account_code: string | null;
147
- owner_user_id: bigint;
148
147
  account_id: bigint;
148
+ owner_user_id: bigint;
149
149
  }>;
150
150
  disableRollback?: Boolean;
151
151
  }) => Promise<{
@@ -160,8 +160,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
160
160
  name: string;
161
161
  business_id: bigint | null;
162
162
  account_code: string | null;
163
- owner_user_id: bigint;
164
163
  account_id: bigint;
164
+ owner_user_id: bigint;
165
165
  }>;
166
166
  updateMany: ({ dataList, disableRollback, }: {
167
167
  dataList: {
@@ -178,8 +178,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
178
178
  name: string;
179
179
  business_id: bigint | null;
180
180
  account_code: string | null;
181
- owner_user_id: bigint;
182
181
  account_id: bigint;
182
+ owner_user_id: bigint;
183
183
  }>;
184
184
  }[];
185
185
  disableRollback?: boolean;
@@ -195,8 +195,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
195
195
  name: string;
196
196
  business_id: bigint | null;
197
197
  account_code: string | null;
198
- owner_user_id: bigint;
199
198
  account_id: bigint;
199
+ owner_user_id: bigint;
200
200
  }[]>;
201
201
  trash: ({ ids }: {
202
202
  ids: number[];
@@ -212,8 +212,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
212
212
  name: string;
213
213
  business_id: bigint | null;
214
214
  account_code: string | null;
215
- owner_user_id: bigint;
216
215
  account_id: bigint;
216
+ owner_user_id: bigint;
217
217
  }[]>;
218
218
  remove: ({ ids, where }: {
219
219
  ids?: number[];
@@ -230,8 +230,8 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
230
230
  name: string;
231
231
  business_id: bigint | null;
232
232
  account_code: string | null;
233
- owner_user_id: bigint;
234
233
  account_id: bigint;
234
+ owner_user_id: bigint;
235
235
  }[]>;
236
236
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
237
237
  rawExec: (query: string, params?: any[]) => Promise<number>;
@@ -11,8 +11,8 @@ export declare const ModelBranchUserFields: {
11
11
  istrash: "istrash";
12
12
  accountid: "accountid";
13
13
  user_id: "user_id";
14
- branch_user_id: "branch_user_id";
15
14
  parent_user_id: "parent_user_id";
15
+ branch_user_id: "branch_user_id";
16
16
  };
17
17
  export type ModelBranchUser = branch_users;
18
18
  export type ModelBranchUserOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -40,7 +40,7 @@ export type ModelBranchUserListProps = {
40
40
  };
41
41
  export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
42
42
  selectedPrisma: any;
43
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "branch_user_id" | "parent_user_id";
43
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "parent_user_id" | "branch_user_id";
44
44
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
45
45
  name: string;
46
46
  type: string;
@@ -56,8 +56,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
56
56
  istrash: boolean | null;
57
57
  accountid: bigint | null;
58
58
  user_id: bigint | null;
59
- branch_user_id: bigint;
60
59
  parent_user_id: bigint | null;
60
+ branch_user_id: bigint;
61
61
  }>;
62
62
  createMany: ({ dataList, disableRollback, }: {
63
63
  dataList: Omit<any, DefaultOmitFields>[];
@@ -71,8 +71,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
71
71
  istrash: boolean | null;
72
72
  accountid: bigint | null;
73
73
  user_id: bigint | null;
74
- branch_user_id: bigint;
75
74
  parent_user_id: bigint | null;
75
+ branch_user_id: bigint;
76
76
  }[]>;
77
77
  get: ({ id, where, include, }: {
78
78
  id?: number;
@@ -87,8 +87,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
87
87
  istrash: boolean | null;
88
88
  accountid: bigint | null;
89
89
  user_id: bigint | null;
90
- branch_user_id: bigint;
91
90
  parent_user_id: bigint | null;
91
+ branch_user_id: bigint;
92
92
  } | null>;
93
93
  list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
94
94
  createdatetime: Date | null;
@@ -99,14 +99,14 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
99
99
  istrash: boolean | null;
100
100
  accountid: bigint | null;
101
101
  user_id: bigint | null;
102
- branch_user_id: bigint;
103
102
  parent_user_id: bigint | null;
103
+ branch_user_id: bigint;
104
104
  }[]>;
105
105
  count: ({ where }?: {
106
106
  where?: Record<string, any>;
107
107
  }) => Promise<number>;
108
108
  aggregate: ({ field, operation, where, }: {
109
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "branch_user_id" | "parent_user_id";
109
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "parent_user_id" | "branch_user_id";
110
110
  operation?: "sum" | "avg" | "min" | "max" | "count";
111
111
  where?: Record<string, any>;
112
112
  }) => Promise<number>;
@@ -122,8 +122,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
122
122
  istrash: boolean | null;
123
123
  accountid: bigint | null;
124
124
  user_id: bigint | null;
125
- branch_user_id: bigint;
126
125
  parent_user_id: bigint | null;
126
+ branch_user_id: bigint;
127
127
  }>;
128
128
  disableRollback?: Boolean;
129
129
  }) => Promise<{
@@ -135,8 +135,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
135
135
  istrash: boolean | null;
136
136
  accountid: bigint | null;
137
137
  user_id: bigint | null;
138
- branch_user_id: bigint;
139
138
  parent_user_id: bigint | null;
139
+ branch_user_id: bigint;
140
140
  }>;
141
141
  updateMany: ({ dataList, disableRollback, }: {
142
142
  dataList: {
@@ -150,8 +150,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
150
150
  istrash: boolean | null;
151
151
  accountid: bigint | null;
152
152
  user_id: bigint | null;
153
- branch_user_id: bigint;
154
153
  parent_user_id: bigint | null;
154
+ branch_user_id: bigint;
155
155
  }>;
156
156
  }[];
157
157
  disableRollback?: boolean;
@@ -164,8 +164,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
164
164
  istrash: boolean | null;
165
165
  accountid: bigint | null;
166
166
  user_id: bigint | null;
167
- branch_user_id: bigint;
168
167
  parent_user_id: bigint | null;
168
+ branch_user_id: bigint;
169
169
  }[]>;
170
170
  trash: ({ ids }: {
171
171
  ids: number[];
@@ -178,8 +178,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
178
178
  istrash: boolean | null;
179
179
  accountid: bigint | null;
180
180
  user_id: bigint | null;
181
- branch_user_id: bigint;
182
181
  parent_user_id: bigint | null;
182
+ branch_user_id: bigint;
183
183
  }[]>;
184
184
  remove: ({ ids, where }: {
185
185
  ids?: number[];
@@ -193,8 +193,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
193
193
  istrash: boolean | null;
194
194
  accountid: bigint | null;
195
195
  user_id: bigint | null;
196
- branch_user_id: bigint;
197
196
  parent_user_id: bigint | null;
197
+ branch_user_id: bigint;
198
198
  }[]>;
199
199
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
200
200
  rawExec: (query: string, params?: any[]) => Promise<number>;
@@ -20,8 +20,6 @@ export declare const ModelAgentFields: {
20
20
  user_id: "user_id";
21
21
  remark: "remark";
22
22
  company_name: "company_name";
23
- owner_user_type: "owner_user_type";
24
- owner_user_id: "owner_user_id";
25
23
  identity_no: "identity_no";
26
24
  gender: "gender";
27
25
  dob: "dob";
@@ -53,7 +51,7 @@ export type ModelAgentListProps = {
53
51
  };
54
52
  export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
55
53
  selectedPrisma: any;
56
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob" | "agent_id";
54
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "identity_no" | "gender" | "dob" | "agent_id";
57
55
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
58
56
  name: string;
59
57
  type: string;
@@ -78,8 +76,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
78
76
  user_id: bigint;
79
77
  remark: string | null;
80
78
  company_name: string | null;
81
- owner_user_type: string | null;
82
- owner_user_id: bigint;
83
79
  identity_no: string | null;
84
80
  gender: string | null;
85
81
  dob: Date | null;
@@ -106,8 +102,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
106
102
  user_id: bigint;
107
103
  remark: string | null;
108
104
  company_name: string | null;
109
- owner_user_type: string | null;
110
- owner_user_id: bigint;
111
105
  identity_no: string | null;
112
106
  gender: string | null;
113
107
  dob: Date | null;
@@ -135,8 +129,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
135
129
  user_id: bigint;
136
130
  remark: string | null;
137
131
  company_name: string | null;
138
- owner_user_type: string | null;
139
- owner_user_id: bigint;
140
132
  identity_no: string | null;
141
133
  gender: string | null;
142
134
  dob: Date | null;
@@ -160,8 +152,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
160
152
  user_id: bigint;
161
153
  remark: string | null;
162
154
  company_name: string | null;
163
- owner_user_type: string | null;
164
- owner_user_id: bigint;
165
155
  identity_no: string | null;
166
156
  gender: string | null;
167
157
  dob: Date | null;
@@ -171,7 +161,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
171
161
  where?: Record<string, any>;
172
162
  }) => Promise<number>;
173
163
  aggregate: ({ field, operation, where, }: {
174
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob" | "agent_id";
164
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "identity_no" | "gender" | "dob" | "agent_id";
175
165
  operation?: "sum" | "avg" | "min" | "max" | "count";
176
166
  where?: Record<string, any>;
177
167
  }) => Promise<number>;
@@ -196,8 +186,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
196
186
  user_id: bigint;
197
187
  remark: string | null;
198
188
  company_name: string | null;
199
- owner_user_type: string | null;
200
- owner_user_id: bigint;
201
189
  identity_no: string | null;
202
190
  gender: string | null;
203
191
  dob: Date | null;
@@ -222,8 +210,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
222
210
  user_id: bigint;
223
211
  remark: string | null;
224
212
  company_name: string | null;
225
- owner_user_type: string | null;
226
- owner_user_id: bigint;
227
213
  identity_no: string | null;
228
214
  gender: string | null;
229
215
  dob: Date | null;
@@ -250,8 +236,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
250
236
  user_id: bigint;
251
237
  remark: string | null;
252
238
  company_name: string | null;
253
- owner_user_type: string | null;
254
- owner_user_id: bigint;
255
239
  identity_no: string | null;
256
240
  gender: string | null;
257
241
  dob: Date | null;
@@ -277,8 +261,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
277
261
  user_id: bigint;
278
262
  remark: string | null;
279
263
  company_name: string | null;
280
- owner_user_type: string | null;
281
- owner_user_id: bigint;
282
264
  identity_no: string | null;
283
265
  gender: string | null;
284
266
  dob: Date | null;
@@ -304,8 +286,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
304
286
  user_id: bigint;
305
287
  remark: string | null;
306
288
  company_name: string | null;
307
- owner_user_type: string | null;
308
- owner_user_id: bigint;
309
289
  identity_no: string | null;
310
290
  gender: string | null;
311
291
  dob: Date | null;
@@ -332,8 +312,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
332
312
  user_id: bigint;
333
313
  remark: string | null;
334
314
  company_name: string | null;
335
- owner_user_type: string | null;
336
- owner_user_id: bigint;
337
315
  identity_no: string | null;
338
316
  gender: string | null;
339
317
  dob: Date | null;
@@ -22,8 +22,6 @@ export declare const ModelMemberFields: {
22
22
  remark: "remark";
23
23
  company_name: "company_name";
24
24
  member_id: "member_id";
25
- owner_user_type: "owner_user_type";
26
- owner_user_id: "owner_user_id";
27
25
  identity_no: "identity_no";
28
26
  gender: "gender";
29
27
  dob: "dob";
@@ -54,7 +52,7 @@ export type ModelMemberListProps = {
54
52
  };
55
53
  export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
56
54
  selectedPrisma: any;
57
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob";
55
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "identity_no" | "gender" | "dob";
58
56
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
59
57
  name: string;
60
58
  type: string;
@@ -81,8 +79,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
81
79
  remark: string | null;
82
80
  company_name: string | null;
83
81
  member_id: bigint;
84
- owner_user_type: string | null;
85
- owner_user_id: bigint | null;
86
82
  identity_no: string | null;
87
83
  gender: string | null;
88
84
  dob: Date | null;
@@ -110,8 +106,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
110
106
  remark: string | null;
111
107
  company_name: string | null;
112
108
  member_id: bigint;
113
- owner_user_type: string | null;
114
- owner_user_id: bigint | null;
115
109
  identity_no: string | null;
116
110
  gender: string | null;
117
111
  dob: Date | null;
@@ -140,8 +134,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
140
134
  remark: string | null;
141
135
  company_name: string | null;
142
136
  member_id: bigint;
143
- owner_user_type: string | null;
144
- owner_user_id: bigint | null;
145
137
  identity_no: string | null;
146
138
  gender: string | null;
147
139
  dob: Date | null;
@@ -166,8 +158,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
166
158
  remark: string | null;
167
159
  company_name: string | null;
168
160
  member_id: bigint;
169
- owner_user_type: string | null;
170
- owner_user_id: bigint | null;
171
161
  identity_no: string | null;
172
162
  gender: string | null;
173
163
  dob: Date | null;
@@ -176,7 +166,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
176
166
  where?: Record<string, any>;
177
167
  }) => Promise<number>;
178
168
  aggregate: ({ field, operation, where, }: {
179
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob";
169
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "identity_no" | "gender" | "dob";
180
170
  operation?: "sum" | "avg" | "min" | "max" | "count";
181
171
  where?: Record<string, any>;
182
172
  }) => Promise<number>;
@@ -203,8 +193,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
203
193
  remark: string | null;
204
194
  company_name: string | null;
205
195
  member_id: bigint;
206
- owner_user_type: string | null;
207
- owner_user_id: bigint | null;
208
196
  identity_no: string | null;
209
197
  gender: string | null;
210
198
  dob: Date | null;
@@ -230,8 +218,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
230
218
  remark: string | null;
231
219
  company_name: string | null;
232
220
  member_id: bigint;
233
- owner_user_type: string | null;
234
- owner_user_id: bigint | null;
235
221
  identity_no: string | null;
236
222
  gender: string | null;
237
223
  dob: Date | null;
@@ -259,8 +245,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
259
245
  remark: string | null;
260
246
  company_name: string | null;
261
247
  member_id: bigint;
262
- owner_user_type: string | null;
263
- owner_user_id: bigint | null;
264
248
  identity_no: string | null;
265
249
  gender: string | null;
266
250
  dob: Date | null;
@@ -287,8 +271,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
287
271
  remark: string | null;
288
272
  company_name: string | null;
289
273
  member_id: bigint;
290
- owner_user_type: string | null;
291
- owner_user_id: bigint | null;
292
274
  identity_no: string | null;
293
275
  gender: string | null;
294
276
  dob: Date | null;
@@ -315,8 +297,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
315
297
  remark: string | null;
316
298
  company_name: string | null;
317
299
  member_id: bigint;
318
- owner_user_type: string | null;
319
- owner_user_id: bigint | null;
320
300
  identity_no: string | null;
321
301
  gender: string | null;
322
302
  dob: Date | null;
@@ -344,8 +324,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
344
324
  remark: string | null;
345
325
  company_name: string | null;
346
326
  member_id: bigint;
347
- owner_user_type: string | null;
348
- owner_user_id: bigint | null;
349
327
  identity_no: string | null;
350
328
  gender: string | null;
351
329
  dob: Date | null;
@@ -21,6 +21,7 @@ export declare const ModelUserFields: {
21
21
  address: "address";
22
22
  contact_country_code: "contact_country_code";
23
23
  contact_phone_number: "contact_phone_number";
24
+ parent_user_id: "parent_user_id";
24
25
  };
25
26
  export type ModelUser = users;
26
27
  export type ModelUserOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -48,7 +49,7 @@ export type ModelUserListProps = {
48
49
  };
49
50
  export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
50
51
  selectedPrisma: any;
51
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number";
52
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number" | "parent_user_id";
52
53
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
53
54
  name: string;
54
55
  type: string;
@@ -74,6 +75,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
74
75
  address: string | null;
75
76
  contact_country_code: number;
76
77
  contact_phone_number: string | null;
78
+ parent_user_id: bigint;
77
79
  }>;
78
80
  createMany: ({ dataList, disableRollback, }: {
79
81
  dataList: Omit<any, DefaultOmitFields>[];
@@ -97,6 +99,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
97
99
  address: string | null;
98
100
  contact_country_code: number;
99
101
  contact_phone_number: string | null;
102
+ parent_user_id: bigint;
100
103
  }[]>;
101
104
  get: ({ id, where, include, }: {
102
105
  id?: number;
@@ -121,6 +124,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
121
124
  address: string | null;
122
125
  contact_country_code: number;
123
126
  contact_phone_number: string | null;
127
+ parent_user_id: bigint;
124
128
  } | null>;
125
129
  list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
126
130
  createdatetime: Date | null;
@@ -141,12 +145,13 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
141
145
  address: string | null;
142
146
  contact_country_code: number;
143
147
  contact_phone_number: string | null;
148
+ parent_user_id: bigint;
144
149
  }[]>;
145
150
  count: ({ where }?: {
146
151
  where?: Record<string, any>;
147
152
  }) => Promise<number>;
148
153
  aggregate: ({ field, operation, where, }: {
149
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number";
154
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number" | "parent_user_id";
150
155
  operation?: "sum" | "avg" | "min" | "max" | "count";
151
156
  where?: Record<string, any>;
152
157
  }) => Promise<number>;
@@ -172,6 +177,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
172
177
  address: string | null;
173
178
  contact_country_code: number;
174
179
  contact_phone_number: string | null;
180
+ parent_user_id: bigint;
175
181
  }>;
176
182
  disableRollback?: Boolean;
177
183
  }) => Promise<{
@@ -193,6 +199,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
193
199
  address: string | null;
194
200
  contact_country_code: number;
195
201
  contact_phone_number: string | null;
202
+ parent_user_id: bigint;
196
203
  }>;
197
204
  updateMany: ({ dataList, disableRollback, }: {
198
205
  dataList: {
@@ -216,6 +223,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
216
223
  address: string | null;
217
224
  contact_country_code: number;
218
225
  contact_phone_number: string | null;
226
+ parent_user_id: bigint;
219
227
  }>;
220
228
  }[];
221
229
  disableRollback?: boolean;
@@ -238,6 +246,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
238
246
  address: string | null;
239
247
  contact_country_code: number;
240
248
  contact_phone_number: string | null;
249
+ parent_user_id: bigint;
241
250
  }[]>;
242
251
  trash: ({ ids }: {
243
252
  ids: number[];
@@ -260,6 +269,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
260
269
  address: string | null;
261
270
  contact_country_code: number;
262
271
  contact_phone_number: string | null;
272
+ parent_user_id: bigint;
263
273
  }[]>;
264
274
  remove: ({ ids, where }: {
265
275
  ids?: number[];
@@ -283,6 +293,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
283
293
  address: string | null;
284
294
  contact_country_code: number;
285
295
  contact_phone_number: string | null;
296
+ parent_user_id: bigint;
286
297
  }[]>;
287
298
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
288
299
  rawExec: (query: string, params?: any[]) => Promise<number>;
@@ -27,4 +27,3 @@ export { locationsRoutes } from "../routes/location/locationsRoutes";
27
27
  export { injectionFieldRoutes } from "../routes/injection_field/injectionFieldRoutes";
28
28
  export { injectionFieldsRoutes } from "../routes/injection_field/injectionFieldsRoutes";
29
29
  export { accessKeyUtilRoutes } from "../routes/utils/accessKeyUtilRoutes";
30
- export { changePasswordUtilRoutes } from "../routes/utils/changePasswordUtilRoutes";