storemw-core-api 1.0.152 → 1.0.154
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/controllers/index.d.ts +1 -0
- package/dist/controllers/index.js +8 -1
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/scheduler/schedulerRequestController.d.ts +11 -0
- package/dist/controllers/scheduler/schedulerRequestController.js +156 -0
- package/dist/controllers/scheduler/schedulerRequestController.js.map +1 -0
- package/dist/features/index.d.ts +1 -1
- package/dist/features/index.js.map +1 -1
- package/dist/features/user_me/userMeRegistry.js +4 -0
- package/dist/features/user_me/userMeRegistry.js.map +1 -1
- package/dist/features/user_me/userMeType.d.ts +17 -3
- package/dist/features/user_me/userMeType.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +4 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/query_builder/queryScheduler.d.ts +13 -0
- package/dist/lib/query_builder/queryScheduler.js +47 -1
- package/dist/lib/query_builder/queryScheduler.js.map +1 -1
- package/dist/middlewares/route/index.d.ts +2 -1
- package/dist/middlewares/route/index.js +13 -7
- package/dist/middlewares/route/index.js.map +1 -1
- package/dist/middlewares/route/validateScheduler.d.ts +10 -0
- package/dist/middlewares/route/validateScheduler.js +39 -0
- package/dist/middlewares/route/validateScheduler.js.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +4 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/scheduler/SchedulerRequestModel.d.ts +327 -0
- package/dist/models/scheduler/SchedulerRequestModel.js +13 -0
- package/dist/models/scheduler/SchedulerRequestModel.js.map +1 -0
- package/dist/routes/scheduler/schedulerRequestRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulerRequestRoutes.js +15 -0
- package/dist/routes/scheduler/schedulerRequestRoutes.js.map +1 -0
- package/dist/routes/scheduler/schedulerRequestsRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulerRequestsRoutes.js +13 -0
- package/dist/routes/scheduler/schedulerRequestsRoutes.js.map +1 -0
- package/dist/routes/scheduler/schedulersRoutes.js +5 -0
- package/dist/routes/scheduler/schedulersRoutes.js.map +1 -1
- package/dist/schema/middleware/route/index.d.ts +2 -2
- package/dist/schema/middleware/route/index.js +4 -3
- package/dist/schema/middleware/route/index.js.map +1 -1
- package/dist/schema/middleware/route/schemaScheduler.d.ts +7 -0
- package/dist/schema/middleware/route/schemaScheduler.js +15 -0
- package/dist/schema/middleware/route/schemaScheduler.js.map +1 -0
- package/dist/schema/payload/index.d.ts +2 -0
- package/dist/schema/payload/index.js +5 -1
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/schema/payload/scheduler/schemaSchedulerRequest.d.ts +254 -0
- package/dist/schema/payload/scheduler/schemaSchedulerRequest.js +46 -0
- package/dist/schema/payload/scheduler/schemaSchedulerRequest.js.map +1 -0
- package/dist/services/auth/AuthService.js +2 -2
- package/dist/services/auth/AuthService.js.map +1 -1
- package/dist/services/file/FileService.js +4 -4
- package/dist/services/file/FileService.js.map +1 -1
- package/dist/services/gateway/SmtpEmailService.js +5 -4
- package/dist/services/gateway/SmtpEmailService.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/reset_password/ResetPasswordService.js +4 -4
- package/dist/services/reset_password/ResetPasswordService.js.map +1 -1
- package/dist/services/scheduler/SchedulerRequestService.d.ts +109 -0
- package/dist/services/scheduler/SchedulerRequestService.js +141 -0
- package/dist/services/scheduler/SchedulerRequestService.js.map +1 -0
- package/dist/services/user/UserMeService.js +29 -8
- package/dist/services/user/UserMeService.js.map +1 -1
- package/dist/utils/featureUtils.d.ts +3 -0
- package/dist/utils/featureUtils.js +11 -0
- package/dist/utils/featureUtils.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/serviceUtils.d.ts +1 -0
- package/dist/utils/serviceUtils.js +2 -1
- package/dist/utils/serviceUtils.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +80 -54
package/dist/utils/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getAllPermissionKeysByPolicies = exports.validateFormatMobileNumber = exports.validateFormatEmailAddress = exports.generateFileThumbnailBuffer = exports.verifyPassword = exports.hashPassword = exports.validateLoginPasswordFormat = exports.loginPasswordFormatSchema = exports.decryptAccessKeySecret = exports.encryptAccessKeySecret = exports.hashAccessKeySecret = exports.generateAccessKeySecret = exports.generateAccessKeyId = exports.verifyAuthToken = exports.generateAuthToken = exports.groupPayloadInjectionFields = exports.buildFullFieldName = exports.generateServiceProps = exports.getDefaultServiceProps = exports.zodEnumFromObjectValues = exports.buildCommonStatusSchema = exports.getFormattedZodErrorsIntoString = exports.getFormattedZodErrors = exports.logError = exports.throwError = exports.logger = exports.normalizePublicScopeFromBody = exports.createPublicScopeSchema = exports.validateModelFieldsWithData = exports.convertPayloadByTableSchema = exports.validateMultipleSchemas = exports.validateWithSchema = exports.formatDisplayDateTime = exports.getCurrentDateTimeISO = exports.getCurrentDateTime = exports.dayjs = exports.sendSuccess = exports.sendError = exports.HTTP_STATUS = exports.sharp = exports._ = exports.getCoreConfiguration = void 0;
|
|
6
|
+
exports.getAllPermissionKeysByPolicies = exports.validateFormatMobileNumber = exports.validateFormatEmailAddress = exports.generateFileThumbnailBuffer = exports.verifyPassword = exports.hashPassword = exports.validateLoginPasswordFormat = exports.loginPasswordFormatSchema = exports.decryptAccessKeySecret = exports.encryptAccessKeySecret = exports.hashAccessKeySecret = exports.generateAccessKeySecret = exports.generateAccessKeyId = exports.verifyAuthToken = exports.generateAuthToken = exports.groupPayloadInjectionFields = exports.buildFullFieldName = exports.buildFeatureCallbackProps = exports.generateServiceProps = exports.getDefaultServiceProps = exports.zodEnumFromObjectValues = exports.buildCommonStatusSchema = exports.getFormattedZodErrorsIntoString = exports.getFormattedZodErrors = exports.logError = exports.throwError = exports.logger = exports.normalizePublicScopeFromBody = exports.createPublicScopeSchema = exports.validateModelFieldsWithData = exports.convertPayloadByTableSchema = exports.validateMultipleSchemas = exports.validateWithSchema = exports.formatDisplayDateTime = exports.getCurrentDateTimeISO = exports.getCurrentDateTime = exports.dayjs = exports.sendSuccess = exports.sendError = exports.HTTP_STATUS = exports.sharp = exports._ = exports.getCoreConfiguration = void 0;
|
|
7
7
|
var coreConfigUtils_1 = require("./coreConfigUtils");
|
|
8
8
|
Object.defineProperty(exports, "getCoreConfiguration", { enumerable: true, get: function () { return coreConfigUtils_1.getCoreConfiguration; } });
|
|
9
9
|
var lodash_1 = require("lodash");
|
|
@@ -43,6 +43,8 @@ Object.defineProperty(exports, "zodEnumFromObjectValues", { enumerable: true, ge
|
|
|
43
43
|
var serviceUtils_1 = require("./serviceUtils");
|
|
44
44
|
Object.defineProperty(exports, "getDefaultServiceProps", { enumerable: true, get: function () { return serviceUtils_1.getDefaultServiceProps; } });
|
|
45
45
|
Object.defineProperty(exports, "generateServiceProps", { enumerable: true, get: function () { return serviceUtils_1.generateServiceProps; } });
|
|
46
|
+
var featureUtils_1 = require("./featureUtils");
|
|
47
|
+
Object.defineProperty(exports, "buildFeatureCallbackProps", { enumerable: true, get: function () { return featureUtils_1.buildFeatureCallbackProps; } });
|
|
46
48
|
var injectionFieldUtils_1 = require("./injectionFieldUtils");
|
|
47
49
|
Object.defineProperty(exports, "buildFullFieldName", { enumerable: true, get: function () { return injectionFieldUtils_1.buildFullFieldName; } });
|
|
48
50
|
Object.defineProperty(exports, "groupPayloadInjectionFields", { enumerable: true, get: function () { return injectionFieldUtils_1.groupPayloadInjectionFields; } });
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,iCAAsC;AAA7B,4GAAA,OAAO,OAAK;AACrB,+BAAyC;AAAhC,+GAAA,OAAO,OAAS;AACzB,iDAAsE;AAA7D,4GAAA,WAAW,OAAA;AAAE,0GAAA,SAAS,OAAA;AAAE,4GAAA,WAAW,OAAA;AAC5C,yCAAsG;AAA7F,kGAAA,KAAK,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAChF,6CAA6L;AAApL,iHAAA,kBAAkB,OAAA;AAAE,sHAAA,uBAAuB,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAAE,sHAAA,uBAAuB,OAAA;AAAE,2HAAA,4BAA4B,OAAA;AACrK,uCAA+C;AAAtC,mHAAA,OAAO,OAAU;AAC1B,mDAAwD;AAA/C,4GAAA,UAAU,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAC7B,2CAA2C;AAC3C,wFAAwF;AACxF,mEAAmE;AACnE,mDAAmD;AACnD,uCAAqI;AAA5H,iHAAA,qBAAqB,OAAA;AAAE,2HAAA,+BAA+B,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAEjH,+CAA6E;AAApE,sHAAA,sBAAsB,OAAA;AAAE,oHAAA,oBAAoB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,iCAAsC;AAA7B,4GAAA,OAAO,OAAK;AACrB,+BAAyC;AAAhC,+GAAA,OAAO,OAAS;AACzB,iDAAsE;AAA7D,4GAAA,WAAW,OAAA;AAAE,0GAAA,SAAS,OAAA;AAAE,4GAAA,WAAW,OAAA;AAC5C,yCAAsG;AAA7F,kGAAA,KAAK,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAChF,6CAA6L;AAApL,iHAAA,kBAAkB,OAAA;AAAE,sHAAA,uBAAuB,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAAE,0HAAA,2BAA2B,OAAA;AAAE,sHAAA,uBAAuB,OAAA;AAAE,2HAAA,4BAA4B,OAAA;AACrK,uCAA+C;AAAtC,mHAAA,OAAO,OAAU;AAC1B,mDAAwD;AAA/C,4GAAA,UAAU,OAAA;AAAE,0GAAA,QAAQ,OAAA;AAC7B,2CAA2C;AAC3C,wFAAwF;AACxF,mEAAmE;AACnE,mDAAmD;AACnD,uCAAqI;AAA5H,iHAAA,qBAAqB,OAAA;AAAE,2HAAA,+BAA+B,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAAE,mHAAA,uBAAuB,OAAA;AAEjH,+CAA6E;AAApE,sHAAA,sBAAsB,OAAA;AAAE,oHAAA,oBAAoB,OAAA;AACrD,+CAA0D;AAAjD,yHAAA,yBAAyB,OAAA;AAElC,6DAAuF;AAA9E,yHAAA,kBAAkB,OAAA;AAAE,kIAAA,2BAA2B,OAAA;AACxD,yCAAgE;AAAvD,8GAAA,iBAAiB,OAAA;AAAE,4GAAA,eAAe,OAAA;AAC3C,mDAAoJ;AAA3I,qHAAA,mBAAmB,OAAA;AAAE,yHAAA,uBAAuB,OAAA;AAAE,qHAAA,mBAAmB,OAAA;AAAE,wHAAA,sBAAsB,OAAA;AAAE,wHAAA,sBAAsB,OAAA;AAC1H,iDAAsH;AAA7G,0HAAA,yBAAyB,OAAA;AAAE,4HAAA,2BAA2B,OAAA;AAAE,6GAAA,YAAY,OAAA;AAAE,+GAAA,cAAc,OAAA;AAC7F,iDAA6D;AAApD,4HAAA,2BAA2B,OAAA;AACpC,6DAA8F;AAArF,iIAAA,0BAA0B,OAAA;AAAE,iIAAA,0BAA0B,OAAA;AAC/D,2DAAqE;AAA5D,oIAAA,8BAA8B,OAAA","sourcesContent":["export { getCoreConfiguration } from \"./coreConfigUtils\";\nexport { default as _ } from \"lodash\";\nexport { default as sharp } from \"sharp\";\nexport { HTTP_STATUS, sendError, sendSuccess } from \"./responseUtils\";\nexport { dayjs, getCurrentDateTime, getCurrentDateTimeISO, formatDisplayDateTime } from \"./dateUtils\";\nexport { validateWithSchema, validateMultipleSchemas, convertPayloadByTableSchema, validateModelFieldsWithData, createPublicScopeSchema, normalizePublicScopeFromBody } from \"./schemaUtils\";\nexport { default as logger } from \"./logUtils\";\nexport { throwError, logError } from \"./exceptionUtils\";\n// export { getSwmAuth } from \"./smwUtils\";\n// export { getRequestHeaderLocCode, checkRequestContentIsEmpty } from \"./requestUtils\";\n// export { storeJwtInMemory, getJwtFromMemory } from \"./jwtUtils\";\n// export { resizeImageBuffer } from \"./shapeUtils\"\nexport { getFormattedZodErrors, getFormattedZodErrorsIntoString, buildCommonStatusSchema, zodEnumFromObjectValues } from \"./zodUtils\"\nexport type { DefaultServiceProps } from \"./serviceUtils\"\nexport { getDefaultServiceProps, generateServiceProps } from \"./serviceUtils\"\nexport { buildFeatureCallbackProps } from \"./featureUtils\"\nexport type { FeatureCallbackProps } from \"./featureUtils\"\nexport { buildFullFieldName, groupPayloadInjectionFields } from \"./injectionFieldUtils\"\nexport { generateAuthToken, verifyAuthToken } from \"./authUtils\"\nexport { generateAccessKeyId, generateAccessKeySecret, hashAccessKeySecret, encryptAccessKeySecret, decryptAccessKeySecret } from \"./accessKeyUtils\"\nexport { loginPasswordFormatSchema, validateLoginPasswordFormat, hashPassword, verifyPassword } from \"./passwordUtils\"\nexport { generateFileThumbnailBuffer } from \"./fileThumbnail\"\nexport { validateFormatEmailAddress, validateFormatMobileNumber } from \"./validateFormatUtils\"\nexport { getAllPermissionKeysByPolicies } from \"./accessControlUtils\""]}
|
|
@@ -7,6 +7,7 @@ export type DefaultServiceProps = {
|
|
|
7
7
|
isOperator: boolean;
|
|
8
8
|
accessKey?: string;
|
|
9
9
|
accessKeyId?: string;
|
|
10
|
+
req?: Request;
|
|
10
11
|
};
|
|
11
12
|
export declare const getDefaultServiceProps: (req: Request) => DefaultServiceProps;
|
|
12
13
|
export declare const generateServiceProps: ({ buildType, accessKey }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceUtils.js","sourceRoot":"","sources":["../../src/utils/serviceUtils.ts"],"names":[],"mappings":";;;AAEA,yCAA6D;AAC7D,qDAA8C;AAE9C,uDAAyD;
|
|
1
|
+
{"version":3,"file":"serviceUtils.js","sourceRoot":"","sources":["../../src/utils/serviceUtils.ts"],"names":[],"mappings":";;;AAEA,yCAA6D;AAC7D,qDAA8C;AAE9C,uDAAyD;AAalD,MAAM,sBAAsB,GAAG,CAAC,GAAY,EAAuB,EAAE;IAExE,MAAM,kBAAkB,GAAI,GAAW,EAAE,IAAI,IAAI,EAAE,CAAA;IACnD,MAAM,SAAS,GAAI,GAAW,EAAE,SAAS,IAAI,EAAE,CAAA;IAC/C,MAAM,YAAY,GAAI,GAAW,EAAE,YAAY,IAAI,EAAE,CAAA;IACrD,MAAM,cAAc,GAAI,GAAW,EAAE,cAAc,IAAI,EAAE,CAAA;IAEzD,MAAM,EACF,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,EAAE,EACnB,GAAG,kBAAkB,CAAA;IAEtB,OAAO;QACH,SAAS;QACT,YAAY;QACZ,cAAc;QACd,SAAS;QACT,UAAU;QACV,SAAS;QACT,WAAW;QACX,GAAG;KACN,CAAA;AACL,CAAC,CAAA;AAxBY,QAAA,sBAAsB,0BAwBlC;AAEM,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACvC,SAAS,GAAG,YAAY,EACxB,SAAS,EAIZ,EAAgC,EAAE;IAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,sCAAoB,GAAE,CAAA;IAEzC,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,IAAA,2BAAU,EAAC,kEAAkE,CAAC,CAAA;IAClF,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,IAAA,2BAAU,EAAC,8DAA8D,CAAC,CAAA;IAC9E,CAAC;IAED,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,IAAA,2BAAU,EAAC,kEAAkE,CAAC,CAAA;IAClF,CAAC;IAED,MAAM,oBAAoB,GAAG,IAAA,+BAAoB,EAAC;QAC9C,SAAS,EAAE,CAAC;QACZ,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,EAAE;QAClB,SAAS,EAAE,EAAE;QACb,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,EAAE;QACf,iBAAiB,EAAE,UAAU;KAChC,CAAC,CAAA;IAEF,MAAM,kBAAkB,GAAG,MAAM,oBAAoB,CAAC,iBAAiB,CAAC;QACpE,IAAI,EAAE;YACF,SAAS;SACZ;KACJ,CAAC,CAAA;IAEF,8EAA8E;IAE9E,OAAO;QACH,SAAS,EAAE,MAAM,CAAC,kBAAkB,EAAE,SAAS,CAAC;QAChD,YAAY,EAAE,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC;QACjD,cAAc,EAAE,kBAAkB,EAAE,SAAS,IAAI,EAAE;QACnD,SAAS,EAAE,EAAE;QACb,SAAS;QACT,WAAW,EAAE,kBAAkB,EAAE,aAAa,IAAI,EAAE;QACpD,UAAU,EAAE,kBAAkB,EAAE,SAAS,KAAK,oBAAS,CAAC,QAAQ;KACnE,CAAA;AAEL,CAAC,CAAA;AAnDY,QAAA,oBAAoB,wBAmDhC","sourcesContent":["import { Request } from \"express\";\n\nimport { AccessKeyUtilService, userTypes } from \"@/services\";\nimport { throwError } from \"./exceptionUtils\";\n\nimport { getCoreConfiguration } from \"./coreConfigUtils\";\n\nexport type DefaultServiceProps = {\n accountId: number,\n actionUserId: number,\n actionUserType: string,\n authToken: string,\n isOperator: boolean,\n accessKey?: string,\n accessKeyId?: string\n req?: Request\n}\n\nexport const getDefaultServiceProps = (req: Request): DefaultServiceProps => {\n\n const requestAuthContext = (req as any)?.auth ?? {}\n const accountId = (req as any)?.accountId ?? \"\"\n const actionUserId = (req as any)?.actionUserId ?? \"\"\n const actionUserType = (req as any)?.actionUserType ?? \"\"\n\n const {\n authToken = '',\n isOperator = false,\n accessKey = '',\n accessKeyId = ''\n } = requestAuthContext\n\n return {\n accountId,\n actionUserId,\n actionUserType,\n authToken,\n isOperator,\n accessKey,\n accessKeyId,\n req\n }\n}\n\nexport const generateServiceProps = async ({\n buildType = \"access_key\",\n accessKey\n}: {\n buildType?: \"access_key\",\n accessKey: string,\n}): Promise<DefaultServiceProps> => {\n\n const { prisma } = getCoreConfiguration()\n\n if (!buildType) {\n throwError(`Build Type is required in generate service props from access key`)\n }\n\n if (!prisma) {\n throwError(`Prisma is required in generate service props from access key`)\n }\n\n if (!accessKey) {\n throwError(`Access Key is required in generate service props from access key`)\n }\n\n const accessKeyUtilService = AccessKeyUtilService({\n accountId: 0,\n actionUserId: 0,\n actionUserType: \"\",\n authToken: '',\n isOperator: true,\n accessKey: '',\n accessKeyId: '',\n accessKeyUserType: \"operator\"\n })\n\n const validatedAccessKey = await accessKeyUtilService.validateAccessKey({\n data: {\n accessKey\n }\n })\n\n // console.log('defaultServiceProps', defaultServiceProps, validatedAccessKey)\n\n return {\n accountId: Number(validatedAccessKey?.accountid),\n actionUserId: Number(validatedAccessKey?.user_id),\n actionUserType: validatedAccessKey?.user_type ?? \"\",\n authToken: \"\",\n accessKey,\n accessKeyId: validatedAccessKey?.access_key_id ?? \"\",\n isOperator: validatedAccessKey?.user_type === userTypes.operator,\n }\n\n}"]}
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -2109,60 +2109,6 @@ model cl_sales_items {
|
|
|
2109
2109
|
@@schema("public")
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
|
-
model cl_scheduler_logs {
|
|
2113
|
-
scheduler_log_id BigInt @id @default(autoincrement())
|
|
2114
|
-
scheduler_task_id BigInt @default(autoincrement())
|
|
2115
|
-
flow_type String @db.VarChar(256)
|
|
2116
|
-
target String @db.VarChar(256)
|
|
2117
|
-
module String @db.VarChar(256)
|
|
2118
|
-
log_ref String @db.VarChar(256)
|
|
2119
|
-
action String @db.VarChar(256)
|
|
2120
|
-
log_status Int @default(0) @db.SmallInt
|
|
2121
|
-
log_message String?
|
|
2122
|
-
source_id String? @db.VarChar(256)
|
|
2123
|
-
source_type String? @db.VarChar(256)
|
|
2124
|
-
destination_id String? @db.VarChar(256)
|
|
2125
|
-
destination_type String? @db.VarChar(256)
|
|
2126
|
-
source_data String?
|
|
2127
|
-
destination_result String?
|
|
2128
|
-
ax_createdatetime DateTime? @db.Timestamp(6)
|
|
2129
|
-
ax_createuserid BigInt @default(0)
|
|
2130
|
-
ax_updatedatetime DateTime? @db.Timestamp(6)
|
|
2131
|
-
ax_updateuserid BigInt @default(0)
|
|
2132
|
-
ax_isdelete Boolean? @default(false)
|
|
2133
|
-
ax_istrash Boolean? @default(false)
|
|
2134
|
-
ax_accountid BigInt @default(0)
|
|
2135
|
-
destination_submit_data String?
|
|
2136
|
-
|
|
2137
|
-
@@index([scheduler_task_id], map: "idx_scheduler_logs_scheduler_task_id")
|
|
2138
|
-
@@schema("public")
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
model cl_scheduler_requests {
|
|
2142
|
-
scheduler_request_id BigInt @id @default(autoincrement())
|
|
2143
|
-
source_id BigInt? @default(0)
|
|
2144
|
-
request_ref String @db.VarChar(256)
|
|
2145
|
-
module String @db.VarChar(256)
|
|
2146
|
-
target String @db.VarChar(256)
|
|
2147
|
-
integration_id String @db.VarChar(256)
|
|
2148
|
-
destination_id String? @db.VarChar(256)
|
|
2149
|
-
source_data String?
|
|
2150
|
-
action String @db.VarChar(256)
|
|
2151
|
-
attempt_no BigInt? @default(0)
|
|
2152
|
-
attempt_status Int @default(0) @db.SmallInt
|
|
2153
|
-
attempt_result String?
|
|
2154
|
-
ax_createdatetime DateTime? @db.Timestamp(6)
|
|
2155
|
-
ax_createuserid BigInt @default(0)
|
|
2156
|
-
ax_updatedatetime DateTime? @db.Timestamp(6)
|
|
2157
|
-
ax_updateuserid BigInt @default(0)
|
|
2158
|
-
ax_isdelete Boolean? @default(false)
|
|
2159
|
-
ax_istrash Boolean? @default(false)
|
|
2160
|
-
ax_accountid BigInt @default(0)
|
|
2161
|
-
attempt_datetime DateTime? @db.Timestamp(6)
|
|
2162
|
-
|
|
2163
|
-
@@schema("public")
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
2112
|
model cl_scheduler_tasks {
|
|
2167
2113
|
scheduler_task_id BigInt @id @default(autoincrement())
|
|
2168
2114
|
task_key String @db.VarChar(256)
|
|
@@ -3104,3 +3050,83 @@ model repository_pallets {
|
|
|
3104
3050
|
|
|
3105
3051
|
@@schema("public")
|
|
3106
3052
|
}
|
|
3053
|
+
|
|
3054
|
+
model cl_scheduler_logs_bk {
|
|
3055
|
+
scheduler_log_id BigInt @id(map: "cl_scheduler_logs_pkey") @default(autoincrement())
|
|
3056
|
+
scheduler_task_id BigInt @default(autoincrement())
|
|
3057
|
+
flow_type String @db.VarChar(256)
|
|
3058
|
+
target String @db.VarChar(256)
|
|
3059
|
+
module String @db.VarChar(256)
|
|
3060
|
+
log_ref String @db.VarChar(256)
|
|
3061
|
+
action String @db.VarChar(256)
|
|
3062
|
+
log_status Int @default(0) @db.SmallInt
|
|
3063
|
+
log_message String?
|
|
3064
|
+
source_id String? @db.VarChar(256)
|
|
3065
|
+
source_type String? @db.VarChar(256)
|
|
3066
|
+
destination_id String? @db.VarChar(256)
|
|
3067
|
+
destination_type String? @db.VarChar(256)
|
|
3068
|
+
source_data String?
|
|
3069
|
+
destination_result String?
|
|
3070
|
+
ax_createdatetime DateTime? @db.Timestamp(6)
|
|
3071
|
+
ax_createuserid BigInt @default(0)
|
|
3072
|
+
ax_updatedatetime DateTime? @db.Timestamp(6)
|
|
3073
|
+
ax_updateuserid BigInt @default(0)
|
|
3074
|
+
ax_isdelete Boolean? @default(false)
|
|
3075
|
+
ax_istrash Boolean? @default(false)
|
|
3076
|
+
ax_accountid BigInt @default(0)
|
|
3077
|
+
destination_submit_data String?
|
|
3078
|
+
|
|
3079
|
+
@@index([scheduler_task_id], map: "idx_scheduler_logs_scheduler_task_id")
|
|
3080
|
+
@@schema("public")
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
model cl_scheduler_requests_bk {
|
|
3084
|
+
scheduler_request_id BigInt @id(map: "cl_scheduler_requests_pkey") @default(autoincrement())
|
|
3085
|
+
source_id BigInt? @default(0)
|
|
3086
|
+
request_ref String @db.VarChar(256)
|
|
3087
|
+
module String @db.VarChar(256)
|
|
3088
|
+
target String @db.VarChar(256)
|
|
3089
|
+
integration_id String @db.VarChar(256)
|
|
3090
|
+
destination_id String? @db.VarChar(256)
|
|
3091
|
+
source_data String?
|
|
3092
|
+
action String @db.VarChar(256)
|
|
3093
|
+
attempt_no BigInt? @default(0)
|
|
3094
|
+
attempt_status Int @default(0) @db.SmallInt
|
|
3095
|
+
attempt_result String?
|
|
3096
|
+
ax_createdatetime DateTime? @db.Timestamp(6)
|
|
3097
|
+
ax_createuserid BigInt @default(0)
|
|
3098
|
+
ax_updatedatetime DateTime? @db.Timestamp(6)
|
|
3099
|
+
ax_updateuserid BigInt @default(0)
|
|
3100
|
+
ax_isdelete Boolean? @default(false)
|
|
3101
|
+
ax_istrash Boolean? @default(false)
|
|
3102
|
+
ax_accountid BigInt @default(0)
|
|
3103
|
+
attempt_datetime DateTime? @db.Timestamp(6)
|
|
3104
|
+
|
|
3105
|
+
@@schema("public")
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
model scheduler_requests {
|
|
3109
|
+
scheduler_request_id BigInt @id @default(autoincrement())
|
|
3110
|
+
createdatetime DateTime? @db.Timestamptz(6)
|
|
3111
|
+
createuserid BigInt @default(0)
|
|
3112
|
+
updatedatetime DateTime? @db.Timestamptz(6)
|
|
3113
|
+
updateuserid BigInt @default(0)
|
|
3114
|
+
isdelete Boolean? @default(false)
|
|
3115
|
+
istrash Boolean? @default(false)
|
|
3116
|
+
accountid BigInt @default(0)
|
|
3117
|
+
field_ref String @db.VarChar(256)
|
|
3118
|
+
field_module String @db.VarChar(256)
|
|
3119
|
+
source_entity_id String? @db.VarChar(256)
|
|
3120
|
+
source_entity_label String? @db.VarChar(256)
|
|
3121
|
+
source_entity_data String?
|
|
3122
|
+
integration_id String @db.VarChar(256)
|
|
3123
|
+
destination_entity_id String? @db.VarChar(256)
|
|
3124
|
+
destination_entity_label String? @db.VarChar(256)
|
|
3125
|
+
request_action String @db.VarChar(256)
|
|
3126
|
+
attempt_no BigInt? @default(0)
|
|
3127
|
+
attempt_status Boolean @default(false)
|
|
3128
|
+
attempt_result String?
|
|
3129
|
+
attempt_datetime DateTime? @db.Timestamptz(6)
|
|
3130
|
+
|
|
3131
|
+
@@schema("public")
|
|
3132
|
+
}
|