storemw-core-api 1.0.163 → 1.0.165

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 (86) hide show
  1. package/dist/lib/index.d.ts +2 -0
  2. package/dist/lib/index.js +5 -1
  3. package/dist/lib/index.js.map +1 -1
  4. package/dist/lib/model_factory/ModelFactory.d.ts +7 -6
  5. package/dist/lib/model_factory/ModelFactory.js +595 -197
  6. package/dist/lib/model_factory/ModelFactory.js.map +1 -1
  7. package/dist/lib/query_builder/queryBuilder.d.ts +1 -1
  8. package/dist/lib/query_builder/queryBuilder.js +66 -15
  9. package/dist/lib/query_builder/queryBuilder.js.map +1 -1
  10. package/dist/lib/query_builder/queryDocumentProfile.d.ts +7 -0
  11. package/dist/lib/query_builder/queryDocumentProfile.js +87 -0
  12. package/dist/lib/query_builder/queryDocumentProfile.js.map +1 -0
  13. package/dist/lib/query_builder/queryUserBranch.d.ts +10 -0
  14. package/dist/lib/query_builder/queryUserBranch.js +31 -0
  15. package/dist/lib/query_builder/queryUserBranch.js.map +1 -0
  16. package/dist/models/access_control/AccessControlRoleModel.d.ts +4 -5
  17. package/dist/models/access_control/AccessControlRolePolicyModel.d.ts +4 -5
  18. package/dist/models/access_control/AccessControlUserRoleModel.d.ts +4 -5
  19. package/dist/models/account/AccountModel.d.ts +4 -5
  20. package/dist/models/auth/AccessKeyModel.d.ts +4 -5
  21. package/dist/models/branch/UserBranchModel.d.ts +4 -5
  22. package/dist/models/branch_user/BranchUserModel.d.ts +4 -5
  23. package/dist/models/business/BusinessModel.d.ts +4 -5
  24. package/dist/models/document/DocumentAmountModel.d.ts +4 -5
  25. package/dist/models/document/DocumentDocumentModel.d.ts +4 -5
  26. package/dist/models/document/DocumentItemModel.d.ts +4 -5
  27. package/dist/models/document/DocumentLocationModel.d.ts +4 -5
  28. package/dist/models/document/DocumentModel.d.ts +4 -5
  29. package/dist/models/document/DocumentPaymentModel.d.ts +4 -5
  30. package/dist/models/document/DocumentProfileModel.d.ts +4 -5
  31. package/dist/models/document/DocumentTotalModel.d.ts +4 -5
  32. package/dist/models/file/FileModel.d.ts +4 -5
  33. package/dist/models/group/GroupModel.d.ts +4 -5
  34. package/dist/models/group/GroupOwnerModel.d.ts +4 -5
  35. package/dist/models/injection_field/DocumentInjectionFieldModel.d.ts +4 -5
  36. package/dist/models/injection_field/InjectionFieldModel.d.ts +4 -5
  37. package/dist/models/injection_field/ItemInjectionFieldModel.d.ts +4 -5
  38. package/dist/models/injection_field/LogisticInjectionFieldModel.d.ts +4 -5
  39. package/dist/models/injection_field/RepositoryInjectionFieldModel.d.ts +4 -5
  40. package/dist/models/injection_field/UserInjectionFieldModel.d.ts +4 -5
  41. package/dist/models/item/BrandModel.d.ts +4 -5
  42. package/dist/models/item/CategoryModel.d.ts +4 -5
  43. package/dist/models/item/ItemModel.d.ts +4 -5
  44. package/dist/models/item/ProductModel.d.ts +4 -5
  45. package/dist/models/item/UomModel.d.ts +4 -5
  46. package/dist/models/location/LocationModel.d.ts +4 -5
  47. package/dist/models/location/LocationRackModel.d.ts +4 -5
  48. package/dist/models/location/LocationSlotModel.d.ts +4 -5
  49. package/dist/models/others/NumberDateSequenceModel.d.ts +4 -5
  50. package/dist/models/others/OneTimeCodeModel.d.ts +4 -5
  51. package/dist/models/region/AreaModel.d.ts +4 -5
  52. package/dist/models/region/CountryModel.d.ts +4 -5
  53. package/dist/models/region/StateModel.d.ts +4 -5
  54. package/dist/models/repository/RepositoryCartonModel.d.ts +4 -5
  55. package/dist/models/repository/RepositoryContainerModel.d.ts +4 -5
  56. package/dist/models/repository/RepositoryModel.d.ts +4 -5
  57. package/dist/models/repository/RepositoryPackageItemModel.d.ts +4 -5
  58. package/dist/models/repository/RepositoryPackageModel.d.ts +4 -5
  59. package/dist/models/repository/RepositoryPalletModel.d.ts +4 -5
  60. package/dist/models/scheduler/SchedulerLogModel.d.ts +4 -5
  61. package/dist/models/scheduler/SchedulerRequestModel.d.ts +4 -5
  62. package/dist/models/subscription/account/AccountSubscribeModel.d.ts +4 -5
  63. package/dist/models/subscription/plan/SubscribePlanModel.d.ts +4 -5
  64. package/dist/models/user/AdministratorModel.d.ts +4 -5
  65. package/dist/models/user/AgentModel.d.ts +4 -5
  66. package/dist/models/user/CustomerModel.d.ts +4 -5
  67. package/dist/models/user/DriverModel.d.ts +4 -5
  68. package/dist/models/user/MemberModel.d.ts +4 -5
  69. package/dist/models/user/OperatorModel.d.ts +4 -5
  70. package/dist/models/user/RetailerModel.d.ts +4 -5
  71. package/dist/models/user/UserModel.d.ts +4 -5
  72. package/dist/models/user/UserPropModel.d.ts +4 -5
  73. package/dist/models/user/WorkerModel.d.ts +4 -5
  74. package/dist/schema/payload/document/schemaDocumentCashSales.d.ts +64 -64
  75. package/dist/schema/payload/document/schemaDocumentDeliveryOrder.d.ts +64 -64
  76. package/dist/schema/payload/document/schemaDocumentProformaSales.d.ts +64 -64
  77. package/dist/schema/payload/document/schemaDocumentReplacementDeliveryOrder.d.ts +64 -64
  78. package/dist/schema/payload/document/schemaDocumentSalesOrder.d.ts +64 -64
  79. package/dist/services/branch/UserBranchService.d.ts +2 -2
  80. package/dist/services/branch/UserBranchService.js +53 -22
  81. package/dist/services/branch/UserBranchService.js.map +1 -1
  82. package/dist/services/document/DocumentProfileService.js +47 -19
  83. package/dist/services/document/DocumentProfileService.js.map +1 -1
  84. package/dist/utils/serviceUtils.d.ts +2 -0
  85. package/dist/utils/serviceUtils.js.map +1 -1
  86. package/package.json +1 -1
