shopoflex-types 1.0.110 → 1.0.120
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/common.d.ts +39 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -249,6 +249,32 @@ export interface LanguageConfig {
|
|
|
249
249
|
active: boolean;
|
|
250
250
|
font: string;
|
|
251
251
|
}
|
|
252
|
+
export interface PixelsOptions {
|
|
253
|
+
facebook?: {
|
|
254
|
+
pixelId?: string;
|
|
255
|
+
active?: boolean;
|
|
256
|
+
};
|
|
257
|
+
googleAnalytics?: {
|
|
258
|
+
trackingId?: string;
|
|
259
|
+
active?: boolean;
|
|
260
|
+
};
|
|
261
|
+
gtm?: {
|
|
262
|
+
gtmId?: string;
|
|
263
|
+
active?: boolean;
|
|
264
|
+
};
|
|
265
|
+
hotjar?: {
|
|
266
|
+
siteId?: number;
|
|
267
|
+
active?: boolean;
|
|
268
|
+
};
|
|
269
|
+
snapchat?: {
|
|
270
|
+
pixelId?: string;
|
|
271
|
+
active?: boolean;
|
|
272
|
+
};
|
|
273
|
+
tiktok?: {
|
|
274
|
+
pixelId?: string;
|
|
275
|
+
active?: boolean;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
252
278
|
export interface Vendor {
|
|
253
279
|
_id?: string;
|
|
254
280
|
industry?: string;
|
|
@@ -313,6 +339,8 @@ export interface Vendor {
|
|
|
313
339
|
usersCount: number;
|
|
314
340
|
};
|
|
315
341
|
allowCustomPricing?: boolean;
|
|
342
|
+
pixelsOptions?: PixelsOptions;
|
|
343
|
+
taxManagement?: TaxManagement;
|
|
316
344
|
addToWallet(amount: number): Promise<this>;
|
|
317
345
|
deductCommission(orderValue: number, source?: 'pos' | 'online'): Promise<this>;
|
|
318
346
|
canProcessOrder(orderValue: number, source?: 'pos' | 'online'): boolean;
|
|
@@ -491,4 +519,15 @@ export interface successResponse {
|
|
|
491
519
|
hasPrevPage: boolean;
|
|
492
520
|
}
|
|
493
521
|
export type Industry = "restaurant" | "grocery" | "retail" | "pharmacy" | "services";
|
|
522
|
+
export interface TaxConfig {
|
|
523
|
+
active: boolean;
|
|
524
|
+
show: boolean;
|
|
525
|
+
payer: 'vendor' | 'customer';
|
|
526
|
+
percentage: number;
|
|
527
|
+
}
|
|
528
|
+
export interface TaxManagement {
|
|
529
|
+
type: 'perCountry' | 'fixed';
|
|
530
|
+
fixed: TaxConfig;
|
|
531
|
+
perCountry: Record<string, TaxConfig>;
|
|
532
|
+
}
|
|
494
533
|
export {};
|