storemw-core-api 1.0.140 → 1.0.142

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 (73) hide show
  1. package/dist/controllers/user/userController.js +8 -4
  2. package/dist/controllers/user/userController.js.map +1 -1
  3. package/dist/middlewares/index.d.ts +3 -0
  4. package/dist/middlewares/index.js +40 -0
  5. package/dist/middlewares/index.js.map +1 -0
  6. package/dist/models/account/AccountModel.d.ts +13 -13
  7. package/dist/models/branch_user/BranchUserModel.d.ts +13 -13
  8. package/dist/models/user/AgentModel.d.ts +2 -24
  9. package/dist/models/user/MemberModel.d.ts +2 -24
  10. package/dist/models/user/UserModel.d.ts +13 -2
  11. package/dist/schema/index.d.ts +3 -0
  12. package/dist/schema/index.js +40 -0
  13. package/dist/schema/index.js.map +1 -0
  14. package/dist/schema/middleware/index.d.ts +2 -0
  15. package/dist/schema/middleware/index.js +19 -0
  16. package/dist/schema/middleware/index.js.map +1 -0
  17. package/dist/schema/middleware/route/index.d.ts +27 -27
  18. package/dist/schema/middleware/route/index.js +14 -14
  19. package/dist/schema/middleware/route/index.js.map +1 -1
  20. package/dist/schema/payload/account/schemaAccount.d.ts +7 -0
  21. package/dist/schema/payload/index.d.ts +74 -74
  22. package/dist/schema/payload/index.js +39 -39
  23. package/dist/schema/payload/index.js.map +1 -1
  24. package/dist/schema/payload/user/schemaUser.d.ts +3 -0
  25. package/dist/schema/payload/user/schemaUser.js +1 -0
  26. package/dist/schema/payload/user/schemaUser.js.map +1 -1
  27. package/dist/schema/payload/user/schemaUserAdministrator.d.ts +14 -0
  28. package/dist/schema/payload/user/schemaUserAgent.d.ts +15 -12
  29. package/dist/schema/payload/user/schemaUserAgent.js +2 -2
  30. package/dist/schema/payload/user/schemaUserAgent.js.map +1 -1
  31. package/dist/schema/payload/user/schemaUserCustomer.d.ts +14 -0
  32. package/dist/schema/payload/user/schemaUserDriver.d.ts +14 -0
  33. package/dist/schema/payload/user/schemaUserMember.d.ts +15 -12
  34. package/dist/schema/payload/user/schemaUserMember.js +2 -2
  35. package/dist/schema/payload/user/schemaUserMember.js.map +1 -1
  36. package/dist/schema/payload/user/schemaUserOperator.d.ts +14 -0
  37. package/dist/schema/payload/user/schemaUserRetailer.d.ts +14 -0
  38. package/dist/schema/payload/user/schemaUserWorker.d.ts +14 -0
  39. package/dist/services/account/AccountService.js +17 -7
  40. package/dist/services/account/AccountService.js.map +1 -1
  41. package/dist/services/index.d.ts +1 -1
  42. package/dist/services/index.js +2 -1
  43. package/dist/services/index.js.map +1 -1
  44. package/dist/services/user/AdministratorService.d.ts +1 -0
  45. package/dist/services/user/AdministratorService.js +7 -0
  46. package/dist/services/user/AdministratorService.js.map +1 -1
  47. package/dist/services/user/AgentService.d.ts +2 -12
  48. package/dist/services/user/AgentService.js +35 -26
  49. package/dist/services/user/AgentService.js.map +1 -1
  50. package/dist/services/user/CustomerService.d.ts +1 -0
  51. package/dist/services/user/CustomerService.js +7 -0
  52. package/dist/services/user/CustomerService.js.map +1 -1
  53. package/dist/services/user/DriverService.d.ts +1 -0
  54. package/dist/services/user/DriverService.js +7 -0
  55. package/dist/services/user/DriverService.js.map +1 -1
  56. package/dist/services/user/MemberService.d.ts +2 -12
  57. package/dist/services/user/MemberService.js +35 -26
  58. package/dist/services/user/MemberService.js.map +1 -1
  59. package/dist/services/user/OperatorService.d.ts +4 -2
  60. package/dist/services/user/OperatorService.js +11 -3
  61. package/dist/services/user/OperatorService.js.map +1 -1
  62. package/dist/services/user/RetailerService.d.ts +1 -0
  63. package/dist/services/user/RetailerService.js +7 -0
  64. package/dist/services/user/RetailerService.js.map +1 -1
  65. package/dist/services/user/UserMeService.d.ts +1 -0
  66. package/dist/services/user/UserService.d.ts +5 -0
  67. package/dist/services/user/UserService.js +34 -17
  68. package/dist/services/user/UserService.js.map +1 -1
  69. package/dist/services/user/WorkerService.d.ts +1 -0
  70. package/dist/services/user/WorkerService.js +52 -44
  71. package/dist/services/user/WorkerService.js.map +1 -1
  72. package/package.json +19 -9
  73. package/prisma/schema.prisma +44 -47
