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
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // import {
3
+ // ModelUserFields,
4
+ // ModelSchedulerLogFields,
5
+ // ModelSchedulerRequestFields
6
+ // } from "../../models"
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.getUserBranchRelationMaps = void 0;
9
+ const queryBuilder_1 = require("./queryBuilder");
10
+ const getUserBranchRelationMaps = () => {
11
+ let relationKeys = {
12
+ cou: "cou",
13
+ state: "state",
14
+ area: "area",
15
+ creator: "creator",
16
+ updater: "updater"
17
+ };
18
+ let sqlRelationMaps = {
19
+ cou: (0, queryBuilder_1.buildSqlRelation)("left", "brn", "countries", "cou", ["brn.country_id = cou.country_id", "cou.isdelete = false", "cou.istrash = false"]),
20
+ state: (0, queryBuilder_1.buildSqlRelation)("left", "brn", "states", "state", ["brn.state_id = state.state_id", "state.isdelete = false", "state.istrash = false"]),
21
+ area: (0, queryBuilder_1.buildSqlRelation)("left", "brn", "areas", "area", ["brn.area_id = area.area_id", "area.isdelete = false", "area.istrash = false"]),
22
+ creator: (0, queryBuilder_1.buildSqlRelation)("left", "brn", "users", "creator", ["brn.createuserid = creator.user_id", "creator.isdelete = false", "creator.istrash = false"]),
23
+ updater: (0, queryBuilder_1.buildSqlRelation)("left", "brn", "users", "updater", ["brn.updateuserid = updater.user_id", "updater.isdelete = false", "updater.istrash = false"])
24
+ };
25
+ return {
26
+ sqlRelationMaps,
27
+ relationKeys
28
+ };
29
+ };
30
+ exports.getUserBranchRelationMaps = getUserBranchRelationMaps;
31
+ //# sourceMappingURL=queryUserBranch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryUserBranch.js","sourceRoot":"","sources":["../../../src/lib/query_builder/queryUserBranch.ts"],"names":[],"mappings":";AAAA,WAAW;AACX,uBAAuB;AACvB,+BAA+B;AAC/B,kCAAkC;AAClC,oBAAoB;;;AAEpB,iDAAkD;AAE3C,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAE1C,IAAI,YAAY,GAAG;QACf,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;KACrB,CAAC;IAEF,IAAI,eAAe,GAA2E;QAC1F,GAAG,EAAE,IAAA,+BAAgB,EAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,iCAAiC,EAAE,sBAAsB,EAAE,qBAAqB,CAAC,CAAC;QAC5I,KAAK,EAAE,IAAA,+BAAgB,EAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,+BAA+B,EAAE,wBAAwB,EAAE,uBAAuB,CAAC,CAAC;QAC/I,IAAI,EAAE,IAAA,+BAAgB,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,4BAA4B,EAAE,uBAAuB,EAAE,sBAAsB,CAAC,CAAC;QACvI,OAAO,EAAE,IAAA,+BAAgB,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,oCAAoC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC,CAAC;QAC3J,OAAO,EAAE,IAAA,+BAAgB,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,oCAAoC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC,CAAC;KAC9J,CAAC;IAEF,OAAO;QACH,eAAe;QACf,YAAY;KACf,CAAA;AAEL,CAAC,CAAA;AAvBY,QAAA,yBAAyB,6BAuBrC","sourcesContent":["// import {\n// ModelUserFields,\n// ModelSchedulerLogFields,\n// ModelSchedulerRequestFields\n// } from \"@/models\"\n\nimport { buildSqlRelation } from \"./queryBuilder\";\n\nexport const getUserBranchRelationMaps = () => {\n\n let relationKeys = {\n cou: \"cou\",\n state: \"state\",\n area: \"area\",\n creator: \"creator\",\n updater: \"updater\"\n };\n\n let sqlRelationMaps: Record<keyof typeof relationKeys, ReturnType<typeof buildSqlRelation>> = {\n cou: buildSqlRelation(\"left\", \"brn\", \"countries\", \"cou\", [\"brn.country_id = cou.country_id\", \"cou.isdelete = false\", \"cou.istrash = false\"]),\n state: buildSqlRelation(\"left\", \"brn\", \"states\", \"state\", [\"brn.state_id = state.state_id\", \"state.isdelete = false\", \"state.istrash = false\"]),\n area: buildSqlRelation(\"left\", \"brn\", \"areas\", \"area\", [\"brn.area_id = area.area_id\", \"area.isdelete = false\", \"area.istrash = false\"]),\n creator: buildSqlRelation(\"left\", \"brn\", \"users\", \"creator\", [\"brn.createuserid = creator.user_id\", \"creator.isdelete = false\", \"creator.istrash = false\"]),\n updater: buildSqlRelation(\"left\", \"brn\", \"users\", \"updater\", [\"brn.updateuserid = updater.user_id\", \"updater.isdelete = false\", \"updater.istrash = false\"])\n };\n\n return {\n sqlRelationMaps,\n relationKeys\n }\n\n}\n"]}
@@ -51,7 +51,7 @@ export declare const AccessControlRoleModel: ({ ...rest }: DefaultServiceProps)
51
51
  name: string;
