@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2

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 (294) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
  6. package/sdk/application/Cart/CartApplicationClient.js +53 -130
  7. package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
  8. package/sdk/application/Cart/CartApplicationModel.js +159 -380
  9. package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
  10. package/sdk/application/Cart/CartApplicationValidator.js +18 -34
  11. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
  12. package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
  15. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
  16. package/sdk/application/Common/CommonApplicationClient.js +5 -6
  17. package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
  18. package/sdk/application/Common/CommonApplicationModel.js +6 -6
  19. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
  21. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
  22. package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
  23. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
  24. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
  25. package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
  26. package/sdk/application/Content/ContentApplicationClient.js +75 -54
  27. package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
  28. package/sdk/application/Content/ContentApplicationModel.js +32 -83
  29. package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
  30. package/sdk/application/Content/ContentApplicationValidator.js +10 -15
  31. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
  32. package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
  33. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
  34. package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
  35. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
  36. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
  38. package/sdk/application/Lead/LeadApplicationClient.js +3 -2
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
  40. package/sdk/application/Lead/LeadApplicationModel.js +19 -19
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
  43. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
  44. package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
  45. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
  46. package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
  47. package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
  48. package/sdk/application/Order/OrderApplicationClient.js +13 -96
  49. package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
  50. package/sdk/application/Order/OrderApplicationModel.js +81 -279
  51. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
  52. package/sdk/application/Order/OrderApplicationValidator.js +2 -15
  53. package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
  54. package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
  55. package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
  56. package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
  57. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
  58. package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
  59. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
  60. package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
  61. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
  62. package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
  63. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
  64. package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
  65. package/sdk/application/Share/ShareApplicationModel.js +1 -1
  66. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  67. package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
  68. package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
  69. package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
  70. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
  71. package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
  72. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  73. package/sdk/application/User/UserApplicationClient.js +10 -10
  74. package/sdk/application/User/UserApplicationModel.d.ts +17 -17
  75. package/sdk/application/User/UserApplicationModel.js +16 -16
  76. package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
  77. package/sdk/application/User/UserApplicationValidator.js +2 -2
  78. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  79. package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
  80. package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
  81. package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
  82. package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
  83. package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
  84. package/sdk/application/index.d.ts +0 -1
  85. package/sdk/application/index.js +0 -2
  86. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  87. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  88. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  89. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  90. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  91. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  92. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  93. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  94. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  95. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  96. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  97. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  98. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
  99. package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
  100. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  101. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
  102. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  103. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  104. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  105. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  106. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  107. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  108. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  109. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  110. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  111. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  112. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  113. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  114. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  115. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  116. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  117. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  118. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  119. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  120. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  121. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  122. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  123. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  124. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  125. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  126. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  127. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  128. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  129. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  130. package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
  131. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
  132. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
  133. package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
  134. package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
  135. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
  136. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
  137. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
  138. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
  139. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
  140. package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
  141. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
  142. package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
  143. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
  144. package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
  145. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  146. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  147. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  148. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  149. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  150. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  151. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  152. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  153. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  154. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  155. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  156. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  157. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  158. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  159. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  160. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  161. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  162. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  163. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  164. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  165. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  166. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  167. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
  168. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
  169. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  170. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  171. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
  172. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  173. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  174. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  175. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  176. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  177. package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
  178. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  179. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  180. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  181. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  182. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  183. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  184. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  185. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  186. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  187. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
  188. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
  189. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  190. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  191. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
  192. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  193. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  194. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
  195. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  196. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  197. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  198. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  199. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  200. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  201. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  202. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  203. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  204. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  205. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  206. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  207. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -15
  208. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
  209. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
  210. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
  211. package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
  212. package/sdk/platform/Order/OrderPlatformClient.js +245 -597
  213. package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
  214. package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
  215. package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
  216. package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
  217. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  218. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  219. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  220. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  221. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
  222. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
  223. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
  224. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
  225. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  226. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  227. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
  228. package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
  229. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
  230. package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
  231. package/sdk/platform/PlatformClient.d.ts +2 -0
  232. package/sdk/platform/PlatformClient.js +4 -0
  233. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  234. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  235. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  236. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  237. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  238. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  239. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +35 -45
  240. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
  241. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
  242. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
  243. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  244. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
  245. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
  246. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
  247. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
  248. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
  249. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  250. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  251. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  252. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  253. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  254. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  255. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  256. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  257. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  258. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  259. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  260. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  261. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  262. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  263. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  264. package/sdk/platform/User/UserPlatformModel.js +23 -23
  265. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  266. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  267. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  268. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  269. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  270. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  271. package/sdk/platform/index.d.ts +1 -0
  272. package/sdk/platform/index.js +2 -0
  273. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  274. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  275. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  276. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  277. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  278. package/sdk/public/Content/ContentPublicClient.js +5 -791
  279. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  280. package/sdk/public/Content/ContentPublicModel.js +3 -649
  281. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  282. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  286. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -36
  290. package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
  291. package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
  292. package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
  293. package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
  294. package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
