@gofynd/fdk-client-javascript 1.4.2-beta.7 → 1.4.4

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.
Files changed (254) hide show
  1. package/README.md +1 -10
  2. package/application.d.ts +3 -3
  3. package/common.d.ts +3 -3
  4. package/index.d.ts +15 -15
  5. package/package.json +5 -3
  6. package/partner.d.ts +3 -3
  7. package/platform.d.ts +3 -3
  8. package/public.d.ts +2 -2
  9. package/sdk/application/ApplicationAPIClient.d.ts +1 -1
  10. package/sdk/application/ApplicationAPIClient.js +0 -1
  11. package/sdk/application/ApplicationClient.d.ts +17 -17
  12. package/sdk/application/ApplicationConfig.d.ts +3 -3
  13. package/sdk/application/Cart/CartApplicationClient.d.ts +58 -58
  14. package/sdk/application/Cart/CartApplicationClient.js +56 -56
  15. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +72 -72
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +69 -69
  18. package/sdk/application/Common/CommonApplicationClient.d.ts +6 -6
  19. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  20. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +8 -8
  21. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
  22. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  23. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -34
  24. package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -32
  25. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
  26. package/sdk/application/Content/ContentApplicationClient.d.ts +48 -48
  27. package/sdk/application/Content/ContentApplicationClient.js +45 -45
  28. package/sdk/application/Content/ContentApplicationModel.d.ts +18 -18
  29. package/sdk/application/Content/ContentApplicationModel.js +26 -26
  30. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +7 -7
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.js +15 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  33. package/sdk/application/Lead/LeadApplicationClient.d.ts +12 -12
  34. package/sdk/application/Lead/LeadApplicationClient.js +10 -10
  35. package/sdk/application/Lead/LeadApplicationModel.d.ts +64 -77
  36. package/sdk/application/Lead/LeadApplicationModel.js +42 -52
  37. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
  38. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +24 -24
  39. package/sdk/application/Logistic/LogisticApplicationClient.js +22 -22
  40. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
  41. package/sdk/application/Order/OrderApplicationClient.d.ts +19 -30
  42. package/sdk/application/Order/OrderApplicationClient.js +17 -97
  43. package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -16
  44. package/sdk/application/Order/OrderApplicationValidator.js +0 -13
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -91
  46. package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -2
  48. package/sdk/application/Payment/PaymentApplicationModel.js +4 -2
  49. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +6 -6
  50. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  51. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +29 -29
  52. package/sdk/application/PosCart/PosCartApplicationClient.js +27 -27
  53. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +1 -1
  54. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +9 -9
  55. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  56. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
  57. package/sdk/application/Share/ShareApplicationClient.d.ts +9 -9
  58. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  59. package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
  60. package/sdk/application/Share/ShareApplicationModel.js +2 -0
  61. package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
  62. package/sdk/application/Theme/ThemeApplicationClient.d.ts +10 -10
  63. package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
  64. package/sdk/application/Theme/ThemeApplicationModel.d.ts +25 -32
  65. package/sdk/application/Theme/ThemeApplicationModel.js +30 -40
  66. package/sdk/application/User/UserApplicationClient.d.ts +76 -76
  67. package/sdk/application/User/UserApplicationClient.js +74 -74
  68. package/sdk/application/User/UserApplicationModel.d.ts +44 -13
  69. package/sdk/application/User/UserApplicationModel.js +17 -13
  70. package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
  71. package/sdk/application/index.d.ts +18 -18
  72. package/sdk/common/AxiosHelper.d.ts +1 -1
  73. package/sdk/common/AxiosHelper.js +38 -17
  74. package/sdk/common/Clickstream.js +22 -16
  75. package/sdk/common/curlHelper.js +1 -3
  76. package/sdk/common/utils.d.ts +15 -0
  77. package/sdk/common/utils.js +30 -0
  78. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +3 -3
  79. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +2 -2
  80. package/sdk/partner/Lead/LeadPartnerClient.d.ts +3 -3
  81. package/sdk/partner/Lead/LeadPartnerClient.js +1 -1
  82. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +5 -5
  83. package/sdk/partner/Logistics/LogisticsPartnerClient.js +4 -4
  84. package/sdk/partner/OAuthClient.d.ts +4 -4
  85. package/sdk/partner/PartnerAPIClient.d.ts +1 -1
  86. package/sdk/partner/PartnerAPIClient.js +0 -1
  87. package/sdk/partner/PartnerClient.d.ts +6 -6
  88. package/sdk/partner/PartnerConfig.d.ts +4 -4
  89. package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -20
  90. package/sdk/partner/Theme/ThemePartnerClient.js +19 -19
  91. package/sdk/partner/Theme/ThemePartnerModel.d.ts +25 -32
  92. package/sdk/partner/Theme/ThemePartnerModel.js +30 -40
  93. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +3 -3
  94. package/sdk/partner/Webhook/WebhookPartnerClient.js +2 -2
  95. package/sdk/partner/index.d.ts +7 -7
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
  97. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +6 -6
  98. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  99. package/sdk/platform/Billing/BillingPlatformClient.d.ts +25 -25
  100. package/sdk/platform/Billing/BillingPlatformClient.js +23 -23
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +115 -115
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.js +113 -113
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
  105. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +147 -146
  106. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +146 -145
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
  108. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +156 -156
  109. package/sdk/platform/Catalog/CatalogPlatformClient.js +153 -153
  110. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +65 -28
  111. package/sdk/platform/Catalog/CatalogPlatformModel.js +68 -36
  112. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1 -1
  113. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -5
  114. package/sdk/platform/Common/CommonPlatformClient.js +3 -3
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +133 -133
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +131 -131
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +4 -4
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -2
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +12 -0
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +12 -0
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +28 -28
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +25 -25
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +1 -1
  127. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -52
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +50 -50
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
  130. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +31 -31
  131. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +29 -29
  132. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
  133. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +128 -128
  134. package/sdk/platform/Content/ContentPlatformApplicationClient.js +131 -131
  135. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +5 -5
  136. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
  137. package/sdk/platform/Content/ContentPlatformClient.d.ts +33 -33
  138. package/sdk/platform/Content/ContentPlatformClient.js +37 -37
  139. package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -18
  140. package/sdk/platform/Content/ContentPlatformModel.js +26 -26
  141. package/sdk/platform/Content/ContentPlatformValidator.d.ts +5 -5
  142. package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
  143. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +24 -24
  144. package/sdk/platform/Discount/DiscountPlatformClient.js +22 -22
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -23
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +32 -25
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +15 -15
  150. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -19
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +12 -1
  152. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +16 -2
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +30 -30
  155. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  156. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +19 -19
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +17 -17
  159. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
  160. package/sdk/platform/Lead/LeadPlatformClient.d.ts +20 -20
  161. package/sdk/platform/Lead/LeadPlatformClient.js +18 -18
  162. package/sdk/platform/Lead/LeadPlatformModel.d.ts +62 -77
  163. package/sdk/platform/Lead/LeadPlatformModel.js +40 -52
  164. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
  165. package/sdk/platform/OAuthClient.d.ts +3 -3
  166. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +12 -12
  167. package/sdk/platform/Order/OrderPlatformApplicationClient.js +10 -10
  168. package/sdk/platform/Order/OrderPlatformClient.d.ts +111 -122
  169. package/sdk/platform/Order/OrderPlatformClient.js +109 -204
  170. package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -2
  171. package/sdk/platform/Order/OrderPlatformModel.js +12 -2
  172. package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -34
  173. package/sdk/platform/Order/OrderPlatformValidator.js +0 -20
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -6
  175. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
  177. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +97 -97
  178. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +95 -95
  179. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
  180. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +13 -13
  181. package/sdk/platform/Payment/PaymentPlatformClient.js +11 -11
  182. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +7 -0
  183. package/sdk/platform/Payment/PaymentPlatformModel.js +3 -0
  184. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
  185. package/sdk/platform/PlatformAPIClient.d.ts +1 -1
  186. package/sdk/platform/PlatformAPIClient.js +0 -1
  187. package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
  188. package/sdk/platform/PlatformClient.d.ts +19 -21
  189. package/sdk/platform/PlatformClient.js +0 -4
  190. package/sdk/platform/PlatformConfig.d.ts +4 -4
  191. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +14 -14
  192. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  193. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +42 -42
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +40 -40
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +55 -54
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +53 -52
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2 -2
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -2
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
  202. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  203. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  204. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -0
  206. package/sdk/platform/Share/SharePlatformModel.js +4 -0
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +42 -112
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +40 -597
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +2 -101
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -92
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -8
  212. package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +25 -32
  214. package/sdk/platform/Theme/ThemePlatformModel.js +30 -40
  215. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
  216. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +37 -37
  217. package/sdk/platform/User/UserPlatformApplicationClient.js +35 -35
  218. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
  219. package/sdk/platform/User/UserPlatformModel.d.ts +48 -13
  220. package/sdk/platform/User/UserPlatformModel.js +21 -13
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +20 -19
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +18 -17
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
  226. package/sdk/platform/index.d.ts +24 -25
  227. package/sdk/platform/index.js +0 -2
  228. package/sdk/public/Billing/BillingPublicClient.d.ts +3 -3
  229. package/sdk/public/Billing/BillingPublicClient.js +4 -4
  230. package/sdk/public/Billing/BillingPublicValidator.d.ts +2 -2
  231. package/sdk/public/Billing/BillingPublicValidator.js +2 -2
  232. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -3
  233. package/sdk/public/Configuration/ConfigurationPublicClient.js +1 -1
  234. package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
  235. package/sdk/public/Content/ContentPublicValidator.d.ts +2 -2
  236. package/sdk/public/Content/ContentPublicValidator.js +3 -3
  237. package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
  238. package/sdk/public/Inventory/InventoryPublicModel.d.ts +8 -8
  239. package/sdk/public/Inventory/InventoryPublicModel.js +8 -8
  240. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +3 -3
  242. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  243. package/sdk/public/PublicAPIClient.d.ts +1 -1
  244. package/sdk/public/PublicClient.d.ts +7 -7
  245. package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
  246. package/sdk/public/Webhook/WebhookPublicClient.js +2 -2
  247. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
  248. package/sdk/public/index.d.ts +8 -8
  249. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +0 -152
  250. package/sdk/platform/Inventory/InventoryPlatformClient.js +0 -1017
  251. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +0 -1355
  252. package/sdk/platform/Inventory/InventoryPlatformModel.js +0 -1544
  253. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +0 -171
  254. package/sdk/platform/Inventory/InventoryPlatformValidator.js +0 -159
