feeef 0.7.1 → 0.7.3

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.
@@ -434,6 +434,9 @@ export interface SecurityIntegrationOrdersProtection {
434
434
  ipTtl: number;
435
435
  blockDirectOrders: boolean;
436
436
  adsOnlyMode: boolean;
437
+ fingerprintTtl?: number | null;
438
+ minFormLoadTime?: number | null;
439
+ requireFingerprint?: boolean | null;
437
440
  };
438
441
  }
439
442
  export interface PublicSecurityIntegrationOrdersProtection {
@@ -517,6 +520,46 @@ export interface PaymentIntegration {
517
520
  defaultMethod?: string;
518
521
  metadata?: Record<string, any>;
519
522
  }
523
+ /**
524
+ * Orders dispatch strategy for assigning orders to confirmers.
525
+ * Discriminated union by `type` (freezed convention with unionKey: 'type').
526
+ * Values match Dart constructor names.
527
+ */
528
+ export type OrdersDispatchStrategy = {
529
+ type: 'firstUpdate';
530
+ } | {
531
+ type: 'random';
532
+ } | {
533
+ type: 'weightedRandom';
534
+ weights?: Record<string, number>;
535
+ } | {
536
+ type: 'roundRobin';
537
+ lastAssignedConfirmerId?: string;
538
+ sortBy?: string;
539
+ } | {
540
+ type: 'manualOnly';
541
+ } | {
542
+ type: 'priority';
543
+ confirmerIds: string[];
544
+ };
545
+ /**
546
+ * Dispatcher integration configuration.
547
+ * Controls how new orders are assigned to confirmers.
548
+ */
549
+ export interface DispatcherIntegration {
550
+ active: boolean;
551
+ strategy?: OrdersDispatchStrategy | null;
552
+ metadata?: Record<string, any>;
553
+ }
554
+ /**
555
+ * Confirmer-specific permissions (in StoreMember.metadata).
556
+ */
557
+ export interface ConfermerPermissions {
558
+ canSeeAllOrders?: boolean;
559
+ canAssignOrder?: boolean;
560
+ canReAssignOrder?: boolean;
561
+ metadata?: Record<string, any>;
562
+ }
520
563
  export interface StoreIntegrations {
521
564
  [key: string]: any;
522
565
  metadata?: Record<string, any>;
@@ -541,6 +584,7 @@ export interface StoreIntegrations {
541
584
  zimou?: ZimouIntegration;
542
585
  zrexpress?: ZrexpressIntegration;
543
586
  security?: SecurityIntegration;
587
+ dispatcher?: DispatcherIntegration;
544
588
  }
545
589
  export declare enum StoreSubscriptionStatus {
546
590
  active = "active",
@@ -206,6 +206,7 @@ export declare class CartService extends NotifiableService {
206
206
  * @param shippingType - The shipping type enum.
207
207
  * @returns The corresponding shipping price type.
208
208
  */
209
+ /** Maps order ShippingType to shipping price key. store = pickup (from store), pickup = desk (from relay/desk). */
209
210
  private mapShippingTypeToPriceType;
210
211
  /**
211
212
  * Resolves shipping price using the priority chain.
@@ -232,8 +233,9 @@ export declare class CartService extends NotifiableService {
232
233
  *
233
234
  * Note: Shipping prices must be loaded and set via setShippingPrice() for the new system to work.
234
235
  * If shipping prices are not loaded, the method falls back to the legacy system.
236
+ * In the new system: price key "desk" → ShippingType.pickup, price key "pickup" → ShippingType.store.
235
237
  *
236
- * @returns An array of available shipping types.
238
+ * @returns An array of available shipping types. With prices e.g. { desk: 550, home: 800, pickup: null }, returns [home, pickup].
237
239
  */
238
240
  getAvailableShippingTypes(): ShippingType[];
239
241
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.7.1",
4
+ "version": "0.7.3",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [