@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
@@ -2,6 +2,23 @@ export = Webhook;
2
2
  declare class Webhook {
3
3
  constructor(config: any);
4
4
  config: any;
5
+ /**
6
+ * @param {Object} arg - Arg object.
7
+ * @returns {Promise<EventConfigResponse>} - Success response
8
+ * @summary:
9
+ * @description: Get All Webhook Events
10
+ */
11
+ fetchAllEventConfigurations({}?: any): Promise<EventConfigResponse>;
12
+ /**
13
+ * @param {Object} arg - Arg object.
14
+ * @param {number} arg.subscriberId - Subscriber ID
15
+ * @returns {Promise<SubscriberResponse>} - Success response
16
+ * @summary: Get Subscriber By Subscriber ID
17
+ * @description: Get Subscriber By Subscriber ID
18
+ */
19
+ getSubscriberById({ subscriberId }?: {
20
+ subscriberId: number;
21
+ }): Promise<SubscriberResponse>;
5
22
  /**
6
23
  * @param {Object} arg - Arg object.
7
24
  * @param {number} [arg.pageNo] - Page Number
@@ -16,26 +33,6 @@ declare class Webhook {
16
33
  pageSize?: number;
17
34
  extensionId?: string;
18
35
  }): Promise<SubscriberResponse>;
19
- /**
20
- * @param {Object} arg - Arg object.
21
- * @param {SubscriberConfig} arg.body
22
- * @returns {Promise<SubscriberConfig>} - Success response
23
- * @summary: Register Subscriber
24
- * @description: Register Subscriber
25
- */
26
- registerSubscriberToEvent({ body }?: {
27
- body: SubscriberConfig;
28
- }): Promise<SubscriberConfig>;
29
- /**
30
- * @param {Object} arg - Arg object.
31
- * @param {SubscriberConfig} arg.body
32
- * @returns {Promise<SubscriberConfig>} - Success response
33
- * @summary: Update Subscriber
34
- * @description: Update Subscriber
35
- */
36
- updateSubscriberConfig({ body }?: {
37
- body: SubscriberConfig;
38
- }): Promise<SubscriberConfig>;
39
36
  /**
40
37
  * @param {Object} arg - Arg object.
41
38
  * @param {number} [arg.pageNo] - Page Number
@@ -52,19 +49,22 @@ declare class Webhook {
52
49
  }): Promise<SubscriberConfigList>;
53
50
  /**
54
51
  * @param {Object} arg - Arg object.
55
- * @param {number} arg.subscriberId - Subscriber ID
56
- * @returns {Promise<SubscriberResponse>} - Success response
57
- * @summary: Get Subscriber By Subscriber ID
58
- * @description: Get Subscriber By Subscriber ID
52
+ * @param {SubscriberConfig} arg.body
53
+ * @returns {Promise<SubscriberConfig>} - Success response
54
+ * @summary: Register Subscriber
55
+ * @description: Register Subscriber
59
56
  */
60
- getSubscriberById({ subscriberId }?: {
61
- subscriberId: number;
62
- }): Promise<SubscriberResponse>;
57
+ registerSubscriberToEvent({ body }?: {
58
+ body: SubscriberConfig;
59
+ }): Promise<SubscriberConfig>;
63
60
  /**
64
61
  * @param {Object} arg - Arg object.
65
- * @returns {Promise<EventConfigResponse>} - Success response
66
- * @summary:
67
- * @description: Get All Webhook Events
62
+ * @param {SubscriberConfig} arg.body
63
+ * @returns {Promise<SubscriberConfig>} - Success response
64
+ * @summary: Update Subscriber
65
+ * @description: Update Subscriber
68
66
  */
69
- fetchAllEventConfigurations({}?: any): Promise<EventConfigResponse>;
67
+ updateSubscriberConfig({ body }?: {
68
+ body: SubscriberConfig;
69
+ }): Promise<SubscriberConfig>;
70
70
  }
