transform core api codes into this project, update modules as admin/pos context modules

This commit is contained in:
2026-03-07 11:25:11 +03:30
parent b949500482
commit 8c5f1d4d49
167 changed files with 26975 additions and 1837 deletions
+125 -4
View File
@@ -43,6 +43,7 @@ export const UnitType = {
COUNT: 'COUNT',
GRAM: 'GRAM',
KILOGRAM: 'KILOGRAM',
MILLILITER: 'MILLILITER',
LITER: 'LITER',
METER: 'METER',
HOUR: 'HOUR'
@@ -51,6 +52,14 @@ export const UnitType = {
export type UnitType = (typeof UnitType)[keyof typeof UnitType]
export const GoodPricingModel = {
STANDARD: 'STANDARD',
GOLD: 'GOLD'
} as const
export type GoodPricingModel = (typeof GoodPricingModel)[keyof typeof GoodPricingModel]
export const CustomerType = {
INDIVIDUAL: 'INDIVIDUAL',
LEGAL: 'LEGAL',
@@ -60,9 +69,121 @@ export const CustomerType = {
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
export const SalesInvoiceItemPricingModel = {
STANDARD: 'STANDARD',
GOLD: 'GOLD'
export const UserStatus = {
ACTIVE: 'ACTIVE',
INACTIVE: 'INACTIVE'
} as const
export type SalesInvoiceItemPricingModel = (typeof SalesInvoiceItemPricingModel)[keyof typeof SalesInvoiceItemPricingModel]
export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus]
export const AccountRole = {
OWNER: 'OWNER',
OPERATOR: 'OPERATOR',
ACCOUNTANT: 'ACCOUNTANT'
} as const
export type AccountRole = (typeof AccountRole)[keyof typeof AccountRole]
export const AccountStatus = {
ACTIVE: 'ACTIVE',
SUSPENDED: 'SUSPENDED'
} as const
export type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus]
export const POSStatus = {
ACTIVE: 'ACTIVE',
DISABLED: 'DISABLED'
} as const
export type POSStatus = (typeof POSStatus)[keyof typeof POSStatus]
export const POSRole = {
MANAGER: 'MANAGER',
OPERATOR: 'OPERATOR',
VIEWER: 'VIEWER'
} as const
export type POSRole = (typeof POSRole)[keyof typeof POSRole]
export const LicenseType = {
BASIC: 'BASIC',
PRO: 'PRO',
ENTERPRISE: 'ENTERPRISE'
} as const
export type LicenseType = (typeof LicenseType)[keyof typeof LicenseType]
export const LicenseStatus = {
ACTIVE: 'ACTIVE',
EXPIRED: 'EXPIRED',
SUSPENDED: 'SUSPENDED'
} as const
export type LicenseStatus = (typeof LicenseStatus)[keyof typeof LicenseStatus]
export const POSType = {
PSP: 'PSP',
MOBILE: 'MOBILE',
API: 'API'
} as const
export type POSType = (typeof POSType)[keyof typeof POSType]
export const UserType = {
LEGAL: 'LEGAL',
INDIVIDUAL: 'INDIVIDUAL'
} as const
export type UserType = (typeof UserType)[keyof typeof UserType]
export const AccountType = {
PARTNER: 'PARTNER',
BUSINESS: 'BUSINESS',
ADMIN: 'ADMIN',
PROVIDER: 'PROVIDER',
POS: 'POS'
} as const
export type AccountType = (typeof AccountType)[keyof typeof AccountType]
export const PartnerRole = {
ADMIN: 'ADMIN',
OPERATOR: 'OPERATOR'
} as const
export type PartnerRole = (typeof PartnerRole)[keyof typeof PartnerRole]
export const BusinessRole = {
ADMIN: 'ADMIN',
OPERATOR: 'OPERATOR'
} as const
export type BusinessRole = (typeof BusinessRole)[keyof typeof BusinessRole]
export const ProviderRole = {
ADMIN: 'ADMIN',
OPERATOR: 'OPERATOR'
} as const
export type ProviderRole = (typeof ProviderRole)[keyof typeof ProviderRole]
export const TokenType = {
ACCESS: 'ACCESS',
REFRESH: 'REFRESH'
} as const
export type TokenType = (typeof TokenType)[keyof typeof TokenType]