storemw-core-api 1.0.136 → 1.0.138
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/dist/app.js +1 -0
- package/dist/app.js.map +1 -1
- package/dist/controllers/auth/authController.js +81 -49
- package/dist/controllers/auth/authController.js.map +1 -1
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/index.js +5 -2
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/user/userMeController.d.ts +6 -0
- package/dist/controllers/user/userMeController.js +411 -0
- package/dist/controllers/user/userMeController.js.map +1 -0
- package/dist/lib/service_factory/ServiceFactory.d.ts +5 -0
- package/dist/lib/service_factory/ServiceFactory.js +5 -0
- package/dist/lib/service_factory/ServiceFactory.js.map +1 -1
- package/dist/middlewares/route/index.d.ts +1 -0
- package/dist/middlewares/route/index.js +5 -4
- package/dist/middlewares/route/index.js.map +1 -1
- package/dist/middlewares/route/validateUserMe.d.ts +3 -0
- package/dist/middlewares/route/validateUserMe.js +21 -0
- package/dist/middlewares/route/validateUserMe.js.map +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.js +3 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/user/userMeRoutes.d.ts +2 -0
- package/dist/routes/user/userMeRoutes.js +13 -0
- package/dist/routes/user/userMeRoutes.js.map +1 -0
- package/dist/schema/middleware/route/schemaAccessControl.d.ts +2 -2
- package/dist/schema/payload/auth/schemaAuthToken.d.ts +59 -7
- package/dist/schema/payload/auth/schemaAuthToken.js +12 -3
- package/dist/schema/payload/auth/schemaAuthToken.js.map +1 -1
- package/dist/schema/payload/index.d.ts +2 -2
- package/dist/schema/payload/index.js +3 -2
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/schema/payload/injection_field/schemaInjectionField.d.ts +16 -16
- package/dist/services/auth/AuthService.d.ts +1 -2
- package/dist/services/auth/AuthService.js +78 -40
- package/dist/services/auth/AuthService.js.map +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +3 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/injection_field/InjectionFieldService.d.ts +3 -3
- package/dist/services/user/UserMeService.d.ts +25 -0
- package/dist/services/user/UserMeService.js +274 -0
- package/dist/services/user/UserMeService.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +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()"]}
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { accessKeysRoutes } from "../routes/access_key/accessKeysRoutes";
|
|
|
5
5
|
export { resetPasswordRoutes } from "../routes/reset_password/resetPasswordRoutes";
|
|
6
6
|
export { oneTimeCodeRoutes } from "../routes/one_time_code/oneTimeCodeRoutes";
|
|
7
7
|
export { oneTimeCodesRoutes } from "../routes/one_time_code/oneTimeCodesRoutes";
|
|
8
|
+
export { userMeRoutes } from "../routes/user/userMeRoutes";
|
|
8
9
|
export { userRoutes } from "../routes/user/userRoutes";
|
|
9
10
|
export { usersRoutes } from "../routes/user/usersRoutes";
|
|
10
11
|
export { accountRoutes } from "../routes/account/accountRoutes";
|
package/dist/routes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.changePasswordUtilRoutes = exports.accessKeyUtilRoutes = exports.injectionFieldsRoutes = exports.injectionFieldRoutes = exports.locationsRoutes = exports.locationRoutes = exports.regionsRoutes = exports.regionRoutes = exports.filesRoutes = exports.fileRoutes = exports.itemsRoutes = exports.itemRoutes = exports.documentsRoutes = exports.documentRoutes = exports.userBranchesRoutes = exports.userBranchRoutes = exports.businessesRoutes = exports.businessRoutes = exports.accountsRoutes = exports.accountRoutes = exports.usersRoutes = exports.userRoutes = exports.oneTimeCodesRoutes = exports.oneTimeCodeRoutes = exports.resetPasswordRoutes = exports.accessKeysRoutes = exports.accessKeyRoutes = exports.accessControlRoutes = exports.authRoutes = void 0;
|
|
3
|
+
exports.changePasswordUtilRoutes = exports.accessKeyUtilRoutes = exports.injectionFieldsRoutes = exports.injectionFieldRoutes = exports.locationsRoutes = exports.locationRoutes = exports.regionsRoutes = exports.regionRoutes = exports.filesRoutes = exports.fileRoutes = exports.itemsRoutes = exports.itemRoutes = exports.documentsRoutes = exports.documentRoutes = exports.userBranchesRoutes = exports.userBranchRoutes = exports.businessesRoutes = exports.businessRoutes = exports.accountsRoutes = exports.accountRoutes = exports.usersRoutes = exports.userRoutes = exports.userMeRoutes = exports.oneTimeCodesRoutes = exports.oneTimeCodeRoutes = exports.resetPasswordRoutes = exports.accessKeysRoutes = exports.accessKeyRoutes = exports.accessControlRoutes = exports.authRoutes = void 0;
|
|
4
4
|
var authRoutes_1 = require("../routes/auth/authRoutes");
|
|
5
5
|
Object.defineProperty(exports, "authRoutes", { enumerable: true, get: function () { return authRoutes_1.authRoutes; } });
|
|
6
6
|
var accessControlRoutes_1 = require("../routes/access_control/accessControlRoutes");
|
|
@@ -15,6 +15,8 @@ var oneTimeCodeRoutes_1 = require("../routes/one_time_code/oneTimeCodeRoutes");
|
|
|
15
15
|
Object.defineProperty(exports, "oneTimeCodeRoutes", { enumerable: true, get: function () { return oneTimeCodeRoutes_1.oneTimeCodeRoutes; } });
|
|
16
16
|
var oneTimeCodesRoutes_1 = require("../routes/one_time_code/oneTimeCodesRoutes");
|
|
17
17
|
Object.defineProperty(exports, "oneTimeCodesRoutes", { enumerable: true, get: function () { return oneTimeCodesRoutes_1.oneTimeCodesRoutes; } });
|
|
18
|
+
var userMeRoutes_1 = require("../routes/user/userMeRoutes");
|
|
19
|
+
Object.defineProperty(exports, "userMeRoutes", { enumerable: true, get: function () { return userMeRoutes_1.userMeRoutes; } });
|
|
18
20
|
var userRoutes_1 = require("../routes/user/userRoutes");
|
|
19
21
|
Object.defineProperty(exports, "userRoutes", { enumerable: true, get: function () { return userRoutes_1.userRoutes; } });
|
|
20
22
|
var usersRoutes_1 = require("../routes/user/usersRoutes");
|
package/dist/routes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AAEnB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AACxB,yEAAuE;AAA9D,oHAAA,gBAAgB,OAAA;AAEzB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,8EAA4E;AAAnE,sHAAA,iBAAiB,OAAA;AAC1B,gFAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAE3B,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,gEAA8D;AAArD,8GAAA,aAAa,OAAA;AACtB,kEAAgE;AAAvD,gHAAA,cAAc,OAAA;AAEvB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,uEAAqE;AAA5D,oHAAA,gBAAgB,OAAA;AAEzB,qEAAmE;AAA1D,oHAAA,gBAAgB,OAAA;AACzB,yEAAuE;AAA9D,wHAAA,kBAAkB,OAAA;AAE3B,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,6DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,+DAA6D;AAApD,8GAAA,aAAa,OAAA;AAEtB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,sFAAoF;AAA3E,4HAAA,oBAAoB,OAAA;AAC7B,wFAAsF;AAA7E,8HAAA,qBAAqB,OAAA;AAE9B,0EAAwE;AAA/D,0HAAA,mBAAmB,OAAA;AAC5B,oFAAkF;AAAzE,oIAAA,wBAAwB,OAAA","sourcesContent":["export { authRoutes } from \"@/routes/auth/authRoutes\"\n\nexport { accessControlRoutes } from \"@/routes/access_control/accessControlRoutes\"\n\nexport { accessKeyRoutes } from \"@/routes/access_key/accessKeyRoutes\"\nexport { accessKeysRoutes } from \"@/routes/access_key/accessKeysRoutes\"\n\nexport { resetPasswordRoutes } from \"@/routes/reset_password/resetPasswordRoutes\"\n\nexport { oneTimeCodeRoutes } from \"@/routes/one_time_code/oneTimeCodeRoutes\"\nexport { oneTimeCodesRoutes } from \"@/routes/one_time_code/oneTimeCodesRoutes\"\n\nexport { userRoutes } from \"@/routes/user/userRoutes\"\nexport { usersRoutes } from \"@/routes/user/usersRoutes\"\n\nexport { accountRoutes } from \"@/routes/account/accountRoutes\"\nexport { accountsRoutes } from \"@/routes/account/accountsRoutes\"\n\nexport { businessRoutes } from \"@/routes/business/businessRoutes\"\nexport { businessesRoutes } from \"@/routes/business/businessesRoutes\"\n\nexport { userBranchRoutes } from \"@/routes/branch/userBranchRoutes\"\nexport { userBranchesRoutes } from \"@/routes/branch/userBranchesRoutes\"\n\nexport { documentRoutes } from \"@/routes/document/documentRoutes\"\nexport { documentsRoutes } from \"@/routes/document/documentsRoutes\"\n\nexport { itemRoutes } from \"@/routes/item/itemRoutes\"\nexport { itemsRoutes } from \"@/routes/item/itemsRoutes\"\n\nexport { fileRoutes } from \"@/routes/file/fileRoutes\"\nexport { filesRoutes } from \"@/routes/file/filesRoutes\"\n\nexport { regionRoutes } from \"@/routes/region/regionRoutes\"\nexport { regionsRoutes } from \"@/routes/region/regionsRoutes\"\n\nexport { locationRoutes } from \"@/routes/location/locationRoutes\"\nexport { locationsRoutes } from \"@/routes/location/locationsRoutes\"\n\nexport { injectionFieldRoutes } from \"@/routes/injection_field/injectionFieldRoutes\"\nexport { injectionFieldsRoutes } from \"@/routes/injection_field/injectionFieldsRoutes\"\n\nexport { accessKeyUtilRoutes } from \"@/routes/utils/accessKeyUtilRoutes\"\nexport { changePasswordUtilRoutes } from \"@/routes/utils/changePasswordUtilRoutes\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AAEnB,mFAAiF;AAAxE,0HAAA,mB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Routes\"\n\nexport { accessControlRoutes } from \"@/routes/access_control/accessControlRoutes\"\n\nexport { accessKeyRoutes } from \"@/routes/access_key/accessKeyRoutes\"\nexport { accessKeysRoutes } from \"@/routes/access_key/accessKeysRoutes\"\n\nexport { resetPasswordRoutes } from \"@/routes/reset_password/resetPasswordRoutes\"\n\nexport { oneTimeCodeRoutes } from \"@/routes/one_time_code/oneTimeCodeRoutes\"\nexport { oneTimeCodesRoutes } from \"@/routes/one_time_code/oneTimeCodesRoutes\"\n\nexport { userMeRoutes } from \"@/routes/user/userMeRoutes\"\n\nexport { userRoutes } from \"@/routes/user/userRoutes\"\nexport { usersRoutes } from \"@/routes/user/usersRoutes\"\n\nexport { accountRoutes } from \"@/routes/account/accountRoutes\"\nexport { accountsRoutes } from \"@/routes/account/accountsRoutes\"\n\nexport { businessRoutes } from \"@/routes/business/businessRoutes\"\nexport { businessesRoutes } from \"@/routes/business/businessesRoutes\"\n\nexport { userBranchRoutes } from \"@/routes/branch/userBranchRoutes\"\nexport { userBranchesRoutes } from \"@/routes/branch/userBranchesRoutes\"\n\nexport { documentRoutes } from \"@/routes/document/documentRoutes\"\nexport { documentsRoutes } from \"@/routes/document/documentsRoutes\"\n\nexport { itemRoutes } from \"@/routes/item/itemRoutes\"\nexport { itemsRoutes } from \"@/routes/item/itemsRoutes\"\n\nexport { fileRoutes } from \"@/routes/file/fileRoutes\"\nexport { filesRoutes } from \"@/routes/file/filesRoutes\"\n\nexport { regionRoutes } from \"@/routes/region/regionRoutes\"\nexport { regionsRoutes } from \"@/routes/region/regionsRoutes\"\n\nexport { locationRoutes } from \"@/routes/location/locationRoutes\"\nexport { locationsRoutes } from \"@/routes/location/locationsRoutes\"\n\nexport { injectionFieldRoutes } from \"@/routes/injection_field/injectionFieldRoutes\"\nexport { injectionFieldsRoutes } from \"@/routes/injection_field/injectionFieldsRoutes\"\n\nexport { accessKeyUtilRoutes } from \"@/routes/utils/accessKeyUtilRoutes\"\nexport { changePasswordUtilRoutes } from \"@/routes/utils/changePasswordUtilRoutes\"\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userMeRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const router = (0, express_1.Router)();
|
|
6
|
+
const route_1 = require("../../middlewares/route");
|
|
7
|
+
const controllers_1 = require("../../controllers");
|
|
8
|
+
/** user/me - Delete User Me */
|
|
9
|
+
router.delete("/", route_1.validateRouteUserMeDelete, controllers_1.deleteUserMe);
|
|
10
|
+
/** user/me - Get User Me */
|
|
11
|
+
router.get("/", route_1.validateRouteUserMeGet, controllers_1.getUserMe);
|
|
12
|
+
exports.userMeRoutes = router;
|
|
13
|
+
//# sourceMappingURL=userMeRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userMeRoutes.js","sourceRoot":"","sources":["../../../src/routes/user/userMeRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAwF;AAExF,+CAAwD;AAExD,+BAA+B;AAC/B,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,iCAAyB,EAAE,0BAAY,CAAC,CAAC;AAE5D,4BAA4B;AAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,8BAAsB,EAAE,uBAAS,CAAC,CAAC;AAGtC,QAAA,YAAY,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { validateRouteUserMeGet, validateRouteUserMeDelete } from \"@/middlewares/route\";\n\nimport { getUserMe, deleteUserMe } from \"@/controllers\";\n\n/** user/me - Delete User Me */\nrouter.delete(\"/\", validateRouteUserMeDelete, deleteUserMe);\n\n/** user/me - Get User Me */\nrouter.get(\"/\", validateRouteUserMeGet, getUserMe);\n\n\nexport const userMeRoutes: Router = router\n"]}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
export declare const schemaRouteAccessControlListPolicyOptions: z.ZodObject<{
|
|
4
4
|
userType: z.ZodEnum<["operator", "administrator", "worker", "supplier", "customer", "driver", "retailer", "member", "agent"]>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
userType: "operator" | "administrator" | "worker" | "
|
|
6
|
+
userType: "operator" | "administrator" | "worker" | "driver" | "member" | "agent" | "customer" | "supplier" | "retailer";
|
|
7
7
|
}, {
|
|
8
|
-
userType: "operator" | "administrator" | "worker" | "
|
|
8
|
+
userType: "operator" | "administrator" | "worker" | "driver" | "member" | "agent" | "customer" | "supplier" | "retailer";
|
|
9
9
|
}>;
|
|
10
10
|
export type SchemaRouteAccessControlListPolicyOptions = z.infer<typeof schemaRouteAccessControlListPolicyOptions>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const enumAuthTokenTypes: readonly ["administrator", "worker", "customer", "member", "
|
|
2
|
+
export declare const enumAuthTokenTypes: readonly ["administrator", "worker", "customer", "driver", "member", "agent"];
|
|
3
3
|
/** Auth Token (Only Operator) */
|
|
4
4
|
export declare const schemaAuthTokenOperatorPayload: z.ZodObject<{
|
|
5
5
|
scope: z.ZodObject<{
|
|
@@ -44,16 +44,16 @@ export declare const schemaAuthTokenOperatorPayload: z.ZodObject<{
|
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
export type SchemaAuthTokenOperatorPayload = z.infer<typeof schemaAuthTokenOperatorPayload>;
|
|
47
|
-
/** Auth Token (
|
|
47
|
+
/** Auth Token (With Account) */
|
|
48
48
|
export declare const schemaAuthTokenPayload: z.ZodObject<{
|
|
49
49
|
scope: z.ZodObject<{
|
|
50
|
-
target: z.ZodEnum<["administrator", "worker", "customer", "member", "
|
|
50
|
+
target: z.ZodEnum<["administrator", "worker", "customer", "driver", "member", "agent"]>;
|
|
51
51
|
action: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
target: "administrator" | "worker" | "
|
|
53
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
54
54
|
action: string;
|
|
55
55
|
}, {
|
|
56
|
-
target: "administrator" | "worker" | "
|
|
56
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
57
57
|
action: string;
|
|
58
58
|
}>;
|
|
59
59
|
payload: z.ZodEffects<z.ZodObject<{
|
|
@@ -84,7 +84,7 @@ export declare const schemaAuthTokenPayload: z.ZodObject<{
|
|
|
84
84
|
}>;
|
|
85
85
|
}, "strip", z.ZodTypeAny, {
|
|
86
86
|
scope: {
|
|
87
|
-
target: "administrator" | "worker" | "
|
|
87
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
88
88
|
action: string;
|
|
89
89
|
};
|
|
90
90
|
payload: {
|
|
@@ -95,7 +95,7 @@ export declare const schemaAuthTokenPayload: z.ZodObject<{
|
|
|
95
95
|
};
|
|
96
96
|
}, {
|
|
97
97
|
scope: {
|
|
98
|
-
target: "administrator" | "worker" | "
|
|
98
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
99
99
|
action: string;
|
|
100
100
|
};
|
|
101
101
|
payload: {
|
|
@@ -106,3 +106,55 @@ export declare const schemaAuthTokenPayload: z.ZodObject<{
|
|
|
106
106
|
};
|
|
107
107
|
}>;
|
|
108
108
|
export type SchemaAuthTokenPayload = z.infer<typeof schemaAuthTokenPayload>;
|
|
109
|
+
/** Auth Token (Optional with Account) */
|
|
110
|
+
export declare const schemaAuthTokenOptionalAccountPayload: z.ZodObject<{
|
|
111
|
+
scope: z.ZodObject<{
|
|
112
|
+
target: z.ZodEnum<["administrator", "worker", "customer", "driver", "member", "agent"]>;
|
|
113
|
+
action: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
116
|
+
action: string;
|
|
117
|
+
}, {
|
|
118
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
119
|
+
action: string;
|
|
120
|
+
}>;
|
|
121
|
+
payload: z.ZodObject<{
|
|
122
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
accountCode: z.ZodOptional<z.ZodString>;
|
|
124
|
+
username: z.ZodString;
|
|
125
|
+
password: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
username: string;
|
|
128
|
+
password: string;
|
|
129
|
+
accountId?: string | undefined;
|
|
130
|
+
accountCode?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
username: string;
|
|
133
|
+
password: string;
|
|
134
|
+
accountId?: string | undefined;
|
|
135
|
+
accountCode?: string | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
scope: {
|
|
139
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
140
|
+
action: string;
|
|
141
|
+
};
|
|
142
|
+
payload: {
|
|
143
|
+
username: string;
|
|
144
|
+
password: string;
|
|
145
|
+
accountId?: string | undefined;
|
|
146
|
+
accountCode?: string | undefined;
|
|
147
|
+
};
|
|
148
|
+
}, {
|
|
149
|
+
scope: {
|
|
150
|
+
target: "administrator" | "worker" | "driver" | "member" | "agent" | "customer";
|
|
151
|
+
action: string;
|
|
152
|
+
};
|
|
153
|
+
payload: {
|
|
154
|
+
username: string;
|
|
155
|
+
password: string;
|
|
156
|
+
accountId?: string | undefined;
|
|
157
|
+
accountCode?: string | undefined;
|
|
158
|
+
};
|
|
159
|
+
}>;
|
|
160
|
+
export type SchemaAuthTokenOptionalAccountPayload = z.infer<typeof schemaAuthTokenOptionalAccountPayload>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemaAuthTokenPayload = exports.schemaAuthTokenOperatorPayload = exports.enumAuthTokenTypes = void 0;
|
|
3
|
+
exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = exports.schemaAuthTokenOperatorPayload = exports.enumAuthTokenTypes = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.enumAuthTokenTypes = [
|
|
6
6
|
"administrator",
|
|
7
7
|
"worker",
|
|
8
8
|
"customer",
|
|
9
|
+
"driver",
|
|
9
10
|
"member",
|
|
10
|
-
"
|
|
11
|
+
"agent"
|
|
11
12
|
];
|
|
12
13
|
const schemaAuthCredentialBase = zod_1.z.object({
|
|
13
14
|
accountId: zod_1.z.string().min(1).optional(),
|
|
@@ -30,7 +31,7 @@ exports.schemaAuthTokenOperatorPayload = zod_1.z.object({
|
|
|
30
31
|
accountCode: true
|
|
31
32
|
})
|
|
32
33
|
});
|
|
33
|
-
/** Auth Token (
|
|
34
|
+
/** Auth Token (With Account) */
|
|
34
35
|
exports.schemaAuthTokenPayload = zod_1.z.object({
|
|
35
36
|
scope: zod_1.z.object({
|
|
36
37
|
target: zod_1.z.enum(exports.enumAuthTokenTypes),
|
|
@@ -38,4 +39,12 @@ exports.schemaAuthTokenPayload = zod_1.z.object({
|
|
|
38
39
|
}),
|
|
39
40
|
payload: schemaAuthCredential
|
|
40
41
|
});
|
|
42
|
+
/** Auth Token (Optional with Account) */
|
|
43
|
+
exports.schemaAuthTokenOptionalAccountPayload = zod_1.z.object({
|
|
44
|
+
scope: zod_1.z.object({
|
|
45
|
+
target: zod_1.z.enum(exports.enumAuthTokenTypes),
|
|
46
|
+
action: zod_1.z.string(), // can be "" if you want to allow empty string
|
|
47
|
+
}),
|
|
48
|
+
payload: schemaAuthCredentialBase
|
|
49
|
+
});
|
|
41
50
|
//# sourceMappingURL=schemaAuthToken.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaAuthToken.js","sourceRoot":"","sources":["../../../../src/schema/payload/auth/schemaAuthToken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AE,wBAAwB,CAAC,IAAI,CAAC;QACnC,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;KACpB,CAAC;CACL,CAAC,CAAC;AAIH,gCAAgC;AACnB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,IAAI,CACV,0BAAkB,CACrB;QACD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,8CAA8C;KACrE,CAAC;IACF,OAAO,EAAE,oBAAoB;CAChC,CAAC,CAAC;AAIH,yCAAyC;AAC5B,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,OAAC,CAAC,IAAI,CACV,0BAAkB,CACrB;QACD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,8CAA8C;KACrE,CAAC;IACF,OAAO,EAAE,wBAAwB;CACpC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { _, dayjs } from \"@/utils\";\n\nexport const enumAuthTokenTypes = [\n \"administrator\",\n \"worker\",\n \"customer\",\n \"driver\",\n \"member\",\n \"agent\"\n] as const\n\nconst schemaAuthCredentialBase = z.object({\n accountId: z.string().min(1).optional(),\n accountCode: z.string().min(1).optional(),\n username: z.string().min(1),\n password: z.string().min(1),\n});\n\nconst schemaAuthCredential = schemaAuthCredentialBase.refine(\n (data) => data.accountId || data.accountCode,\n {\n message: \"Either account_id or account_code is required\",\n path: [\"account_id\"], // You can point this to either or leave empty\n }\n);\n\n/** Auth Token (Only Operator) */\nexport const schemaAuthTokenOperatorPayload = z.object({\n scope: z.object({\n target: z.enum([\"operator\"]),\n action: z.string(), // can be \"\" if you want to allow empty string\n }),\n payload: schemaAuthCredentialBase.omit({\n accountId: true,\n accountCode: true\n })\n});\n\nexport type SchemaAuthTokenOperatorPayload = z.infer<typeof schemaAuthTokenOperatorPayload>;\n\n/** Auth Token (With Account) */\nexport const schemaAuthTokenPayload = z.object({\n scope: z.object({\n target: z.enum(\n enumAuthTokenTypes\n ),\n action: z.string(), // can be \"\" if you want to allow empty string\n }),\n payload: schemaAuthCredential\n});\n\nexport type SchemaAuthTokenPayload = z.infer<typeof schemaAuthTokenPayload>;\n\n/** Auth Token (Optional with Account) */\nexport const schemaAuthTokenOptionalAccountPayload = z.object({\n scope: z.object({\n target: z.enum(\n enumAuthTokenTypes\n ),\n action: z.string(), // can be \"\" if you want to allow empty string\n }),\n payload: schemaAuthCredentialBase\n});\n\nexport type SchemaAuthTokenOptionalAccountPayload = z.infer<typeof schemaAuthTokenOptionalAccountPayload>;"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { schemaAuthTokenPayload, schemaAuthTokenOperatorPayload } from "../../schema/payload/auth/schemaAuthToken";
|
|
2
|
-
export type { SchemaAuthTokenPayload, SchemaAuthTokenOperatorPayload } from "../../schema/payload/auth/schemaAuthToken";
|
|
1
|
+
export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from "../../schema/payload/auth/schemaAuthToken";
|
|
2
|
+
export type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from "../../schema/payload/auth/schemaAuthToken";
|
|
3
3
|
export { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from "../../schema/payload/access_key/schemaAccessKey";
|
|
4
4
|
export type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from "../../schema/payload/access_key/schemaAccessKey";
|
|
5
5
|
export { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from "../../schema/payload/reset_password/schemaResetPassword";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaChangePasswordUtilPayload = exports.schemaRegionAreaUpdatePayload = exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = void 0;
|
|
3
|
+
exports.schemaItemDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaUserAgentUpdatePayload = exports.schemaUserAgentCreatePayload = exports.schemaUserMemberUpdatePayload = exports.schemaUserMemberCreatePayload = exports.schemaUserDriverUpdatePayload = exports.schemaUserDriverCreatePayload = exports.schemaUserWorkerUpdatePayload = exports.schemaUserWorkerCreatePayload = exports.schemaUserAdministratorUpdatePayload = exports.schemaUserAdministratorCreatePayload = exports.schemaUserRetailerUpdatePayload = exports.schemaUserRetailerCreatePayload = exports.schemaUserCustomerUpdatePayload = exports.schemaUserCustomerCreatePayload = exports.schemaUserOperatorUpdatePayload = exports.schemaUserOperatorCreatePayload = exports.schemaUserCredential = exports.schemaUserDeletePayload = exports.schemaBusinessDeletePayload = exports.schemaBusinessUpdatePayload = exports.schemaBusiness = exports.schemaBusinessCreatePayload = exports.schemaAccountDeletePayload = exports.schemaAccountUpdatePayload = exports.schemaAccountCreatePayload = exports.schemaResetPasswordPerformPayload = exports.schemaResetPasswordValidateCodePayload = exports.schemaResetPasswordRequestPayload = exports.schemaAccessKeyRevokePayload = exports.schemaAccessKeyCreatePayload = exports.schemaAuthTokenOperatorPayload = exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = void 0;
|
|
4
|
+
exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaChangePasswordUtilPayload = exports.schemaRegionAreaUpdatePayload = exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = exports.schemaItemProductCreatePayload = void 0;
|
|
5
5
|
var schemaAuthToken_1 = require("../../schema/payload/auth/schemaAuthToken");
|
|
6
6
|
Object.defineProperty(exports, "schemaAuthTokenPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenPayload; } });
|
|
7
|
+
Object.defineProperty(exports, "schemaAuthTokenOptionalAccountPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOptionalAccountPayload; } });
|
|
7
8
|
Object.defineProperty(exports, "schemaAuthTokenOperatorPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOperatorPayload; } });
|
|
8
9
|
var schemaAccessKey_1 = require("../../schema/payload/access_key/schemaAccessKey");
|
|
9
10
|
Object.defineProperty(exports, "schemaAccessKeyCreatePayload", { enumerable: true, get: function () { return schemaAccessKey_1.schemaAccessKeyCreatePayload; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,yEAA+G;AAAtG,yHAAA,sBAAsB,OAAA;AAAE,iIAAA,8BAA8B,OAAA;AAG/D,+EAAyH;AAAhH,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAGnE,2FAAmL;AAA1K,wIAAA,iCAAiC,OAAA;AAAE,6IAAA,sCAAsC,OAAA;AAAE,wIAAA,iCAAiC,OAAA;AAGrH,wEAA4I;AAAn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,mIAAA,8BAA8B,OAAA;AAEvG,6EAAwJ;AAA/I,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,4FAAkG;AAAzF,2IAAA,+BAA+B,OAAA;AAExC,kFAAwI;AAA/H,yIAAA,kCAAkC,OAAA;AAAE,6IAAA,sCAAsC,OAAA","sourcesContent":["export { schemaAuthTokenPayload, schemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"@/schema/payload/user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"@/schema/payload/user/schemaUser\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"@/schema/payload/document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"@/schema/payload/document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"@/schema/payload/item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"@/schema/payload/item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"@/schema/payload/location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"@/schema/payload/location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"@/schema/payload/location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"@/schema/payload/location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"@/schema/payload/location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"@/schema/payload/location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"@/schema/payload/region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"@/schema/payload/region/schemaRegionArea\";\n\nexport { schemaChangePasswordUtilPayload } from \"@/schema/payload/utils/schemaChangePasswordUtil\";\nexport type { SchemaChangePasswordUtilPayload } from \"@/schema/payload/utils/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,yEAAsJ;AAA7I,yHAAA,sBAAsB,OAAA;AAAE,wIAAA,qCAAqC,OAAA;AAAE,iIAAA,8BAA8B,OAAA;AAGtG,+EAAyH;AAAhH,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAGnE,2FAAmL;AAA1K,wIAAA,iCAAiC,OAAA;AAAE,6IAAA,sCAAsC,OAAA;AAAE,wIAAA,iCAAiC,OAAA;AAGrH,wEAA4I;AAAnI,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAG3F,2EAAiK;AAAxJ,6HAAA,2BAA2B,OAAA;AAAE,gHAAA,cAAc,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAG9G,+DAAiG;AAAxF,qHAAA,uBAAuB,OAAA;AAAE,kHAAA,oBAAoB,OAAA;AAEtD,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAEzE,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAEzE,+EAA4H;AAAnH,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAEzE,yFAA2I;AAAlI,+IAAA,oCAAoC,OAAA;AAAE,+IAAA,oCAAoC,OAAA;AAEnF,2EAAsH;AAA7G,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAErE,2EAAsH;AAA7G,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAErE,2EAAsH;AAA7G,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAErE,yEAAmH;AAA1G,+HAA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,qIAAA,+BAA+B,OAAA;AAE1G,mFAA6K;AAApK,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAAE,gHAAA,UAAU,OAAA;AAGtH,8FAAiL;AAAxK,0IAAA,kCAAkC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAGjH,mFAAmK;AAA1J,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAE7G,+EAA2J;AAAlJ,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAEvG,6EAAwJ;AAA/I,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,4FAAkG;AAAzF,2IAAA,+BAA+B,OAAA;AAExC,kFAAwI;AAA/H,yIAAA,kCAAkC,OAAA;AAAE,6IAAA,sCAAsC,OAAA","sourcesContent":["export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from \"@/schema/payload/auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"@/schema/payload/access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"@/schema/payload/reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"@/schema/payload/account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"@/schema/payload/business/schemaBusiness\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"@/schema/payload/user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"@/schema/payload/user/schemaUser\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"@/schema/payload/user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"@/schema/payload/user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"@/schema/payload/user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"@/schema/payload/user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"@/schema/payload/user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"@/schema/payload/user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"@/schema/payload/user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"@/schema/payload/user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"@/schema/payload/file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"@/schema/payload/document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"@/schema/payload/document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"@/schema/payload/document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"@/schema/payload/document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"@/schema/payload/item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"@/schema/payload/item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"@/schema/payload/item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"@/schema/payload/item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"@/schema/payload/item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"@/schema/payload/item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"@/schema/payload/item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"@/schema/payload/location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"@/schema/payload/location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"@/schema/payload/location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"@/schema/payload/location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"@/schema/payload/location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"@/schema/payload/location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"@/schema/payload/injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"@/schema/payload/region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"@/schema/payload/region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"@/schema/payload/region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"@/schema/payload/region/schemaRegionArea\";\n\nexport { schemaChangePasswordUtilPayload } from \"@/schema/payload/utils/schemaChangePasswordUtil\";\nexport type { SchemaChangePasswordUtilPayload } from \"@/schema/payload/utils/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"@/schema/payload/utils/schemaAccessKeyUtil\";"]}
|
|
@@ -6,12 +6,12 @@ export declare const injectionFieldSchema: z.ZodDiscriminatedUnion<"field_ref",
|
|
|
6
6
|
field_type: z.ZodEnum<["id", "value", "numeric", "integer", "timestamp", "date", "date_time", "text"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
field_ref: "user";
|
|
9
|
-
field_module: "administrator" | "worker" | "
|
|
9
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
10
10
|
field_key: string;
|
|
11
11
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
12
12
|
}, {
|
|
13
13
|
field_ref: "user";
|
|
14
|
-
field_module: "administrator" | "worker" | "
|
|
14
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
15
15
|
field_key: string;
|
|
16
16
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
17
17
|
}>, z.ZodObject<{
|
|
@@ -130,13 +130,13 @@ export declare const injectionFieldSchemaReplace: z.ZodDiscriminatedUnion<"field
|
|
|
130
130
|
field_value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
132
|
field_ref: "user";
|
|
133
|
-
field_module: "administrator" | "worker" | "
|
|
133
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
134
134
|
field_key: string;
|
|
135
135
|
ref_id: string | number;
|
|
136
136
|
field_value: string | number;
|
|
137
137
|
}, {
|
|
138
138
|
field_ref: "user";
|
|
139
|
-
field_module: "administrator" | "worker" | "
|
|
139
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
140
140
|
field_key: string;
|
|
141
141
|
ref_id: string | number;
|
|
142
142
|
field_value: string | number;
|
|
@@ -298,12 +298,12 @@ export declare const schemaInjectionFieldCreatePayload: z.ZodObject<{
|
|
|
298
298
|
field_type: z.ZodEnum<["id", "value", "numeric", "integer", "timestamp", "date", "date_time", "text"]>;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
300
|
field_ref: "user";
|
|
301
|
-
field_module: "administrator" | "worker" | "
|
|
301
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
302
302
|
field_key: string;
|
|
303
303
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
304
304
|
}, {
|
|
305
305
|
field_ref: "user";
|
|
306
|
-
field_module: "administrator" | "worker" | "
|
|
306
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
307
307
|
field_key: string;
|
|
308
308
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
309
309
|
}>, z.ZodObject<{
|
|
@@ -415,7 +415,7 @@ export declare const schemaInjectionFieldCreatePayload: z.ZodObject<{
|
|
|
415
415
|
}, "strip", z.ZodTypeAny, {
|
|
416
416
|
injection_fields: ({
|
|
417
417
|
field_ref: "user";
|
|
418
|
-
field_module: "administrator" | "worker" | "
|
|
418
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
419
419
|
field_key: string;
|
|
420
420
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
421
421
|
} | {
|
|
@@ -457,7 +457,7 @@ export declare const schemaInjectionFieldCreatePayload: z.ZodObject<{
|
|
|
457
457
|
}, {
|
|
458
458
|
injection_fields: ({
|
|
459
459
|
field_ref: "user";
|
|
460
|
-
field_module: "administrator" | "worker" | "
|
|
460
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
461
461
|
field_key: string;
|
|
462
462
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
463
463
|
} | {
|
|
@@ -504,7 +504,7 @@ export declare const schemaInjectionFieldCreatePayload: z.ZodObject<{
|
|
|
504
504
|
payload: {
|
|
505
505
|
injection_fields: ({
|
|
506
506
|
field_ref: "user";
|
|
507
|
-
field_module: "administrator" | "worker" | "
|
|
507
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
508
508
|
field_key: string;
|
|
509
509
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
510
510
|
} | {
|
|
@@ -551,7 +551,7 @@ export declare const schemaInjectionFieldCreatePayload: z.ZodObject<{
|
|
|
551
551
|
payload: {
|
|
552
552
|
injection_fields: ({
|
|
553
553
|
field_ref: "user";
|
|
554
|
-
field_module: "administrator" | "worker" | "
|
|
554
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
555
555
|
field_key: string;
|
|
556
556
|
field_type: "id" | "value" | "integer" | "date" | "numeric" | "timestamp" | "date_time" | "text";
|
|
557
557
|
} | {
|
|
@@ -613,13 +613,13 @@ export declare const schemaInjectionFieldReplacePayload: z.ZodObject<{
|
|
|
613
613
|
field_value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
614
614
|
}, "strip", z.ZodTypeAny, {
|
|
615
615
|
field_ref: "user";
|
|
616
|
-
field_module: "administrator" | "worker" | "
|
|
616
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
617
617
|
field_key: string;
|
|
618
618
|
ref_id: string | number;
|
|
619
619
|
field_value: string | number;
|
|
620
620
|
}, {
|
|
621
621
|
field_ref: "user";
|
|
622
|
-
field_module: "administrator" | "worker" | "
|
|
622
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
623
623
|
field_key: string;
|
|
624
624
|
ref_id: string | number;
|
|
625
625
|
field_value: string | number;
|
|
@@ -767,7 +767,7 @@ export declare const schemaInjectionFieldReplacePayload: z.ZodObject<{
|
|
|
767
767
|
}, "strip", z.ZodTypeAny, {
|
|
768
768
|
injection_fields: ({
|
|
769
769
|
field_ref: "user";
|
|
770
|
-
field_module: "administrator" | "worker" | "
|
|
770
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
771
771
|
field_key: string;
|
|
772
772
|
ref_id: string | number;
|
|
773
773
|
field_value: string | number;
|
|
@@ -817,7 +817,7 @@ export declare const schemaInjectionFieldReplacePayload: z.ZodObject<{
|
|
|
817
817
|
}, {
|
|
818
818
|
injection_fields: ({
|
|
819
819
|
field_ref: "user";
|
|
820
|
-
field_module: "administrator" | "worker" | "
|
|
820
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
821
821
|
field_key: string;
|
|
822
822
|
ref_id: string | number;
|
|
823
823
|
field_value: string | number;
|
|
@@ -872,7 +872,7 @@ export declare const schemaInjectionFieldReplacePayload: z.ZodObject<{
|
|
|
872
872
|
payload: {
|
|
873
873
|
injection_fields: ({
|
|
874
874
|
field_ref: "user";
|
|
875
|
-
field_module: "administrator" | "worker" | "
|
|
875
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
876
876
|
field_key: string;
|
|
877
877
|
ref_id: string | number;
|
|
878
878
|
field_value: string | number;
|
|
@@ -927,7 +927,7 @@ export declare const schemaInjectionFieldReplacePayload: z.ZodObject<{
|
|
|
927
927
|
payload: {
|
|
928
928
|
injection_fields: ({
|
|
929
929
|
field_ref: "user";
|
|
930
|
-
field_module: "administrator" | "worker" | "
|
|
930
|
+
field_module: "administrator" | "worker" | "driver" | "member" | "customer" | "retailer";
|
|
931
931
|
field_key: string;
|
|
932
932
|
ref_id: string | number;
|
|
933
933
|
field_value: string | number;
|
|
@@ -25,7 +25,6 @@ export type AuthServiceProps = DefaultServiceProps & {
|
|
|
25
25
|
};
|
|
26
26
|
export type AuthGetTokenProps = {
|
|
27
27
|
authType: AuthType;
|
|
28
|
-
accountId?: number;
|
|
29
28
|
accountCode?: string;
|
|
30
29
|
data: {
|
|
31
30
|
username: string;
|
|
@@ -33,7 +32,7 @@ export type AuthGetTokenProps = {
|
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
34
|
export declare const AuthService: (props: AuthServiceProps) => {
|
|
36
|
-
getAuthToken: ({ authType, data,
|
|
35
|
+
getAuthToken: ({ authType, data, accountCode }: AuthGetTokenProps) => Promise<{
|
|
37
36
|
token: string;
|
|
38
37
|
account: any;
|
|
39
38
|
user: any;
|