shopoflex-types 1.0.109 → 1.0.112

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 +28 -1
  2. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -64,7 +64,7 @@ export interface Address {
64
64
  details: string;
65
65
  }
66
66
  export interface PaymentMethod {
67
- type: 'cash' | 'card' | 'knet' | 'bank_transfer' | 'wallet' | 'external_link' | 'crypto' | 'whish' | 'paypal' | 'gift_card';
67
+ type: 'cash' | 'card_terminal' | 'knet' | 'bank_transfer' | 'wallet' | 'external_link' | 'crypto' | 'whish' | 'paypal' | 'gift_card' | 'stc_pay' | 'benefit' | 'apple_pay' | 'google_pay' | 'online_card';
68
68
  }
69
69
  export interface OrderStatus {
70
70
  status: 'pending' | 'cancelled' | 'rejected' | 'refunded' | 'preparing' | 'delivering' | 'completed' | 'awaiting_payment';
@@ -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,7 @@ export interface Vendor {
313
339
  usersCount: number;
314
340
  };
315
341
  allowCustomPricing?: boolean;
342
+ pixelsOptions?: PixelsOptions;
316
343
  addToWallet(amount: number): Promise<this>;
317
344
  deductCommission(orderValue: number, source?: 'pos' | 'online'): Promise<this>;
318
345
  canProcessOrder(orderValue: number, source?: 'pos' | 'online'): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.109",
3
+ "version": "1.0.112",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",