update pos consumer module
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export interface IPosPayload {
|
||||
pos_id: string
|
||||
complex_id: string
|
||||
guild_id: string
|
||||
business_id: string
|
||||
consumer_account_id: string
|
||||
}
|
||||
@@ -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
|
||||
// }
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user