@@ -10,26 +10,12 @@ export = LogisticApplicationValidator;
10
10
  * Default value is 12.
11
11
  * @property {string} [q] - The number of items to retrieve in each page.
12
12
  * Default value is 12.
13
- * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
14
13
  */
15
14
  /**
16
15
  * @typedef GetCountryParam
17
16
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
18
17
  * the country (e.g., "IN" for India, "US" for the United States).
19
18
  */
20
- /**
21
- * @typedef GetCourierPartnersParam
22
- * @property {number} companyId - Unique identifier of the company.
23
- * @property {string} applicationId - Unique identifier of the sales channel.
24
- * @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
25
- */
26
- /**
27
- * @typedef GetDeliveryPromiseParam
28
- * @property {number} [pageNo] - The page number to navigate through the given
29
- * set of results. Default value is 1.
30
- * @property {number} [pageSize] - The number of items to retrieve in each page.
31
- * Default value is 12.
32
- */
33
19
  /**
34
20
  * @typedef GetLocalitiesParam
35
21
  * @property {string} localityType - Unique geographical division.
@@ -66,7 +52,7 @@ export = LogisticApplicationValidator;
66
52
  */
67
53
  /**
68
54
  * @typedef GetOptimalLocationsParam
69
- * @property {LogisticApplicationModel.ReAssignStoreDetails} body
55
+ * @property {LogisticApplicationModel.ReAssignStoreRequest} body
70
56
  */
71
57
  /**
72
58
  * @typedef GetPincodeCityParam
@@ -74,18 +60,18 @@ export = LogisticApplicationValidator;
74
60
  */
75
61
  /**
76
62
  * @typedef GetPincodeZonesParam
77
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewDetails} body
63
+ * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
78
64
  */
79
65
  /**
80
66
  * @typedef GetTatProductParam
81
- * @property {LogisticApplicationModel.TATViewDetails} body
67
+ * @property {LogisticApplicationModel.TATViewRequest} body
82
68
  */
83
69
  /**
84
70
  * @typedef ValidateAddressParam
85
71
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
86
72
  * the country (e.g., "IN" for India, "US" for the United States).
87
73
  * @property {string} templateName - The type of address form.
88
- * @property {LogisticApplicationModel.ValidateAddressDetails} body
74
+ * @property {LogisticApplicationModel.ValidateAddressRequest} body
89
75
  */
