@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

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 (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -3,19 +3,22 @@ const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const constructUrl = require("../constructUrl");
4
4
  const Paginator = require("../../common/Paginator");
5
5
  const InventoryValidator = require("./InventoryPublicValidator");
6
+ const InventoryModel = require("./InventoryPublicModel");
7
+ const { Logger } = require("./../../common/Logger");
8
+
6
9
  class Inventory {
7
10
  constructor(_conf) {
8
11
  this._conf = _conf;
9
12
  this._relativeUrls = {
10
- getJobCodesMetrics:
11
- "/service/common/inventory/v1.0/company/email/jobCode",
12
- saveJobCodesMetrics:
13
- "/service/common/inventory/v1.0/company/email/jobCode",
14
- getConfigByApiKey: "/service/common/inventory/v1.0/company/slingshot",
15
13
  getApiKey: "/service/common/inventory/v1.0/company/slingshot/apikey",
14
+ getConfigByApiKey: "/service/common/inventory/v1.0/company/slingshot",
16
15
  getJobByCode: "/service/common/inventory/v1.0/company/jobs/code/{code}",
16
+ getJobCodesMetrics:
17
+ "/service/common/inventory/v1.0/company/email/jobCode",
17
18
  getJobConfigByIntegrationType:
18
19
  "/service/common/inventory/v1.0/company/job/config",
20
+ saveJobCodesMetrics:
21
+ "/service/common/inventory/v1.0/company/email/jobCode",
19
22
  };
20
23
  this._urls = Object.entries(this._relativeUrls).reduce(
21
24
  (urls, [method, relativeUrl]) => {
@@ -35,15 +38,15 @@ class Inventory {
35
38
 
36
39
  /**
37
40
  * @param {Object} arg - Arg object.
38
- * @param {boolean} [arg.dailyJob] - Daily Job Flag
39
- * @param {string} [arg.jobCode] - Email Job Code
40
- * @returns {Promise<ResponseEnvelopeObject>} - Success response
41
- * @summary: Find all the JobCodes from Metrics Collection based on the field Values
42
- * @description: Endpoint to return all JobCodes present in Metrics Collection
41
+ * @param {string} arg.userName - Integration id
42
+ * @param {string} arg.password - Company/store token
43
+ * @returns {Promise<ResponseEnvelopeApikeyModel>} - Success response
44
+ * @summary: Get apikey for Company to call other Slingshot Configuration APIs
45
+ * @description: REST Endpoint that returns apikey by username by password
43
46
  */
44
- getJobCodesMetrics({ dailyJob, jobCode } = {}) {
45
- const { error } = InventoryValidator.getJobCodesMetrics().validate(
46
- { dailyJob, jobCode },
47
+ async getApiKey({ userName, password } = {}) {
48
+ const { error } = InventoryValidator.getApiKey().validate(
49
+ { userName, password },
47
50
  { abortEarly: false, allowUnknown: true }
48
51
  );
49
52
  if (error) {
@@ -51,79 +54,52 @@ class Inventory {
51
54
  }
52
55
 
53
56
  // Showing warrnings if extra unknown parameters are found
54
- const {
55
- error: warrning,
56
- } = InventoryValidator.getJobCodesMetrics().validate(
57
- { dailyJob, jobCode },
57
+ const { error: warrning } = InventoryValidator.getApiKey().validate(
58
+ { userName, password },
58
59
  { abortEarly: false, allowUnknown: false }
59
60
  );
60
61
  if (warrning) {
61
- console.log("Parameter Validation warrnings for getJobCodesMetrics");
62
- console.log(warrning);
62
+ Logger({
63
+ level: "WARN",
64
+ message: "Parameter Validation warrnings for getApiKey",
65
+ });
66
+ Logger({ level: "WARN", message: warrning });
63
67
  }
64
68
 
65
69
  const query_params = {};
66
- query_params["daily_job"] = dailyJob;
67
- query_params["job_code"] = jobCode;
70
+ query_params["user_name"] = userName;
71
+ query_params["password"] = password;
68
72
 
69
73
  const xHeaders = {};
70
74
 
71
- return PublicAPIClient.execute(
75
+ const response = await PublicAPIClient.execute(
72
76
  this._conf,
73
77
  "get",
74
78
  constructUrl({
75
- url: this._urls["getJobCodesMetrics"],
79
+ url: this._urls["getApiKey"],
76
80
  params: {},
77
81
  }),
78
82
  query_params,
79
83
  undefined,
80
84
  xHeaders
81
85
  );
82
- }
83
-
84
- /**
85
- * @param {Object} arg - Arg object.
86
- * @param {EmailJobMetrics} arg.body
87
- * @returns {Promise<ResponseEnvelopeEmailJobMetrics>} - Success response
88
- * @summary: Save JobCode Metrics
89
- * @description: Endpoint to save JobCode Metrics
90
- */
91
- saveJobCodesMetrics({ body } = {}) {
92
- const { error } = InventoryValidator.saveJobCodesMetrics().validate(
93
- { body },
94
- { abortEarly: false, allowUnknown: true }
95
- );
96
- if (error) {
97
- return Promise.reject(new FDKClientValidationError(error));
98
- }
99
86
 
100
- // Showing warrnings if extra unknown parameters are found
101
87
  const {
102
- error: warrning,
103
- } = InventoryValidator.saveJobCodesMetrics().validate(
104
- { body },
105
- { abortEarly: false, allowUnknown: false }
106
- );
107
- if (warrning) {
108
- console.log("Parameter Validation warrnings for saveJobCodesMetrics");
109
- console.log(warrning);
110
- }
111
-
112
- const query_params = {};
88
+ error: res_error,
89
+ } = InventoryModel.ResponseEnvelopeApikeyModel().validate(response, {
90
+ abortEarly: false,
91
+ allowUnknown: false,
92
+ });
113
93
 
114
- const xHeaders = {};
94
+ if (res_error) {
95
+ Logger({
96
+ level: "WARN",
97
+ message: "Response Validation Warnnings for getApiKey",
98
+ });
99
+ Logger({ level: "WARN", message: res_error });
100
+ }
115
101
 
116
- return PublicAPIClient.execute(
117
- this._conf,
118
- "post",
119
- constructUrl({
120
- url: this._urls["saveJobCodesMetrics"],
121
- params: {},
122
- }),
123
- query_params,
124
- body,
125
- xHeaders
126
- );
102
+ return response;
127
103
  }
128
104
 
129
105
  /**
@@ -133,7 +109,7 @@ class Inventory {
133
109
  * @summary: Get Slingshot Configuration Of A Company using API key
134
110
  * @description: REST Endpoint that returns all configuration detail of a company
135
111
  */
136
- getConfigByApiKey({ apikey } = {}) {
112
+ async getConfigByApiKey({ apikey } = {}) {
137
113
  const { error } = InventoryValidator.getConfigByApiKey().validate(
138
114
  { apikey },
139
115
  { abortEarly: false, allowUnknown: true }
@@ -148,8 +124,11 @@ class Inventory {
148
124
  { abortEarly: false, allowUnknown: false }
149
125
  );
150
126
  if (warrning) {
151
- console.log("Parameter Validation warrnings for getConfigByApiKey");
152
- console.log(warrning);
127
+ Logger({
128
+ level: "WARN",
129
+ message: "Parameter Validation warrnings for getConfigByApiKey",
130
+ });
131
+ Logger({ level: "WARN", message: warrning });
153
132
  }
154
133
 
155
134
  const query_params = {};
@@ -157,7 +136,7 @@ class Inventory {
157
136
 
158
137
  const xHeaders = {};
159
138
 
160
- return PublicAPIClient.execute(
139
+ const response = await PublicAPIClient.execute(
161
140
  this._conf,
162
141
  "get",
163
142
  constructUrl({
@@ -168,19 +147,35 @@ class Inventory {
168
147
  undefined,
169
148
  xHeaders
170
149
  );
150
+
151
+ const {
152
+ error: res_error,
153
+ } = InventoryModel.ResponseEnvelopeSlingshotConfigurationDetail().validate(
154
+ response,
155
+ { abortEarly: false, allowUnknown: false }
156
+ );
157
+
158
+ if (res_error) {
159
+ Logger({
160
+ level: "WARN",
161
+ message: "Response Validation Warnnings for getConfigByApiKey",
162
+ });
163
+ Logger({ level: "WARN", message: res_error });
164
+ }
165
+
166
+ return response;
171
167
  }
172
168
 
173
169
  /**
174
170
  * @param {Object} arg - Arg object.
175
- * @param {string} arg.userName - Integration id
176
- * @param {string} arg.password - Company/store token
177
- * @returns {Promise<ResponseEnvelopeApikeyModel>} - Success response
178
- * @summary: Get apikey for Company to call other Slingshot Configuration APIs
179
- * @description: REST Endpoint that returns apikey by username by password
171
+ * @param {string} arg.code - Job Code
172
+ * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
173
+ * @summary: Get Job Config By Code
174
+ * @description: REST Endpoint that returns job config by code
180
175
  */
181
- getApiKey({ userName, password } = {}) {
182
- const { error } = InventoryValidator.getApiKey().validate(
183
- { userName, password },
176
+ async getJobByCode({ code } = {}) {
177
+ const { error } = InventoryValidator.getJobByCode().validate(
178
+ { code },
184
179
  { abortEarly: false, allowUnknown: true }
185
180
  );
186
181
  if (error) {
@@ -188,44 +183,63 @@ class Inventory {
188
183
  }
189
184
 
190
185
  // Showing warrnings if extra unknown parameters are found
191
- const { error: warrning } = InventoryValidator.getApiKey().validate(
192
- { userName, password },
186
+ const { error: warrning } = InventoryValidator.getJobByCode().validate(
187
+ { code },
193
188
  { abortEarly: false, allowUnknown: false }
194
189
  );
195
190
  if (warrning) {
196
- console.log("Parameter Validation warrnings for getApiKey");
197
- console.log(warrning);
191
+ Logger({
192
+ level: "WARN",
193
+ message: "Parameter Validation warrnings for getJobByCode",
194
+ });
195
+ Logger({ level: "WARN", message: warrning });
198
196
  }
199
197
 
200
198
  const query_params = {};
201
- query_params["user_name"] = userName;
202
- query_params["password"] = password;
203
199
 
204
200
  const xHeaders = {};
205
201
 
206
- return PublicAPIClient.execute(
202
+ const response = await PublicAPIClient.execute(
207
203
  this._conf,
208
204
  "get",
209
205
  constructUrl({
210
- url: this._urls["getApiKey"],
211
- params: {},
206
+ url: this._urls["getJobByCode"],
207
+ params: { code },
212
208
  }),
213
209
  query_params,
214
210
  undefined,
215
211
  xHeaders
216
212
  );
213
+
214
+ const {
215
+ error: res_error,
216
+ } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
217
+ abortEarly: false,
218
+ allowUnknown: false,
219
+ });
220
+
221
+ if (res_error) {
222
+ Logger({
223
+ level: "WARN",
224
+ message: "Response Validation Warnnings for getJobByCode",
225
+ });
226
+ Logger({ level: "WARN", message: res_error });
227
+ }
228
+
229
+ return response;
217
230
  }
218
231
 
219
232
  /**
220
233
  * @param {Object} arg - Arg object.
221
- * @param {string} arg.code - Job Code
222
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
223
- * @summary: Get Job Config By Code
224
- * @description: REST Endpoint that returns job config by code
234
+ * @param {boolean} [arg.dailyJob] - Daily Job Flag
235
+ * @param {string} [arg.jobCode] - Email Job Code
236
+ * @returns {Promise<ResponseEnvelopeObject>} - Success response
237
+ * @summary: Find all the JobCodes from Metrics Collection based on the field Values
238
+ * @description: Endpoint to return all JobCodes present in Metrics Collection
225
239
  */
226
- getJobByCode({ code } = {}) {
227
- const { error } = InventoryValidator.getJobByCode().validate(
228
- { code },
240
+ async getJobCodesMetrics({ dailyJob, jobCode } = {}) {
241
+ const { error } = InventoryValidator.getJobCodesMetrics().validate(
242
+ { dailyJob, jobCode },
229
243
  { abortEarly: false, allowUnknown: true }
230
244
  );
231
245
  if (error) {
@@ -233,30 +247,54 @@ class Inventory {
233
247
  }
234
248
 
235
249
  // Showing warrnings if extra unknown parameters are found
236
- const { error: warrning } = InventoryValidator.getJobByCode().validate(
237
- { code },
250
+ const {
251
+ error: warrning,
252
+ } = InventoryValidator.getJobCodesMetrics().validate(
253
+ { dailyJob, jobCode },
238
254
  { abortEarly: false, allowUnknown: false }
239
255
  );
240
256
  if (warrning) {
241
- console.log("Parameter Validation warrnings for getJobByCode");
242
- console.log(warrning);
257
+ Logger({
258
+ level: "WARN",
259
+ message: "Parameter Validation warrnings for getJobCodesMetrics",
260
+ });
261
+ Logger({ level: "WARN", message: warrning });
243
262
  }
244
263
 
245
264
  const query_params = {};
265
+ query_params["daily_job"] = dailyJob;
266
+ query_params["job_code"] = jobCode;
246
267
 
247
268
  const xHeaders = {};
248
269
 
249
- return PublicAPIClient.execute(
270
+ const response = await PublicAPIClient.execute(
250
271
  this._conf,
251
272
  "get",
252
273
  constructUrl({
253
- url: this._urls["getJobByCode"],
254
- params: { code },
274
+ url: this._urls["getJobCodesMetrics"],
275
+ params: {},
255
276
  }),
256
277
  query_params,
257
278
  undefined,
258
279
  xHeaders
259
280
  );
281
+
282
+ const {
283
+ error: res_error,
284
+ } = InventoryModel.ResponseEnvelopeObject().validate(response, {
285
+ abortEarly: false,
286
+ allowUnknown: false,
287
+ });
288
+
289
+ if (res_error) {
290
+ Logger({
291
+ level: "WARN",
292
+ message: "Response Validation Warnnings for getJobCodesMetrics",
293
+ });
294
+ Logger({ level: "WARN", message: res_error });
295
+ }
296
+
297
+ return response;
260
298
  }
261
299
 
262
300
  /**
@@ -267,7 +305,7 @@ class Inventory {
267
305
  * @summary: Get Job Configs By Integration Type
268
306
  * @description: REST Endpoint that returns all job Configs by Integration Type
269
307
  */
270
- getJobConfigByIntegrationType({ integrationType, disable } = {}) {
308
+ async getJobConfigByIntegrationType({ integrationType, disable } = {}) {
271
309
  const {
272
310
  error,
273
311
  } = InventoryValidator.getJobConfigByIntegrationType().validate(
@@ -286,10 +324,12 @@ class Inventory {
286
324
  { abortEarly: false, allowUnknown: false }
287
325
  );
288
326
  if (warrning) {
289
- console.log(
290
- "Parameter Validation warrnings for getJobConfigByIntegrationType"
291
- );
292
- console.log(warrning);
327
+ Logger({
328
+ level: "WARN",
329
+ message:
330
+ "Parameter Validation warrnings for getJobConfigByIntegrationType",
331
+ });
332
+ Logger({ level: "WARN", message: warrning });
293
333
  }
294
334
 
295
335
  const query_params = {};
@@ -298,7 +338,7 @@ class Inventory {
298
338
 
299
339
  const xHeaders = {};
300
340
 
301
- return PublicAPIClient.execute(
341
+ const response = await PublicAPIClient.execute(
302
342
  this._conf,
303
343
  "get",
304
344
  constructUrl({
@@ -309,6 +349,89 @@ class Inventory {
309
349
  undefined,
310
350
  xHeaders
311
351
  );
352
+
353
+ const {
354
+ error: res_error,
355
+ } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
356
+ abortEarly: false,
357
+ allowUnknown: false,
358
+ });
359
+
360
+ if (res_error) {
361
+ Logger({
362
+ level: "WARN",
363
+ message:
364
+ "Response Validation Warnnings for getJobConfigByIntegrationType",
365
+ });
366
+ Logger({ level: "WARN", message: res_error });
367
+ }
368
+
369
+ return response;
370
+ }
371
+
372
+ /**
373
+ * @param {Object} arg - Arg object.
374
+ * @param {EmailJobMetrics} arg.body
375
+ * @returns {Promise<ResponseEnvelopeEmailJobMetrics>} - Success response
376
+ * @summary: Save JobCode Metrics
377
+ * @description: Endpoint to save JobCode Metrics
378
+ */
379
+ async saveJobCodesMetrics({ body } = {}) {
380
+ const { error } = InventoryValidator.saveJobCodesMetrics().validate(
381
+ { body },
382
+ { abortEarly: false, allowUnknown: true }
383
+ );
384
+ if (error) {
385
+ return Promise.reject(new FDKClientValidationError(error));
386
+ }
387
+
388
+ // Showing warrnings if extra unknown parameters are found
389
+ const {
390
+ error: warrning,
391
+ } = InventoryValidator.saveJobCodesMetrics().validate(
392
+ { body },
393
+ { abortEarly: false, allowUnknown: false }
394
+ );
395
+ if (warrning) {
396
+ Logger({
397
+ level: "WARN",
398
+ message: "Parameter Validation warrnings for saveJobCodesMetrics",
399
+ });
400
+ Logger({ level: "WARN", message: warrning });
401
+ }
402
+
403
+ const query_params = {};
404
+
405
+ const xHeaders = {};
406
+
407
+ const response = await PublicAPIClient.execute(
408
+ this._conf,
409
+ "post",
410
+ constructUrl({
411
+ url: this._urls["saveJobCodesMetrics"],
412
+ params: {},
413
+ }),
414
+ query_params,
415
+ body,
416
+ xHeaders
417
+ );
418
+
419
+ const {
420
+ error: res_error,
421
+ } = InventoryModel.ResponseEnvelopeEmailJobMetrics().validate(response, {
422
+ abortEarly: false,
423
+ allowUnknown: false,
424
+ });
425
+
426
+ if (res_error) {
427
+ Logger({
428
+ level: "WARN",
429
+ message: "Response Validation Warnnings for saveJobCodesMetrics",
430
+ });
431
+ Logger({ level: "WARN", message: res_error });
432
+ }
433
+
434
+ return response;
312
435
  }
313
436
  }
314
437
  module.exports = Inventory;
@@ -1,22 +1,22 @@
1
1
  export = InventoryModel;
2
2
  declare class InventoryModel {
3
+ static ApikeyModel(): any;
4
+ static DataTresholdDTO(): any;
3
5
  static EmailJobMetrics(): any;
4
- static Page(): any;
5
- static ResponseEnvelopeEmailJobMetrics(): any;
6
6
  static GCompany(): any;
7
+ static GenericDTO(): any;
7
8
  static GStore(): any;
9
+ static JobConfigDTO(): any;
8
10
  static Metum(): any;
11
+ static Page(): any;
12
+ static ResponseEnvelopeApikeyModel(): any;
13
+ static ResponseEnvelopeEmailJobMetrics(): any;
14
+ static ResponseEnvelopeJobConfigDTO(): any;
15
+ static ResponseEnvelopeListJobConfigDTO(): any;
16
+ static ResponseEnvelopeObject(): any;
9
17
  static ResponseEnvelopeSlingshotConfigurationDetail(): any;
10
18
  static SlingshotConfigurationDetail(): any;
11
19
  static SlingshotIntegration(): any;
12
20
  static StoreData(): any;
13
- static ApikeyModel(): any;
14
- static ResponseEnvelopeApikeyModel(): any;
15
- static DataTresholdDTO(): any;
16
- static GenericDTO(): any;
17
- static JobConfigDTO(): any;
18
- static ResponseEnvelopeJobConfigDTO(): any;
19
21
  static TaskDTO(): any;
20
- static ResponseEnvelopeListJobConfigDTO(): any;
21
- static ResponseEnvelopeObject(): any;
22
22
  }