@@ -12,20 +12,13 @@ class Webhook {
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
- * @param {string} [arg.extensionId] - Extension ID
18
- * @returns {Promise<SubscriberResponse>} - Success response
19
- * @summary: Get Subscribers By Company ID
20
- * @description: Get Subscribers By CompanyId
15
+ * @returns {Promise<EventConfigResponse>} - Success response
16
+ * @summary:
17
+ * @description: Get All Webhook Events
21
18
  */
22
- async getSubscribersByCompany({ pageNo, pageSize, extensionId } = {}) {
23
- const { error } = WebhookValidator.getSubscribersByCompany().validate(
24
- {
25
- pageNo,
26
- pageSize,
27
- extensionId,
28
- },
19
+ async fetchAllEventConfigurations({} = {}) {
20
+ const { error } = WebhookValidator.fetchAllEventConfigurations().validate(
21
+ {},
29
22
  { abortEarly: false, allowUnknown: true }
30
23
  );
31
24
  if (error) {
@@ -35,33 +28,27 @@ class Webhook {
35
28
  // Showing warrnings if extra unknown parameters are found
36
29
  const {
37
30
  error: warrning,
38
- } = WebhookValidator.getSubscribersByCompany().validate(
39
- {
40
- pageNo,
41
- pageSize,
42
- extensionId,
43
- },
31
+ } = WebhookValidator.fetchAllEventConfigurations().validate(
32
+ {},
44
33
  { abortEarly: false, allowUnknown: false }
45
34
  );
46
35
  if (warrning) {
47
36
  Logger({
48
37
  level: "WARN",
49
- message: "Parameter Validation warrnings for getSubscribersByCompany",
38
+ message:
39
+ "Parameter Validation warrnings for fetchAllEventConfigurations",
50
40
  });
51
41
  Logger({ level: "WARN", message: warrning });
52
42
  }
53
43
 
54
44
  const query_params = {};
55
- query_params["page_no"] = pageNo;
56
- query_params["page_size"] = pageSize;
57
- query_params["extension_id"] = extensionId;
58
45
 
59
46
  const xHeaders = {};
60
47
 
61
48
  const response = await PlatformAPIClient.execute(
62
49
  this.config,
63
50
  "get",
64
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
51
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/events`,
65
52
  query_params,
66
53
  undefined,
67
54
  xHeaders
@@ -69,7 +56,7 @@ class Webhook {
69
56
 
70
57
  const {
71
58
  error: res_error,
72
- } = WebhookModel.SubscriberResponse().validate(response, {
59
+ } = WebhookModel.EventConfigResponse().validate(response, {
73
60
  abortEarly: false,
74
61
  allowUnknown: false,
75
62
  });
@@ -77,7 +64,8 @@ class Webhook {
77
64
  if (res_error) {
78
65
  Logger({
79
66
  level: "WARN",
80
- message: "Response Validation Warnnings for getSubscribersByCompany",
67
+ message:
68
+ "Response Validation Warnnings for fetchAllEventConfigurations",
81
69
  });
82
70
  Logger({ level: "WARN", message: res_error });
83
71
  }
@@ -87,15 +75,15 @@ class Webhook {
87
75
 
88
76
  /**
89
77
  * @param {Object} arg - Arg object.
90
- * @param {SubscriberConfig} arg.body
91
- * @returns {Promise<SubscriberConfig>} - Success response
92
- * @summary: Register Subscriber
93
- * @description: Register Subscriber
78
+ * @param {number} arg.subscriberId - Subscriber ID
79
+ * @returns {Promise<SubscriberResponse>} - Success response
80
+ * @summary: Get Subscriber By Subscriber ID
81
+ * @description: Get Subscriber By Subscriber ID
94
82
  */
95
- async registerSubscriberToEvent({ body } = {}) {
96
- const { error } = WebhookValidator.registerSubscriberToEvent().validate(
83
+ async getSubscriberById({ subscriberId } = {}) {
84
+ const { error } = WebhookValidator.getSubscriberById().validate(
97
85
  {
98
- body,
86
+ subscriberId,
99
87
  },
100
88
  { abortEarly: false, allowUnknown: true }
101
89
  );
@@ -104,18 +92,16 @@ class Webhook {
104
92
  }
105
93
 
106
94
  // Showing warrnings if extra unknown parameters are found
107
- const {
108
- error: warrning,
109
- } = WebhookValidator.registerSubscriberToEvent().validate(
95
+ const { error: warrning } = WebhookValidator.getSubscriberById().validate(
110
96
  {
111
- body,
97
+ subscriberId,
112
98
  },
113
99
  { abortEarly: false, allowUnknown: false }
114
100
  );
115
101
  if (warrning) {
116
102
  Logger({
117
103
  level: "WARN",
118
- message: "Parameter Validation warrnings for registerSubscriberToEvent",
104
+ message: "Parameter Validation warrnings for getSubscriberById",
119
105
  });
120
106
  Logger({ level: "WARN", message: warrning });
121
107
  }
@@ -126,16 +112,16 @@ class Webhook {
126
112
 
127
113
  const response = await PlatformAPIClient.execute(
128
114
  this.config,
129
- "post",
130
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
115
+ "get",
116
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber/${subscriberId}`,
131
117
  query_params,
132
- body,
118
+ undefined,
133
119
  xHeaders
134
120
  );
135
121
 
136
122
  const {
137
123
  error: res_error,
138
- } = WebhookModel.SubscriberConfig().validate(response, {
124
+ } = WebhookModel.SubscriberResponse().validate(response, {
139
125
  abortEarly: false,
140
126
  allowUnknown: false,
141
127
  });
@@ -143,7 +129,7 @@ class Webhook {
143
129
  if (res_error) {
144
130
  Logger({
145
131
  level: "WARN",
146
- message: "Response Validation Warnnings for registerSubscriberToEvent",
132
+ message: "Response Validation Warnnings for getSubscriberById",
147
133
  });
148
134
  Logger({ level: "WARN", message: res_error });
149
135
  }
@@ -153,15 +139,19 @@ class Webhook {
153
139
 
154
140
  /**
155
141
  * @param {Object} arg - Arg object.
156
- * @param {SubscriberConfig} arg.body
157
- * @returns {Promise<SubscriberConfig>} - Success response
158
- * @summary: Update Subscriber
159
- * @description: Update Subscriber
142
+ * @param {number} [arg.pageNo] - Page Number
143
+ * @param {number} [arg.pageSize] - Page Size
144
+ * @param {string} [arg.extensionId] - Extension ID
145
+ * @returns {Promise<SubscriberResponse>} - Success response
146
+ * @summary: Get Subscribers By Company ID
147
+ * @description: Get Subscribers By CompanyId
160
148
  */
161
- async updateSubscriberConfig({ body } = {}) {
162
- const { error } = WebhookValidator.updateSubscriberConfig().validate(
149
+ async getSubscribersByCompany({ pageNo, pageSize, extensionId } = {}) {
150
+ const { error } = WebhookValidator.getSubscribersByCompany().validate(
163
151
  {
164
- body,
152
+ pageNo,
153
+ pageSize,
154
+ extensionId,
165
155
  },
166
156
  { abortEarly: false, allowUnknown: true }
167
157
  );
@@ -172,36 +162,41 @@ class Webhook {
172
162
  // Showing warrnings if extra unknown parameters are found
173
163
  const {
174
164
  error: warrning,
175
- } = WebhookValidator.updateSubscriberConfig().validate(
165
+ } = WebhookValidator.getSubscribersByCompany().validate(
176
166
  {
177
- body,
167
+ pageNo,
168
+ pageSize,
169
+ extensionId,
178
170
  },
179
171
  { abortEarly: false, allowUnknown: false }
180
172
  );
181
173
  if (warrning) {
182
174
  Logger({
183
175
  level: "WARN",
184
- message: "Parameter Validation warrnings for updateSubscriberConfig",
176
+ message: "Parameter Validation warrnings for getSubscribersByCompany",
185
177
  });
186
178
  Logger({ level: "WARN", message: warrning });
187
179
  }
188
180
 
189
181
  const query_params = {};
182
+ query_params["page_no"] = pageNo;
183
+ query_params["page_size"] = pageSize;
184
+ query_params["extension_id"] = extensionId;
190
185
 
191
186
  const xHeaders = {};
192
187
 
193
188
  const response = await PlatformAPIClient.execute(
194
189
  this.config,
195
- "put",
190
+ "get",
196
191
  `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
197
192
  query_params,
198
- body,
193
+ undefined,
199
194
  xHeaders
200
195
  );
201
196
 
202
197
  const {
203
198
  error: res_error,
204
- } = WebhookModel.SubscriberConfig().validate(response, {
199
+ } = WebhookModel.SubscriberResponse().validate(response, {
205
200
  abortEarly: false,
206
201
  allowUnknown: false,
207
202
  });
@@ -209,7 +204,7 @@ class Webhook {
209
204
  if (res_error) {
210
205
  Logger({
211
206
  level: "WARN",
212
- message: "Response Validation Warnnings for updateSubscriberConfig",
207
+ message: "Response Validation Warnnings for getSubscribersByCompany",
213
208
  });
214
209
  Logger({ level: "WARN", message: res_error });
215
210
  }
@@ -295,15 +290,15 @@ class Webhook {
295
290
 
296
291
  /**
297
292
  * @param {Object} arg - Arg object.
298
- * @param {number} arg.subscriberId - Subscriber ID
299
- * @returns {Promise<SubscriberResponse>} - Success response
300
- * @summary: Get Subscriber By Subscriber ID
301
- * @description: Get Subscriber By Subscriber ID
293
+ * @param {SubscriberConfig} arg.body
294
+ * @returns {Promise<SubscriberConfig>} - Success response
295
+ * @summary: Register Subscriber
296
+ * @description: Register Subscriber
302
297
  */
303
- async getSubscriberById({ subscriberId } = {}) {
304
- const { error } = WebhookValidator.getSubscriberById().validate(
298
+ async registerSubscriberToEvent({ body } = {}) {
299
+ const { error } = WebhookValidator.registerSubscriberToEvent().validate(
305
300
  {
306
- subscriberId,
301
+ body,
307
302
  },
308
303
  { abortEarly: false, allowUnknown: true }
309
304
  );
@@ -312,16 +307,18 @@ class Webhook {
312
307
  }
313
308
 
314
309
  // Showing warrnings if extra unknown parameters are found
315
- const { error: warrning } = WebhookValidator.getSubscriberById().validate(
310
+ const {
311
+ error: warrning,
312
+ } = WebhookValidator.registerSubscriberToEvent().validate(
316
313
  {
317
- subscriberId,
314
+ body,
318
315
  },
319
316
  { abortEarly: false, allowUnknown: false }
320
317
  );
321
318
  if (warrning) {
322
319
  Logger({
323
320
  level: "WARN",
324
- message: "Parameter Validation warrnings for getSubscriberById",
321
+ message: "Parameter Validation warrnings for registerSubscriberToEvent",
325
322
  });
326
323
  Logger({ level: "WARN", message: warrning });
327
324
  }
@@ -332,16 +329,16 @@ class Webhook {
332
329
 
333
330
  const response = await PlatformAPIClient.execute(
334
331
  this.config,
335
- "get",
336
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber/${subscriberId}`,
332
+ "post",
333
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
337
334
  query_params,
338
- undefined,
335
+ body,
339
336
  xHeaders
340
337
  );
341
338
 
342
339
  const {
343
340
  error: res_error,
344
- } = WebhookModel.SubscriberResponse().validate(response, {
341
+ } = WebhookModel.SubscriberConfig().validate(response, {
345
342
  abortEarly: false,
346
343
  allowUnknown: false,
347
344
  });
@@ -349,7 +346,7 @@ class Webhook {
349
346
  if (res_error) {
350
347
  Logger({
351
348
  level: "WARN",
352
- message: "Response Validation Warnnings for getSubscriberById",
349
+ message: "Response Validation Warnnings for registerSubscriberToEvent",
353
350
  });
354
351
  Logger({ level: "WARN", message: res_error });
355
352
  }
@@ -359,13 +356,16 @@ class Webhook {
359
356
 
360
357
  /**
361
358
  * @param {Object} arg - Arg object.
362
- * @returns {Promise<EventConfigResponse>} - Success response
363
- * @summary:
364
- * @description: Get All Webhook Events
359
+ * @param {SubscriberConfig} arg.body
360
+ * @returns {Promise<SubscriberConfig>} - Success response
361
+ * @summary: Update Subscriber
362
+ * @description: Update Subscriber
365
363
  */
366
- async fetchAllEventConfigurations({} = {}) {
367
- const { error } = WebhookValidator.fetchAllEventConfigurations().validate(
368
- {},
364
+ async updateSubscriberConfig({ body } = {}) {
365
+ const { error } = WebhookValidator.updateSubscriberConfig().validate(
366
+ {
367
+ body,
368
+ },
369
369
  { abortEarly: false, allowUnknown: true }
370
370
  );
371
371
  if (error) {
@@ -375,15 +375,16 @@ class Webhook {
375
375
  // Showing warrnings if extra unknown parameters are found
376
376
  const {
377
377
  error: warrning,
378
- } = WebhookValidator.fetchAllEventConfigurations().validate(
379
- {},
378
+ } = WebhookValidator.updateSubscriberConfig().validate(
379
+ {
380
+ body,
381
+ },
380
382
  { abortEarly: false, allowUnknown: false }
381
383
  );
382
384
  if (warrning) {
383
385
  Logger({
384
386
  level: "WARN",
385
- message:
386
- "Parameter Validation warrnings for fetchAllEventConfigurations",
387
+ message: "Parameter Validation warrnings for updateSubscriberConfig",
387
388
  });
388
389
  Logger({ level: "WARN", message: warrning });
389
390
  }
@@ -394,16 +395,16 @@ class Webhook {
394
395
 
395
396
  const response = await PlatformAPIClient.execute(
396
397
  this.config,
397
- "get",
398
- `/service/platform/webhook/v1.0/company/${this.config.companyId}/events`,
398
+ "put",
399
+ `/service/platform/webhook/v1.0/company/${this.config.companyId}/subscriber`,
399
400
  query_params,
400
- undefined,
401
+ body,
401
402
  xHeaders
402
403
  );
403
404
 
404
405
  const {
405
406
  error: res_error,
406
- } = WebhookModel.EventConfigResponse().validate(response, {
407
+ } = WebhookModel.SubscriberConfig().validate(response, {
407
408
  abortEarly: false,
408
409
  allowUnknown: false,
409
410
  });
@@ -411,8 +412,7 @@ class Webhook {
411
412
  if (res_error) {
412
413
  Logger({
413
414
  level: "WARN",
414
- message:
415
- "Response Validation Warnnings for fetchAllEventConfigurations",
415
+ message: "Response Validation Warnnings for updateSubscriberConfig",
416
416
  });
417
417
  Logger({ level: "WARN", message: res_error });
418
418
  }
@@ -1,17 +1,17 @@
1
1
  export = WebhookModel;
2
2
  declare class WebhookModel {
3
+ static Association(): any;
4
+ static AuthMeta(): any;
3
5
  static EventConfig(): any;
6
+ static EventConfigBase(): any;
4
7
  static EventConfigList(): any;
5
8
  static EventConfigResponse(): any;
6
- static SubscriberConfigList(): any;
7
- static Page(): any;
8
- static EventProcessedStatus(): any;
9
9
  static EventPayload(): any;
10
+ static EventProcessedStatus(): any;
11
+ static Page(): any;
10
12
  static SubscriberConfig(): any;
11
- static SubscriberResponse(): any;
13
+ static SubscriberConfigList(): any;
12
14
  static SubscriberEvent(): any;
13
- static AuthMeta(): any;
14
- static Association(): any;
15
- static EventConfigBase(): any;
15
+ static SubscriberResponse(): any;
16
16
  static SubscriberStatus(): any;
17
17
  }