@fas-core/shared-types 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -126,4 +126,20 @@ interface IStore extends BaseEntity {
126
126
  storeAdmins: Array<string | Types.ObjectId>;
127
127
  }
128
128
 
129
- export { ADMIN_ROLES, type ApiResponse, type BaseEntity, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type ICountry, type ICurrency, type ICustomer, type IState, type IStore, type IStoreSettings, type Paginated, type SoftDeleteFilter };
129
+ interface IContact extends BaseEntity {
130
+ firstName: string;
131
+ lastName: string;
132
+ companyName?: string;
133
+ email: string;
134
+ phone: string;
135
+ category: "sales" | "support" | "orders" | "returns" | "parts" | "other";
136
+ subject: string;
137
+ message: string;
138
+ status: 'new' | 'in-progress' | 'resolved' | 'closed';
139
+ source: 'website' | 'email' | 'phone' | 'chat' | 'other';
140
+ caseId: string;
141
+ notes: string;
142
+ resolvedAt?: Date;
143
+ }
144
+
145
+ export { ADMIN_ROLES, type ApiResponse, type BaseEntity, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IContact, type ICountry, type ICurrency, type ICustomer, type IState, type IStore, type IStoreSettings, type Paginated, type SoftDeleteFilter };
package/dist/index.d.ts CHANGED
@@ -126,4 +126,20 @@ interface IStore extends BaseEntity {
126
126
  storeAdmins: Array<string | Types.ObjectId>;
127
127
  }
128
128
 
129
- export { ADMIN_ROLES, type ApiResponse, type BaseEntity, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type ICountry, type ICurrency, type ICustomer, type IState, type IStore, type IStoreSettings, type Paginated, type SoftDeleteFilter };
129
+ interface IContact extends BaseEntity {
130
+ firstName: string;
131
+ lastName: string;
132
+ companyName?: string;
133
+ email: string;
134
+ phone: string;
135
+ category: "sales" | "support" | "orders" | "returns" | "parts" | "other";
136
+ subject: string;
137
+ message: string;
138
+ status: 'new' | 'in-progress' | 'resolved' | 'closed';
139
+ source: 'website' | 'email' | 'phone' | 'chat' | 'other';
140
+ caseId: string;
141
+ notes: string;
142
+ resolvedAt?: Date;
143
+ }
144
+
145
+ export { ADMIN_ROLES, type ApiResponse, type BaseEntity, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IContact, type ICountry, type ICurrency, type ICustomer, type IState, type IStore, type IStoreSettings, type Paginated, type SoftDeleteFilter };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/admin/interface.ts"],"sourcesContent":["export * from './address';\nexport * from './admin';\nexport * from './base';\nexport * from './common';\nexport * from './country';\nexport * from './customer';\nexport * from './state';\nexport * from './store';\nexport * from './currency';","import type { BaseEntity } from '../base/interface';\n\nexport type IAdminRoleType =\n | 'Admin'\n | 'Super Admin'\n | 'Cashier'\n | 'Manager'\n | 'CEO'\n | 'Driver'\n | 'Security Guard'\n | 'Accountant';\n\nexport const ADMIN_ROLES: IAdminRoleType[] = [\n 'Admin',\n 'Super Admin',\n 'Cashier',\n 'Manager',\n 'CEO',\n 'Driver',\n 'Security Guard',\n 'Accountant',\n];\n\nexport interface IAdmin extends BaseEntity {\n firstName: string;\n lastName: string;\n email: string;\n phoneNumber: string;\n status: boolean;\n password: string;\n role: IAdminRoleType;\n access_list: string[];\n joiningDate: Date;\n profileImage: string;\n lastLogin: Date;\n}\n\nexport type IAdminCreate = Omit<IAdmin, keyof BaseEntity>;\nexport type IAdminUpdate = Partial<IAdminCreate>;\nexport type IAdminSafe = Omit<IAdmin, 'password'>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACYO,IAAM,cAAgC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/admin/interface.ts"],"sourcesContent":["export * from './address';\nexport * from './admin';\nexport * from './base';\nexport * from './common';\nexport * from './country';\nexport * from './customer';\nexport * from './state';\nexport * from './store';\nexport * from './currency';\nexport * from './contact';","import type { BaseEntity } from '../base/interface';\n\nexport type IAdminRoleType =\n | 'Admin'\n | 'Super Admin'\n | 'Cashier'\n | 'Manager'\n | 'CEO'\n | 'Driver'\n | 'Security Guard'\n | 'Accountant';\n\nexport const ADMIN_ROLES: IAdminRoleType[] = [\n 'Admin',\n 'Super Admin',\n 'Cashier',\n 'Manager',\n 'CEO',\n 'Driver',\n 'Security Guard',\n 'Accountant',\n];\n\nexport interface IAdmin extends BaseEntity {\n firstName: string;\n lastName: string;\n email: string;\n phoneNumber: string;\n status: boolean;\n password: string;\n role: IAdminRoleType;\n access_list: string[];\n joiningDate: Date;\n profileImage: string;\n lastLogin: Date;\n}\n\nexport type IAdminCreate = Omit<IAdmin, keyof BaseEntity>;\nexport type IAdminUpdate = Partial<IAdminCreate>;\nexport type IAdminSafe = Omit<IAdmin, 'password'>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACYO,IAAM,cAAgC;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fas-core/shared-types",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "FAS Core Shared Types - A collection of shared TypeScript types for the FAS Core SDK.",
5
5
  "author": "ibreakloops",
6
6
  "license": "UNLICENSED",