@@ -7,5 +7,7 @@ export { CustomizeTransform } from "./customize/CustomizeTransform";
7
7
  export type { CustomizeTransformProps } from "./customize/CustomizeTransform";
8
8
  export { toFieldMap, buildSqlRawSelect, buildSqlRawSelectCount, buildSqlRelation, buildSqlSelect, buildSqlWhere, buildSqlLimitOffset, buildSqlOrderBy, getFieldsByType, buildInjectionFieldsSqlSelect, getListWithCount } from "./query_builder/queryBuilder";
9
9
  export { getDocumentSqlRelationMaps, buildDocumentMainSqlSelect, buildDocumentDefaultSqlSelect, buildDocumentProfileSqlSelect, buildDocumentLocationSqlSelect, buildDocumentTotalSqlSelect, buildDocumentItemSqlSelectAgg, buildDocumentItemSqlSelect, buildDocumentDocumentSqlSelectAgg, buildDocumentDocumentSqlSelect } from "./query_builder/queryDocument";
10
+ export { getDocumentProfileRelationMaps } from "./query_builder/queryDocumentProfile";
11
+ export { getUserBranchRelationMaps } from "./query_builder/queryUserBranch";
10
12
  export { getFileSqlRelationMaps, buildFileMainSqlSelect, buildFileDefaultSqlSelect, } from "./query_builder/queryFile";
11
13
  export { getSchedulerLogSqlRelationMaps, getSchedulerRequestSqlRelationMaps, buildSchedulerLogMainSqlSelect, buildSchedulerRequestMainSqlSelect, buildSchedulerLogDefaultSqlSelect, buildSchedulerRequestDefaultSqlSelect } from "./query_builder/queryScheduler";
