nextemos 4.6.3 → 4.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/dist/interfaces/product.d.ts +20 -1
- package/dist/interfaces/response.d.ts +4 -0
- package/dist/services/address/address.types.d.ts +3 -6
- package/dist/services/banner/banner.types.d.ts +6 -13
- package/dist/services/blog/blog.types.d.ts +9 -25
- package/dist/services/localization/localization.types.d.ts +4 -9
- package/dist/services/member/index.js +0 -31
- package/dist/services/member/member.types.d.ts +13 -57
- package/dist/services/prediction/prediction.types.d.ts +3 -7
- package/dist/services/product/index.js +90 -0
- package/dist/services/product/product.types.d.ts +47 -27
- package/dist/services/route/route.types.d.ts +3 -5
- package/dist/services/shoppingcart/index.js +22 -0
- package/dist/services/shoppingcart/shoppingcart.types.d.ts +9 -0
- package/dist/services/stock/stock.types.d.ts +3 -5
- package/dist/services/urls.d.ts +5 -0
- package/dist/services/urls.js +5 -0
- package/package.json +1 -1
|
@@ -301,11 +301,30 @@ export interface IProductType {
|
|
|
301
301
|
isAggregated: boolean;
|
|
302
302
|
extensionData: any;
|
|
303
303
|
}
|
|
304
|
-
export interface
|
|
304
|
+
export interface IGetFavoritesResponse extends IResponse {
|
|
305
305
|
data: IProductFavorite[];
|
|
306
306
|
}
|
|
307
|
+
export interface IGetPriceAlertsResponse extends IResponse {
|
|
308
|
+
data: IProductPriceAlert[];
|
|
309
|
+
}
|
|
310
|
+
export interface IGetStockAlertsResponse extends IResponse {
|
|
311
|
+
data: IProductStockAlert[];
|
|
312
|
+
}
|
|
307
313
|
export interface IProductFavorite {
|
|
308
314
|
productId: number;
|
|
309
315
|
savedPrice: number;
|
|
310
316
|
currencyId: number;
|
|
311
317
|
}
|
|
318
|
+
export interface IProductPriceAlert {
|
|
319
|
+
productId: number;
|
|
320
|
+
currencyId: number;
|
|
321
|
+
priceTypeId: number;
|
|
322
|
+
price: number;
|
|
323
|
+
lastInformedPrice: number;
|
|
324
|
+
lastInformedDate: string;
|
|
325
|
+
}
|
|
326
|
+
export interface IProductStockAlert {
|
|
327
|
+
productId: number;
|
|
328
|
+
stockBarCodeId: number;
|
|
329
|
+
lastInformedDate: string;
|
|
330
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { IAddressSchemaResponse, IAddressSourceDataResponse, IApiResponse, IRequestInit, IService } from '../..';
|
|
1
|
+
import { IAddressSchemaResponse, IAddressSourceDataResponse, IApiResponse, IRequestBase, IRequestInit, IService } from '../..';
|
|
2
2
|
export type TAddressPartTypeId = 'Continent' | 'Country' | 'GoverningDistrict' | 'City' | 'County' | 'Town' | 'Neighbourhood' | 'PostalCode' | 'Street' | 'Complex' | 'Apartment' | 'Description' | 'TelephoneNumber' | 'Name' | 'Surname' | 'CorporationName' | 'MobilePhone';
|
|
3
|
-
export interface IAddressSourceDataRequest {
|
|
3
|
+
export interface IAddressSourceDataRequest extends IRequestBase {
|
|
4
4
|
addressPartTypeId: TAddressPartTypeId;
|
|
5
5
|
value?: string;
|
|
6
6
|
parentId?: number;
|
|
7
|
-
tags?: string[];
|
|
8
7
|
}
|
|
9
|
-
export interface IAddressSchemaRequest {
|
|
8
|
+
export interface IAddressSchemaRequest extends IRequestBase {
|
|
10
9
|
name?: string;
|
|
11
10
|
inputTypeId?: 'DataBasedFreeText' | 'FreeText' | 'Data';
|
|
12
11
|
addressPartTypeId?: TAddressPartTypeId;
|
|
13
12
|
TenantId?: string;
|
|
14
|
-
language?: string;
|
|
15
|
-
tags?: string[];
|
|
16
13
|
}
|
|
17
14
|
export interface IAddressService extends IService {
|
|
18
15
|
AddressSourceData: (data: IAddressSourceDataRequest, options?: IRequestInit) => Promise<IApiResponse<IAddressSourceDataResponse>>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { IApiResponse, IBannerContainersResponse, IBannerResponse, IBannersResponse, IRequestInit, IService } from '../..';
|
|
2
|
-
export interface IGetBannerByIdRequest {
|
|
1
|
+
import { IApiResponse, IBannerContainersResponse, IBannerResponse, IBannersResponse, IRequestBase, IRequestInit, IService } from '../..';
|
|
2
|
+
export interface IGetBannerByIdRequest extends IRequestBase {
|
|
3
3
|
id: number;
|
|
4
|
-
language?: string;
|
|
5
4
|
}
|
|
6
|
-
export interface IGetBannerByNameRequest {
|
|
5
|
+
export interface IGetBannerByNameRequest extends IRequestBase {
|
|
7
6
|
name: string;
|
|
8
|
-
language?: string;
|
|
9
7
|
}
|
|
10
|
-
export interface IGetBannerByKeyRequest {
|
|
8
|
+
export interface IGetBannerByKeyRequest extends IRequestBase {
|
|
11
9
|
key: string;
|
|
12
|
-
language?: string;
|
|
13
10
|
}
|
|
14
|
-
export interface IGetBannerListRequest {
|
|
11
|
+
export interface IGetBannerListRequest extends IRequestBase {
|
|
15
12
|
bannerContainerIds?: number[];
|
|
16
13
|
bannerContainerNames?: string[];
|
|
17
14
|
bannerContainerKeys?: string[];
|
|
@@ -19,17 +16,13 @@ export interface IGetBannerListRequest {
|
|
|
19
16
|
pageSize?: number;
|
|
20
17
|
currentPage?: number;
|
|
21
18
|
bannerKeys?: string[];
|
|
22
|
-
tags?: string[];
|
|
23
|
-
language?: string;
|
|
24
19
|
}
|
|
25
|
-
export interface IGetBannerContainerListRequest {
|
|
20
|
+
export interface IGetBannerContainerListRequest extends IRequestBase {
|
|
26
21
|
ids?: number[];
|
|
27
22
|
names?: string[];
|
|
28
23
|
keys?: string[];
|
|
29
24
|
pageSize?: number;
|
|
30
25
|
currentPage?: number;
|
|
31
|
-
tags?: string[];
|
|
32
|
-
language?: string;
|
|
33
26
|
}
|
|
34
27
|
export interface IBannerService extends IService {
|
|
35
28
|
GetBannerById: (data: IGetBannerByIdRequest, options?: IRequestInit) => Promise<IApiResponse<IBannerResponse>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IApiResponse, IBlogPostResponse, IBlogPostsResponse, IGetBlogCategoriesResponse, IGetBlogCategoryHierarchyResponse, IGetBlogCategoryResponse, IGetBlogCategoryTreeResponse, IGetBlogTagResponse, IGetBlogTagsResponse, IRequestInit, IService } from '../..';
|
|
1
|
+
import { IApiResponse, IBlogPostResponse, IBlogPostsResponse, IGetBlogCategoriesResponse, IGetBlogCategoryHierarchyResponse, IGetBlogCategoryResponse, IGetBlogCategoryTreeResponse, IGetBlogTagResponse, IGetBlogTagsResponse, IRequestBase, IRequestInit, IService } from '../..';
|
|
2
2
|
export interface AggregationFilter {
|
|
3
3
|
field: string;
|
|
4
4
|
keys: string[];
|
|
5
5
|
}
|
|
6
|
-
export interface IGetBlogPostsRequest {
|
|
6
|
+
export interface IGetBlogPostsRequest extends IRequestBase {
|
|
7
7
|
blogPostIds?: number[];
|
|
8
8
|
blogCategoryIds?: number[];
|
|
9
9
|
tagIds?: number[];
|
|
@@ -18,17 +18,13 @@ export interface IGetBlogPostsRequest {
|
|
|
18
18
|
aggregationFilters?: AggregationFilter[];
|
|
19
19
|
pageSize?: number;
|
|
20
20
|
currentPage?: number;
|
|
21
|
-
tags?: string[];
|
|
22
|
-
language?: string;
|
|
23
21
|
}
|
|
24
|
-
export interface IGetBlogPostRequest {
|
|
22
|
+
export interface IGetBlogPostRequest extends IRequestBase {
|
|
25
23
|
id: number;
|
|
26
24
|
flags?: string;
|
|
27
25
|
includes?: string[];
|
|
28
|
-
tags?: string[];
|
|
29
|
-
language?: string;
|
|
30
26
|
}
|
|
31
|
-
export interface IGetBlogCategoriesRequest {
|
|
27
|
+
export interface IGetBlogCategoriesRequest extends IRequestBase {
|
|
32
28
|
blogCategoryIds?: number[];
|
|
33
29
|
blogCategoryHierarchyIds?: number[];
|
|
34
30
|
categoryKeys?: string[];
|
|
@@ -36,43 +32,31 @@ export interface IGetBlogCategoriesRequest {
|
|
|
36
32
|
searchTerm?: string;
|
|
37
33
|
pageSize?: number;
|
|
38
34
|
currentPage?: number;
|
|
39
|
-
tags?: string[];
|
|
40
|
-
language?: string;
|
|
41
35
|
}
|
|
42
|
-
export interface IGetBlogCategoryRequest {
|
|
36
|
+
export interface IGetBlogCategoryRequest extends IRequestBase {
|
|
43
37
|
id: number;
|
|
44
38
|
includes?: string[];
|
|
45
|
-
tags?: string[];
|
|
46
|
-
language?: string;
|
|
47
39
|
}
|
|
48
|
-
export interface IGetBlogCategoryHierarchyRequest {
|
|
40
|
+
export interface IGetBlogCategoryHierarchyRequest extends IRequestBase {
|
|
49
41
|
id: number;
|
|
50
42
|
includes?: string[];
|
|
51
|
-
tags?: string[];
|
|
52
|
-
language?: string;
|
|
53
43
|
}
|
|
54
|
-
export interface IGetBlogCategoryTreeRequest {
|
|
44
|
+
export interface IGetBlogCategoryTreeRequest extends IRequestBase {
|
|
55
45
|
categoryId?: number;
|
|
56
46
|
levelCount?: number;
|
|
57
47
|
key?: string;
|
|
58
48
|
includes?: string[];
|
|
59
|
-
tags?: string[];
|
|
60
|
-
language?: string;
|
|
61
49
|
}
|
|
62
|
-
export interface IGetBlogTagsRequest {
|
|
50
|
+
export interface IGetBlogTagsRequest extends IRequestBase {
|
|
63
51
|
blogTagIds?: number[];
|
|
64
|
-
tags?: string[];
|
|
65
52
|
searchTerm?: string;
|
|
66
53
|
includes?: string[];
|
|
67
54
|
pageSize?: number;
|
|
68
55
|
currentPage?: number;
|
|
69
|
-
language?: string;
|
|
70
56
|
}
|
|
71
|
-
export interface IGetBlogTagRequest {
|
|
57
|
+
export interface IGetBlogTagRequest extends IRequestBase {
|
|
72
58
|
id: number;
|
|
73
59
|
includes?: string[];
|
|
74
|
-
tags?: string[];
|
|
75
|
-
language?: string;
|
|
76
60
|
}
|
|
77
61
|
export interface IBlogService extends IService {
|
|
78
62
|
GetBlogPostsRequest: (data?: IGetBlogPostsRequest, options?: IRequestInit) => Promise<IApiResponse<IBlogPostsResponse>>;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { IApiResponse, ILocalizationAllResponse, ILocalizedTextResponse, IRequestInit, IService } from '../..';
|
|
2
|
-
export interface IAllByTagNameRequest {
|
|
1
|
+
import { IApiResponse, ILocalizationAllResponse, ILocalizedTextResponse, IRequestBase, IRequestInit, IService } from '../..';
|
|
2
|
+
export interface IAllByTagNameRequest extends IRequestBase {
|
|
3
3
|
tagName: string;
|
|
4
|
-
language?: string;
|
|
5
|
-
tags?: string[];
|
|
6
4
|
}
|
|
7
|
-
export interface ILocalizedTextRequest {
|
|
5
|
+
export interface ILocalizedTextRequest extends IRequestBase {
|
|
8
6
|
text: string;
|
|
9
|
-
language?: string;
|
|
10
|
-
tags?: string[];
|
|
11
7
|
}
|
|
12
|
-
export interface IAllByLanguageRequest {
|
|
8
|
+
export interface IAllByLanguageRequest extends IRequestBase {
|
|
13
9
|
language: string;
|
|
14
|
-
tags?: string[];
|
|
15
10
|
}
|
|
16
11
|
export interface IAllByTagNameByLanguageRequest extends IAllByLanguageRequest {
|
|
17
12
|
tagName: string;
|
|
@@ -191,35 +191,4 @@ exports.MemberService = {
|
|
|
191
191
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
192
192
|
});
|
|
193
193
|
},
|
|
194
|
-
// Products
|
|
195
|
-
GetFavorites: function () {
|
|
196
|
-
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
197
|
-
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
198
|
-
serviceUrl: this.ServiceUrl(),
|
|
199
|
-
prefix: this.Prefix,
|
|
200
|
-
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
201
|
-
methodName: urls_1.default.Member.Product.ProductFavoritesByMemberId,
|
|
202
|
-
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
203
|
-
});
|
|
204
|
-
},
|
|
205
|
-
AddFavorites: function (data, options) {
|
|
206
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
-
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
208
|
-
serviceUrl: this.ServiceUrl(),
|
|
209
|
-
prefix: this.Prefix,
|
|
210
|
-
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
211
|
-
methodName: urls_1.default.Member.Product.ProductFavoritesByMemberId,
|
|
212
|
-
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
213
|
-
});
|
|
214
|
-
},
|
|
215
|
-
RemoveFavorites: function (data, options) {
|
|
216
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
-
return yield (0, __1.fetchRequest)().delete((0, urls_1.getUrl)({
|
|
218
|
-
serviceUrl: this.ServiceUrl(),
|
|
219
|
-
prefix: this.Prefix,
|
|
220
|
-
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
221
|
-
methodName: urls_1.default.Member.Product.ProductFavoritesByMemberId,
|
|
222
|
-
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
223
|
-
});
|
|
224
|
-
},
|
|
225
194
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse,
|
|
2
|
-
export interface IMessageSubjectRequest {
|
|
3
|
-
language?: string;
|
|
4
|
-
tags?: string[];
|
|
1
|
+
import { IApiResponse, IRequestInit, IService, ICreateMemberResponse, IMessageSubjectResponse, ISendMessageResponse, ILoginRequestResponse, IResponse, IActiveMemberResponse, IMemberAddressesResponse, IMemberAddressResponse, AddressPart, IPasswordRenewalMessageResponse, IRequestBase } from '../..';
|
|
2
|
+
export interface IMessageSubjectRequest extends IRequestBase {
|
|
5
3
|
}
|
|
6
|
-
export interface ISendMessageRequest {
|
|
4
|
+
export interface ISendMessageRequest extends IRequestBase {
|
|
7
5
|
memberId?: number;
|
|
8
6
|
messageStateId?: number;
|
|
9
7
|
orderDocNo?: string;
|
|
@@ -27,10 +25,8 @@ export interface ISendMessageRequest {
|
|
|
27
25
|
communicationPreference?: string;
|
|
28
26
|
createdUserType?: string;
|
|
29
27
|
files?: string;
|
|
30
|
-
language?: string;
|
|
31
|
-
tags?: string[];
|
|
32
28
|
}
|
|
33
|
-
export interface ICreateMemberRequest {
|
|
29
|
+
export interface ICreateMemberRequest extends IRequestBase {
|
|
34
30
|
email?: string;
|
|
35
31
|
mobilePhone?: string;
|
|
36
32
|
countryCode?: string;
|
|
@@ -56,34 +52,24 @@ export interface ICreateMemberRequest {
|
|
|
56
52
|
isApproved?: boolean;
|
|
57
53
|
createdBy?: number;
|
|
58
54
|
};
|
|
59
|
-
language?: string;
|
|
60
|
-
tags?: string[];
|
|
61
55
|
}
|
|
62
|
-
export interface ILoginRequest {
|
|
56
|
+
export interface ILoginRequest extends IRequestBase {
|
|
63
57
|
mobilePhone?: string;
|
|
64
58
|
email?: string;
|
|
65
59
|
password: string;
|
|
66
|
-
language?: string;
|
|
67
|
-
tags?: string[];
|
|
68
60
|
}
|
|
69
|
-
export interface IContactApprovalMessageRequest {
|
|
61
|
+
export interface IContactApprovalMessageRequest extends IRequestBase {
|
|
70
62
|
memberValidationType: 'Email' | 'Mobile';
|
|
71
|
-
language?: string;
|
|
72
|
-
tags?: string[];
|
|
73
63
|
}
|
|
74
|
-
export interface IApproveValidationTokenRequest {
|
|
64
|
+
export interface IApproveValidationTokenRequest extends IRequestBase {
|
|
75
65
|
token: string;
|
|
76
|
-
language?: string;
|
|
77
|
-
tags?: string[];
|
|
78
66
|
}
|
|
79
|
-
export interface IMemberAddressesRequest {
|
|
67
|
+
export interface IMemberAddressesRequest extends IRequestBase {
|
|
80
68
|
memberId?: number;
|
|
81
69
|
addressType?: 'Individual' | 'Corporate';
|
|
82
70
|
includeParts?: boolean;
|
|
83
|
-
language?: string;
|
|
84
|
-
tags?: string[];
|
|
85
71
|
}
|
|
86
|
-
export interface IMemberAddressRequest {
|
|
72
|
+
export interface IMemberAddressRequest extends IRequestBase {
|
|
87
73
|
memberId?: number;
|
|
88
74
|
addressTypeId?: string;
|
|
89
75
|
identificationNumber?: string;
|
|
@@ -98,54 +84,27 @@ export interface IMemberAddressRequest {
|
|
|
98
84
|
integrationCode?: string;
|
|
99
85
|
parts?: AddressPart[];
|
|
100
86
|
createdBy?: number;
|
|
101
|
-
language?: string;
|
|
102
|
-
tags?: string[];
|
|
103
87
|
}
|
|
104
|
-
export interface IRemoveAddressRequest {
|
|
88
|
+
export interface IRemoveAddressRequest extends IRequestBase {
|
|
105
89
|
id?: number;
|
|
106
|
-
language?: string;
|
|
107
|
-
tags?: string[];
|
|
108
90
|
}
|
|
109
91
|
export interface IUpdateMemberRequest extends Omit<ICreateMemberRequest, 'password'> {
|
|
110
92
|
}
|
|
111
|
-
export interface IPasswordRenewalMessageRequest {
|
|
93
|
+
export interface IPasswordRenewalMessageRequest extends IRequestBase {
|
|
112
94
|
email?: string;
|
|
113
95
|
mobilePhone?: string;
|
|
114
|
-
language?: string;
|
|
115
|
-
tags?: string[];
|
|
116
96
|
}
|
|
117
|
-
export interface IChangePasswordRequest {
|
|
97
|
+
export interface IChangePasswordRequest extends IRequestBase {
|
|
118
98
|
memberId?: number;
|
|
119
99
|
oldPassword: string;
|
|
120
100
|
newPassword: string;
|
|
121
101
|
informByMail?: boolean;
|
|
122
102
|
informBySMS?: boolean;
|
|
123
|
-
language?: string;
|
|
124
|
-
tags?: string[];
|
|
125
103
|
}
|
|
126
|
-
export interface IChangePasswordByTokenRequest {
|
|
104
|
+
export interface IChangePasswordByTokenRequest extends IRequestBase {
|
|
127
105
|
token: string;
|
|
128
106
|
password: string;
|
|
129
107
|
key: string;
|
|
130
|
-
language?: string;
|
|
131
|
-
tags?: string[];
|
|
132
|
-
}
|
|
133
|
-
export interface IGetFavoritesRequest {
|
|
134
|
-
id?: number;
|
|
135
|
-
language?: string;
|
|
136
|
-
tags?: string[];
|
|
137
|
-
}
|
|
138
|
-
export interface IAddFavoritesRequest {
|
|
139
|
-
memberId?: number;
|
|
140
|
-
productFavorites: IProductFavorite[];
|
|
141
|
-
language?: string;
|
|
142
|
-
tags?: string[];
|
|
143
|
-
}
|
|
144
|
-
export interface IRemoveFavoritesRequest {
|
|
145
|
-
memberId?: number;
|
|
146
|
-
productIds: number[];
|
|
147
|
-
language?: string;
|
|
148
|
-
tags?: string[];
|
|
149
108
|
}
|
|
150
109
|
export interface IMemberService extends IService {
|
|
151
110
|
SubjectsAll: (data?: IMessageSubjectRequest, options?: IRequestInit) => Promise<IApiResponse<IMessageSubjectResponse>>;
|
|
@@ -162,7 +121,4 @@ export interface IMemberService extends IService {
|
|
|
162
121
|
PasswordRenewalMessage: (data?: IPasswordRenewalMessageRequest, options?: IRequestInit) => Promise<IApiResponse<IPasswordRenewalMessageResponse>>;
|
|
163
122
|
ChangePasswordRequest: (data?: IChangePasswordRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
164
123
|
ChangePasswordByTokenRequest: (data?: IChangePasswordByTokenRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
165
|
-
GetFavorites: (data?: IGetFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductFavoritesByMemberIdResponse>>;
|
|
166
|
-
AddFavorites: (data?: IAddFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
167
|
-
RemoveFavorites: (data?: IRemoveFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
168
124
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { IApiResponse, IAutocompleteResponse, IDidyoumeanResponse, IRequestInit, IService } from '../..';
|
|
2
|
-
export interface IAutocompleteRequest {
|
|
1
|
+
import { IApiResponse, IAutocompleteResponse, IDidyoumeanResponse, IRequestBase, IRequestInit, IService } from '../..';
|
|
2
|
+
export interface IAutocompleteRequest extends IRequestBase {
|
|
3
3
|
text: string;
|
|
4
4
|
contentTypes?: string[];
|
|
5
5
|
size?: number;
|
|
6
6
|
fuzzy?: number;
|
|
7
|
-
tags?: string[];
|
|
8
|
-
language?: string;
|
|
9
7
|
}
|
|
10
|
-
export interface IDidyoumeanRequest {
|
|
8
|
+
export interface IDidyoumeanRequest extends IRequestBase {
|
|
11
9
|
text: string;
|
|
12
10
|
suggestMode?: 'missing' | 'always' | 'popular';
|
|
13
11
|
contentTypes?: string[];
|
|
14
12
|
size?: number;
|
|
15
13
|
gramSize?: number;
|
|
16
14
|
confidence?: number;
|
|
17
|
-
tags?: string[];
|
|
18
|
-
language?: string;
|
|
19
15
|
}
|
|
20
16
|
export interface IPredictionService extends IService {
|
|
21
17
|
Autocomplete: (data: IAutocompleteRequest, options?: IRequestInit) => Promise<IApiResponse<IAutocompleteResponse>>;
|
|
@@ -144,4 +144,94 @@ exports.ProductService = {
|
|
|
144
144
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
145
145
|
});
|
|
146
146
|
},
|
|
147
|
+
GetFavorites: function () {
|
|
148
|
+
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
149
|
+
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
150
|
+
serviceUrl: this.ServiceUrl(),
|
|
151
|
+
prefix: this.Prefix,
|
|
152
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
153
|
+
methodName: urls_1.default.ProductFavorite,
|
|
154
|
+
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
AddFavorites: function (data, options) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
160
|
+
serviceUrl: this.ServiceUrl(),
|
|
161
|
+
prefix: this.Prefix,
|
|
162
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
163
|
+
methodName: urls_1.default.ProductFavorite,
|
|
164
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
165
|
+
});
|
|
166
|
+
},
|
|
167
|
+
RemoveFavorites: function (data, options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
return yield (0, __1.fetchRequest)().delete((0, urls_1.getUrl)({
|
|
170
|
+
serviceUrl: this.ServiceUrl(),
|
|
171
|
+
prefix: this.Prefix,
|
|
172
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
173
|
+
methodName: urls_1.default.ProductFavorite,
|
|
174
|
+
}), Object.assign(Object.assign({}, options), { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }));
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
GetPriceAlerts: function () {
|
|
178
|
+
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
179
|
+
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
180
|
+
serviceUrl: this.ServiceUrl(),
|
|
181
|
+
prefix: this.Prefix,
|
|
182
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
183
|
+
methodName: urls_1.default.ProductPriceAlert,
|
|
184
|
+
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
AddPriceAlert: function (data, options) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
190
|
+
serviceUrl: this.ServiceUrl(),
|
|
191
|
+
prefix: this.Prefix,
|
|
192
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
193
|
+
methodName: urls_1.default.ProductPriceAlert,
|
|
194
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
RemovePriceAlert: function (data, options) {
|
|
198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
+
return yield (0, __1.fetchRequest)().delete((0, urls_1.getUrl)({
|
|
200
|
+
serviceUrl: this.ServiceUrl(),
|
|
201
|
+
prefix: this.Prefix,
|
|
202
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
203
|
+
methodName: urls_1.default.ProductPriceAlert,
|
|
204
|
+
}), Object.assign(Object.assign({}, options), { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }));
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
GetStockAlerts: function () {
|
|
208
|
+
return __awaiter(this, arguments, void 0, function* (data = {}, options) {
|
|
209
|
+
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
210
|
+
serviceUrl: this.ServiceUrl(),
|
|
211
|
+
prefix: this.Prefix,
|
|
212
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
213
|
+
methodName: urls_1.default.ProductStockAlert,
|
|
214
|
+
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
215
|
+
});
|
|
216
|
+
},
|
|
217
|
+
AddStockAlert: function (data, options) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
220
|
+
serviceUrl: this.ServiceUrl(),
|
|
221
|
+
prefix: this.Prefix,
|
|
222
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
223
|
+
methodName: urls_1.default.ProductStockAlert,
|
|
224
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
RemoveStockAlert: function (data, options) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
return yield (0, __1.fetchRequest)().delete((0, urls_1.getUrl)({
|
|
230
|
+
serviceUrl: this.ServiceUrl(),
|
|
231
|
+
prefix: this.Prefix,
|
|
232
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
233
|
+
methodName: urls_1.default.ProductStockAlert,
|
|
234
|
+
}), Object.assign(Object.assign({}, options), { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data) }));
|
|
235
|
+
});
|
|
236
|
+
},
|
|
147
237
|
};
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, ICategoryTreeResponse, IGetAllProductsResponse, IProductCategoryResponse, IProductResponse, ISearchProductsResponse, IProductCategoryAllResponse, IProductCategoryHierarchyResponse, IService, IProductTypeResponse, IProductTypeListResponse } from '../..';
|
|
2
|
-
export interface IProductRequest {
|
|
1
|
+
import { IApiResponse, IRequestInit, ICategoryTreeResponse, IGetAllProductsResponse, IProductCategoryResponse, IProductResponse, ISearchProductsResponse, IProductCategoryAllResponse, IProductCategoryHierarchyResponse, IService, IProductTypeResponse, IProductTypeListResponse, IResponse, IGetFavoritesResponse, IRequestBase, IGetPriceAlertsResponse, IGetStockAlertsResponse } from '../..';
|
|
2
|
+
export interface IProductRequest extends IRequestBase {
|
|
3
3
|
id: number;
|
|
4
4
|
flags?: number;
|
|
5
5
|
includes?: string[];
|
|
6
|
-
tags?: string[];
|
|
7
|
-
language?: string;
|
|
8
6
|
}
|
|
9
|
-
export interface IProductCategoryRequest {
|
|
7
|
+
export interface IProductCategoryRequest extends IRequestBase {
|
|
10
8
|
id: number;
|
|
11
9
|
includes?: string[];
|
|
12
|
-
tags?: string[];
|
|
13
|
-
language?: string;
|
|
14
10
|
}
|
|
15
|
-
export interface ISearchProductsRequest {
|
|
11
|
+
export interface ISearchProductsRequest extends IRequestBase {
|
|
16
12
|
searchTerm?: string;
|
|
17
13
|
includes?: string[];
|
|
18
14
|
scopeTypes?: number[];
|
|
@@ -33,8 +29,6 @@ export interface ISearchProductsRequest {
|
|
|
33
29
|
flags?: string;
|
|
34
30
|
pageSize?: number;
|
|
35
31
|
currentPage?: number;
|
|
36
|
-
tags?: string[];
|
|
37
|
-
language?: string;
|
|
38
32
|
}
|
|
39
33
|
export interface Sort {
|
|
40
34
|
option: string;
|
|
@@ -49,7 +43,7 @@ interface AggregationFilter {
|
|
|
49
43
|
field: string;
|
|
50
44
|
keys: string[];
|
|
51
45
|
}
|
|
52
|
-
export interface IGetAllProductsRequest {
|
|
46
|
+
export interface IGetAllProductsRequest extends IRequestBase {
|
|
53
47
|
includes?: string[];
|
|
54
48
|
scopeTypes?: number[];
|
|
55
49
|
catalogId?: number;
|
|
@@ -66,17 +60,14 @@ export interface IGetAllProductsRequest {
|
|
|
66
60
|
searchAfter?: string[];
|
|
67
61
|
pageSize?: number;
|
|
68
62
|
currentPage?: number;
|
|
69
|
-
language?: string;
|
|
70
63
|
}
|
|
71
|
-
export interface ICategoryTreeRequest {
|
|
64
|
+
export interface ICategoryTreeRequest extends IRequestBase {
|
|
72
65
|
categoryId?: number;
|
|
73
66
|
includes?: string[];
|
|
74
67
|
levelCount?: number;
|
|
75
68
|
ReturnProductCounts?: 'true' | 'false';
|
|
76
|
-
tags?: string[];
|
|
77
|
-
language?: string;
|
|
78
69
|
}
|
|
79
|
-
export interface IAllCategoriesRequest {
|
|
70
|
+
export interface IAllCategoriesRequest extends IRequestBase {
|
|
80
71
|
categoryId?: number;
|
|
81
72
|
channelId?: number;
|
|
82
73
|
categoryIds?: number[];
|
|
@@ -84,29 +75,49 @@ export interface IAllCategoriesRequest {
|
|
|
84
75
|
searchTerm?: string;
|
|
85
76
|
hierarchyIds?: number[];
|
|
86
77
|
includes?: string[];
|
|
87
|
-
tags?: string[];
|
|
88
|
-
language?: string;
|
|
89
78
|
}
|
|
90
|
-
export interface IHierarchyCategoriesRequest {
|
|
79
|
+
export interface IHierarchyCategoriesRequest extends IRequestBase {
|
|
91
80
|
id?: number;
|
|
92
81
|
isPreview?: boolean;
|
|
93
82
|
includes?: string[];
|
|
94
|
-
tags?: string[];
|
|
95
|
-
language?: string;
|
|
96
83
|
}
|
|
97
|
-
export interface IProductTypeRequest {
|
|
84
|
+
export interface IProductTypeRequest extends IRequestBase {
|
|
98
85
|
id: number;
|
|
99
86
|
includes?: string[];
|
|
100
|
-
tags?: string[];
|
|
101
|
-
language?: string;
|
|
102
87
|
}
|
|
103
|
-
export interface IProductTypeListRequest {
|
|
88
|
+
export interface IProductTypeListRequest extends IRequestBase {
|
|
104
89
|
productTypeIds?: number[];
|
|
105
90
|
keys?: string | string[];
|
|
106
91
|
searchTerm?: string;
|
|
107
92
|
includes?: string[];
|
|
108
|
-
|
|
109
|
-
|
|
93
|
+
}
|
|
94
|
+
export interface IGetFavoritesRequest extends IRequestBase {
|
|
95
|
+
}
|
|
96
|
+
export interface IAddFavoritesRequest extends IRequestBase {
|
|
97
|
+
productIds: number[];
|
|
98
|
+
}
|
|
99
|
+
export interface IRemoveFavoritesRequest extends IRequestBase {
|
|
100
|
+
productIds: number[];
|
|
101
|
+
}
|
|
102
|
+
export interface IGetPriceAlertsRequest extends IRequestBase {
|
|
103
|
+
}
|
|
104
|
+
export interface IAddPriceAlertRequest extends IRequestBase {
|
|
105
|
+
productPriceAlerts: {
|
|
106
|
+
productId: number;
|
|
107
|
+
}[];
|
|
108
|
+
}
|
|
109
|
+
export interface IRemovePriceAlertRequest extends IRequestBase {
|
|
110
|
+
productIds: number[];
|
|
111
|
+
}
|
|
112
|
+
export interface IGetStockAlertsRequest extends IRequestBase {
|
|
113
|
+
}
|
|
114
|
+
export interface IAddStockAlertRequest extends IRequestBase {
|
|
115
|
+
productStockAlerts: {
|
|
116
|
+
productId: number;
|
|
117
|
+
}[];
|
|
118
|
+
}
|
|
119
|
+
export interface IRemoveStockAlertRequest extends IRequestBase {
|
|
120
|
+
productIds: number[];
|
|
110
121
|
}
|
|
111
122
|
export interface IProductService extends IService {
|
|
112
123
|
Product: (data: IProductRequest, options?: IRequestInit) => Promise<IApiResponse<IProductResponse>>;
|
|
@@ -118,5 +129,14 @@ export interface IProductService extends IService {
|
|
|
118
129
|
Hierarchy: (data: IHierarchyCategoriesRequest, options?: IRequestInit) => Promise<IApiResponse<IProductCategoryHierarchyResponse>>;
|
|
119
130
|
ProductType: (data: IProductTypeRequest, options?: IRequestInit) => Promise<IApiResponse<IProductTypeResponse>>;
|
|
120
131
|
ProductTypeList: (data: IProductTypeListRequest, options?: IRequestInit) => Promise<IApiResponse<IProductTypeListResponse>>;
|
|
132
|
+
GetFavorites: (data?: IGetFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IGetFavoritesResponse>>;
|
|
133
|
+
AddFavorites: (data: IAddFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
134
|
+
RemoveFavorites: (data?: IRemoveFavoritesRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
135
|
+
GetPriceAlerts: (data?: IGetPriceAlertsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetPriceAlertsResponse>>;
|
|
136
|
+
AddPriceAlert: (data: IAddPriceAlertRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
137
|
+
RemovePriceAlert: (data?: IRemovePriceAlertRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
138
|
+
GetStockAlerts: (data?: IGetStockAlertsRequest, options?: IRequestInit) => Promise<IApiResponse<IGetStockAlertsResponse>>;
|
|
139
|
+
AddStockAlert: (data: IAddStockAlertRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
140
|
+
RemoveStockAlert: (data?: IRemoveStockAlertRequest, options?: IRequestInit) => Promise<IApiResponse<IResponse>>;
|
|
121
141
|
}
|
|
122
142
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { IApiResponse, IGetCommonPagesResponse, IRequestInit, IRouteResponse, IService } from '../..';
|
|
2
|
-
export interface IGetRouteInfoRequest {
|
|
1
|
+
import { IApiResponse, IGetCommonPagesResponse, IRequestBase, IRequestInit, IRouteResponse, IService } from '../..';
|
|
2
|
+
export interface IGetRouteInfoRequest extends IRequestBase {
|
|
3
3
|
baseUrl: string;
|
|
4
4
|
queryString?: string;
|
|
5
5
|
showRedirectDetail?: boolean;
|
|
6
|
-
language?: string;
|
|
7
6
|
}
|
|
8
|
-
export interface IGetCommonPagesRequest {
|
|
9
|
-
language?: string;
|
|
7
|
+
export interface IGetCommonPagesRequest extends IRequestBase {
|
|
10
8
|
}
|
|
11
9
|
export interface IRouteService extends IService {
|
|
12
10
|
GetRouteInfo: (data: IGetRouteInfoRequest, options?: IRequestInit) => Promise<IApiResponse<IRouteResponse>>;
|
|
@@ -74,4 +74,26 @@ exports.ShoppingCartService = {
|
|
|
74
74
|
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
|
+
RemoveFromCart: function (data, options) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
80
|
+
serviceUrl: this.ServiceUrl(),
|
|
81
|
+
prefix: this.Prefix,
|
|
82
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
83
|
+
language: data === null || data === void 0 ? void 0 : data.language,
|
|
84
|
+
methodName: urls_1.default.ShoppingCart.RemoveFromCart,
|
|
85
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
ChangeQuantity: function (data, options) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
|
|
91
|
+
serviceUrl: this.ServiceUrl(),
|
|
92
|
+
prefix: this.Prefix,
|
|
93
|
+
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
94
|
+
language: data === null || data === void 0 ? void 0 : data.language,
|
|
95
|
+
methodName: urls_1.default.ShoppingCart.ChangeQuantity,
|
|
96
|
+
}), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
|
|
97
|
+
});
|
|
98
|
+
},
|
|
77
99
|
};
|
|
@@ -33,8 +33,17 @@ export interface IGetCartRequest {
|
|
|
33
33
|
tags?: string[];
|
|
34
34
|
language?: string;
|
|
35
35
|
}
|
|
36
|
+
export interface IRemoveFromCartRequest extends IGetCartRequest {
|
|
37
|
+
itemId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IChangeQuantityRequest extends IGetCartRequest {
|
|
40
|
+
itemId: string;
|
|
41
|
+
quantity: number;
|
|
42
|
+
}
|
|
36
43
|
export interface IShoppingCartService extends IService {
|
|
37
44
|
AddToCart: (data: IAddToCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
38
45
|
GetCartItemCount: (data: IGetCartItemCountRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartItemCountResponse>>;
|
|
39
46
|
GetCart: (data: IGetCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
47
|
+
RemoveFromCart: (data: IRemoveFromCartRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
48
|
+
ChangeQuantity: (data: IChangeQuantityRequest, options?: IRequestInit) => Promise<IApiResponse<IGetCartResponse>>;
|
|
40
49
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { IApiResponse, IRequestInit, IService, IWarehouseResponse, IWarehousesResponse } from '../..';
|
|
2
|
-
export interface IWarehousesRequest {
|
|
1
|
+
import { IApiResponse, IRequestBase, IRequestInit, IService, IWarehouseResponse, IWarehousesResponse } from '../..';
|
|
2
|
+
export interface IWarehousesRequest extends IRequestBase {
|
|
3
3
|
warehouseIds?: number[];
|
|
4
4
|
WarehouseTypeIds?: number[];
|
|
5
5
|
cityId?: number;
|
|
6
6
|
countyId?: number;
|
|
7
7
|
searchTerm?: string;
|
|
8
|
-
tags?: string[];
|
|
9
8
|
}
|
|
10
|
-
export interface IWarehouseRequest {
|
|
9
|
+
export interface IWarehouseRequest extends IRequestBase {
|
|
11
10
|
id: number;
|
|
12
|
-
tags?: string[];
|
|
13
11
|
}
|
|
14
12
|
export interface IStockService extends IService {
|
|
15
13
|
Warehouses: (data?: IWarehousesRequest, options?: IRequestInit) => Promise<IApiResponse<IWarehousesResponse>>;
|
package/dist/services/urls.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ declare const _default: {
|
|
|
36
36
|
ProductCategory: string;
|
|
37
37
|
CategoryTree: string;
|
|
38
38
|
};
|
|
39
|
+
ProductFavorite: string;
|
|
40
|
+
ProductPriceAlert: string;
|
|
41
|
+
ProductStockAlert: string;
|
|
39
42
|
ProductType: {
|
|
40
43
|
All: string;
|
|
41
44
|
ProductType: string;
|
|
@@ -94,6 +97,8 @@ declare const _default: {
|
|
|
94
97
|
AddToCart: string;
|
|
95
98
|
GetCartItemCount: string;
|
|
96
99
|
GetCart: string;
|
|
100
|
+
RemoveFromCart: string;
|
|
101
|
+
ChangeQuantity: string;
|
|
97
102
|
};
|
|
98
103
|
};
|
|
99
104
|
export default _default;
|
package/dist/services/urls.js
CHANGED
|
@@ -42,6 +42,9 @@ exports.default = {
|
|
|
42
42
|
ProductCategory: '/live/{language}/ProductCategory/v1/{id}',
|
|
43
43
|
CategoryTree: '/live/{language}/ProductCategory/v1/CategoryTree',
|
|
44
44
|
},
|
|
45
|
+
ProductFavorite: '/live/{language}/ProductFavorite/v1',
|
|
46
|
+
ProductPriceAlert: '/live/{language}/Alert/v1/ProductPriceAlerts',
|
|
47
|
+
ProductStockAlert: '/live/{language}/Alert/v1/ProductStockAlerts',
|
|
45
48
|
ProductType: {
|
|
46
49
|
All: '/live/{language}/ProductType/v1/All',
|
|
47
50
|
ProductType: '/live/{language}/ProductType/v1/{id}',
|
|
@@ -100,6 +103,8 @@ exports.default = {
|
|
|
100
103
|
AddToCart: '/{language}/ShoppingCartGateway/v1/AddToCart',
|
|
101
104
|
GetCartItemCount: '/{language}/ShoppingCartGateway/v1/GetCartItemCount',
|
|
102
105
|
GetCart: '/{language}/ShoppingCartGateway/v1/GetCart',
|
|
106
|
+
RemoveFromCart: '/{language}/ShoppingCartGateway/v1/RemoveFromCart',
|
|
107
|
+
ChangeQuantity: '/{language}/ShoppingCartGateway/v1/ChangeQuantity',
|
|
103
108
|
},
|
|
104
109
|
};
|
|
105
110
|
const getUrl = ({ isClient = false, language = process.env.DEFAULT_LANGUAGE || "tr", methodName, serviceUrl, prefix, id = '' }) => {
|