@gofynd/fdk-client-javascript 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/documentation/application/CART.md +5934 -4502
  2. package/documentation/application/CATALOG.md +6338 -7245
  3. package/documentation/application/COMMON.md +95 -222
  4. package/documentation/application/COMMUNICATION.md +106 -186
  5. package/documentation/application/CONFIGURATION.md +903 -1597
  6. package/documentation/application/CONTENT.md +562 -1270
  7. package/documentation/application/FILESTORAGE.md +84 -220
  8. package/documentation/application/LEAD.md +314 -660
  9. package/documentation/application/LOGISTIC.md +229 -305
  10. package/documentation/application/ORDER.md +642 -1137
  11. package/documentation/application/PAYMENT.md +2285 -3031
  12. package/documentation/application/POSCART.md +6079 -4642
  13. package/documentation/application/REWARDS.md +94 -248
  14. package/documentation/application/SHARE.md +152 -250
  15. package/documentation/application/THEME.md +952 -1235
  16. package/documentation/application/USER.md +1228 -1765
  17. package/documentation/platform/ANALYTICS.md +207 -349
  18. package/documentation/platform/AUDITTRAIL.md +121 -204
  19. package/documentation/platform/BILLING.md +865 -1376
  20. package/documentation/platform/CART.md +2814 -3662
  21. package/documentation/platform/CATALOG.md +15266 -17619
  22. package/documentation/platform/COMMON.md +95 -222
  23. package/documentation/platform/COMMUNICATION.md +1632 -2380
  24. package/documentation/platform/COMPANYPROFILE.md +572 -957
  25. package/documentation/platform/CONFIGURATION.md +3050 -4073
  26. package/documentation/platform/CONTENT.md +3509 -4121
  27. package/documentation/platform/DISCOUNT.md +140 -236
  28. package/documentation/platform/FILESTORAGE.md +187 -323
  29. package/documentation/platform/INVENTORY.md +268 -911
  30. package/documentation/platform/LEAD.md +2195 -2541
  31. package/documentation/platform/ORDER.md +3750 -5636
  32. package/documentation/platform/PARTNER.md +9 -36
  33. package/documentation/platform/PAYMENT.md +903 -1213
  34. package/documentation/platform/REWARDS.md +183 -347
  35. package/documentation/platform/SHARE.md +120 -213
  36. package/documentation/platform/THEME.md +12956 -13239
  37. package/documentation/platform/USER.md +975 -1120
  38. package/documentation/platform/WEBHOOK.md +78 -184
  39. package/documentation/public/CONFIGURATION.md +95 -222
  40. package/documentation/public/INVENTORY.md +100 -282
  41. package/documentation/public/WEBHOOK.md +27 -133
  42. package/package.json +1 -1
  43. package/sdk/application/ApplicationConfig.js +1 -1
  44. package/sdk/application/Cart/CartApplicationClient.d.ts +243 -243
  45. package/sdk/application/Cart/CartApplicationClient.js +1058 -547
  46. package/sdk/application/Cart/CartApplicationModel.d.ts +64 -63
  47. package/sdk/application/Cart/CartApplicationModel.js +489 -886
  48. package/sdk/application/Cart/CartApplicationValidator.d.ts +17 -17
  49. package/sdk/application/Cart/CartApplicationValidator.js +98 -98
  50. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +358 -358
  51. package/sdk/application/Catalog/CatalogApplicationClient.js +1545 -949
  52. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +90 -90
  53. package/sdk/application/Catalog/CatalogApplicationModel.js +692 -1258
  54. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +19 -19
  55. package/sdk/application/Catalog/CatalogApplicationValidator.js +110 -110
  56. package/sdk/application/Common/CommonApplicationClient.d.ts +13 -13
  57. package/sdk/application/Common/CommonApplicationClient.js +76 -36
  58. package/sdk/application/Common/CommonApplicationModel.d.ts +12 -12
  59. package/sdk/application/Common/CommonApplicationModel.js +83 -160
  60. package/sdk/application/Common/CommonApplicationValidator.d.ts +1 -1
  61. package/sdk/application/Common/CommonApplicationValidator.js +6 -6
  62. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +11 -11
  63. package/sdk/application/Communication/CommunicationApplicationClient.js +92 -31
  64. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +6 -6
  65. package/sdk/application/Communication/CommunicationApplicationModel.js +38 -83
  66. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  67. package/sdk/application/Communication/CommunicationApplicationValidator.js +4 -4
  68. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +116 -116
  69. package/sdk/application/Configuration/ConfigurationApplicationClient.js +638 -312
  70. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +85 -85
  71. package/sdk/application/Configuration/ConfigurationApplicationModel.js +480 -851
  72. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +8 -8
  73. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +33 -33
  74. package/sdk/application/Content/ContentApplicationClient.d.ts +67 -67
  75. package/sdk/application/Content/ContentApplicationClient.js +581 -213
  76. package/sdk/application/Content/ContentApplicationModel.d.ts +76 -75
  77. package/sdk/application/Content/ContentApplicationModel.js +468 -875
  78. package/sdk/application/Content/ContentApplicationValidator.d.ts +5 -5
  79. package/sdk/application/Content/ContentApplicationValidator.js +24 -24
  80. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +25 -25
  81. package/sdk/application/FileStorage/FileStorageApplicationClient.js +121 -59
  82. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +13 -13
  83. package/sdk/application/FileStorage/FileStorageApplicationModel.js +86 -169
  84. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  85. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +7 -7
  86. package/sdk/application/Lead/LeadApplicationClient.d.ts +24 -24
  87. package/sdk/application/Lead/LeadApplicationClient.js +230 -96
  88. package/sdk/application/Lead/LeadApplicationModel.d.ts +35 -35
  89. package/sdk/application/Lead/LeadApplicationModel.js +267 -474
  90. package/sdk/application/Lead/LeadApplicationValidator.d.ts +2 -2
  91. package/sdk/application/Lead/LeadApplicationValidator.js +11 -11
  92. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +30 -19
  93. package/sdk/application/Logistic/LogisticApplicationClient.js +196 -47
  94. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +17 -14
  95. package/sdk/application/Logistic/LogisticApplicationModel.js +133 -201
  96. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +3 -2
  97. package/sdk/application/Logistic/LogisticApplicationValidator.js +14 -8
  98. package/sdk/application/Order/OrderApplicationClient.d.ts +86 -86
  99. package/sdk/application/Order/OrderApplicationClient.js +448 -215
  100. package/sdk/application/Order/OrderApplicationModel.d.ts +50 -50
  101. package/sdk/application/Order/OrderApplicationModel.js +357 -661
  102. package/sdk/application/Order/OrderApplicationValidator.d.ts +7 -7
  103. package/sdk/application/Order/OrderApplicationValidator.js +28 -28
  104. package/sdk/application/Payment/PaymentApplicationClient.d.ts +318 -318
  105. package/sdk/application/Payment/PaymentApplicationClient.js +1525 -750
  106. package/sdk/application/Payment/PaymentApplicationModel.d.ts +72 -72
  107. package/sdk/application/Payment/PaymentApplicationModel.js +565 -1033
  108. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +28 -28
  109. package/sdk/application/Payment/PaymentApplicationValidator.js +107 -107
  110. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +254 -254
  111. package/sdk/application/PosCart/PosCartApplicationClient.js +1137 -606
  112. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +61 -60
  113. package/sdk/application/PosCart/PosCartApplicationModel.js +477 -873
  114. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +18 -18
  115. package/sdk/application/PosCart/PosCartApplicationValidator.js +103 -103
  116. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +27 -27
  117. package/sdk/application/Rewards/RewardsApplicationClient.js +253 -113
  118. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +14 -14
  119. package/sdk/application/Rewards/RewardsApplicationModel.js +96 -191
  120. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +3 -3
  121. package/sdk/application/Rewards/RewardsApplicationValidator.js +12 -12
  122. package/sdk/application/Share/ShareApplicationClient.d.ts +37 -37
  123. package/sdk/application/Share/ShareApplicationClient.js +221 -96
  124. package/sdk/application/Share/ShareApplicationModel.d.ts +8 -8
  125. package/sdk/application/Share/ShareApplicationModel.js +63 -123
  126. package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -4
  127. package/sdk/application/Share/ShareApplicationValidator.js +12 -12
  128. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  129. package/sdk/application/Theme/ThemeApplicationClient.js +115 -37
  130. package/sdk/application/Theme/ThemeApplicationModel.d.ts +34 -34
  131. package/sdk/application/Theme/ThemeApplicationModel.js +190 -336
  132. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +1 -1
  133. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -4
  134. package/sdk/application/User/UserApplicationClient.d.ts +280 -280
  135. package/sdk/application/User/UserApplicationClient.js +1201 -543
  136. package/sdk/application/User/UserApplicationModel.d.ts +79 -72
  137. package/sdk/application/User/UserApplicationModel.js +440 -689
  138. package/sdk/application/User/UserApplicationValidator.d.ts +24 -24
  139. package/sdk/application/User/UserApplicationValidator.js +89 -89
  140. package/sdk/common/AxiosHelper.js +1 -1
  141. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +55 -47
  142. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +308 -151
  143. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +6 -6
  144. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +20 -20
  145. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  146. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  147. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +11 -11
  148. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +95 -178
  149. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +16 -12
  150. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +131 -44
  151. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +10 -10
  152. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +50 -89
  153. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  154. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +6 -6
  155. package/sdk/platform/Billing/BillingPlatformClient.d.ts +68 -56
  156. package/sdk/platform/Billing/BillingPlatformClient.js +416 -171
  157. package/sdk/platform/Billing/BillingPlatformModel.d.ts +40 -40
  158. package/sdk/platform/Billing/BillingPlatformModel.js +342 -668
  159. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +8 -8
  160. package/sdk/platform/Billing/BillingPlatformValidator.js +25 -25
  161. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +176 -159
  162. package/sdk/platform/Cart/CartPlatformApplicationClient.js +837 -500
  163. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +11 -11
  164. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +63 -63
  165. package/sdk/platform/Cart/CartPlatformModel.d.ts +86 -85
  166. package/sdk/platform/Cart/CartPlatformModel.js +677 -1211
  167. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +582 -529
  168. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2642 -1533
  169. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +40 -40
  170. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +175 -175
  171. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +708 -590
  172. package/sdk/platform/Catalog/CatalogPlatformClient.js +3103 -1362
  173. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +293 -284
  174. package/sdk/platform/Catalog/CatalogPlatformModel.js +2149 -3660
  175. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +66 -64
  176. package/sdk/platform/Catalog/CatalogPlatformValidator.js +235 -216
  177. package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -12
  178. package/sdk/platform/Common/CommonPlatformClient.js +80 -37
  179. package/sdk/platform/Common/CommonPlatformModel.d.ts +12 -12
  180. package/sdk/platform/Common/CommonPlatformModel.js +83 -160
  181. package/sdk/platform/Common/CommonPlatformValidator.d.ts +1 -1
  182. package/sdk/platform/Common/CommonPlatformValidator.js +6 -6
  183. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +333 -293
  184. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1687 -855
  185. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +30 -30
  186. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +87 -87
  187. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  188. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  189. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +67 -67
  190. package/sdk/platform/Communication/CommunicationPlatformModel.js +522 -974
  191. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +70 -57
  192. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +463 -182
  193. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -28
  194. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +294 -557
  195. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +7 -7
  196. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +24 -24
  197. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +175 -137
  198. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1168 -521
  199. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +22 -21
  200. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +69 -63
  201. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +137 -119
  202. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +691 -316
  203. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +148 -146
  204. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +854 -1508
  205. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -9
  206. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +38 -38
  207. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +542 -461
  208. package/sdk/platform/Content/ContentPlatformApplicationClient.js +2600 -1160
  209. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +50 -49
  210. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +159 -152
  211. package/sdk/platform/Content/ContentPlatformModel.d.ts +79 -75
  212. package/sdk/platform/Content/ContentPlatformModel.js +486 -867
  213. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +72 -61
  214. package/sdk/platform/Discount/DiscountPlatformClient.js +424 -198
  215. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +7 -7
  216. package/sdk/platform/Discount/DiscountPlatformModel.js +60 -121
  217. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +6 -6
  218. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -29
  219. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +26 -22
  220. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +145 -59
  221. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  222. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +8 -8
  223. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +58 -52
  224. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +240 -114
  225. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -13
  226. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +86 -169
  227. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +3 -3
  228. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -11
  229. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +76 -63
  230. package/sdk/platform/Inventory/InventoryPlatformClient.js +461 -197
  231. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +30 -30
  232. package/sdk/platform/Inventory/InventoryPlatformModel.js +497 -964
  233. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +7 -7
  234. package/sdk/platform/Inventory/InventoryPlatformValidator.js +28 -28
  235. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +84 -71
  236. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +441 -182
  237. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +7 -7
  238. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +28 -28
  239. package/sdk/platform/Lead/LeadPlatformClient.d.ts +86 -75
  240. package/sdk/platform/Lead/LeadPlatformClient.js +434 -212
  241. package/sdk/platform/Lead/LeadPlatformModel.d.ts +35 -35
  242. package/sdk/platform/Lead/LeadPlatformModel.js +267 -474
  243. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +6 -6
  244. package/sdk/platform/Lead/LeadPlatformValidator.js +24 -24
  245. package/sdk/platform/OAuthClient.js +8 -8
  246. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +14 -11
  247. package/sdk/platform/Order/OrderPlatformApplicationClient.js +113 -49
  248. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -1
  249. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -6
  250. package/sdk/platform/Order/OrderPlatformClient.d.ts +367 -315
  251. package/sdk/platform/Order/OrderPlatformClient.js +1775 -893
  252. package/sdk/platform/Order/OrderPlatformModel.d.ts +198 -192
  253. package/sdk/platform/Order/OrderPlatformModel.js +1591 -2822
  254. package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -32
  255. package/sdk/platform/Order/OrderPlatformValidator.js +160 -155
  256. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  257. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  258. package/sdk/platform/Partner/PartnerPlatformModel.js +6 -22
  259. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +65 -54
  260. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +395 -164
  261. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -6
  262. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +23 -23
  263. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +55 -45
  264. package/sdk/platform/Payment/PaymentPlatformClient.js +362 -147
  265. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -27
  266. package/sdk/platform/Payment/PaymentPlatformModel.js +220 -408
  267. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +4 -4
  268. package/sdk/platform/Payment/PaymentPlatformValidator.js +21 -21
  269. package/sdk/platform/PlatformApplicationClient.d.ts +1496 -10153
  270. package/sdk/platform/PlatformApplicationClient.js +1584 -13691
  271. package/sdk/platform/PlatformClient.d.ts +7918 -7666
  272. package/sdk/platform/PlatformClient.js +8701 -9926
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +91 -78
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +507 -253
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +8 -8
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +34 -34
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +15 -15
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +92 -194
  279. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -12
  280. package/sdk/platform/Share/SharePlatformApplicationClient.js +130 -52
  281. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  282. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -6
  283. package/sdk/platform/Share/SharePlatformModel.d.ts +8 -8
  284. package/sdk/platform/Share/SharePlatformModel.js +60 -118
  285. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +148 -124
  286. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +770 -295
  287. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +15 -15
  288. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +44 -44
  289. package/sdk/platform/Theme/ThemePlatformModel.d.ts +34 -34
  290. package/sdk/platform/Theme/ThemePlatformModel.js +190 -336
  291. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +146 -67
  292. package/sdk/platform/User/UserPlatformApplicationClient.js +742 -155
  293. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +12 -7
  294. package/sdk/platform/User/UserPlatformApplicationValidator.js +61 -23
  295. package/sdk/platform/User/UserPlatformModel.d.ts +79 -72
  296. package/sdk/platform/User/UserPlatformModel.js +440 -689
  297. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +35 -29
  298. package/sdk/platform/Webhook/WebhookPlatformClient.js +218 -91
  299. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +7 -7
  300. package/sdk/platform/Webhook/WebhookPlatformModel.js +68 -136
  301. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +3 -3
  302. package/sdk/platform/Webhook/WebhookPlatformValidator.js +14 -14
  303. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +13 -13
  304. package/sdk/public/Configuration/ConfigurationPublicClient.js +81 -38
  305. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +12 -12
  306. package/sdk/public/Configuration/ConfigurationPublicModel.js +85 -162
  307. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -1
  308. package/sdk/public/Configuration/ConfigurationPublicValidator.js +6 -6
  309. package/sdk/public/Inventory/InventoryPublicClient.d.ts +34 -34
  310. package/sdk/public/Inventory/InventoryPublicClient.js +228 -105
  311. package/sdk/public/Inventory/InventoryPublicModel.d.ts +10 -10
  312. package/sdk/public/Inventory/InventoryPublicModel.js +119 -245
  313. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +3 -3
  314. package/sdk/public/Inventory/InventoryPublicValidator.js +15 -15
  315. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
  316. package/sdk/public/Webhook/WebhookPublicModel.d.ts +7 -7
  317. package/sdk/public/Webhook/WebhookPublicModel.js +68 -136
  318. package/tests/application/catalog.spec.js +7 -0
