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.
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +5 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/model_factory/ModelFactory.d.ts +7 -6
- package/dist/lib/model_factory/ModelFactory.js +595 -197
- package/dist/lib/model_factory/ModelFactory.js.map +1 -1
- package/dist/lib/query_builder/queryBuilder.d.ts +1 -1
- package/dist/lib/query_builder/queryBuilder.js +66 -15
- package/dist/lib/query_builder/queryBuilder.js.map +1 -1
- package/dist/lib/query_builder/queryDocumentProfile.d.ts +7 -0
- package/dist/lib/query_builder/queryDocumentProfile.js +87 -0
- package/dist/lib/query_builder/queryDocumentProfile.js.map +1 -0
- package/dist/lib/query_builder/queryUserBranch.d.ts +10 -0
- package/dist/lib/query_builder/queryUserBranch.js +31 -0
- package/dist/lib/query_builder/queryUserBranch.js.map +1 -0
- package/dist/models/access_control/AccessControlRoleModel.d.ts +4 -5
- package/dist/models/access_control/AccessControlRolePolicyModel.d.ts +4 -5
- package/dist/models/access_control/AccessControlUserRoleModel.d.ts +4 -5
- package/dist/models/account/AccountModel.d.ts +4 -5
- package/dist/models/auth/AccessKeyModel.d.ts +4 -5
- package/dist/models/branch/UserBranchModel.d.ts +4 -5
- package/dist/models/branch_user/BranchUserModel.d.ts +4 -5
- package/dist/models/business/BusinessModel.d.ts +4 -5
- package/dist/models/document/DocumentAmountModel.d.ts +4 -5
- package/dist/models/document/DocumentDocumentModel.d.ts +4 -5
- package/dist/models/document/DocumentItemModel.d.ts +4 -5
- package/dist/models/document/DocumentLocationModel.d.ts +4 -5
- package/dist/models/document/DocumentModel.d.ts +4 -5
- package/dist/models/document/DocumentPaymentModel.d.ts +4 -5
- package/dist/models/document/DocumentProfileModel.d.ts +4 -5
- package/dist/models/document/DocumentTotalModel.d.ts +4 -5
- package/dist/models/file/FileModel.d.ts +4 -5
- package/dist/models/group/GroupModel.d.ts +4 -5
- package/dist/models/group/GroupOwnerModel.d.ts +4 -5
- package/dist/models/injection_field/DocumentInjectionFieldModel.d.ts +4 -5
- package/dist/models/injection_field/InjectionFieldModel.d.ts +4 -5
- package/dist/models/injection_field/ItemInjectionFieldModel.d.ts +4 -5
- package/dist/models/injection_field/LogisticInjectionFieldModel.d.ts +4 -5
- package/dist/models/injection_field/RepositoryInjectionFieldModel.d.ts +4 -5
- package/dist/models/injection_field/UserInjectionFieldModel.d.ts +4 -5
- package/dist/models/item/BrandModel.d.ts +4 -5
- package/dist/models/item/CategoryModel.d.ts +4 -5
- package/dist/models/item/ItemModel.d.ts +4 -5
- package/dist/models/item/ProductModel.d.ts +4 -5
- package/dist/models/item/UomModel.d.ts +4 -5
- package/dist/models/location/LocationModel.d.ts +4 -5
- package/dist/models/location/LocationRackModel.d.ts +4 -5
- package/dist/models/location/LocationSlotModel.d.ts +4 -5
- package/dist/models/others/NumberDateSequenceModel.d.ts +4 -5
- package/dist/models/others/OneTimeCodeModel.d.ts +4 -5
- package/dist/models/region/AreaModel.d.ts +4 -5
- package/dist/models/region/CountryModel.d.ts +4 -5
- package/dist/models/region/StateModel.d.ts +4 -5
- package/dist/models/repository/RepositoryCartonModel.d.ts +4 -5
- package/dist/models/repository/RepositoryContainerModel.d.ts +4 -5
- package/dist/models/repository/RepositoryModel.d.ts +4 -5
- package/dist/models/repository/RepositoryPackageItemModel.d.ts +4 -5
- package/dist/models/repository/RepositoryPackageModel.d.ts +4 -5
- package/dist/models/repository/RepositoryPalletModel.d.ts +4 -5
- package/dist/models/scheduler/SchedulerLogModel.d.ts +4 -5
- package/dist/models/scheduler/SchedulerRequestModel.d.ts +4 -5
- package/dist/models/subscription/account/AccountSubscribeModel.d.ts +4 -5
- package/dist/models/subscription/plan/SubscribePlanModel.d.ts +4 -5
- package/dist/models/user/AdministratorModel.d.ts +4 -5
- package/dist/models/user/AgentModel.d.ts +4 -5
- package/dist/models/user/CustomerModel.d.ts +4 -5
- package/dist/models/user/DriverModel.d.ts +4 -5
- package/dist/models/user/MemberModel.d.ts +4 -5
- package/dist/models/user/OperatorModel.d.ts +4 -5
- package/dist/models/user/RetailerModel.d.ts +4 -5
- package/dist/models/user/UserModel.d.ts +4 -5
- package/dist/models/user/UserPropModel.d.ts +4 -5
- package/dist/models/user/WorkerModel.d.ts +4 -5
- package/dist/schema/payload/document/schemaDocumentCashSales.d.ts +64 -64
- package/dist/schema/payload/document/schemaDocumentDeliveryOrder.d.ts +64 -64
- package/dist/schema/payload/document/schemaDocumentProformaSales.d.ts +64 -64
- package/dist/schema/payload/document/schemaDocumentReplacementDeliveryOrder.d.ts +64 -64
- package/dist/schema/payload/document/schemaDocumentSalesOrder.d.ts +64 -64
- package/dist/services/branch/UserBranchService.d.ts +2 -2
- package/dist/services/branch/UserBranchService.js +53 -22
- package/dist/services/branch/UserBranchService.js.map +1 -1
- package/dist/services/document/DocumentProfileService.js +47 -19
- package/dist/services/document/DocumentProfileService.js.map +1 -1
- package/dist/utils/serviceUtils.d.ts +2 -0
- package/dist/utils/serviceUtils.js.map +1 -1
- package/package.json +1 -1
|
@@ -64,7 +64,7 @@ export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
64
64
|
name: string;
|
|
65
65
|
type: string;
|
|
66
66
|
}[]>;
|
|
67
|
-
create: ({ data }: {
|
|
67
|
+
create: ({ data, }: {
|
|
68
68
|
data: Omit<any, DefaultOmitFields>;
|
|
69
69
|
}) => Promise<{
|
|
70
70
|
createdatetime: Date | null;
|
|
@@ -154,7 +154,7 @@ export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
154
154
|
destination_submit_payload: string | null;
|
|
155
155
|
destination_submit_response: string | null;
|
|
156
156
|
} | null>;
|
|
157
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
157
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
158
158
|
createdatetime: Date | null;
|
|
159
159
|
createuserid: bigint;
|
|
160
160
|
updatedatetime: Date | null;
|
|
@@ -181,7 +181,7 @@ export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
181
181
|
destination_submit_payload: string | null;
|
|
182
182
|
destination_submit_response: string | null;
|
|
183
183
|
}[]>;
|
|
184
|
-
count: ({ where }?: {
|
|
184
|
+
count: ({ where, }?: {
|
|
185
185
|
where?: Record<string, any>;
|
|
186
186
|
}) => Promise<number>;
|
|
187
187
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -219,7 +219,7 @@ export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
219
219
|
destination_submit_payload: string | null;
|
|
220
220
|
destination_submit_response: string | null;
|
|
221
221
|
}>;
|
|
222
|
-
disableRollback?:
|
|
222
|
+
disableRollback?: boolean;
|
|
223
223
|
}) => Promise<{
|
|
224
224
|
createdatetime: Date | null;
|
|
225
225
|
createuserid: bigint;
|
|
@@ -366,6 +366,5 @@ export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
366
366
|
destination_submit_response: string | null;
|
|
367
367
|
}[]>;
|
|
368
368
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
369
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
370
369
|
};
|
|
371
370
|
export {};
|
|
@@ -60,7 +60,7 @@ export declare const SchedulerRequestModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
60
60
|
name: string;
|
|
61
61
|
type: string;
|
|
62
62
|
}[]>;
|
|
63
|
-
create: ({ data }: {
|
|
63
|
+
create: ({ data, }: {
|
|
64
64
|
data: Omit<any, DefaultOmitFields>;
|
|
65
65
|
}) => Promise<{
|
|
66
66
|
createdatetime: Date | null;
|
|
@@ -138,7 +138,7 @@ export declare const SchedulerRequestModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
138
138
|
attempt_result: string | null;
|
|
139
139
|
attempt_datetime: Date | null;
|
|
140
140
|
} | null>;
|
|
141
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
141
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
142
142
|
createdatetime: Date | null;
|
|
143
143
|
createuserid: bigint;
|
|
144
144
|
updatedatetime: Date | null;
|
|
@@ -161,7 +161,7 @@ export declare const SchedulerRequestModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
161
161
|
attempt_result: string | null;
|
|
162
162
|
attempt_datetime: Date | null;
|
|
163
163
|
}[]>;
|
|
164
|
-
count: ({ where }?: {
|
|
164
|
+
count: ({ where, }?: {
|
|
165
165
|
where?: Record<string, any>;
|
|
166
166
|
}) => Promise<number>;
|
|
167
167
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -195,7 +195,7 @@ export declare const SchedulerRequestModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
195
195
|
attempt_result: string | null;
|
|
196
196
|
attempt_datetime: Date | null;
|
|
197
197
|
}>;
|
|
198
|
-
disableRollback?:
|
|
198
|
+
disableRollback?: boolean;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
createdatetime: Date | null;
|
|
201
201
|
createuserid: bigint;
|
|
@@ -322,6 +322,5 @@ export declare const SchedulerRequestModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
322
322
|
attempt_datetime: Date | null;
|
|
323
323
|
}[]>;
|
|
324
324
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
325
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
326
325
|
};
|
|
327
326
|
export {};
|
|
@@ -50,7 +50,7 @@ export declare const AccountSubscribeModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
50
50
|
name: string;
|
|
51
51
|
type: string;
|
|
52
52
|
}[]>;
|
|
53
|
-
create: ({ data }: {
|
|
53
|
+
create: ({ data, }: {
|
|
54
54
|
data: Omit<any, DefaultOmitFields>;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
createdatetime: Date | null;
|
|
@@ -110,7 +110,7 @@ export declare const AccountSubscribeModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
110
110
|
is_cancel: boolean | null;
|
|
111
111
|
cancel_datetime: Date | 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;
|
|
@@ -127,7 +127,7 @@ export declare const AccountSubscribeModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
127
127
|
is_cancel: boolean | null;
|
|
128
128
|
cancel_datetime: Date | null;
|
|
129
129
|
}[]>;
|
|
130
|
-
count: ({ where }?: {
|
|
130
|
+
count: ({ where, }?: {
|
|
131
131
|
where?: Record<string, any>;
|
|
132
132
|
}) => Promise<number>;
|
|
133
133
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -155,7 +155,7 @@ export declare const AccountSubscribeModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
155
155
|
is_cancel: boolean | null;
|
|
156
156
|
cancel_datetime: Date | null;
|
|
157
157
|
}>;
|
|
158
|
-
disableRollback?:
|
|
158
|
+
disableRollback?: boolean;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
createdatetime: Date | null;
|
|
161
161
|
createuserid: bigint;
|
|
@@ -252,6 +252,5 @@ export declare const AccountSubscribeModel: ({ ...rest }: DefaultServiceProps) =
|
|
|
252
252
|
cancel_datetime: Date | null;
|
|
253
253
|
}[]>;
|
|
254
254
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
255
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
256
255
|
};
|
|
257
256
|
export {};
|
|
@@ -51,7 +51,7 @@ export declare const SubscribePlanModel: ({ ...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;
|
|
@@ -114,7 +114,7 @@ export declare const SubscribePlanModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
114
114
|
billing_cycle: string;
|
|
115
115
|
is_single_subscription: boolean;
|
|
116
116
|
} | null>;
|
|
117
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
117
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
118
118
|
createdatetime: Date | null;
|
|
119
119
|
createuserid: bigint;
|
|
120
120
|
updatedatetime: Date | null;
|
|
@@ -132,7 +132,7 @@ export declare const SubscribePlanModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
132
132
|
billing_cycle: string;
|
|
133
133
|
is_single_subscription: boolean;
|
|
134
134
|
}[]>;
|
|
135
|
-
count: ({ where }?: {
|
|
135
|
+
count: ({ where, }?: {
|
|
136
136
|
where?: Record<string, any>;
|
|
137
137
|
}) => Promise<number>;
|
|
138
138
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -161,7 +161,7 @@ export declare const SubscribePlanModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
161
161
|
billing_cycle: string;
|
|
162
162
|
is_single_subscription: boolean;
|
|
163
163
|
}>;
|
|
164
|
-
disableRollback?:
|
|
164
|
+
disableRollback?: boolean;
|
|
165
165
|
}) => Promise<{
|
|
166
166
|
createdatetime: Date | null;
|
|
167
167
|
createuserid: bigint;
|
|
@@ -263,6 +263,5 @@ export declare const SubscribePlanModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
263
263
|
is_single_subscription: boolean;
|
|
264
264
|
}[]>;
|
|
265
265
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
266
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
267
266
|
};
|
|
268
267
|
export {};
|
|
@@ -45,7 +45,7 @@ export declare const AdministratorModel: ({ ...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 AdministratorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
90
90
|
administrator_id: bigint;
|
|
91
91
|
is_owner: boolean;
|
|
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;
|
|
96
96
|
updatedatetime: Date | null;
|
|
@@ -102,7 +102,7 @@ export declare const AdministratorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
102
102
|
administrator_id: bigint;
|
|
103
103
|
is_owner: boolean;
|
|
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 AdministratorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
125
125
|
administrator_id: bigint;
|
|
126
126
|
is_owner: boolean;
|
|
127
127
|
}>;
|
|
128
|
-
disableRollback?:
|
|
128
|
+
disableRollback?: boolean;
|
|
129
129
|
}) => Promise<{
|
|
130
130
|
createdatetime: Date | null;
|
|
131
131
|
createuserid: bigint;
|
|
@@ -197,6 +197,5 @@ export declare const AdministratorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
197
197
|
is_owner: boolean;
|
|
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 {};
|
|
@@ -56,7 +56,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
56
56
|
name: string;
|
|
57
57
|
type: string;
|
|
58
58
|
}[]>;
|
|
59
|
-
create: ({ data }: {
|
|
59
|
+
create: ({ data, }: {
|
|
60
60
|
data: Omit<any, DefaultOmitFields>;
|
|
61
61
|
}) => Promise<{
|
|
62
62
|
createdatetime: Date | null;
|
|
@@ -134,7 +134,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
134
134
|
dob: Date | null;
|
|
135
135
|
agent_id: bigint;
|
|
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;
|
|
@@ -157,7 +157,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
157
157
|
dob: Date | null;
|
|
158
158
|
agent_id: bigint;
|
|
159
159
|
}[]>;
|
|
160
|
-
count: ({ where }?: {
|
|
160
|
+
count: ({ where, }?: {
|
|
161
161
|
where?: Record<string, any>;
|
|
162
162
|
}) => Promise<number>;
|
|
163
163
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -191,7 +191,7 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
191
191
|
dob: Date | null;
|
|
192
192
|
agent_id: bigint;
|
|
193
193
|
}>;
|
|
194
|
-
disableRollback?:
|
|
194
|
+
disableRollback?: boolean;
|
|
195
195
|
}) => Promise<{
|
|
196
196
|
createdatetime: Date | null;
|
|
197
197
|
createuserid: bigint;
|
|
@@ -318,6 +318,5 @@ export declare const AgentModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
318
318
|
agent_id: bigint;
|
|
319
319
|
}[]>;
|
|
320
320
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
321
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
322
321
|
};
|
|
323
322
|
export {};
|
|
@@ -53,7 +53,7 @@ export declare const CustomerModel: ({ ...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;
|
|
@@ -122,7 +122,7 @@ export declare const CustomerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
122
122
|
tax_registration_no: string | null;
|
|
123
123
|
secondary_reg_no: string | null;
|
|
124
124
|
} | null>;
|
|
125
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
125
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
126
126
|
createdatetime: Date | null;
|
|
127
127
|
createuserid: bigint;
|
|
128
128
|
updatedatetime: Date | null;
|
|
@@ -142,7 +142,7 @@ export declare const CustomerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
142
142
|
tax_registration_no: string | null;
|
|
143
143
|
secondary_reg_no: string | null;
|
|
144
144
|
}[]>;
|
|
145
|
-
count: ({ where }?: {
|
|
145
|
+
count: ({ where, }?: {
|
|
146
146
|
where?: Record<string, any>;
|
|
147
147
|
}) => Promise<number>;
|
|
148
148
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -173,7 +173,7 @@ export declare const CustomerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
173
173
|
tax_registration_no: string | null;
|
|
174
174
|
secondary_reg_no: string | null;
|
|
175
175
|
}>;
|
|
176
|
-
disableRollback?:
|
|
176
|
+
disableRollback?: boolean;
|
|
177
177
|
}) => Promise<{
|
|
178
178
|
createdatetime: Date | null;
|
|
179
179
|
createuserid: bigint;
|
|
@@ -285,6 +285,5 @@ export declare const CustomerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
285
285
|
secondary_reg_no: string | null;
|
|
286
286
|
}[]>;
|
|
287
287
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
288
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
289
288
|
};
|
|
290
289
|
export {};
|
|
@@ -46,7 +46,7 @@ export declare const DriverModel: ({ ...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 DriverModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
94
94
|
company_name: string | null;
|
|
95
95
|
driver_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 DriverModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
107
107
|
company_name: string | null;
|
|
108
108
|
driver_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 DriverModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
131
131
|
company_name: string | null;
|
|
132
132
|
driver_id: bigint;
|
|
133
133
|
}>;
|
|
134
|
-
disableRollback?:
|
|
134
|
+
disableRollback?: boolean;
|
|
135
135
|
}) => Promise<{
|
|
136
136
|
createdatetime: Date | null;
|
|
137
137
|
createuserid: bigint;
|
|
@@ -208,6 +208,5 @@ export declare const DriverModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
208
208
|
driver_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 {};
|
|
@@ -57,7 +57,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
57
57
|
name: string;
|
|
58
58
|
type: string;
|
|
59
59
|
}[]>;
|
|
60
|
-
create: ({ data }: {
|
|
60
|
+
create: ({ data, }: {
|
|
61
61
|
data: Omit<any, DefaultOmitFields>;
|
|
62
62
|
}) => Promise<{
|
|
63
63
|
createdatetime: Date | null;
|
|
@@ -138,7 +138,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
138
138
|
gender: string | null;
|
|
139
139
|
dob: Date | null;
|
|
140
140
|
} | null>;
|
|
141
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
141
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
142
142
|
createdatetime: Date | null;
|
|
143
143
|
createuserid: bigint;
|
|
144
144
|
updatedatetime: Date | null;
|
|
@@ -162,7 +162,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
162
162
|
gender: string | null;
|
|
163
163
|
dob: Date | null;
|
|
164
164
|
}[]>;
|
|
165
|
-
count: ({ where }?: {
|
|
165
|
+
count: ({ where, }?: {
|
|
166
166
|
where?: Record<string, any>;
|
|
167
167
|
}) => Promise<number>;
|
|
168
168
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -197,7 +197,7 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
197
197
|
gender: string | null;
|
|
198
198
|
dob: Date | null;
|
|
199
199
|
}>;
|
|
200
|
-
disableRollback?:
|
|
200
|
+
disableRollback?: boolean;
|
|
201
201
|
}) => Promise<{
|
|
202
202
|
createdatetime: Date | null;
|
|
203
203
|
createuserid: bigint;
|
|
@@ -329,6 +329,5 @@ export declare const MemberModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
329
329
|
dob: Date | null;
|
|
330
330
|
}[]>;
|
|
331
331
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
332
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
333
332
|
};
|
|
334
333
|
export {};
|
|
@@ -44,7 +44,7 @@ export declare const OperatorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
44
44
|
name: string;
|
|
45
45
|
type: string;
|
|
46
46
|
}[]>;
|
|
47
|
-
create: ({ data }: {
|
|
47
|
+
create: ({ data, }: {
|
|
48
48
|
data: Omit<any, DefaultOmitFields>;
|
|
49
49
|
}) => Promise<{
|
|
50
50
|
createdatetime: Date | null;
|
|
@@ -86,7 +86,7 @@ export declare const OperatorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
86
86
|
user_id: bigint;
|
|
87
87
|
operator_id: bigint;
|
|
88
88
|
} | null>;
|
|
89
|
-
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
89
|
+
list: ({ where, orderBy, offset, limit, include, }?: any) => Promise<{
|
|
90
90
|
createdatetime: Date | null;
|
|
91
91
|
createuserid: bigint;
|
|
92
92
|
updatedatetime: Date | null;
|
|
@@ -97,7 +97,7 @@ export declare const OperatorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
97
97
|
user_id: bigint;
|
|
98
98
|
operator_id: bigint;
|
|
99
99
|
}[]>;
|
|
100
|
-
count: ({ where }?: {
|
|
100
|
+
count: ({ where, }?: {
|
|
101
101
|
where?: Record<string, any>;
|
|
102
102
|
}) => Promise<number>;
|
|
103
103
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -119,7 +119,7 @@ export declare const OperatorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
119
119
|
user_id: bigint;
|
|
120
120
|
operator_id: bigint;
|
|
121
121
|
}>;
|
|
122
|
-
disableRollback?:
|
|
122
|
+
disableRollback?: boolean;
|
|
123
123
|
}) => Promise<{
|
|
124
124
|
createdatetime: Date | null;
|
|
125
125
|
createuserid: bigint;
|
|
@@ -186,6 +186,5 @@ export declare const OperatorModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
186
186
|
operator_id: bigint;
|
|
187
187
|
}[]>;
|
|
188
188
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
189
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
190
189
|
};
|
|
191
190
|
export {};
|
|
@@ -50,7 +50,7 @@ export declare const RetailerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
50
50
|
name: string;
|
|
51
51
|
type: string;
|
|
52
52
|
}[]>;
|
|
53
|
-
create: ({ data }: {
|
|
53
|
+
create: ({ data, }: {
|
|
54
54
|
data: Omit<any, DefaultOmitFields>;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
createdatetime: Date | null;
|
|
@@ -110,7 +110,7 @@ export declare const RetailerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
110
110
|
account_code: string | null;
|
|
111
111
|
retailer_id: bigint;
|
|
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;
|
|
@@ -127,7 +127,7 @@ export declare const RetailerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
127
127
|
account_code: string | null;
|
|
128
128
|
retailer_id: bigint;
|
|
129
129
|
}[]>;
|
|
130
|
-
count: ({ where }?: {
|
|
130
|
+
count: ({ where, }?: {
|
|
131
131
|
where?: Record<string, any>;
|
|
132
132
|
}) => Promise<number>;
|
|
133
133
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -155,7 +155,7 @@ export declare const RetailerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
155
155
|
account_code: string | null;
|
|
156
156
|
retailer_id: bigint;
|
|
157
157
|
}>;
|
|
158
|
-
disableRollback?:
|
|
158
|
+
disableRollback?: boolean;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
createdatetime: Date | null;
|
|
161
161
|
createuserid: bigint;
|
|
@@ -252,6 +252,5 @@ export declare const RetailerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
252
252
|
retailer_id: bigint;
|
|
253
253
|
}[]>;
|
|
254
254
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
255
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
256
255
|
};
|
|
257
256
|
export {};
|
|
@@ -54,7 +54,7 @@ export declare const UserModel: ({ ...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 UserModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
126
126
|
contact_phone_number: string | null;
|
|
127
127
|
parent_user_id: bigint;
|
|
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 UserModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
147
147
|
contact_phone_number: string | null;
|
|
148
148
|
parent_user_id: bigint;
|
|
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 UserModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
179
179
|
contact_phone_number: string | null;
|
|
180
180
|
parent_user_id: bigint;
|
|
181
181
|
}>;
|
|
182
|
-
disableRollback?:
|
|
182
|
+
disableRollback?: boolean;
|
|
183
183
|
}) => Promise<{
|
|
184
184
|
createdatetime: Date | null;
|
|
185
185
|
createuserid: bigint;
|
|
@@ -296,6 +296,5 @@ export declare const UserModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
296
296
|
parent_user_id: bigint;
|
|
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 {};
|
|
@@ -50,7 +50,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
50
50
|
name: string;
|
|
51
51
|
type: string;
|
|
52
52
|
}[]>;
|
|
53
|
-
create: ({ data }: {
|
|
53
|
+
create: ({ data, }: {
|
|
54
54
|
data: Omit<any, DefaultOmitFields>;
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
createdatetime: Date | null;
|
|
@@ -110,7 +110,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
110
110
|
props_timestamp: Date | null;
|
|
111
111
|
props_integer: bigint | 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;
|
|
@@ -127,7 +127,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
127
127
|
props_timestamp: Date | null;
|
|
128
128
|
props_integer: bigint | null;
|
|
129
129
|
}[]>;
|
|
130
|
-
count: ({ where }?: {
|
|
130
|
+
count: ({ where, }?: {
|
|
131
131
|
where?: Record<string, any>;
|
|
132
132
|
}) => Promise<number>;
|
|
133
133
|
aggregate: ({ field, operation, where, }: {
|
|
@@ -155,7 +155,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
155
155
|
props_timestamp: Date | null;
|
|
156
156
|
props_integer: bigint | null;
|
|
157
157
|
}>;
|
|
158
|
-
disableRollback?:
|
|
158
|
+
disableRollback?: boolean;
|
|
159
159
|
}) => Promise<{
|
|
160
160
|
createdatetime: Date | null;
|
|
161
161
|
createuserid: bigint;
|
|
@@ -252,6 +252,5 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
252
252
|
props_integer: bigint | null;
|
|
253
253
|
}[]>;
|
|
254
254
|
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
255
|
-
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
256
255
|
};
|
|
257
256
|
export {};
|
|
@@ -45,7 +45,7 @@ export declare const WorkerModel: ({ ...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 WorkerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
90
90
|
remark: string | null;
|
|
91
91
|
worker_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;
|
|
96
96
|
updatedatetime: Date | null;
|
|
@@ -102,7 +102,7 @@ export declare const WorkerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
102
102
|
remark: string | null;
|
|
103
103
|
worker_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 WorkerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
125
125
|
remark: string | null;
|
|
126
126
|
worker_id: bigint;
|
|
127
127
|
}>;
|
|
128
|
-
disableRollback?:
|
|
128
|
+
disableRollback?: boolean;
|
|
129
129
|
}) => Promise<{
|
|
130
130
|
createdatetime: Date | null;
|
|
131
131
|
createuserid: bigint;
|
|
@@ -197,6 +197,5 @@ export declare const WorkerModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
197
197
|
worker_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 {};
|