@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
@@ -13,15 +13,15 @@ class Configuration {
13
13
 
14
14
  /**
15
15
  * @param {Object} arg - Arg object.
16
- * @param {string} arg.platformType - Current platform name
17
- * @returns {Promise<MobileAppConfiguration>} - Success response
18
- * @summary: Get latest build config
19
- * @description: Get latest build config
16
+ * @param {DomainAddRequest} arg.body
17
+ * @returns {Promise<Domain>} - Success response
18
+ * @summary: Add new domain to application
19
+ * @description: Add new domain to application.
20
20
  */
21
- async getBuildConfig({ platformType } = {}) {
22
- const { error } = ConfigurationValidator.getBuildConfig().validate(
21
+ async addDomain({ body } = {}) {
22
+ const { error } = ConfigurationValidator.addDomain().validate(
23
23
  {
24
- platformType,
24
+ body,
25
25
  },
26
26
  { abortEarly: false, allowUnknown: true }
27
27
  );
@@ -30,18 +30,16 @@ class Configuration {
30
30
  }
31
31
 
32
32
  // Showing warrnings if extra unknown parameters are found
33
- const {
34
- error: warrning,
35
- } = ConfigurationValidator.getBuildConfig().validate(
33
+ const { error: warrning } = ConfigurationValidator.addDomain().validate(
36
34
  {
37
- platformType,
35
+ body,
38
36
  },
39
37
  { abortEarly: false, allowUnknown: false }
40
38
  );
41
39
  if (warrning) {
42
40
  Logger({
43
41
  level: "WARN",
44
- message: "Parameter Validation warrnings for getBuildConfig",
42
+ message: "Parameter Validation warrnings for addDomain",
45
43
  });
46
44
  Logger({ level: "WARN", message: warrning });
47
45
  }
@@ -50,23 +48,21 @@ class Configuration {
50
48
 
51
49
  const response = await PlatformAPIClient.execute(
52
50
  this.config,
53
- "get",
54
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
51
+ "post",
52
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
55
53
  query_params,
56
- undefined
54
+ body
57
55
  );
58
56
 
59
- const {
60
- error: res_error,
61
- } = ConfigurationModel.MobileAppConfiguration().validate(response, {
62
- abortEarly: false,
63
- allowUnknown: false,
64
- });
57
+ const { error: res_error } = ConfigurationModel.Domain().validate(
58
+ response,
59
+ { abortEarly: false, allowUnknown: false }
60
+ );
65
61
 
66
62
  if (res_error) {
67
63
  Logger({
68
64
  level: "WARN",
69
- message: "Response Validation Warnnings for getBuildConfig",
65
+ message: "Response Validation Warnnings for addDomain",
70
66
  });
71
67
  Logger({ level: "WARN", message: res_error });
72
68
  }
@@ -76,16 +72,14 @@ class Configuration {
76
72
 
77
73
  /**
78
74
  * @param {Object} arg - Arg object.
79
- * @param {string} arg.platformType - Current platform name
80
- * @param {MobileAppConfigRequest} arg.body
81
- * @returns {Promise<MobileAppConfiguration>} - Success response
82
- * @summary: Update build config for next build
83
- * @description: Update build config for next build
75
+ * @param {UpdateDomainTypeRequest} arg.body
76
+ * @returns {Promise<DomainsResponse>} - Success response
77
+ * @summary: Change domain type
78
+ * @description: Change a domain to Primary or Shortlink domain
84
79
  */
85
- async updateBuildConfig({ platformType, body } = {}) {
86
- const { error } = ConfigurationValidator.updateBuildConfig().validate(
80
+ async changeDomainType({ body } = {}) {
81
+ const { error } = ConfigurationValidator.changeDomainType().validate(
87
82
  {
88
- platformType,
89
83
  body,
90
84
  },
91
85
  { abortEarly: false, allowUnknown: true }
@@ -97,9 +91,8 @@ class Configuration {
97
91
  // Showing warrnings if extra unknown parameters are found
98
92
  const {
99
93
  error: warrning,
100
- } = ConfigurationValidator.updateBuildConfig().validate(
94
+ } = ConfigurationValidator.changeDomainType().validate(
101
95
  {
102
- platformType,
103
96
  body,
104
97
  },
105
98
  { abortEarly: false, allowUnknown: false }
@@ -107,7 +100,7 @@ class Configuration {
107
100
  if (warrning) {
108
101
  Logger({
109
102
  level: "WARN",
110
- message: "Parameter Validation warrnings for updateBuildConfig",
103
+ message: "Parameter Validation warrnings for changeDomainType",
111
104
  });
112
105
  Logger({ level: "WARN", message: warrning });
113
106
  }
@@ -116,15 +109,15 @@ class Configuration {
116
109
 
117
110
  const response = await PlatformAPIClient.execute(
118
111
  this.config,
119
- "put",
120
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
112
+ "post",
113
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/set-domain`,
121
114
  query_params,
122
115
  body
123
116
  );
124
117
 
125
118
  const {
126
119
  error: res_error,
127
- } = ConfigurationModel.MobileAppConfiguration().validate(response, {
120
+ } = ConfigurationModel.DomainsResponse().validate(response, {
128
121
  abortEarly: false,
129
122
  allowUnknown: false,
130
123
  });
@@ -132,7 +125,7 @@ class Configuration {
132
125
  if (res_error) {
133
126
  Logger({
134
127
  level: "WARN",
135
- message: "Response Validation Warnnings for updateBuildConfig",
128
+ message: "Response Validation Warnnings for changeDomainType",
136
129
  });
137
130
  Logger({ level: "WARN", message: res_error });
138
131
  }
@@ -142,16 +135,13 @@ class Configuration {
142
135
 
143
136
  /**
144
137
  * @param {Object} arg - Arg object.
145
- * @param {string} arg.platformType - Current platform name
146
- * @returns {Promise<BuildVersionHistory>} - Success response
147
- * @summary: Get previous build versions
148
- * @description: Get previous build versions
138
+ * @returns {Promise<TokenResponse>} - Success response
139
+ * @summary: Get social tokens
140
+ * @description: Get social tokens.
149
141
  */
150
- async getPreviousVersions({ platformType } = {}) {
151
- const { error } = ConfigurationValidator.getPreviousVersions().validate(
152
- {
153
- platformType,
154
- },
142
+ async getAppApiTokens({} = {}) {
143
+ const { error } = ConfigurationValidator.getAppApiTokens().validate(
144
+ {},
155
145
  { abortEarly: false, allowUnknown: true }
156
146
  );
157
147
  if (error) {
@@ -161,16 +151,14 @@ class Configuration {
161
151
  // Showing warrnings if extra unknown parameters are found
162
152
  const {
163
153
  error: warrning,
164
- } = ConfigurationValidator.getPreviousVersions().validate(
165
- {
166
- platformType,
167
- },
154
+ } = ConfigurationValidator.getAppApiTokens().validate(
155
+ {},
168
156
  { abortEarly: false, allowUnknown: false }
169
157
  );
170
158
  if (warrning) {
171
159
  Logger({
172
160
  level: "WARN",
173
- message: "Parameter Validation warrnings for getPreviousVersions",
161
+ message: "Parameter Validation warrnings for getAppApiTokens",
174
162
  });
175
163
  Logger({ level: "WARN", message: warrning });
176
164
  }
@@ -180,14 +168,14 @@ class Configuration {
180
168
  const response = await PlatformAPIClient.execute(
181
169
  this.config,
182
170
  "get",
183
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/versions`,
171
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
184
172
  query_params,
185
173
  undefined
186
174
  );
187
175
 
188
176
  const {
189
177
  error: res_error,
190
- } = ConfigurationModel.BuildVersionHistory().validate(response, {
178
+ } = ConfigurationModel.TokenResponse().validate(response, {
191
179
  abortEarly: false,
192
180
  allowUnknown: false,
193
181
  });
@@ -195,7 +183,7 @@ class Configuration {
195
183
  if (res_error) {
196
184
  Logger({
197
185
  level: "WARN",
198
- message: "Response Validation Warnnings for getPreviousVersions",
186
+ message: "Response Validation Warnnings for getAppApiTokens",
199
187
  });
200
188
  Logger({ level: "WARN", message: res_error });
201
189
  }
@@ -205,12 +193,12 @@ class Configuration {
205
193
 
206
194
  /**
207
195
  * @param {Object} arg - Arg object.
208
- * @returns {Promise<AppFeatureResponse>} - Success response
209
- * @summary: Get features of application
210
- * @description: Get features of application
196
+ * @returns {Promise<ApplicationDetail>} - Success response
197
+ * @summary: Get basic application details
198
+ * @description: Get basic application details like name
211
199
  */
212
- async getAppFeatures({} = {}) {
213
- const { error } = ConfigurationValidator.getAppFeatures().validate(
200
+ async getAppBasicDetails({} = {}) {
201
+ const { error } = ConfigurationValidator.getAppBasicDetails().validate(
214
202
  {},
215
203
  { abortEarly: false, allowUnknown: true }
216
204
  );
@@ -221,14 +209,14 @@ class Configuration {
221
209
  // Showing warrnings if extra unknown parameters are found
222
210
  const {
223
211
  error: warrning,
224
- } = ConfigurationValidator.getAppFeatures().validate(
212
+ } = ConfigurationValidator.getAppBasicDetails().validate(
225
213
  {},
226
214
  { abortEarly: false, allowUnknown: false }
227
215
  );
228
216
  if (warrning) {
229
217
  Logger({
230
218
  level: "WARN",
231
- message: "Parameter Validation warrnings for getAppFeatures",
219
+ message: "Parameter Validation warrnings for getAppBasicDetails",
232
220
  });
233
221
  Logger({ level: "WARN", message: warrning });
234
222
  }
@@ -238,14 +226,14 @@ class Configuration {
238
226
  const response = await PlatformAPIClient.execute(
239
227
  this.config,
240
228
  "get",
241
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
229
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
242
230
  query_params,
243
231
  undefined
244
232
  );
245
233
 
246
234
  const {
247
235
  error: res_error,
248
- } = ConfigurationModel.AppFeatureResponse().validate(response, {
236
+ } = ConfigurationModel.ApplicationDetail().validate(response, {
249
237
  abortEarly: false,
250
238
  allowUnknown: false,
251
239
  });
@@ -253,7 +241,7 @@ class Configuration {
253
241
  if (res_error) {
254
242
  Logger({
255
243
  level: "WARN",
256
- message: "Response Validation Warnnings for getAppFeatures",
244
+ message: "Response Validation Warnnings for getAppBasicDetails",
257
245
  });
258
246
  Logger({ level: "WARN", message: res_error });
259
247
  }
@@ -263,15 +251,19 @@ class Configuration {
263
251
 
264
252
  /**
265
253
  * @param {Object} arg - Arg object.
266
- * @param {AppFeatureRequest} arg.body
267
- * @returns {Promise<AppFeature>} - Success response
268
- * @summary: Update features of application
269
- * @description: Update features of application
254
+ * @param {number} [arg.uid] - Uid of companies to be fetched
255
+ * @param {number} [arg.pageNo] - Current page no
256
+ * @param {number} [arg.pageSize] - Current request items count
257
+ * @returns {Promise<CompaniesResponse>} - Success response
258
+ * @summary: Application inventory enabled companies
259
+ * @description: Application inventory enabled companies.
270
260
  */
271
- async updateAppFeatures({ body } = {}) {
272
- const { error } = ConfigurationValidator.updateAppFeatures().validate(
261
+ async getAppCompanies({ uid, pageNo, pageSize } = {}) {
262
+ const { error } = ConfigurationValidator.getAppCompanies().validate(
273
263
  {
274
- body,
264
+ uid,
265
+ pageNo,
266
+ pageSize,
275
267
  },
276
268
  { abortEarly: false, allowUnknown: true }
277
269
  );
@@ -282,33 +274,38 @@ class Configuration {
282
274
  // Showing warrnings if extra unknown parameters are found
283
275
  const {
284
276
  error: warrning,
285
- } = ConfigurationValidator.updateAppFeatures().validate(
277
+ } = ConfigurationValidator.getAppCompanies().validate(
286
278
  {
287
- body,
279
+ uid,
280
+ pageNo,
281
+ pageSize,
288
282
  },
289
283
  { abortEarly: false, allowUnknown: false }
290
284
  );
291
285
  if (warrning) {
292
286
  Logger({
293
287
  level: "WARN",
294
- message: "Parameter Validation warrnings for updateAppFeatures",
288
+ message: "Parameter Validation warrnings for getAppCompanies",
295
289
  });
296
290
  Logger({ level: "WARN", message: warrning });
297
291
  }
298
292
 
299
293
  const query_params = {};
294
+ query_params["uid"] = uid;
295
+ query_params["page_no"] = pageNo;
296
+ query_params["page_size"] = pageSize;
300
297
 
301
298
  const response = await PlatformAPIClient.execute(
302
299
  this.config,
303
- "post",
304
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
300
+ "get",
301
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/companies`,
305
302
  query_params,
306
- body
303
+ undefined
307
304
  );
308
305
 
309
306
  const {
310
307
  error: res_error,
311
- } = ConfigurationModel.AppFeature().validate(response, {
308
+ } = ConfigurationModel.CompaniesResponse().validate(response, {
312
309
  abortEarly: false,
313
310
  allowUnknown: false,
314
311
  });
@@ -316,7 +313,7 @@ class Configuration {
316
313
  if (res_error) {
317
314
  Logger({
318
315
  level: "WARN",
319
- message: "Response Validation Warnnings for updateAppFeatures",
316
+ message: "Response Validation Warnnings for getAppCompanies",
320
317
  });
321
318
  Logger({ level: "WARN", message: res_error });
322
319
  }
@@ -326,12 +323,44 @@ class Configuration {
326
323
 
327
324
  /**
328
325
  * @param {Object} arg - Arg object.
329
- * @returns {Promise<ApplicationDetail>} - Success response
330
- * @summary: Get basic application details
331
- * @description: Get basic application details like name
326
+ * @param {string} arg.companyId - Current company id
327
+ * @param {string} arg.applicationId - Current application id
328
+ * @param {number} [arg.uid] - Uid of companies to be fetched
329
+ * @param {number} [arg.pageSize] - Current request items count
330
+ * @summary: Application inventory enabled companies
331
+ * @description: Application inventory enabled companies.
332
332
  */
333
- async getAppBasicDetails({} = {}) {
334
- const { error } = ConfigurationValidator.getAppBasicDetails().validate(
333
+ getAppCompaniesPaginator({ companyId, applicationId, uid, pageSize } = {}) {
334
+ const paginator = new Paginator();
335
+ const callback = async () => {
336
+ const pageId = paginator.nextId;
337
+ const pageNo = paginator.pageNo;
338
+ const pageType = "number";
339
+ const data = await this.getAppCompanies({
340
+ companyId: companyId,
341
+ applicationId: applicationId,
342
+ uid: uid,
343
+ pageNo: pageNo,
344
+ pageSize: pageSize,
345
+ });
346
+ paginator.setPaginator({
347
+ hasNext: data.page.has_next ? true : false,
348
+ nextId: data.page.next_id,
349
+ });
350
+ return data;
351
+ };
352
+ paginator.setCallback(callback.bind(this));
353
+ return paginator;
354
+ }
355
+
356
+ /**
357
+ * @param {Object} arg - Arg object.
358
+ * @returns {Promise<ApplicationInformation>} - Success response
359
+ * @summary: Get application information
360
+ * @description: Get Application Current Information. This includes information about social links, address and contact information of company/seller/brand of the application.
361
+ */
362
+ async getAppContactInfo({} = {}) {
363
+ const { error } = ConfigurationValidator.getAppContactInfo().validate(
335
364
  {},
336
365
  { abortEarly: false, allowUnknown: true }
337
366
  );
@@ -342,14 +371,14 @@ class Configuration {
342
371
  // Showing warrnings if extra unknown parameters are found
343
372
  const {
344
373
  error: warrning,
345
- } = ConfigurationValidator.getAppBasicDetails().validate(
374
+ } = ConfigurationValidator.getAppContactInfo().validate(
346
375
  {},
347
376
  { abortEarly: false, allowUnknown: false }
348
377
  );
349
378
  if (warrning) {
350
379
  Logger({
351
380
  level: "WARN",
352
- message: "Parameter Validation warrnings for getAppBasicDetails",
381
+ message: "Parameter Validation warrnings for getAppContactInfo",
353
382
  });
354
383
  Logger({ level: "WARN", message: warrning });
355
384
  }
@@ -359,14 +388,14 @@ class Configuration {
359
388
  const response = await PlatformAPIClient.execute(
360
389
  this.config,
361
390
  "get",
362
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
391
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
363
392
  query_params,
364
393
  undefined
365
394
  );
366
395
 
367
396
  const {
368
397
  error: res_error,
369
- } = ConfigurationModel.ApplicationDetail().validate(response, {
398
+ } = ConfigurationModel.ApplicationInformation().validate(response, {
370
399
  abortEarly: false,
371
400
  allowUnknown: false,
372
401
  });
@@ -374,7 +403,7 @@ class Configuration {
374
403
  if (res_error) {
375
404
  Logger({
376
405
  level: "WARN",
377
- message: "Response Validation Warnnings for getAppBasicDetails",
406
+ message: "Response Validation Warnnings for getAppContactInfo",
378
407
  });
379
408
  Logger({ level: "WARN", message: res_error });
380
409
  }
@@ -384,16 +413,13 @@ class Configuration {
384
413
 
385
414
  /**
386
415
  * @param {Object} arg - Arg object.
387
- * @param {ApplicationDetail} arg.body
388
- * @returns {Promise<ApplicationDetail>} - Success response
389
- * @summary: Add or update application's basic details
390
- * @description: Add or update application's basic details
416
+ * @returns {Promise<AppSupportedCurrency>} - Success response
417
+ * @summary: Get application enabled currency list
418
+ * @description: Get application enabled currency list
391
419
  */
392
- async updateAppBasicDetails({ body } = {}) {
393
- const { error } = ConfigurationValidator.updateAppBasicDetails().validate(
394
- {
395
- body,
396
- },
420
+ async getAppCurrencyConfig({} = {}) {
421
+ const { error } = ConfigurationValidator.getAppCurrencyConfig().validate(
422
+ {},
397
423
  { abortEarly: false, allowUnknown: true }
398
424
  );
399
425
  if (error) {
@@ -403,16 +429,14 @@ class Configuration {
403
429
  // Showing warrnings if extra unknown parameters are found
404
430
  const {
405
431
  error: warrning,
406
- } = ConfigurationValidator.updateAppBasicDetails().validate(
407
- {
408
- body,
409
- },
432
+ } = ConfigurationValidator.getAppCurrencyConfig().validate(
433
+ {},
410
434
  { abortEarly: false, allowUnknown: false }
411
435
  );
412
436
  if (warrning) {
413
437
  Logger({
414
438
  level: "WARN",
415
- message: "Parameter Validation warrnings for updateAppBasicDetails",
439
+ message: "Parameter Validation warrnings for getAppCurrencyConfig",
416
440
  });
417
441
  Logger({ level: "WARN", message: warrning });
418
442
  }
@@ -421,15 +445,15 @@ class Configuration {
421
445
 
422
446
  const response = await PlatformAPIClient.execute(
423
447
  this.config,
424
- "put",
425
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
448
+ "get",
449
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
426
450
  query_params,
427
- body
451
+ undefined
428
452
  );
429
453
 
430
454
  const {
431
455
  error: res_error,
432
- } = ConfigurationModel.ApplicationDetail().validate(response, {
456
+ } = ConfigurationModel.AppSupportedCurrency().validate(response, {
433
457
  abortEarly: false,
434
458
  allowUnknown: false,
435
459
  });
@@ -437,7 +461,7 @@ class Configuration {
437
461
  if (res_error) {
438
462
  Logger({
439
463
  level: "WARN",
440
- message: "Response Validation Warnnings for updateAppBasicDetails",
464
+ message: "Response Validation Warnnings for getAppCurrencyConfig",
441
465
  });
442
466
  Logger({ level: "WARN", message: res_error });
443
467
  }
@@ -447,12 +471,12 @@ class Configuration {
447
471
 
448
472
  /**
449
473
  * @param {Object} arg - Arg object.
450
- * @returns {Promise<ApplicationInformation>} - Success response
451
- * @summary: Get application information
452
- * @description: Get Application Current Information. This includes information about social links, address and contact information of company/seller/brand of the application.
474
+ * @returns {Promise<AppFeatureResponse>} - Success response
475
+ * @summary: Get features of application
476
+ * @description: Get features of application
453
477
  */
454
- async getAppContactInfo({} = {}) {
455
- const { error } = ConfigurationValidator.getAppContactInfo().validate(
478
+ async getAppFeatures({} = {}) {
479
+ const { error } = ConfigurationValidator.getAppFeatures().validate(
456
480
  {},
457
481
  { abortEarly: false, allowUnknown: true }
458
482
  );
@@ -463,14 +487,14 @@ class Configuration {
463
487
  // Showing warrnings if extra unknown parameters are found
464
488
  const {
465
489
  error: warrning,
466
- } = ConfigurationValidator.getAppContactInfo().validate(
490
+ } = ConfigurationValidator.getAppFeatures().validate(
467
491
  {},
468
492
  { abortEarly: false, allowUnknown: false }
469
493
  );
470
494
  if (warrning) {
471
495
  Logger({
472
496
  level: "WARN",
473
- message: "Parameter Validation warrnings for getAppContactInfo",
497
+ message: "Parameter Validation warrnings for getAppFeatures",
474
498
  });
475
499
  Logger({ level: "WARN", message: warrning });
476
500
  }
@@ -480,14 +504,14 @@ class Configuration {
480
504
  const response = await PlatformAPIClient.execute(
481
505
  this.config,
482
506
  "get",
483
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
507
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
484
508
  query_params,
485
509
  undefined
486
510
  );
487
511
 
488
512
  const {
489
513
  error: res_error,
490
- } = ConfigurationModel.ApplicationInformation().validate(response, {
514
+ } = ConfigurationModel.AppFeatureResponse().validate(response, {
491
515
  abortEarly: false,
492
516
  allowUnknown: false,
493
517
  });
@@ -495,7 +519,7 @@ class Configuration {
495
519
  if (res_error) {
496
520
  Logger({
497
521
  level: "WARN",
498
- message: "Response Validation Warnnings for getAppContactInfo",
522
+ message: "Response Validation Warnnings for getAppFeatures",
499
523
  });
500
524
  Logger({ level: "WARN", message: res_error });
501
525
  }
@@ -505,15 +529,17 @@ class Configuration {
505
529
 
506
530
  /**
507
531
  * @param {Object} arg - Arg object.
508
- * @param {ApplicationInformation} arg.body
509
- * @returns {Promise<ApplicationInformation>} - Success response
510
- * @summary: Get application information
511
- * @description: Save Application Current Information. This includes information about social links, address and contact information of an application.
532
+ * @param {number} [arg.pageNo] - Current page no
533
+ * @param {number} [arg.pageSize] - Current request items count
534
+ * @returns {Promise<StoresResponse>} - Success response
535
+ * @summary: Application inventory enabled stores
536
+ * @description: Application inventory enabled stores.
512
537
  */
513
- async updateAppContactInfo({ body } = {}) {
514
- const { error } = ConfigurationValidator.updateAppContactInfo().validate(
538
+ async getAppStores({ pageNo, pageSize } = {}) {
539
+ const { error } = ConfigurationValidator.getAppStores().validate(
515
540
  {
516
- body,
541
+ pageNo,
542
+ pageSize,
517
543
  },
518
544
  { abortEarly: false, allowUnknown: true }
519
545
  );
@@ -522,35 +548,36 @@ class Configuration {
522
548
  }
523
549
 
524
550
  // Showing warrnings if extra unknown parameters are found
525
- const {
526
- error: warrning,
527
- } = ConfigurationValidator.updateAppContactInfo().validate(
551
+ const { error: warrning } = ConfigurationValidator.getAppStores().validate(
528
552
  {
529
- body,
553
+ pageNo,
554
+ pageSize,
530
555
  },
531
556
  { abortEarly: false, allowUnknown: false }
532
557
  );
533
558
  if (warrning) {
534
559
  Logger({
535
560
  level: "WARN",
536
- message: "Parameter Validation warrnings for updateAppContactInfo",
561
+ message: "Parameter Validation warrnings for getAppStores",
537
562
  });
538
563
  Logger({ level: "WARN", message: warrning });
539
564
  }
540
565
 
541
566
  const query_params = {};
567
+ query_params["page_no"] = pageNo;
568
+ query_params["page_size"] = pageSize;
542
569
 
543
570
  const response = await PlatformAPIClient.execute(
544
571
  this.config,
545
- "put",
546
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
572
+ "get",
573
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/stores`,
547
574
  query_params,
548
- body
575
+ undefined
549
576
  );
550
577
 
551
578
  const {
552
579
  error: res_error,
553
- } = ConfigurationModel.ApplicationInformation().validate(response, {
580
+ } = ConfigurationModel.StoresResponse().validate(response, {
554
581
  abortEarly: false,
555
582
  allowUnknown: false,
556
583
  });
@@ -558,7 +585,7 @@ class Configuration {
558
585
  if (res_error) {
559
586
  Logger({
560
587
  level: "WARN",
561
- message: "Response Validation Warnnings for updateAppContactInfo",
588
+ message: "Response Validation Warnnings for getAppStores",
562
589
  });
563
590
  Logger({ level: "WARN", message: res_error });
564
591
  }
@@ -568,12 +595,42 @@ class Configuration {
568
595
 
569
596
  /**
570
597
  * @param {Object} arg - Arg object.
571
- * @returns {Promise<TokenResponse>} - Success response
572
- * @summary: Get social tokens
573
- * @description: Get social tokens.
598
+ * @param {string} arg.companyId - Current company id
599
+ * @param {string} arg.applicationId - Current application id
600
+ * @param {number} [arg.pageSize] - Current request items count
601
+ * @summary: Application inventory enabled stores
602
+ * @description: Application inventory enabled stores.
574
603
  */
575
- async getAppApiTokens({} = {}) {
576
- const { error } = ConfigurationValidator.getAppApiTokens().validate(
604
+ getAppStoresPaginator({ companyId, applicationId, pageSize } = {}) {
605
+ const paginator = new Paginator();
606
+ const callback = async () => {
607
+ const pageId = paginator.nextId;
608
+ const pageNo = paginator.pageNo;
609
+ const pageType = "number";
610
+ const data = await this.getAppStores({
611
+ companyId: companyId,
612
+ applicationId: applicationId,
613
+ pageNo: pageNo,
614
+ pageSize: pageSize,
615
+ });
616
+ paginator.setPaginator({
617
+ hasNext: data.page.has_next ? true : false,
618
+ nextId: data.page.next_id,
619
+ });
620
+ return data;
621
+ };
622
+ paginator.setCallback(callback.bind(this));
623
+ return paginator;
624
+ }
625
+
626
+ /**
627
+ * @param {Object} arg - Arg object.
628
+ * @returns {Promise<AppCurrencyResponse>} - Success response
629
+ * @summary: Get currencies enabled in the application
630
+ * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
631
+ */
632
+ async getAppSupportedCurrency({} = {}) {
633
+ const { error } = ConfigurationValidator.getAppSupportedCurrency().validate(
577
634
  {},
578
635
  { abortEarly: false, allowUnknown: true }
579
636
  );
@@ -584,14 +641,14 @@ class Configuration {
584
641
  // Showing warrnings if extra unknown parameters are found
585
642
  const {
586
643
  error: warrning,
587
- } = ConfigurationValidator.getAppApiTokens().validate(
644
+ } = ConfigurationValidator.getAppSupportedCurrency().validate(
588
645
  {},
589
646
  { abortEarly: false, allowUnknown: false }
590
647
  );
591
648
  if (warrning) {
592
649
  Logger({
593
650
  level: "WARN",
594
- message: "Parameter Validation warrnings for getAppApiTokens",
651
+ message: "Parameter Validation warrnings for getAppSupportedCurrency",
595
652
  });
596
653
  Logger({ level: "WARN", message: warrning });
597
654
  }
@@ -601,14 +658,14 @@ class Configuration {
601
658
  const response = await PlatformAPIClient.execute(
602
659
  this.config,
603
660
  "get",
604
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
661
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency/supported`,
605
662
  query_params,
606
663
  undefined
607
664
  );
608
665
 
609
666
  const {
610
667
  error: res_error,
611
- } = ConfigurationModel.TokenResponse().validate(response, {
668
+ } = ConfigurationModel.AppCurrencyResponse().validate(response, {
612
669
  abortEarly: false,
613
670
  allowUnknown: false,
614
671
  });
@@ -616,7 +673,7 @@ class Configuration {
616
673
  if (res_error) {
617
674
  Logger({
618
675
  level: "WARN",
619
- message: "Response Validation Warnnings for getAppApiTokens",
676
+ message: "Response Validation Warnnings for getAppSupportedCurrency",
620
677
  });
621
678
  Logger({ level: "WARN", message: res_error });
622
679
  }
@@ -626,16 +683,13 @@ class Configuration {
626
683
 
627
684
  /**
628
685
  * @param {Object} arg - Arg object.
629
- * @param {TokenResponse} arg.body
630
- * @returns {Promise<TokenResponse>} - Success response
631
- * @summary: Add social tokens
632
- * @description: Add social tokens.
686
+ * @returns {Promise<Application>} - Success response
687
+ * @summary: Get application data from id
688
+ * @description: Get application data from id
633
689
  */
634
- async updateAppApiTokens({ body } = {}) {
635
- const { error } = ConfigurationValidator.updateAppApiTokens().validate(
636
- {
637
- body,
638
- },
690
+ async getApplicationById({} = {}) {
691
+ const { error } = ConfigurationValidator.getApplicationById().validate(
692
+ {},
639
693
  { abortEarly: false, allowUnknown: true }
640
694
  );
641
695
  if (error) {
@@ -645,16 +699,14 @@ class Configuration {
645
699
  // Showing warrnings if extra unknown parameters are found
646
700
  const {
647
701
  error: warrning,
648
- } = ConfigurationValidator.updateAppApiTokens().validate(
649
- {
650
- body,
651
- },
702
+ } = ConfigurationValidator.getApplicationById().validate(
703
+ {},
652
704
  { abortEarly: false, allowUnknown: false }
653
705
  );
654
706
  if (warrning) {
655
707
  Logger({
656
708
  level: "WARN",
657
- message: "Parameter Validation warrnings for updateAppApiTokens",
709
+ message: "Parameter Validation warrnings for getApplicationById",
658
710
  });
659
711
  Logger({ level: "WARN", message: warrning });
660
712
  }
@@ -663,15 +715,15 @@ class Configuration {
663
715
 
664
716
  const response = await PlatformAPIClient.execute(
665
717
  this.config,
666
- "post",
667
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
718
+ "get",
719
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
668
720
  query_params,
669
- body
721
+ undefined
670
722
  );
671
723
 
672
724
  const {
673
725
  error: res_error,
674
- } = ConfigurationModel.TokenResponse().validate(response, {
726
+ } = ConfigurationModel.Application().validate(response, {
675
727
  abortEarly: false,
676
728
  allowUnknown: false,
677
729
  });
@@ -679,7 +731,7 @@ class Configuration {
679
731
  if (res_error) {
680
732
  Logger({
681
733
  level: "WARN",
682
- message: "Response Validation Warnnings for updateAppApiTokens",
734
+ message: "Response Validation Warnnings for getApplicationById",
683
735
  });
684
736
  Logger({ level: "WARN", message: res_error });
685
737
  }
@@ -689,19 +741,15 @@ class Configuration {
689
741
 
690
742
  /**
691
743
  * @param {Object} arg - Arg object.
692
- * @param {number} [arg.uid] - Uid of companies to be fetched
693
- * @param {number} [arg.pageNo] - Current page no
694
- * @param {number} [arg.pageSize] - Current request items count
695
- * @returns {Promise<CompaniesResponse>} - Success response
696
- * @summary: Application inventory enabled companies
697
- * @description: Application inventory enabled companies.
744
+ * @param {string} arg.platformType - Current platform name
745
+ * @returns {Promise<MobileAppConfiguration>} - Success response
746
+ * @summary: Get latest build config
747
+ * @description: Get latest build config
698
748
  */
699
- async getAppCompanies({ uid, pageNo, pageSize } = {}) {
700
- const { error } = ConfigurationValidator.getAppCompanies().validate(
749
+ async getBuildConfig({ platformType } = {}) {
750
+ const { error } = ConfigurationValidator.getBuildConfig().validate(
701
751
  {
702
- uid,
703
- pageNo,
704
- pageSize,
752
+ platformType,
705
753
  },
706
754
  { abortEarly: false, allowUnknown: true }
707
755
  );
@@ -712,38 +760,33 @@ class Configuration {
712
760
  // Showing warrnings if extra unknown parameters are found
713
761
  const {
714
762
  error: warrning,
715
- } = ConfigurationValidator.getAppCompanies().validate(
763
+ } = ConfigurationValidator.getBuildConfig().validate(
716
764
  {
717
- uid,
718
- pageNo,
719
- pageSize,
765
+ platformType,
720
766
  },
721
767
  { abortEarly: false, allowUnknown: false }
722
768
  );
723
769
  if (warrning) {
724
770
  Logger({
725
771
  level: "WARN",
726
- message: "Parameter Validation warrnings for getAppCompanies",
772
+ message: "Parameter Validation warrnings for getBuildConfig",
727
773
  });
728
774
  Logger({ level: "WARN", message: warrning });
729
775
  }
730
776
 
731
777
  const query_params = {};
732
- query_params["uid"] = uid;
733
- query_params["page_no"] = pageNo;
734
- query_params["page_size"] = pageSize;
735
778
 
736
779
  const response = await PlatformAPIClient.execute(
737
780
  this.config,
738
781
  "get",
739
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/companies`,
782
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
740
783
  query_params,
741
784
  undefined
742
785
  );
743
786
 
744
787
  const {
745
788
  error: res_error,
746
- } = ConfigurationModel.CompaniesResponse().validate(response, {
789
+ } = ConfigurationModel.MobileAppConfiguration().validate(response, {
747
790
  abortEarly: false,
748
791
  allowUnknown: false,
749
792
  });
@@ -751,7 +794,7 @@ class Configuration {
751
794
  if (res_error) {
752
795
  Logger({
753
796
  level: "WARN",
754
- message: "Response Validation Warnnings for getAppCompanies",
797
+ message: "Response Validation Warnnings for getBuildConfig",
755
798
  });
756
799
  Logger({ level: "WARN", message: res_error });
757
800
  }
@@ -761,49 +804,15 @@ class Configuration {
761
804
 
762
805
  /**
763
806
  * @param {Object} arg - Arg object.
764
- * @param {string} arg.companyId - Current company id
765
- * @param {string} arg.applicationId - Current application id
766
- * @param {number} [arg.uid] - Uid of companies to be fetched
767
- * @param {number} [arg.pageSize] - Current request items count
768
- * @summary: Application inventory enabled companies
769
- * @description: Application inventory enabled companies.
770
- */
771
- getAppCompaniesPaginator({ companyId, applicationId, uid, pageSize } = {}) {
772
- const paginator = new Paginator();
773
- const callback = async () => {
774
- const pageId = paginator.nextId;
775
- const pageNo = paginator.pageNo;
776
- const pageType = "number";
777
- const data = await this.getAppCompanies({
778
- companyId: companyId,
779
- applicationId: applicationId,
780
- uid: uid,
781
- pageNo: pageNo,
782
- pageSize: pageSize,
783
- });
784
- paginator.setPaginator({
785
- hasNext: data.page.has_next ? true : false,
786
- nextId: data.page.next_id,
787
- });
788
- return data;
789
- };
790
- paginator.setCallback(callback.bind(this));
791
- return paginator;
792
- }
793
-
794
- /**
795
- * @param {Object} arg - Arg object.
796
- * @param {number} [arg.pageNo] - Current page no
797
- * @param {number} [arg.pageSize] - Current request items count
798
- * @returns {Promise<StoresResponse>} - Success response
799
- * @summary: Application inventory enabled stores
800
- * @description: Application inventory enabled stores.
807
+ * @param {DomainStatusRequest} arg.body
808
+ * @returns {Promise<DomainStatusResponse>} - Success response
809
+ * @summary: Get domain connected status.
810
+ * @description: Get domain connected status. Check if domain is live and mapped to appropriate IP to fynd servers.
801
811
  */
802
- async getAppStores({ pageNo, pageSize } = {}) {
803
- const { error } = ConfigurationValidator.getAppStores().validate(
812
+ async getDomainStatus({ body } = {}) {
813
+ const { error } = ConfigurationValidator.getDomainStatus().validate(
804
814
  {
805
- pageNo,
806
- pageSize,
815
+ body,
807
816
  },
808
817
  { abortEarly: false, allowUnknown: true }
809
818
  );
@@ -812,36 +821,35 @@ class Configuration {
812
821
  }
813
822
 
814
823
  // Showing warrnings if extra unknown parameters are found
815
- const { error: warrning } = ConfigurationValidator.getAppStores().validate(
824
+ const {
825
+ error: warrning,
826
+ } = ConfigurationValidator.getDomainStatus().validate(
816
827
  {
817
- pageNo,
818
- pageSize,
828
+ body,
819
829
  },
820
830
  { abortEarly: false, allowUnknown: false }
821
831
  );
822
832
  if (warrning) {
823
833
  Logger({
824
834
  level: "WARN",
825
- message: "Parameter Validation warrnings for getAppStores",
835
+ message: "Parameter Validation warrnings for getDomainStatus",
826
836
  });
827
837
  Logger({ level: "WARN", message: warrning });
828
838
  }
829
839
 
830
840
  const query_params = {};
831
- query_params["page_no"] = pageNo;
832
- query_params["page_size"] = pageSize;
833
841
 
834
842
  const response = await PlatformAPIClient.execute(
835
843
  this.config,
836
- "get",
837
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/stores`,
844
+ "post",
845
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
838
846
  query_params,
839
- undefined
847
+ body
840
848
  );
841
849
 
842
850
  const {
843
851
  error: res_error,
844
- } = ConfigurationModel.StoresResponse().validate(response, {
852
+ } = ConfigurationModel.DomainStatusResponse().validate(response, {
845
853
  abortEarly: false,
846
854
  allowUnknown: false,
847
855
  });
@@ -849,7 +857,7 @@ class Configuration {
849
857
  if (res_error) {
850
858
  Logger({
851
859
  level: "WARN",
852
- message: "Response Validation Warnnings for getAppStores",
860
+ message: "Response Validation Warnnings for getDomainStatus",
853
861
  });
854
862
  Logger({ level: "WARN", message: res_error });
855
863
  }
@@ -859,32 +867,58 @@ class Configuration {
859
867
 
860
868
  /**
861
869
  * @param {Object} arg - Arg object.
862
- * @param {string} arg.companyId - Current company id
863
- * @param {string} arg.applicationId - Current application id
864
- * @param {number} [arg.pageSize] - Current request items count
865
- * @summary: Application inventory enabled stores
866
- * @description: Application inventory enabled stores.
870
+ * @returns {Promise<DomainsResponse>} - Success response
871
+ * @summary: Get attached domain list
872
+ * @description: Get attached domain list.
867
873
  */
868
- getAppStoresPaginator({ companyId, applicationId, pageSize } = {}) {
869
- const paginator = new Paginator();
870
- const callback = async () => {
871
- const pageId = paginator.nextId;
872
- const pageNo = paginator.pageNo;
873
- const pageType = "number";
874
- const data = await this.getAppStores({
875
- companyId: companyId,
876
- applicationId: applicationId,
877
- pageNo: pageNo,
878
- pageSize: pageSize,
874
+ async getDomains({} = {}) {
875
+ const { error } = ConfigurationValidator.getDomains().validate(
876
+ {},
877
+ { abortEarly: false, allowUnknown: true }
878
+ );
879
+ if (error) {
880
+ return Promise.reject(new FDKClientValidationError(error));
881
+ }
882
+
883
+ // Showing warrnings if extra unknown parameters are found
884
+ const { error: warrning } = ConfigurationValidator.getDomains().validate(
885
+ {},
886
+ { abortEarly: false, allowUnknown: false }
887
+ );
888
+ if (warrning) {
889
+ Logger({
890
+ level: "WARN",
891
+ message: "Parameter Validation warrnings for getDomains",
879
892
  });
880
- paginator.setPaginator({
881
- hasNext: data.page.has_next ? true : false,
882
- nextId: data.page.next_id,
893
+ Logger({ level: "WARN", message: warrning });
894
+ }
895
+
896
+ const query_params = {};
897
+
898
+ const response = await PlatformAPIClient.execute(
899
+ this.config,
900
+ "get",
901
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
902
+ query_params,
903
+ undefined
904
+ );
905
+
906
+ const {
907
+ error: res_error,
908
+ } = ConfigurationModel.DomainsResponse().validate(response, {
909
+ abortEarly: false,
910
+ allowUnknown: false,
911
+ });
912
+
913
+ if (res_error) {
914
+ Logger({
915
+ level: "WARN",
916
+ message: "Response Validation Warnnings for getDomains",
883
917
  });
884
- return data;
885
- };
886
- paginator.setCallback(callback.bind(this));
887
- return paginator;
918
+ Logger({ level: "WARN", message: res_error });
919
+ }
920
+
921
+ return response;
888
922
  }
889
923
 
890
924
  /**
@@ -947,15 +981,21 @@ class Configuration {
947
981
 
948
982
  /**
949
983
  * @param {Object} arg - Arg object.
950
- * @param {ApplicationInventory} arg.body
951
- * @returns {Promise<ApplicationInventory>} - Success response
952
- * @summary: Update application configuration
953
- * @description: Update application configuration for various features and data
984
+ * @param {number} [arg.pageNo] - Current page no
985
+ * @param {number} [arg.pageSize] - Current request items count
986
+ * @param {FilterOrderingStoreRequest} arg.body
987
+ * @returns {Promise<OrderingStores>} - Success response
988
+ * @summary: Get ordering store by filter
989
+ * @description: Get ordering store by filter
954
990
  */
955
- async updateInventoryConfig({ body } = {}) {
956
- const { error } = ConfigurationValidator.updateInventoryConfig().validate(
991
+ async getOrderingStoresByFilter({ body, pageNo, pageSize } = {}) {
992
+ const {
993
+ error,
994
+ } = ConfigurationValidator.getOrderingStoresByFilter().validate(
957
995
  {
958
996
  body,
997
+ pageNo,
998
+ pageSize,
959
999
  },
960
1000
  { abortEarly: false, allowUnknown: true }
961
1001
  );
@@ -966,33 +1006,37 @@ class Configuration {
966
1006
  // Showing warrnings if extra unknown parameters are found
967
1007
  const {
968
1008
  error: warrning,
969
- } = ConfigurationValidator.updateInventoryConfig().validate(
1009
+ } = ConfigurationValidator.getOrderingStoresByFilter().validate(
970
1010
  {
971
1011
  body,
1012
+ pageNo,
1013
+ pageSize,
972
1014
  },
973
1015
  { abortEarly: false, allowUnknown: false }
974
1016
  );
975
1017
  if (warrning) {
976
1018
  Logger({
977
1019
  level: "WARN",
978
- message: "Parameter Validation warrnings for updateInventoryConfig",
1020
+ message: "Parameter Validation warrnings for getOrderingStoresByFilter",
979
1021
  });
980
1022
  Logger({ level: "WARN", message: warrning });
981
1023
  }
982
1024
 
983
1025
  const query_params = {};
1026
+ query_params["page_no"] = pageNo;
1027
+ query_params["page_size"] = pageSize;
984
1028
 
985
1029
  const response = await PlatformAPIClient.execute(
986
1030
  this.config,
987
- "put",
988
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1031
+ "post",
1032
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
989
1033
  query_params,
990
1034
  body
991
1035
  );
992
1036
 
993
1037
  const {
994
1038
  error: res_error,
995
- } = ConfigurationModel.ApplicationInventory().validate(response, {
1039
+ } = ConfigurationModel.OrderingStores().validate(response, {
996
1040
  abortEarly: false,
997
1041
  allowUnknown: false,
998
1042
  });
@@ -1000,7 +1044,7 @@ class Configuration {
1000
1044
  if (res_error) {
1001
1045
  Logger({
1002
1046
  level: "WARN",
1003
- message: "Response Validation Warnnings for updateInventoryConfig",
1047
+ message: "Response Validation Warnnings for getOrderingStoresByFilter",
1004
1048
  });
1005
1049
  Logger({ level: "WARN", message: res_error });
1006
1050
  }
@@ -1010,17 +1054,52 @@ class Configuration {
1010
1054
 
1011
1055
  /**
1012
1056
  * @param {Object} arg - Arg object.
1013
- * @param {AppInventoryPartialUpdate} arg.body
1014
- * @returns {Promise<ApplicationInventory>} - Success response
1015
- * @summary: Partially update application configuration
1016
- * @description: Partially update application configuration for various features and data
1057
+ * @param {string} arg.companyId - Current company id
1058
+ * @param {string} arg.applicationId - Current application id
1059
+ * @param {number} [arg.pageSize] - Current request items count
1060
+ * @param {FilterOrderingStoreRequest} arg.body
1061
+ * @summary: Get ordering store by filter
1062
+ * @description: Get ordering store by filter
1017
1063
  */
1018
- async partiallyUpdateInventoryConfig({ body } = {}) {
1019
- const {
1020
- error,
1021
- } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1064
+ getOrderingStoresByFilterPaginator({
1065
+ companyId,
1066
+ applicationId,
1067
+ pageSize,
1068
+ body,
1069
+ } = {}) {
1070
+ const paginator = new Paginator();
1071
+ const callback = async () => {
1072
+ const pageId = paginator.nextId;
1073
+ const pageNo = paginator.pageNo;
1074
+ const pageType = "number";
1075
+ const data = await this.getOrderingStoresByFilter({
1076
+ companyId: companyId,
1077
+ applicationId: applicationId,
1078
+ body: body,
1079
+ pageNo: pageNo,
1080
+ pageSize: pageSize,
1081
+ });
1082
+ paginator.setPaginator({
1083
+ hasNext: data.page.has_next ? true : false,
1084
+ nextId: data.page.next_id,
1085
+ });
1086
+ return data;
1087
+ };
1088
+ paginator.setCallback(callback.bind(this));
1089
+ return paginator;
1090
+ }
1091
+
1092
+ /**
1093
+ * @param {Object} arg - Arg object.
1094
+ * @param {string} arg.platformType - Current platform name
1095
+ * @returns {Promise<BuildVersionHistory>} - Success response
1096
+ * @summary: Get previous build versions
1097
+ * @description: Get previous build versions
1098
+ */
1099
+ async getPreviousVersions({ platformType } = {}) {
1100
+ const { error } = ConfigurationValidator.getPreviousVersions().validate(
1022
1101
  {
1023
- body,
1102
+ platformType,
1024
1103
  },
1025
1104
  { abortEarly: false, allowUnknown: true }
1026
1105
  );
@@ -1031,17 +1110,16 @@ class Configuration {
1031
1110
  // Showing warrnings if extra unknown parameters are found
1032
1111
  const {
1033
1112
  error: warrning,
1034
- } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1113
+ } = ConfigurationValidator.getPreviousVersions().validate(
1035
1114
  {
1036
- body,
1115
+ platformType,
1037
1116
  },
1038
1117
  { abortEarly: false, allowUnknown: false }
1039
1118
  );
1040
1119
  if (warrning) {
1041
1120
  Logger({
1042
1121
  level: "WARN",
1043
- message:
1044
- "Parameter Validation warrnings for partiallyUpdateInventoryConfig",
1122
+ message: "Parameter Validation warrnings for getPreviousVersions",
1045
1123
  });
1046
1124
  Logger({ level: "WARN", message: warrning });
1047
1125
  }
@@ -1050,15 +1128,15 @@ class Configuration {
1050
1128
 
1051
1129
  const response = await PlatformAPIClient.execute(
1052
1130
  this.config,
1053
- "patch",
1054
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1131
+ "get",
1132
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/versions`,
1055
1133
  query_params,
1056
- body
1134
+ undefined
1057
1135
  );
1058
1136
 
1059
1137
  const {
1060
1138
  error: res_error,
1061
- } = ConfigurationModel.ApplicationInventory().validate(response, {
1139
+ } = ConfigurationModel.BuildVersionHistory().validate(response, {
1062
1140
  abortEarly: false,
1063
1141
  allowUnknown: false,
1064
1142
  });
@@ -1066,8 +1144,7 @@ class Configuration {
1066
1144
  if (res_error) {
1067
1145
  Logger({
1068
1146
  level: "WARN",
1069
- message:
1070
- "Response Validation Warnnings for partiallyUpdateInventoryConfig",
1147
+ message: "Response Validation Warnnings for getPreviousVersions",
1071
1148
  });
1072
1149
  Logger({ level: "WARN", message: res_error });
1073
1150
  }
@@ -1077,13 +1154,22 @@ class Configuration {
1077
1154
 
1078
1155
  /**
1079
1156
  * @param {Object} arg - Arg object.
1080
- * @returns {Promise<AppSupportedCurrency>} - Success response
1081
- * @summary: Get application enabled currency list
1082
- * @description: Get application enabled currency list
1157
+ * @param {number} [arg.pageNo] - The page number to navigate through the
1158
+ * given set of results. Default value is 1.
1159
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
1160
+ * page. Default value is 10.
1161
+ * @param {string} [arg.q] - Store code or name of the ordering store.
1162
+ * @returns {Promise<OrderingStoresResponse>} - Success response
1163
+ * @summary: Get deployment stores
1164
+ * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1083
1165
  */
1084
- async getAppCurrencyConfig({} = {}) {
1085
- const { error } = ConfigurationValidator.getAppCurrencyConfig().validate(
1086
- {},
1166
+ async getStaffOrderingStores({ pageNo, pageSize, q } = {}) {
1167
+ const { error } = ConfigurationValidator.getStaffOrderingStores().validate(
1168
+ {
1169
+ pageNo,
1170
+ pageSize,
1171
+ q,
1172
+ },
1087
1173
  { abortEarly: false, allowUnknown: true }
1088
1174
  );
1089
1175
  if (error) {
@@ -1093,31 +1179,38 @@ class Configuration {
1093
1179
  // Showing warrnings if extra unknown parameters are found
1094
1180
  const {
1095
1181
  error: warrning,
1096
- } = ConfigurationValidator.getAppCurrencyConfig().validate(
1097
- {},
1182
+ } = ConfigurationValidator.getStaffOrderingStores().validate(
1183
+ {
1184
+ pageNo,
1185
+ pageSize,
1186
+ q,
1187
+ },
1098
1188
  { abortEarly: false, allowUnknown: false }
1099
1189
  );
1100
1190
  if (warrning) {
1101
1191
  Logger({
1102
1192
  level: "WARN",
1103
- message: "Parameter Validation warrnings for getAppCurrencyConfig",
1193
+ message: "Parameter Validation warrnings for getStaffOrderingStores",
1104
1194
  });
1105
1195
  Logger({ level: "WARN", message: warrning });
1106
1196
  }
1107
1197
 
1108
1198
  const query_params = {};
1199
+ query_params["page_no"] = pageNo;
1200
+ query_params["page_size"] = pageSize;
1201
+ query_params["q"] = q;
1109
1202
 
1110
1203
  const response = await PlatformAPIClient.execute(
1111
1204
  this.config,
1112
1205
  "get",
1113
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
1206
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/staff-stores`,
1114
1207
  query_params,
1115
1208
  undefined
1116
1209
  );
1117
1210
 
1118
1211
  const {
1119
1212
  error: res_error,
1120
- } = ConfigurationModel.AppSupportedCurrency().validate(response, {
1213
+ } = ConfigurationModel.OrderingStoresResponse().validate(response, {
1121
1214
  abortEarly: false,
1122
1215
  allowUnknown: false,
1123
1216
  });
@@ -1125,7 +1218,7 @@ class Configuration {
1125
1218
  if (res_error) {
1126
1219
  Logger({
1127
1220
  level: "WARN",
1128
- message: "Response Validation Warnnings for getAppCurrencyConfig",
1221
+ message: "Response Validation Warnnings for getStaffOrderingStores",
1129
1222
  });
1130
1223
  Logger({ level: "WARN", message: res_error });
1131
1224
  }
@@ -1135,13 +1228,51 @@ class Configuration {
1135
1228
 
1136
1229
  /**
1137
1230
  * @param {Object} arg - Arg object.
1138
- * @param {AppSupportedCurrency} arg.body
1139
- * @returns {Promise<AppSupportedCurrency>} - Success response
1140
- * @summary: Add initial application supported currency
1141
- * @description: Add initial application supported currency for various features and data. Default INR will be enabled.
1231
+ * @param {string} arg.companyId - Current company id
1232
+ * @param {string} arg.applicationId - Current application id
1233
+ * @param {number} [arg.pageSize] - The number of items to retrieve in each
1234
+ * page. Default value is 10.
1235
+ * @param {string} [arg.q] - Store code or name of the ordering store.
1236
+ * @summary: Get deployment stores
1237
+ * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1142
1238
  */
1143
- async updateAppCurrencyConfig({ body } = {}) {
1144
- const { error } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1239
+ getStaffOrderingStoresPaginator({
1240
+ companyId,
1241
+ applicationId,
1242
+ pageSize,
1243
+ q,
1244
+ } = {}) {
1245
+ const paginator = new Paginator();
1246
+ const callback = async () => {
1247
+ const pageId = paginator.nextId;
1248
+ const pageNo = paginator.pageNo;
1249
+ const pageType = "number";
1250
+ const data = await this.getStaffOrderingStores({
1251
+ companyId: companyId,
1252
+ applicationId: applicationId,
1253
+ pageNo: pageNo,
1254
+ pageSize: pageSize,
1255
+ q: q,
1256
+ });
1257
+ paginator.setPaginator({
1258
+ hasNext: data.page.has_next ? true : false,
1259
+ nextId: data.page.next_id,
1260
+ });
1261
+ return data;
1262
+ };
1263
+ paginator.setCallback(callback.bind(this));
1264
+ return paginator;
1265
+ }
1266
+
1267
+ /**
1268
+ * @param {Object} arg - Arg object.
1269
+ * @param {AppFeatureRequest} arg.body
1270
+ * @returns {Promise<AppFeature>} - Success response
1271
+ * @summary: Update features of application
1272
+ * @description: Update features of application
1273
+ */
1274
+ async modifyAppFeatures({ body } = {}) {
1275
+ const { error } = ConfigurationValidator.modifyAppFeatures().validate(
1145
1276
  {
1146
1277
  body,
1147
1278
  },
@@ -1154,7 +1285,7 @@ class Configuration {
1154
1285
  // Showing warrnings if extra unknown parameters are found
1155
1286
  const {
1156
1287
  error: warrning,
1157
- } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1288
+ } = ConfigurationValidator.modifyAppFeatures().validate(
1158
1289
  {
1159
1290
  body,
1160
1291
  },
@@ -1163,7 +1294,7 @@ class Configuration {
1163
1294
  if (warrning) {
1164
1295
  Logger({
1165
1296
  level: "WARN",
1166
- message: "Parameter Validation warrnings for updateAppCurrencyConfig",
1297
+ message: "Parameter Validation warrnings for modifyAppFeatures",
1167
1298
  });
1168
1299
  Logger({ level: "WARN", message: warrning });
1169
1300
  }
@@ -1172,15 +1303,15 @@ class Configuration {
1172
1303
 
1173
1304
  const response = await PlatformAPIClient.execute(
1174
1305
  this.config,
1175
- "post",
1176
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
1306
+ "patch",
1307
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
1177
1308
  query_params,
1178
1309
  body
1179
1310
  );
1180
1311
 
1181
1312
  const {
1182
1313
  error: res_error,
1183
- } = ConfigurationModel.AppSupportedCurrency().validate(response, {
1314
+ } = ConfigurationModel.AppFeature().validate(response, {
1184
1315
  abortEarly: false,
1185
1316
  allowUnknown: false,
1186
1317
  });
@@ -1188,7 +1319,7 @@ class Configuration {
1188
1319
  if (res_error) {
1189
1320
  Logger({
1190
1321
  level: "WARN",
1191
- message: "Response Validation Warnnings for updateAppCurrencyConfig",
1322
+ message: "Response Validation Warnnings for modifyAppFeatures",
1192
1323
  });
1193
1324
  Logger({ level: "WARN", message: res_error });
1194
1325
  }
@@ -1198,13 +1329,18 @@ class Configuration {
1198
1329
 
1199
1330
  /**
1200
1331
  * @param {Object} arg - Arg object.
1201
- * @returns {Promise<AppCurrencyResponse>} - Success response
1202
- * @summary: Get currencies enabled in the application
1203
- * @description: Use this API to get a list of currencies allowed in the current application. Moreover, get the name, code, symbol, and the decimal digits of the currencies.
1332
+ * @param {AppInventoryPartialUpdate} arg.body
1333
+ * @returns {Promise<ApplicationInventory>} - Success response
1334
+ * @summary: Partially update application configuration
1335
+ * @description: Partially update application configuration for various features and data
1204
1336
  */
1205
- async getAppSupportedCurrency({} = {}) {
1206
- const { error } = ConfigurationValidator.getAppSupportedCurrency().validate(
1207
- {},
1337
+ async partiallyUpdateInventoryConfig({ body } = {}) {
1338
+ const {
1339
+ error,
1340
+ } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1341
+ {
1342
+ body,
1343
+ },
1208
1344
  { abortEarly: false, allowUnknown: true }
1209
1345
  );
1210
1346
  if (error) {
@@ -1214,14 +1350,17 @@ class Configuration {
1214
1350
  // Showing warrnings if extra unknown parameters are found
1215
1351
  const {
1216
1352
  error: warrning,
1217
- } = ConfigurationValidator.getAppSupportedCurrency().validate(
1218
- {},
1353
+ } = ConfigurationValidator.partiallyUpdateInventoryConfig().validate(
1354
+ {
1355
+ body,
1356
+ },
1219
1357
  { abortEarly: false, allowUnknown: false }
1220
1358
  );
1221
1359
  if (warrning) {
1222
1360
  Logger({
1223
1361
  level: "WARN",
1224
- message: "Parameter Validation warrnings for getAppSupportedCurrency",
1362
+ message:
1363
+ "Parameter Validation warrnings for partiallyUpdateInventoryConfig",
1225
1364
  });
1226
1365
  Logger({ level: "WARN", message: warrning });
1227
1366
  }
@@ -1230,15 +1369,15 @@ class Configuration {
1230
1369
 
1231
1370
  const response = await PlatformAPIClient.execute(
1232
1371
  this.config,
1233
- "get",
1234
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency/supported`,
1372
+ "patch",
1373
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1235
1374
  query_params,
1236
- undefined
1375
+ body
1237
1376
  );
1238
1377
 
1239
1378
  const {
1240
1379
  error: res_error,
1241
- } = ConfigurationModel.AppCurrencyResponse().validate(response, {
1380
+ } = ConfigurationModel.ApplicationInventory().validate(response, {
1242
1381
  abortEarly: false,
1243
1382
  allowUnknown: false,
1244
1383
  });
@@ -1246,7 +1385,8 @@ class Configuration {
1246
1385
  if (res_error) {
1247
1386
  Logger({
1248
1387
  level: "WARN",
1249
- message: "Response Validation Warnnings for getAppSupportedCurrency",
1388
+ message:
1389
+ "Response Validation Warnnings for partiallyUpdateInventoryConfig",
1250
1390
  });
1251
1391
  Logger({ level: "WARN", message: res_error });
1252
1392
  }
@@ -1256,21 +1396,15 @@ class Configuration {
1256
1396
 
1257
1397
  /**
1258
1398
  * @param {Object} arg - Arg object.
1259
- * @param {number} [arg.pageNo] - Current page no
1260
- * @param {number} [arg.pageSize] - Current request items count
1261
- * @param {FilterOrderingStoreRequest} arg.body
1262
- * @returns {Promise<OrderingStores>} - Success response
1263
- * @summary: Get ordering store by filter
1264
- * @description: Get ordering store by filter
1399
+ * @param {string} arg.id - Domain _id
1400
+ * @returns {Promise<SuccessMessageResponse>} - Success response
1401
+ * @summary: Remove attached domain
1402
+ * @description: Remove attached domain.
1265
1403
  */
1266
- async getOrderingStoresByFilter({ body, pageNo, pageSize } = {}) {
1267
- const {
1268
- error,
1269
- } = ConfigurationValidator.getOrderingStoresByFilter().validate(
1404
+ async removeDomainById({ id } = {}) {
1405
+ const { error } = ConfigurationValidator.removeDomainById().validate(
1270
1406
  {
1271
- body,
1272
- pageNo,
1273
- pageSize,
1407
+ id,
1274
1408
  },
1275
1409
  { abortEarly: false, allowUnknown: true }
1276
1410
  );
@@ -1281,37 +1415,33 @@ class Configuration {
1281
1415
  // Showing warrnings if extra unknown parameters are found
1282
1416
  const {
1283
1417
  error: warrning,
1284
- } = ConfigurationValidator.getOrderingStoresByFilter().validate(
1418
+ } = ConfigurationValidator.removeDomainById().validate(
1285
1419
  {
1286
- body,
1287
- pageNo,
1288
- pageSize,
1420
+ id,
1289
1421
  },
1290
1422
  { abortEarly: false, allowUnknown: false }
1291
1423
  );
1292
1424
  if (warrning) {
1293
1425
  Logger({
1294
1426
  level: "WARN",
1295
- message: "Parameter Validation warrnings for getOrderingStoresByFilter",
1427
+ message: "Parameter Validation warrnings for removeDomainById",
1296
1428
  });
1297
1429
  Logger({ level: "WARN", message: warrning });
1298
1430
  }
1299
1431
 
1300
1432
  const query_params = {};
1301
- query_params["page_no"] = pageNo;
1302
- query_params["page_size"] = pageSize;
1303
1433
 
1304
1434
  const response = await PlatformAPIClient.execute(
1305
1435
  this.config,
1306
- "post",
1307
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/stores/filter`,
1436
+ "delete",
1437
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${id}`,
1308
1438
  query_params,
1309
- body
1439
+ undefined
1310
1440
  );
1311
1441
 
1312
1442
  const {
1313
1443
  error: res_error,
1314
- } = ConfigurationModel.OrderingStores().validate(response, {
1444
+ } = ConfigurationModel.SuccessMessageResponse().validate(response, {
1315
1445
  abortEarly: false,
1316
1446
  allowUnknown: false,
1317
1447
  });
@@ -1319,7 +1449,7 @@ class Configuration {
1319
1449
  if (res_error) {
1320
1450
  Logger({
1321
1451
  level: "WARN",
1322
- message: "Response Validation Warnnings for getOrderingStoresByFilter",
1452
+ message: "Response Validation Warnnings for removeDomainById",
1323
1453
  });
1324
1454
  Logger({ level: "WARN", message: res_error });
1325
1455
  }
@@ -1329,52 +1459,13 @@ class Configuration {
1329
1459
 
1330
1460
  /**
1331
1461
  * @param {Object} arg - Arg object.
1332
- * @param {string} arg.companyId - Current company id
1333
- * @param {string} arg.applicationId - Current application id
1334
- * @param {number} [arg.pageSize] - Current request items count
1335
- * @param {FilterOrderingStoreRequest} arg.body
1336
- * @summary: Get ordering store by filter
1337
- * @description: Get ordering store by filter
1338
- */
1339
- getOrderingStoresByFilterPaginator({
1340
- companyId,
1341
- applicationId,
1342
- pageSize,
1343
- body,
1344
- } = {}) {
1345
- const paginator = new Paginator();
1346
- const callback = async () => {
1347
- const pageId = paginator.nextId;
1348
- const pageNo = paginator.pageNo;
1349
- const pageType = "number";
1350
- const data = await this.getOrderingStoresByFilter({
1351
- companyId: companyId,
1352
- applicationId: applicationId,
1353
- body: body,
1354
- pageNo: pageNo,
1355
- pageSize: pageSize,
1356
- });
1357
- paginator.setPaginator({
1358
- hasNext: data.page.has_next ? true : false,
1359
- nextId: data.page.next_id,
1360
- });
1361
- return data;
1362
- };
1363
- paginator.setCallback(callback.bind(this));
1364
- return paginator;
1365
- }
1366
-
1367
- /**
1368
- * @param {Object} arg - Arg object.
1369
- * @param {OrderingStoreConfig} arg.body
1370
- * @returns {Promise<DeploymentMeta>} - Success response
1371
- * @summary: Add/Update ordering store config
1372
- * @description: Add/Update ordering store config.
1462
+ * @param {TokenResponse} arg.body
1463
+ * @returns {Promise<TokenResponse>} - Success response
1464
+ * @summary: Add social tokens
1465
+ * @description: Add social tokens.
1373
1466
  */
1374
- async updateOrderingStoreConfig({ body } = {}) {
1375
- const {
1376
- error,
1377
- } = ConfigurationValidator.updateOrderingStoreConfig().validate(
1467
+ async updateAppApiTokens({ body } = {}) {
1468
+ const { error } = ConfigurationValidator.updateAppApiTokens().validate(
1378
1469
  {
1379
1470
  body,
1380
1471
  },
@@ -1387,7 +1478,7 @@ class Configuration {
1387
1478
  // Showing warrnings if extra unknown parameters are found
1388
1479
  const {
1389
1480
  error: warrning,
1390
- } = ConfigurationValidator.updateOrderingStoreConfig().validate(
1481
+ } = ConfigurationValidator.updateAppApiTokens().validate(
1391
1482
  {
1392
1483
  body,
1393
1484
  },
@@ -1396,7 +1487,7 @@ class Configuration {
1396
1487
  if (warrning) {
1397
1488
  Logger({
1398
1489
  level: "WARN",
1399
- message: "Parameter Validation warrnings for updateOrderingStoreConfig",
1490
+ message: "Parameter Validation warrnings for updateAppApiTokens",
1400
1491
  });
1401
1492
  Logger({ level: "WARN", message: warrning });
1402
1493
  }
@@ -1406,14 +1497,14 @@ class Configuration {
1406
1497
  const response = await PlatformAPIClient.execute(
1407
1498
  this.config,
1408
1499
  "post",
1409
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
1500
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/token`,
1410
1501
  query_params,
1411
1502
  body
1412
1503
  );
1413
1504
 
1414
1505
  const {
1415
1506
  error: res_error,
1416
- } = ConfigurationModel.DeploymentMeta().validate(response, {
1507
+ } = ConfigurationModel.TokenResponse().validate(response, {
1417
1508
  abortEarly: false,
1418
1509
  allowUnknown: false,
1419
1510
  });
@@ -1421,7 +1512,7 @@ class Configuration {
1421
1512
  if (res_error) {
1422
1513
  Logger({
1423
1514
  level: "WARN",
1424
- message: "Response Validation Warnnings for updateOrderingStoreConfig",
1515
+ message: "Response Validation Warnnings for updateAppApiTokens",
1425
1516
  });
1426
1517
  Logger({ level: "WARN", message: res_error });
1427
1518
  }
@@ -1429,23 +1520,17 @@ class Configuration {
1429
1520
  return response;
1430
1521
  }
1431
1522
 
1432
- /**
1433
- * @param {Object} arg - Arg object.
1434
- * @param {number} [arg.pageNo] - The page number to navigate through the
1435
- * given set of results. Default value is 1.
1436
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
1437
- * page. Default value is 10.
1438
- * @param {string} [arg.q] - Store code or name of the ordering store.
1439
- * @returns {Promise<OrderingStoresResponse>} - Success response
1440
- * @summary: Get deployment stores
1441
- * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1523
+ /**
1524
+ * @param {Object} arg - Arg object.
1525
+ * @param {ApplicationDetail} arg.body
1526
+ * @returns {Promise<ApplicationDetail>} - Success response
1527
+ * @summary: Add or update application's basic details
1528
+ * @description: Add or update application's basic details
1442
1529
  */
1443
- async getStaffOrderingStores({ pageNo, pageSize, q } = {}) {
1444
- const { error } = ConfigurationValidator.getStaffOrderingStores().validate(
1530
+ async updateAppBasicDetails({ body } = {}) {
1531
+ const { error } = ConfigurationValidator.updateAppBasicDetails().validate(
1445
1532
  {
1446
- pageNo,
1447
- pageSize,
1448
- q,
1533
+ body,
1449
1534
  },
1450
1535
  { abortEarly: false, allowUnknown: true }
1451
1536
  );
@@ -1456,38 +1541,33 @@ class Configuration {
1456
1541
  // Showing warrnings if extra unknown parameters are found
1457
1542
  const {
1458
1543
  error: warrning,
1459
- } = ConfigurationValidator.getStaffOrderingStores().validate(
1544
+ } = ConfigurationValidator.updateAppBasicDetails().validate(
1460
1545
  {
1461
- pageNo,
1462
- pageSize,
1463
- q,
1546
+ body,
1464
1547
  },
1465
1548
  { abortEarly: false, allowUnknown: false }
1466
1549
  );
1467
1550
  if (warrning) {
1468
1551
  Logger({
1469
1552
  level: "WARN",
1470
- message: "Parameter Validation warrnings for getStaffOrderingStores",
1553
+ message: "Parameter Validation warrnings for updateAppBasicDetails",
1471
1554
  });
1472
1555
  Logger({ level: "WARN", message: warrning });
1473
1556
  }
1474
1557
 
1475
1558
  const query_params = {};
1476
- query_params["page_no"] = pageNo;
1477
- query_params["page_size"] = pageSize;
1478
- query_params["q"] = q;
1479
1559
 
1480
1560
  const response = await PlatformAPIClient.execute(
1481
1561
  this.config,
1482
- "get",
1483
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store/staff-stores`,
1562
+ "put",
1563
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/detail`,
1484
1564
  query_params,
1485
- undefined
1565
+ body
1486
1566
  );
1487
1567
 
1488
1568
  const {
1489
1569
  error: res_error,
1490
- } = ConfigurationModel.OrderingStoresResponse().validate(response, {
1570
+ } = ConfigurationModel.ApplicationDetail().validate(response, {
1491
1571
  abortEarly: false,
1492
1572
  allowUnknown: false,
1493
1573
  });
@@ -1495,7 +1575,7 @@ class Configuration {
1495
1575
  if (res_error) {
1496
1576
  Logger({
1497
1577
  level: "WARN",
1498
- message: "Response Validation Warnnings for getStaffOrderingStores",
1578
+ message: "Response Validation Warnnings for updateAppBasicDetails",
1499
1579
  });
1500
1580
  Logger({ level: "WARN", message: res_error });
1501
1581
  }
@@ -1505,51 +1585,16 @@ class Configuration {
1505
1585
 
1506
1586
  /**
1507
1587
  * @param {Object} arg - Arg object.
1508
- * @param {string} arg.companyId - Current company id
1509
- * @param {string} arg.applicationId - Current application id
1510
- * @param {number} [arg.pageSize] - The number of items to retrieve in each
1511
- * page. Default value is 10.
1512
- * @param {string} [arg.q] - Store code or name of the ordering store.
1513
- * @summary: Get deployment stores
1514
- * @description: Use this API to retrieve the details of all stores access given to the staff member (the selling locations where the application will be utilized for placing orders).
1515
- */
1516
- getStaffOrderingStoresPaginator({
1517
- companyId,
1518
- applicationId,
1519
- pageSize,
1520
- q,
1521
- } = {}) {
1522
- const paginator = new Paginator();
1523
- const callback = async () => {
1524
- const pageId = paginator.nextId;
1525
- const pageNo = paginator.pageNo;
1526
- const pageType = "number";
1527
- const data = await this.getStaffOrderingStores({
1528
- companyId: companyId,
1529
- applicationId: applicationId,
1530
- pageNo: pageNo,
1531
- pageSize: pageSize,
1532
- q: q,
1533
- });
1534
- paginator.setPaginator({
1535
- hasNext: data.page.has_next ? true : false,
1536
- nextId: data.page.next_id,
1537
- });
1538
- return data;
1539
- };
1540
- paginator.setCallback(callback.bind(this));
1541
- return paginator;
1542
- }
1543
-
1544
- /**
1545
- * @param {Object} arg - Arg object.
1546
- * @returns {Promise<DomainsResponse>} - Success response
1547
- * @summary: Get attached domain list
1548
- * @description: Get attached domain list.
1588
+ * @param {ApplicationInformation} arg.body
1589
+ * @returns {Promise<ApplicationInformation>} - Success response
1590
+ * @summary: Get application information
1591
+ * @description: Save Application Current Information. This includes information about social links, address and contact information of an application.
1549
1592
  */
1550
- async getDomains({} = {}) {
1551
- const { error } = ConfigurationValidator.getDomains().validate(
1552
- {},
1593
+ async updateAppContactInfo({ body } = {}) {
1594
+ const { error } = ConfigurationValidator.updateAppContactInfo().validate(
1595
+ {
1596
+ body,
1597
+ },
1553
1598
  { abortEarly: false, allowUnknown: true }
1554
1599
  );
1555
1600
  if (error) {
@@ -1557,14 +1602,18 @@ class Configuration {
1557
1602
  }
1558
1603
 
1559
1604
  // Showing warrnings if extra unknown parameters are found
1560
- const { error: warrning } = ConfigurationValidator.getDomains().validate(
1561
- {},
1605
+ const {
1606
+ error: warrning,
1607
+ } = ConfigurationValidator.updateAppContactInfo().validate(
1608
+ {
1609
+ body,
1610
+ },
1562
1611
  { abortEarly: false, allowUnknown: false }
1563
1612
  );
1564
1613
  if (warrning) {
1565
1614
  Logger({
1566
1615
  level: "WARN",
1567
- message: "Parameter Validation warrnings for getDomains",
1616
+ message: "Parameter Validation warrnings for updateAppContactInfo",
1568
1617
  });
1569
1618
  Logger({ level: "WARN", message: warrning });
1570
1619
  }
@@ -1573,15 +1622,15 @@ class Configuration {
1573
1622
 
1574
1623
  const response = await PlatformAPIClient.execute(
1575
1624
  this.config,
1576
- "get",
1577
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
1625
+ "put",
1626
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/information`,
1578
1627
  query_params,
1579
- undefined
1628
+ body
1580
1629
  );
1581
1630
 
1582
1631
  const {
1583
1632
  error: res_error,
1584
- } = ConfigurationModel.DomainsResponse().validate(response, {
1633
+ } = ConfigurationModel.ApplicationInformation().validate(response, {
1585
1634
  abortEarly: false,
1586
1635
  allowUnknown: false,
1587
1636
  });
@@ -1589,7 +1638,7 @@ class Configuration {
1589
1638
  if (res_error) {
1590
1639
  Logger({
1591
1640
  level: "WARN",
1592
- message: "Response Validation Warnnings for getDomains",
1641
+ message: "Response Validation Warnnings for updateAppContactInfo",
1593
1642
  });
1594
1643
  Logger({ level: "WARN", message: res_error });
1595
1644
  }
@@ -1599,13 +1648,13 @@ class Configuration {
1599
1648
 
1600
1649
  /**
1601
1650
  * @param {Object} arg - Arg object.
1602
- * @param {DomainAddRequest} arg.body
1603
- * @returns {Promise<Domain>} - Success response
1604
- * @summary: Add new domain to application
1605
- * @description: Add new domain to application.
1651
+ * @param {AppSupportedCurrency} arg.body
1652
+ * @returns {Promise<AppSupportedCurrency>} - Success response
1653
+ * @summary: Add initial application supported currency
1654
+ * @description: Add initial application supported currency for various features and data. Default INR will be enabled.
1606
1655
  */
1607
- async addDomain({ body } = {}) {
1608
- const { error } = ConfigurationValidator.addDomain().validate(
1656
+ async updateAppCurrencyConfig({ body } = {}) {
1657
+ const { error } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1609
1658
  {
1610
1659
  body,
1611
1660
  },
@@ -1616,7 +1665,9 @@ class Configuration {
1616
1665
  }
1617
1666
 
1618
1667
  // Showing warrnings if extra unknown parameters are found
1619
- const { error: warrning } = ConfigurationValidator.addDomain().validate(
1668
+ const {
1669
+ error: warrning,
1670
+ } = ConfigurationValidator.updateAppCurrencyConfig().validate(
1620
1671
  {
1621
1672
  body,
1622
1673
  },
@@ -1625,7 +1676,7 @@ class Configuration {
1625
1676
  if (warrning) {
1626
1677
  Logger({
1627
1678
  level: "WARN",
1628
- message: "Parameter Validation warrnings for addDomain",
1679
+ message: "Parameter Validation warrnings for updateAppCurrencyConfig",
1629
1680
  });
1630
1681
  Logger({ level: "WARN", message: warrning });
1631
1682
  }
@@ -1635,20 +1686,22 @@ class Configuration {
1635
1686
  const response = await PlatformAPIClient.execute(
1636
1687
  this.config,
1637
1688
  "post",
1638
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain`,
1689
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/currency`,
1639
1690
  query_params,
1640
1691
  body
1641
1692
  );
1642
1693
 
1643
- const { error: res_error } = ConfigurationModel.Domain().validate(
1644
- response,
1645
- { abortEarly: false, allowUnknown: false }
1646
- );
1694
+ const {
1695
+ error: res_error,
1696
+ } = ConfigurationModel.AppSupportedCurrency().validate(response, {
1697
+ abortEarly: false,
1698
+ allowUnknown: false,
1699
+ });
1647
1700
 
1648
1701
  if (res_error) {
1649
1702
  Logger({
1650
1703
  level: "WARN",
1651
- message: "Response Validation Warnnings for addDomain",
1704
+ message: "Response Validation Warnnings for updateAppCurrencyConfig",
1652
1705
  });
1653
1706
  Logger({ level: "WARN", message: res_error });
1654
1707
  }
@@ -1658,15 +1711,15 @@ class Configuration {
1658
1711
 
1659
1712
  /**
1660
1713
  * @param {Object} arg - Arg object.
1661
- * @param {string} arg.id - Domain _id
1662
- * @returns {Promise<SuccessMessageResponse>} - Success response
1663
- * @summary: Remove attached domain
1664
- * @description: Remove attached domain.
1714
+ * @param {AppFeatureRequest} arg.body
1715
+ * @returns {Promise<AppFeature>} - Success response
1716
+ * @summary: Update features of application
1717
+ * @description: Update features of application
1665
1718
  */
1666
- async removeDomainById({ id } = {}) {
1667
- const { error } = ConfigurationValidator.removeDomainById().validate(
1719
+ async updateAppFeatures({ body } = {}) {
1720
+ const { error } = ConfigurationValidator.updateAppFeatures().validate(
1668
1721
  {
1669
- id,
1722
+ body,
1670
1723
  },
1671
1724
  { abortEarly: false, allowUnknown: true }
1672
1725
  );
@@ -1677,16 +1730,16 @@ class Configuration {
1677
1730
  // Showing warrnings if extra unknown parameters are found
1678
1731
  const {
1679
1732
  error: warrning,
1680
- } = ConfigurationValidator.removeDomainById().validate(
1733
+ } = ConfigurationValidator.updateAppFeatures().validate(
1681
1734
  {
1682
- id,
1735
+ body,
1683
1736
  },
1684
1737
  { abortEarly: false, allowUnknown: false }
1685
1738
  );
1686
1739
  if (warrning) {
1687
1740
  Logger({
1688
1741
  level: "WARN",
1689
- message: "Parameter Validation warrnings for removeDomainById",
1742
+ message: "Parameter Validation warrnings for updateAppFeatures",
1690
1743
  });
1691
1744
  Logger({ level: "WARN", message: warrning });
1692
1745
  }
@@ -1695,15 +1748,15 @@ class Configuration {
1695
1748
 
1696
1749
  const response = await PlatformAPIClient.execute(
1697
1750
  this.config,
1698
- "delete",
1699
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/${id}`,
1751
+ "post",
1752
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/feature`,
1700
1753
  query_params,
1701
- undefined
1754
+ body
1702
1755
  );
1703
1756
 
1704
1757
  const {
1705
1758
  error: res_error,
1706
- } = ConfigurationModel.SuccessMessageResponse().validate(response, {
1759
+ } = ConfigurationModel.AppFeature().validate(response, {
1707
1760
  abortEarly: false,
1708
1761
  allowUnknown: false,
1709
1762
  });
@@ -1711,7 +1764,7 @@ class Configuration {
1711
1764
  if (res_error) {
1712
1765
  Logger({
1713
1766
  level: "WARN",
1714
- message: "Response Validation Warnnings for removeDomainById",
1767
+ message: "Response Validation Warnnings for updateAppFeatures",
1715
1768
  });
1716
1769
  Logger({ level: "WARN", message: res_error });
1717
1770
  }
@@ -1721,14 +1774,16 @@ class Configuration {
1721
1774
 
1722
1775
  /**
1723
1776
  * @param {Object} arg - Arg object.
1724
- * @param {UpdateDomainTypeRequest} arg.body
1725
- * @returns {Promise<DomainsResponse>} - Success response
1726
- * @summary: Change domain type
1727
- * @description: Change a domain to Primary or Shortlink domain
1777
+ * @param {string} arg.platformType - Current platform name
1778
+ * @param {MobileAppConfigRequest} arg.body
1779
+ * @returns {Promise<MobileAppConfiguration>} - Success response
1780
+ * @summary: Update build config for next build
1781
+ * @description: Update build config for next build
1728
1782
  */
1729
- async changeDomainType({ body } = {}) {
1730
- const { error } = ConfigurationValidator.changeDomainType().validate(
1783
+ async updateBuildConfig({ platformType, body } = {}) {
1784
+ const { error } = ConfigurationValidator.updateBuildConfig().validate(
1731
1785
  {
1786
+ platformType,
1732
1787
  body,
1733
1788
  },
1734
1789
  { abortEarly: false, allowUnknown: true }
@@ -1740,8 +1795,9 @@ class Configuration {
1740
1795
  // Showing warrnings if extra unknown parameters are found
1741
1796
  const {
1742
1797
  error: warrning,
1743
- } = ConfigurationValidator.changeDomainType().validate(
1798
+ } = ConfigurationValidator.updateBuildConfig().validate(
1744
1799
  {
1800
+ platformType,
1745
1801
  body,
1746
1802
  },
1747
1803
  { abortEarly: false, allowUnknown: false }
@@ -1749,7 +1805,7 @@ class Configuration {
1749
1805
  if (warrning) {
1750
1806
  Logger({
1751
1807
  level: "WARN",
1752
- message: "Parameter Validation warrnings for changeDomainType",
1808
+ message: "Parameter Validation warrnings for updateBuildConfig",
1753
1809
  });
1754
1810
  Logger({ level: "WARN", message: warrning });
1755
1811
  }
@@ -1758,15 +1814,15 @@ class Configuration {
1758
1814
 
1759
1815
  const response = await PlatformAPIClient.execute(
1760
1816
  this.config,
1761
- "post",
1762
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/set-domain`,
1817
+ "put",
1818
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/build/${platformType}/configuration`,
1763
1819
  query_params,
1764
1820
  body
1765
1821
  );
1766
1822
 
1767
1823
  const {
1768
1824
  error: res_error,
1769
- } = ConfigurationModel.DomainsResponse().validate(response, {
1825
+ } = ConfigurationModel.MobileAppConfiguration().validate(response, {
1770
1826
  abortEarly: false,
1771
1827
  allowUnknown: false,
1772
1828
  });
@@ -1774,7 +1830,7 @@ class Configuration {
1774
1830
  if (res_error) {
1775
1831
  Logger({
1776
1832
  level: "WARN",
1777
- message: "Response Validation Warnnings for changeDomainType",
1833
+ message: "Response Validation Warnnings for updateBuildConfig",
1778
1834
  });
1779
1835
  Logger({ level: "WARN", message: res_error });
1780
1836
  }
@@ -1784,13 +1840,13 @@ class Configuration {
1784
1840
 
1785
1841
  /**
1786
1842
  * @param {Object} arg - Arg object.
1787
- * @param {DomainStatusRequest} arg.body
1788
- * @returns {Promise<DomainStatusResponse>} - Success response
1789
- * @summary: Get domain connected status.
1790
- * @description: Get domain connected status. Check if domain is live and mapped to appropriate IP to fynd servers.
1843
+ * @param {ApplicationInventory} arg.body
1844
+ * @returns {Promise<ApplicationInventory>} - Success response
1845
+ * @summary: Update application configuration
1846
+ * @description: Update application configuration for various features and data
1791
1847
  */
1792
- async getDomainStatus({ body } = {}) {
1793
- const { error } = ConfigurationValidator.getDomainStatus().validate(
1848
+ async updateInventoryConfig({ body } = {}) {
1849
+ const { error } = ConfigurationValidator.updateInventoryConfig().validate(
1794
1850
  {
1795
1851
  body,
1796
1852
  },
@@ -1803,7 +1859,7 @@ class Configuration {
1803
1859
  // Showing warrnings if extra unknown parameters are found
1804
1860
  const {
1805
1861
  error: warrning,
1806
- } = ConfigurationValidator.getDomainStatus().validate(
1862
+ } = ConfigurationValidator.updateInventoryConfig().validate(
1807
1863
  {
1808
1864
  body,
1809
1865
  },
@@ -1812,7 +1868,7 @@ class Configuration {
1812
1868
  if (warrning) {
1813
1869
  Logger({
1814
1870
  level: "WARN",
1815
- message: "Parameter Validation warrnings for getDomainStatus",
1871
+ message: "Parameter Validation warrnings for updateInventoryConfig",
1816
1872
  });
1817
1873
  Logger({ level: "WARN", message: warrning });
1818
1874
  }
@@ -1821,15 +1877,15 @@ class Configuration {
1821
1877
 
1822
1878
  const response = await PlatformAPIClient.execute(
1823
1879
  this.config,
1824
- "post",
1825
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/domain/domain-status`,
1880
+ "put",
1881
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
1826
1882
  query_params,
1827
1883
  body
1828
1884
  );
1829
1885
 
1830
1886
  const {
1831
1887
  error: res_error,
1832
- } = ConfigurationModel.DomainStatusResponse().validate(response, {
1888
+ } = ConfigurationModel.ApplicationInventory().validate(response, {
1833
1889
  abortEarly: false,
1834
1890
  allowUnknown: false,
1835
1891
  });
@@ -1837,7 +1893,7 @@ class Configuration {
1837
1893
  if (res_error) {
1838
1894
  Logger({
1839
1895
  level: "WARN",
1840
- message: "Response Validation Warnnings for getDomainStatus",
1896
+ message: "Response Validation Warnnings for updateInventoryConfig",
1841
1897
  });
1842
1898
  Logger({ level: "WARN", message: res_error });
1843
1899
  }
@@ -1847,13 +1903,18 @@ class Configuration {
1847
1903
 
1848
1904
  /**
1849
1905
  * @param {Object} arg - Arg object.
1850
- * @returns {Promise<Application>} - Success response
1851
- * @summary: Get application data from id
1852
- * @description: Get application data from id
1906
+ * @param {OrderingStoreConfig} arg.body
1907
+ * @returns {Promise<DeploymentMeta>} - Success response
1908
+ * @summary: Add/Update ordering store config
1909
+ * @description: Add/Update ordering store config.
1853
1910
  */
1854
- async getApplicationById({} = {}) {
1855
- const { error } = ConfigurationValidator.getApplicationById().validate(
1856
- {},
1911
+ async updateOrderingStoreConfig({ body } = {}) {
1912
+ const {
1913
+ error,
1914
+ } = ConfigurationValidator.updateOrderingStoreConfig().validate(
1915
+ {
1916
+ body,
1917
+ },
1857
1918
  { abortEarly: false, allowUnknown: true }
1858
1919
  );
1859
1920
  if (error) {
@@ -1863,14 +1924,16 @@ class Configuration {
1863
1924
  // Showing warrnings if extra unknown parameters are found
1864
1925
  const {
1865
1926
  error: warrning,
1866
- } = ConfigurationValidator.getApplicationById().validate(
1867
- {},
1927
+ } = ConfigurationValidator.updateOrderingStoreConfig().validate(
1928
+ {
1929
+ body,
1930
+ },
1868
1931
  { abortEarly: false, allowUnknown: false }
1869
1932
  );
1870
1933
  if (warrning) {
1871
1934
  Logger({
1872
1935
  level: "WARN",
1873
- message: "Parameter Validation warrnings for getApplicationById",
1936
+ message: "Parameter Validation warrnings for updateOrderingStoreConfig",
1874
1937
  });
1875
1938
  Logger({ level: "WARN", message: warrning });
1876
1939
  }
@@ -1879,15 +1942,15 @@ class Configuration {
1879
1942
 
1880
1943
  const response = await PlatformAPIClient.execute(
1881
1944
  this.config,
1882
- "get",
1883
- `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
1945
+ "post",
1946
+ `/service/platform/configuration/v1.0/company/${this.config.companyId}/application/${this.applicationId}/ordering-store`,
1884
1947
  query_params,
1885
- undefined
1948
+ body
1886
1949
  );
1887
1950
 
1888
1951
  const {
1889
1952
  error: res_error,
1890
- } = ConfigurationModel.Application().validate(response, {
1953
+ } = ConfigurationModel.DeploymentMeta().validate(response, {
1891
1954
  abortEarly: false,
1892
1955
  allowUnknown: false,
1893
1956
  });
@@ -1895,7 +1958,7 @@ class Configuration {
1895
1958
  if (res_error) {
1896
1959
  Logger({
1897
1960
  level: "WARN",
1898
- message: "Response Validation Warnnings for getApplicationById",
1961
+ message: "Response Validation Warnnings for updateOrderingStoreConfig",
1899
1962
  });
1900
1963
  Logger({ level: "WARN", message: res_error });
1901
1964
  }