tradly 1.0.83 → 1.0.84
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/Constants/PathConstant.js +4 -1
- package/Roots/App.js +37 -0
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@ export const USERS = "/v1/users";
|
|
|
26
26
|
export const DEVICES = "/v1/devices";
|
|
27
27
|
|
|
28
28
|
export const ADDRESS = "/v1/addresses";
|
|
29
|
+
export const SEARCHADDRESS = "/v1/addresses/search?key=";
|
|
29
30
|
export const PLACES_ADDRESS = "/v1/addresses/places_search";
|
|
30
31
|
export const PLACES_ADDRESS_DETAIL = "/v1/addresses/place_detail";
|
|
31
32
|
export const CURRENCY = "/v1/currencies";
|
|
@@ -58,7 +59,6 @@ export const TENANTSHIPPINGMETHOD = "/v1/tenants/shipping_methods";
|
|
|
58
59
|
export const SHIPPINGMETHOD = "/v1/shipping_methods";
|
|
59
60
|
|
|
60
61
|
export const S3SIGNEDURL = "/v1/utils/S3signedUploadURL";
|
|
61
|
-
export const SEARCHADDRESS = "/v1/addresses/search?key=";
|
|
62
62
|
|
|
63
63
|
export const HOME = "/products/v1/home";
|
|
64
64
|
export const ORDERS = "/products/v1/orders";
|
|
@@ -92,3 +92,6 @@ export const CLIENTTRANSLATION_GROUPS = "/v1/client_translations/groups";
|
|
|
92
92
|
export const CLIENTTRANSLATION_VALUES = "/v1/client_translations/values";
|
|
93
93
|
export const CLIENTTRANSLATION_VALUES_GROUP =
|
|
94
94
|
"/v1/client_translations/values_grouped";
|
|
95
|
+
|
|
96
|
+
export const CREATE_FEEDBACK = "/v1/utils/feedback";
|
|
97
|
+
export const FEEDBACK_CATEGORIES = "/v1/utils/feedback/categories";
|
package/Roots/App.js
CHANGED
|
@@ -54,6 +54,8 @@ import {
|
|
|
54
54
|
CLIENTTRANSLATION_VALUES_GROUP,
|
|
55
55
|
PLACES_ADDRESS,
|
|
56
56
|
PLACES_ADDRESS_DETAIL,
|
|
57
|
+
FEEDBACK_CATEGORIES,
|
|
58
|
+
CREATE_FEEDBACK,
|
|
57
59
|
} from "./../Constants/PathConstant.js";
|
|
58
60
|
import serialization from "../Helper/Serialization.js";
|
|
59
61
|
import { ImageConfig } from "../Helper/APIParam.js";
|
|
@@ -2005,6 +2007,41 @@ class App {
|
|
|
2005
2007
|
return error;
|
|
2006
2008
|
}
|
|
2007
2009
|
}
|
|
2010
|
+
|
|
2011
|
+
//MARK:- Feedback
|
|
2012
|
+
async getFeedbackCategories(param = { authKey, bodyParam }) {
|
|
2013
|
+
try {
|
|
2014
|
+
const [error, responseJson] = await network.networkCall({
|
|
2015
|
+
path: FEEDBACK_CATEGORIES,
|
|
2016
|
+
method: Method.GET,
|
|
2017
|
+
authKey: param.authKey,
|
|
2018
|
+
});
|
|
2019
|
+
if (error) {
|
|
2020
|
+
return error;
|
|
2021
|
+
} else {
|
|
2022
|
+
return responseJson;
|
|
2023
|
+
}
|
|
2024
|
+
} catch (error) {
|
|
2025
|
+
return error;
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
async createFeedback(param = { authKey, data }) {
|
|
2029
|
+
try {
|
|
2030
|
+
const [error, responseJson] = await network.networkCall({
|
|
2031
|
+
path: CREATE_FEEDBACK,
|
|
2032
|
+
method: Method.POST,
|
|
2033
|
+
authKey: param.authKey,
|
|
2034
|
+
param: param.data,
|
|
2035
|
+
});
|
|
2036
|
+
if (error) {
|
|
2037
|
+
return error;
|
|
2038
|
+
} else {
|
|
2039
|
+
return responseJson;
|
|
2040
|
+
}
|
|
2041
|
+
} catch (error) {
|
|
2042
|
+
return error;
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2008
2045
|
}
|
|
2009
2046
|
const app = new App();
|
|
2010
2047
|
export default app;
|