package/dist/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildSchedulerRequestDefaultSqlSelect = exports.buildSchedulerLogDefaultSqlSelect = exports.buildSchedulerRequestMainSqlSelect = exports.buildSchedulerLogMainSqlSelect = exports.getSchedulerRequestSqlRelationMaps = exports.getSchedulerLogSqlRelationMaps = exports.buildFileDefaultSqlSelect = exports.buildFileMainSqlSelect = exports.getFileSqlRelationMaps = exports.buildDocumentDocumentSqlSelect = exports.buildDocumentDocumentSqlSelectAgg = exports.buildDocumentItemSqlSelect = exports.buildDocumentItemSqlSelectAgg = exports.buildDocumentTotalSqlSelect = exports.buildDocumentLocationSqlSelect = exports.buildDocumentProfileSqlSelect = exports.buildDocumentDefaultSqlSelect = exports.buildDocumentMainSqlSelect = exports.getDocumentSqlRelationMaps = exports.getListWithCount = exports.buildInjectionFieldsSqlSelect = exports.getFieldsByType = exports.buildSqlOrderBy = exports.buildSqlLimitOffset = exports.buildSqlWhere = exports.buildSqlSelect = exports.buildSqlRelation = exports.buildSqlRawSelectCount = exports.buildSqlRawSelect = exports.toFieldMap = exports.CustomizeTransform = exports.serviceFactoryAllowUserTypes = exports.serviceFactoryNames = exports.ServiceFactory = exports.ModelFactory = exports.prisma = void 0;
3
+ exports.buildSchedulerRequestDefaultSqlSelect = exports.buildSchedulerLogDefaultSqlSelect = exports.buildSchedulerRequestMainSqlSelect = exports.buildSchedulerLogMainSqlSelect = exports.getSchedulerRequestSqlRelationMaps = exports.getSchedulerLogSqlRelationMaps = exports.buildFileDefaultSqlSelect = exports.buildFileMainSqlSelect = exports.getFileSqlRelationMaps = exports.getUserBranchRelationMaps = exports.getDocumentProfileRelationMaps = exports.buildDocumentDocumentSqlSelect = exports.buildDocumentDocumentSqlSelectAgg = exports.buildDocumentItemSqlSelect = exports.buildDocumentItemSqlSelectAgg = exports.buildDocumentTotalSqlSelect = exports.buildDocumentLocationSqlSelect = exports.buildDocumentProfileSqlSelect = exports.buildDocumentDefaultSqlSelect = exports.buildDocumentMainSqlSelect = exports.getDocumentSqlRelationMaps = exports.getListWithCount = exports.buildInjectionFieldsSqlSelect = exports.getFieldsByType = exports.buildSqlOrderBy = exports.buildSqlLimitOffset = exports.buildSqlWhere = exports.buildSqlSelect = exports.buildSqlRelation = exports.buildSqlRawSelectCount = exports.buildSqlRawSelect = exports.toFieldMap = exports.CustomizeTransform = exports.serviceFactoryAllowUserTypes = exports.serviceFactoryNames = exports.ServiceFactory = exports.ModelFactory = exports.prisma = void 0;
4
4
  var prisma_1 = require("./prisma/prisma");
5
5
  Object.defineProperty(exports, "prisma", { enumerable: true, get: function () { return prisma_1.prisma; } });
6
6
  var ModelFactory_1 = require("./model_factory/ModelFactory");