90
76
  declare class LogisticApplicationValidator {
91
77
  /** @returns {GetAllCountriesParam} */
@@ -94,10 +80,6 @@ declare class LogisticApplicationValidator {
94
80
  static getCountries(): GetCountriesParam;
95
81
  /** @returns {GetCountryParam} */
96
82
  static getCountry(): GetCountryParam;
97
- /** @returns {GetCourierPartnersParam} */
98
- static getCourierPartners(): GetCourierPartnersParam;
99
- /** @returns {GetDeliveryPromiseParam} */
100
- static getDeliveryPromise(): GetDeliveryPromiseParam;
101
83
  /** @returns {GetLocalitiesParam} */
102
84
  static getLocalities(): GetLocalitiesParam;
103
85
  /** @returns {GetLocalityParam} */
@@ -116,7 +98,7 @@ declare class LogisticApplicationValidator {
116
98
  static validateAddress(): ValidateAddressParam;
117
99
  }
118
100
  declare namespace LogisticApplicationValidator {
119
- export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetCourierPartnersParam, GetDeliveryPromiseParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
101
+ export { GetAllCountriesParam, GetCountriesParam, GetCountryParam, GetLocalitiesParam, GetLocalityParam, GetLocationsParam, GetOptimalLocationsParam, GetPincodeCityParam, GetPincodeZonesParam, GetTatProductParam, ValidateAddressParam };
120
102
  }
121
103
  type GetCountriesParam = {
122
104
  /**
@@ -139,10 +121,6 @@ type GetCountriesParam = {
139
121
  * Default value is 12.
140
122
  */
141
123
  q?: string;
142
- /**
143
- * - Fetch countries that has certain heirarchy present.
144
- */
145
- hierarchy?: string;
146
124
  };
147
125
  type GetCountryParam = {
148
126
  /**
@@ -151,29 +129,6 @@ type GetCountryParam = {
151
129
  */
152
130
  countryIsoCode: string;
153
131
  };
154
- type GetCourierPartnersParam = {
155
- /**
156
- * - Unique identifier of the company.
157
- */
158
- companyId: number;
159
- /**
160
- * - Unique identifier of the sales channel.
161
- */
162
- applicationId: string;
163
- body: LogisticApplicationModel.ShipmentCourierPartnerDetails;
164
- };
165
- type GetDeliveryPromiseParam = {
166
- /**
167
- * - The page number to navigate through the given
168
- * set of results. Default value is 1.
169
- */
170
- pageNo?: number;
171
- /**
172
- * - The number of items to retrieve in each page.
173
- * Default value is 12.
174
- */
175
- pageSize?: number;
176
- };
177
132
  type GetLocalitiesParam = {
178
133
  /**
179
134
  * - Unique geographical division.
@@ -269,7 +224,7 @@ type GetLocationsParam = {
269
224
  pageSize?: number;
270
225
  };
271
226
  type GetOptimalLocationsParam = {
272
- body: LogisticApplicationModel.ReAssignStoreDetails;
227
+ body: LogisticApplicationModel.ReAssignStoreRequest;
273
228
  };
274
229
  type GetPincodeCityParam = {
275
230
  /**
@@ -278,10 +233,10 @@ type GetPincodeCityParam = {
278
233
  pincode: string;
279
234
  };
280
235
  type GetPincodeZonesParam = {
281
- body: LogisticApplicationModel.GetZoneFromPincodeViewDetails;
236
+ body: LogisticApplicationModel.GetZoneFromPincodeViewRequest;
282
237
  };
283
238
  type GetTatProductParam = {
284
- body: LogisticApplicationModel.TATViewDetails;
239
+ body: LogisticApplicationModel.TATViewRequest;
285
240
  };
286
241
  type ValidateAddressParam = {
287
242
  /**
@@ -293,7 +248,7 @@ type ValidateAddressParam = {
293
248
  * - The type of address form.
294
249
  */
295
250
  templateName: string;
296
- body: LogisticApplicationModel.ValidateAddressDetails;
251
+ body: LogisticApplicationModel.ValidateAddressRequest;
297
252
  };
298
253
  type GetAllCountriesParam = any;
299
254
  import LogisticApplicationModel = require("./LogisticApplicationModel");
@@ -14,7 +14,6 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
14
14
  * Default value is 12.
15
15
  * @property {string} [q] - The number of items to retrieve in each page.
16
16
  * Default value is 12.
17
- * @property {string} [hierarchy] - Fetch countries that has certain heirarchy present.
18
17
  */
19
18
 
20
19
  /**
@@ -23,21 +22,6 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
23
22
  * the country (e.g., "IN" for India, "US" for the United States).
24
23
  */
25
24
 
26
- /**
27
- * @typedef GetCourierPartnersParam
28
- * @property {number} companyId - Unique identifier of the company.
29
- * @property {string} applicationId - Unique identifier of the sales channel.
30
- * @property {LogisticApplicationModel.ShipmentCourierPartnerDetails} body
31
- */
32
-
33
- /**
34
- * @typedef GetDeliveryPromiseParam
35
- * @property {number} [pageNo] - The page number to navigate through the given
36
- * set of results. Default value is 1.
37
- * @property {number} [pageSize] - The number of items to retrieve in each page.
38
- * Default value is 12.
39
- */
40
-
41
25
  /**
42
26
  * @typedef GetLocalitiesParam
43
27
  * @property {string} localityType - Unique geographical division.
@@ -77,7 +61,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
77
61
 
78
62
  /**
79
63
  * @typedef GetOptimalLocationsParam
80
- * @property {LogisticApplicationModel.ReAssignStoreDetails} body
64
+ * @property {LogisticApplicationModel.ReAssignStoreRequest} body
81
65
  */
82
66
 
83
67
  /**
@@ -87,12 +71,12 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
87
71
 
88
72
  /**
89
73
  * @typedef GetPincodeZonesParam
90
- * @property {LogisticApplicationModel.GetZoneFromPincodeViewDetails} body
74
+ * @property {LogisticApplicationModel.GetZoneFromPincodeViewRequest} body
91
75
  */
92
76
 
93
77
  /**
94
78
  * @typedef GetTatProductParam
95
- * @property {LogisticApplicationModel.TATViewDetails} body
79
+ * @property {LogisticApplicationModel.TATViewRequest} body
96
80
  */
97
81
 
98
82
  /**
@@ -100,7 +84,7 @@ const LogisticApplicationModel = require("./LogisticApplicationModel");
100
84
  * @property {string} countryIsoCode - The ISO 3166-1 alpha-2 code representing
101
85
  * the country (e.g., "IN" for India, "US" for the United States).
102
86
  * @property {string} templateName - The type of address form.
103
- * @property {LogisticApplicationModel.ValidateAddressDetails} body
87
+ * @property {LogisticApplicationModel.ValidateAddressRequest} body
104
88
  */
105
89
 
106
90
  class LogisticApplicationValidator {
@@ -116,7 +100,6 @@ class LogisticApplicationValidator {
116
100
  pageNo: Joi.number(),
117
101
  pageSize: Joi.number(),
118
102
  q: Joi.string().allow(""),
119
- hierarchy: Joi.string().allow(""),
120
103
  });
121
104
  }
122
105
 
@@ -127,23 +110,6 @@ class LogisticApplicationValidator {
127
110
  }).required();
128
111
  }
129
112
 
130
- /** @returns {GetCourierPartnersParam} */
131
- static getCourierPartners() {
132
- return Joi.object({
133
- companyId: Joi.number().required(),
134
- applicationId: Joi.string().allow("").required(),
135
- body: LogisticApplicationModel.ShipmentCourierPartnerDetails().required(),
136
- }).required();
137
- }
138
-
139
- /** @returns {GetDeliveryPromiseParam} */
140
- static getDeliveryPromise() {
141
- return Joi.object({
142
- pageNo: Joi.number(),
143
- pageSize: Joi.number(),
144
- });
145
- }
146
-
147
113
  /** @returns {GetLocalitiesParam} */
148
114
  static getLocalities() {
149
115
  return Joi.object({
@@ -186,7 +152,7 @@ class LogisticApplicationValidator {
186
152
  /** @returns {GetOptimalLocationsParam} */
187
153
  static getOptimalLocations() {
188
154
  return Joi.object({
189
- body: LogisticApplicationModel.ReAssignStoreDetails().required(),
155
+ body: LogisticApplicationModel.ReAssignStoreRequest().required(),
190
156
  }).required();
191
157
  }
192
158
 
@@ -200,14 +166,14 @@ class LogisticApplicationValidator {
200
166
  /** @returns {GetPincodeZonesParam} */
201
167
  static getPincodeZones() {
202
168
  return Joi.object({
203
- body: LogisticApplicationModel.GetZoneFromPincodeViewDetails().required(),
169
+ body: LogisticApplicationModel.GetZoneFromPincodeViewRequest().required(),
204
170
  }).required();
205
171
  }
206
172
 
207
173
  /** @returns {GetTatProductParam} */
208
174
  static getTatProduct() {
209
175
  return Joi.object({
210
- body: LogisticApplicationModel.TATViewDetails().required(),
176
+ body: LogisticApplicationModel.TATViewRequest().required(),
211
177
  }).required();
212
178
  }
213
179
 
@@ -216,7 +182,7 @@ class LogisticApplicationValidator {
216
182
  return Joi.object({
217
183
  countryIsoCode: Joi.string().allow("").required(),
218
184
  templateName: Joi.string().allow("").required(),
219
- body: LogisticApplicationModel.ValidateAddressDetails().required(),
185
+ body: LogisticApplicationModel.ValidateAddressRequest().required(),
220
186
  }).required();
221
187
  }
222
188
  }
@@ -7,7 +7,6 @@ declare class Order {
7
7
  getInvoiceByShipmentId: string;
8
8
  getOrderById: string;
9
9
  getOrders: string;
10
- getPosOrderById: string;
11
10
  getShipmentBagReasons: string;
12
11
  getShipmentById: string;
13
12
  getShipmentReasons: string;
@@ -24,14 +23,13 @@ declare class Order {
24
23
  *
25
24
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
26
25
  * @param {import("../ApplicationAPIClient").Options} - Options
27
- * @returns {Promise<OrderApplicationModel.CustomerDetailsResponseSchema>}
28
- * - Success response
29
- *
26
+ * @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
27
+ * Success response
30
28
  * @name getCustomerDetailsByShipmentId
31
29
  * @summary: Get shipment's customer
32
30
  * @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
33
31
  */
34
- getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.CustomerDetailsResponseSchema>;
32
+ getCustomerDetailsByShipmentId({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.GetCustomerDetailsByShipmentIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.CustomerDetailsResponse>;
35
33
  /**
36
34
  * @param {OrderApplicationValidator.GetInvoiceByShipmentIdParam} arg - Arg object.
37
35
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -63,16 +61,6 @@ declare class Order {
63
61
  * @description: Get all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
64
62
  */
65
63
  getOrders({ status, pageNo, pageSize, fromDate, toDate, startDate, endDate, customMeta, allowInactive, requestHeaders, }?: OrderApplicationValidator.GetOrdersParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderList>;
66
- /**
67
- * @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
68
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
69
- * @param {import("../ApplicationAPIClient").Options} - Options
70
- * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
71
- * @name getPosOrderById
72
- * @summary: Retrieves POS order details
73
- * @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
74
- */
75
- getPosOrderById({ orderId, requestHeaders }?: OrderApplicationValidator.GetPosOrderByIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderById>;
76
64
  /**
77
65
  * @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
78
66
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -107,14 +95,13 @@ declare class Order {
107
95
  * @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
108
96
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
109
97
  * @param {import("../ApplicationAPIClient").Options} - Options
110
- * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>}
111
- * - Success response
112
- *
98
+ * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
99
+ * Success response
113
100
  * @name sendOtpToShipmentCustomer
114
101
  * @summary: Send OTP to customer
115
102
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
116
103
  */
117
- sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>;
104
+ sendOtpToShipmentCustomer({ orderId, shipmentId, requestHeaders }?: OrderApplicationValidator.SendOtpToShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.SendOtpToCustomerResponse>;
118
105
  /**
119
106
  * @param {OrderApplicationValidator.TrackShipmentParam} arg - Arg object.
120
107
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -129,25 +116,24 @@ declare class Order {
129
116
  * @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
130
117
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
131
118
  * @param {import("../ApplicationAPIClient").Options} - Options
132
- * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>}
119
+ * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
133
120
  * - Success response
134
121
  *
135
122
  * @name updateShipmentStatus
136
123
  * @summary: Updates shipment status
137
124
  * @description: Update current status of a specific shipment using its shipment ID. Supports both partial and full transition as per the configured settings. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
138
125
  */
139
- updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>;
126
+ updateShipmentStatus({ shipmentId, body, requestHeaders }?: OrderApplicationValidator.UpdateShipmentStatusParam, { responseHeaders }?: object): Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>;
140
127
  /**
141
128
  * @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
142
129
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
143
130
  * @param {import("../ApplicationAPIClient").Options} - Options
144
- * @returns {Promise<OrderApplicationModel.VerifyOtpResponseSchema>} -
145
- * Success response
131
+ * @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
146
132
  * @name verifyOtpShipmentCustomer
147
133
  * @summary: Verifies OTP
148
134
  * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
149
135
  */
150
- verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponseSchema>;
136
+ verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponse>;
151
137
  }
152
138
  import OrderApplicationValidator = require("./OrderApplicationValidator");
153
139
  import OrderApplicationModel = require("./OrderApplicationModel");
@@ -20,8 +20,6 @@ class Order {
20
20
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/invoice",
21
21
  getOrderById: "/service/application/order/v1.0/orders/{order_id}",
22
22
  getOrders: "/service/application/order/v1.0/orders",
23
- getPosOrderById:
24
- "/service/application/order/v1.0/orders/pos-order/{order_id}",
25
23
  getShipmentBagReasons:
26
24
  "/service/application/order/v1.0/orders/shipments/{shipment_id}/bags/{bag_id}/reasons",
27
25
  getShipmentById:
@@ -59,9 +57,8 @@ class Order {
59
57
  *
60
58
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
61
59
  * @param {import("../ApplicationAPIClient").Options} - Options
62
- * @returns {Promise<OrderApplicationModel.CustomerDetailsResponseSchema>}
63
- * - Success response
64
- *
60
+ * @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
61
+ * Success response
65
62
  * @name getCustomerDetailsByShipmentId
66
63
  * @summary: Get shipment's customer
67
64
  * @description: Get customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
@@ -118,10 +115,10 @@ class Order {
118
115
 
119
116
  const {
120
117
  error: res_error,
121
- } = OrderApplicationModel.CustomerDetailsResponseSchema().validate(
122
- responseData,
123
- { abortEarly: false, allowUnknown: true }
124
- );
118
+ } = OrderApplicationModel.CustomerDetailsResponse().validate(responseData, {
119
+ abortEarly: false,
120
+ allowUnknown: true,
121
+ });
125
122
 
126
123
  if (res_error) {
127
124
  if (this._conf.options.strictResponseCheck === true) {
@@ -413,84 +410,6 @@ class Order {
413
410
  return response;
414
411
  }
415
412
 
416
- /**
417
- * @param {OrderApplicationValidator.GetPosOrderByIdParam} arg - Arg object.
418
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
419
- * @param {import("../ApplicationAPIClient").Options} - Options
420
- * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
421
- * @name getPosOrderById
422
- * @summary: Retrieves POS order details
423
- * @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
424
- */
425
- async getPosOrderById(
426
- { orderId, requestHeaders } = { requestHeaders: {} },
427
- { responseHeaders } = { responseHeaders: false }
428
- ) {
429
- const { error } = OrderApplicationValidator.getPosOrderById().validate(
430
- { orderId },
431
- { abortEarly: false, allowUnknown: true }
432
- );
433
- if (error) {
434
- return Promise.reject(new FDKClientValidationError(error));
435
- }
436
-
437
- // Showing warrnings if extra unknown parameters are found
438
- const {
439
- error: warrning,
440
- } = OrderApplicationValidator.getPosOrderById().validate(
441
- { orderId },
442
- { abortEarly: false, allowUnknown: false }
443
- );
444
- if (warrning) {
445
- Logger({
446
- level: "WARN",
447
- message: `Parameter Validation warrnings for application > Order > getPosOrderById \n ${warrning}`,
448
- });
449
- }
450
-
451
- const query_params = {};
452
-
453
- const xHeaders = {};
454
-
455
- const response = await ApplicationAPIClient.execute(
456
- this._conf,
457
- "get",
458
- constructUrl({
459
- url: this._urls["getPosOrderById"],
460
- params: { orderId },
461
- }),
462
- query_params,
463
- undefined,
464
- { ...xHeaders, ...requestHeaders },
465
- { responseHeaders }
466
- );
467
-
468
- let responseData = response;
469
- if (responseHeaders) {
470
- responseData = response[0];
471
- }
472
-
473
- const {
474
- error: res_error,
475
- } = OrderApplicationModel.OrderById().validate(responseData, {
476
- abortEarly: false,
477
- allowUnknown: true,
478
- });
479
-
480
- if (res_error) {
481
- if (this._conf.options.strictResponseCheck === true) {
482
- return Promise.reject(new FDKResponseValidationError(res_error));
483
- } else {
484
- Logger({
485
- level: "WARN",
486
- message: `Response Validation Warnings for application > Order > getPosOrderById \n ${res_error}`,
487
- });
488
- }
489
- }
490
-
491
- return response;
492
- }
493
-
494
413
  /**
495
414
  * @param {OrderApplicationValidator.GetShipmentBagReasonsParam} arg - Arg object.
496
415
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -732,9 +651,8 @@ class Order {
732
651
  * @param {OrderApplicationValidator.SendOtpToShipmentCustomerParam} arg - Arg object.
733
652
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
734
653
  * @param {import("../ApplicationAPIClient").Options} - Options
735
- * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponseSchema>}
736
- * - Success response
737
- *
654
+ * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
655
+ * Success response
738
656
  * @name sendOtpToShipmentCustomer
739
657
  * @summary: Send OTP to customer
740
658
  * @description: Send OTP to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
@@ -791,7 +709,7 @@ class Order {
791
709
 
792
710
  const {
793
711
  error: res_error,
794
- } = OrderApplicationModel.SendOtpToCustomerResponseSchema().validate(
712
+ } = OrderApplicationModel.SendOtpToCustomerResponse().validate(
795
713
  responseData,
796
714
  { abortEarly: false, allowUnknown: true }
797
715
  );
@@ -892,7 +810,7 @@ class Order {
892
810
  * @param {OrderApplicationValidator.UpdateShipmentStatusParam} arg - Arg object.
893
811
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
894
812
  * @param {import("../ApplicationAPIClient").Options} - Options
895
- * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponseSchema>}
813
+ * @returns {Promise<OrderApplicationModel.ShipmentApplicationStatusResponse>}
896
814
  * - Success response
897
815
  *
898
816
  * @name updateShipmentStatus
@@ -949,7 +867,7 @@ class Order {
949
867
 
950
868
  const {
951
869
  error: res_error,
952
- } = OrderApplicationModel.ShipmentApplicationStatusResponseSchema().validate(
870
+ } = OrderApplicationModel.ShipmentApplicationStatusResponse().validate(
953
871
  responseData,
954
872
  { abortEarly: false, allowUnknown: true }
955
873
  );
@@ -972,8 +890,7 @@ class Order {
972
890
  * @param {OrderApplicationValidator.VerifyOtpShipmentCustomerParam} arg - Arg object.
973
891
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
974
892
  * @param {import("../ApplicationAPIClient").Options} - Options
975
- * @returns {Promise<OrderApplicationModel.VerifyOtpResponseSchema>} -
976
- * Success response
893
+ * @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
977
894
  * @name verifyOtpShipmentCustomer
978
895
  * @summary: Verifies OTP
979
896
  * @description: Verify OTP sent by customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
@@ -1030,7 +947,7 @@ class Order {
1030
947
 
1031
948
  const {
1032
949
  error: res_error,
1033
- } = OrderApplicationModel.VerifyOtpResponseSchema().validate(responseData, {
950
+ } = OrderApplicationModel.VerifyOtpResponse().validate(responseData, {
1034
951
  abortEarly: false,
1035
952
  allowUnknown: true,
1036
953
  });