@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
@@ -1,705 +1,442 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  class CompanyProfileModel {
4
- static UserSerializer() {
5
- return Joi.object({
6
- user_id: Joi.string().allow(""),
7
-
8
- username: Joi.string().allow(""),
9
-
10
- contact: Joi.string().allow(""),
11
- });
12
- }
13
-
14
- static GetAddressSerializer() {
4
+ static AddressSerializer() {
15
5
  return Joi.object({
16
6
  address1: Joi.string().allow(""),
17
-
18
- latitude: Joi.number().required(),
19
-
20
- city: Joi.string().allow(""),
21
-
22
- longitude: Joi.number().required(),
23
-
24
- country_code: Joi.string().allow(""),
25
-
26
7
  address2: Joi.string().allow(""),
27
-
28
- state: Joi.string().allow(""),
29
-
30
- pincode: Joi.number(),
31
-
32
- country: Joi.string().allow(""),
33
-
34
8
  address_type: Joi.string().allow(""),
35
-
9
+ city: Joi.string().allow(""),
10
+ country: Joi.string().allow(""),
11
+ country_code: Joi.string().allow(""),
36
12
  landmark: Joi.string().allow(""),
13
+ latitude: Joi.number().required(),
14
+ longitude: Joi.number().required(),
15
+ pincode: Joi.number(),
16
+ state: Joi.string().allow(""),
37
17
  });
38
18
  }
39
-
40
- static CompanyTaxesSerializer() {
19
+ static BrandBannerSerializer() {
41
20
  return Joi.object({
42
- effective_date: Joi.string().allow(""),
43
-
44
- rate: Joi.number(),
45
-
46
- enable: Joi.boolean(),
21
+ landscape: Joi.string().allow(""),
22
+ portrait: Joi.string().allow(""),
47
23
  });
48
24
  }
49
-
50
- static BusinessCountryInfo() {
25
+ static BulkLocationSerializer() {
51
26
  return Joi.object({
52
- country_code: Joi.string().allow(""),
53
-
54
- country: Joi.string().allow(""),
27
+ data: Joi.array().items(CompanyProfileModel.LocationSerializer()),
55
28
  });
56
29
  }
57
-
58
- static Website() {
30
+ static BusinessCountryInfo() {
59
31
  return Joi.object({
60
- url: Joi.string().allow(""),
32
+ country: Joi.string().allow(""),
33
+ country_code: Joi.string().allow(""),
61
34
  });
62
35
  }
63
-
64
36
  static BusinessDetails() {
65
37
  return Joi.object({
66
38
  website: CompanyProfileModel.Website(),
67
39
  });
68
40
  }
69
-
70
- static SellerPhoneNumber() {
41
+ static CompanyBrandListSerializer() {
71
42
  return Joi.object({
72
- country_code: Joi.number().required(),
73
-
74
- number: Joi.string().allow("").required(),
43
+ items: Joi.array().items(CompanyProfileModel.CompanyBrandSerializer()),
44
+ page: CompanyProfileModel.Page(),
75
45
  });
76
46
  }
77
-
78
- static ContactDetails() {
47
+ static CompanyBrandPostRequestSerializer() {
79
48
  return Joi.object({
80
- phone: Joi.array().items(CompanyProfileModel.SellerPhoneNumber()),
81
-
82
- emails: Joi.array().items(Joi.string().allow("")),
49
+ brands: Joi.array().items(Joi.number()).required(),
50
+ company: Joi.number().required(),
51
+ uid: Joi.number(),
83
52
  });
84
53
  }
85
-
86
- static Document() {
54
+ static CompanyBrandSerializer() {
87
55
  return Joi.object({
88
- url: Joi.string().allow(""),
89
-
90
- legal_name: Joi.string().allow(""),
91
-
92
- value: Joi.string().allow("").required(),
93
-
94
- type: Joi.string().allow("").required(),
95
-
96
- verified: Joi.boolean(),
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(),
97
68
  });
98
69
  }
99
-
100
- static GetCompanyProfileSerializerResponse() {
70
+ static CompanyDetails() {
101
71
  return Joi.object({
102
- verified_by: CompanyProfileModel.UserSerializer(),
103
-
104
- franchise_enabled: Joi.boolean(),
105
-
72
+ socials: Joi.array().items(CompanyProfileModel.CompanySocialAccounts()),
73
+ website_url: Joi.string().allow(""),
74
+ });
75
+ }
76
+ static CompanySerializer() {
77
+ return Joi.object({
78
+ _custom_json: Joi.any(),
106
79
  addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
107
-
108
- taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer()),
109
-
110
- uid: Joi.number().required(),
111
-
112
- created_by: CompanyProfileModel.UserSerializer(),
113
-
114
- business_info: Joi.string().allow(""),
115
-
116
- warnings: Joi.any(),
117
-
118
80
  business_country_info: CompanyProfileModel.BusinessCountryInfo(),
119
-
120
- stage: Joi.string().allow(""),
121
-
122
- modified_on: Joi.string().allow(""),
123
-
124
- company_type: Joi.string().allow("").required(),
125
-
126
- business_details: CompanyProfileModel.BusinessDetails(),
127
-
128
- contact_details: CompanyProfileModel.ContactDetails(),
129
-
130
81
  business_type: Joi.string().allow("").required(),
131
-
132
- notification_emails: Joi.array().items(Joi.string().allow("")),
133
-
134
- modified_by: CompanyProfileModel.UserSerializer(),
135
-
136
- documents: Joi.array().items(CompanyProfileModel.Document()),
137
-
82
+ company_type: Joi.string().allow("").required(),
83
+ created_by: CompanyProfileModel.UserSerializer(),
138
84
  created_on: Joi.string().allow(""),
139
-
140
- mode: Joi.string().allow(""),
141
-
142
- verified_on: Joi.string().allow(""),
143
-
85
+ details: CompanyProfileModel.CompanyDetails(),
86
+ market_channels: Joi.array().items(Joi.string().allow("")),
87
+ modified_by: CompanyProfileModel.UserSerializer(),
88
+ modified_on: Joi.string().allow(""),
144
89
  name: Joi.string().allow(""),
145
-
146
- _custom_json: Joi.any(),
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
- status: Joi.number(),
155
-
156
- code: Joi.string().allow(""),
157
-
158
- meta: Joi.any(),
100
+ name: Joi.string().allow("").required(),
101
+ url: Joi.string().allow("").required(),
159
102
  });
160
103
  }
161
-
162
- static CreateUpdateAddressSerializer() {
104
+ static CompanyTaxesSerializer() {
163
105
  return Joi.object({
164
- address1: Joi.string().allow("").required(),
165
-
166
- latitude: Joi.number().required(),
167
-
168
- city: Joi.string().allow("").required(),
169
-
170
- longitude: Joi.number().required(),
171
-
172
- country_code: Joi.string().allow(""),
173
-
174
- address2: Joi.string().allow(""),
175
-
176
- state: Joi.string().allow("").required(),
177
-
178
- pincode: Joi.number().required(),
179
-
180
- country: Joi.string().allow("").required(),
181
-
182
- address_type: Joi.string().allow("").required(),
183
-
184
- landmark: Joi.string().allow(""),
106
+ effective_date: Joi.string().allow(""),
107
+ enable: Joi.boolean(),
108
+ rate: Joi.number(),
185
109
  });
186
110
  }
187
-
188
111
  static CompanyTaxesSerializer1() {
189
112
  return Joi.object({
190
113
  effective_date: Joi.string().allow(""),
191
-
192
- rate: Joi.number(),
193
-
194
114
  enable: Joi.boolean(),
115
+ rate: Joi.number(),
195
116
  });
196
117
  }
197
-
198
- static UpdateCompany() {
199
- return Joi.object({
200
- addresses: Joi.array().items(
201
- CompanyProfileModel.CreateUpdateAddressSerializer()
202
- ),
203
-
204
- company_type: Joi.string().allow(""),
205
-
206
- taxes: Joi.array().items(CompanyProfileModel.CompanyTaxesSerializer1()),
207
-
208
- business_details: CompanyProfileModel.BusinessDetails(),
209
-
210
- reject_reason: Joi.string().allow(""),
211
-
212
- contact_details: CompanyProfileModel.ContactDetails(),
213
-
214
- business_type: Joi.string().allow(""),
215
-
216
- name: Joi.string().allow(""),
217
-
218
- notification_emails: Joi.array().items(Joi.string().allow("")),
219
-
220
- business_info: Joi.string().allow(""),
221
-
222
- warnings: Joi.any(),
223
-
224
- _custom_json: Joi.any(),
225
-
226
- documents: Joi.array().items(CompanyProfileModel.Document()),
227
-
228
- franchise_enabled: Joi.boolean(),
229
- });
230
- }
231
-
232
- static ProfileSuccessResponse() {
118
+ static ContactDetails() {
233
119
  return Joi.object({
234
- success: Joi.boolean(),
235
-
236
- uid: Joi.number(),
120
+ emails: Joi.array().items(Joi.string().allow("")),
121
+ phone: Joi.array().items(CompanyProfileModel.SellerPhoneNumber()),
237
122
  });
238
123
  }
239
-
240
- static DocumentsObj() {
124
+ static CreateUpdateAddressSerializer() {
241
125
  return Joi.object({
242
- pending: Joi.number(),
243
-
244
- verified: Joi.number(),
245
- });
246
- }
247
-
248
- static MetricsSerializer() {
249
- return Joi.object({
250
- stage: Joi.string().allow(""),
251
-
252
- uid: Joi.number(),
253
-
254
- company_documents: CompanyProfileModel.DocumentsObj(),
255
-
256
- store_documents: CompanyProfileModel.DocumentsObj(),
257
-
258
- brand: CompanyProfileModel.DocumentsObj(),
259
-
260
- product: CompanyProfileModel.DocumentsObj(),
261
-
262
- store: CompanyProfileModel.DocumentsObj(),
263
- });
264
- }
265
-
266
- static BrandBannerSerializer() {
267
- return Joi.object({
268
- landscape: Joi.string().allow(""),
269
-
270
- portrait: Joi.string().allow(""),
126
+ address1: Joi.string().allow("").required(),
127
+ address2: Joi.string().allow(""),
128
+ address_type: Joi.string().allow("").required(),
129
+ city: Joi.string().allow("").required(),
130
+ country: Joi.string().allow("").required(),
131
+ country_code: Joi.string().allow(""),
132
+ landmark: Joi.string().allow(""),
133
+ latitude: Joi.number().required(),
134
+ longitude: Joi.number().required(),
135
+ pincode: Joi.number().required(),
136
+ state: Joi.string().allow("").required(),
271
137
  });
272
138
  }
273
-
274
- static GetBrandResponseSerializer() {
139
+ static CreateUpdateBrandRequestSerializer() {
275
140
  return Joi.object({
141
+ _custom_json: Joi.any(),
276
142
  _locale_language: Joi.any(),
277
-
278
- reject_reason: Joi.string().allow(""),
279
-
280
- logo: Joi.string().allow(""),
281
-
282
- description: Joi.string().allow(""),
283
-
284
- verified_by: CompanyProfileModel.UserSerializer(),
285
-
286
- uid: Joi.number(),
287
-
288
- created_by: CompanyProfileModel.UserSerializer(),
289
-
290
- warnings: Joi.any(),
291
-
292
- slug_key: Joi.string().allow(""),
293
-
294
- stage: Joi.string().allow(""),
295
-
296
- modified_on: Joi.string().allow(""),
297
-
298
143
  banner: CompanyProfileModel.BrandBannerSerializer(),
299
-
300
- modified_by: CompanyProfileModel.UserSerializer(),
301
-
302
- created_on: Joi.string().allow(""),
303
-
304
- mode: Joi.string().allow(""),
305
-
306
- verified_on: Joi.string().allow(""),
307
-
308
- name: Joi.string().allow("").required(),
309
-
310
- _custom_json: Joi.any(),
311
-
312
- synonyms: Joi.array().items(Joi.string().allow("")),
313
- });
314
- }
315
-
316
- static CreateUpdateBrandRequestSerializer() {
317
- return Joi.object({
318
144
  brand_tier: Joi.string().allow(""),
319
-
320
- uid: Joi.number(),
321
-
322
- _locale_language: Joi.any(),
323
-
324
- logo: Joi.string().allow("").required(),
325
-
145
+ company_id: Joi.number(),
326
146
  description: Joi.string().allow(""),
327
-
147
+ logo: Joi.string().allow("").required(),
328
148
  name: Joi.string().allow("").required(),
329
-
330
- banner: CompanyProfileModel.BrandBannerSerializer(),
331
-
332
- _custom_json: Joi.any(),
333
-
334
- company_id: Joi.number(),
335
-
336
149
  synonyms: Joi.array().items(Joi.string().allow("")),
150
+ uid: Joi.number(),
337
151
  });
338
152
  }
339
-
340
- static Page() {
153
+ static Document() {
341
154
  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
-
155
+ legal_name: Joi.string().allow(""),
352
156
  type: Joi.string().allow("").required(),
353
-
354
- size: Joi.number(),
157
+ url: Joi.string().allow(""),
158
+ value: Joi.string().allow("").required(),
159
+ verified: Joi.boolean(),
355
160
  });
356
161
  }
357
-
358
- static CompanySocialAccounts() {
162
+ static DocumentsObj() {
359
163
  return Joi.object({
360
- url: Joi.string().allow("").required(),
361
-
362
- name: Joi.string().allow("").required(),
164
+ pending: Joi.number(),
165
+ verified: Joi.number(),
363
166
  });
364
167
  }
365
-
366
- static CompanyDetails() {
168
+ static ErrorResponse() {
367
169
  return Joi.object({
368
- socials: Joi.array().items(CompanyProfileModel.CompanySocialAccounts()),
369
-
370
- website_url: Joi.string().allow(""),
170
+ code: Joi.string().allow(""),
171
+ message: Joi.string().allow(""),
172
+ meta: Joi.any(),
173
+ status: Joi.number(),
371
174
  });
372
175
  }
373
-
374
- static CompanySerializer() {
176
+ static GetAddressSerializer() {
375
177
  return Joi.object({
376
- addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
377
-
378
- stage: Joi.string().allow(""),
379
-
380
- modified_on: Joi.string().allow(""),
381
-
382
- company_type: Joi.string().allow("").required(),
383
-
384
- uid: Joi.number(),
385
-
386
- reject_reason: Joi.string().allow(""),
387
-
388
- business_type: Joi.string().allow("").required(),
389
-
390
- verified_by: CompanyProfileModel.UserSerializer(),
391
-
392
- name: Joi.string().allow(""),
393
-
394
- details: CompanyProfileModel.CompanyDetails(),
395
-
396
- created_by: CompanyProfileModel.UserSerializer(),
397
-
398
- notification_emails: Joi.array().items(Joi.string().allow("")),
399
-
400
- modified_by: CompanyProfileModel.UserSerializer(),
401
-
402
- market_channels: Joi.array().items(Joi.string().allow("")),
403
-
404
- _custom_json: Joi.any(),
405
-
406
- business_country_info: CompanyProfileModel.BusinessCountryInfo(),
407
-
408
- created_on: Joi.string().allow(""),
409
-
410
- verified_on: 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(""),
411
189
  });
412
190
  }
413
-
414
- static CompanyBrandSerializer() {
191
+ static GetBrandResponseSerializer() {
415
192
  return Joi.object({
416
- stage: Joi.string().allow(""),
417
-
193
+ _custom_json: Joi.any(),
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(""),
199
+ logo: Joi.string().allow(""),
200
+ mode: Joi.string().allow(""),
201
+ modified_by: CompanyProfileModel.UserSerializer(),
418
202
  modified_on: Joi.string().allow(""),
419
-
420
- uid: Joi.number(),
421
-
203
+ name: Joi.string().allow("").required(),
422
204
  reject_reason: Joi.string().allow(""),
423
-
424
- brand: CompanyProfileModel.GetBrandResponseSerializer(),
425
-
205
+ slug_key: Joi.string().allow(""),
206
+ stage: Joi.string().allow(""),
207
+ synonyms: Joi.array().items(Joi.string().allow("")),
208
+ uid: Joi.number(),
426
209
  verified_by: CompanyProfileModel.UserSerializer(),
427
-
428
- created_by: CompanyProfileModel.UserSerializer(),
429
-
430
- warnings: Joi.any(),
431
-
432
- modified_by: CompanyProfileModel.UserSerializer(),
433
-
434
- company: CompanyProfileModel.CompanySerializer(),
435
-
436
- created_on: Joi.string().allow(""),
437
-
438
210
  verified_on: Joi.string().allow(""),
211
+ warnings: Joi.any(),
439
212
  });
440
213
  }
441
-
442
- static CompanyBrandListSerializer() {
214
+ static GetCompanyProfileSerializerResponse() {
443
215
  return Joi.object({
444
- page: CompanyProfileModel.Page(),
445
-
446
- items: Joi.array().items(CompanyProfileModel.CompanyBrandSerializer()),
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(),
224
+ created_by: CompanyProfileModel.UserSerializer(),
225
+ created_on: Joi.string().allow(""),
226
+ documents: Joi.array().items(CompanyProfileModel.Document()),
227
+ franchise_enabled: Joi.boolean(),
228
+ mode: Joi.string().allow(""),
229
+ modified_by: CompanyProfileModel.UserSerializer(),
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(),
236
+ verified_by: CompanyProfileModel.UserSerializer(),
237
+ verified_on: Joi.string().allow(""),
238
+ warnings: Joi.any(),
447
239
  });
448
240
  }
449
-
450
- static CompanyBrandPostRequestSerializer() {
241
+ static GetCompanySerializer() {
451
242
  return Joi.object({
452
- brands: Joi.array().items(Joi.number()).required(),
453
-
454
- company: Joi.number().required(),
455
-
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(),
249
+ modified_on: Joi.string().allow(""),
250
+ name: Joi.string().allow(""),
251
+ reject_reason: Joi.string().allow(""),
252
+ stage: Joi.string().allow(""),
456
253
  uid: Joi.number(),
254
+ verified_by: CompanyProfileModel.UserSerializer(),
255
+ verified_on: Joi.string().allow(""),
457
256
  });
458
257
  }
459
-
460
- static GetCompanySerializer() {
258
+ static GetLocationSerializer() {
461
259
  return Joi.object({
462
- stage: Joi.string().allow(""),
463
-
464
- addresses: Joi.array().items(CompanyProfileModel.GetAddressSerializer()),
465
-
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(),
466
275
  modified_on: Joi.string().allow(""),
467
-
468
- company_type: Joi.string().allow(""),
469
-
470
- uid: Joi.number(),
471
-
472
- reject_reason: Joi.string().allow(""),
473
-
474
- business_type: Joi.string().allow(""),
475
-
276
+ name: Joi.string().allow("").required(),
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
+ ),
285
+ uid: Joi.number(),
476
286
  verified_by: CompanyProfileModel.UserSerializer(),
477
-
478
- name: Joi.string().allow(""),
479
-
480
- created_by: CompanyProfileModel.UserSerializer(),
481
-
482
- modified_by: CompanyProfileModel.UserSerializer(),
483
-
484
- created_on: Joi.string().allow(""),
485
-
486
287
  verified_on: Joi.string().allow(""),
288
+ warnings: Joi.any(),
487
289
  });
488
290
  }
489
-
490
291
  static HolidayDateSerializer() {
491
292
  return Joi.object({
492
- start_date: Joi.string().allow("").required(),
493
-
494
293
  end_date: Joi.string().allow("").required(),
294
+ start_date: Joi.string().allow("").required(),
495
295
  });
496
296
  }
497
-
498
297
  static HolidaySchemaSerializer() {
499
298
  return Joi.object({
500
299
  date: CompanyProfileModel.HolidayDateSerializer().required(),
501
-
502
- title: Joi.string().allow("").required(),
503
-
504
300
  holiday_type: Joi.string().allow("").required(),
301
+ title: Joi.string().allow("").required(),
505
302
  });
506
303
  }
507
-
508
304
  static InvoiceCredSerializer() {
509
305
  return Joi.object({
510
- username: Joi.string().allow(""),
511
-
512
- password: Joi.string().allow(""),
513
-
514
306
  enabled: Joi.boolean(),
307
+ password: Joi.string().allow(""),
308
+ username: Joi.string().allow(""),
515
309
  });
516
310
  }
517
-
518
311
  static InvoiceDetailsSerializer() {
519
312
  return Joi.object({
520
- e_waybill: CompanyProfileModel.InvoiceCredSerializer(),
521
-
522
313
  e_invoice: CompanyProfileModel.InvoiceCredSerializer(),
314
+ e_waybill: CompanyProfileModel.InvoiceCredSerializer(),
523
315
  });
524
316
  }
525
-
526
- static LocationTimingSerializer() {
527
- return Joi.object({
528
- hour: Joi.number().required(),
529
-
530
- minute: Joi.number().required(),
531
- });
532
- }
533
-
534
317
  static LocationDayWiseSerializer() {
535
318
  return Joi.object({
536
319
  closing: CompanyProfileModel.LocationTimingSerializer(),
537
-
538
- weekday: Joi.string().allow("").required(),
539
-
540
320
  open: Joi.boolean().required(),
541
-
542
321
  opening: CompanyProfileModel.LocationTimingSerializer(),
322
+ weekday: Joi.string().allow("").required(),
543
323
  });
544
324
  }
545
-
546
- static ProductReturnConfigSerializer() {
325
+ static LocationListSerializer() {
547
326
  return Joi.object({
548
- on_same_store: Joi.boolean(),
549
-
550
- store_uid: Joi.number(),
327
+ items: Joi.array().items(CompanyProfileModel.GetLocationSerializer()),
328
+ page: CompanyProfileModel.Page(),
551
329
  });
552
330
  }
553
-
554
331
  static LocationManagerSerializer() {
555
332
  return Joi.object({
556
333
  email: Joi.string().allow(""),
557
-
558
334
  mobile_no: CompanyProfileModel.SellerPhoneNumber().required(),
559
-
560
335
  name: Joi.string().allow(""),
561
336
  });
562
337
  }
563
-
564
- static GetLocationSerializer() {
338
+ static LocationSerializer() {
565
339
  return Joi.object({
566
- store_type: Joi.string().allow(""),
567
-
568
- verified_by: CompanyProfileModel.UserSerializer(),
569
-
570
- company: CompanyProfileModel.GetCompanySerializer(),
571
-
572
- holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
573
-
574
- gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
575
-
576
- uid: Joi.number(),
577
-
578
- created_by: CompanyProfileModel.UserSerializer(),
579
-
580
- warnings: Joi.any(),
581
-
582
- timing: Joi.array().items(
583
- CompanyProfileModel.LocationDayWiseSerializer()
584
- ),
585
-
586
- address: CompanyProfileModel.GetAddressSerializer().required(),
587
-
588
- stage: Joi.string().allow(""),
589
-
590
- modified_on: Joi.string().allow(""),
591
-
340
+ _custom_json: Joi.any(),
341
+ address: CompanyProfileModel.AddressSerializer().required(),
592
342
  code: Joi.string().allow("").required(),
593
-
594
- product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
595
-
596
- manager: CompanyProfileModel.LocationManagerSerializer(),
597
-
598
- notification_emails: Joi.array().items(Joi.string().allow("")),
599
-
600
- modified_by: CompanyProfileModel.UserSerializer(),
601
-
602
- documents: Joi.array().items(CompanyProfileModel.Document()),
603
-
604
- created_on: Joi.string().allow(""),
605
-
606
- verified_on: Joi.string().allow(""),
607
-
608
- phone_number: Joi.string().allow(""),
609
-
610
- name: Joi.string().allow("").required(),
611
-
343
+ company: Joi.number().required(),
612
344
  contact_numbers: Joi.array().items(
613
345
  CompanyProfileModel.SellerPhoneNumber()
614
346
  ),
615
-
616
- _custom_json: Joi.any(),
617
-
618
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(),
619
362
  });
620
363
  }
621
-
622
- static LocationListSerializer() {
364
+ static LocationTimingSerializer() {
623
365
  return Joi.object({
624
- page: CompanyProfileModel.Page(),
625
-
626
- items: Joi.array().items(CompanyProfileModel.GetLocationSerializer()),
366
+ hour: Joi.number().required(),
367
+ minute: Joi.number().required(),
627
368
  });
628
369
  }
629
-
630
- static AddressSerializer() {
370
+ static MetricsSerializer() {
631
371
  return Joi.object({
632
- address1: Joi.string().allow(""),
633
-
634
- latitude: Joi.number().required(),
635
-
636
- city: Joi.string().allow(""),
637
-
638
- longitude: Joi.number().required(),
639
-
640
- country_code: Joi.string().allow(""),
641
-
642
- address2: Joi.string().allow(""),
643
-
644
- state: Joi.string().allow(""),
645
-
646
- pincode: Joi.number(),
647
-
648
- country: Joi.string().allow(""),
649
-
650
- address_type: Joi.string().allow(""),
651
-
652
- landmark: Joi.string().allow(""),
372
+ brand: CompanyProfileModel.DocumentsObj(),
373
+ company_documents: CompanyProfileModel.DocumentsObj(),
374
+ product: CompanyProfileModel.DocumentsObj(),
375
+ stage: Joi.string().allow(""),
376
+ store: CompanyProfileModel.DocumentsObj(),
377
+ store_documents: CompanyProfileModel.DocumentsObj(),
378
+ uid: Joi.number(),
653
379
  });
654
380
  }
655
-
656
- static LocationSerializer() {
381
+ static Page() {
657
382
  return Joi.object({
658
- stage: Joi.string().allow(""),
659
-
660
- code: Joi.string().allow("").required(),
661
-
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(),
390
+ });
391
+ }
392
+ static ProductReturnConfigSerializer() {
393
+ return Joi.object({
394
+ on_same_store: Joi.boolean(),
395
+ store_uid: Joi.number(),
396
+ });
397
+ }
398
+ static ProfileSuccessResponse() {
399
+ return Joi.object({
400
+ success: Joi.boolean(),
662
401
  uid: Joi.number(),
663
-
664
- product_return_config: CompanyProfileModel.ProductReturnConfigSerializer(),
665
-
666
- store_type: Joi.string().allow(""),
667
-
668
- manager: CompanyProfileModel.LocationManagerSerializer(),
669
-
670
- name: Joi.string().allow("").required(),
671
-
672
- notification_emails: Joi.array().items(Joi.string().allow("")),
673
-
674
- contact_numbers: Joi.array().items(
675
- CompanyProfileModel.SellerPhoneNumber()
402
+ });
403
+ }
404
+ static SellerPhoneNumber() {
405
+ return Joi.object({
406
+ country_code: Joi.number().required(),
407
+ number: Joi.string().allow("").required(),
408
+ });
409
+ }
410
+ static UpdateCompany() {
411
+ return Joi.object({
412
+ _custom_json: Joi.any(),
413
+ addresses: Joi.array().items(
414
+ CompanyProfileModel.CreateUpdateAddressSerializer()
676
415
  ),
677
-
678
- warnings: Joi.any(),
679
-
680
- company: Joi.number().required(),
681
-
682
- display_name: Joi.string().allow("").required(),
683
-
684
- holiday: Joi.array().items(CompanyProfileModel.HolidaySchemaSerializer()),
685
-
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(),
686
421
  documents: Joi.array().items(CompanyProfileModel.Document()),
687
-
688
- timing: Joi.array().items(
689
- CompanyProfileModel.LocationDayWiseSerializer()
690
- ),
691
-
692
- _custom_json: Joi.any(),
693
-
694
- gst_credentials: CompanyProfileModel.InvoiceDetailsSerializer(),
695
-
696
- address: CompanyProfileModel.AddressSerializer().required(),
422
+ franchise_enabled: Joi.boolean(),
423
+ name: Joi.string().allow(""),
424
+ notification_emails: Joi.array().items(Joi.string().allow("")),
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
  }