@@ -1,20 +1,20 @@
1
- export const ApplicationConfig: typeof import("./ApplicationConfig");
2
- export const ApplicationClient: typeof import("./ApplicationClient");
1
+ export const ApplicationConfig: typeof import("sdk/output/javascript/code/sdk/application/ApplicationConfig");
2
+ export const ApplicationClient: typeof import("sdk/output/javascript/code/sdk/application/ApplicationClient");
3
3
  export namespace ApplicationModel {
4
- const CartApplicationModel: typeof import("./Cart/CartApplicationModel");
5
- const CatalogApplicationModel: typeof import("./Catalog/CatalogApplicationModel");
6
- const CommonApplicationModel: typeof import("./Common/CommonApplicationModel");
7
- const CommunicationApplicationModel: typeof import("./Communication/CommunicationApplicationModel");
8
- const ConfigurationApplicationModel: typeof import("./Configuration/ConfigurationApplicationModel");
9
- const ContentApplicationModel: typeof import("./Content/ContentApplicationModel");
10
- const FileStorageApplicationModel: typeof import("./FileStorage/FileStorageApplicationModel");
11
- const LeadApplicationModel: typeof import("./Lead/LeadApplicationModel");
12
- const LogisticApplicationModel: typeof import("./Logistic/LogisticApplicationModel");
13
- const OrderApplicationModel: typeof import("./Order/OrderApplicationModel");
14
- const PaymentApplicationModel: typeof import("./Payment/PaymentApplicationModel");
15
- const PosCartApplicationModel: typeof import("./PosCart/PosCartApplicationModel");
16
- const RewardsApplicationModel: typeof import("./Rewards/RewardsApplicationModel");
17
- const ShareApplicationModel: typeof import("./Share/ShareApplicationModel");
18
- const ThemeApplicationModel: typeof import("./Theme/ThemeApplicationModel");
19
- const UserApplicationModel: typeof import("./User/UserApplicationModel");
4
+ const CartApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel");
5
+ const CatalogApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationModel");
6
+ const CommonApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Common/CommonApplicationModel");
7
+ const CommunicationApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel");
8
+ const ConfigurationApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel");
9
+ const ContentApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Content/ContentApplicationModel");
10
+ const FileStorageApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel");
11
+ const LeadApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel");
12
+ const LogisticApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel");
13
+ const OrderApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel");
14
+ const PaymentApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationModel");
15
+ const PosCartApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationModel");
16
+ const RewardsApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationModel");
17
+ const ShareApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Share/ShareApplicationModel");
18
+ const ThemeApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationModel");
19
+ const UserApplicationModel: typeof import("sdk/output/javascript/code/sdk/application/User/UserApplicationModel");
20
20
  }
