@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
@@ -10,15 +10,15 @@ class Inventory {
10
10
  constructor(_conf) {
11
11
  this._conf = _conf;
12
12
  this._relativeUrls = {
13
- getJobCodesMetrics:
14
- "/service/common/inventory/v1.0/company/email/jobCode",
15
- saveJobCodesMetrics:
16
- "/service/common/inventory/v1.0/company/email/jobCode",
17
- getConfigByApiKey: "/service/common/inventory/v1.0/company/slingshot",
18
13
  getApiKey: "/service/common/inventory/v1.0/company/slingshot/apikey",
14
+ getConfigByApiKey: "/service/common/inventory/v1.0/company/slingshot",
19
15
  getJobByCode: "/service/common/inventory/v1.0/company/jobs/code/{code}",
16
+ getJobCodesMetrics:
17
+ "/service/common/inventory/v1.0/company/email/jobCode",
20
18
  getJobConfigByIntegrationType:
21
19
  "/service/common/inventory/v1.0/company/job/config",
20
+ saveJobCodesMetrics:
21
+ "/service/common/inventory/v1.0/company/email/jobCode",
22
22
  };
23
23
  this._urls = Object.entries(this._relativeUrls).reduce(
24
24
  (urls, [method, relativeUrl]) => {
@@ -38,15 +38,15 @@ class Inventory {
38
38
 
39
39
  /**
40
40
  * @param {Object} arg - Arg object.
41
- * @param {boolean} [arg.dailyJob] - Daily Job Flag
42
- * @param {string} [arg.jobCode] - Email Job Code
43
- * @returns {Promise<ResponseEnvelopeObject>} - Success response
44
- * @summary: Find all the JobCodes from Metrics Collection based on the field Values
45
- * @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
46
46
  */
47
- async getJobCodesMetrics({ dailyJob, jobCode } = {}) {
48
- const { error } = InventoryValidator.getJobCodesMetrics().validate(
49
- { dailyJob, jobCode },
47
+ async getApiKey({ userName, password } = {}) {
48
+ const { error } = InventoryValidator.getApiKey().validate(
49
+ { userName, password },
50
50
  { abortEarly: false, allowUnknown: true }
51
51
  );
52
52
  if (error) {
@@ -54,23 +54,21 @@ class Inventory {
54
54
  }
55
55
 
56
56
  // Showing warrnings if extra unknown parameters are found
57
- const {
58
- error: warrning,
59
- } = InventoryValidator.getJobCodesMetrics().validate(
60
- { dailyJob, jobCode },
57
+ const { error: warrning } = InventoryValidator.getApiKey().validate(
58
+ { userName, password },
61
59
  { abortEarly: false, allowUnknown: false }
62
60
  );
63
61
  if (warrning) {
64
62
  Logger({
65
63
  level: "WARN",
66
- message: "Parameter Validation warrnings for getJobCodesMetrics",
64
+ message: "Parameter Validation warrnings for getApiKey",
67
65
  });
68
66
  Logger({ level: "WARN", message: warrning });
69
67
  }
70
68
 
71
69
  const query_params = {};
72
- query_params["daily_job"] = dailyJob;
73
- query_params["job_code"] = jobCode;
70
+ query_params["user_name"] = userName;
71
+ query_params["password"] = password;
74
72
 
75
73
  const xHeaders = {};
76
74
 
@@ -78,7 +76,7 @@ class Inventory {
78
76
  this._conf,
79
77
  "get",
80
78
  constructUrl({
81
- url: this._urls["getJobCodesMetrics"],
79
+ url: this._urls["getApiKey"],
82
80
  params: {},
83
81
  }),
84
82
  query_params,
@@ -88,7 +86,7 @@ class Inventory {
88
86
 
89
87
  const {
90
88
  error: res_error,
91
- } = InventoryModel.ResponseEnvelopeObject().validate(response, {
89
+ } = InventoryModel.ResponseEnvelopeApikeyModel().validate(response, {
92
90
  abortEarly: false,
93
91
  allowUnknown: false,
94
92
  });
@@ -96,7 +94,7 @@ class Inventory {
96
94
  if (res_error) {
97
95
  Logger({
98
96
  level: "WARN",
99
- message: "Response Validation Warnnings for getJobCodesMetrics",
97
+ message: "Response Validation Warnnings for getApiKey",
100
98
  });
101
99
  Logger({ level: "WARN", message: res_error });
102
100
  }
@@ -106,14 +104,14 @@ class Inventory {
106
104
 
107
105
  /**
108
106
  * @param {Object} arg - Arg object.
109
- * @param {EmailJobMetrics} arg.body
110
- * @returns {Promise<ResponseEnvelopeEmailJobMetrics>} - Success response
111
- * @summary: Save JobCode Metrics
112
- * @description: Endpoint to save JobCode Metrics
107
+ * @param {string} arg.apikey - Api key
108
+ * @returns {Promise<ResponseEnvelopeSlingshotConfigurationDetail>} - Success response
109
+ * @summary: Get Slingshot Configuration Of A Company using API key
110
+ * @description: REST Endpoint that returns all configuration detail of a company
113
111
  */
114
- async saveJobCodesMetrics({ body } = {}) {
115
- const { error } = InventoryValidator.saveJobCodesMetrics().validate(
116
- { body },
112
+ async getConfigByApiKey({ apikey } = {}) {
113
+ const { error } = InventoryValidator.getConfigByApiKey().validate(
114
+ { apikey },
117
115
  { abortEarly: false, allowUnknown: true }
118
116
  );
119
117
  if (error) {
@@ -121,47 +119,46 @@ class Inventory {
121
119
  }
122
120
 
123
121
  // Showing warrnings if extra unknown parameters are found
124
- const {
125
- error: warrning,
126
- } = InventoryValidator.saveJobCodesMetrics().validate(
127
- { body },
122
+ const { error: warrning } = InventoryValidator.getConfigByApiKey().validate(
123
+ { apikey },
128
124
  { abortEarly: false, allowUnknown: false }
129
125
  );
130
126
  if (warrning) {
131
127
  Logger({
132
128
  level: "WARN",
133
- message: "Parameter Validation warrnings for saveJobCodesMetrics",
129
+ message: "Parameter Validation warrnings for getConfigByApiKey",
134
130
  });
135
131
  Logger({ level: "WARN", message: warrning });
136
132
  }
137
133
 
138
134
  const query_params = {};
135
+ query_params["apikey"] = apikey;
139
136
 
140
137
  const xHeaders = {};
141
138
 
142
139
  const response = await PublicAPIClient.execute(
143
140
  this._conf,
144
- "post",
141
+ "get",
145
142
  constructUrl({
146
- url: this._urls["saveJobCodesMetrics"],
143
+ url: this._urls["getConfigByApiKey"],
147
144
  params: {},
148
145
  }),
149
146
  query_params,
150
- body,
147
+ undefined,
151
148
  xHeaders
152
149
  );
153
150
 
154
151
  const {
155
152
  error: res_error,
156
- } = InventoryModel.ResponseEnvelopeEmailJobMetrics().validate(response, {
157
- abortEarly: false,
158
- allowUnknown: false,
159
- });
153
+ } = InventoryModel.ResponseEnvelopeSlingshotConfigurationDetail().validate(
154
+ response,
155
+ { abortEarly: false, allowUnknown: false }
156
+ );
160
157
 
161
158
  if (res_error) {
162
159
  Logger({
163
160
  level: "WARN",
164
- message: "Response Validation Warnnings for saveJobCodesMetrics",
161
+ message: "Response Validation Warnnings for getConfigByApiKey",
165
162
  });
166
163
  Logger({ level: "WARN", message: res_error });
167
164
  }
@@ -171,14 +168,14 @@ class Inventory {
171
168
 
172
169
  /**
173
170
  * @param {Object} arg - Arg object.
174
- * @param {string} arg.apikey - Api key
175
- * @returns {Promise<ResponseEnvelopeSlingshotConfigurationDetail>} - Success response
176
- * @summary: Get Slingshot Configuration Of A Company using API key
177
- * @description: REST Endpoint that returns all configuration detail of a company
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
178
175
  */
179
- async getConfigByApiKey({ apikey } = {}) {
180
- const { error } = InventoryValidator.getConfigByApiKey().validate(
181
- { apikey },
176
+ async getJobByCode({ code } = {}) {
177
+ const { error } = InventoryValidator.getJobByCode().validate(
178
+ { code },
182
179
  { abortEarly: false, allowUnknown: true }
183
180
  );
184
181
  if (error) {
@@ -186,20 +183,19 @@ class Inventory {
186
183
  }
187
184
 
188
185
  // Showing warrnings if extra unknown parameters are found
189
- const { error: warrning } = InventoryValidator.getConfigByApiKey().validate(
190
- { apikey },
186
+ const { error: warrning } = InventoryValidator.getJobByCode().validate(
187
+ { code },
191
188
  { abortEarly: false, allowUnknown: false }
192
189
  );
193
190
  if (warrning) {
194
191
  Logger({
195
192
  level: "WARN",
196
- message: "Parameter Validation warrnings for getConfigByApiKey",
193
+ message: "Parameter Validation warrnings for getJobByCode",
197
194
  });
198
195
  Logger({ level: "WARN", message: warrning });
199
196
  }
200
197
 
201
198
  const query_params = {};
202
- query_params["apikey"] = apikey;
203
199
 
204
200
  const xHeaders = {};
205
201
 
@@ -207,8 +203,8 @@ class Inventory {
207
203
  this._conf,
208
204
  "get",
209
205
  constructUrl({
210
- url: this._urls["getConfigByApiKey"],
211
- params: {},
206
+ url: this._urls["getJobByCode"],
207
+ params: { code },
212
208
  }),
213
209
  query_params,
214
210
  undefined,
@@ -217,15 +213,15 @@ class Inventory {
217
213
 
218
214
  const {
219
215
  error: res_error,
220
- } = InventoryModel.ResponseEnvelopeSlingshotConfigurationDetail().validate(
221
- response,
222
- { abortEarly: false, allowUnknown: false }
223
- );
216
+ } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
217
+ abortEarly: false,
218
+ allowUnknown: false,
219
+ });
224
220
 
225
221
  if (res_error) {
226
222
  Logger({
227
223
  level: "WARN",
228
- message: "Response Validation Warnnings for getConfigByApiKey",
224
+ message: "Response Validation Warnnings for getJobByCode",
229
225
  });
230
226
  Logger({ level: "WARN", message: res_error });
231
227
  }
@@ -235,15 +231,15 @@ class Inventory {
235
231
 
236
232
  /**
237
233
  * @param {Object} arg - Arg object.
238
- * @param {string} arg.userName - Integration id
239
- * @param {string} arg.password - Company/store token
240
- * @returns {Promise<ResponseEnvelopeApikeyModel>} - Success response
241
- * @summary: Get apikey for Company to call other Slingshot Configuration APIs
242
- * @description: REST Endpoint that returns apikey by username by password
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
243
239
  */
244
- async getApiKey({ userName, password } = {}) {
245
- const { error } = InventoryValidator.getApiKey().validate(
246
- { userName, password },
240
+ async getJobCodesMetrics({ dailyJob, jobCode } = {}) {
241
+ const { error } = InventoryValidator.getJobCodesMetrics().validate(
242
+ { dailyJob, jobCode },
247
243
  { abortEarly: false, allowUnknown: true }
248
244
  );
249
245
  if (error) {
@@ -251,21 +247,23 @@ class Inventory {
251
247
  }
252
248
 
253
249
  // Showing warrnings if extra unknown parameters are found
254
- const { error: warrning } = InventoryValidator.getApiKey().validate(
255
- { userName, password },
250
+ const {
251
+ error: warrning,
252
+ } = InventoryValidator.getJobCodesMetrics().validate(
253
+ { dailyJob, jobCode },
256
254
  { abortEarly: false, allowUnknown: false }
257
255
  );
258
256
  if (warrning) {
259
257
  Logger({
260
258
  level: "WARN",
261
- message: "Parameter Validation warrnings for getApiKey",
259
+ message: "Parameter Validation warrnings for getJobCodesMetrics",
262
260
  });
263
261
  Logger({ level: "WARN", message: warrning });
264
262
  }
265
263
 
266
264
  const query_params = {};
267
- query_params["user_name"] = userName;
268
- query_params["password"] = password;
265
+ query_params["daily_job"] = dailyJob;
266
+ query_params["job_code"] = jobCode;
269
267
 
270
268
  const xHeaders = {};
271
269
 
@@ -273,7 +271,7 @@ class Inventory {
273
271
  this._conf,
274
272
  "get",
275
273
  constructUrl({
276
- url: this._urls["getApiKey"],
274
+ url: this._urls["getJobCodesMetrics"],
277
275
  params: {},
278
276
  }),
279
277
  query_params,
@@ -283,7 +281,7 @@ class Inventory {
283
281
 
284
282
  const {
285
283
  error: res_error,
286
- } = InventoryModel.ResponseEnvelopeApikeyModel().validate(response, {
284
+ } = InventoryModel.ResponseEnvelopeObject().validate(response, {
287
285
  abortEarly: false,
288
286
  allowUnknown: false,
289
287
  });
@@ -291,7 +289,7 @@ class Inventory {
291
289
  if (res_error) {
292
290
  Logger({
293
291
  level: "WARN",
294
- message: "Response Validation Warnnings for getApiKey",
292
+ message: "Response Validation Warnnings for getJobCodesMetrics",
295
293
  });
296
294
  Logger({ level: "WARN", message: res_error });
297
295
  }
@@ -301,14 +299,17 @@ class Inventory {
301
299
 
302
300
  /**
303
301
  * @param {Object} arg - Arg object.
304
- * @param {string} arg.code - Job Code
305
- * @returns {Promise<ResponseEnvelopeJobConfigDTO>} - Success response
306
- * @summary: Get Job Config By Code
307
- * @description: REST Endpoint that returns job config by code
302
+ * @param {string} arg.integrationType - Integration Type
303
+ * @param {boolean} [arg.disable] - JobConfig current state
304
+ * @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
305
+ * @summary: Get Job Configs By Integration Type
306
+ * @description: REST Endpoint that returns all job Configs by Integration Type
308
307
  */
309
- async getJobByCode({ code } = {}) {
310
- const { error } = InventoryValidator.getJobByCode().validate(
311
- { code },
308
+ async getJobConfigByIntegrationType({ integrationType, disable } = {}) {
309
+ const {
310
+ error,
311
+ } = InventoryValidator.getJobConfigByIntegrationType().validate(
312
+ { integrationType, disable },
312
313
  { abortEarly: false, allowUnknown: true }
313
314
  );
314
315
  if (error) {
@@ -316,19 +317,24 @@ class Inventory {
316
317
  }
317
318
 
318
319
  // Showing warrnings if extra unknown parameters are found
319
- const { error: warrning } = InventoryValidator.getJobByCode().validate(
320
- { code },
320
+ const {
321
+ error: warrning,
322
+ } = InventoryValidator.getJobConfigByIntegrationType().validate(
323
+ { integrationType, disable },
321
324
  { abortEarly: false, allowUnknown: false }
322
325
  );
323
326
  if (warrning) {
324
327
  Logger({
325
328
  level: "WARN",
326
- message: "Parameter Validation warrnings for getJobByCode",
329
+ message:
330
+ "Parameter Validation warrnings for getJobConfigByIntegrationType",
327
331
  });
328
332
  Logger({ level: "WARN", message: warrning });
329
333
  }
330
334
 
331
335
  const query_params = {};
336
+ query_params["integration_type"] = integrationType;
337
+ query_params["disable"] = disable;
332
338
 
333
339
  const xHeaders = {};
334
340
 
@@ -336,8 +342,8 @@ class Inventory {
336
342
  this._conf,
337
343
  "get",
338
344
  constructUrl({
339
- url: this._urls["getJobByCode"],
340
- params: { code },
345
+ url: this._urls["getJobConfigByIntegrationType"],
346
+ params: {},
341
347
  }),
342
348
  query_params,
343
349
  undefined,
@@ -346,7 +352,7 @@ class Inventory {
346
352
 
347
353
  const {
348
354
  error: res_error,
349
- } = InventoryModel.ResponseEnvelopeJobConfigDTO().validate(response, {
355
+ } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
350
356
  abortEarly: false,
351
357
  allowUnknown: false,
352
358
  });
@@ -354,7 +360,8 @@ class Inventory {
354
360
  if (res_error) {
355
361
  Logger({
356
362
  level: "WARN",
357
- message: "Response Validation Warnnings for getJobByCode",
363
+ message:
364
+ "Response Validation Warnnings for getJobConfigByIntegrationType",
358
365
  });
359
366
  Logger({ level: "WARN", message: res_error });
360
367
  }
@@ -364,17 +371,14 @@ class Inventory {
364
371
 
365
372
  /**
366
373
  * @param {Object} arg - Arg object.
367
- * @param {string} arg.integrationType - Integration Type
368
- * @param {boolean} [arg.disable] - JobConfig current state
369
- * @returns {Promise<ResponseEnvelopeListJobConfigDTO>} - Success response
370
- * @summary: Get Job Configs By Integration Type
371
- * @description: REST Endpoint that returns all job Configs by Integration Type
374
+ * @param {EmailJobMetrics} arg.body
375
+ * @returns {Promise<ResponseEnvelopeEmailJobMetrics>} - Success response
376
+ * @summary: Save JobCode Metrics
377
+ * @description: Endpoint to save JobCode Metrics
372
378
  */
373
- async getJobConfigByIntegrationType({ integrationType, disable } = {}) {
374
- const {
375
- error,
376
- } = InventoryValidator.getJobConfigByIntegrationType().validate(
377
- { integrationType, disable },
379
+ async saveJobCodesMetrics({ body } = {}) {
380
+ const { error } = InventoryValidator.saveJobCodesMetrics().validate(
381
+ { body },
378
382
  { abortEarly: false, allowUnknown: true }
379
383
  );
380
384
  if (error) {
@@ -384,40 +388,37 @@ class Inventory {
384
388
  // Showing warrnings if extra unknown parameters are found
385
389
  const {
386
390
  error: warrning,
387
- } = InventoryValidator.getJobConfigByIntegrationType().validate(
388
- { integrationType, disable },
391
+ } = InventoryValidator.saveJobCodesMetrics().validate(
392
+ { body },
389
393
  { abortEarly: false, allowUnknown: false }
390
394
  );
391
395
  if (warrning) {
392
396
  Logger({
393
397
  level: "WARN",
394
- message:
395
- "Parameter Validation warrnings for getJobConfigByIntegrationType",
398
+ message: "Parameter Validation warrnings for saveJobCodesMetrics",
396
399
  });
397
400
  Logger({ level: "WARN", message: warrning });
398
401
  }
399
402
 
400
403
  const query_params = {};
401
- query_params["integration_type"] = integrationType;
402
- query_params["disable"] = disable;
403
404
 
404
405
  const xHeaders = {};
405
406
 
406
407
  const response = await PublicAPIClient.execute(
407
408
  this._conf,
408
- "get",
409
+ "post",
409
410
  constructUrl({
410
- url: this._urls["getJobConfigByIntegrationType"],
411
+ url: this._urls["saveJobCodesMetrics"],
411
412
  params: {},
412
413
  }),
413
414
  query_params,
414
- undefined,
415
+ body,
415
416
  xHeaders
416
417
  );
417
418
 
418
419
  const {
419
420
  error: res_error,
420
- } = InventoryModel.ResponseEnvelopeListJobConfigDTO().validate(response, {
421
+ } = InventoryModel.ResponseEnvelopeEmailJobMetrics().validate(response, {
421
422
  abortEarly: false,
422
423
  allowUnknown: false,
423
424
  });
@@ -425,8 +426,7 @@ class Inventory {
425
426
  if (res_error) {
426
427
  Logger({
427
428
  level: "WARN",
428
- message:
429
- "Response Validation Warnnings for getJobConfigByIntegrationType",
429
+ message: "Response Validation Warnnings for saveJobCodesMetrics",
430
430
  });
431
431
  Logger({ level: "WARN", message: res_error });
432
432
  }
@@ -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
  }