This commit is contained in:
phaichayon
2026-07-01 00:09:05 +07:00
parent 8feaee61cb
commit 53dfd20913
44 changed files with 2829 additions and 25931 deletions

View File

@@ -1,36 +1,38 @@
export const DOCUMENT_LIBRARY_TYPES = [
'sla',
'warranty',
'terms_conditions',
'company_profile',
'datasheet',
'drawing',
'certificate',
'appendix',
'safety_document',
'installation_manual'
"sla",
"warranty",
"terms_conditions",
"company_profile",
"datasheet",
"drawing",
"certificate",
"appendix",
"safety_document",
"installation_manual",
] as const;
export const DOCUMENT_LIBRARY_BRANDS = ['alla', 'onvalla', 'generic'] as const;
export const DOCUMENT_LIBRARY_LANGUAGES = ['th', 'en'] as const;
export const DOCUMENT_LIBRARY_BRANDS = ["alla", "onvalla", "generic"] as const;
export const DOCUMENT_LIBRARY_LANGUAGES = ["th", "en"] as const;
export const DOCUMENT_LIBRARY_PRODUCT_TYPES = [
'all',
'crane',
'dock_door',
'solar',
'service'
"all",
"crane",
"dock_door",
"solar",
"service",
] as const;
export const DOCUMENT_LIBRARY_VERSION_STATUSES = [
'draft',
'published',
'active',
'archived'
"draft",
"published",
"active",
"archived",
] as const;
export type DocumentLibraryType = (typeof DOCUMENT_LIBRARY_TYPES)[number];
export type DocumentLibraryBrand = (typeof DOCUMENT_LIBRARY_BRANDS)[number];
export type DocumentLibraryLanguage = (typeof DOCUMENT_LIBRARY_LANGUAGES)[number];
export type DocumentLibraryProductType = (typeof DOCUMENT_LIBRARY_PRODUCT_TYPES)[number];
export type DocumentLibraryLanguage =
(typeof DOCUMENT_LIBRARY_LANGUAGES)[number];
export type DocumentLibraryProductType =
(typeof DOCUMENT_LIBRARY_PRODUCT_TYPES)[number];
export type DocumentLibraryVersionStatus =
(typeof DOCUMENT_LIBRARY_VERSION_STATUSES)[number];
@@ -44,7 +46,7 @@ export interface DocumentLibraryRecord {
brand: DocumentLibraryBrand;
language: DocumentLibraryLanguage;
productType: DocumentLibraryProductType;
status: 'active' | 'inactive';
status: "active" | "inactive";
isActive: boolean;
createdBy: string;
updatedBy: string;
@@ -91,7 +93,7 @@ export interface DocumentLibraryFilters {
brand?: DocumentLibraryBrand;
language?: DocumentLibraryLanguage;
productType?: DocumentLibraryProductType;
isActive?: 'true' | 'false';
isActive?: "true" | "false";
}
export interface DocumentLibraryMutationPayload {