@@ -1 +1 @@
1
- export const fdkAxios: any;
1
+ export const fdkAxios: import("axios").AxiosInstance;
@@ -1,13 +1,11 @@
1
- const combineURLs = require("axios/lib/helpers/combineURLs");
2
- const isAbsoluteURL = require("axios/lib/helpers/isAbsoluteURL");
3
- const axios = require("axios");
1
+ const { isAbsoluteURL, combineURLs } = require("./utils");
2
+ const axios = require("axios").default;
4
3
  const querystring = require("query-string");
5
4
  const { sign } = require("@gofynd/fp-signature");
6
5
  const { FDKServerResponseError } = require("./FDKError");
7
6
  const { log, Logger, getLoggerLevel } = require("./Logger");
8
7
  const createCurl = require("./curlHelper");
9
8
  const { version } = require("./../../package.json");
10
- axios.defaults.withCredentials = true;
11
9
 
12
10
  function getTransformer(config) {
13
11
  const { transformRequest } = config;
@@ -82,6 +80,7 @@ function requestInterceptorFn() {
82
80
  };
83
81
  }
84
82
  const fdkAxios = axios.create({
83
+ withCredentials: true,
85
84
  paramsSerializer: (params) => {
86
85
  return querystring.stringify(params);
87
86
  },
@@ -132,33 +131,55 @@ fdkAxios.interceptors.response.use(
132
131
  function (error) {
133
132
  if (error.response) {
134
133
  // Request made and server responded
134
+ const responseData = error.response.data;
135
135
  Logger({
136
136
  level: "ERROR",
137
- message: error.response.data || error.message,
138
- stack: error.response.data.stack || error.stack,
137
+ message:
138
+ responseData && responseData.message
139
+ ? responseData.message
140
+ : error.message,
141
+ stack:
142
+ responseData && responseData.stack ? responseData.stack : error.stack,
139
143
  request: {
140
- method: error.config.method,
141
- url: error.config.url,
142
- headers: error.config.headers,
144
+ method:
145
+ error.config && error.config.url ? error.config.url : undefined,
146
+ url:
147
+ error.config && error.config.method
148
+ ? error.config.method
149
+ : undefined,
150
+ headers:
151
+ error.config && error.config.headers
152
+ ? error.config.headers
153
+ : undefined,
143
154
  },
144
155
  });
145
156
  throw new FDKServerResponseError(
146
- error.response.data.message || error.message,
147
- error.response.data.stack || error.stack,
157
+ responseData && responseData.message
158
+ ? responseData.message
159
+ : error.message,
160
+ "",
161
+ // Not Sending Stack for response error
148
162
  error.response.statusText,
149
163
  error.response.status,
150
- error.response.data
164
+ responseData
151
165
  );
152
166
  } else if (error.request) {
153
167
  // The request was made but no error.response was received
154
168
  Logger({
155
169
  level: "ERROR",
156
- message: error.data || error.message,
157
- stack: error.data.stack || error.stack,
170
+ message: error.message,
171
+ stack: error.stack,
158
172
  request: {
159
- method: error.config.method,
160
- url: error.config.url,
161
- headers: error.config.headers,
173
+ method:
174
+ error.config && error.config.url ? error.config.url : undefined,
175
+ url:
176
+ error.config && error.config.method
177
+ ? error.config.method
178
+ : undefined,
179
+ headers:
180
+ error.config && error.config.headers
181
+ ? error.config.headers
182
+ : undefined,
162
183
  },
163
184
  });
164
185
  throw new FDKServerResponseError(
@@ -22,7 +22,10 @@ if (typeof window != "undefined") {
22
22
  Logger({ level: "DEBUG", message: eventData });
23
23
  Clickstream.identify(eventData["user_id"], {
24
24
  event_type: "identity",
25
- ...eventData,
25
+ email: sg(() => eventData["email"]),
26
+ phone: sg(() => eventData["phone_number"]),
27
+ login_value: sg(() => eventData["login_value"]),
28
+ method: sg(() => eventData["method"]),
26
29
  }).catch((err) => {
27
30
  Logger({ level: "ERROR", message: err });
28
31
  });
@@ -32,7 +35,9 @@ if (typeof window != "undefined") {
32
35
  Logger({ level: "DEBUG", message: eventData });
33
36
  Clickstream.identify(eventData["used_id"], {
34
37
  event_type: "identity",
35
- ...eventData,
38
+ email: sg(() => eventData["email"]),
39
+ phone: sg(() => eventData["phone_number"]),
40
+ method: sg(() => eventData["method"]),
36
41
  }).catch((err) => {
37
42
  Logger({ level: "ERROR", message: err });
38
43
  });
@@ -40,12 +45,11 @@ if (typeof window != "undefined") {
40
45
 
41
46
  window.FPI.event.on("user.logout", (eventData) => {
42
47
  Logger({ level: "DEBUG", message: eventData });
43
- Clickstream.sendEvent("user_logout", {
44
- event_type: "identity",
45
- ...eventData,
46
- }).catch((err) => {
47
- Logger({ level: "ERROR", message: err });
48
- });
48
+ Clickstream.sendEvent("user_logout", { event_type: "identity" }).catch(
49
+ (err) => {
50
+ Logger({ level: "ERROR", message: err });
51
+ }
52
+ );
49
53
  Clickstream.reset().catch((err) => {
50
54
  Logger({ level: "ERROR", message: err });
51
55
  });
@@ -56,7 +60,7 @@ if (typeof window != "undefined") {
56
60
  Clickstream.sendEvent("product_wishlist_add", {
57
61
  wishlist_name: "TODO",
58
62
  wishlist_id: "TODO",
59
- event_type: "click",
63
+ event_type: "engagement",
60
64
  product_id: sg(() => eventData.item["uid"]),
61
65
  brand: sg(() => eventData.item.brand["name"]),
62
66
  l3_category: sg(() => eventData.item.categories[0]["name"]),
@@ -80,7 +84,7 @@ if (typeof window != "undefined") {
80
84
  Clickstream.sendEvent("product_wishlist_remove", {
81
85
  wishlist_name: "TODO",
82
86
  wishlist_id: "TODO",
83
- event_type: "click",
87
+ event_type: "engagement",
84
88
  product_id: sg(() => eventData.item["uid"]),
85
89
  brand: sg(() => eventData.item.brand["name"]),
86
90
  l3_category: sg(() => eventData.item.categories[0]["name"]),
@@ -103,8 +107,9 @@ if (typeof window != "undefined") {
103
107
  Logger({ level: "DEBUG", message: eventData });
104
108
  Clickstream.sendEvent("add_to_cart", {
105
109
  cart_id: eventData.cart_id,
106
- event_type: "click",
110
+ event_type: "engagement",
107
111
  product_id: sg(() => eventData.products[0]["uid"]),
112
+ article_id: sg(() => eventData.products[0]["article"]["uid"]),
108
113
  brand: sg(() => eventData.products[0]["brand"]["name"]),
109
114
  l3_category: sg(() => eventData.products[0]["category"]["name"]),
110
115
  l1_category: "TODO",
@@ -127,7 +132,7 @@ if (typeof window != "undefined") {
127
132
  Logger({ level: "DEBUG", message: eventData });
128
133
  Clickstream.sendEvent("remove_from_cart", {
129
134
  cart_id: eventData.cart_id,
130
- event_type: "click",
135
+ event_type: "engagement",
131
136
  product_id: sg(() => eventData.products[0]["uid"]),
132
137
  brand: sg(() => eventData.products[0]["brand"]["name"]),
133
138
  l3_category: sg(() => eventData.products[0]["category"]["name"]),
@@ -150,7 +155,7 @@ if (typeof window != "undefined") {
150
155
  window.FPI.event.on("order.processed", (eventData) => {
151
156
  Logger({ level: "DEBUG", message: eventData });
152
157
  Clickstream.sendEvent("order_complete", {
153
- event_type: "click",
158
+ event_type: "conversion",
154
159
  ...eventData,
155
160
  })
156
161
  .then((resp) => {
@@ -164,7 +169,7 @@ if (typeof window != "undefined") {
164
169
  window.FPI.event.on("refund.success", (eventData) => {
165
170
  Logger({ level: "DEBUG", message: eventData });
166
171
  Clickstream.sendEvent("order_refunded", {
167
- event_type: "click",
172
+ event_type: "conversion",
168
173
  ...eventData,
169
174
  })
170
175
  .then((resp) => {
@@ -178,7 +183,7 @@ if (typeof window != "undefined") {
178
183
  window.FPI.event.on("order.checkout", (eventData) => {
179
184
  Logger({ level: "DEBUG", message: eventData });
180
185
  Clickstream.sendEvent("order_checkout", {
181
- event_type: "click",
186
+ event_type: "conversion",
182
187
  cart_id: eventData.cart_id,
183
188
  cart_total: sg(() => eventData.breakup_values_raw["mrp_total"]),
184
189
  items: sg(() => eventData.products.lenght),
@@ -195,6 +200,7 @@ if (typeof window != "undefined") {
195
200
  price: sg(() => p.price["marked"]),
196
201
  value: sg(() => p.price["effective"]),
197
202
  currency: sg(() => p.price["currency_code"]),
203
+ article_id: sg(() => p.article["uid"]),
198
204
  };
199
205
  }),
200
206
  })
@@ -211,7 +217,7 @@ if (typeof window != "undefined") {
211
217
  Clickstream.sendEvent("product_view", {
212
218
  event_type: "click",
213
219
  product_id: sg(() => eventData.product["uid"]),
214
- currency: sg(() => eventData.product.price["currency"]),
220
+ currency: sg(() => eventData.product.price["currency_code"]),
215
221
  brand: sg(() => eventData.product.brand["name"]),
216
222
  l3_category: sg(() => eventData.product.l3_category),
217
223
  mrp: sg(() => eventData.product.price.max),
@@ -1,7 +1,5 @@
1
1
  const qs = require("query-string");
2
- const combineURLs = require("axios/lib/helpers/combineURLs");
3
- const isAbsoluteURL = require("axios/lib/helpers/isAbsoluteURL");
4
-
2
+ const { combineURLs, isAbsoluteURL } = require("./utils");
5
3
  let reqConfig;
6
4
 
7
5
  // generate url with query params
@@ -15,3 +15,18 @@ export namespace NAV_TYPE {
15
15
  const PAGE: string;
16
16
  const POPUP: string;
17
17
  }
18
+ /**
19
+ * Creates a new URL by combining the specified URLs
20
+ *
21
+ * @param {string} baseURL The base URL
22
+ * @param {string} relativeURL The relative URL
23
+ * @returns {string} The combined URL
24
+ */
25
+ export function combineURLs(baseURL: string, relativeURL: string): string;
26
+ /**
27
+ * Determines whether the specified URL is absolute
28
+ *
29
+ * @param {string} url The URL to test
30
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
31
+ */
32
+ export function isAbsoluteURL(url: string): boolean;
@@ -179,6 +179,34 @@ const convertStringToBase64 = (string) => {
179
179
  }
180
180
  };
181
181
 
182
+ // copied from axios library
183
+
184
+ /**
185
+ * Determines whether the specified URL is absolute
186
+ *
187
+ * @param {string} url The URL to test
188
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
189
+ */
190
+ function isAbsoluteURL(url) {
191
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
192
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
193
+ // by any combination of letters, digits, plus, period, or hyphen.
194
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
195
+ }
196
+
197
+ /**
198
+ * Creates a new URL by combining the specified URLs
199
+ *
200
+ * @param {string} baseURL The base URL
201
+ * @param {string} relativeURL The relative URL
202
+ * @returns {string} The combined URL
203
+ */
204
+ function combineURLs(baseURL, relativeURL) {
205
+ return relativeURL
206
+ ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "")
207
+ : baseURL;
208
+ }
209
+
182
210
  module.exports = {
183
211
  transformRequestOptions,
184
212
  getParamsFromItem,
@@ -191,4 +219,6 @@ module.exports = {
191
219
  isBrowser,
192
220
  isNode,
193
221
  NAV_TYPE,
222
+ combineURLs,
223
+ isAbsoluteURL,
194
224
  };
@@ -8,7 +8,7 @@ declare class FileStorage {
8
8
  * @param {import("../PartnerAPIClient").Options} - Options
9
9
  * @returns {Promise<FileStoragePartnerModel.StartResponse>} - Success response
10
10
  * @name startUpload
11
- * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob.
11
+ * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob
12
12
  * @description: Uploads an arbitrarily sized buffer or blob.
13
13
  *
14
14
  * It has three Major Steps:
@@ -36,7 +36,7 @@ declare class FileStorage {
36
36
  * @param {import("../PartnerAPIClient").Options} - Options
37
37
  * @returns {Promise<FileStoragePartnerModel.CompleteResponse>} - Success response
38
38
  * @name completeUpload
39
- * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process.
39
+ * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process
40
40
  * @description: Uploads an arbitrarily sized buffer or blob.
41
41
  *
42
42
  * It has three Major Steps:
@@ -69,4 +69,4 @@ declare class FileStorage {
69
69
  */
70
70
  browse({ namespace, applicationId, companyId, page, limit, requestHeaders }?: FileStoragePartnerValidator.BrowseParam, { responseHeaders }?: object): Promise<any>;
71
71
  }
72
- import FileStoragePartnerModel = require("./FileStoragePartnerModel");
72
+ import FileStoragePartnerModel = require("sdk/output/javascript/code/sdk/partner/FileStorage/FileStoragePartnerModel");
@@ -20,7 +20,7 @@ class FileStorage {
20
20
  * @param {import("../PartnerAPIClient").Options} - Options
21
21
  * @returns {Promise<FileStoragePartnerModel.StartResponse>} - Success response
22
22
  * @name startUpload
23
- * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob.
23
+ * @summary: This operation initiates upload and returns storage link which is valid for 30 Minutes. You can use that storage link to make subsequent upload request with file buffer or blob
24
24
  * @description: Uploads an arbitrarily sized buffer or blob.
25
25
  *
26
26
  * It has three Major Steps:
@@ -118,7 +118,7 @@ class FileStorage {
118
118
  * @param {import("../PartnerAPIClient").Options} - Options
119
119
  * @returns {Promise<FileStoragePartnerModel.CompleteResponse>} - Success response
120
120
  * @name completeUpload
121
- * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process.
121
+ * @summary: This will complete the upload process. After successfully uploading file, you can call this operation to complete the upload process
122
122
  * @description: Uploads an arbitrarily sized buffer or blob.
123
123
  *
124
124
  * It has three Major Steps:
@@ -116,10 +116,10 @@ declare class Lead {
116
116
  * @param {import("../PartnerAPIClient").Options} - Options
117
117
  * @returns {Promise<LeadPartnerModel.GeneralConfigResponse>} - Success response
118
118
  * @name getGeneralConfig
119
- * @summary: Get general support configuration.
119
+ * @summary: Get general support configuration
120
120
  * @description: Get general support configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/lead/getGeneralConfig/).
121
121
  */
122
122
  getGeneralConfig({ requestHeaders }?: LeadPartnerValidator.GetGeneralConfigParam, { responseHeaders }?: object): Promise<LeadPartnerModel.GeneralConfigResponse>;
123
123
  }
124
- import LeadPartnerModel = require("./LeadPartnerModel");
125
- import Paginator = require("../../common/Paginator");
124
+ import LeadPartnerModel = require("sdk/output/javascript/code/sdk/partner/Lead/LeadPartnerModel");
125
+ import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator");
@@ -715,7 +715,7 @@ class Lead {
715
715
  * @param {import("../PartnerAPIClient").Options} - Options
716
716
  * @returns {Promise<LeadPartnerModel.GeneralConfigResponse>} - Success response
717
717
  * @name getGeneralConfig
718
- * @summary: Get general support configuration.
718
+ * @summary: Get general support configuration
719
719
  * @description: Get general support configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/lead/getGeneralConfig/).
720
720
  */
721
721
  async getGeneralConfig(
@@ -90,7 +90,7 @@ declare class Logistics {
90
90
  * - Success response
91
91
  *
92
92
  * @name getCourierPartnerAccounts
93
- * @summary: Getting Courier Account list of a company.
93
+ * @summary: Getting Courier Account list of a company
94
94
  * @description: This API returns Courier Account of a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccounts/).
95
95
  */
96
96
  getCourierPartnerAccounts({ companyId, pageNo, pageSize, stage, paymentMode, transportType, requestHeaders, }?: LogisticsPartnerValidator.GetCourierPartnerAccountsParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CompanyCourierPartnerAccountListResponse>;
@@ -102,7 +102,7 @@ declare class Logistics {
102
102
  * @param {import("../PartnerAPIClient").Options} - Options
103
103
  * @returns {Promise<LogisticsPartnerModel.CourierAccountResponse>} - Success response
104
104
  * @name updateCourierPartnerAccount
105
- * @summary: Update Courier Account in database.
105
+ * @summary: Update Courier Account in database
106
106
  * @description: Updates Courier Account - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerAccount/).
107
107
  */
108
108
  updateCourierPartnerAccount({ companyId, accountId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountResponse>;
@@ -112,7 +112,7 @@ declare class Logistics {
112
112
  * @param {import("../PartnerAPIClient").Options} - Options
113
113
  * @returns {Promise<LogisticsPartnerModel.CourierAccountResponse>} - Success response
114
114
  * @name getCourierPartnerAccount
115
- * @summary: Getting Courier Account of a company from database.
115
+ * @summary: Getting Courier Account of a company from database
116
116
  * @description: This API returns response DpAccount of a company from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccount/).
117
117
  */
118
118
  getCourierPartnerAccount({ companyId, accountId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountResponse>;
@@ -147,9 +147,9 @@ declare class Logistics {
147
147
  * @param {import("../PartnerAPIClient").Options} - Options
148
148
  * @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
149
149
  * @name getCountries
150
- * @summary: Get all countries and associated data.
150
+ * @summary: Get all countries and associated data
151
151
  * @description: Retrieve of all countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
152
152
  */
153
153
  getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.GetCountries>;
154
154
  }
155
- import LogisticsPartnerModel = require("./LogisticsPartnerModel");
155
+ import LogisticsPartnerModel = require("sdk/output/javascript/code/sdk/partner/Logistics/LogisticsPartnerModel");
@@ -676,7 +676,7 @@ class Logistics {
676
676
  * - Success response
677
677
  *
678
678
  * @name getCourierPartnerAccounts
679
- * @summary: Getting Courier Account list of a company.
679
+ * @summary: Getting Courier Account list of a company
680
680
  * @description: This API returns Courier Account of a company. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccounts/).
681
681
  */
682
682
  async getCourierPartnerAccounts(
@@ -780,7 +780,7 @@ class Logistics {
780
780
  * @param {import("../PartnerAPIClient").Options} - Options
781
781
  * @returns {Promise<LogisticsPartnerModel.CourierAccountResponse>} - Success response
782
782
  * @name updateCourierPartnerAccount
783
- * @summary: Update Courier Account in database.
783
+ * @summary: Update Courier Account in database
784
784
  * @description: Updates Courier Account - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerAccount/).
785
785
  */
786
786
  async updateCourierPartnerAccount(
@@ -863,7 +863,7 @@ class Logistics {
863
863
  * @param {import("../PartnerAPIClient").Options} - Options
864
864
  * @returns {Promise<LogisticsPartnerModel.CourierAccountResponse>} - Success response
865
865
  * @name getCourierPartnerAccount
866
- * @summary: Getting Courier Account of a company from database.
866
+ * @summary: Getting Courier Account of a company from database
867
867
  * @description: This API returns response DpAccount of a company from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccount/).
868
868
  */
869
869
  async getCourierPartnerAccount(
@@ -1109,7 +1109,7 @@ class Logistics {
1109
1109
  * @param {import("../PartnerAPIClient").Options} - Options
1110
1110
  * @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
1111
1111
  * @name getCountries
1112
- * @summary: Get all countries and associated data.
1112
+ * @summary: Get all countries and associated data
1113
1113
  * @description: Retrieve of all countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
1114
1114
  */
1115
1115
  async getCountries(
@@ -8,8 +8,8 @@ declare class OAuthClient extends BaseOAuthClient {
8
8
  grant_type: any;
9
9
  refresh_token: any;
10
10
  code: any;
11
- }): Promise<any>;
12
- getOfflineAccessToken(scopes: any, code: any): Promise<any>;
13
- getOfflineAccessTokenObj(scopes: any, code: any): Promise<any>;
11
+ }): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
12
+ getOfflineAccessToken(scopes: any, code: any): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
13
+ getOfflineAccessTokenObj(scopes: any, code: any): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
14
14
  }
15
- import BaseOAuthClient = require("../common/BaseOAuthClient");
15
+ import BaseOAuthClient = require("sdk/output/javascript/code/sdk/common/BaseOAuthClient");
@@ -13,7 +13,7 @@ declare class APIClient {
13
13
  * @param {object} xHeaders
14
14
  * @param {Options} options
15
15
  */
16
- static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: Options): Promise<any>;
16
+ static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: Options): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
17
17
  get(url: any, config: any): Promise<any>;
18
18
  }
19
19
  declare namespace APIClient {
@@ -36,7 +36,6 @@ class APIClient {
36
36
  },
37
37
  responseHeaders: options.responseHeaders,
38
38
  };
39
- rawRequest = JSON.parse(JSON.stringify(rawRequest));
40
39
 
41
40
  return fdkAxios.request(rawRequest);
42
41
  }
@@ -12,7 +12,7 @@ declare class PartnerClient {
12
12
  * partner client.
13
13
  */
14
14
  constructor(config: import("./PartnerConfig"));
15
- config: import("./PartnerConfig");
15
+ config: import("sdk/output/javascript/code/sdk/partner/PartnerConfig");
16
16
  fileStorage: FileStorage;
17
17
  lead: Lead;
18
18
  logistics: Logistics;
@@ -26,8 +26,8 @@ declare class PartnerClient {
26
26
  */
27
27
  setExtraHeaders(header: object): void;
28
28
  }
29
- import FileStorage = require("./FileStorage/FileStoragePartnerClient");
30
- import Lead = require("./Lead/LeadPartnerClient");
31
- import Logistics = require("./Logistics/LogisticsPartnerClient");
32
- import Theme = require("./Theme/ThemePartnerClient");
33
- import Webhook = require("./Webhook/WebhookPartnerClient");
29
+ import FileStorage = require("sdk/output/javascript/code/sdk/partner/FileStorage/FileStoragePartnerClient");
30
+ import Lead = require("sdk/output/javascript/code/sdk/partner/Lead/LeadPartnerClient");
31
+ import Logistics = require("sdk/output/javascript/code/sdk/partner/Logistics/LogisticsPartnerClient");
32
+ import Theme = require("sdk/output/javascript/code/sdk/partner/Theme/ThemePartnerClient");
33
+ import Webhook = require("sdk/output/javascript/code/sdk/partner/Webhook/WebhookPartnerClient");
@@ -33,7 +33,7 @@ declare class PartnerConfig {
33
33
  apiSecret: string;
34
34
  scope?: string;
35
35
  useAutoRenewTimer?: boolean;
36
- logLevel?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
36
+ logLevel?: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
37
37
  }, options?: {
38
38
  strictResponseCheck?: boolean;
39
39
  });
@@ -44,7 +44,7 @@ declare class PartnerConfig {
44
44
  scope: string;
45
45
  useAutoRenewTimer: boolean;
46
46
  oauthClient: OauthClient;
47
- logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
47
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
48
48
  extraHeaders: any[];
49
49
  options: {
50
50
  strictResponseCheck: boolean;
@@ -54,7 +54,7 @@ declare class PartnerConfig {
54
54
  *
55
55
  * @param {logLevelEnum} level - The log level to set.
56
56
  */
57
- setLogLevel(level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"): void;
57
+ setLogLevel(level: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR"): void;
58
58
  /**
59
59
  * Retrieves the access token from the OAuth client.
60
60
  *
@@ -63,4 +63,4 @@ declare class PartnerConfig {
63
63
  */
64
64
  getAccessToken(): Promise<string>;
65
65
  }
66
- import OauthClient = require("./OAuthClient");
66
+ import OauthClient = require("sdk/output/javascript/code/sdk/partner/OAuthClient");