shopoflex-types 1.0.172 → 1.0.174

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.
Files changed (2) hide show
  1. package/dist/common.d.ts +9 -36
  2. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -201,15 +201,9 @@ export interface IUser {
201
201
  export interface CurrentUserType extends IUser {
202
202
  vendors?: Array<{
203
203
  vendorId: string;
204
- name: {
205
- en: string;
206
- ar: string;
207
- };
204
+ name: NameType;
208
205
  logo?: FileType[];
209
- description: {
210
- en: string;
211
- ar: string;
212
- };
206
+ description: NameType;
213
207
  role: IRole;
214
208
  }>;
215
209
  hasAccesstoVendor?: boolean;
@@ -217,14 +211,8 @@ export interface CurrentUserType extends IUser {
217
211
  export type Permission = 'products.read' | 'products.create' | 'products.update' | 'products.delete' | 'products.cost' | 'products.inventory' | 'orders.read' | 'orders.create' | 'orders.update' | 'orders.delete' | 'orders.refund' | 'orders.status' | 'customers.read' | 'customers.create' | 'customers.update' | 'customers.delete' | 'accounting.read' | 'accounting.create' | 'accounting.update' | 'accounting.delete' | 'analytics.dashboard' | 'analytics.revenue' | 'analytics.customers' | 'analytics.products' | 'analytics.traffic' | 'analytics.financial' | 'analytics.inventory' | 'analytics.export' | 'branches.read' | 'branches.create' | 'branches.update' | 'branches.delete' | 'users.read' | 'users.create' | 'users.update' | 'users.delete' | 'users.invite' | 'users.permissions.view' | 'roles.read' | 'roles.create' | 'roles.update' | 'roles.delete' | 'system.vendor.update' | 'system.discounts.read' | 'system.discounts.create' | 'system.discounts.update' | 'system.discounts.delete' | 'system.wallet.view' | 'traffic.read' | 'traffic.analytics' | 'traffic.network';
218
212
  export interface IRole {
219
213
  _id?: string;
220
- name: {
221
- en: string;
222
- ar?: string;
223
- };
224
- description?: {
225
- en?: string;
226
- ar?: string;
227
- };
214
+ name: NameType;
215
+ description?: NameType;
228
216
  permissions: Permission[];
229
217
  vendorId?: string;
230
218
  isActive?: boolean;
@@ -241,10 +229,7 @@ type PaymentConfig<T extends PaymentMethodType> = {
241
229
  id: T;
242
230
  keys: Record<string, string> | null;
243
231
  extra: string | null;
244
- name: {
245
- ar: string;
246
- en: string;
247
- };
232
+ name: NameType;
248
233
  };
249
234
  type VendorPayments = {
250
235
  [K in PaymentMethodType]?: PaymentConfig<K>;
@@ -332,10 +317,7 @@ export interface Vendor {
332
317
  defaultLanguage: LanguageCode;
333
318
  name: NameType;
334
319
  domains: string[];
335
- description: {
336
- en: string;
337
- ar: string;
338
- };
320
+ description: NameType;
339
321
  logo: FileType[];
340
322
  cover: FileType[];
341
323
  favicon: FileType[];
@@ -356,14 +338,8 @@ export interface Vendor {
356
338
  isLive?: boolean;
357
339
  template: {
358
340
  id: TemplateId;
359
- name: {
360
- en: string;
361
- ar: string;
362
- };
363
- description: {
364
- en: string;
365
- ar: string;
366
- };
341
+ name: NameType;
342
+ description: NameType;
367
343
  link: string;
368
344
  image: string;
369
345
  isActive: boolean;
@@ -562,10 +538,7 @@ export interface IAccountingConfig {
562
538
  }
563
539
  export interface IBranch {
564
540
  _id?: string;
565
- name: {
566
- en: string;
567
- ar: string;
568
- };
541
+ name: NameType;
569
542
  slogan?: string;
570
543
  phone: string;
571
544
  vendorId: string | any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.172",
3
+ "version": "1.0.174",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",