@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -3,30 +3,25 @@ declare class Common {
3
3
  constructor(config: any);
4
4
  config: any;
5
5
  /**
6
- * @param {Object} arg - Arg object.
7
- * @param {string} [arg.locationType] - Provide location type to query on.
8
- * Possible values : country, state, city
9
- * @param {string} [arg.id] - Field is optional when location_type is
10
- * country. If querying for state, provide id of country. If querying for
11
- * city, provide id of state.
12
- * @returns {Promise<Locations>} - Success response
6
+ * @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
7
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
+ * @param {import("../PlatformAPIClient").Options} - Options
9
+ * @returns {Promise<CommonPlatformModel.Locations>} - Success response
10
+ * @name getLocations
13
11
  * @summary: Get countries, states, cities
14
- * @description:
12
+ * @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
15
13
  */
16
- getLocations({ locationType, id }?: {
17
- locationType?: string;
18
- id?: string;
19
- }): Promise<Locations>;
14
+ getLocations({ locationType, id, requestHeaders }?: CommonPlatformValidator.GetLocationsParam, { responseHeaders }?: object): Promise<CommonPlatformModel.Locations>;
20
15
  /**
21
- * @param {Object} arg - Arg object.
22
- * @param {string} [arg.authorization] -
23
- * @param {string} [arg.query] - Provide application name
24
- * @returns {Promise<ApplicationResponse>} - Success response
16
+ * @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
+ * @param {import("../PlatformAPIClient").Options} - Options
19
+ * @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
20
+ * @name searchApplication
25
21
  * @summary: Search Application
26
- * @description: Provide application name or domain url
22
+ * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
27
23
  */
28
- searchApplication({ authorization, query }?: {
29
- authorization?: string;
30
- query?: string;
31
- }): Promise<ApplicationResponse>;
24
+ searchApplication({ authorization, query, requestHeaders }?: CommonPlatformValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonPlatformModel.ApplicationResponse>;
32
25
  }
26
+ import CommonPlatformValidator = require("./CommonPlatformValidator");
27
+ import CommonPlatformModel = require("./CommonPlatformModel");
@@ -1,8 +1,8 @@
1
1
  const PlatformAPIClient = require("../PlatformAPIClient");
2
2
  const { FDKClientValidationError } = require("../../common/FDKError");
3
3
  const Paginator = require("../../common/Paginator");
4
- const CommonValidator = require("./CommonPlatformValidator");
5
- const CommonModel = require("./CommonPlatformModel");
4
+ const CommonPlatformValidator = require("./CommonPlatformValidator");
5
+ const CommonPlatformModel = require("./CommonPlatformModel");
6
6
  const { Logger } = require("./../../common/Logger");
7
7
  const Joi = require("joi");
8
8
 
@@ -12,18 +12,19 @@ class Common {
12
12
  }
13
13
 
14
14
  /**
15
- * @param {Object} arg - Arg object.
16
- * @param {string} [arg.locationType] - Provide location type to query on.
17
- * Possible values : country, state, city
18
- * @param {string} [arg.id] - Field is optional when location_type is
19
- * country. If querying for state, provide id of country. If querying for
20
- * city, provide id of state.
21
- * @returns {Promise<Locations>} - Success response
15
+ * @param {CommonPlatformValidator.GetLocationsParam} arg - Arg object
16
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
17
+ * @param {import("../PlatformAPIClient").Options} - Options
18
+ * @returns {Promise<CommonPlatformModel.Locations>} - Success response
19
+ * @name getLocations
22
20
  * @summary: Get countries, states, cities
23
- * @description:
21
+ * @description: Retrieve a list of countries, states, or cities based on the provided location_type and id parameters. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/getLocations/).
24
22
  */
25
- async getLocations({ locationType, id } = {}) {
26
- const { error } = CommonValidator.getLocations().validate(
23
+ async getLocations(
24
+ { locationType, id, requestHeaders } = { requestHeaders: {} },
25
+ { responseHeaders } = { responseHeaders: false }
26
+ ) {
27
+ const { error } = CommonPlatformValidator.getLocations().validate(
27
28
  { locationType, id },
28
29
  { abortEarly: false, allowUnknown: true }
29
30
  );
@@ -32,16 +33,15 @@ class Common {
32
33
  }
33
34
 
34
35
  // Showing warrnings if extra unknown parameters are found
35
- const { error: warrning } = CommonValidator.getLocations().validate(
36
+ const { error: warrning } = CommonPlatformValidator.getLocations().validate(
36
37
  { locationType, id },
37
38
  { abortEarly: false, allowUnknown: false }
38
39
  );
39
40
  if (warrning) {
40
41
  Logger({
41
42
  level: "WARN",
42
- message: "Parameter Validation warrnings for getLocations",
43
+ message: `Parameter Validation warrnings for platform > Common > getLocations \n ${warrning}`,
43
44
  });
44
- Logger({ level: "WARN", message: warrning });
45
45
  }
46
46
 
47
47
  const query_params = {};
@@ -56,10 +56,18 @@ class Common {
56
56
  `/service/common/configuration/v1.0/location`,
57
57
  query_params,
58
58
  undefined,
59
- xHeaders
59
+ { ...xHeaders, ...requestHeaders },
60
+ { responseHeaders }
60
61
  );
61
62
 
62
- const { error: res_error } = CommonModel.Locations().validate(response, {
63
+ let responseData = response;
64
+ if (responseHeaders) {
65
+ responseData = response[0];
66
+ }
67
+
68
+ const {
69
+ error: res_error,
70
+ } = CommonPlatformModel.Locations().validate(responseData, {
63
71
  abortEarly: false,
64
72
  allowUnknown: false,
65
73
  });
@@ -67,24 +75,27 @@ class Common {
67
75
  if (res_error) {
68
76
  Logger({
69
77
  level: "WARN",
70
- message: "Response Validation Warnnings for getLocations",
78
+ message: `Response Validation Warnnings for platform > Common > getLocations \n ${res_error}`,
71
79
  });
72
- Logger({ level: "WARN", message: res_error });
73
80
  }
74
81
 
75
82
  return response;
76
83
  }
77
84
 
78
85
  /**
79
- * @param {Object} arg - Arg object.
80
- * @param {string} [arg.authorization] -
81
- * @param {string} [arg.query] - Provide application name
82
- * @returns {Promise<ApplicationResponse>} - Success response
86
+ * @param {CommonPlatformValidator.SearchApplicationParam} arg - Arg object
87
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
88
+ * @param {import("../PlatformAPIClient").Options} - Options
89
+ * @returns {Promise<CommonPlatformModel.ApplicationResponse>} - Success response
90
+ * @name searchApplication
83
91
  * @summary: Search Application
84
- * @description: Provide application name or domain url
92
+ * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/common/searchApplication/).
85
93
  */
86
- async searchApplication({ authorization, query } = {}) {
87
- const { error } = CommonValidator.searchApplication().validate(
94
+ async searchApplication(
95
+ { authorization, query, requestHeaders } = { requestHeaders: {} },
96
+ { responseHeaders } = { responseHeaders: false }
97
+ ) {
98
+ const { error } = CommonPlatformValidator.searchApplication().validate(
88
99
  { authorization, query },
89
100
  { abortEarly: false, allowUnknown: true }
90
101
  );
@@ -93,16 +104,17 @@ class Common {
93
104
  }
94
105
 
95
106
  // Showing warrnings if extra unknown parameters are found
96
- const { error: warrning } = CommonValidator.searchApplication().validate(
107
+ const {
108
+ error: warrning,
109
+ } = CommonPlatformValidator.searchApplication().validate(
97
110
  { authorization, query },
98
111
  { abortEarly: false, allowUnknown: false }
99
112
  );
100
113
  if (warrning) {
101
114
  Logger({
102
115
  level: "WARN",
103
- message: "Parameter Validation warrnings for searchApplication",
116
+ message: `Parameter Validation warrnings for platform > Common > searchApplication \n ${warrning}`,
104
117
  });
105
- Logger({ level: "WARN", message: warrning });
106
118
  }
107
119
 
108
120
  const query_params = {};
@@ -117,12 +129,18 @@ class Common {
117
129
  `/service/common/configuration/v1.0/application/search-application`,
118
130
  query_params,
119
131
  undefined,
120
- xHeaders
132
+ { ...xHeaders, ...requestHeaders },
133
+ { responseHeaders }
121
134
  );
122
135
 
136
+ let responseData = response;
137
+ if (responseHeaders) {
138
+ responseData = response[0];
139
+ }
140
+
123
141
  const {
124
142
  error: res_error,
125
- } = CommonModel.ApplicationResponse().validate(response, {
143
+ } = CommonPlatformModel.ApplicationResponse().validate(responseData, {
126
144
  abortEarly: false,
127
145
  allowUnknown: false,
128
146
  });
@@ -130,9 +148,8 @@ class Common {
130
148
  if (res_error) {
131
149
  Logger({
132
150
  level: "WARN",
133
- message: "Response Validation Warnnings for searchApplication",
151
+ message: `Response Validation Warnnings for platform > Common > searchApplication \n ${res_error}`,
134
152
  });
135
- Logger({ level: "WARN", message: res_error });
136
153
  }
137
154
 
138
155
  return response;
@@ -1,20 +1,424 @@
1
- export = CommonModel;
2
- declare class CommonModel {
3
- static Application(): any;
4
- static ApplicationAuth(): any;
5
- static ApplicationCors(): any;
6
- static ApplicationMeta(): any;
7
- static ApplicationRedirections(): any;
8
- static ApplicationResponse(): any;
9
- static ApplicationWebsite(): any;
10
- static BadRequest(): any;
11
- static Currency(): any;
12
- static Domain(): any;
13
- static LocationCountry(): any;
14
- static LocationDefaultCurrency(): any;
15
- static LocationDefaultLanguage(): any;
16
- static Locations(): any;
17
- static NotFound(): any;
18
- static Page(): any;
19
- static SecureUrl(): any;
1
+ export = CommonPlatformModel;
2
+ /**
3
+ * @typedef Application
4
+ * @property {number} [__v] - Version key for tracking revisions. Default value is zero.
5
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
6
+ * of the sales channel
7
+ * @property {string} [app_type] - It shows whether application is live or in
8
+ * development mode
9
+ * @property {ApplicationAuth} [auth]
10
+ * @property {SecureUrl} [banner]
11
+ * @property {number} [cache_ttl] - An integer value that specifies the number
12
+ * of seconds until the key expires
13
+ * @property {string} [channel_type] - It indicates different channel types like
14
+ * store, website-and-mobile-apps. Default value is store.
15
+ * @property {number} [company_id] - Numeric ID allotted to a business account
16
+ * where the sales channel exists
17
+ * @property {ApplicationCors} [cors]
18
+ * @property {string} [created_at] - ISO 8601 timestamp of sales channel creation
19
+ * @property {string} [description] - It contains detailed information about the
20
+ * sales channel
21
+ * @property {Domain} [domain]
22
+ * @property {Domain[]} [domains]
23
+ * @property {SecureUrl} [favicon]
24
+ * @property {boolean} [is_active] - Indicates whether a sales channel is active
25
+ * or not active
26
+ * @property {boolean} [is_internal] - Indicates whether a sales channel is
27
+ * internal or not
28
+ * @property {SecureUrl} [logo]
29
+ * @property {ApplicationMeta[]} [meta]
30
+ * @property {SecureUrl} [mobile_logo]
31
+ * @property {string} [name] - Name of the sales channel, e.g. Zenz Fashion
32
+ * @property {string} [owner] - The unique identifier (24-digit Mongo Object ID)
33
+ * of owner who owns the application
34
+ * @property {ApplicationRedirections[]} [redirections]
35
+ * @property {string} [token] - Randomly generated fixed-length string for sales
36
+ * channel. It is required and auto-generated.
37
+ * @property {string} [updated_at] - ISO 8601 timestamp of sales channel updation
38
+ * @property {ApplicationWebsite} [website]
39
+ */
40
+ /**
41
+ * @typedef ApplicationAuth
42
+ * @property {boolean} [enabled] - Shows sales channel auth is enabled or not enabled.
43
+ */
44
+ /**
45
+ * @typedef ApplicationCors
46
+ * @property {string[]} [domains]
47
+ */
48
+ /**
49
+ * @typedef ApplicationMeta
50
+ * @property {string} [name] - Indicates the name of application meta
51
+ * @property {string} [value] - Value related to application meta name
52
+ */
53
+ /**
54
+ * @typedef ApplicationRedirections
55
+ * @property {string} [redirect_from] - Old domain URL of the sales channel
56
+ * @property {string} [redirect_to] - New domain URL of the sales channel. Users
57
+ * will be automatically redirected from old domain to new domain.
58
+ * @property {string} [type] - It shows domain redirection type. Permanent
59
+ * redirection is for long time period redirection, and temporary redirection
60
+ * for a short time period.
61
+ */
62
+ /**
63
+ * @typedef ApplicationResponse
64
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
65
+ * of the current sales channel supported currency
66
+ * @property {Application} [application]
67
+ * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
68
+ * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
69
+ * currency creation
70
+ * @property {number} [decimal_digits] - Acceptable decimal limits for a given
71
+ * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
72
+ * value of a currency.
73
+ * @property {boolean} [is_active] - Shows currency is enabled or not in current
74
+ * sales channel
75
+ * @property {string} [name] - Name of the currency, e.g. Indian Rupee
76
+ * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
77
+ * @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
78
+ * currency updation
79
+ */
80
+ /**
81
+ * @typedef ApplicationWebsite
82
+ * @property {string} [basepath] - Base path for the current sales channel website
83
+ * @property {boolean} [enabled] - Shows whether sales channel website URL is
84
+ * enabled or not
85
+ */
86
+ /**
87
+ * @typedef BadRequest
88
+ * @property {string} [message] - Failure message (in a string format)
89
+ */
90
+ /**
91
+ * @typedef Domain
92
+ * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
93
+ * of the domain
94
+ * @property {boolean} [is_predefined] - Domain is hosting domain or not
95
+ * @property {boolean} [is_primary] - Indicates domain is primary or not.
96
+ * Primary domain is the default/main domain.
97
+ * @property {boolean} [is_shortlink] - Shortlink is present or not for the domain
98
+ * @property {string} [name]
99
+ * @property {boolean} [verified] - Indicates domain is verified or not. TXT and
100
+ * A records should propagate correctly.
101
+ */
102
+ /**
103
+ * @typedef LocationCountry
104
+ * @property {number} [__v]
105
+ * @property {string} [_id]
106
+ * @property {string} [capital]
107
+ * @property {string} [country_code]
108
+ * @property {string} [currency]
109
+ * @property {LocationDefaultCurrency} [default_currency]
110
+ * @property {LocationDefaultLanguage} [default_language]
111
+ * @property {string} [iso2]
112
+ * @property {string} [iso3]
113
+ * @property {string} [latitude]
114
+ * @property {string} [longitude]
115
+ * @property {string} [name]
116
+ * @property {string} [parent]
117
+ * @property {string} [phone_code]
118
+ * @property {string} [state_code]
119
+ * @property {string} [type]
120
+ * @property {number} [uid]
121
+ */
122
+ /**
123
+ * @typedef LocationDefaultCurrency
124
+ * @property {string} [code]
125
+ * @property {string} [name]
126
+ * @property {string} [symbol]
127
+ */
128
+ /**
129
+ * @typedef LocationDefaultLanguage
130
+ * @property {string} [code]
131
+ * @property {string} [name]
132
+ */
133
+ /**
134
+ * @typedef Locations
135
+ * @property {LocationCountry[]} [items] - Object Containing Country Locations Details
136
+ */
137
+ /**
138
+ * @typedef NotFound
139
+ * @property {string} [message] - Response message for not found
140
+ */
141
+ /**
142
+ * @typedef SecureUrl
143
+ * @property {string} [secure_url] - Hosted URL of the image
144
+ */
145
+ declare class CommonPlatformModel {
20
146
  }
147
+ declare namespace CommonPlatformModel {
148
+ export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
149
+ }
150
+ /** @returns {Application} */
151
+ declare function Application(): Application;
152
+ type Application = {
153
+ /**
154
+ * - Version key for tracking revisions. Default value is zero.
155
+ */
156
+ __v?: number;
157
+ /**
158
+ * - The unique identifier (24-digit Mongo Object ID)
159
+ * of the sales channel
160
+ */
161
+ _id?: string;
162
+ /**
163
+ * - It shows whether application is live or in
164
+ * development mode
165
+ */
166
+ app_type?: string;
167
+ auth?: ApplicationAuth;
168
+ banner?: SecureUrl;
169
+ /**
170
+ * - An integer value that specifies the number
171
+ * of seconds until the key expires
172
+ */
173
+ cache_ttl?: number;
174
+ /**
175
+ * - It indicates different channel types like
176
+ * store, website-and-mobile-apps. Default value is store.
177
+ */
178
+ channel_type?: string;
179
+ /**
180
+ * - Numeric ID allotted to a business account
181
+ * where the sales channel exists
182
+ */
183
+ company_id?: number;
184
+ cors?: ApplicationCors;
185
+ /**
186
+ * - ISO 8601 timestamp of sales channel creation
187
+ */
188
+ created_at?: string;
189
+ /**
190
+ * - It contains detailed information about the
191
+ * sales channel
192
+ */
193
+ description?: string;
194
+ domain?: Domain;
195
+ domains?: Domain[];
196
+ favicon?: SecureUrl;
197
+ /**
198
+ * - Indicates whether a sales channel is active
199
+ * or not active
200
+ */
201
+ is_active?: boolean;
202
+ /**
203
+ * - Indicates whether a sales channel is
204
+ * internal or not
205
+ */
206
+ is_internal?: boolean;
207
+ logo?: SecureUrl;
208
+ meta?: ApplicationMeta[];
209
+ mobile_logo?: SecureUrl;
210
+ /**
211
+ * - Name of the sales channel, e.g. Zenz Fashion
212
+ */
213
+ name?: string;
214
+ /**
215
+ * - The unique identifier (24-digit Mongo Object ID)
216
+ * of owner who owns the application
217
+ */
218
+ owner?: string;
219
+ redirections?: ApplicationRedirections[];
220
+ /**
221
+ * - Randomly generated fixed-length string for sales
222
+ * channel. It is required and auto-generated.
223
+ */
224
+ token?: string;
225
+ /**
226
+ * - ISO 8601 timestamp of sales channel updation
227
+ */
228
+ updated_at?: string;
229
+ website?: ApplicationWebsite;
230
+ };
231
+ /** @returns {ApplicationAuth} */
232
+ declare function ApplicationAuth(): ApplicationAuth;
233
+ type ApplicationAuth = {
234
+ /**
235
+ * - Shows sales channel auth is enabled or not enabled.
236
+ */
237
+ enabled?: boolean;
238
+ };
239
+ /** @returns {ApplicationCors} */
240
+ declare function ApplicationCors(): ApplicationCors;
241
+ type ApplicationCors = {
242
+ domains?: string[];
243
+ };
244
+ /** @returns {ApplicationMeta} */
245
+ declare function ApplicationMeta(): ApplicationMeta;
246
+ type ApplicationMeta = {
247
+ /**
248
+ * - Indicates the name of application meta
249
+ */
250
+ name?: string;
251
+ /**
252
+ * - Value related to application meta name
253
+ */
254
+ value?: string;
255
+ };
256
+ /** @returns {ApplicationRedirections} */
257
+ declare function ApplicationRedirections(): ApplicationRedirections;
258
+ type ApplicationRedirections = {
259
+ /**
260
+ * - Old domain URL of the sales channel
261
+ */
262
+ redirect_from?: string;
263
+ /**
264
+ * - New domain URL of the sales channel. Users
265
+ * will be automatically redirected from old domain to new domain.
266
+ */
267
+ redirect_to?: string;
268
+ /**
269
+ * - It shows domain redirection type. Permanent
270
+ * redirection is for long time period redirection, and temporary redirection
271
+ * for a short time period.
272
+ */
273
+ type?: string;
274
+ };
275
+ /** @returns {ApplicationResponse} */
276
+ declare function ApplicationResponse(): ApplicationResponse;
277
+ type ApplicationResponse = {
278
+ /**
279
+ * - The unique identifier (24-digit Mongo Object ID)
280
+ * of the current sales channel supported currency
281
+ */
282
+ _id?: string;
283
+ application?: Application;
284
+ /**
285
+ * - 3-character currency code, e.g. INR, USD, EUR.
286
+ */
287
+ code?: string;
288
+ /**
289
+ * - ISO 8601 timestamp of sales channel support
290
+ * currency creation
291
+ */
292
+ created_at?: string;
293
+ /**
294
+ * - Acceptable decimal limits for a given
295
+ * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
296
+ * value of a currency.
297
+ */
298
+ decimal_digits?: number;
299
+ /**
300
+ * - Shows currency is enabled or not in current
301
+ * sales channel
302
+ */
303
+ is_active?: boolean;
304
+ /**
305
+ * - Name of the currency, e.g. Indian Rupee
306
+ */
307
+ name?: string;
308
+ /**
309
+ * - Unique symbol for identifying the currency, e.g. ₹
310
+ */
311
+ symbol?: string;
312
+ /**
313
+ * - ISO 8601 timestamp of sales channel support
314
+ * currency updation
315
+ */
316
+ updated_at?: string;
317
+ };
318
+ /** @returns {ApplicationWebsite} */
319
+ declare function ApplicationWebsite(): ApplicationWebsite;
320
+ type ApplicationWebsite = {
321
+ /**
322
+ * - Base path for the current sales channel website
323
+ */
324
+ basepath?: string;
325
+ /**
326
+ * - Shows whether sales channel website URL is
327
+ * enabled or not
328
+ */
329
+ enabled?: boolean;
330
+ };
331
+ /** @returns {BadRequest} */
332
+ declare function BadRequest(): BadRequest;
333
+ type BadRequest = {
334
+ /**
335
+ * - Failure message (in a string format)
336
+ */
337
+ message?: string;
338
+ };
339
+ /** @returns {Domain} */
340
+ declare function Domain(): Domain;
341
+ type Domain = {
342
+ /**
343
+ * - The unique identifier (24-digit Mongo Object ID)
344
+ * of the domain
345
+ */
346
+ _id?: string;
347
+ /**
348
+ * - Domain is hosting domain or not
349
+ */
350
+ is_predefined?: boolean;
351
+ /**
352
+ * - Indicates domain is primary or not.
353
+ * Primary domain is the default/main domain.
354
+ */
355
+ is_primary?: boolean;
356
+ /**
357
+ * - Shortlink is present or not for the domain
358
+ */
359
+ is_shortlink?: boolean;
360
+ name?: string;
361
+ /**
362
+ * - Indicates domain is verified or not. TXT and
363
+ * A records should propagate correctly.
364
+ */
365
+ verified?: boolean;
366
+ };
367
+ /** @returns {LocationCountry} */
368
+ declare function LocationCountry(): LocationCountry;
369
+ type LocationCountry = {
370
+ __v?: number;
371
+ _id?: string;
372
+ capital?: string;
373
+ country_code?: string;
374
+ currency?: string;
375
+ default_currency?: LocationDefaultCurrency;
376
+ default_language?: LocationDefaultLanguage;
377
+ iso2?: string;
378
+ iso3?: string;
379
+ latitude?: string;
380
+ longitude?: string;
381
+ name?: string;
382
+ parent?: string;
383
+ phone_code?: string;
384
+ state_code?: string;
385
+ type?: string;
386
+ uid?: number;
387
+ };
388
+ /** @returns {LocationDefaultCurrency} */
389
+ declare function LocationDefaultCurrency(): LocationDefaultCurrency;
390
+ type LocationDefaultCurrency = {
391
+ code?: string;
392
+ name?: string;
393
+ symbol?: string;
394
+ };
395
+ /** @returns {LocationDefaultLanguage} */
396
+ declare function LocationDefaultLanguage(): LocationDefaultLanguage;
397
+ type LocationDefaultLanguage = {
398
+ code?: string;
399
+ name?: string;
400
+ };
401
+ /** @returns {Locations} */
402
+ declare function Locations(): Locations;
403
+ type Locations = {
404
+ /**
405
+ * - Object Containing Country Locations Details
406
+ */
407
+ items?: LocationCountry[];
408
+ };
409
+ /** @returns {NotFound} */
410
+ declare function NotFound(): NotFound;
411
+ type NotFound = {
412
+ /**
413
+ * - Response message for not found
414
+ */
415
+ message?: string;
416
+ };
417
+ /** @returns {SecureUrl} */
418
+ declare function SecureUrl(): SecureUrl;
419
+ type SecureUrl = {
420
+ /**
421
+ * - Hosted URL of the image
422
+ */
423
+ secure_url?: string;
424
+ };