feeef 0.6.3 → 0.6.5

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.
@@ -52,6 +52,7 @@ export interface OrderEntity {
52
52
  confirmerId: string | null;
53
53
  customFields?: Record<string, any> | null;
54
54
  metadata: OrderMetadata;
55
+ claims?: Record<string, any> | null;
55
56
  status: OrderStatus;
56
57
  paymentStatus: PaymentStatus;
57
58
  deliveryStatus: DeliveryStatus;
@@ -54,6 +54,7 @@ export interface IntegrationsData {
54
54
  googleAnalyticsData?: GoogleAnalyticsData | null;
55
55
  googleTagsData?: GoogleTagData | null;
56
56
  googleSheetsData?: GoogleSheetsData | null;
57
+ paymentMethodData?: PaymentMethodData | null;
57
58
  }
58
59
  export declare enum MetaPixelEvent {
59
60
  none = "none",
@@ -113,6 +114,21 @@ export interface PublicGoogleTagData {
113
114
  }
114
115
  export interface PublicGoogleSheetsData {
115
116
  }
117
+ /**
118
+ * Payment method data for product-level override
119
+ */
120
+ export interface PaymentMethodData {
121
+ methodId?: string;
122
+ enabled: boolean;
123
+ }
124
+ /**
125
+ * Public payment method data (same structure, no sensitive data)
126
+ */
127
+ export interface PublicPaymentMethodData {
128
+ methodId?: string;
129
+ enabled: boolean;
130
+ }
131
+ export declare function generatePublicIntegrationsDataPaymentMethod(data: PaymentMethodData | null | undefined): PublicPaymentMethodData | null | undefined;
116
132
  export interface ProductAddon {
117
133
  photoUrl?: string;
118
134
  title: string;
@@ -76,6 +76,12 @@ export declare const generatePublicStoreIntegrationWebhooks: (webhooks: Webhooks
76
76
  * Only exposes non-sensitive information, keeping backend protection details private for security.
77
77
  */
78
78
  export declare const generatePublicStoreIntegrationSecurity: (security: SecurityIntegration | null | undefined) => PublicSecurityIntegration | null | undefined;
79
+ /**
80
+ * Generates public payment integration data from private integration data.
81
+ * Only exposes non-sensitive information (method IDs, names, active status).
82
+ * Sensitive data like API keys, client secrets are NOT exposed.
83
+ */
84
+ export declare const generatePublicStoreIntegrationPayment: (payment: PaymentIntegration | null | undefined) => PublicPaymentIntegration | null | undefined;
79
85
  /**
80
86
  * Public interface for OrderDZ integration.
81
87
  * Contains only non-sensitive information that can be safely exposed to clients.
@@ -150,6 +156,22 @@ export interface PublicCustomFieldsIntegration {
150
156
  fields: PublicCustomField[];
151
157
  active: boolean;
152
158
  }
159
+ /**
160
+ * Public payment method (no sensitive data like API keys)
161
+ */
162
+ export interface PublicPaymentMethod {
163
+ id: string;
164
+ name: string;
165
+ active: boolean;
166
+ }
167
+ /**
168
+ * Public payment integration (exposes only non-sensitive information)
169
+ */
170
+ export interface PublicPaymentIntegration {
171
+ active: boolean;
172
+ methods: PublicPaymentMethod[];
173
+ defaultMethod?: string;
174
+ }
153
175
  export interface PublicStoreIntegrations {
154
176
  metaPixel: PublicMetaPixelIntegration | null;
155
177
  tiktokPixel: PublicTiktokPixelIntegration | null;
@@ -161,6 +183,7 @@ export interface PublicStoreIntegrations {
161
183
  webhooks: PublicWebhooksIntegration | null;
162
184
  security: PublicSecurityIntegration | null;
163
185
  customFields: PublicCustomFieldsIntegration | null;
186
+ payment: PublicPaymentIntegration | null;
164
187
  }
165
188
  export declare enum StoreMemberRole {
166
189
  editor = "editor",
@@ -380,6 +403,27 @@ export interface ZimouIntegration {
380
403
  /** Additional metadata for the integration */
381
404
  metadata?: Record<string, any>;
382
405
  }
406
+ /**
407
+ * ZR Express integration configuration for delivery management.
408
+ * This integration allows order management and tracking via ZR Express API.
409
+ * Uses header-based authentication (x-api-key, x-tenant).
410
+ */
411
+ export interface ZrexpressIntegration {
412
+ /** Unique identifier for this integration instance */
413
+ id: string;
414
+ /** API key for ZR Express (x-api-key header) */
415
+ apiKey: string;
416
+ /** Tenant UUID for ZR Express (x-tenant header) */
417
+ tenantId: string;
418
+ /** Whether this integration is currently active */
419
+ active: boolean;
420
+ /** Whether to send orders directly without confirmation dialog */
421
+ silentMode?: boolean;
422
+ /** Whether to automatically send orders when they are marked as sent */
423
+ autoSend?: boolean;
424
+ /** Additional metadata for the integration */
425
+ metadata?: Record<string, any>;
426
+ }
383
427
  export interface SecurityIntegrationOrdersProtection {
384
428
  frontend: {
385
429
  active: boolean;
@@ -452,6 +496,27 @@ export interface WebhooksIntegration {
452
496
  /** Additional metadata for the integration */
453
497
  metadata: Record<string, any>;
454
498
  }
499
+ /**
500
+ * Payment method configuration (includes sensitive data like API keys)
501
+ */
502
+ export interface PaymentMethodConfig {
503
+ id: string;
504
+ name: string;
505
+ active: boolean;
506
+ apiKey?: string;
507
+ clientId?: string;
508
+ clientSecret?: string;
509
+ [key: string]: any;
510
+ }
511
+ /**
512
+ * Payment integration configuration
513
+ */
514
+ export interface PaymentIntegration {
515
+ active: boolean;
516
+ methods: PaymentMethodConfig[];
517
+ defaultMethod?: string;
518
+ metadata?: Record<string, any>;
519
+ }
455
520
  export interface StoreIntegrations {
456
521
  [key: string]: any;
457
522
  metadata?: Record<string, any>;
@@ -463,6 +528,7 @@ export interface StoreIntegrations {
463
528
  ai?: AiIntegration;
464
529
  orderdz?: OrderdzIntegration;
465
530
  webhooks?: WebhooksIntegration;
531
+ payment?: PaymentIntegration;
466
532
  sms?: any;
467
533
  telegram?: any;
468
534
  yalidine?: any;
@@ -473,6 +539,7 @@ export interface StoreIntegrations {
473
539
  procolis?: any;
474
540
  noest?: any;
475
541
  zimou?: ZimouIntegration;
542
+ zrexpress?: ZrexpressIntegration;
476
543
  security?: SecurityIntegration;
477
544
  }
478
545
  export declare enum StoreSubscriptionStatus {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.6.3",
4
+ "version": "0.6.5",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
7
7
  "files": [