@@ -1,705 +1,442 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class CompanyProfileModel {
4
- static BusinessCountryInfo() {
4
+ static AddressSerializer() {
5
5
  return Joi.object({
6
- country_code: Joi.string().allow(""),
7
-
6
+ address1: Joi.string().allow(""),
7
+ address2: Joi.string().allow(""),
8
+ address_type: Joi.string().allow(""),
9
+ city: Joi.string().allow(""),
8
10
  country: Joi.string().allow(""),
11
+ country_code: Joi.string().allow(""),
12
+ landmark: Joi.string().allow(""),
13
+ latitude: Joi.number().required(),
14
+ longitude: Joi.number().required(),
15
+ pincode: Joi.number(),
16
+ state: Joi.string().allow(""),
9
17
  });
10
18
  }
11
-
12
- static SellerPhoneNumber() {
19
+ static BrandBannerSerializer() {
13
20
  return Joi.object({
14
- number: Joi.string().allow("").required(),
15
-
16
- country_code: Joi.number().required(),
21
+ landscape: Joi.string().allow(""),
22
+ portrait: Joi.string().allow(""),
17
23
  });
18
24
  }
19
-
20
- static ContactDetails() {
25
+ static BulkLocationSerializer() {
21
26
  return Joi.object({
22
- emails: Joi.array().items(Joi.string().allow("")),
23
-
24
- phone: Joi.array().items(CompanyProfileModel.SellerPhoneNumber()),
27
+ data: Joi.array().items(CompanyProfileModel.LocationSerializer()),
25
28
  });
26
29
  }
27
-
28
- static UserSerializer() {
30
+ static BusinessCountryInfo() {
29
31
  return Joi.object({
30
- user_id: Joi.string().allow(""),
31
-
32
- contact: Joi.string().allow(""),
33
-
34
- username: Joi.string().allow(""),
32
+ country: Joi.string().allow(""),
33
+ country_code: Joi.string().allow(""),
35
34
  });
36
35
  }
37
-
38
- static Website() {
36
+ static BusinessDetails() {
39
37
  return Joi.object({
40
- url: Joi.string().allow(""),
38
+ website: CompanyProfileModel.Website(),
41
39
  });
42
40
  }
43
-
44
- static BusinessDetails() {
41
+ static CompanyBrandListSerializer() {
45
42
  return Joi.object({
46
- website: CompanyProfileModel.Website(),
43
+ items: Joi.array().items(CompanyProfileModel.CompanyBrandSerializer()),
44
+ page: CompanyProfileModel.Page(),
47
45
  });
48
46
  }
49
-
50
- static GetAddressSerializer() {
47
+ static CompanyBrandPostRequestSerializer() {
51
48
  return Joi.object({
52
- country_code: Joi.string().allow(""),
53
-
54
- country: Joi.string().allow(""),
55
-
56
- pincode: Joi.number(),
57
-
58
- state: Joi.string().allow(""),
59
-
60
- landmark: Joi.string().allow(""),
61
-
62
- address_type: Joi.string().allow(""),
63
-
64
- longitude: Joi.number().required(),
65
-
66
- address2: Joi.string().allow(""),
67
-
68
- address1: Joi.string().allow(""),
69
-
70
- latitude: Joi.number().required(),
71
-
72
- city: Joi.string().allow(""),
49
+ brands: Joi.array().items(Joi.number()).required(),
50
+ company: Joi.number().required(),
51
+ uid: Joi.number(),
73
52
  });
74
53
  }
75
-
76
- static Document() {
54
+ static CompanyBrandSerializer() {
77
55
  return Joi.object({
78
- url: Joi.string().allow(""),
79
-
80
- legal_name: Joi.string().allow(""),
81
-
82
- verified: Joi.boolean(),
83
-
84
- type: Joi.string().allow("").required(),
85
-
86
- value: Joi.string().allow("").required(),
56
+ brand: CompanyProfileModel.GetBrandResponseSerializer(),
57
+ company: CompanyProfileModel.CompanySerializer(),
58
+ created_by: CompanyProfileModel.UserSerializer(),
59
+ created_on: Joi.string().allow(""),
60
+ modified_by: CompanyProfileModel.UserSerializer(),
61
+ modified_on: Joi.string().allow(""),
62
+ reject_reason: Joi.string().allow(""),
63
+ stage: Joi.string().allow(""),
64
+ uid: Joi.number(),
65
+ verified_by: CompanyProfileModel.UserSerializer(),
66
+ verified_on: Joi.string().allow(""),
67
+ warnings: Joi.any(),
87
68
  });
88
69
  }
89
-
90
- static CompanyTaxesSerializer() {
70
+ static CompanyDetails() {
91
71
  return Joi.object({
92
- rate: Joi.number(),
93
-
94
- enable: Joi.boolean(),
95
-
96
- effective_date: Joi.string().allow(""),
72
+ socials: Joi.array().items(CompanyProfileModel.CompanySocialAccounts()),
73
+ website_url: Joi.string().allow(""),
97
74
  });
98
75
  }
99
-
100
- static GetCompanyProfileSerializerResponse() {
76
+ static CompanySerializer() {
101
77
  return Joi.object({
102
- business_info: Joi.string().allow(""),
103
-
104
- business_country_info: CompanyProfileModel.BusinessCountryInfo(),
105
-
106
- verified_on: Joi.string().allow(""),
107
-
108
- contact_details: CompanyProfileModel.ContactDetails(),
109
-
110
- stage: Joi.string().allow(""),
111
-
112
- company_type: Joi.string().allow("").required(),
113
-
114
78
  _custom_json: Joi.any(),
115
-
79
+ addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
80
+ business_country_info: CompanyProfileModel.BusinessCountryInfo(),
116
81
  business_type: Joi.string().allow("").required(),
117
-
118
- warnings: Joi.any(),
119
-
120
- name: Joi.string().allow(""),
121
-
122
- notification_emails: Joi.array().items(Joi.string().allow("")),
123
-
82
+ company_type: Joi.string().allow("").required(),
124
83
  created_by: CompanyProfileModel.UserSerializer(),
125
-
84
+ created_on: Joi.string().allow(""),
85
+ details: CompanyProfileModel.CompanyDetails(),
86
+ market_channels: Joi.array().items(Joi.string().allow("")),
126
87
  modified_by: CompanyProfileModel.UserSerializer(),
127
-
128
- franchise_enabled: Joi.boolean(),
129
-
130
- verified_by: CompanyProfileModel.UserSerializer(),
131
-
132
- mode: Joi.string().allow(""),
133
-
134
- business_details: CompanyProfileModel.BusinessDetails(),
135
-
136
88
  modified_on: Joi.string().allow(""),
137
-
138
- addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
139
-
140
- documents: Joi.array().items(CompanyProfileModel.Document()),
141
-
142
- uid: Joi.number().required(),
143
-
144
- taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer()),
145
-
146
- created_on: Joi.string().allow(""),
89
+ name: Joi.string().allow(""),
90
+ notification_emails: Joi.array().items(Joi.string().allow("")),
91
+ reject_reason: Joi.string().allow(""),
92
+ stage: Joi.string().allow(""),
93
+ uid: Joi.number(),
94
+ verified_by: CompanyProfileModel.UserSerializer(),
95
+ verified_on: Joi.string().allow(""),
147
96
  });
148
97
  }
149
-
150
- static ErrorResponse() {
98
+ static CompanySocialAccounts() {
151
99
  return Joi.object({
152
- message: Joi.string().allow(""),
153
-
154
- meta: Joi.any(),
155
-
156
- code: Joi.string().allow(""),
157
-
158
- status: Joi.number(),
100
+ name: Joi.string().allow("").required(),
101
+ url: Joi.string().allow("").required(),
159
102
  });
160
103
  }
161
-
162
- static CompanyTaxesSerializer1() {
104
+ static CompanyTaxesSerializer() {
163
105
  return Joi.object({
164
- rate: Joi.number(),
165
-
106
+ effective_date: Joi.string().allow(""),
166
107
  enable: Joi.boolean(),
167
-
108
+ rate: Joi.number(),
109
+ });
110
+ }
111
+ static CompanyTaxesSerializer1() {
112
+ return Joi.object({
168
113
  effective_date: Joi.string().allow(""),
114
+ enable: Joi.boolean(),
115
+ rate: Joi.number(),
116
+ });
117
+ }
118
+ static ContactDetails() {
119
+ return Joi.object({
120
+ emails: Joi.array().items(Joi.string().allow("")),
121
+ phone: Joi.array().items(CompanyProfileModel.SellerPhoneNumber()),
169
122
  });
170
123
  }
171
-
172
124
  static CreateUpdateAddressSerializer() {
173
125
  return Joi.object({
174
- country_code: Joi.string().allow(""),
175
-
126
+ address1: Joi.string().allow("").required(),
127
+ address2: Joi.string().allow(""),
128
+ address_type: Joi.string().allow("").required(),
129
+ city: Joi.string().allow("").required(),
176
130
  country: Joi.string().allow("").required(),
177
-
178
- pincode: Joi.number().required(),
179
-
180
- state: Joi.string().allow("").required(),
181
-
131
+ country_code: Joi.string().allow(""),
182
132
  landmark: Joi.string().allow(""),
183
-
184
- address_type: Joi.string().allow("").required(),
185
-
186
- longitude: Joi.number().required(),
187
-
188
- address2: Joi.string().allow(""),
189
-
190
- address1: Joi.string().allow("").required(),
191
-
192
133
  latitude: Joi.number().required(),
193
-
194
- city: Joi.string().allow("").required(),
134
+ longitude: Joi.number().required(),
135
+ pincode: Joi.number().required(),
136
+ state: Joi.string().allow("").required(),
195
137
  });
196
138
  }
197
-
198
- static UpdateCompany() {
139
+ static CreateUpdateBrandRequestSerializer() {
199
140
  return Joi.object({
200
- business_info: Joi.string().allow(""),
201
-
202
- franchise_enabled: Joi.boolean(),
203
-
204
- warnings: Joi.any(),
205
-
206
- contact_details: CompanyProfileModel.ContactDetails(),
207
-
208
- reject_reason: Joi.string().allow(""),
209
-
210
- name: Joi.string().allow(""),
211
-
212
- business_details: CompanyProfileModel.BusinessDetails(),
213
-
214
- company_type: Joi.string().allow(""),
215
-
216
- documents: Joi.array().items(CompanyProfileModel.Document()),
217
-
218
- taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer1()),
219
-
220
141
  _custom_json: Joi.any(),
221
-
222
- business_type: Joi.string().allow(""),
223
-
224
- notification_emails: Joi.array().items(Joi.string().allow("")),
225
-
226
- addresses: Joi.array().items(
227
- CompanyProfileModel.CreateUpdateAddressSerializer()
228
- ),
142
+ _locale_language: Joi.any(),
143
+ banner: CompanyProfileModel.BrandBannerSerializer(),
144
+ brand_tier: Joi.string().allow(""),
145
+ company_id: Joi.number(),
146
+ description: Joi.string().allow(""),
147
+ logo: Joi.string().allow("").required(),
148
+ name: Joi.string().allow("").required(),
149
+ synonyms: Joi.array().items(Joi.string().allow("")),
150
+ uid: Joi.number(),
229
151
  });
230
152
  }
231
-
232
- static ProfileSuccessResponse() {
153
+ static Document() {
233
154
  return Joi.object({
234
- uid: Joi.number(),
235
-
236
- success: Joi.boolean(),
155
+ legal_name: Joi.string().allow(""),
156
+ type: Joi.string().allow("").required(),
157
+ url: Joi.string().allow(""),
158
+ value: Joi.string().allow("").required(),
159
+ verified: Joi.boolean(),
237
160
  });
238
161
  }
239
-
240
162
  static DocumentsObj() {
241
163
  return Joi.object({
242
164
  pending: Joi.number(),
243
-
244
165
  verified: Joi.number(),
245
166
  });
246
167
  }
247
-
248
- static MetricsSerializer() {
168
+ static ErrorResponse() {
249
169
  return Joi.object({
250
- store_documents: CompanyProfileModel.DocumentsObj(),
251
-
252
- product: CompanyProfileModel.DocumentsObj(),
253
-
254
- brand: CompanyProfileModel.DocumentsObj(),
255
-
256
- company_documents: CompanyProfileModel.DocumentsObj(),
257
-
258
- stage: Joi.string().allow(""),
259
-
260
- uid: Joi.number(),
261
-
262
- store: CompanyProfileModel.DocumentsObj(),
170
+ code: Joi.string().allow(""),
171
+ message: Joi.string().allow(""),
172
+ meta: Joi.any(),
173
+ status: Joi.number(),
263
174
  });
264
175
  }
265
-
266
- static BrandBannerSerializer() {
176
+ static GetAddressSerializer() {
267
177
  return Joi.object({
268
- portrait: Joi.string().allow(""),
269
-
270
- landscape: Joi.string().allow(""),
178
+ address1: Joi.string().allow(""),
179
+ address2: Joi.string().allow(""),
180
+ address_type: Joi.string().allow(""),
181
+ city: Joi.string().allow(""),
182
+ country: Joi.string().allow(""),
183
+ country_code: Joi.string().allow(""),
184
+ landmark: Joi.string().allow(""),
185
+ latitude: Joi.number().required(),
186
+ longitude: Joi.number().required(),
187
+ pincode: Joi.number(),
188
+ state: Joi.string().allow(""),
271
189
  });
272
190
  }
273
-
274
191
  static GetBrandResponseSerializer() {
275
192
  return Joi.object({
276
- verified_on: Joi.string().allow(""),
277
-
278
- stage: Joi.string().allow(""),
279
-
280
193
  _custom_json: Joi.any(),
281
-
282
- synonyms: Joi.array().items(Joi.string().allow("")),
283
-
194
+ _locale_language: Joi.any(),
195
+ banner: CompanyProfileModel.BrandBannerSerializer(),
196
+ created_by: CompanyProfileModel.UserSerializer(),
197
+ created_on: Joi.string().allow(""),
198
+ description: Joi.string().allow(""),
284
199
  logo: Joi.string().allow(""),
285
-
286
- warnings: Joi.any(),
287
-
200
+ mode: Joi.string().allow(""),
201
+ modified_by: CompanyProfileModel.UserSerializer(),
202
+ modified_on: Joi.string().allow(""),
288
203
  name: Joi.string().allow("").required(),
289
-
204
+ reject_reason: Joi.string().allow(""),
205
+ slug_key: Joi.string().allow(""),
206
+ stage: Joi.string().allow(""),
207
+ synonyms: Joi.array().items(Joi.string().allow("")),
208
+ uid: Joi.number(),
209
+ verified_by: CompanyProfileModel.UserSerializer(),
210
+ verified_on: Joi.string().allow(""),
211
+ warnings: Joi.any(),
212
+ });
213
+ }
214
+ static GetCompanyProfileSerializerResponse() {
215
+ return Joi.object({
216
+ _custom_json: Joi.any(),
217
+ addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
218
+ business_country_info: CompanyProfileModel.BusinessCountryInfo(),
219
+ business_details: CompanyProfileModel.BusinessDetails(),
220
+ business_info: Joi.string().allow(""),
221
+ business_type: Joi.string().allow("").required(),
222
+ company_type: Joi.string().allow("").required(),
223
+ contact_details: CompanyProfileModel.ContactDetails(),
290
224
  created_by: CompanyProfileModel.UserSerializer(),
291
-
225
+ created_on: Joi.string().allow(""),
226
+ documents: Joi.array().items(CompanyProfileModel.Document()),
227
+ franchise_enabled: Joi.boolean(),
228
+ mode: Joi.string().allow(""),
292
229
  modified_by: CompanyProfileModel.UserSerializer(),
293
-
230
+ modified_on: Joi.string().allow(""),
231
+ name: Joi.string().allow(""),
232
+ notification_emails: Joi.array().items(Joi.string().allow("")),
233
+ stage: Joi.string().allow(""),
234
+ taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer()),
235
+ uid: Joi.number().required(),
294
236
  verified_by: CompanyProfileModel.UserSerializer(),
295
-
296
- mode: Joi.string().allow(""),
297
-
298
- reject_reason: Joi.string().allow(""),
299
-
237
+ verified_on: Joi.string().allow(""),
238
+ warnings: Joi.any(),
239
+ });
240
+ }
241
+ static GetCompanySerializer() {
242
+ return Joi.object({
243
+ addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
244
+ business_type: Joi.string().allow(""),
245
+ company_type: Joi.string().allow(""),
246
+ created_by: CompanyProfileModel.UserSerializer(),
247
+ created_on: Joi.string().allow(""),
248
+ modified_by: CompanyProfileModel.UserSerializer(),
300
249
  modified_on: Joi.string().allow(""),
301
-
302
- slug_key: Joi.string().allow(""),
303
-
304
- description: Joi.string().allow(""),
305
-
306
- banner: CompanyProfileModel.BrandBannerSerializer(),
307
-
250
+ name: Joi.string().allow(""),
251
+ reject_reason: Joi.string().allow(""),
252
+ stage: Joi.string().allow(""),
308
253
  uid: Joi.number(),
309
-
310
- created_on: Joi.string().allow(""),
311
-
312
- _locale_language: Joi.any(),
254
+ verified_by: CompanyProfileModel.UserSerializer(),
255
+ verified_on: Joi.string().allow(""),
313
256
  });
314
257
  }
315
-
316
- static CreateUpdateBrandRequestSerializer() {
258
+ static GetLocationSerializer() {
317
259
  return Joi.object({
318
- description: Joi.string().allow(""),
319
-
320
- brand_tier: Joi.string().allow(""),
321
-
322
- logo: Joi.string().allow("").required(),
323
-
260
+ _custom_json: Joi.any(),
261
+ address: CompanyProfileModel.GetAddressSerializer().required(),
262
+ code: Joi.string().allow("").required(),
263
+ company: CompanyProfileModel.GetCompanySerializer(),
264
+ contact_numbers: Joi.array().items(
265
+ CompanyProfileModel.SellerPhoneNumber()
266
+ ),
267
+ created_by: CompanyProfileModel.UserSerializer(),
268
+ created_on: Joi.string().allow(""),
269
+ display_name: Joi.string().allow("").required(),
270
+ documents: Joi.array().items(CompanyProfileModel.Document()),
271
+ gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
272
+ holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
273
+ manager: CompanyProfileModel.LocationManagerSerializer(),
274
+ modified_by: CompanyProfileModel.UserSerializer(),
275
+ modified_on: Joi.string().allow(""),
324
276
  name: Joi.string().allow("").required(),
325
-
326
- company_id: Joi.number(),
327
-
328
- banner: CompanyProfileModel.BrandBannerSerializer(),
329
-
277
+ notification_emails: Joi.array().items(Joi.string().allow("")),
278
+ phone_number: Joi.string().allow(""),
279
+ product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
280
+ stage: Joi.string().allow(""),
281
+ store_type: Joi.string().allow(""),
282
+ timing: Joi.array().items(
283
+ CompanyProfileModel.LocationDayWiseSerializer()
284
+ ),
330
285
  uid: Joi.number(),
331
-
332
- _custom_json: Joi.any(),
333
-
334
- _locale_language: Joi.any(),
335
-
336
- synonyms: Joi.array().items(Joi.string().allow("")),
286
+ verified_by: CompanyProfileModel.UserSerializer(),
287
+ verified_on: Joi.string().allow(""),
288
+ warnings: Joi.any(),
337
289
  });
338
290
  }
339
-
340
- static Page() {
291
+ static HolidayDateSerializer() {
341
292
  return Joi.object({
342
- item_total: Joi.number(),
343
-
344
- next_id: Joi.string().allow(""),
345
-
346
- has_previous: Joi.boolean(),
347
-
348
- has_next: Joi.boolean(),
349
-
350
- current: Joi.number(),
351
-
352
- type: Joi.string().allow("").required(),
353
-
354
- size: Joi.number(),
293
+ end_date: Joi.string().allow("").required(),
294
+ start_date: Joi.string().allow("").required(),
355
295
  });
356
296
  }
357
-
358
- static CompanySocialAccounts() {
297
+ static HolidaySchemaSerializer() {
359
298
  return Joi.object({
360
- name: Joi.string().allow("").required(),
361
-
362
- url: Joi.string().allow("").required(),
299
+ date: CompanyProfileModel.HolidayDateSerializer().required(),
300
+ holiday_type: Joi.string().allow("").required(),
301
+ title: Joi.string().allow("").required(),
363
302
  });
364
303
  }
365
-
366
- static CompanyDetails() {
304
+ static InvoiceCredSerializer() {
367
305
  return Joi.object({
368
- socials: Joi.array().items(CompanyProfileModel.CompanySocialAccounts()),
369
-
370
- website_url: Joi.string().allow(""),
306
+ enabled: Joi.boolean(),
307
+ password: Joi.string().allow(""),
308
+ username: Joi.string().allow(""),
371
309
  });
372
310
  }
373
-
374
- static CompanySerializer() {
311
+ static InvoiceDetailsSerializer() {
375
312
  return Joi.object({
376
- details: CompanyProfileModel.CompanyDetails(),
377
-
378
- business_country_info: CompanyProfileModel.BusinessCountryInfo(),
379
-
380
- created_by: CompanyProfileModel.UserSerializer(),
381
-
382
- verified_on: Joi.string().allow(""),
383
-
384
- verified_by: CompanyProfileModel.UserSerializer(),
385
-
386
- reject_reason: Joi.string().allow(""),
387
-
388
- stage: Joi.string().allow(""),
389
-
390
- name: Joi.string().allow(""),
391
-
392
- company_type: Joi.string().allow("").required(),
393
-
394
- uid: Joi.number(),
395
-
396
- _custom_json: Joi.any(),
397
-
398
- modified_on: Joi.string().allow(""),
399
-
400
- business_type: Joi.string().allow("").required(),
401
-
402
- created_on: Joi.string().allow(""),
403
-
404
- notification_emails: Joi.array().items(Joi.string().allow("")),
405
-
406
- market_channels: Joi.array().items(Joi.string().allow("")),
407
-
408
- modified_by: CompanyProfileModel.UserSerializer(),
409
-
410
- addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
313
+ e_invoice: CompanyProfileModel.InvoiceCredSerializer(),
314
+ e_waybill: CompanyProfileModel.InvoiceCredSerializer(),
411
315
  });
412
316
  }
413
-
414
- static CompanyBrandSerializer() {
317
+ static LocationDayWiseSerializer() {
415
318
  return Joi.object({
416
- company: CompanyProfileModel.CompanySerializer(),
417
-
418
- created_by: CompanyProfileModel.UserSerializer(),
419
-
420
- brand: CompanyProfileModel.GetBrandResponseSerializer(),
421
-
422
- verified_on: Joi.string().allow(""),
423
-
424
- verified_by: CompanyProfileModel.UserSerializer(),
425
-
426
- warnings: Joi.any(),
427
-
428
- reject_reason: Joi.string().allow(""),
429
-
430
- stage: Joi.string().allow(""),
431
-
432
- uid: Joi.number(),
433
-
434
- modified_on: Joi.string().allow(""),
435
-
436
- created_on: Joi.string().allow(""),
437
-
438
- modified_by: CompanyProfileModel.UserSerializer(),
319
+ closing: CompanyProfileModel.LocationTimingSerializer(),
320
+ open: Joi.boolean().required(),
321
+ opening: CompanyProfileModel.LocationTimingSerializer(),
322
+ weekday: Joi.string().allow("").required(),
439
323
  });
440
324
  }
441
-
442
- static CompanyBrandListSerializer() {
325
+ static LocationListSerializer() {
443
326
  return Joi.object({
327
+ items: Joi.array().items(CompanyProfileModel.GetLocationSerializer()),
444
328
  page: CompanyProfileModel.Page(),
445
-
446
- items: Joi.array().items(CompanyProfileModel.CompanyBrandSerializer()),
447
- });
448
- }
449
-
450
- static CompanyBrandPostRequestSerializer() {
451
- return Joi.object({
452
- company: Joi.number().required(),
453
-
454
- uid: Joi.number(),
455
-
456
- brands: Joi.array().items(Joi.number()).required(),
457
- });
458
- }
459
-
460
- static ProductReturnConfigSerializer() {
461
- return Joi.object({
462
- on_same_store: Joi.boolean(),
463
-
464
- store_uid: Joi.number(),
465
329
  });
466
330
  }
467
-
468
- static HolidayDateSerializer() {
331
+ static LocationManagerSerializer() {
469
332
  return Joi.object({
470
- end_date: Joi.string().allow("").required(),
471
-
472
- start_date: Joi.string().allow("").required(),
333
+ email: Joi.string().allow(""),
334
+ mobile_no: CompanyProfileModel.SellerPhoneNumber().required(),
335
+ name: Joi.string().allow(""),
473
336
  });
474
337
  }
475
-
476
- static HolidaySchemaSerializer() {
338
+ static LocationSerializer() {
477
339
  return Joi.object({
478
- title: Joi.string().allow("").required(),
479
-
480
- holiday_type: Joi.string().allow("").required(),
481
-
482
- date: CompanyProfileModel.HolidayDateSerializer().required(),
340
+ _custom_json: Joi.any(),
341
+ address: CompanyProfileModel.AddressSerializer().required(),
342
+ code: Joi.string().allow("").required(),
343
+ company: Joi.number().required(),
344
+ contact_numbers: Joi.array().items(
345
+ CompanyProfileModel.SellerPhoneNumber()
346
+ ),
347
+ display_name: Joi.string().allow("").required(),
348
+ documents: Joi.array().items(CompanyProfileModel.Document()),
349
+ gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
350
+ holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
351
+ manager: CompanyProfileModel.LocationManagerSerializer(),
352
+ name: Joi.string().allow("").required(),
353
+ notification_emails: Joi.array().items(Joi.string().allow("")),
354
+ product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
355
+ stage: Joi.string().allow(""),
356
+ store_type: Joi.string().allow(""),
357
+ timing: Joi.array().items(
358
+ CompanyProfileModel.LocationDayWiseSerializer()
359
+ ),
360
+ uid: Joi.number(),
361
+ warnings: Joi.any(),
483
362
  });
484
363
  }
485
-
486
364
  static LocationTimingSerializer() {
487
365
  return Joi.object({
488
- minute: Joi.number().required(),
489
-
490
366
  hour: Joi.number().required(),
367
+ minute: Joi.number().required(),
491
368
  });
492
369
  }
493
-
494
- static LocationDayWiseSerializer() {
495
- return Joi.object({
496
- closing: CompanyProfileModel.LocationTimingSerializer(),
497
-
498
- opening: CompanyProfileModel.LocationTimingSerializer(),
499
-
500
- open: Joi.boolean().required(),
501
-
502
- weekday: Joi.string().allow("").required(),
503
- });
504
- }
505
-
506
- static LocationManagerSerializer() {
507
- return Joi.object({
508
- email: Joi.string().allow(""),
509
-
510
- name: Joi.string().allow(""),
511
-
512
- mobile_no: CompanyProfileModel.SellerPhoneNumber().required(),
513
- });
514
- }
515
-
516
- static GetCompanySerializer() {
370
+ static MetricsSerializer() {
517
371
  return Joi.object({
518
- created_by: CompanyProfileModel.UserSerializer(),
519
-
520
- verified_on: Joi.string().allow(""),
521
-
522
- verified_by: CompanyProfileModel.UserSerializer(),
523
-
524
- reject_reason: Joi.string().allow(""),
525
-
372
+ brand: CompanyProfileModel.DocumentsObj(),
373
+ company_documents: CompanyProfileModel.DocumentsObj(),
374
+ product: CompanyProfileModel.DocumentsObj(),
526
375
  stage: Joi.string().allow(""),
527
-
528
- name: Joi.string().allow(""),
529
-
530
- company_type: Joi.string().allow(""),
531
-
376
+ store: CompanyProfileModel.DocumentsObj(),
377
+ store_documents: CompanyProfileModel.DocumentsObj(),
532
378
  uid: Joi.number(),
533
-
534
- modified_on: Joi.string().allow(""),
535
-
536
- business_type: Joi.string().allow(""),
537
-
538
- created_on: Joi.string().allow(""),
539
-
540
- modified_by: CompanyProfileModel.UserSerializer(),
541
-
542
- addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
543
379
  });
544
380
  }
545
-
546
- static InvoiceCredSerializer() {
381
+ static Page() {
547
382
  return Joi.object({
548
- password: Joi.string().allow(""),
549
-
550
- enabled: Joi.boolean(),
551
-
552
- username: Joi.string().allow(""),
383
+ current: Joi.number(),
384
+ has_next: Joi.boolean(),
385
+ has_previous: Joi.boolean(),
386
+ item_total: Joi.number(),
387
+ next_id: Joi.string().allow(""),
388
+ size: Joi.number(),
389
+ type: Joi.string().allow("").required(),
553
390
  });
554
391
  }
555
-
556
- static InvoiceDetailsSerializer() {
392
+ static ProductReturnConfigSerializer() {
557
393
  return Joi.object({
558
- e_waybill: CompanyProfileModel.InvoiceCredSerializer(),
559
-
560
- e_invoice: CompanyProfileModel.InvoiceCredSerializer(),
394
+ on_same_store: Joi.boolean(),
395
+ store_uid: Joi.number(),
561
396
  });
562
397
  }
563
-
564
- static GetLocationSerializer() {
398
+ static ProfileSuccessResponse() {
565
399
  return Joi.object({
566
- verified_on: Joi.string().allow(""),
567
-
568
- stage: Joi.string().allow(""),
569
-
570
- display_name: Joi.string().allow("").required(),
571
-
572
- _custom_json: Joi.any(),
573
-
574
- phone_number: Joi.string().allow(""),
575
-
576
- warnings: Joi.any(),
577
-
578
- product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
579
-
580
- name: Joi.string().allow("").required(),
581
-
582
- holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
583
-
584
- notification_emails: Joi.array().items(Joi.string().allow("")),
585
-
586
- created_by: CompanyProfileModel.UserSerializer(),
587
-
588
- modified_by: CompanyProfileModel.UserSerializer(),
589
-
590
- verified_by: CompanyProfileModel.UserSerializer(),
591
-
592
- timing: Joi.array().items(
593
- CompanyProfileModel.LocationDayWiseSerializer()
594
- ),
595
-
596
- code: Joi.string().allow("").required(),
597
-
598
- modified_on: Joi.string().allow(""),
599
-
600
- manager: CompanyProfileModel.LocationManagerSerializer(),
601
-
602
- address: CompanyProfileModel.GetAddressSerializer().required(),
603
-
604
- company: CompanyProfileModel.GetCompanySerializer(),
605
-
606
- store_type: Joi.string().allow(""),
607
-
608
- gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
609
-
610
- documents: Joi.array().items(CompanyProfileModel.Document()),
611
-
400
+ success: Joi.boolean(),
612
401
  uid: Joi.number(),
613
-
614
- contact_numbers: Joi.array().items(
615
- CompanyProfileModel.SellerPhoneNumber()
616
- ),
617
-
618
- created_on: Joi.string().allow(""),
619
402
  });
620
403
  }
621
-
622
- static LocationListSerializer() {
623
- return Joi.object({
624
- page: CompanyProfileModel.Page(),
625
-
626
- items: Joi.array().items(CompanyProfileModel.GetLocationSerializer()),
627
- });
628
- }
629
-
630
- static AddressSerializer() {
404
+ static SellerPhoneNumber() {
631
405
  return Joi.object({
632
- country_code: Joi.string().allow(""),
633
-
634
- country: Joi.string().allow(""),
635
-
636
- pincode: Joi.number(),
637
-
638
- state: Joi.string().allow(""),
639
-
640
- landmark: Joi.string().allow(""),
641
-
642
- address_type: Joi.string().allow(""),
643
-
644
- longitude: Joi.number().required(),
645
-
646
- address2: Joi.string().allow(""),
647
-
648
- address1: Joi.string().allow(""),
649
-
650
- latitude: Joi.number().required(),
651
-
652
- city: Joi.string().allow(""),
406
+ country_code: Joi.number().required(),
407
+ number: Joi.string().allow("").required(),
653
408
  });
654
409
  }
655
-
656
- static LocationSerializer() {
410
+ static UpdateCompany() {
657
411
  return Joi.object({
658
- company: Joi.number().required(),
659
-
660
- product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
661
-
662
- store_type: Joi.string().allow(""),
663
-
664
- warnings: Joi.any(),
665
-
666
- timing: Joi.array().items(
667
- CompanyProfileModel.LocationDayWiseSerializer()
412
+ _custom_json: Joi.any(),
413
+ addresses: Joi.array().items(
414
+ CompanyProfileModel.CreateUpdateAddressSerializer()
668
415
  ),
669
-
670
- code: Joi.string().allow("").required(),
671
-
672
- name: Joi.string().allow("").required(),
673
-
674
- holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
675
-
676
- stage: Joi.string().allow(""),
677
-
678
- display_name: Joi.string().allow("").required(),
679
-
416
+ business_details: CompanyProfileModel.BusinessDetails(),
417
+ business_info: Joi.string().allow(""),
418
+ business_type: Joi.string().allow(""),
419
+ company_type: Joi.string().allow(""),
420
+ contact_details: CompanyProfileModel.ContactDetails(),
680
421
  documents: Joi.array().items(CompanyProfileModel.Document()),
681
-
682
- uid: Joi.number(),
683
-
684
- contact_numbers: Joi.array().items(
685
- CompanyProfileModel.SellerPhoneNumber()
686
- ),
687
-
688
- manager: CompanyProfileModel.LocationManagerSerializer(),
689
-
690
- _custom_json: Joi.any(),
691
-
692
- gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
693
-
422
+ franchise_enabled: Joi.boolean(),
423
+ name: Joi.string().allow(""),
694
424
  notification_emails: Joi.array().items(Joi.string().allow("")),
695
-
696
- address: CompanyProfileModel.AddressSerializer().required(),
425
+ reject_reason: Joi.string().allow(""),
426
+ taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer1()),
427
+ warnings: Joi.any(),
697
428
  });
698
429
  }
699
-
700
- static BulkLocationSerializer() {
430
+ static UserSerializer() {
701
431
  return Joi.object({
702
- data: Joi.array().items(CompanyProfileModel.LocationSerializer()),
432
+ contact: Joi.string().allow(""),
433
+ user_id: Joi.string().allow(""),
434
+ username: Joi.string().allow(""),
435
+ });
436
+ }
437
+ static Website() {
438
+ return Joi.object({
439
+ url: Joi.string().allow(""),
703
440
  });
704
441
  }
705
442
  }