@gofynd/fdk-client-javascript 1.0.2 → 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 (310) 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 +557 -1279
  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 +14453 -17192
  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 +3438 -4172
  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 +3400 -5361
  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/Cart/CartApplicationClient.d.ts +243 -243
  44. package/sdk/application/Cart/CartApplicationClient.js +567 -567
  45. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  46. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  47. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  48. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  49. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  50. package/sdk/application/Catalog/CatalogApplicationClient.js +1036 -1036
  51. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  52. package/sdk/application/Catalog/CatalogApplicationModel.js +677 -1243
  53. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  54. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  55. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  56. package/sdk/application/Common/CommonApplicationClient.js +38 -38
  57. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  58. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  59. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  60. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  61. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  62. package/sdk/application/Communication/CommunicationApplicationClient.js +26 -26
  63. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  64. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  65. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  66. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  67. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.js +330 -330
  69. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  71. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  73. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  74. package/sdk/application/Content/ContentApplicationClient.js +191 -191
  75. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -76
  76. package/sdk/application/Content/ContentApplicationModel.js +467 -884
  77. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  78. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  79. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.js +59 -59
  81. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  83. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  85. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  86. package/sdk/application/Lead/LeadApplicationClient.js +100 -100
  87. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  88. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  89. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  90. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  91. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  92. package/sdk/application/Logistic/LogisticApplicationClient.js +110 -43
  93. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  94. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  95. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  96. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  97. package/sdk/application/Order/OrderApplicationClient.d.ts +85 -85
  98. package/sdk/application/Order/OrderApplicationClient.js +232 -232
  99. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  100. package/sdk/application/Order/OrderApplicationModel.js +352 -656
  101. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  102. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  103. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  104. package/sdk/application/Payment/PaymentApplicationClient.js +739 -739
  105. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  106. package/sdk/application/Payment/PaymentApplicationModel.js +570 -1038
  107. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  108. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  109. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  110. package/sdk/application/PosCart/PosCartApplicationClient.js +617 -617
  111. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +64 -63
  112. package/sdk/application/PosCart/PosCartApplicationModel.js +475 -871
  113. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  114. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  115. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  116. package/sdk/application/Rewards/RewardsApplicationClient.js +112 -112
  117. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  118. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  119. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  120. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  121. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  122. package/sdk/application/Share/ShareApplicationClient.js +84 -84
  123. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  124. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  125. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  126. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  127. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  128. package/sdk/application/Theme/ThemeApplicationClient.js +31 -31
  129. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  130. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  131. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  132. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  133. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  134. package/sdk/application/User/UserApplicationClient.js +581 -581
  135. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  136. package/sdk/application/User/UserApplicationModel.js +440 -689
  137. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  138. package/sdk/application/User/UserApplicationValidator.js +89 -89
  139. package/sdk/common/AxiosHelper.js +1 -1
  140. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +51 -51
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +179 -179
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  144. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  145. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  146. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +10 -10
  147. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +41 -41
  148. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  152. package/sdk/platform/Billing/BillingPlatformClient.d.ts +60 -60
  153. package/sdk/platform/Billing/BillingPlatformClient.js +181 -181
  154. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  155. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  156. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  157. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  158. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +168 -168
  159. package/sdk/platform/Cart/CartPlatformApplicationClient.js +553 -553
  160. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  161. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  162. package/sdk/platform/Cart/CartPlatformModel.d.ts +84 -83
  163. package/sdk/platform/Cart/CartPlatformModel.js +671 -1205
  164. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +632 -632
  165. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1525 -1525
  166. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +174 -174
  168. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +682 -682
  169. package/sdk/platform/Catalog/CatalogPlatformClient.js +1557 -1557
  170. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +291 -291
  171. package/sdk/platform/Catalog/CatalogPlatformModel.js +2127 -3904
  172. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -66
  173. package/sdk/platform/Catalog/CatalogPlatformValidator.js +229 -229
  174. package/sdk/platform/Common/CommonPlatformClient.d.ts +12 -12
  175. package/sdk/platform/Common/CommonPlatformClient.js +41 -41
  176. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  177. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  178. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  179. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  180. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +326 -326
  181. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +943 -943
  182. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  184. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  185. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  186. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +55 -55
  187. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +212 -212
  188. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +27 -27
  189. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +279 -542
  190. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  192. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +163 -153
  193. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +615 -552
  194. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  195. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  196. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +125 -125
  197. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +342 -342
  198. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  199. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  200. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  201. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  202. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +534 -534
  203. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1324 -1324
  204. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -50
  205. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +156 -156
  206. package/sdk/platform/Content/ContentPlatformModel.d.ts +78 -78
  207. package/sdk/platform/Content/ContentPlatformModel.js +484 -907
  208. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +65 -65
  209. package/sdk/platform/Discount/DiscountPlatformClient.js +216 -216
  210. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  211. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  212. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  213. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  214. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +24 -24
  215. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +58 -58
  216. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  217. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  218. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +52 -52
  219. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +123 -123
  220. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  221. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  222. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  223. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  224. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +63 -63
  225. package/sdk/platform/Inventory/InventoryPlatformClient.js +228 -228
  226. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  227. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  228. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  229. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  230. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +73 -73
  231. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +200 -200
  232. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  233. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  234. package/sdk/platform/Lead/LeadPlatformClient.d.ts +80 -80
  235. package/sdk/platform/Lead/LeadPlatformClient.js +212 -212
  236. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  237. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  238. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  239. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  240. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +10 -10
  241. package/sdk/platform/Order/OrderPlatformApplicationClient.js +65 -65
  242. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  243. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  244. package/sdk/platform/Order/OrderPlatformClient.d.ts +357 -357
  245. package/sdk/platform/Order/OrderPlatformClient.js +1035 -1035
  246. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -196
  247. package/sdk/platform/Order/OrderPlatformModel.js +1574 -2861
  248. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  249. package/sdk/platform/Order/OrderPlatformValidator.js +160 -160
  250. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  251. package/sdk/platform/Partner/PartnerPlatformModel.js +10 -26
  252. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +57 -57
  253. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +167 -167
  254. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  255. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  256. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +42 -42
  257. package/sdk/platform/Payment/PaymentPlatformClient.js +153 -153
  258. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  259. package/sdk/platform/Payment/PaymentPlatformModel.js +222 -410
  260. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  261. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  262. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10325
  263. package/sdk/platform/PlatformApplicationClient.js +1584 -13899
  264. package/sdk/platform/PlatformClient.d.ts +7965 -7885
  265. package/sdk/platform/PlatformClient.js +8672 -10105
  266. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +83 -83
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +275 -275
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  270. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  271. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  272. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
  273. package/sdk/platform/Share/SharePlatformApplicationClient.js +59 -59
  274. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  275. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  276. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  277. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  278. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +132 -132
  279. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +310 -310
  280. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  281. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  282. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  283. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  284. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +136 -69
  285. package/sdk/platform/User/UserPlatformApplicationClient.js +505 -166
  286. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  287. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  288. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  289. package/sdk/platform/User/UserPlatformModel.js +440 -689
  290. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +31 -31
  291. package/sdk/platform/Webhook/WebhookPlatformClient.js +88 -88
  292. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  293. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  294. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  295. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  296. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  297. package/sdk/public/Configuration/ConfigurationPublicClient.js +38 -38
  298. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  299. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  300. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  301. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  302. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  303. package/sdk/public/Inventory/InventoryPublicClient.js +113 -113
  304. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  305. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  306. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  307. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  308. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  309. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  310. package/tests/application/catalog.spec.js +7 -0