@@ -35,6 +35,10 @@ Object.defineProperty(exports, "buildDocumentItemSqlSelectAgg", { enumerable: tr
35
35
  Object.defineProperty(exports, "buildDocumentItemSqlSelect", { enumerable: true, get: function () { return queryDocument_1.buildDocumentItemSqlSelect; } });
36
36
  Object.defineProperty(exports, "buildDocumentDocumentSqlSelectAgg", { enumerable: true, get: function () { return queryDocument_1.buildDocumentDocumentSqlSelectAgg; } });
37
37
  Object.defineProperty(exports, "buildDocumentDocumentSqlSelect", { enumerable: true, get: function () { return queryDocument_1.buildDocumentDocumentSqlSelect; } });
38
+ var queryDocumentProfile_1 = require("./query_builder/queryDocumentProfile");
39
+ Object.defineProperty(exports, "getDocumentProfileRelationMaps", { enumerable: true, get: function () { return queryDocumentProfile_1.getDocumentProfileRelationMaps; } });
40
+ var queryUserBranch_1 = require("./query_builder/queryUserBranch");
41
+ Object.defineProperty(exports, "getUserBranchRelationMaps", { enumerable: true, get: function () { return queryUserBranch_1.getUserBranchRelationMaps; } });
38
42
  var queryFile_1 = require("./query_builder/queryFile");
39
43
  Object.defineProperty(exports, "getFileSqlRelationMaps", { enumerable: true, get: function () { return queryFile_1.getFileSqlRelationMaps; } });
40
44
  Object.defineProperty(exports, "buildFileMainSqlSelect", { enumerable: true, get: function () { return queryFile_1.buildFileMainSqlSelect; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAA/B,gGAAA,MAAM,OAAA;AAEf,6DAA2D;AAAlD,4GAAA,YAAY,OAAA;AAGrB,mEAAoH;AAA3G,gHAAA,cAAc,OAAA;AAAE,qHAAA,mBAAmB,OAAA;AAAE,8HAAA,4BAA4B,OAAA;AAG1E,qEAAmE;AAA1D,wHAAA,kBAAkB,OAAA;AAG3B,6DAA6P;AAApP,0GAAA,UAAU,OAAA;AAAE,iHAAA,iBAAiB,OAAA;AAAE,sHAAA,sBAAsB,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAAE,8GAAA,cAAc,OAAA;AAAE,6GAAA,aAAa,OAAA;AAAE,mHAAA,mBAAmB,OAAA;AAAE,+GAAA,eAAe,OAAA;AAAE,+GAAA,eAAe,OAAA;AAAE,6HAAA,6BAA6B,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAEvN,+DAYsC;AAXlC,2HAAA,0BAA0B,OAAA;AAC1B,2HAAA,0BAA0B,OAAA;AAC1B,8HAAA,6BAA6B,OAAA;AAC7B,8HAAA,6BAA6B,OAAA;AAC7B,gCAAgC;AAChC,+HAAA,8BAA8B,OAAA;AAC9B,4HAAA,2BAA2B,OAAA;AAC3B,8HAAA,6BAA6B,OAAA;AAC7B,2HAAA,0BAA0B,OAAA;AAC1B,kIAAA,iCAAiC,OAAA;AACjC,+HAAA,8BAA8B,OAAA;AAGlC,uDAIkC;AAH9B,mHAAA,sBAAsB,OAAA;AACtB,mHAAA,sBAAsB,OAAA;AACtB,sHAAA,yBAAyB,OAAA;AAG7B,iEAOuC;AANnC,gIAAA,8BAA8B,OAAA;AAC9B,oIAAA,kCAAkC,OAAA;AAClC,gIAAA,8BAA8B,OAAA;AAC9B,oIAAA,kCAAkC,OAAA;AAClC,mIAAA,iCAAiC,OAAA;AACjC,uIAAA,qCAAqC,OAAA","sourcesContent":["export { prisma } from \"./prisma/prisma\"\n\nexport { ModelFactory } from \"./model_factory/ModelFactory\"\nexport type { DefaultOmitFields } from \"./model_factory/default\"\n\nexport { ServiceFactory, serviceFactoryNames, serviceFactoryAllowUserTypes } from \"./service_factory/ServiceFactory\"\nexport type { ServiceFactoryName, ServiceFactoryAllowUserType } from \"./service_factory/ServiceFactory\"\n\nexport { CustomizeTransform } from \"./customize/CustomizeTransform\"\nexport type { CustomizeTransformProps } from \"./customize/CustomizeTransform\"\n\nexport { toFieldMap, buildSqlRawSelect, buildSqlRawSelectCount, buildSqlRelation, buildSqlSelect, buildSqlWhere, buildSqlLimitOffset, buildSqlOrderBy, getFieldsByType, buildInjectionFieldsSqlSelect, getListWithCount } from \"./query_builder/queryBuilder\"\n\nexport {\n getDocumentSqlRelationMaps,\n buildDocumentMainSqlSelect,\n buildDocumentDefaultSqlSelect,\n buildDocumentProfileSqlSelect,\n // buildDocumentAmountSqlSelect,\n buildDocumentLocationSqlSelect,\n buildDocumentTotalSqlSelect,\n buildDocumentItemSqlSelectAgg,\n buildDocumentItemSqlSelect,\n buildDocumentDocumentSqlSelectAgg,\n buildDocumentDocumentSqlSelect\n} from \"./query_builder/queryDocument\"\n\nexport {\n getFileSqlRelationMaps,\n buildFileMainSqlSelect,\n buildFileDefaultSqlSelect,\n} from \"./query_builder/queryFile\"\n\nexport {\n getSchedulerLogSqlRelationMaps,\n getSchedulerRequestSqlRelationMaps,\n buildSchedulerLogMainSqlSelect,\n buildSchedulerRequestMainSqlSelect,\n buildSchedulerLogDefaultSqlSelect,\n buildSchedulerRequestDefaultSqlSelect\n} from \"./query_builder/queryScheduler\""]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;AAAA,0CAAwC;AAA/B,gGAAA,MAAM,OAAA;AAEf,6DAA2D;AAAlD,4GAAA,YAAY,OAAA;AAGrB,mEAAoH;AAA3G,gHAAA,cAAc,OAAA;AAAE,qHAAA,mBAAmB,OAAA;AAAE,8HAAA,4BAA4B,OAAA;AAG1E,qEAAmE;AAA1D,wHAAA,kBAAkB,OAAA;AAG3B,6DAA6P;AAApP,0GAAA,UAAU,OAAA;AAAE,iHAAA,iBAAiB,OAAA;AAAE,sHAAA,sBAAsB,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAAE,8GAAA,cAAc,OAAA;AAAE,6GAAA,aAAa,OAAA;AAAE,mHAAA,mBAAmB,OAAA;AAAE,+GAAA,eAAe,OAAA;AAAE,+GAAA,eAAe,OAAA;AAAE,6HAAA,6BAA6B,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAEvN,+DAYsC;AAXlC,2HAAA,0BAA0B,OAAA;AAC1B,2HAAA,0BAA0B,OAAA;AAC1B,8HAAA,6BAA6B,OAAA;AAC7B,8HAAA,6BAA6B,OAAA;AAC7B,gCAAgC;AAChC,+HAAA,8BAA8B,OAAA;AAC9B,4HAAA,2BAA2B,OAAA;AAC3B,8HAAA,6BAA6B,OAAA;AAC7B,2HAAA,0BAA0B,OAAA;AAC1B,kIAAA,iCAAiC,OAAA;AACjC,+HAAA,8BAA8B,OAAA;AAGlC,6EAE6C;AADzC,sIAAA,8BAA8B,OAAA;AAGlC,mEAEwC;AADpC,4HAAA,yBAAyB,OAAA;AAG7B,uDAIkC;AAH9B,mHAAA,sBAAsB,OAAA;AACtB,mHAAA,sBAAsB,OAAA;AACtB,sHAAA,yBAAyB,OAAA;AAG7B,iEAOuC;AANnC,gIAAA,8BAA8B,OAAA;AAC9B,oIAAA,kCAAkC,OAAA;AAClC,gIAAA,8BAA8B,OAAA;AAC9B,oIAAA,kCAAkC,OAAA;AAClC,mIAAA,iCAAiC,OAAA;AACjC,uIAAA,qCAAqC,OAAA","sourcesContent":["export { prisma } from \"./prisma/prisma\"\n\nexport { ModelFactory } from \"./model_factory/ModelFactory\"\nexport type { DefaultOmitFields } from \"./model_factory/default\"\n\nexport { ServiceFactory, serviceFactoryNames, serviceFactoryAllowUserTypes } from \"./service_factory/ServiceFactory\"\nexport type { ServiceFactoryName, ServiceFactoryAllowUserType } from \"./service_factory/ServiceFactory\"\n\nexport { CustomizeTransform } from \"./customize/CustomizeTransform\"\nexport type { CustomizeTransformProps } from \"./customize/CustomizeTransform\"\n\nexport { toFieldMap, buildSqlRawSelect, buildSqlRawSelectCount, buildSqlRelation, buildSqlSelect, buildSqlWhere, buildSqlLimitOffset, buildSqlOrderBy, getFieldsByType, buildInjectionFieldsSqlSelect, getListWithCount } from \"./query_builder/queryBuilder\"\n\nexport {\n getDocumentSqlRelationMaps,\n buildDocumentMainSqlSelect,\n buildDocumentDefaultSqlSelect,\n buildDocumentProfileSqlSelect,\n // buildDocumentAmountSqlSelect,\n buildDocumentLocationSqlSelect,\n buildDocumentTotalSqlSelect,\n buildDocumentItemSqlSelectAgg,\n buildDocumentItemSqlSelect,\n buildDocumentDocumentSqlSelectAgg,\n buildDocumentDocumentSqlSelect\n} from \"./query_builder/queryDocument\"\n\nexport {\n getDocumentProfileRelationMaps\n} from \"./query_builder/queryDocumentProfile\"\n\nexport {\n getUserBranchRelationMaps\n} from \"./query_builder/queryUserBranch\"\n\nexport {\n getFileSqlRelationMaps,\n buildFileMainSqlSelect,\n buildFileDefaultSqlSelect,\n} from \"./query_builder/queryFile\"\n\nexport {\n getSchedulerLogSqlRelationMaps,\n getSchedulerRequestSqlRelationMaps,\n buildSchedulerLogMainSqlSelect,\n buildSchedulerRequestMainSqlSelect,\n buildSchedulerLogDefaultSqlSelect,\n buildSchedulerRequestDefaultSqlSelect\n} from \"./query_builder/queryScheduler\""]}
@@ -1,5 +1,6 @@
1
1
  import { DefaultServiceProps } from "../../utils";
2
2
  import { DefaultOmitFields } from "./default";
3
+ import type { Prisma } from "@prisma/client";
3
4
  type Column = {
4
5
  name: string;
5
6
  type: string;
@@ -8,15 +9,16 @@ type ModelFactoryProps<TClient extends Record<string, any>, TName extends keyof
8
9
  debug?: boolean;
9
10
  modelName: TName;
10
11
  primaryKey?: keyof TModel;
12
+ tx?: Prisma.TransactionClient;
11
13
  } & Omit<DefaultServiceProps, "prisma">;
12
14
  export declare const ModelFactory: <TClient extends Record<string, any>, // PrismaClient
13
15
  TName extends keyof TClient, // "plant_clones"
14
16
  TDelegate extends TClient[TName], // PrismaClient["plant_clones"]
15
- TModel>({ debug, modelName, primaryKey, accountId, actionUserId, authToken, isOperator, }: ModelFactoryProps<TClient, TName, TModel>) => {
17
+ TModel>({ debug, modelName, primaryKey, accountId, actionUserId, authToken, isOperator, tx, }: ModelFactoryProps<TClient, TName, TModel>) => {
16
18
  selectedPrisma: any;
17
19
  primaryKey: keyof TModel;
18
20
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<Column[]>;
19
- create: ({ data }: {
21
+ create: ({ data, }: {
20
22
  data: Omit<any, DefaultOmitFields>;
21
23
  }) => Promise<TModel>;
22
24
  createMany: ({ dataList, disableRollback, }: {
@@ -28,8 +30,8 @@ TModel>({ debug, modelName, primaryKey, accountId, actionUserId, authToken, isOp
28
30
  where?: Record<string, any>;
29
31
  include?: any;
30
32
  }) => Promise<TModel | null>;
31
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<TModel[]>;
32
- count: ({ where }?: {
33
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<TModel[]>;
34
+ count: ({ where, }?: {
33
35
  where?: Record<string, any>;
34
36
  }) => Promise<number>;
35
37
  aggregate: ({ field, operation, where, }: {
@@ -41,7 +43,7 @@ TModel>({ debug, modelName, primaryKey, accountId, actionUserId, authToken, isOp
41
43
  id?: number;
42
44
  where?: Record<string, any>;
43
45
  data: Partial<TModel>;
44
- disableRollback?: Boolean;
46
+ disableRollback?: boolean;
45
47
  }) => Promise<TModel>;
46
48
  updateMany: ({ dataList, disableRollback, }: {
47
49
  dataList: {
@@ -58,6 +60,5 @@ TModel>({ debug, modelName, primaryKey, accountId, actionUserId, authToken, isOp
58
60
  where?: Record<string, any>;
59
61
  }) => Promise<TModel[]>;
60
62
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
61
- rawExec: (query: string, params?: any[]) => Promise<number>;
62
63
  };
63
64
  export {};