@gofynd/fdk-client-javascript 1.1.6 → 1.3.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.
Files changed (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -1,8 +1,8 @@
1
1
  const PlatformAPIClient = require("../PlatformAPIClient");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const Paginator = require("../../common/Paginator");
4
- const InventoryValidator = require("./InventoryPlatformValidator");
5
- const InventoryModel = require("./InventoryPlatformModel");
4
+ const InventoryPlatformValidator = require("./InventoryPlatformValidator");
5
+ const InventoryPlatformModel = require("./InventoryPlatformModel");
6
6
  const { Logger } = require("./../../common/Logger");
7
7
  const Joi = require("joi");
8
8
 
@@ -12,14 +12,20 @@ class Inventory {
12
12
  }
13
13
 
14
14
  /**
15
- * @param {Object} arg - Arg object.
16
- * @param {JobConfigDTO} arg.body
17
- * @returns {Promise<ResponseEnvelopeString>} - Success response
15
+ * @param {InventoryPlatformValidator.CreateJobParam} arg - Arg object
16
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
17
+ * @param {import("../PlatformAPIClient").Options} - Options
18
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeString>} -
19
+ * Success response
20
+ * @name createJob
18
21
  * @summary: Creates A New Job Config
19
- * @description: REST Endpoint that creates a new job config
22
+ * @description: REST Endpoint that creates a new job config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/createJob/).
20
23
  */
21
- async createJob({ body } = {}) {
22
- const { error } = InventoryValidator.createJob().validate(
24
+ async createJob(
25
+ { body, requestHeaders } = { requestHeaders: {} },
26
+ { responseHeaders } = { responseHeaders: false }
27
+ ) {
28
+ const { error } = InventoryPlatformValidator.createJob().validate(
23
29
  {
24
30
  body,
25
31
  },
@@ -30,7 +36,7 @@ class Inventory {
30
36
  }
31
37
 
32
38
  // Showing warrnings if extra unknown parameters are found
33
- const { error: warrning } = InventoryValidator.createJob().validate(
39
+ const { error: warrning } = InventoryPlatformValidator.createJob().validate(
34
40
  {
35
41
  body,
36
42
  },
@@ -39,9 +45,8 @@ class Inventory {
39
45
  if (warrning) {
40
46
  Logger({
41
47
  level: "WARN",
42
- message: "Parameter Validation warrnings for createJob",
48
+ message: `Parameter Validation warrnings for platform > Inventory > createJob \n ${warrning}`,
43
49
  });
44
- Logger({ level: "WARN", message: warrning });
45
50
  }
46
51
 
47
52
  const query_params = {};
@@ -54,12 +59,18 @@ class Inventory {
54
59
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
55
60
  query_params,
56
61
  body,
57
- xHeaders
62
+ { ...xHeaders, ...requestHeaders },
63
+ { responseHeaders }
58
64
  );
59
65
 
66
+ let responseData = response;
67
+ if (responseHeaders) {
68
+ responseData = response[0];
69
+ }
70
+
60
71
  const {
61
72
  error: res_error,
62
- } = InventoryModel.ResponseEnvelopeString().validate(response, {
73
+ } = InventoryPlatformModel.ResponseEnvelopeString().validate(responseData, {
63
74
  abortEarly: false,
64
75
  allowUnknown: false,
65
76
  });
@@ -67,23 +78,28 @@ class Inventory {
67
78
  if (res_error) {
68
79
  Logger({
69
80
  level: "WARN",
70
- message: "Response Validation Warnnings for createJob",
81
+ message: `Response Validation Warnnings for platform > Inventory > createJob \n ${res_error}`,
71
82
  });
72
- Logger({ level: "WARN", message: res_error });
73
83
  }
74
84
 
75
85
  return response;
76
86
  }
77
87
 
78
88
  /**
79
- * @param {Object} arg - Arg object.
80
- * @param {string} arg.integrationId - IntegrationId
81
- * @returns {Promise<ResponseEnvelopeString>} - Success response
89
+ * @param {InventoryPlatformValidator.DisableParam} arg - Arg object
90
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
91
+ * @param {import("../PlatformAPIClient").Options} - Options
92
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeString>} -
93
+ * Success response
94
+ * @name disable
82
95
  * @summary: Disable Job Config
83
- * @description: REST Endpoint that disables Inventory Job Config
96
+ * @description: REST Endpoint that disables Inventory Job Config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/disable/).
84
97
  */
85
- async disable({ integrationId } = {}) {
86
- const { error } = InventoryValidator.disable().validate(
98
+ async disable(
99
+ { integrationId, requestHeaders } = { requestHeaders: {} },
100
+ { responseHeaders } = { responseHeaders: false }
101
+ ) {
102
+ const { error } = InventoryPlatformValidator.disable().validate(
87
103
  {
88
104
  integrationId,
89
105
  },
@@ -94,7 +110,7 @@ class Inventory {
94
110
  }
95
111
 
96
112
  // Showing warrnings if extra unknown parameters are found
97
- const { error: warrning } = InventoryValidator.disable().validate(
113
+ const { error: warrning } = InventoryPlatformValidator.disable().validate(
98
114
  {
99
115
  integrationId,
100
116
  },
@@ -103,9 +119,8 @@ class Inventory {
103
119
  if (warrning) {
104
120
  Logger({
105
121
  level: "WARN",
106
- message: "Parameter Validation warrnings for disable",
122
+ message: `Parameter Validation warrnings for platform > Inventory > disable \n ${warrning}`,
107
123
  });
108
- Logger({ level: "WARN", message: warrning });
109
124
  }
110
125
 
111
126
  const query_params = {};
@@ -118,12 +133,18 @@ class Inventory {
118
133
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/disable/integration/${integrationId}`,
119
134
  query_params,
120
135
  undefined,
121
- xHeaders
136
+ { ...xHeaders, ...requestHeaders },
137
+ { responseHeaders }
122
138
  );
123
139
 
140
+ let responseData = response;
141
+ if (responseHeaders) {
142
+ responseData = response[0];
143
+ }
144
+
124
145
  const {
125
146
  error: res_error,
126
- } = InventoryModel.ResponseEnvelopeString().validate(response, {
147
+ } = InventoryPlatformModel.ResponseEnvelopeString().validate(responseData, {
127
148
  abortEarly: false,
128
149
  allowUnknown: false,
129
150
  });
@@ -131,23 +152,29 @@ class Inventory {
131
152
  if (res_error) {
132
153
  Logger({
133
154
  level: "WARN",
134
- message: "Response Validation Warnnings for disable",
155
+ message: `Response Validation Warnnings for platform > Inventory > disable \n ${res_error}`,
135
156
  });
136
- Logger({ level: "WARN", message: res_error });
137
157
  }
138
158
 
139
159
  return response;
140
160
  }
141
161
 
142
162
  /**
143
- * @param {Object} arg - Arg object.
144
- * @returns {Promise<ResponseEnvelopeListSlingshotConfigurationDetail>} -
145
- * Success response
163
+ * @param {InventoryPlatformValidator.GetConfigByCompanyParam} arg - Arg object
164
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
165
+ * @param {import("../PlatformAPIClient").Options} - Options
166
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeListSlingshotConfigurationDetail>}
167
+ * - Success response
168
+ *
169
+ * @name getConfigByCompany
146
170
  * @summary: Get Slingshot Configuration Of A Company
147
- * @description: REST Endpoint that returns all configuration detail of a company
171
+ * @description: REST Endpoint that returns all configuration detail of a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getConfigByCompany/).
148
172
  */
149
- async getConfigByCompany({} = {}) {
150
- const { error } = InventoryValidator.getConfigByCompany().validate(
173
+ async getConfigByCompany(
174
+ { requestHeaders } = { requestHeaders: {} },
175
+ { responseHeaders } = { responseHeaders: false }
176
+ ) {
177
+ const { error } = InventoryPlatformValidator.getConfigByCompany().validate(
151
178
  {},
152
179
  { abortEarly: false, allowUnknown: true }
153
180
  );
@@ -158,16 +185,15 @@ class Inventory {
158
185
  // Showing warrnings if extra unknown parameters are found
159
186
  const {
160
187
  error: warrning,
161
- } = InventoryValidator.getConfigByCompany().validate(
188
+ } = InventoryPlatformValidator.getConfigByCompany().validate(
162
189
  {},
163
190
  { abortEarly: false, allowUnknown: false }
164
191
  );
165
192
  if (warrning) {
166
193
  Logger({
167
194
  level: "WARN",
168
- message: "Parameter Validation warrnings for getConfigByCompany",
195
+ message: `Parameter Validation warrnings for platform > Inventory > getConfigByCompany \n ${warrning}`,
169
196
  });
170
- Logger({ level: "WARN", message: warrning });
171
197
  }
172
198
 
173
199
  const query_params = {};
@@ -180,36 +206,48 @@ class Inventory {
180
206
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/slingshot`,
181
207
  query_params,
182
208
  undefined,
183
- xHeaders
209
+ { ...xHeaders, ...requestHeaders },
210
+ { responseHeaders }
184
211
  );
185
212
 
213
+ let responseData = response;
214
+ if (responseHeaders) {
215
+ responseData = response[0];
216
+ }
217
+
186
218
  const {
187
219
  error: res_error,
188
- } = InventoryModel.ResponseEnvelopeListSlingshotConfigurationDetail().validate(
189
- response,
220
+ } = InventoryPlatformModel.ResponseEnvelopeListSlingshotConfigurationDetail().validate(
221
+ responseData,
190
222
  { abortEarly: false, allowUnknown: false }
191
223
  );
192
224
 
193
225
  if (res_error) {
194
226
  Logger({
195
227
  level: "WARN",
196
- message: "Response Validation Warnnings for getConfigByCompany",
228
+ message: `Response Validation Warnnings for platform > Inventory > getConfigByCompany \n ${res_error}`,
197
229
  });
198
- Logger({ level: "WARN", message: res_error });
199
230
  }
200
231
 
201
232
  return response;
202
233
  }
203
234
 
204
235
  /**
205
- * @param {Object} arg - Arg object.
206
- * @param {string} arg.code - Job Code
207
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
236
+ * @param {InventoryPlatformValidator.GetJobByCodeParam} arg - Arg object
237
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
238
+ * @param {import("../PlatformAPIClient").Options} - Options
239
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeJobConfigDTO>}
240
+ * - Success response
241
+ *
242
+ * @name getJobByCode
208
243
  * @summary: Get Job Config By Code
209
- * @description: REST Endpoint that returns job config by code
244
+ * @description: REST Endpoint that returns job config by code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobByCode/).
210
245
  */
211
- async getJobByCode({ code } = {}) {
212
- const { error } = InventoryValidator.getJobByCode().validate(
246
+ async getJobByCode(
247
+ { code, requestHeaders } = { requestHeaders: {} },
248
+ { responseHeaders } = { responseHeaders: false }
249
+ ) {
250
+ const { error } = InventoryPlatformValidator.getJobByCode().validate(
213
251
  {
214
252
  code,
215
253
  },
@@ -220,7 +258,9 @@ class Inventory {
220
258
  }
221
259
 
222
260
  // Showing warrnings if extra unknown parameters are found
223
- const { error: warrning } = InventoryValidator.getJobByCode().validate(
261
+ const {
262
+ error: warrning,
263
+ } = InventoryPlatformValidator.getJobByCode().validate(
224
264
  {
225
265
  code,
226
266
  },
@@ -229,9 +269,8 @@ class Inventory {
229
269
  if (warrning) {
230
270
  Logger({
231
271
  level: "WARN",
232
- message: "Parameter Validation warrnings for getJobByCode",
272
+ message: `Parameter Validation warrnings for platform > Inventory > getJobByCode \n ${warrning}`,
233
273
  });
234
- Logger({ level: "WARN", message: warrning });
235
274
  }
236
275
 
237
276
  const query_params = {};
@@ -244,44 +283,54 @@ class Inventory {
244
283
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}`,
245
284
  query_params,
246
285
  undefined,
247
- xHeaders
286
+ { ...xHeaders, ...requestHeaders },
287
+ { responseHeaders }
248
288
  );
249
289
 
290
+ let responseData = response;
291
+ if (responseHeaders) {
292
+ responseData = response[0];
293
+ }
294
+
250
295
  const {
251
296
  error: res_error,
252
- } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
253
- abortEarly: false,
254
- allowUnknown: false,
255
- });
297
+ } = InventoryPlatformModel.ResponseEnvelopeJobConfigDTO().validate(
298
+ responseData,
299
+ { abortEarly: false, allowUnknown: false }
300
+ );
256
301
 
257
302
  if (res_error) {
258
303
  Logger({
259
304
  level: "WARN",
260
- message: "Response Validation Warnnings for getJobByCode",
305
+ message: `Response Validation Warnnings for platform > Inventory > getJobByCode \n ${res_error}`,
261
306
  });
262
- Logger({ level: "WARN", message: res_error });
263
307
  }
264
308
 
265
309
  return response;
266
310
  }
267
311
 
268
312
  /**
269
- * @param {Object} arg - Arg object.
270
- * @param {string} arg.integrationId - Integration Id
271
- * @param {number} [arg.pageNo] - Page Number
272
- * @param {number} [arg.pageSize] - Page Size
273
- * @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
313
+ * @param {InventoryPlatformValidator.GetJobByCompanyAndIntegrationParam} arg
314
+ * - Arg object
315
+ *
316
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
317
+ * @param {import("../PlatformAPIClient").Options} - Options
318
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeListJobConfigDTO>}
319
+ * - Success response
320
+ *
321
+ * @name getJobByCompanyAndIntegration
274
322
  * @summary: Get Job Configs By Company And Integration
275
- * @description: REST Endpoint that returns all job configs by company And integration
323
+ * @description: REST Endpoint that returns all job configs by company And integration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobByCompanyAndIntegration/).
276
324
  */
277
- async getJobByCompanyAndIntegration({
278
- integrationId,
279
- pageNo,
280
- pageSize,
281
- } = {}) {
325
+ async getJobByCompanyAndIntegration(
326
+ { integrationId, pageNo, pageSize, requestHeaders } = {
327
+ requestHeaders: {},
328
+ },
329
+ { responseHeaders } = { responseHeaders: false }
330
+ ) {
282
331
  const {
283
332
  error,
284
- } = InventoryValidator.getJobByCompanyAndIntegration().validate(
333
+ } = InventoryPlatformValidator.getJobByCompanyAndIntegration().validate(
285
334
  {
286
335
  integrationId,
287
336
  pageNo,
@@ -296,7 +345,7 @@ class Inventory {
296
345
  // Showing warrnings if extra unknown parameters are found
297
346
  const {
298
347
  error: warrning,
299
- } = InventoryValidator.getJobByCompanyAndIntegration().validate(
348
+ } = InventoryPlatformValidator.getJobByCompanyAndIntegration().validate(
300
349
  {
301
350
  integrationId,
302
351
  pageNo,
@@ -307,10 +356,8 @@ class Inventory {
307
356
  if (warrning) {
308
357
  Logger({
309
358
  level: "WARN",
310
- message:
311
- "Parameter Validation warrnings for getJobByCompanyAndIntegration",
359
+ message: `Parameter Validation warrnings for platform > Inventory > getJobByCompanyAndIntegration \n ${warrning}`,
312
360
  });
313
- Logger({ level: "WARN", message: warrning });
314
361
  }
315
362
 
316
363
  const query_params = {};
@@ -325,41 +372,50 @@ class Inventory {
325
372
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/integration/${integrationId}`,
326
373
  query_params,
327
374
  undefined,
328
- xHeaders
375
+ { ...xHeaders, ...requestHeaders },
376
+ { responseHeaders }
329
377
  );
330
378
 
379
+ let responseData = response;
380
+ if (responseHeaders) {
381
+ responseData = response[0];
382
+ }
383
+
331
384
  const {
332
385
  error: res_error,
333
- } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
334
- abortEarly: false,
335
- allowUnknown: false,
336
- });
386
+ } = InventoryPlatformModel.ResponseEnvelopeListJobConfigDTO().validate(
387
+ responseData,
388
+ { abortEarly: false, allowUnknown: false }
389
+ );
337
390
 
338
391
  if (res_error) {
339
392
  Logger({
340
393
  level: "WARN",
341
- message:
342
- "Response Validation Warnnings for getJobByCompanyAndIntegration",
394
+ message: `Response Validation Warnnings for platform > Inventory > getJobByCompanyAndIntegration \n ${res_error}`,
343
395
  });
344
- Logger({ level: "WARN", message: res_error });
345
396
  }
346
397
 
347
398
  return response;
348
399
  }
349
400
 
350
401
  /**
351
- * @param {Object} arg - Arg object.
352
- * @param {string} arg.code - Code
353
- * @param {number} [arg.pageNo] - Page Number
354
- * @param {number} [arg.pageSize] - Page Size
355
- * @param {string} [arg.status] - Status
356
- * @param {string} [arg.date] - From Date
357
- * @returns {Promise<ResponseEnvelopeJobMetricsDto>} - Success response
402
+ * @param {InventoryPlatformValidator.GetJobCodeMetricsParam} arg - Arg object
403
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
404
+ * @param {import("../PlatformAPIClient").Options} - Options
405
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeJobMetricsDto>}
406
+ * - Success response
407
+ *
408
+ * @name getJobCodeMetrics
358
409
  * @summary: Get Job Metrics
359
- * @description: REST Endpoint that returns Inventory Run History For A Job Code
410
+ * @description: REST Endpoint that returns Inventory Run History For A Job Code - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobCodeMetrics/).
360
411
  */
361
- async getJobCodeMetrics({ code, pageNo, pageSize, status, date } = {}) {
362
- const { error } = InventoryValidator.getJobCodeMetrics().validate(
412
+ async getJobCodeMetrics(
413
+ { code, pageNo, pageSize, status, date, requestHeaders } = {
414
+ requestHeaders: {},
415
+ },
416
+ { responseHeaders } = { responseHeaders: false }
417
+ ) {
418
+ const { error } = InventoryPlatformValidator.getJobCodeMetrics().validate(
363
419
  {
364
420
  code,
365
421
  pageNo,
@@ -374,7 +430,9 @@ class Inventory {
374
430
  }
375
431
 
376
432
  // Showing warrnings if extra unknown parameters are found
377
- const { error: warrning } = InventoryValidator.getJobCodeMetrics().validate(
433
+ const {
434
+ error: warrning,
435
+ } = InventoryPlatformValidator.getJobCodeMetrics().validate(
378
436
  {
379
437
  code,
380
438
  pageNo,
@@ -387,9 +445,8 @@ class Inventory {
387
445
  if (warrning) {
388
446
  Logger({
389
447
  level: "WARN",
390
- message: "Parameter Validation warrnings for getJobCodeMetrics",
448
+ message: `Parameter Validation warrnings for platform > Inventory > getJobCodeMetrics \n ${warrning}`,
391
449
  });
392
- Logger({ level: "WARN", message: warrning });
393
450
  }
394
451
 
395
452
  const query_params = {};
@@ -406,44 +463,54 @@ class Inventory {
406
463
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}/metrics`,
407
464
  query_params,
408
465
  undefined,
409
- xHeaders
466
+ { ...xHeaders, ...requestHeaders },
467
+ { responseHeaders }
410
468
  );
411
469
 
470
+ let responseData = response;
471
+ if (responseHeaders) {
472
+ responseData = response[0];
473
+ }
474
+
412
475
  const {
413
476
  error: res_error,
414
- } = InventoryModel.ResponseEnvelopeJobMetricsDto().validate(response, {
415
- abortEarly: false,
416
- allowUnknown: false,
417
- });
477
+ } = InventoryPlatformModel.ResponseEnvelopeJobMetricsDto().validate(
478
+ responseData,
479
+ { abortEarly: false, allowUnknown: false }
480
+ );
418
481
 
419
482
  if (res_error) {
420
483
  Logger({
421
484
  level: "WARN",
422
- message: "Response Validation Warnnings for getJobCodeMetrics",
485
+ message: `Response Validation Warnnings for platform > Inventory > getJobCodeMetrics \n ${res_error}`,
423
486
  });
424
- Logger({ level: "WARN", message: res_error });
425
487
  }
426
488
 
427
489
  return response;
428
490
  }
429
491
 
430
492
  /**
431
- * @param {Object} arg - Arg object.
432
- * @param {string} arg.integrationId - Integration Id
433
- * @param {number} [arg.pageNo] - Page Number
434
- * @param {number} [arg.pageSize] - Page Size
435
- * @returns {Promise<ResponseEnvelopeListJobConfigListDTO>} - Success response
493
+ * @param {InventoryPlatformValidator.GetJobCodesByCompanyAndIntegrationParam} arg
494
+ * - Arg object
495
+ *
496
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
497
+ * @param {import("../PlatformAPIClient").Options} - Options
498
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeListJobConfigListDTO>}
499
+ * - Success response
500
+ *
501
+ * @name getJobCodesByCompanyAndIntegration
436
502
  * @summary: Get Job Codes By Company And Integration
437
- * @description: REST Endpoint that returns all job codes by company And integration
503
+ * @description: REST Endpoint that returns all job codes by company And integration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobCodesByCompanyAndIntegration/).
438
504
  */
439
- async getJobCodesByCompanyAndIntegration({
440
- integrationId,
441
- pageNo,
442
- pageSize,
443
- } = {}) {
505
+ async getJobCodesByCompanyAndIntegration(
506
+ { integrationId, pageNo, pageSize, requestHeaders } = {
507
+ requestHeaders: {},
508
+ },
509
+ { responseHeaders } = { responseHeaders: false }
510
+ ) {
444
511
  const {
445
512
  error,
446
- } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
513
+ } = InventoryPlatformValidator.getJobCodesByCompanyAndIntegration().validate(
447
514
  {
448
515
  integrationId,
449
516
  pageNo,
@@ -458,7 +525,7 @@ class Inventory {
458
525
  // Showing warrnings if extra unknown parameters are found
459
526
  const {
460
527
  error: warrning,
461
- } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
528
+ } = InventoryPlatformValidator.getJobCodesByCompanyAndIntegration().validate(
462
529
  {
463
530
  integrationId,
464
531
  pageNo,
@@ -469,10 +536,8 @@ class Inventory {
469
536
  if (warrning) {
470
537
  Logger({
471
538
  level: "WARN",
472
- message:
473
- "Parameter Validation warrnings for getJobCodesByCompanyAndIntegration",
539
+ message: `Parameter Validation warrnings for platform > Inventory > getJobCodesByCompanyAndIntegration \n ${warrning}`,
474
540
  });
475
- Logger({ level: "WARN", message: warrning });
476
541
  }
477
542
 
478
543
  const query_params = {};
@@ -487,36 +552,50 @@ class Inventory {
487
552
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/integration/${integrationId}`,
488
553
  query_params,
489
554
  undefined,
490
- xHeaders
555
+ { ...xHeaders, ...requestHeaders },
556
+ { responseHeaders }
491
557
  );
492
558
 
559
+ let responseData = response;
560
+ if (responseHeaders) {
561
+ responseData = response[0];
562
+ }
563
+
493
564
  const {
494
565
  error: res_error,
495
- } = InventoryModel.ResponseEnvelopeListJobConfigListDTO().validate(
496
- response,
566
+ } = InventoryPlatformModel.ResponseEnvelopeListJobConfigListDTO().validate(
567
+ responseData,
497
568
  { abortEarly: false, allowUnknown: false }
498
569
  );
499
570
 
500
571
  if (res_error) {
501
572
  Logger({
502
573
  level: "WARN",
503
- message:
504
- "Response Validation Warnnings for getJobCodesByCompanyAndIntegration",
574
+ message: `Response Validation Warnnings for platform > Inventory > getJobCodesByCompanyAndIntegration \n ${res_error}`,
505
575
  });
506
- Logger({ level: "WARN", message: res_error });
507
576
  }
508
577
 
509
578
  return response;
510
579
  }
511
580
 
512
581
  /**
513
- * @param {Object} arg - Arg object.
514
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
582
+ * @param {InventoryPlatformValidator.GetJobConfigDefaultsParam} arg - Arg object
583
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
584
+ * @param {import("../PlatformAPIClient").Options} - Options
585
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeJobConfigDTO>}
586
+ * - Success response
587
+ *
588
+ * @name getJobConfigDefaults
515
589
  * @summary: Get Job Configs Defaults
516
- * @description: REST Endpoint that returns default fields job configs by company And integration
590
+ * @description: REST Endpoint that returns default fields job configs by company And integration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobConfigDefaults/).
517
591
  */
518
- async getJobConfigDefaults({} = {}) {
519
- const { error } = InventoryValidator.getJobConfigDefaults().validate(
592
+ async getJobConfigDefaults(
593
+ { requestHeaders } = { requestHeaders: {} },
594
+ { responseHeaders } = { responseHeaders: false }
595
+ ) {
596
+ const {
597
+ error,
598
+ } = InventoryPlatformValidator.getJobConfigDefaults().validate(
520
599
  {},
521
600
  { abortEarly: false, allowUnknown: true }
522
601
  );
@@ -527,16 +606,15 @@ class Inventory {
527
606
  // Showing warrnings if extra unknown parameters are found
528
607
  const {
529
608
  error: warrning,
530
- } = InventoryValidator.getJobConfigDefaults().validate(
609
+ } = InventoryPlatformValidator.getJobConfigDefaults().validate(
531
610
  {},
532
611
  { abortEarly: false, allowUnknown: false }
533
612
  );
534
613
  if (warrning) {
535
614
  Logger({
536
615
  level: "WARN",
537
- message: "Parameter Validation warrnings for getJobConfigDefaults",
616
+ message: `Parameter Validation warrnings for platform > Inventory > getJobConfigDefaults \n ${warrning}`,
538
617
  });
539
- Logger({ level: "WARN", message: warrning });
540
618
  }
541
619
 
542
620
  const query_params = {};
@@ -549,36 +627,48 @@ class Inventory {
549
627
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/defaults`,
550
628
  query_params,
551
629
  undefined,
552
- xHeaders
630
+ { ...xHeaders, ...requestHeaders },
631
+ { responseHeaders }
553
632
  );
554
633
 
634
+ let responseData = response;
635
+ if (responseHeaders) {
636
+ responseData = response[0];
637
+ }
638
+
555
639
  const {
556
640
  error: res_error,
557
- } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
558
- abortEarly: false,
559
- allowUnknown: false,
560
- });
641
+ } = InventoryPlatformModel.ResponseEnvelopeJobConfigDTO().validate(
642
+ responseData,
643
+ { abortEarly: false, allowUnknown: false }
644
+ );
561
645
 
562
646
  if (res_error) {
563
647
  Logger({
564
648
  level: "WARN",
565
- message: "Response Validation Warnnings for getJobConfigDefaults",
649
+ message: `Response Validation Warnnings for platform > Inventory > getJobConfigDefaults \n ${res_error}`,
566
650
  });
567
- Logger({ level: "WARN", message: res_error });
568
651
  }
569
652
 
570
653
  return response;
571
654
  }
572
655
 
573
656
  /**
574
- * @param {Object} arg - Arg object.
575
- * @param {number} arg.jobId - Job Id
576
- * @returns {Promise<ResponseEnvelopeListJobStepsDTO>} - Success response
657
+ * @param {InventoryPlatformValidator.GetJobStepsParam} arg - Arg object
658
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
659
+ * @param {import("../PlatformAPIClient").Options} - Options
660
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeListJobStepsDTO>}
661
+ * - Success response
662
+ *
663
+ * @name getJobSteps
577
664
  * @summary: Get Job Code Steps
578
- * @description: REST Endpoint that returns Inventory Job Steps
665
+ * @description: REST Endpoint that returns Inventory Job Steps - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobSteps/).
579
666
  */
580
- async getJobSteps({ jobId } = {}) {
581
- const { error } = InventoryValidator.getJobSteps().validate(
667
+ async getJobSteps(
668
+ { jobId, requestHeaders } = { requestHeaders: {} },
669
+ { responseHeaders } = { responseHeaders: false }
670
+ ) {
671
+ const { error } = InventoryPlatformValidator.getJobSteps().validate(
582
672
  {
583
673
  jobId,
584
674
  },
@@ -589,7 +679,9 @@ class Inventory {
589
679
  }
590
680
 
591
681
  // Showing warrnings if extra unknown parameters are found
592
- const { error: warrning } = InventoryValidator.getJobSteps().validate(
682
+ const {
683
+ error: warrning,
684
+ } = InventoryPlatformValidator.getJobSteps().validate(
593
685
  {
594
686
  jobId,
595
687
  },
@@ -598,9 +690,8 @@ class Inventory {
598
690
  if (warrning) {
599
691
  Logger({
600
692
  level: "WARN",
601
- message: "Parameter Validation warrnings for getJobSteps",
693
+ message: `Parameter Validation warrnings for platform > Inventory > getJobSteps \n ${warrning}`,
602
694
  });
603
- Logger({ level: "WARN", message: warrning });
604
695
  }
605
696
 
606
697
  const query_params = {};
@@ -613,37 +704,48 @@ class Inventory {
613
704
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/steps/${jobId}`,
614
705
  query_params,
615
706
  undefined,
616
- xHeaders
707
+ { ...xHeaders, ...requestHeaders },
708
+ { responseHeaders }
617
709
  );
618
710
 
711
+ let responseData = response;
712
+ if (responseHeaders) {
713
+ responseData = response[0];
714
+ }
715
+
619
716
  const {
620
717
  error: res_error,
621
- } = InventoryModel.ResponseEnvelopeListJobStepsDTO().validate(response, {
622
- abortEarly: false,
623
- allowUnknown: false,
624
- });
718
+ } = InventoryPlatformModel.ResponseEnvelopeListJobStepsDTO().validate(
719
+ responseData,
720
+ { abortEarly: false, allowUnknown: false }
721
+ );
625
722
 
626
723
  if (res_error) {
627
724
  Logger({
628
725
  level: "WARN",
629
- message: "Response Validation Warnnings for getJobSteps",
726
+ message: `Response Validation Warnnings for platform > Inventory > getJobSteps \n ${res_error}`,
630
727
  });
631
- Logger({ level: "WARN", message: res_error });
632
728
  }
633
729
 
634
730
  return response;
635
731
  }
636
732
 
637
733
  /**
638
- * @param {Object} arg - Arg object.
639
- * @param {number} [arg.pageNo] - Page Number
640
- * @param {number} [arg.pageSize] - Page Size
641
- * @returns {Promise<ResponseEnvelopeListJobConfigRawDTO>} - Success response
734
+ * @param {InventoryPlatformValidator.GetJobsByCompanyParam} arg - Arg object
735
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
736
+ * @param {import("../PlatformAPIClient").Options} - Options
737
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeListJobConfigRawDTO>}
738
+ * - Success response
739
+ *
740
+ * @name getJobsByCompany
642
741
  * @summary: Get Job Configs For A Company
643
- * @description: REST Endpoint that returns all job configs for a company
742
+ * @description: REST Endpoint that returns all job configs for a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/getJobsByCompany/).
644
743
  */
645
- async getJobsByCompany({ pageNo, pageSize } = {}) {
646
- const { error } = InventoryValidator.getJobsByCompany().validate(
744
+ async getJobsByCompany(
745
+ { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
746
+ { responseHeaders } = { responseHeaders: false }
747
+ ) {
748
+ const { error } = InventoryPlatformValidator.getJobsByCompany().validate(
647
749
  {
648
750
  pageNo,
649
751
  pageSize,
@@ -655,7 +757,9 @@ class Inventory {
655
757
  }
656
758
 
657
759
  // Showing warrnings if extra unknown parameters are found
658
- const { error: warrning } = InventoryValidator.getJobsByCompany().validate(
760
+ const {
761
+ error: warrning,
762
+ } = InventoryPlatformValidator.getJobsByCompany().validate(
659
763
  {
660
764
  pageNo,
661
765
  pageSize,
@@ -665,9 +769,8 @@ class Inventory {
665
769
  if (warrning) {
666
770
  Logger({
667
771
  level: "WARN",
668
- message: "Parameter Validation warrnings for getJobsByCompany",
772
+ message: `Parameter Validation warrnings for platform > Inventory > getJobsByCompany \n ${warrning}`,
669
773
  });
670
- Logger({ level: "WARN", message: warrning });
671
774
  }
672
775
 
673
776
  const query_params = {};
@@ -682,36 +785,48 @@ class Inventory {
682
785
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
683
786
  query_params,
684
787
  undefined,
685
- xHeaders
788
+ { ...xHeaders, ...requestHeaders },
789
+ { responseHeaders }
686
790
  );
687
791
 
792
+ let responseData = response;
793
+ if (responseHeaders) {
794
+ responseData = response[0];
795
+ }
796
+
688
797
  const {
689
798
  error: res_error,
690
- } = InventoryModel.ResponseEnvelopeListJobConfigRawDTO().validate(
691
- response,
799
+ } = InventoryPlatformModel.ResponseEnvelopeListJobConfigRawDTO().validate(
800
+ responseData,
692
801
  { abortEarly: false, allowUnknown: false }
693
802
  );
694
803
 
695
804
  if (res_error) {
696
805
  Logger({
697
806
  level: "WARN",
698
- message: "Response Validation Warnnings for getJobsByCompany",
807
+ message: `Response Validation Warnnings for platform > Inventory > getJobsByCompany \n ${res_error}`,
699
808
  });
700
- Logger({ level: "WARN", message: res_error });
701
809
  }
702
810
 
703
811
  return response;
704
812
  }
705
813
 
706
814
  /**
707
- * @param {Object} arg - Arg object.
708
- * @param {SuppressStorePayload} arg.body
709
- * @returns {Promise<ResponseEnvelopeKafkaResponse>} - Success response
815
+ * @param {InventoryPlatformValidator.SuppressStoresParam} arg - Arg object
816
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
817
+ * @param {import("../PlatformAPIClient").Options} - Options
818
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeKafkaResponse>}
819
+ * - Success response
820
+ *
821
+ * @name suppressStores
710
822
  * @summary: Get Slingshot Configuration Of A Company
711
- * @description: REST Endpoint that returns all configuration detail of a company
823
+ * @description: REST Endpoint that returns all configuration detail of a company - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/suppressStores/).
712
824
  */
713
- async suppressStores({ body } = {}) {
714
- const { error } = InventoryValidator.suppressStores().validate(
825
+ async suppressStores(
826
+ { body, requestHeaders } = { requestHeaders: {} },
827
+ { responseHeaders } = { responseHeaders: false }
828
+ ) {
829
+ const { error } = InventoryPlatformValidator.suppressStores().validate(
715
830
  {
716
831
  body,
717
832
  },
@@ -722,7 +837,9 @@ class Inventory {
722
837
  }
723
838
 
724
839
  // Showing warrnings if extra unknown parameters are found
725
- const { error: warrning } = InventoryValidator.suppressStores().validate(
840
+ const {
841
+ error: warrning,
842
+ } = InventoryPlatformValidator.suppressStores().validate(
726
843
  {
727
844
  body,
728
845
  },
@@ -731,9 +848,8 @@ class Inventory {
731
848
  if (warrning) {
732
849
  Logger({
733
850
  level: "WARN",
734
- message: "Parameter Validation warrnings for suppressStores",
851
+ message: `Parameter Validation warrnings for platform > Inventory > suppressStores \n ${warrning}`,
735
852
  });
736
- Logger({ level: "WARN", message: warrning });
737
853
  }
738
854
 
739
855
  const query_params = {};
@@ -746,36 +862,47 @@ class Inventory {
746
862
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/kafka/suppressStore`,
747
863
  query_params,
748
864
  body,
749
- xHeaders
865
+ { ...xHeaders, ...requestHeaders },
866
+ { responseHeaders }
750
867
  );
751
868
 
869
+ let responseData = response;
870
+ if (responseHeaders) {
871
+ responseData = response[0];
872
+ }
873
+
752
874
  const {
753
875
  error: res_error,
754
- } = InventoryModel.ResponseEnvelopeKafkaResponse().validate(response, {
755
- abortEarly: false,
756
- allowUnknown: false,
757
- });
876
+ } = InventoryPlatformModel.ResponseEnvelopeKafkaResponse().validate(
877
+ responseData,
878
+ { abortEarly: false, allowUnknown: false }
879
+ );
758
880
 
759
881
  if (res_error) {
760
882
  Logger({
761
883
  level: "WARN",
762
- message: "Response Validation Warnnings for suppressStores",
884
+ message: `Response Validation Warnnings for platform > Inventory > suppressStores \n ${res_error}`,
763
885
  });
764
- Logger({ level: "WARN", message: res_error });
765
886
  }
766
887
 
767
888
  return response;
768
889
  }
769
890
 
770
891
  /**
771
- * @param {Object} arg - Arg object.
772
- * @param {JobConfigDTO} arg.body
773
- * @returns {Promise<ResponseEnvelopeString>} - Success response
892
+ * @param {InventoryPlatformValidator.UpdateJobParam} arg - Arg object
893
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
894
+ * @param {import("../PlatformAPIClient").Options} - Options
895
+ * @returns {Promise<InventoryPlatformModel.ResponseEnvelopeString>} -
896
+ * Success response
897
+ * @name updateJob
774
898
  * @summary: Updates An Existing Job Config
775
- * @description: REST Endpoint that updates a job config
899
+ * @description: REST Endpoint that updates a job config - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/inventory/updateJob/).
776
900
  */
777
- async updateJob({ body } = {}) {
778
- const { error } = InventoryValidator.updateJob().validate(
901
+ async updateJob(
902
+ { body, requestHeaders } = { requestHeaders: {} },
903
+ { responseHeaders } = { responseHeaders: false }
904
+ ) {
905
+ const { error } = InventoryPlatformValidator.updateJob().validate(
779
906
  {
780
907
  body,
781
908
  },
@@ -786,7 +913,7 @@ class Inventory {
786
913
  }
787
914
 
788
915
  // Showing warrnings if extra unknown parameters are found
789
- const { error: warrning } = InventoryValidator.updateJob().validate(
916
+ const { error: warrning } = InventoryPlatformValidator.updateJob().validate(
790
917
  {
791
918
  body,
792
919
  },
@@ -795,9 +922,8 @@ class Inventory {
795
922
  if (warrning) {
796
923
  Logger({
797
924
  level: "WARN",
798
- message: "Parameter Validation warrnings for updateJob",
925
+ message: `Parameter Validation warrnings for platform > Inventory > updateJob \n ${warrning}`,
799
926
  });
800
- Logger({ level: "WARN", message: warrning });
801
927
  }
802
928
 
803
929
  const query_params = {};
@@ -810,12 +936,18 @@ class Inventory {
810
936
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
811
937
  query_params,
812
938
  body,
813
- xHeaders
939
+ { ...xHeaders, ...requestHeaders },
940
+ { responseHeaders }
814
941
  );
815
942
 
943
+ let responseData = response;
944
+ if (responseHeaders) {
945
+ responseData = response[0];
946
+ }
947
+
816
948
  const {
817
949
  error: res_error,
818
- } = InventoryModel.ResponseEnvelopeString().validate(response, {
950
+ } = InventoryPlatformModel.ResponseEnvelopeString().validate(responseData, {
819
951
  abortEarly: false,
820
952
  allowUnknown: false,
821
953
  });
@@ -823,9 +955,8 @@ class Inventory {
823
955
  if (res_error) {
824
956
  Logger({
825
957
  level: "WARN",
826
- message: "Response Validation Warnnings for updateJob",
958
+ message: `Response Validation Warnnings for platform > Inventory > updateJob \n ${res_error}`,
827
959
  });
828
- Logger({ level: "WARN", message: res_error });
829
960
  }
830
961
 
831
962
  return response;