@@ -11,8 +11,8 @@ export declare const ModelBranchUserFields: {
11
11
  istrash: "istrash";
12
12
  accountid: "accountid";
13
13
  user_id: "user_id";
14
- branch_user_id: "branch_user_id";
15
14
  parent_user_id: "parent_user_id";
15
+ branch_user_id: "branch_user_id";
16
16
  };
17
17
  export type ModelBranchUser = branch_users;
18
18
  export type ModelBranchUserOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -40,7 +40,7 @@ export type ModelBranchUserListProps = {
40
40
  };
41
41
  export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
42
42
  selectedPrisma: any;
43
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "branch_user_id" | "parent_user_id";
43
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "parent_user_id" | "branch_user_id";
44
44
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
45
45
  name: string;
46
46
  type: string;
@@ -56,8 +56,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
56
56
  istrash: boolean | null;
57
57
  accountid: bigint | null;
58
58
  user_id: bigint | null;
59
- branch_user_id: bigint;
60
59
  parent_user_id: bigint | null;
60
+ branch_user_id: bigint;
61
61
  }>;
62
62
  createMany: ({ dataList, disableRollback, }: {
63
63
  dataList: Omit<any, DefaultOmitFields>[];
@@ -71,8 +71,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
71
71
  istrash: boolean | null;
72
72
  accountid: bigint | null;
73
73
  user_id: bigint | null;
74
- branch_user_id: bigint;
75
74
  parent_user_id: bigint | null;
75
+ branch_user_id: bigint;
76
76
  }[]>;
77
77
  get: ({ id, where, include, }: {
78
78
  id?: number;
@@ -87,8 +87,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
87
87
  istrash: boolean | null;
88
88
  accountid: bigint | null;
89
89
  user_id: bigint | null;
90
- branch_user_id: bigint;
91
90
  parent_user_id: bigint | null;
91
+ branch_user_id: bigint;
92
92
  } | null>;
93
93
  list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
94
94
  createdatetime: Date | null;
@@ -99,14 +99,14 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
99
99
  istrash: boolean | null;
100
100
  accountid: bigint | null;
101
101
  user_id: bigint | null;
102
- branch_user_id: bigint;
103
102
  parent_user_id: bigint | null;
103
+ branch_user_id: bigint;
104
104
  }[]>;
105
105
  count: ({ where }?: {
106
106
  where?: Record<string, any>;
107
107
  }) => Promise<number>;
108
108
  aggregate: ({ field, operation, where, }: {
109
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "branch_user_id" | "parent_user_id";
109
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "parent_user_id" | "branch_user_id";
110
110
  operation?: "sum" | "avg" | "min" | "max" | "count";
111
111
  where?: Record<string, any>;
112
112
  }) => Promise<number>;
@@ -122,8 +122,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
122
122
  istrash: boolean | null;
123
123
  accountid: bigint | null;
124
124
  user_id: bigint | null;
125
- branch_user_id: bigint;
126
125
  parent_user_id: bigint | null;
126
+ branch_user_id: bigint;
127
127
  }>;
128
128
  disableRollback?: Boolean;
129
129
  }) => Promise<{
@@ -135,8 +135,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
135
135
  istrash: boolean | null;
136
136
  accountid: bigint | null;
137
137
  user_id: bigint | null;
138
- branch_user_id: bigint;
139
138
  parent_user_id: bigint | null;
139
+ branch_user_id: bigint;
140
140
  }>;