@@ -12,17 +12,15 @@ class Inventory {
12
12
 
13
13
  /**
14
14
  * @param {Object} arg - Arg object.
15
- * @param {number} [arg.pageNo] - Page Number
16
- * @param {number} [arg.pageSize] - Page Size
17
- * @returns {Promise<ResponseEnvelopeListJobConfigRawDTO>} - Success response
18
- * @summary: Get Job Configs For A Company
19
- * @description: REST Endpoint that returns all job configs for a company
15
+ * @param {JobConfigDTO} arg.body
16
+ * @returns {Promise<ResponseEnvelopeString>} - Success response
17
+ * @summary: Creates A New Job Config
18
+ * @description: REST Endpoint that creates a new job config
20
19
  */
21
- async getJobsByCompany({ pageNo, pageSize } = {}) {
22
- const { error } = InventoryValidator.getJobsByCompany().validate(
20
+ async createJob({ body } = {}) {
21
+ const { error } = InventoryValidator.createJob().validate(
23
22
  {
24
- pageNo,
25
- pageSize,
23
+ body,
26
24
  },
27
25
  { abortEarly: false, allowUnknown: true }
28
26
  );
@@ -31,47 +29,44 @@ class Inventory {
31
29
  }
32
30
 
33
31
  // Showing warrnings if extra unknown parameters are found
34
- const { error: warrning } = InventoryValidator.getJobsByCompany().validate(
32
+ const { error: warrning } = InventoryValidator.createJob().validate(
35
33
  {
36
- pageNo,
37
- pageSize,
34
+ body,
38
35
  },
39
36
  { abortEarly: false, allowUnknown: false }
40
37
  );
41
38
  if (warrning) {
42
39
  Logger({
43
40
  level: "WARN",
44
- message: "Parameter Validation warrnings for getJobsByCompany",
41
+ message: "Parameter Validation warrnings for createJob",
45
42
  });
46
43
  Logger({ level: "WARN", message: warrning });
47
44
  }
48
45
 
49
46
  const query_params = {};
50
- query_params["page_no"] = pageNo;
51
- query_params["page_size"] = pageSize;
52
47
 
53
48
  const xHeaders = {};
54
49
 
55
50
  const response = await PlatformAPIClient.execute(
56
51
  this.config,
57
- "get",
52
+ "post",
58
53
  `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
59
54
  query_params,
60
- undefined,
55
+ body,
61
56
  xHeaders
62
57
  );
63
58
 
64
59
  const {
65
60
  error: res_error,
66
- } = InventoryModel.ResponseEnvelopeListJobConfigRawDTO().validate(
67
- response,
68
- { abortEarly: false, allowUnknown: false }
69
- );
61
+ } = InventoryModel.ResponseEnvelopeString().validate(response, {
62
+ abortEarly: false,
63
+ allowUnknown: false,
64
+ });
70
65
 
71
66
  if (res_error) {
72
67
  Logger({
73
68
  level: "WARN",
74
- message: "Response Validation Warnnings for getJobsByCompany",
69
+ message: "Response Validation Warnnings for createJob",
75
70
  });
76
71
  Logger({ level: "WARN", message: res_error });
77
72
  }
@@ -81,15 +76,15 @@ class Inventory {
81
76
 
82
77
  /**
83
78
  * @param {Object} arg - Arg object.
84
- * @param {JobConfigDTO} arg.body
79
+ * @param {string} arg.integrationId - IntegrationId
85
80
  * @returns {Promise<ResponseEnvelopeString>} - Success response
86
- * @summary: Updates An Existing Job Config
87
- * @description: REST Endpoint that updates a job config
81
+ * @summary: Disable Job Config
82
+ * @description: REST Endpoint that disables Inventory Job Config
88
83
  */
89
- async updateJob({ body } = {}) {
90
- const { error } = InventoryValidator.updateJob().validate(
84
+ async disable({ integrationId } = {}) {
85
+ const { error } = InventoryValidator.disable().validate(
91
86
  {
92
- body,
87
+ integrationId,
93
88
  },
94
89
  { abortEarly: false, allowUnknown: true }
95
90
  );
@@ -98,16 +93,16 @@ class Inventory {
98
93
  }
99
94
 
100
95
  // Showing warrnings if extra unknown parameters are found
101
- const { error: warrning } = InventoryValidator.updateJob().validate(
96
+ const { error: warrning } = InventoryValidator.disable().validate(
102
97
  {
103
- body,
98
+ integrationId,
104
99
  },
105
100
  { abortEarly: false, allowUnknown: false }
106
101
  );
107
102
  if (warrning) {
108
103
  Logger({
109
104
  level: "WARN",
110
- message: "Parameter Validation warrnings for updateJob",
105
+ message: "Parameter Validation warrnings for disable",
111
106
  });
112
107
  Logger({ level: "WARN", message: warrning });
113
108
  }
@@ -118,10 +113,10 @@ class Inventory {
118
113
 
119
114
  const response = await PlatformAPIClient.execute(
120
115
  this.config,
121
- "put",
122
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
116
+ "get",
117
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/disable/integration/${integrationId}`,
123
118
  query_params,
124
- body,
119
+ undefined,
125
120
  xHeaders
126
121
  );
127
122
 
@@ -135,7 +130,7 @@ class Inventory {
135
130
  if (res_error) {
136
131
  Logger({
137
132
  level: "WARN",
138
- message: "Response Validation Warnnings for updateJob",
133
+ message: "Response Validation Warnnings for disable",
139
134
  });
140
135
  Logger({ level: "WARN", message: res_error });
141
136
  }
@@ -145,16 +140,14 @@ class Inventory {
145
140
 
146
141
  /**
147
142
  * @param {Object} arg - Arg object.
148
- * @param {JobConfigDTO} arg.body
149
- * @returns {Promise<ResponseEnvelopeString>} - Success response
150
- * @summary: Creates A New Job Config
151
- * @description: REST Endpoint that creates a new job config
143
+ * @returns {Promise<ResponseEnvelopeListSlingshotConfigurationDetail>} -
144
+ * Success response
145
+ * @summary: Get Slingshot Configuration Of A Company
146
+ * @description: REST Endpoint that returns all configuration detail of a company
152
147
  */
153
- async createJob({ body } = {}) {
154
- const { error } = InventoryValidator.createJob().validate(
155
- {
156
- body,
157
- },
148
+ async getConfigByCompany({} = {}) {
149
+ const { error } = InventoryValidator.getConfigByCompany().validate(
150
+ {},
158
151
  { abortEarly: false, allowUnknown: true }
159
152
  );
160
153
  if (error) {
@@ -162,16 +155,16 @@ class Inventory {
162
155
  }
163
156
 
164
157
  // Showing warrnings if extra unknown parameters are found
165
- const { error: warrning } = InventoryValidator.createJob().validate(
166
- {
167
- body,
168
- },
158
+ const {
159
+ error: warrning,
160
+ } = InventoryValidator.getConfigByCompany().validate(
161
+ {},
169
162
  { abortEarly: false, allowUnknown: false }
170
163
  );
171
164
  if (warrning) {
172
165
  Logger({
173
166
  level: "WARN",
174
- message: "Parameter Validation warrnings for createJob",
167
+ message: "Parameter Validation warrnings for getConfigByCompany",
175
168
  });
176
169
  Logger({ level: "WARN", message: warrning });
177
170
  }
@@ -182,24 +175,24 @@ class Inventory {
182
175
 
183
176
  const response = await PlatformAPIClient.execute(
184
177
  this.config,
185
- "post",
186
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
178
+ "get",
179
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/slingshot`,
187
180
  query_params,
188
- body,
181
+ undefined,
189
182
  xHeaders
190
183
  );
191
184
 
192
185
  const {
193
186
  error: res_error,
194
- } = InventoryModel.ResponseEnvelopeString().validate(response, {
195
- abortEarly: false,
196
- allowUnknown: false,
197
- });
187
+ } = InventoryModel.ResponseEnvelopeListSlingshotConfigurationDetail().validate(
188
+ response,
189
+ { abortEarly: false, allowUnknown: false }
190
+ );
198
191
 
199
192
  if (res_error) {
200
193
  Logger({
201
194
  level: "WARN",
202
- message: "Response Validation Warnnings for createJob",
195
+ message: "Response Validation Warnnings for getConfigByCompany",
203
196
  });
204
197
  Logger({ level: "WARN", message: res_error });
205
198
  }
@@ -209,15 +202,15 @@ class Inventory {
209
202
 
210
203
  /**
211
204
  * @param {Object} arg - Arg object.
212
- * @param {SuppressStorePayload} arg.body
213
- * @returns {Promise<ResponseEnvelopeKafkaResponse>} - Success response
214
- * @summary: Get Slingshot Configuration Of A Company
215
- * @description: REST Endpoint that returns all configuration detail of a company
205
+ * @param {string} arg.code - Job Code
206
+ * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
207
+ * @summary: Get Job Config By Code
208
+ * @description: REST Endpoint that returns job config by code
216
209
  */
217
- async suppressStores({ body } = {}) {
218
- const { error } = InventoryValidator.suppressStores().validate(
210
+ async getJobByCode({ code } = {}) {
211
+ const { error } = InventoryValidator.getJobByCode().validate(
219
212
  {
220
- body,
213
+ code,
221
214
  },
222
215
  { abortEarly: false, allowUnknown: true }
223
216
  );
@@ -226,16 +219,16 @@ class Inventory {
226
219
  }
227
220
 
228
221
  // Showing warrnings if extra unknown parameters are found
229
- const { error: warrning } = InventoryValidator.suppressStores().validate(
222
+ const { error: warrning } = InventoryValidator.getJobByCode().validate(
230
223
  {
231
- body,
224
+ code,
232
225
  },
233
226
  { abortEarly: false, allowUnknown: false }
234
227
  );
235
228
  if (warrning) {
236
229
  Logger({
237
230
  level: "WARN",
238
- message: "Parameter Validation warrnings for suppressStores",
231
+ message: "Parameter Validation warrnings for getJobByCode",
239
232
  });
240
233
  Logger({ level: "WARN", message: warrning });
241
234
  }
@@ -246,16 +239,16 @@ class Inventory {
246
239
 
247
240
  const response = await PlatformAPIClient.execute(
248
241
  this.config,
249
- "post",
250
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/kafka/suppressStore`,
242
+ "get",
243
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}`,
251
244
  query_params,
252
- body,
245
+ undefined,
253
246
  xHeaders
254
247
  );
255
248
 
256
249
  const {
257
250
  error: res_error,
258
- } = InventoryModel.ResponseEnvelopeKafkaResponse().validate(response, {
251
+ } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
259
252
  abortEarly: false,
260
253
  allowUnknown: false,
261
254
  });
@@ -263,7 +256,7 @@ class Inventory {
263
256
  if (res_error) {
264
257
  Logger({
265
258
  level: "WARN",
266
- message: "Response Validation Warnnings for suppressStores",
259
+ message: "Response Validation Warnnings for getJobByCode",
267
260
  });
268
261
  Logger({ level: "WARN", message: res_error });
269
262
  }
@@ -273,14 +266,26 @@ class Inventory {
273
266
 
274
267
  /**
275
268
  * @param {Object} arg - Arg object.
276
- * @returns {Promise<ResponseEnvelopeListSlingshotConfigurationDetail>} -
277
- * Success response
278
- * @summary: Get Slingshot Configuration Of A Company
279
- * @description: REST Endpoint that returns all configuration detail of a company
269
+ * @param {string} arg.integrationId - Integration Id
270
+ * @param {number} [arg.pageNo] - Page Number
271
+ * @param {number} [arg.pageSize] - Page Size
272
+ * @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
273
+ * @summary: Get Job Configs By Company And Integration
274
+ * @description: REST Endpoint that returns all job configs by company And integration
280
275
  */
281
- async getConfigByCompany({} = {}) {
282
- const { error } = InventoryValidator.getConfigByCompany().validate(
283
- {},
276
+ async getJobByCompanyAndIntegration({
277
+ integrationId,
278
+ pageNo,
279
+ pageSize,
280
+ } = {}) {
281
+ const {
282
+ error,
283
+ } = InventoryValidator.getJobByCompanyAndIntegration().validate(
284
+ {
285
+ integrationId,
286
+ pageNo,
287
+ pageSize,
288
+ },
284
289
  { abortEarly: false, allowUnknown: true }
285
290
  );
286
291
  if (error) {
@@ -290,26 +295,33 @@ class Inventory {
290
295
  // Showing warrnings if extra unknown parameters are found
291
296
  const {
292
297
  error: warrning,
293
- } = InventoryValidator.getConfigByCompany().validate(
294
- {},
298
+ } = InventoryValidator.getJobByCompanyAndIntegration().validate(
299
+ {
300
+ integrationId,
301
+ pageNo,
302
+ pageSize,
303
+ },
295
304
  { abortEarly: false, allowUnknown: false }
296
305
  );
297
306
  if (warrning) {
298
307
  Logger({
299
308
  level: "WARN",
300
- message: "Parameter Validation warrnings for getConfigByCompany",
309
+ message:
310
+ "Parameter Validation warrnings for getJobByCompanyAndIntegration",
301
311
  });
302
312
  Logger({ level: "WARN", message: warrning });
303
313
  }
304
314
 
305
315
  const query_params = {};
316
+ query_params["page_no"] = pageNo;
317
+ query_params["page_size"] = pageSize;
306
318
 
307
319
  const xHeaders = {};
308
320
 
309
321
  const response = await PlatformAPIClient.execute(
310
322
  this.config,
311
323
  "get",
312
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/slingshot`,
324
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/integration/${integrationId}`,
313
325
  query_params,
314
326
  undefined,
315
327
  xHeaders
@@ -317,15 +329,16 @@ class Inventory {
317
329
 
318
330
  const {
319
331
  error: res_error,
320
- } = InventoryModel.ResponseEnvelopeListSlingshotConfigurationDetail().validate(
321
- response,
322
- { abortEarly: false, allowUnknown: false }
323
- );
332
+ } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
333
+ abortEarly: false,
334
+ allowUnknown: false,
335
+ });
324
336
 
325
337
  if (res_error) {
326
338
  Logger({
327
339
  level: "WARN",
328
- message: "Response Validation Warnnings for getConfigByCompany",
340
+ message:
341
+ "Response Validation Warnnings for getJobByCompanyAndIntegration",
329
342
  });
330
343
  Logger({ level: "WARN", message: res_error });
331
344
  }
@@ -335,15 +348,23 @@ class Inventory {
335
348
 
336
349
  /**
337
350
  * @param {Object} arg - Arg object.
338
- * @param {number} arg.jobId - Job Id
339
- * @returns {Promise<ResponseEnvelopeListJobStepsDTO>} - Success response
340
- * @summary: Get Job Code Steps
341
- * @description: REST Endpoint that returns Inventory Job Steps
351
+ * @param {string} arg.code - Code
352
+ * @param {number} [arg.pageNo] - Page Number
353
+ * @param {number} [arg.pageSize] - Page Size
354
+ * @param {string} [arg.status] - Status
355
+ * @param {string} [arg.date] - From Date
356
+ * @returns {Promise<ResponseEnvelopeJobMetricsDto>} - Success response
357
+ * @summary: Get Job Metrics
358
+ * @description: REST Endpoint that returns Inventory Run History For A Job Code
342
359
  */
343
- async getJobSteps({ jobId } = {}) {
344
- const { error } = InventoryValidator.getJobSteps().validate(
360
+ async getJobCodeMetrics({ code, pageNo, pageSize, status, date } = {}) {
361
+ const { error } = InventoryValidator.getJobCodeMetrics().validate(
345
362
  {
346
- jobId,
363
+ code,
364
+ pageNo,
365
+ pageSize,
366
+ status,
367
+ date,
347
368
  },
348
369
  { abortEarly: false, allowUnknown: true }
349
370
  );
@@ -352,28 +373,36 @@ class Inventory {
352
373
  }
353
374
 
354
375
  // Showing warrnings if extra unknown parameters are found
355
- const { error: warrning } = InventoryValidator.getJobSteps().validate(
376
+ const { error: warrning } = InventoryValidator.getJobCodeMetrics().validate(
356
377
  {
357
- jobId,
378
+ code,
379
+ pageNo,
380
+ pageSize,
381
+ status,
382
+ date,
358
383
  },
359
384
  { abortEarly: false, allowUnknown: false }
360
385
  );
361
386
  if (warrning) {
362
387
  Logger({
363
388
  level: "WARN",
364
- message: "Parameter Validation warrnings for getJobSteps",
389
+ message: "Parameter Validation warrnings for getJobCodeMetrics",
365
390
  });
366
391
  Logger({ level: "WARN", message: warrning });
367
392
  }
368
393
 
369
394
  const query_params = {};
395
+ query_params["page_no"] = pageNo;
396
+ query_params["page_size"] = pageSize;
397
+ query_params["status"] = status;
398
+ query_params["date"] = date;
370
399
 
371
400
  const xHeaders = {};
372
401
 
373
402
  const response = await PlatformAPIClient.execute(
374
403
  this.config,
375
404
  "get",
376
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/steps/${jobId}`,
405
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}/metrics`,
377
406
  query_params,
378
407
  undefined,
379
408
  xHeaders
@@ -381,7 +410,7 @@ class Inventory {
381
410
 
382
411
  const {
383
412
  error: res_error,
384
- } = InventoryModel.ResponseEnvelopeListJobStepsDTO().validate(response, {
413
+ } = InventoryModel.ResponseEnvelopeJobMetricsDto().validate(response, {
385
414
  abortEarly: false,
386
415
  allowUnknown: false,
387
416
  });
@@ -389,7 +418,7 @@ class Inventory {
389
418
  if (res_error) {
390
419
  Logger({
391
420
  level: "WARN",
392
- message: "Response Validation Warnnings for getJobSteps",
421
+ message: "Response Validation Warnnings for getJobCodeMetrics",
393
422
  });
394
423
  Logger({ level: "WARN", message: res_error });
395
424
  }
@@ -402,18 +431,18 @@ class Inventory {
402
431
  * @param {string} arg.integrationId - Integration Id
403
432
  * @param {number} [arg.pageNo] - Page Number
404
433
  * @param {number} [arg.pageSize] - Page Size
405
- * @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
406
- * @summary: Get Job Configs By Company And Integration
407
- * @description: REST Endpoint that returns all job configs by company And integration
434
+ * @returns {Promise<ResponseEnvelopeListJobConfigListDTO>} - Success response
435
+ * @summary: Get Job Codes By Company And Integration
436
+ * @description: REST Endpoint that returns all job codes by company And integration
408
437
  */
409
- async getJobByCompanyAndIntegration({
438
+ async getJobCodesByCompanyAndIntegration({
410
439
  integrationId,
411
440
  pageNo,
412
441
  pageSize,
413
442
  } = {}) {
414
443
  const {
415
444
  error,
416
- } = InventoryValidator.getJobByCompanyAndIntegration().validate(
445
+ } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
417
446
  {
418
447
  integrationId,
419
448
  pageNo,
@@ -428,7 +457,7 @@ class Inventory {
428
457
  // Showing warrnings if extra unknown parameters are found
429
458
  const {
430
459
  error: warrning,
431
- } = InventoryValidator.getJobByCompanyAndIntegration().validate(
460
+ } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
432
461
  {
433
462
  integrationId,
434
463
  pageNo,
@@ -440,7 +469,7 @@ class Inventory {
440
469
  Logger({
441
470
  level: "WARN",
442
471
  message:
443
- "Parameter Validation warrnings for getJobByCompanyAndIntegration",
472
+ "Parameter Validation warrnings for getJobCodesByCompanyAndIntegration",
444
473
  });
445
474
  Logger({ level: "WARN", message: warrning });
446
475
  }
@@ -454,7 +483,7 @@ class Inventory {
454
483
  const response = await PlatformAPIClient.execute(
455
484
  this.config,
456
485
  "get",
457
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/integration/${integrationId}`,
486
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/integration/${integrationId}`,
458
487
  query_params,
459
488
  undefined,
460
489
  xHeaders
@@ -462,16 +491,16 @@ class Inventory {
462
491
 
463
492
  const {
464
493
  error: res_error,
465
- } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
466
- abortEarly: false,
467
- allowUnknown: false,
468
- });
494
+ } = InventoryModel.ResponseEnvelopeListJobConfigListDTO().validate(
495
+ response,
496
+ { abortEarly: false, allowUnknown: false }
497
+ );
469
498
 
470
499
  if (res_error) {
471
500
  Logger({
472
501
  level: "WARN",
473
502
  message:
474
- "Response Validation Warnnings for getJobByCompanyAndIntegration",
503
+ "Response Validation Warnnings for getJobCodesByCompanyAndIntegration",
475
504
  });
476
505
  Logger({ level: "WARN", message: res_error });
477
506
  }
@@ -481,16 +510,13 @@ class Inventory {
481
510
 
482
511
  /**
483
512
  * @param {Object} arg - Arg object.
484
- * @param {string} arg.integrationId - IntegrationId
485
- * @returns {Promise<ResponseEnvelopeString>} - Success response
486
- * @summary: Disable Job Config
487
- * @description: REST Endpoint that disables Inventory Job Config
513
+ * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
514
+ * @summary: Get Job Configs Defaults
515
+ * @description: REST Endpoint that returns default fields job configs by company And integration
488
516
  */
489
- async disable({ integrationId } = {}) {
490
- const { error } = InventoryValidator.disable().validate(
491
- {
492
- integrationId,
493
- },
517
+ async getJobConfigDefaults({} = {}) {
518
+ const { error } = InventoryValidator.getJobConfigDefaults().validate(
519
+ {},
494
520
  { abortEarly: false, allowUnknown: true }
495
521
  );
496
522
  if (error) {
@@ -498,16 +524,16 @@ class Inventory {
498
524
  }
499
525
 
500
526
  // Showing warrnings if extra unknown parameters are found
501
- const { error: warrning } = InventoryValidator.disable().validate(
502
- {
503
- integrationId,
504
- },
527
+ const {
528
+ error: warrning,
529
+ } = InventoryValidator.getJobConfigDefaults().validate(
530
+ {},
505
531
  { abortEarly: false, allowUnknown: false }
506
532
  );
507
533
  if (warrning) {
508
534
  Logger({
509
535
  level: "WARN",
510
- message: "Parameter Validation warrnings for disable",
536
+ message: "Parameter Validation warrnings for getJobConfigDefaults",
511
537
  });
512
538
  Logger({ level: "WARN", message: warrning });
513
539
  }
@@ -519,7 +545,7 @@ class Inventory {
519
545
  const response = await PlatformAPIClient.execute(
520
546
  this.config,
521
547
  "get",
522
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/disable/integration/${integrationId}`,
548
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/defaults`,
523
549
  query_params,
524
550
  undefined,
525
551
  xHeaders
@@ -527,7 +553,7 @@ class Inventory {
527
553
 
528
554
  const {
529
555
  error: res_error,
530
- } = InventoryModel.ResponseEnvelopeString().validate(response, {
556
+ } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
531
557
  abortEarly: false,
532
558
  allowUnknown: false,
533
559
  });
@@ -535,7 +561,7 @@ class Inventory {
535
561
  if (res_error) {
536
562
  Logger({
537
563
  level: "WARN",
538
- message: "Response Validation Warnnings for disable",
564
+ message: "Response Validation Warnnings for getJobConfigDefaults",
539
565
  });
540
566
  Logger({ level: "WARN", message: res_error });
541
567
  }
@@ -545,13 +571,16 @@ class Inventory {
545
571
 
546
572
  /**
547
573
  * @param {Object} arg - Arg object.
548
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
549
- * @summary: Get Job Configs Defaults
550
- * @description: REST Endpoint that returns default fields job configs by company And integration
574
+ * @param {number} arg.jobId - Job Id
575
+ * @returns {Promise<ResponseEnvelopeListJobStepsDTO>} - Success response
576
+ * @summary: Get Job Code Steps
577
+ * @description: REST Endpoint that returns Inventory Job Steps
551
578
  */
552
- async getJobConfigDefaults({} = {}) {
553
- const { error } = InventoryValidator.getJobConfigDefaults().validate(
554
- {},
579
+ async getJobSteps({ jobId } = {}) {
580
+ const { error } = InventoryValidator.getJobSteps().validate(
581
+ {
582
+ jobId,
583
+ },
555
584
  { abortEarly: false, allowUnknown: true }
556
585
  );
557
586
  if (error) {
@@ -559,16 +588,16 @@ class Inventory {
559
588
  }
560
589
 
561
590
  // Showing warrnings if extra unknown parameters are found
562
- const {
563
- error: warrning,
564
- } = InventoryValidator.getJobConfigDefaults().validate(
565
- {},
591
+ const { error: warrning } = InventoryValidator.getJobSteps().validate(
592
+ {
593
+ jobId,
594
+ },
566
595
  { abortEarly: false, allowUnknown: false }
567
596
  );
568
597
  if (warrning) {
569
598
  Logger({
570
599
  level: "WARN",
571
- message: "Parameter Validation warrnings for getJobConfigDefaults",
600
+ message: "Parameter Validation warrnings for getJobSteps",
572
601
  });
573
602
  Logger({ level: "WARN", message: warrning });
574
603
  }
@@ -580,7 +609,7 @@ class Inventory {
580
609
  const response = await PlatformAPIClient.execute(
581
610
  this.config,
582
611
  "get",
583
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/defaults`,
612
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/steps/${jobId}`,
584
613
  query_params,
585
614
  undefined,
586
615
  xHeaders
@@ -588,7 +617,7 @@ class Inventory {
588
617
 
589
618
  const {
590
619
  error: res_error,
591
- } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
620
+ } = InventoryModel.ResponseEnvelopeListJobStepsDTO().validate(response, {
592
621
  abortEarly: false,
593
622
  allowUnknown: false,
594
623
  });
@@ -596,7 +625,7 @@ class Inventory {
596
625
  if (res_error) {
597
626
  Logger({
598
627
  level: "WARN",
599
- message: "Response Validation Warnnings for getJobConfigDefaults",
628
+ message: "Response Validation Warnnings for getJobSteps",
600
629
  });
601
630
  Logger({ level: "WARN", message: res_error });
602
631
  }
@@ -606,15 +635,17 @@ class Inventory {
606
635
 
607
636
  /**
608
637
  * @param {Object} arg - Arg object.
609
- * @param {string} arg.code - Job Code
610
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
611
- * @summary: Get Job Config By Code
612
- * @description: REST Endpoint that returns job config by code
638
+ * @param {number} [arg.pageNo] - Page Number
639
+ * @param {number} [arg.pageSize] - Page Size
640
+ * @returns {Promise<ResponseEnvelopeListJobConfigRawDTO>} - Success response
641
+ * @summary: Get Job Configs For A Company
642
+ * @description: REST Endpoint that returns all job configs for a company
613
643
  */
614
- async getJobByCode({ code } = {}) {
615
- const { error } = InventoryValidator.getJobByCode().validate(
644
+ async getJobsByCompany({ pageNo, pageSize } = {}) {
645
+ const { error } = InventoryValidator.getJobsByCompany().validate(
616
646
  {
617
- code,
647
+ pageNo,
648
+ pageSize,
618
649
  },
619
650
  { abortEarly: false, allowUnknown: true }
620
651
  );
@@ -623,28 +654,31 @@ class Inventory {
623
654
  }
624
655
 
625
656
  // Showing warrnings if extra unknown parameters are found
626
- const { error: warrning } = InventoryValidator.getJobByCode().validate(
657
+ const { error: warrning } = InventoryValidator.getJobsByCompany().validate(
627
658
  {
628
- code,
659
+ pageNo,
660
+ pageSize,
629
661
  },
630
662
  { abortEarly: false, allowUnknown: false }
631
663
  );
632
664
  if (warrning) {
633
665
  Logger({
634
666
  level: "WARN",
635
- message: "Parameter Validation warrnings for getJobByCode",
667
+ message: "Parameter Validation warrnings for getJobsByCompany",
636
668
  });
637
669
  Logger({ level: "WARN", message: warrning });
638
670
  }
639
671
 
640
672
  const query_params = {};
673
+ query_params["page_no"] = pageNo;
674
+ query_params["page_size"] = pageSize;
641
675
 
642
676
  const xHeaders = {};
643
677
 
644
678
  const response = await PlatformAPIClient.execute(
645
679
  this.config,
646
680
  "get",
647
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}`,
681
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
648
682
  query_params,
649
683
  undefined,
650
684
  xHeaders
@@ -652,15 +686,15 @@ class Inventory {
652
686
 
653
687
  const {
654
688
  error: res_error,
655
- } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
656
- abortEarly: false,
657
- allowUnknown: false,
658
- });
689
+ } = InventoryModel.ResponseEnvelopeListJobConfigRawDTO().validate(
690
+ response,
691
+ { abortEarly: false, allowUnknown: false }
692
+ );
659
693
 
660
694
  if (res_error) {
661
695
  Logger({
662
696
  level: "WARN",
663
- message: "Response Validation Warnnings for getJobByCode",
697
+ message: "Response Validation Warnnings for getJobsByCompany",
664
698
  });
665
699
  Logger({ level: "WARN", message: res_error });
666
700
  }
@@ -670,23 +704,15 @@ class Inventory {
670
704
 
671
705
  /**
672
706
  * @param {Object} arg - Arg object.
673
- * @param {string} arg.code - Code
674
- * @param {number} [arg.pageNo] - Page Number
675
- * @param {number} [arg.pageSize] - Page Size
676
- * @param {string} [arg.status] - Status
677
- * @param {string} [arg.date] - From Date
678
- * @returns {Promise<ResponseEnvelopeJobMetricsDto>} - Success response
679
- * @summary: Get Job Metrics
680
- * @description: REST Endpoint that returns Inventory Run History For A Job Code
707
+ * @param {SuppressStorePayload} arg.body
708
+ * @returns {Promise<ResponseEnvelopeKafkaResponse>} - Success response
709
+ * @summary: Get Slingshot Configuration Of A Company
710
+ * @description: REST Endpoint that returns all configuration detail of a company
681
711
  */
682
- async getJobCodeMetrics({ code, pageNo, pageSize, status, date } = {}) {
683
- const { error } = InventoryValidator.getJobCodeMetrics().validate(
712
+ async suppressStores({ body } = {}) {
713
+ const { error } = InventoryValidator.suppressStores().validate(
684
714
  {
685
- code,
686
- pageNo,
687
- pageSize,
688
- status,
689
- date,
715
+ body,
690
716
  },
691
717
  { abortEarly: false, allowUnknown: true }
692
718
  );
@@ -695,44 +721,36 @@ class Inventory {
695
721
  }
696
722
 
697
723
  // Showing warrnings if extra unknown parameters are found
698
- const { error: warrning } = InventoryValidator.getJobCodeMetrics().validate(
724
+ const { error: warrning } = InventoryValidator.suppressStores().validate(
699
725
  {
700
- code,
701
- pageNo,
702
- pageSize,
703
- status,
704
- date,
726
+ body,
705
727
  },
706
728
  { abortEarly: false, allowUnknown: false }
707
729
  );
708
730
  if (warrning) {
709
731
  Logger({
710
732
  level: "WARN",
711
- message: "Parameter Validation warrnings for getJobCodeMetrics",
733
+ message: "Parameter Validation warrnings for suppressStores",
712
734
  });
713
735
  Logger({ level: "WARN", message: warrning });
714
736
  }
715
737
 
716
738
  const query_params = {};
717
- query_params["page_no"] = pageNo;
718
- query_params["page_size"] = pageSize;
719
- query_params["status"] = status;
720
- query_params["date"] = date;
721
739
 
722
740
  const xHeaders = {};
723
741
 
724
742
  const response = await PlatformAPIClient.execute(
725
743
  this.config,
726
- "get",
727
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/${code}/metrics`,
744
+ "post",
745
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/kafka/suppressStore`,
728
746
  query_params,
729
- undefined,
747
+ body,
730
748
  xHeaders
731
749
  );
732
750
 
733
751
  const {
734
752
  error: res_error,
735
- } = InventoryModel.ResponseEnvelopeJobMetricsDto().validate(response, {
753
+ } = InventoryModel.ResponseEnvelopeKafkaResponse().validate(response, {
736
754
  abortEarly: false,
737
755
  allowUnknown: false,
738
756
  });
@@ -740,7 +758,7 @@ class Inventory {
740
758
  if (res_error) {
741
759
  Logger({
742
760
  level: "WARN",
743
- message: "Response Validation Warnnings for getJobCodeMetrics",
761
+ message: "Response Validation Warnnings for suppressStores",
744
762
  });
745
763
  Logger({ level: "WARN", message: res_error });
746
764
  }
@@ -750,25 +768,15 @@ class Inventory {
750
768
 
751
769
  /**
752
770
  * @param {Object} arg - Arg object.
753
- * @param {string} arg.integrationId - Integration Id
754
- * @param {number} [arg.pageNo] - Page Number
755
- * @param {number} [arg.pageSize] - Page Size
756
- * @returns {Promise<ResponseEnvelopeListJobConfigListDTO>} - Success response
757
- * @summary: Get Job Codes By Company And Integration
758
- * @description: REST Endpoint that returns all job codes by company And integration
771
+ * @param {JobConfigDTO} arg.body
772
+ * @returns {Promise<ResponseEnvelopeString>} - Success response
773
+ * @summary: Updates An Existing Job Config
774
+ * @description: REST Endpoint that updates a job config
759
775
  */
760
- async getJobCodesByCompanyAndIntegration({
761
- integrationId,
762
- pageNo,
763
- pageSize,
764
- } = {}) {
765
- const {
766
- error,
767
- } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
776
+ async updateJob({ body } = {}) {
777
+ const { error } = InventoryValidator.updateJob().validate(
768
778
  {
769
- integrationId,
770
- pageNo,
771
- pageSize,
779
+ body,
772
780
  },
773
781
  { abortEarly: false, allowUnknown: true }
774
782
  );
@@ -777,52 +785,44 @@ class Inventory {
777
785
  }
778
786
 
779
787
  // Showing warrnings if extra unknown parameters are found
780
- const {
781
- error: warrning,
782
- } = InventoryValidator.getJobCodesByCompanyAndIntegration().validate(
788
+ const { error: warrning } = InventoryValidator.updateJob().validate(
783
789
  {
784
- integrationId,
785
- pageNo,
786
- pageSize,
790
+ body,
787
791
  },
788
792
  { abortEarly: false, allowUnknown: false }
789
793
  );
790
794
  if (warrning) {
791
795
  Logger({
792
796
  level: "WARN",
793
- message:
794
- "Parameter Validation warrnings for getJobCodesByCompanyAndIntegration",
797
+ message: "Parameter Validation warrnings for updateJob",
795
798
  });
796
799
  Logger({ level: "WARN", message: warrning });
797
800
  }
798
801
 
799
802
  const query_params = {};
800
- query_params["page_no"] = pageNo;
801
- query_params["page_size"] = pageSize;
802
803
 
803
804
  const xHeaders = {};
804
805
 
805
806
  const response = await PlatformAPIClient.execute(
806
807
  this.config,
807
- "get",
808
- `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs/code/integration/${integrationId}`,
808
+ "put",
809
+ `/service/platform/inventory/v1.0/company/${this.config.companyId}/jobs`,
809
810
  query_params,
810
- undefined,
811
+ body,
811
812
  xHeaders
812
813
  );
813
814
 
814
815
  const {
815
816
  error: res_error,
816
- } = InventoryModel.ResponseEnvelopeListJobConfigListDTO().validate(
817
- response,
818
- { abortEarly: false, allowUnknown: false }
819
- );
817
+ } = InventoryModel.ResponseEnvelopeString().validate(response, {
818
+ abortEarly: false,
819
+ allowUnknown: false,
820
+ });
820
821
 
821
822
  if (res_error) {
822
823
  Logger({
823
824
  level: "WARN",
824
- message:
825
- "Response Validation Warnnings for getJobCodesByCompanyAndIntegration",
825
+ message: "Response Validation Warnnings for updateJob",
826
826
  });
827
827
  Logger({ level: "WARN", message: res_error });
828
828
  }