feeef 0.6.5 → 0.7.0
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/build/index.js +42 -1
- package/build/index.js.map +1 -1
- package/build/src/core/entities/product.d.ts +2 -2
- package/build/src/core/entities/product_landing_page.d.ts +37 -0
- package/build/src/core/entities/product_landing_page_template.d.ts +27 -0
- package/build/src/feeef/feeef.d.ts +10 -0
- package/build/src/feeef/repositories/product_landing_page_templates.d.ts +13 -0
- package/build/src/feeef/repositories/product_landing_pages.d.ts +30 -0
- package/package.json +1 -1
|
@@ -118,14 +118,14 @@ export interface PublicGoogleSheetsData {
|
|
|
118
118
|
* Payment method data for product-level override
|
|
119
119
|
*/
|
|
120
120
|
export interface PaymentMethodData {
|
|
121
|
-
|
|
121
|
+
methodIds?: string[];
|
|
122
122
|
enabled: boolean;
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
125
|
* Public payment method data (same structure, no sensitive data)
|
|
126
126
|
*/
|
|
127
127
|
export interface PublicPaymentMethodData {
|
|
128
|
-
|
|
128
|
+
methodIds?: string[];
|
|
129
129
|
enabled: boolean;
|
|
130
130
|
}
|
|
131
131
|
export declare function generatePublicIntegrationsDataPaymentMethod(data: PaymentMethodData | null | undefined): PublicPaymentMethodData | null | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Landing Page entity
|
|
3
|
+
*/
|
|
4
|
+
import { ProductLandingPageTemplate } from './product_landing_page_template.js';
|
|
5
|
+
export interface ProductLandingPage {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string | null;
|
|
8
|
+
description: string | null;
|
|
9
|
+
templateId: string | null;
|
|
10
|
+
schema: Record<string, any> | null;
|
|
11
|
+
defaults: Record<string, any> | null;
|
|
12
|
+
productId: string | null;
|
|
13
|
+
storeId: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string | null;
|
|
16
|
+
template?: ProductLandingPageTemplate;
|
|
17
|
+
product?: any;
|
|
18
|
+
store?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface ProductLandingPageCreate {
|
|
21
|
+
name: string | null;
|
|
22
|
+
description: string | null;
|
|
23
|
+
templateId: string | null;
|
|
24
|
+
schema: Record<string, any> | null;
|
|
25
|
+
defaults: Record<string, any> | null;
|
|
26
|
+
productId: string | null;
|
|
27
|
+
storeId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ProductLandingPageUpdate {
|
|
30
|
+
name: string | null;
|
|
31
|
+
description: string | null;
|
|
32
|
+
templateId: string | null;
|
|
33
|
+
schema: Record<string, any> | null;
|
|
34
|
+
defaults: Record<string, any> | null;
|
|
35
|
+
productId: string | null;
|
|
36
|
+
storeId?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Product Landing Page Template entity
|
|
3
|
+
*/
|
|
4
|
+
export interface ProductLandingPageTemplate {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
imageUrl: string | null;
|
|
9
|
+
schema: Record<string, any>;
|
|
10
|
+
defaults: Record<string, any>;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface ProductLandingPageTemplateCreate {
|
|
15
|
+
name: string | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
imageUrl: string | null;
|
|
18
|
+
schema: Record<string, any>;
|
|
19
|
+
defaults: Record<string, any>;
|
|
20
|
+
}
|
|
21
|
+
export interface ProductLandingPageTemplateUpdate {
|
|
22
|
+
name: string | null;
|
|
23
|
+
description: string | null;
|
|
24
|
+
imageUrl: string | null;
|
|
25
|
+
schema: Record<string, any>;
|
|
26
|
+
defaults: Record<string, any>;
|
|
27
|
+
}
|
|
@@ -13,6 +13,8 @@ import { CurrencyRepository } from './repositories/currencies.js';
|
|
|
13
13
|
import { ShippingPriceRepository } from './repositories/shipping_prices.js';
|
|
14
14
|
import { ShippingMethodRepository } from './repositories/shipping_methods.js';
|
|
15
15
|
import { FeedbackRepository } from './repositories/feedbacks.js';
|
|
16
|
+
import { ProductLandingPageTemplatesRepository } from './repositories/product_landing_page_templates.js';
|
|
17
|
+
import { ProductLandingPagesRepository } from './repositories/product_landing_pages.js';
|
|
16
18
|
import { CartService } from './services/cart.js';
|
|
17
19
|
import { ActionsService } from './services/actions.js';
|
|
18
20
|
import { NotificationsService } from './services/notifications.js';
|
|
@@ -62,6 +64,14 @@ export declare class FeeeF {
|
|
|
62
64
|
* The repository for managing products.
|
|
63
65
|
*/
|
|
64
66
|
products: ProductRepository;
|
|
67
|
+
/**
|
|
68
|
+
* The repository for managing product landing pages.
|
|
69
|
+
*/
|
|
70
|
+
productLandingPages: ProductLandingPagesRepository;
|
|
71
|
+
/**
|
|
72
|
+
* The repository for managing product landing page templates.
|
|
73
|
+
*/
|
|
74
|
+
productLandingPageTemplates: ProductLandingPageTemplatesRepository;
|
|
65
75
|
/**
|
|
66
76
|
* The repository for managing users.
|
|
67
77
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { ModelRepository } from './repository.js';
|
|
3
|
+
import { ProductLandingPageTemplate, ProductLandingPageTemplateCreate, ProductLandingPageTemplateUpdate } from '../../core/entities/product_landing_page_template.js';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a repository for managing product landing page templates.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProductLandingPageTemplatesRepository extends ModelRepository<ProductLandingPageTemplate, ProductLandingPageTemplateCreate, ProductLandingPageTemplateUpdate> {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new instance of ProductLandingPageTemplatesRepository class.
|
|
10
|
+
* @param client - The AxiosInstance used for making HTTP requests.
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AxiosInstance);
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { ModelRepository, ListResponse } from './repository.js';
|
|
3
|
+
import { ProductLandingPage, ProductLandingPageCreate, ProductLandingPageUpdate } from '../../core/entities/product_landing_page.js';
|
|
4
|
+
/**
|
|
5
|
+
* Options for listing product landing pages
|
|
6
|
+
*/
|
|
7
|
+
export interface ProductLandingPageListOptions {
|
|
8
|
+
page?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
storeId?: string;
|
|
12
|
+
productId?: string;
|
|
13
|
+
params?: Record<string, any>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents a repository for managing product landing pages.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ProductLandingPagesRepository extends ModelRepository<ProductLandingPage, ProductLandingPageCreate, ProductLandingPageUpdate> {
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new instance of ProductLandingPagesRepository class.
|
|
21
|
+
* @param client - The AxiosInstance used for making HTTP requests.
|
|
22
|
+
*/
|
|
23
|
+
constructor(client: AxiosInstance);
|
|
24
|
+
/**
|
|
25
|
+
* Lists product landing pages with optional filtering.
|
|
26
|
+
* @param options - The options for listing product landing pages.
|
|
27
|
+
* @returns A Promise that resolves to a list of ProductLandingPage entities.
|
|
28
|
+
*/
|
|
29
|
+
list(options?: ProductLandingPageListOptions): Promise<ListResponse<ProductLandingPage>>;
|
|
30
|
+
}
|