141
141
  updateMany: ({ dataList, disableRollback, }: {
142
142
  dataList: {
@@ -150,8 +150,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
150
150
  istrash: boolean | null;
151
151
  accountid: bigint | null;
152
152
  user_id: bigint | null;
153
- branch_user_id: bigint;
154
153
  parent_user_id: bigint | null;
154
+ branch_user_id: bigint;
155
155
  }>;
156
156
  }[];
157
157
  disableRollback?: boolean;
@@ -164,8 +164,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
164
164
  istrash: boolean | null;
165
165
  accountid: bigint | null;
166
166
  user_id: bigint | null;
167
- branch_user_id: bigint;
168
167
  parent_user_id: bigint | null;
168
+ branch_user_id: bigint;
169
169
  }[]>;
170
170
  trash: ({ ids }: {
171
171
  ids: number[];
@@ -178,8 +178,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
178
178
  istrash: boolean | null;
179
179
  accountid: bigint | null;
180
180
  user_id: bigint | null;
181
- branch_user_id: bigint;
182
181
  parent_user_id: bigint | null;
182
+ branch_user_id: bigint;
183
183
  }[]>;
184
184
  remove: ({ ids, where }: {
185
185
  ids?: number[];
@@ -193,8 +193,8 @@ export declare const BranchUserModel: ({ ...rest }: DefaultServiceProps) => {
193
193
  istrash: boolean | null;
194
194
  accountid: bigint | null;
195
195
  user_id: bigint | null;
196
- branch_user_id: bigint;
197
196
  parent_user_id: bigint | null;
197
+ branch_user_id: bigint;
198
198
  }[]>;
199
199
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
200
200
  rawExec: (query: string, params?: any[]) => Promise<number>;
@@ -20,8 +20,6 @@ export declare const ModelAgentFields: {
20
20
  user_id: "user_id";
21
21
  remark: "remark";
22
22
  company_name: "company_name";
23
- owner_user_type: "owner_user_type";
24
- owner_user_id: "owner_user_id";
25
23
  identity_no: "identity_no";
26
24
  gender: "gender";
27
25
  dob: "dob";
@@ -53,7 +51,7 @@ export type ModelAgentListProps = {
53
51
  };
54
52
  export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
55
53
  selectedPrisma: any;
56
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob" | "agent_id";
54
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "identity_no" | "gender" | "dob" | "agent_id";
57
55
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
58
56
  name: string;
59
57
  type: string;
@@ -78,8 +76,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
78
76
  user_id: bigint;
79
77
  remark: string | null;
80
78
  company_name: string | null;
81
- owner_user_type: string | null;
82
- owner_user_id: bigint;
83
79
  identity_no: string | null;
84
80
  gender: string | null;
85
81
  dob: Date | null;
@@ -106,8 +102,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
106
102
  user_id: bigint;
107
103
  remark: string | null;
108
104
  company_name: string | null;
109
- owner_user_type: string | null;
110
- owner_user_id: bigint;
111
105
  identity_no: string | null;
112
106
  gender: string | null;
113
107
  dob: Date | null;
@@ -135,8 +129,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
135
129
  user_id: bigint;
136
130
  remark: string | null;
137
131
  company_name: string | null;
138
- owner_user_type: string | null;
139
- owner_user_id: bigint;
140
132
  identity_no: string | null;
141
133
  gender: string | null;
142
134
  dob: Date | null;
@@ -160,8 +152,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
160
152
  user_id: bigint;
161
153
  remark: string | null;
162
154
  company_name: string | null;
163
- owner_user_type: string | null;
164
- owner_user_id: bigint;
165
155
  identity_no: string | null;
166
156
  gender: string | null;
167
157
  dob: Date | null;
@@ -171,7 +161,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
171
161
  where?: Record<string, any>;
172
162
  }) => Promise<number>;
173
163
  aggregate: ({ field, operation, where, }: {
174
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob" | "agent_id";
164
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "identity_no" | "gender" | "dob" | "agent_id";
175
165
  operation?: "sum" | "avg" | "min" | "max" | "count";
176
166
  where?: Record<string, any>;
177
167
  }) => Promise<number>;
@@ -196,8 +186,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
196
186
  user_id: bigint;
197
187
  remark: string | null;
198
188
  company_name: string | null;
199
- owner_user_type: string | null;
200
- owner_user_id: bigint;
201
189
  identity_no: string | null;
202
190
  gender: string | null;
203
191
  dob: Date | null;
@@ -222,8 +210,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
222
210
  user_id: bigint;
223
211
  remark: string | null;
224
212
  company_name: string | null;
225
- owner_user_type: string | null;
226
- owner_user_id: bigint;
227
213
  identity_no: string | null;
228
214
  gender: string | null;
229
215
  dob: Date | null;
@@ -250,8 +236,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
250
236
  user_id: bigint;
251
237
  remark: string | null;
252
238
  company_name: string | null;
253
- owner_user_type: string | null;
254
- owner_user_id: bigint;
255
239
  identity_no: string | null;
256
240
  gender: string | null;
257
241
  dob: Date | null;
@@ -277,8 +261,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
277
261
  user_id: bigint;
278
262
  remark: string | null;
279
263
  company_name: string | null;
280
- owner_user_type: string | null;
281
- owner_user_id: bigint;
282
264
  identity_no: string | null;
283
265
  gender: string | null;
284
266
  dob: Date | null;
@@ -304,8 +286,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
304
286
  user_id: bigint;
305
287
  remark: string | null;
306
288
  company_name: string | null;
307
- owner_user_type: string | null;
308
- owner_user_id: bigint;
309
289
  identity_no: string | null;
310
290
  gender: string | null;
311
291
  dob: Date | null;
@@ -332,8 +312,6 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
332
312
  user_id: bigint;
333
313
  remark: string | null;
334
314
  company_name: string | null;
335
- owner_user_type: string | null;
336
- owner_user_id: bigint;
337
315
  identity_no: string | null;
338
316
  gender: string | null;
339
317
  dob: Date | null;
@@ -22,8 +22,6 @@ export declare const ModelMemberFields: {
22
22
  remark: "remark";
23
23
  company_name: "company_name";
24
24
  member_id: "member_id";
25
- owner_user_type: "owner_user_type";
26
- owner_user_id: "owner_user_id";
27
25
  identity_no: "identity_no";
28
26
  gender: "gender";
29
27
  dob: "dob";
@@ -54,7 +52,7 @@ export type ModelMemberListProps = {
54
52
  };
55
53
  export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
56
54
  selectedPrisma: any;
57
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob";
55
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "identity_no" | "gender" | "dob";
58
56
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
59
57
  name: string;
60
58
  type: string;
@@ -81,8 +79,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
81
79
  remark: string | null;
82
80
  company_name: string | null;
83
81
  member_id: bigint;
84
- owner_user_type: string | null;
85
- owner_user_id: bigint | null;
86
82
  identity_no: string | null;
87
83
  gender: string | null;
88
84
  dob: Date | null;
@@ -110,8 +106,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
110
106
  remark: string | null;
111
107
  company_name: string | null;
112
108
  member_id: bigint;
113
- owner_user_type: string | null;
114
- owner_user_id: bigint | null;
115
109
  identity_no: string | null;
116
110
  gender: string | null;
117
111
  dob: Date | null;
@@ -140,8 +134,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
140
134
  remark: string | null;
141
135
  company_name: string | null;
142
136
  member_id: bigint;
143
- owner_user_type: string | null;
144
- owner_user_id: bigint | null;
145
137
  identity_no: string | null;
146
138
  gender: string | null;
147
139
  dob: Date | null;
@@ -166,8 +158,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
166
158
  remark: string | null;
167
159
  company_name: string | null;
168
160
  member_id: bigint;
169
- owner_user_type: string | null;
170
- owner_user_id: bigint | null;
171
161
  identity_no: string | null;
172
162
  gender: string | null;
173
163
  dob: Date | null;
@@ -176,7 +166,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
176
166
  where?: Record<string, any>;
177
167
  }) => Promise<number>;
178
168
  aggregate: ({ field, operation, where, }: {
179
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "owner_user_type" | "owner_user_id" | "identity_no" | "gender" | "dob";
169
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "code" | "address_1" | "address_2" | "postcode" | "state_id" | "area" | "country_id" | "area_id" | "user_id" | "remark" | "company_name" | "member_id" | "identity_no" | "gender" | "dob";
180
170
  operation?: "sum" | "avg" | "min" | "max" | "count";
181
171
  where?: Record<string, any>;
182
172
  }) => Promise<number>;
@@ -203,8 +193,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
203
193
  remark: string | null;
204
194
  company_name: string | null;
205
195
  member_id: bigint;
206
- owner_user_type: string | null;
207
- owner_user_id: bigint | null;
208
196
  identity_no: string | null;
209
197
  gender: string | null;
210
198
  dob: Date | null;
@@ -230,8 +218,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
230
218
  remark: string | null;
231
219
  company_name: string | null;
232
220
  member_id: bigint;
233
- owner_user_type: string | null;
234
- owner_user_id: bigint | null;
235
221
  identity_no: string | null;
236
222
  gender: string | null;
237
223
  dob: Date | null;
@@ -259,8 +245,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
259
245
  remark: string | null;
260
246
  company_name: string | null;
261
247
  member_id: bigint;
262
- owner_user_type: string | null;
263
- owner_user_id: bigint | null;
264
248
  identity_no: string | null;
265
249
  gender: string | null;
266
250
  dob: Date | null;
@@ -287,8 +271,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
287
271
  remark: string | null;
288
272
  company_name: string | null;
289
273
  member_id: bigint;
290
- owner_user_type: string | null;
291
- owner_user_id: bigint | null;
292
274
  identity_no: string | null;
293
275
  gender: string | null;
294
276
  dob: Date | null;
@@ -315,8 +297,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
315
297
  remark: string | null;
316
298
  company_name: string | null;
317
299
  member_id: bigint;
318
- owner_user_type: string | null;
319
- owner_user_id: bigint | null;
320
300
  identity_no: string | null;
321
301
  gender: string | null;
322
302
  dob: Date | null;
@@ -344,8 +324,6 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
344
324
  remark: string | null;
345
325
  company_name: string | null;
346
326
  member_id: bigint;
347
- owner_user_type: string | null;
348
- owner_user_id: bigint | null;
349
327
  identity_no: string | null;
350
328
  gender: string | null;
351
329
  dob: Date | null;
@@ -21,6 +21,7 @@ export declare const ModelUserFields: {
21
21
  address: "address";
22
22
  contact_country_code: "contact_country_code";
23
23
  contact_phone_number: "contact_phone_number";
24
+ parent_user_id: "parent_user_id";
24
25
  };
25
26
  export type ModelUser = users;
26
27
  export type ModelUserOmitFields = typeof primaryKey | DefaultOmitFields;
@@ -48,7 +49,7 @@ export type ModelUserListProps = {
48
49
  };
49
50
  export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
50
51
  selectedPrisma: any;
51
- primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number";
52
+ primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number" | "parent_user_id";
52
53
  getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
53
54
  name: string;
54
55
  type: string;
@@ -74,6 +75,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
74
75
  address: string | null;
75
76
  contact_country_code: number;
76
77
  contact_phone_number: string | null;
78
+ parent_user_id: bigint;
77
79
  }>;
