nextemos 3.7.0 → 3.7.2
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/helpers/cdn.d.ts
CHANGED
package/dist/helpers/cdn.js
CHANGED
|
@@ -18,6 +18,10 @@ const cdn = {
|
|
|
18
18
|
default:
|
|
19
19
|
return thumborImageProcessor(props); // Varsayılan olarak Thumbor işlemcisi kullanılıyor
|
|
20
20
|
}
|
|
21
|
+
},
|
|
22
|
+
// CDN'deki dosyayı linkini getiren fonksiyon
|
|
23
|
+
getFile: function name(path = '') {
|
|
24
|
+
return `${this.url}/${path}`;
|
|
21
25
|
}
|
|
22
26
|
};
|
|
23
27
|
// Değerin geçerli olup olmadığını kontrol eden ve string olarak döndüren yardımcı fonksiyon
|
|
@@ -2,7 +2,7 @@ import { IApiResponse, IRequestInit, ICategoryTreeResponse, IGetAllProductsRespo
|
|
|
2
2
|
/**
|
|
3
3
|
* Product ID'sine göre Product alma isteği arayüzü.
|
|
4
4
|
*/
|
|
5
|
-
interface IProductRequest {
|
|
5
|
+
export interface IProductRequest {
|
|
6
6
|
id: number;
|
|
7
7
|
flags?: number;
|
|
8
8
|
includes?: string[];
|
|
@@ -12,7 +12,7 @@ interface IProductRequest {
|
|
|
12
12
|
/**
|
|
13
13
|
* ID'sine göre Kategori alma isteği arayüzü.
|
|
14
14
|
*/
|
|
15
|
-
interface IProductCategoryRequest {
|
|
15
|
+
export interface IProductCategoryRequest {
|
|
16
16
|
id: number;
|
|
17
17
|
includes?: string[];
|
|
18
18
|
tags?: string[];
|
|
@@ -21,7 +21,7 @@ interface IProductCategoryRequest {
|
|
|
21
21
|
/**
|
|
22
22
|
* Ürün listeleme sayfalarında kullanılır, tüm ürünleri ve filtreleri hesaplayıp döndürür.
|
|
23
23
|
*/
|
|
24
|
-
interface ISearchProductsRequest {
|
|
24
|
+
export interface ISearchProductsRequest {
|
|
25
25
|
searchTerm?: string;
|
|
26
26
|
includes?: string[];
|
|
27
27
|
scopeTypes?: number[];
|
|
@@ -132,4 +132,3 @@ export interface IProductService {
|
|
|
132
132
|
*/
|
|
133
133
|
AllCategories: (data: IAllCategoriesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryAllResponse>>;
|
|
134
134
|
}
|
|
135
|
-
export {};
|