update pos consumer module

This commit is contained in:
2026-03-29 18:06:41 +03:30
parent 63fa2bc67e
commit c870a43e35
53 changed files with 2145 additions and 671 deletions
+7
View File
@@ -0,0 +1,7 @@
export interface IPosPayload {
pos_id: string
complex_id: string
guild_id: string
business_id: string
consumer_account_id: string
}
-29
View File
@@ -1,29 +0,0 @@
import { Request as ExpressRequest } from 'express'
import { AccountType } from '../enums/enums'
export interface IWithJWTPayloadRequest extends ExpressRequest {
dataPayload?: AccessTokenPayload
}
export interface AccessTokenPayload {
userId: string
mobile_number: string
type: AccountType
username: string
pos_id: number
pos_name: string
complex_id: string
license_id: string
license_expired_at: string
// complex: {
// id: string
// name: string
// }
// license: {
// id: string
// starts_at: string
// expires_at: string
// status: string
// }
}
+15
View File
@@ -0,0 +1,15 @@
import { AccountType } from '../../generated/prisma/enums'
export interface AccessTokenPayload {
account_id: string
type: AccountType
username: string
user?: AccessTokenUser
// license_id?: string
// license_expired_at?: string
}
export interface AccessTokenUser extends Record<string, any> {
id?: string
name?: string
}