78
80
  createMany: ({ dataList, disableRollback, }: {
79
81
  dataList: Omit<any, DefaultOmitFields>[];
@@ -97,6 +99,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
97
99
  address: string | null;
98
100
  contact_country_code: number;
99
101
  contact_phone_number: string | null;
102
+ parent_user_id: bigint;
100
103
  }[]>;
101
104
  get: ({ id, where, include, }: {
102
105
  id?: number;
@@ -121,6 +124,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
121
124
  address: string | null;
122
125
  contact_country_code: number;
123
126
  contact_phone_number: string | null;
127
+ parent_user_id: bigint;
124
128
  } | null>;
125
129
  list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
126
130
  createdatetime: Date | null;
@@ -141,12 +145,13 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
141
145
  address: string | null;
142
146
  contact_country_code: number;
143
147
  contact_phone_number: string | null;
148
+ parent_user_id: bigint;
144
149
  }[]>;
145
150
  count: ({ where }?: {
146
151
  where?: Record<string, any>;
147
152
  }) => Promise<number>;
148
153
  aggregate: ({ field, operation, where, }: {
149
- field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number";
154
+ field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "status" | "user_id" | "login_username" | "login_password" | "user_type" | "firstname" | "lastname" | "email" | "address" | "contact_country_code" | "contact_phone_number" | "parent_user_id";
150
155
  operation?: "sum" | "avg" | "min" | "max" | "count";
151
156
  where?: Record<string, any>;
152
157
  }) => Promise<number>;
@@ -172,6 +177,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
172
177
  address: string | null;
173
178
  contact_country_code: number;
174
179
  contact_phone_number: string | null;
180
+ parent_user_id: bigint;
175
181
  }>;
