tradly 1.1.50 → 1.1.52
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/Roots/App.js +44 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -887,6 +887,28 @@ class App {
|
|
|
887
887
|
return error;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
+
|
|
891
|
+
async bulkLikeListings(param = { data, authKey }) {
|
|
892
|
+
let path = LISTINGS + `/likes/bulk`;
|
|
893
|
+
try {
|
|
894
|
+
const [error, responseJson] = await network.networkCall({
|
|
895
|
+
path: path,
|
|
896
|
+
method: Method.POST,
|
|
897
|
+
authKey: param.authKey,
|
|
898
|
+
currency: param.currency,
|
|
899
|
+
language: param.language,
|
|
900
|
+
param: param.data,
|
|
901
|
+
});
|
|
902
|
+
if (error) {
|
|
903
|
+
return error;
|
|
904
|
+
} else {
|
|
905
|
+
return responseJson;
|
|
906
|
+
}
|
|
907
|
+
} catch (error) {
|
|
908
|
+
return error;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
890
912
|
async getMyListingsLikes(param = { bodyParam, authKey }) {
|
|
891
913
|
let url =
|
|
892
914
|
param.bodyParam == undefined || param.bodyParam == ""
|
|
@@ -2396,6 +2418,28 @@ class App {
|
|
|
2396
2418
|
return error;
|
|
2397
2419
|
}
|
|
2398
2420
|
}
|
|
2421
|
+
async getSendCloudShipmentLabel(param = { authKey, bodyParam }) {
|
|
2422
|
+
let url =
|
|
2423
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
2424
|
+
? ""
|
|
2425
|
+
: `?${serialization(param.bodyParam)}`;
|
|
2426
|
+
try {
|
|
2427
|
+
const [error, responseJson] = await network.networkCall({
|
|
2428
|
+
path: `${SHIPMENTS}sendcloud/shipping_label${url}`,
|
|
2429
|
+
method: Method.GET,
|
|
2430
|
+
authKey: param.authKey,
|
|
2431
|
+
currency: param.currency,
|
|
2432
|
+
language: param.language,
|
|
2433
|
+
});
|
|
2434
|
+
if (error) {
|
|
2435
|
+
return error;
|
|
2436
|
+
} else {
|
|
2437
|
+
return responseJson;
|
|
2438
|
+
}
|
|
2439
|
+
} catch (error) {
|
|
2440
|
+
return error;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2399
2443
|
//MARK:- Currency
|
|
2400
2444
|
async getCurrency(param = { authKey }) {
|
|
2401
2445
|
try {
|