52
52
  type: string;
53
53
  }[]>;
54
- create: ({ data }: {
54
+ create: ({ data, }: {
55
55
  data: Omit<any, DefaultOmitFields>;
56
56
  }) => Promise<{
57
57
  createdatetime: Date | null;
@@ -102,7 +102,7 @@ export declare const AccessControlRoleModel: ({ ...rest }: DefaultServiceProps)
102
102
  description: string | null;
103
103
  access_control_role_id: bigint;
104
104
  } | null>;
105
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
105
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
106
106
  createdatetime: Date | null;
107
107
  createuserid: bigint;
108
108
  updatedatetime: Date | null;
@@ -116,7 +116,7 @@ export declare const AccessControlRoleModel: ({ ...rest }: DefaultServiceProps)
116
116
  description: string | null;
117
117
  access_control_role_id: bigint;
118
118
  }[]>;
119
- count: ({ where }?: {
119
+ count: ({ where, }?: {
120
120
  where?: Record<string, any>;
121
121
  }) => Promise<number>;
122
122
  aggregate: ({ field, operation, where, }: {
@@ -141,7 +141,7 @@ export declare const AccessControlRoleModel: ({ ...rest }: DefaultServiceProps)
141
141
  description: string | null;
142
142
  access_control_role_id: bigint;
143
143
  }>;
144
- disableRollback?: Boolean;
144
+ disableRollback?: boolean;
145
145
  }) => Promise<{
146
146
  createdatetime: Date | null;
147
147
  createuserid: bigint;
@@ -223,6 +223,5 @@ export declare const AccessControlRoleModel: ({ ...rest }: DefaultServiceProps)
223
223
  access_control_role_id: bigint;
224
224
  }[]>;
225
225
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
226
- rawExec: (query: string, params?: any[]) => Promise<number>;
227
226
  };
228
227
  export {};
@@ -49,7 +49,7 @@ export declare const AccessControlRolePolicyModel: ({ ...rest }: DefaultServiceP
49
49
  name: string;
50
50
  type: string;
51
51
  }[]>;
52
- create: ({ data }: {
52
+ create: ({ data, }: {
53
53
  data: Omit<any, DefaultOmitFields>;
54
54
  }) => Promise<{
55
55
  createdatetime: Date | null;
@@ -94,7 +94,7 @@ export declare const AccessControlRolePolicyModel: ({ ...rest }: DefaultServiceP
94
94
  access_control_role_policy_id: bigint;
95
95
  permission_key: string;
96
96
  } | null>;
97
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
97
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
98
98
  createdatetime: Date | null;
99
99
  createuserid: bigint;
100
100
  updatedatetime: Date | null;
@@ -106,7 +106,7 @@ export declare const AccessControlRolePolicyModel: ({ ...rest }: DefaultServiceP
106
106
  access_control_role_policy_id: bigint;
107
107
  permission_key: string;
108
108
  }[]>;
109
- count: ({ where }?: {
109
+ count: ({ where, }?: {
110
110
  where?: Record<string, any>;
111
111
  }) => Promise<number>;
112
112
  aggregate: ({ field, operation, where, }: {
@@ -129,7 +129,7 @@ export declare const AccessControlRolePolicyModel: ({ ...rest }: DefaultServiceP
129
129
  access_control_role_policy_id: bigint;
130
130
  permission_key: string;
131
131
  }>;
132
- disableRollback?: Boolean;
132
+ disableRollback?: boolean;
133
133
  }) => Promise<{
134
134
  createdatetime: Date | null;
135
135
  createuserid: bigint;
@@ -201,6 +201,5 @@ export declare const AccessControlRolePolicyModel: ({ ...rest }: DefaultServiceP
201
201
  permission_key: string;
202
202
  }[]>;
203
203
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
204
- rawExec: (query: string, params?: any[]) => Promise<number>;
205
204
  };
206
205
  export {};
@@ -49,7 +49,7 @@ export declare const AccessControlUserRoleModel: ({ ...rest }: DefaultServicePro
49
49
  name: string;
50
50
  type: string;
51
51
  }[]>;
52
- create: ({ data }: {
52
+ create: ({ data, }: {
53
53
  data: Omit<any, DefaultOmitFields>;
54
54
  }) => Promise<{
55
55
  createdatetime: Date | null;
@@ -94,7 +94,7 @@ export declare const AccessControlUserRoleModel: ({ ...rest }: DefaultServicePro
94
94
  access_control_role_id: bigint;
95
95
  access_control_user_role_id: bigint;
96
96
  } | null>;
97
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
97
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
98
98
  createdatetime: Date | null;
99
99
  createuserid: bigint;
100
100
  updatedatetime: Date | null;
@@ -106,7 +106,7 @@ export declare const AccessControlUserRoleModel: ({ ...rest }: DefaultServicePro
106
106
  access_control_role_id: bigint;
107
107
  access_control_user_role_id: bigint;
108
108
  }[]>;
109
- count: ({ where }?: {
109
+ count: ({ where, }?: {
110
110
  where?: Record<string, any>;
111
111
  }) => Promise<number>;
112
112
  aggregate: ({ field, operation, where, }: {
@@ -129,7 +129,7 @@ export declare const AccessControlUserRoleModel: ({ ...rest }: DefaultServicePro
129
129
  access_control_role_id: bigint;
130
130
  access_control_user_role_id: bigint;
131
131
  }>;
132
- disableRollback?: Boolean;
132
+ disableRollback?: boolean;
133
133
  }) => Promise<{
134
134
  createdatetime: Date | null;
135
135
  createuserid: bigint;
@@ -201,6 +201,5 @@ export declare const AccessControlUserRoleModel: ({ ...rest }: DefaultServicePro
201
201
  access_control_user_role_id: bigint;
202
202
  }[]>;
203
203
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
204
- rawExec: (query: string, params?: any[]) => Promise<number>;
205
204
  };
206
205
  export {};
@@ -52,7 +52,7 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
52
52
  name: string;
53
53
  type: string;
54
54
  }[]>;
55
- create: ({ data }: {
55
+ create: ({ data, }: {
56
56
  data: Omit<any, DefaultOmitFields>;
57
57
  }) => Promise<{
58
58
  createdatetime: Date | null;
@@ -106,7 +106,7 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
106
106
  account_id: bigint;
107
107
  owner_user_id: bigint;
108
108
  } | null>;
109
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
109
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
110
110
  createdatetime: Date | null;
111
111
  createuserid: bigint;
112
112
  updatedatetime: Date | null;
@@ -121,7 +121,7 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
121
121
  account_id: bigint;
122
122
  owner_user_id: bigint;
123
123
  }[]>;
124
- count: ({ where }?: {
124
+ count: ({ where, }?: {
125
125
  where?: Record<string, any>;
126
126
  }) => Promise<number>;
127
127
  aggregate: ({ field, operation, where, }: {
@@ -147,7 +147,7 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
147
147
  account_id: bigint;
148
148
  owner_user_id: bigint;
149
149
  }>;
150
- disableRollback?: Boolean;
150
+ disableRollback?: boolean;
151
151
  }) => Promise<{
152
152
  createdatetime: Date | null;
153
153
  createuserid: bigint;
@@ -234,6 +234,5 @@ export declare const AccountModel: ({ ...rest }: DefaultServiceProps) => {
234
234
  owner_user_id: bigint;
235
235
  }[]>;
236
236
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
237
- rawExec: (query: string, params?: any[]) => Promise<number>;
238
237
  };
239
238
  export {};
@@ -53,7 +53,7 @@ export declare const AccessKeyModel: ({ ...rest }: DefaultServiceProps) => {
53
53
  name: string;
54
54
  type: string;
55
55
  }[]>;
56
- create: ({ data }: {
56
+ create: ({ data, }: {
57
57
  data: Omit<any, DefaultOmitFields>;
58
58
  }) => Promise<{
59
59
  createdatetime: Date | null;
@@ -110,7 +110,7 @@ export declare const AccessKeyModel: ({ ...rest }: DefaultServiceProps) => {
110
110
  key_secret_encrypted: string | null;
111
111
  access_key_status: string | null;
112
112
  } | null>;
113
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
113
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
114
114
  createdatetime: Date | null;
115
115
  createuserid: bigint;
116
116
  updatedatetime: Date | null;
@@ -126,7 +126,7 @@ export declare const AccessKeyModel: ({ ...rest }: DefaultServiceProps) => {
126
126
  key_secret_encrypted: string | null;
127
127
  access_key_status: string | null;
128
128
  }[]>;
129
- count: ({ where }?: {
129
+ count: ({ where, }?: {
130
130
  where?: Record<string, any>;
131
131
  }) => Promise<number>;
132
132
  aggregate: ({ field, operation, where, }: {
@@ -153,7 +153,7 @@ export declare const AccessKeyModel: ({ ...rest }: DefaultServiceProps) => {
153
153
  key_secret_encrypted: string | null;
154
154
  access_key_status: string | null;
155
155
  }>;
156
- disableRollback?: Boolean;
156
+ disableRollback?: boolean;
157
157
  }) => Promise<{
158
158
  createdatetime: Date | null;
159
159
  createuserid: bigint;
@@ -245,6 +245,5 @@ export declare const AccessKeyModel: ({ ...rest }: DefaultServiceProps) => {
245
245
  access_key_status: string | null;
246
246
  }[]>;
247
247
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
248
- rawExec: (query: string, params?: any[]) => Promise<number>;
249
248
  };
250
249
  export {};
@@ -62,7 +62,7 @@ export declare const UserBranchModel: ({ ...rest }: DefaultServiceProps) => {
62
62
  name: string;
63
63
  type: string;
64
64
  }[]>;
65
- create: ({ data }: {
65
+ create: ({ data, }: {
66
66
  data: Omit<any, DefaultOmitFields>;
67
67
  }) => Promise<{
68
68
  createdatetime: Date | null;
@@ -158,7 +158,7 @@ export declare const UserBranchModel: ({ ...rest }: DefaultServiceProps) => {
158
158
  branch_contact: string | null;
159
159
  branch_email: string | null;
160
160
  } | null>;
161
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
161
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
162
162
  createdatetime: Date | null;
163
163
  createuserid: bigint;
164
164
  updatedatetime: Date | null;
@@ -187,7 +187,7 @@ export declare const UserBranchModel: ({ ...rest }: DefaultServiceProps) => {
187
187
  branch_contact: string | null;
188
188
  branch_email: string | null;
189
189
  }[]>;
190
- count: ({ where }?: {
190
+ count: ({ where, }?: {
191
191
  where?: Record<string, any>;
192
192
  }) => Promise<number>;
193
193
  aggregate: ({ field, operation, where, }: {
@@ -227,7 +227,7 @@ export declare const UserBranchModel: ({ ...rest }: DefaultServiceProps) => {
227
227
  branch_contact: string | null;
228
228
  branch_email: string | null;
229
229
  }>;
230
- disableRollback?: Boolean;
230
+ disableRollback?: boolean;
231
231
  }) => Promise<{
232
232
  createdatetime: Date | null;
233
233
  createuserid: bigint;
@@ -384,6 +384,5 @@ export declare const UserBranchModel: ({ ...rest }: DefaultServiceProps) => {
384
384
  branch_email: string | null;
385
385
  }[]>;
386
386
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
387
- rawExec: (query: string, params?: any[]) => Promise<number>;
388
387
  };
389
388
  export {};
@@ -45,7 +45,7 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
45
45
  name: string;
46
46
  type: string;
47
47
  }[]>;
48
- create: ({ data }: {
48
+ create: ({ data, }: {
49
49
  data: Omit<any, DefaultOmitFields>;
50
50
  }) => Promise<{
51
51
  createdatetime: Date | null;
@@ -90,7 +90,7 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
90
90
  parent_user_id: bigint | null;
91
91
  branch_user_id: bigint;
92
92
  } | null>;
93
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
93
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
94
94
  createdatetime: Date | null;
95
95
  createuserid: bigint | null;
96
96
  updatedatetime: Date | null;
@@ -102,7 +102,7 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
102
102
  parent_user_id: bigint | null;
103
103
  branch_user_id: bigint;
104
104
  }[]>;
105
- count: ({ where }?: {
105
+ count: ({ where, }?: {
106
106
  where?: Record<string, any>;
107
107
  }) => Promise<number>;
108
108
  aggregate: ({ field, operation, where, }: {
@@ -125,7 +125,7 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
125
125
  parent_user_id: bigint | null;
126
126
  branch_user_id: bigint;
127
127
  }>;
128
- disableRollback?: Boolean;
128
+ disableRollback?: boolean;
129
129
  }) => Promise<{
130
130
  createdatetime: Date | null;
131
131
  createuserid: bigint | null;
@@ -197,6 +197,5 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
197
197
  branch_user_id: bigint;
198
198
  }[]>;
199
199
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
200
- rawExec: (query: string, params?: any[]) => Promise<number>;
201
200
  };
202
201
  export {};
@@ -59,7 +59,7 @@ export declare const BusinessModel: ({ ...rest }: DefaultServiceProps) => {
59
59
  name: string;
60
60
  type: string;
61
61
  }[]>;
62
- create: ({ data }: {
62
+ create: ({ data, }: {
63
63
  data: Omit<any, DefaultOmitFields>;
64
64
  }) => Promise<{
65
65
  createdatetime: Date | null;
@@ -134,7 +134,7 @@ export declare const BusinessModel: ({ ...rest }: DefaultServiceProps) => {
134
134
  website: string | null;
135
135
  company_contact: string | null;
136
136
  } | null>;
137
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
137
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
138
138
  createdatetime: Date | null;
139
139
  createuserid: bigint;
140
140
  updatedatetime: Date | null;
@@ -156,7 +156,7 @@ export declare const BusinessModel: ({ ...rest }: DefaultServiceProps) => {
156
156
  website: string | null;
157
157
  company_contact: string | null;
158
158
  }[]>;
159
- count: ({ where }?: {
159
+ count: ({ where, }?: {
160
160
  where?: Record<string, any>;
161
161
  }) => Promise<number>;
162
162
  aggregate: ({ field, operation, where, }: {
@@ -189,7 +189,7 @@ export declare const BusinessModel: ({ ...rest }: DefaultServiceProps) => {
189
189
  website: string | null;
190
190
  company_contact: string | null;
191
191
  }>;
192
- disableRollback?: Boolean;
192
+ disableRollback?: boolean;
193
193
  }) => Promise<{
194
194
  createdatetime: Date | null;
195
195
  createuserid: bigint;
@@ -311,6 +311,5 @@ export declare const BusinessModel: ({ ...rest }: DefaultServiceProps) => {
311
311
  company_contact: string | null;
312
312
  }[]>;
313
313
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
314
- rawExec: (query: string, params?: any[]) => Promise<number>;
315
314
  };
316
315
  export {};
@@ -47,7 +47,7 @@ export declare const DocumentAmountModel: ({ ...rest }: DefaultServiceProps) =>
47
47
  name: string;
48
48
  type: string;
49
49
  }[]>;
50
- create: ({ data }: {
50
+ create: ({ data, }: {
51
51
  data: Omit<any, DefaultOmitFields>;
52
52
  }) => Promise<{
53
53
  createdatetime: Date | null;
@@ -98,7 +98,7 @@ export declare const DocumentAmountModel: ({ ...rest }: DefaultServiceProps) =>
98
98
  document_amount_id: bigint;
99
99
  sub_amount: Prisma.Decimal;
100
100
  } | null>;
101
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
101
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
102
102
  createdatetime: Date | null;
103
103
  createuserid: bigint;
104
104
  updatedatetime: Date | null;
@@ -112,7 +112,7 @@ export declare const DocumentAmountModel: ({ ...rest }: DefaultServiceProps) =>
112
112
  document_amount_id: bigint;
113
113
  sub_amount: Prisma.Decimal;
114
114
  }[]>;
115
- count: ({ where }?: {
115
+ count: ({ where, }?: {
116
116
  where?: Record<string, any>;
117
117
  }) => Promise<number>;
118
118
  aggregate: ({ field, operation, where, }: {
@@ -137,7 +137,7 @@ export declare const DocumentAmountModel: ({ ...rest }: DefaultServiceProps) =>
137
137
  document_amount_id: bigint;
138
138
  sub_amount: Prisma.Decimal;
139
139
  }>;
140
- disableRollback?: Boolean;
140
+ disableRollback?: boolean;
141
141
  }) => Promise<{
142
142
  createdatetime: Date | null;
143
143
  createuserid: bigint;
@@ -219,6 +219,5 @@ export declare const DocumentAmountModel: ({ ...rest }: DefaultServiceProps) =>
219
219
  sub_amount: Prisma.Decimal;
220
220
  }[]>;
221
221
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
222
- rawExec: (query: string, params?: any[]) => Promise<number>;
223
222
  };
224
223
  export {};
@@ -55,7 +55,7 @@ export declare const DocumentDocumentModel: ({ ...rest }: DefaultServiceProps) =
55
55
  name: string;
56
56
  type: string;
57
57
  }[]>;
58
- create: ({ data }: {
58
+ create: ({ data, }: {
59
59
  data: Omit<any, DefaultOmitFields>;
60
60
  }) => Promise<{
61
61
  createdatetime: Date | null;
@@ -130,7 +130,7 @@ export declare const DocumentDocumentModel: ({ ...rest }: DefaultServiceProps) =
130
130
  reference2_label: string | null;
131
131
  main_document_type: string | null;
132
132
  } | null>;
133
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
133
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
134
134
  createdatetime: Date | null;
135
135
  createuserid: bigint;
136
136
  updatedatetime: Date | null;
@@ -152,7 +152,7 @@ export declare const DocumentDocumentModel: ({ ...rest }: DefaultServiceProps) =
152
152
  reference2_label: string | null;
153
153
  main_document_type: string | null;
154
154
  }[]>;
155
- count: ({ where }?: {
155
+ count: ({ where, }?: {
156
156
  where?: Record<string, any>;
157
157
  }) => Promise<number>;
158
158
  aggregate: ({ field, operation, where, }: {
@@ -185,7 +185,7 @@ export declare const DocumentDocumentModel: ({ ...rest }: DefaultServiceProps) =
185
185
  reference2_label: string | null;
186
186
  main_document_type: string | null;
187
187
  }>;
188
- disableRollback?: Boolean;
188
+ disableRollback?: boolean;
189
189
  }) => Promise<{
190
190
  createdatetime: Date | null;
191
191
  createuserid: bigint;
@@ -307,6 +307,5 @@ export declare const DocumentDocumentModel: ({ ...rest }: DefaultServiceProps) =
307
307
  main_document_type: string | null;
308
308
  }[]>;
309
309
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
310
- rawExec: (query: string, params?: any[]) => Promise<number>;
311
310
  };
312
311
  export {};
@@ -54,7 +54,7 @@ export declare const DocumentItemModel: ({ ...rest }: DefaultServiceProps) => {
54
54
  name: string;
55
55
  type: string;
56
56
  }[]>;
57
- create: ({ data }: {
57
+ create: ({ data, }: {
58
58
  data: Omit<any, DefaultOmitFields>;
59
59
  }) => Promise<{
60
60
  createdatetime: Date | null;
@@ -126,7 +126,7 @@ export declare const DocumentItemModel: ({ ...rest }: DefaultServiceProps) => {
126
126
  uom_id: bigint | null;
127
127
  document_doc_id: bigint | null;
128
128
  } | null>;
129
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
129
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
130
130
  createdatetime: Date | null;
131
131
  createuserid: bigint;
132
132
  updatedatetime: Date | null;
@@ -147,7 +147,7 @@ export declare const DocumentItemModel: ({ ...rest }: DefaultServiceProps) => {
147
147
  uom_id: bigint | null;
148
148
  document_doc_id: bigint | null;
149
149
  }[]>;
150
- count: ({ where }?: {
150
+ count: ({ where, }?: {
151
151
  where?: Record<string, any>;
152
152
  }) => Promise<number>;
153
153
  aggregate: ({ field, operation, where, }: {
@@ -179,7 +179,7 @@ export declare const DocumentItemModel: ({ ...rest }: DefaultServiceProps) => {
179
179
  uom_id: bigint | null;
180
180
  document_doc_id: bigint | null;
181
181
  }>;
182
- disableRollback?: Boolean;
182
+ disableRollback?: boolean;
183
183
  }) => Promise<{
184
184
  createdatetime: Date | null;
185
185
  createuserid: bigint;
@@ -296,6 +296,5 @@ export declare const DocumentItemModel: ({ ...rest }: DefaultServiceProps) => {
296
296
  document_doc_id: bigint | null;
297
297
  }[]>;
298
298
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
299
- rawExec: (query: string, params?: any[]) => Promise<number>;
300
299
  };
301
300
  export {};
@@ -46,7 +46,7 @@ export declare const DocumentLocationModel: ({ ...rest }: DefaultServiceProps) =
46
46
  name: string;
47
47
  type: string;
48
48
  }[]>;
49
- create: ({ data }: {
49
+ create: ({ data, }: {
50
50
  data: Omit<any, DefaultOmitFields>;
51
51
  }) => Promise<{
52
52
  createdatetime: Date | null;
@@ -94,7 +94,7 @@ export declare const DocumentLocationModel: ({ ...rest }: DefaultServiceProps) =
94
94
  location_id: bigint;
95
95
  document_location_id: bigint;
96
96
  } | null>;
97
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
97
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
98
98
  createdatetime: Date | null;
99
99
  createuserid: bigint;
100
100
  updatedatetime: Date | null;
@@ -107,7 +107,7 @@ export declare const DocumentLocationModel: ({ ...rest }: DefaultServiceProps) =
107
107
  location_id: bigint;
108
108
  document_location_id: bigint;
109
109
  }[]>;
110
- count: ({ where }?: {
110
+ count: ({ where, }?: {
111
111
  where?: Record<string, any>;
112
112
  }) => Promise<number>;
113
113
  aggregate: ({ field, operation, where, }: {
@@ -131,7 +131,7 @@ export declare const DocumentLocationModel: ({ ...rest }: DefaultServiceProps) =
131
131
  location_id: bigint;
132
132
  document_location_id: bigint;
133
133
  }>;
134
- disableRollback?: Boolean;
134
+ disableRollback?: boolean;
135
135
  }) => Promise<{
136
136
  createdatetime: Date | null;
137
137
  createuserid: bigint;
@@ -208,6 +208,5 @@ export declare const DocumentLocationModel: ({ ...rest }: DefaultServiceProps) =
208
208
  document_location_id: bigint;
209
209
  }[]>;
210
210
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
211
- rawExec: (query: string, params?: any[]) => Promise<number>;
212
211
  };
213
212
  export {};
@@ -62,7 +62,7 @@ export declare const DocumentModel: ({ ...rest }: DefaultServiceProps) => {
62
62
  name: string;
63
63
  type: string;
64
64
  }[]>;
65
- create: ({ data }: {
65
+ create: ({ data, }: {
66
66
  data: Omit<any, DefaultOmitFields>;
67
67
  }) => Promise<{
68
68
  createdatetime: Date | null;
@@ -158,7 +158,7 @@ export declare const DocumentModel: ({ ...rest }: DefaultServiceProps) => {
158
158
  paid_amount: Prisma.Decimal;
159
159
  balance_amount: Prisma.Decimal;
160
160
  } | null>;
161
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
161
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
162
162
  createdatetime: Date | null;
163
163
  createuserid: bigint;
164
164
  updatedatetime: Date | null;
@@ -187,7 +187,7 @@ export declare const DocumentModel: ({ ...rest }: DefaultServiceProps) => {
187
187
  paid_amount: Prisma.Decimal;
188
188
  balance_amount: Prisma.Decimal;
189
189
  }[]>;
190
- count: ({ where }?: {
190
+ count: ({ where, }?: {
191
191
  where?: Record<string, any>;
192
192
  }) => Promise<number>;
193
193
  aggregate: ({ field, operation, where, }: {
@@ -227,7 +227,7 @@ export declare const DocumentModel: ({ ...rest }: DefaultServiceProps) => {
227
227
  paid_amount: Prisma.Decimal;
228
228
  balance_amount: Prisma.Decimal;
229
229
  }>;
230
- disableRollback?: Boolean;
230
+ disableRollback?: boolean;
231
231
  }) => Promise<{
232
232
  createdatetime: Date | null;
233
233
  createuserid: bigint;
@@ -384,6 +384,5 @@ export declare const DocumentModel: ({ ...rest }: DefaultServiceProps) => {
384
384
  balance_amount: Prisma.Decimal;
385
385
  }[]>;
386
386
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
387
- rawExec: (query: string, params?: any[]) => Promise<number>;
388
387
  };
389
388
  export {};
@@ -55,7 +55,7 @@ export declare const DocumentPaymentModel: ({ ...rest }: DefaultServiceProps) =>
55
55
  name: string;
56
56
  type: string;
57
57
  }[]>;
58
- create: ({ data }: {
58
+ create: ({ data, }: {
59
59
  data: Omit<any, DefaultOmitFields>;
60
60
  }) => Promise<{
61
61
  createdatetime: Date | null;
@@ -130,7 +130,7 @@ export declare const DocumentPaymentModel: ({ ...rest }: DefaultServiceProps) =>
130
130
  payment_reference: string | null;
131
131
  payment_post_date: Date | null;
132
132
  } | null>;
133
- list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
133
+ list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
134
134
  createdatetime: Date | null;
135
135
  createuserid: bigint;
136
136
  updatedatetime: Date | null;
@@ -152,7 +152,7 @@ export declare const DocumentPaymentModel: ({ ...rest }: DefaultServiceProps) =>
152
152
  payment_reference: string | null;
153
153
  payment_post_date: Date | null;
154
154
  }[]>;
155
- count: ({ where }?: {
155
+ count: ({ where, }?: {
156
156
  where?: Record<string, any>;
157
157
  }) => Promise<number>;
158
158
  aggregate: ({ field, operation, where, }: {
@@ -185,7 +185,7 @@ export declare const DocumentPaymentModel: ({ ...rest }: DefaultServiceProps) =>
185
185
  payment_reference: string | null;
186
186
  payment_post_date: Date | null;
187
187
  }>;
188
- disableRollback?: Boolean;
188
+ disableRollback?: boolean;
189
189
  }) => Promise<{
190
190
  createdatetime: Date | null;
191
191
  createuserid: bigint;
@@ -307,6 +307,5 @@ export declare const DocumentPaymentModel: ({ ...rest }: DefaultServiceProps) =>
307
307
  payment_post_date: Date | null;
308
308
  }[]>;
309
309
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
310
- rawExec: (query: string, params?: any[]) => Promise<number>;
311
310
  };
312
311
  export {};