176
182
  disableRollback?: Boolean;
177
183
  }) => Promise<{
@@ -193,6 +199,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
193
199
  address: string | null;
194
200
  contact_country_code: number;
195
201
  contact_phone_number: string | null;
202
+ parent_user_id: bigint;
196
203
  }>;
197
204
  updateMany: ({ dataList, disableRollback, }: {
198
205
  dataList: {
@@ -216,6 +223,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
216
223
  address: string | null;
217
224
  contact_country_code: number;
218
225
  contact_phone_number: string | null;
226
+ parent_user_id: bigint;
219
227
  }>;
220
228
  }[];
221
229
  disableRollback?: boolean;
@@ -238,6 +246,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
238
246
  address: string | null;
239
247
  contact_country_code: number;
240
248
  contact_phone_number: string | null;
249
+ parent_user_id: bigint;
241
250
  }[]>;
242
251
  trash: ({ ids }: {
243
252
  ids: number[];
@@ -260,6 +269,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
260
269
  address: string | null;
261
270
  contact_country_code: number;
262
271
  contact_phone_number: string | null;
272
+ parent_user_id: bigint;
263
273
  }[]>;
264
274
  remove: ({ ids, where }: {
265
275
  ids?: number[];
@@ -283,6 +293,7 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
283
293
  address: string | null;
284
294
  contact_country_code: number;
285
295
  contact_phone_number: string | null;
296
+ parent_user_id: bigint;
286
297
  }[]>;
287
298
  raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
288
299
  rawExec: (query: string, params?: any[]) => Promise<number>;
@@ -0,0 +1,3 @@
1
+ export * as schemaCommon from "./common";
2
+ export * as schemaMiddleware from "./middleware";
3
+ export * as schemaPayload from "./payload";
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.schemaPayload = exports.schemaMiddleware = exports.schemaCommon = void 0;
37
+ exports.schemaCommon = __importStar(require("./common"));
38
+ exports.schemaMiddleware = __importStar(require("./middleware"));
39
+ exports.schemaPayload = __importStar(require("./payload"));
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAwC;AACxC,iEAAgD;AAChD,2DAA0C","sourcesContent":["export * as schemaCommon from \"./common\"\nexport * as schemaMiddleware from \"./middleware\"\nexport * as schemaPayload from \"./payload\""]}
@@ -0,0 +1,2 @@
1
+ export * from "./request";
2
+ export * from "./route";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./request"), exports);
18
+ __exportStar(require("./route"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/middleware/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB","sourcesContent":["export * from \"./request\"\nexport * from \"./route\""]}
@@ -1,27 +1,27 @@
1
- export { schemaRouteDocumentList } from "../../../schema/middleware/route/schemaDocument";
2
- export { schemaRouteRepositoryList } from "../../../schema/middleware/route/schemaRepository";
3
- export { schemaRouteUserList } from "../../../schema/middleware/route/schemaUser";
4
- export { schemaRouteBusinessList } from "../../../schema/middleware/route/schemaBusiness";
5
- export { schemaRouteAccessKeyList } from "../../../schema/middleware/route/schemaAccessKey";
6
- export { schemaRouteOneTimeCodeList } from "../../../schema/middleware/route/schemaOneTimeCode";
7
- export { schemaRouteAccountList } from "../../../schema/middleware/route/schemaAccount";
8
- export { schemaRouteUserBranchList } from "../../../schema/middleware/route/schemaUserBranch";
9
- export { schemaRouteItemList } from "../../../schema/middleware/route/schemaItem";
10
- export { schemaRouteFileList } from "../../../schema/middleware/route/schemaFile";
11
- export { schemaRouteLocationList } from "../../../schema/middleware/route/schemaLocation";
12
- export { schemaRouteRegionList } from "../../../schema/middleware/route/schemaRegion";
13
- export { schemaQueryList } from "../../../schema/middleware/route/schemaQueryList";
14
- export { schemaRouteAccessControlListPolicyOptions } from "../../../schema/middleware/route/schemaAccessControl";
15
- export type { QueryList } from "../../../schema/middleware/route/schemaQueryList";
16
- export type { SchemaRouteUserList } from "../../../schema/middleware/route/schemaUser";
17
- export type { SchemaRouteAccountList } from "../../../schema/middleware/route/schemaAccount";
18
- export type { SchemaRouteBusinessList } from "../../../schema/middleware/route/schemaBusiness";
19
- export type { SchemaRouteAccessKeyList } from "../../../schema/middleware/route/schemaAccessKey";
20
- export type { SchemaRouteOneTimeCodeList } from "../../../schema/middleware/route/schemaOneTimeCode";
21
- export type { SchemaRouteUserBranchList } from "../../../schema/middleware/route/schemaUserBranch";
22
- export type { SchemaRouteItemList } from "../../../schema/middleware/route/schemaItem";
23
- export type { SchemaRouteFileList } from "../../../schema/middleware/route/schemaFile";
24
- export type { SchemaRouteRegionList } from "../../../schema/middleware/route/schemaRegion";
25
- export type { SchemaRouteDocumentList } from "../../../schema/middleware/route/schemaDocument";
26
- export type { SchemaRouteRepositoryList } from "../../../schema/middleware/route/schemaRepository";
27
- export type { SchemaRouteAccessControlListPolicyOptions } from "../../../schema/middleware/route/schemaAccessControl";
1
+ export { schemaRouteDocumentList } from "./schemaDocument";
2
+ export { schemaRouteRepositoryList } from "./schemaRepository";
3
+ export { schemaRouteUserList } from "./schemaUser";
4
+ export { schemaRouteBusinessList } from "./schemaBusiness";
5
+ export { schemaRouteAccessKeyList } from "./schemaAccessKey";
6
+ export { schemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
7
+ export { schemaRouteAccountList } from "./schemaAccount";
8
+ export { schemaRouteUserBranchList } from "./schemaUserBranch";
9
+ export { schemaRouteItemList } from "./schemaItem";
10
+ export { schemaRouteFileList } from "./schemaFile";
11
+ export { schemaRouteLocationList } from "./schemaLocation";
12
+ export { schemaRouteRegionList } from "./schemaRegion";
13
+ export { schemaQueryList } from "./schemaQueryList";
14
+ export { schemaRouteAccessControlListPolicyOptions } from "./schemaAccessControl";
15
+ export type { QueryList } from "./schemaQueryList";
16
+ export type { SchemaRouteUserList } from "./schemaUser";
17
+ export type { SchemaRouteAccountList } from "./schemaAccount";
18
+ export type { SchemaRouteBusinessList } from "./schemaBusiness";
19
+ export type { SchemaRouteAccessKeyList } from "./schemaAccessKey";
20
+ export type { SchemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
21
+ export type { SchemaRouteUserBranchList } from "./schemaUserBranch";
22
+ export type { SchemaRouteItemList } from "./schemaItem";
23
+ export type { SchemaRouteFileList } from "./schemaFile";
24
+ export type { SchemaRouteRegionList } from "./schemaRegion";
25
+ export type { SchemaRouteDocumentList } from "./schemaDocument";
26
+ export type { SchemaRouteRepositoryList } from "./schemaRepository";
27
+ export type { SchemaRouteAccessControlListPolicyOptions } from "./schemaAccessControl";
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schemaRouteAccessControlListPolicyOptions = exports.schemaQueryList = exports.schemaRouteRegionList = exports.schemaRouteLocationList = exports.schemaRouteFileList = exports.schemaRouteItemList = exports.schemaRouteUserBranchList = exports.schemaRouteAccountList = exports.schemaRouteOneTimeCodeList = exports.schemaRouteAccessKeyList = exports.schemaRouteBusinessList = exports.schemaRouteUserList = exports.schemaRouteRepositoryList = exports.schemaRouteDocumentList = void 0;
4
- var schemaDocument_1 = require("../../../schema/middleware/route/schemaDocument");
4
+ var schemaDocument_1 = require("./schemaDocument");
5
5
  Object.defineProperty(exports, "schemaRouteDocumentList", { enumerable: true, get: function () { return schemaDocument_1.schemaRouteDocumentList; } });
6
- var schemaRepository_1 = require("../../../schema/middleware/route/schemaRepository");
6
+ var schemaRepository_1 = require("./schemaRepository");
7
7
  Object.defineProperty(exports, "schemaRouteRepositoryList", { enumerable: true, get: function () { return schemaRepository_1.schemaRouteRepositoryList; } });
8
- var schemaUser_1 = require("../../../schema/middleware/route/schemaUser");
8
+ var schemaUser_1 = require("./schemaUser");
9
9
  Object.defineProperty(exports, "schemaRouteUserList", { enumerable: true, get: function () { return schemaUser_1.schemaRouteUserList; } });
10
- var schemaBusiness_1 = require("../../../schema/middleware/route/schemaBusiness");
10
+ var schemaBusiness_1 = require("./schemaBusiness");
11
11
  Object.defineProperty(exports, "schemaRouteBusinessList", { enumerable: true, get: function () { return schemaBusiness_1.schemaRouteBusinessList; } });
12
- var schemaAccessKey_1 = require("../../../schema/middleware/route/schemaAccessKey");
12
+ var schemaAccessKey_1 = require("./schemaAccessKey");
13
13
  Object.defineProperty(exports, "schemaRouteAccessKeyList", { enumerable: true, get: function () { return schemaAccessKey_1.schemaRouteAccessKeyList; } });
14
- var schemaOneTimeCode_1 = require("../../../schema/middleware/route/schemaOneTimeCode");
14
+ var schemaOneTimeCode_1 = require("./schemaOneTimeCode");
15
15
  Object.defineProperty(exports, "schemaRouteOneTimeCodeList", { enumerable: true, get: function () { return schemaOneTimeCode_1.schemaRouteOneTimeCodeList; } });
16
- var schemaAccount_1 = require("../../../schema/middleware/route/schemaAccount");
16
+ var schemaAccount_1 = require("./schemaAccount");
17
17
  Object.defineProperty(exports, "schemaRouteAccountList", { enumerable: true, get: function () { return schemaAccount_1.schemaRouteAccountList; } });
18
- var schemaUserBranch_1 = require("../../../schema/middleware/route/schemaUserBranch");
18
+ var schemaUserBranch_1 = require("./schemaUserBranch");
19
19
  Object.defineProperty(exports, "schemaRouteUserBranchList", { enumerable: true, get: function () { return schemaUserBranch_1.schemaRouteUserBranchList; } });
20
- var schemaItem_1 = require("../../../schema/middleware/route/schemaItem");
20
+ var schemaItem_1 = require("./schemaItem");
21
21
  Object.defineProperty(exports, "schemaRouteItemList", { enumerable: true, get: function () { return schemaItem_1.schemaRouteItemList; } });
22
- var schemaFile_1 = require("../../../schema/middleware/route/schemaFile");
22
+ var schemaFile_1 = require("./schemaFile");
23
23
  Object.defineProperty(exports, "schemaRouteFileList", { enumerable: true, get: function () { return schemaFile_1.schemaRouteFileList; } });
24
- var schemaLocation_1 = require("../../../schema/middleware/route/schemaLocation");
24
+ var schemaLocation_1 = require("./schemaLocation");
25
25
  Object.defineProperty(exports, "schemaRouteLocationList", { enumerable: true, get: function () { return schemaLocation_1.schemaRouteLocationList; } });
26
- var schemaRegion_1 = require("../../../schema/middleware/route/schemaRegion");
26
+ var schemaRegion_1 = require("./schemaRegion");
27
27
  Object.defineProperty(exports, "schemaRouteRegionList", { enumerable: true, get: function () { return schemaRegion_1.schemaRouteRegionList; } });
28
- var schemaQueryList_1 = require("../../../schema/middleware/route/schemaQueryList");
28
+ var schemaQueryList_1 = require("./schemaQueryList");
29
29
  Object.defineProperty(exports, "schemaQueryList", { enumerable: true, get: function () { return schemaQueryList_1.schemaQueryList; } });
30
- var schemaAccessControl_1 = require("../../../schema/middleware/route/schemaAccessControl");
30
+ var schemaAccessControl_1 = require("./schemaAccessControl");
31
31
  Object.defineProperty(exports, "schemaRouteAccessControlListPolicyOptions", { enumerable: true, get: function () { return schemaAccessControl_1.schemaRouteAccessControlListPolicyOptions; } });
32
32
  //# sourceMappingURL=index.js.map