feat: add config module with controller and service
- Implemented ConfigController for handling config-related requests. - Created ConfigService for business logic related to configurations. - Added CreateConfigDto for validating configuration data. feat: add good categories module with controller and service - Implemented GoodCategoriesController for managing good categories. - Created GoodCategoriesService for business logic related to good categories. - Added CreateGoodCategoryDto for validating good category data. feat: add goods module with controller and service - Implemented GoodsController for managing goods. - Created GoodsService for business logic related to goods. - Added CreateGoodDto for validating good data. feat: add profile module with controller and service - Implemented ProfileController for managing user profiles. - Created ProfileService for business logic related to profiles. - Added CreateProfileDto for profile data structure. feat: add sales invoice payments module with controller and service - Implemented SalesInvoicePaymentsController for managing invoice payments. - Created SalesInvoicePaymentsService for business logic related to payments. - Added CreateSalesInvoicePaymentDto for validating payment data. feat: add service categories module with controller and service - Implemented ServiceCategoriesController for managing service categories. - Created ServiceCategoriesService for business logic related to service categories. - Added CreateServiceCategoryDto for validating service category data. feat: add services module with controller and service - Implemented ServicesController for managing services. - Created ServicesService for business logic related to services. - Added CreateServiceDto for validating service data. feat: add trigger logs module with controller and service - Implemented TriggerLogsController for managing trigger logs. - Created TriggerLogsService for business logic related to trigger logs. - Added CreateTriggerLogDto for validating trigger log data. feat: add uploaders module for handling file uploads - Implemented UploadersController for managing file uploads. - Created ImageUploaderService for image upload logic. - Created UploaderService for file handling and storage.
This commit is contained in:
@@ -51,9 +51,10 @@ export const AnyNull = runtime.AnyNull
|
||||
|
||||
|
||||
export const ModelName = {
|
||||
Customer: 'Customer',
|
||||
Device: 'Device',
|
||||
Good: 'Good',
|
||||
GoodCategory: 'GoodCategory',
|
||||
Customer: 'Customer',
|
||||
TriggerLog: 'TriggerLog',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
SalesInvoiceItem: 'SalesInvoiceItem',
|
||||
@@ -78,18 +79,57 @@ export const TransactionIsolationLevel = {
|
||||
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name',
|
||||
email: 'email',
|
||||
mobile_number: 'mobile_number',
|
||||
address: 'address',
|
||||
is_active: 'is_active',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
deleted_at: 'deleted_at'
|
||||
} as const
|
||||
|
||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||
|
||||
|
||||
export const DeviceScalarFieldEnum = {
|
||||
account_id: 'account_id',
|
||||
app_version: 'app_version',
|
||||
build_number: 'build_number',
|
||||
uuid: 'uuid',
|
||||
platform: 'platform',
|
||||
brand: 'brand',
|
||||
model: 'model',
|
||||
device: 'device',
|
||||
os_version: 'os_version',
|
||||
sdk_version: 'sdk_version',
|
||||
release_number: 'release_number',
|
||||
browser_name: 'browser_name',
|
||||
fcm_token: 'fcm_token'
|
||||
} as const
|
||||
|
||||
export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
|
||||
|
||||
|
||||
export const GoodScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
sku: 'sku',
|
||||
localSku: 'localSku',
|
||||
local_sku: 'local_sku',
|
||||
barcode: 'barcode',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
categoryId: 'categoryId',
|
||||
baseSalePrice: 'baseSalePrice'
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
deleted_at: 'deleted_at',
|
||||
category_id: 'category_id',
|
||||
base_sale_price: 'base_sale_price',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type GoodScalarFieldEnum = (typeof GoodScalarFieldEnum)[keyof typeof GoodScalarFieldEnum]
|
||||
@@ -99,31 +139,17 @@ export const GoodCategoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
imageUrl: 'imageUrl',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
image_url: 'image_url',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
deleted_at: 'deleted_at'
|
||||
} as const
|
||||
|
||||
export type GoodCategoryScalarFieldEnum = (typeof GoodCategoryScalarFieldEnum)[keyof typeof GoodCategoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogScalarFieldEnum = {
|
||||
id: 'id',
|
||||
message: 'message',
|
||||
@@ -137,11 +163,13 @@ export type TriggerLogScalarFieldEnum = (typeof TriggerLogScalarFieldEnum)[keyof
|
||||
export const SalesInvoiceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
total_amount: 'total_amount',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
customerId: 'customerId'
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
customer_id: 'customer_id',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
|
||||
@@ -150,12 +178,12 @@ export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[k
|
||||
export const SalesInvoiceItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
unitPrice: 'unitPrice',
|
||||
totalAmount: 'totalAmount',
|
||||
createdAt: 'createdAt',
|
||||
invoiceId: 'invoiceId',
|
||||
goodId: 'goodId',
|
||||
serviceId: 'serviceId'
|
||||
unit_price: 'unit_price',
|
||||
total_amount: 'total_amount',
|
||||
created_at: 'created_at',
|
||||
invoice_id: 'invoice_id',
|
||||
good_id: 'good_id',
|
||||
service_id: 'service_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
|
||||
@@ -163,11 +191,11 @@ export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFiel
|
||||
|
||||
export const SalesInvoicePaymentScalarFieldEnum = {
|
||||
id: 'id',
|
||||
invoiceId: 'invoiceId',
|
||||
invoice_id: 'invoice_id',
|
||||
amount: 'amount',
|
||||
paymentMethod: 'paymentMethod',
|
||||
paidAt: 'paidAt',
|
||||
createdAt: 'createdAt'
|
||||
payment_method: 'payment_method',
|
||||
paid_at: 'paid_at',
|
||||
created_at: 'created_at'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
||||
@@ -178,12 +206,15 @@ export const ServiceScalarFieldEnum = {
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
sku: 'sku',
|
||||
local_sku: 'local_sku',
|
||||
barcode: 'barcode',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt',
|
||||
categoryId: 'categoryId',
|
||||
baseSalePrice: 'baseSalePrice'
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
deleted_at: 'deleted_at',
|
||||
category_id: 'category_id',
|
||||
base_sale_price: 'base_sale_price',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type ServiceScalarFieldEnum = (typeof ServiceScalarFieldEnum)[keyof typeof ServiceScalarFieldEnum]
|
||||
@@ -193,10 +224,12 @@ export const ServiceCategoryScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
imageUrl: 'imageUrl',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
image_url: 'image_url',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at',
|
||||
deleted_at: 'deleted_at'
|
||||
} as const
|
||||
|
||||
export type ServiceCategoryScalarFieldEnum = (typeof ServiceCategoryScalarFieldEnum)[keyof typeof ServiceCategoryScalarFieldEnum]
|
||||
@@ -218,37 +251,66 @@ export const NullsOrder = {
|
||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
first_name: 'first_name',
|
||||
last_name: 'last_name',
|
||||
email: 'email',
|
||||
mobile_number: 'mobile_number',
|
||||
address: 'address',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const DeviceOrderByRelevanceFieldEnum = {
|
||||
account_id: 'account_id',
|
||||
app_version: 'app_version',
|
||||
build_number: 'build_number',
|
||||
uuid: 'uuid',
|
||||
platform: 'platform',
|
||||
brand: 'brand',
|
||||
model: 'model',
|
||||
device: 'device',
|
||||
os_version: 'os_version',
|
||||
sdk_version: 'sdk_version',
|
||||
release_number: 'release_number',
|
||||
browser_name: 'browser_name',
|
||||
fcm_token: 'fcm_token'
|
||||
} as const
|
||||
|
||||
export type DeviceOrderByRelevanceFieldEnum = (typeof DeviceOrderByRelevanceFieldEnum)[keyof typeof DeviceOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const GoodOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
sku: 'sku',
|
||||
localSku: 'localSku',
|
||||
barcode: 'barcode'
|
||||
local_sku: 'local_sku',
|
||||
barcode: 'barcode',
|
||||
category_id: 'category_id',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type GoodOrderByRelevanceFieldEnum = (typeof GoodOrderByRelevanceFieldEnum)[keyof typeof GoodOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const GoodCategoryOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
imageUrl: 'imageUrl'
|
||||
image_url: 'image_url',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type GoodCategoryOrderByRelevanceFieldEnum = (typeof GoodCategoryOrderByRelevanceFieldEnum)[keyof typeof GoodCategoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address'
|
||||
} as const
|
||||
|
||||
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const TriggerLogOrderByRelevanceFieldEnum = {
|
||||
message: 'message',
|
||||
name: 'name'
|
||||
@@ -258,27 +320,57 @@ export type TriggerLogOrderByRelevanceFieldEnum = (typeof TriggerLogOrderByRelev
|
||||
|
||||
|
||||
export const SalesInvoiceOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
description: 'description',
|
||||
customer_id: 'customer_id',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoiceItemOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
invoice_id: 'invoice_id',
|
||||
good_id: 'good_id',
|
||||
service_id: 'service_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceItemOrderByRelevanceFieldEnum = (typeof SalesInvoiceItemOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceItemOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
invoice_id: 'invoice_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ServiceOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
sku: 'sku',
|
||||
barcode: 'barcode'
|
||||
local_sku: 'local_sku',
|
||||
barcode: 'barcode',
|
||||
category_id: 'category_id',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type ServiceOrderByRelevanceFieldEnum = (typeof ServiceOrderByRelevanceFieldEnum)[keyof typeof ServiceOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ServiceCategoryOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
description: 'description',
|
||||
imageUrl: 'imageUrl'
|
||||
image_url: 'image_url',
|
||||
account_id: 'account_id',
|
||||
complex_id: 'complex_id'
|
||||
} as const
|
||||
|
||||
export type ServiceCategoryOrderByRelevanceFieldEnum = (typeof ServiceCategoryOrderByRelevanceFieldEnum)[keyof typeof ServiceCategoryOrderByRelevanceFieldEnum]
|
||||
|
||||
Reference in New Issue
Block a user