@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1

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 (262) hide show
  1. package/README.md +44 -7
  2. package/package.json +1 -2
  3. package/sdk/application/ApplicationAPIClient.d.ts +3 -3
  4. package/sdk/application/ApplicationAPIClient.js +6 -4
  5. package/sdk/application/ApplicationClient.d.ts +2 -3
  6. package/sdk/application/ApplicationClient.js +1 -45
  7. package/sdk/application/ApplicationConfig.d.ts +46 -6
  8. package/sdk/application/ApplicationConfig.js +15 -16
  9. package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
  10. package/sdk/application/Cart/CartApplicationClient.js +225 -134
  11. package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +6 -4
  13. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
  14. package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
  15. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
  16. package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
  18. package/sdk/application/Common/CommonApplicationClient.js +13 -11
  19. package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
  20. package/sdk/application/Common/CommonApplicationModel.js +2 -58
  21. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
  22. package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
  23. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
  24. package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
  27. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
  28. package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
  29. package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
  30. package/sdk/application/Content/ContentApplicationClient.js +159 -80
  31. package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
  32. package/sdk/application/Content/ContentApplicationModel.js +11 -763
  33. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
  34. package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
  35. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
  36. package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
  37. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
  38. package/sdk/application/Lead/LeadApplicationClient.js +50 -31
  39. package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
  40. package/sdk/application/Lead/LeadApplicationModel.js +21 -481
  41. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
  42. package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
  43. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
  44. package/sdk/application/Order/OrderApplicationClient.js +88 -56
  45. package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
  46. package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
  47. package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
  48. package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
  49. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
  50. package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
  51. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
  52. package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
  53. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
  54. package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
  55. package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
  56. package/sdk/application/Share/ShareApplicationClient.js +51 -31
  57. package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
  58. package/sdk/application/Share/ShareApplicationModel.js +0 -38
  59. package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
  60. package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
  61. package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
  62. package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
  63. package/sdk/application/User/UserApplicationClient.d.ts +74 -35
  64. package/sdk/application/User/UserApplicationClient.js +252 -161
  65. package/sdk/application/User/UserApplicationModel.d.ts +3 -401
  66. package/sdk/application/User/UserApplicationModel.js +2 -490
  67. package/sdk/common/AxiosHelper.js +1 -2
  68. package/sdk/common/FDKError.d.ts +3 -0
  69. package/sdk/common/FDKError.js +8 -0
  70. package/sdk/common/utils.d.ts +3 -0
  71. package/sdk/common/utils.js +29 -0
  72. package/sdk/partner/PartnerAPIClient.d.ts +5 -4
  73. package/sdk/partner/PartnerAPIClient.js +7 -4
  74. package/sdk/partner/PartnerClient.d.ts +2 -0
  75. package/sdk/partner/PartnerClient.js +3 -0
  76. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  77. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  78. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  79. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  80. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  81. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  82. package/sdk/partner/index.d.ts +3 -1
  83. package/sdk/partner/index.js +3 -1
  84. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
  86. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
  87. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
  88. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
  90. package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
  91. package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
  92. package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
  93. package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
  94. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
  95. package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
  96. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
  97. package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
  98. package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
  99. package/sdk/platform/Cart/CartPlatformModel.js +104 -54
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
  108. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
  109. package/sdk/platform/Common/CommonPlatformClient.js +13 -11
  110. package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
  111. package/sdk/platform/Common/CommonPlatformModel.js +23 -57
  112. package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
  113. package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
  114. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
  115. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
  116. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
  117. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
  118. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  119. package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
  120. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
  121. package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
  122. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
  123. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
  124. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
  125. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
  126. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
  127. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
  128. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
  129. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
  130. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
  131. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
  132. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  133. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
  134. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
  135. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
  136. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
  137. package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
  138. package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
  139. package/sdk/platform/Content/ContentPlatformModel.js +8 -231
  140. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
  141. package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
  142. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
  143. package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
  144. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
  145. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
  146. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
  148. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
  149. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
  150. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
  151. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
  152. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
  153. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
  154. package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
  155. package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
  156. package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
  157. package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
  158. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
  159. package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
  160. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
  161. package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
  162. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
  163. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
  164. package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
  165. package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
  166. package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
  167. package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
  168. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
  169. package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
  170. package/sdk/platform/OAuthClient.js +6 -2
  171. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
  172. package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
  173. package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
  174. package/sdk/platform/Order/OrderPlatformClient.js +738 -205
  175. package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
  176. package/sdk/platform/Order/OrderPlatformModel.js +225 -2
  177. package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
  178. package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
  179. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
  180. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
  181. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
  182. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
  183. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
  184. package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
  185. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
  186. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
  187. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
  188. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
  189. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
  190. package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
  191. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
  192. package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
  193. package/sdk/platform/PlatformAPIClient.d.ts +3 -3
  194. package/sdk/platform/PlatformAPIClient.js +2 -2
  195. package/sdk/platform/PlatformClient.d.ts +2 -2
  196. package/sdk/platform/PlatformClient.js +4 -4
  197. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
  198. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
  199. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
  200. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
  203. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
  204. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
  205. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
  206. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
  207. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
  208. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
  209. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
  210. package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
  211. package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
  212. package/sdk/platform/Share/SharePlatformModel.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
  214. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
  215. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
  216. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
  217. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  218. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  219. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
  220. package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
  221. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  222. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  223. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
  224. package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
  225. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
  226. package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
  227. package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
  228. package/sdk/platform/User/UserPlatformModel.js +3 -899
  229. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
  230. package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
  231. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
  232. package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
  233. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
  239. package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
  240. package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
  241. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  242. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  243. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  244. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  245. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  246. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  247. package/sdk/public/PublicAPIClient.d.ts +14 -1
  248. package/sdk/public/PublicAPIClient.js +7 -1
  249. package/sdk/public/PublicClient.d.ts +2 -0
  250. package/sdk/public/PublicClient.js +4 -0
  251. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
  252. package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
  253. package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
  254. package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
  255. package/sdk/public/index.d.ts +1 -0
  256. package/sdk/public/index.js +2 -0
  257. package/sdk/application/ApplicationModels.d.ts +0 -48
  258. package/sdk/application/ApplicationModels.js +0 -38
  259. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
  260. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
  261. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
  262. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
@@ -24,7 +24,7 @@ export = ServiceabilityPlatformModel;
24
24
  */
25
25
  /**
26
26
  * @typedef ApplicationSelfShipConfig
27
- * @property {SelfShipResponse} [self_ship]
27
+ * @property {Object} [self_ship]
28
28
  */
29
29
  /**
30
30
  * @typedef ApplicationSelfShipConfigResponse
@@ -573,6 +573,10 @@ export = ServiceabilityPlatformModel;
573
573
  * @property {number} [size]
574
574
  * @property {string} [type]
575
575
  */
576
+ /**
577
+ * @typedef ServiceabilityPayloadSchema
578
+ * @property {string} serviceability_type
579
+ */
576
580
  /**
577
581
  * @typedef TimmingResponse
578
582
  * @property {OpeningClosing} [closing]
@@ -652,7 +656,7 @@ export = ServiceabilityPlatformModel;
652
656
  declare class ServiceabilityPlatformModel {
653
657
  }
654
658
  declare namespace ServiceabilityPlatformModel {
655
- export { AddressResponse, ApplicationCompanyDpViewRequest, ApplicationCompanyDpViewResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, CommonError, CompanyDpAccountListResponse, CompanyDpAccountRequest, CompanyDpAccountResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, ContactNumberResponse, CreatedByResponse, CreateZoneData, DocumentsResponse, Dp, Dp1, DpAccountFailureResponse, DPApplicationRuleRequest, DPApplicationRuleResponse, DPCompanyRuleRequest, DPCompanyRuleResponse, DpIds, DpMultipleRuleSuccessResponse, DpRule, DpRuleRequest, DpRuleResponse, DpRuleSuccessResponse, DpRulesUpdateRequest, DpRuleUpdateSuccessResponse, DpSchemaInRuleListing, EinvoiceResponse, EntityRegionView_Error, EntityRegionView_Items, EntityRegionView_page, EntityRegionView_Request, EntityRegionView_Response, Error, ErrorResponse, EwayBillResponse, FailureResponse, GetSingleZoneDataViewResponse, GetStoresViewResponse, GetZoneDataViewChannels, GetZoneDataViewItems, GetZoneFromApplicationIdViewResponse, GetZoneFromPincodeViewRequest, GetZoneFromPincodeViewResponse, GstCredentialsResponse, IntegrationTypeResponse, ItemResponse, ListViewChannels, ListViewItems, ListViewProduct, ListViewResponse, ListViewSummary, LogisticsResponse, ManagerResponse, MobileNo, ModifiedByResponse, OpeningClosing, Page, PincodeBulkViewResponse, PincodeCodStatusListingPage, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, PincodeCodStatusListingSummary, PincodeMopBulkData, PincodeMopData, PincodeMOPresponse, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, PincodeMopUpdateResponse, ProductReturnConfigResponse, ReAssignStoreRequest, ReAssignStoreResponse, SelfShipResponse, ServiceabilityErrorResponse, ServiceabilityPageResponse, TimmingResponse, UpdateZoneData, WarningsResponse, Zone, ZoneDataItem, ZoneMappingType, ZoneProductTypes, ZoneRequest, ZoneResponse, ZoneSuccessResponse, ZoneUpdateRequest };
659
+ export { AddressResponse, ApplicationCompanyDpViewRequest, ApplicationCompanyDpViewResponse, ApplicationSelfShipConfig, ApplicationSelfShipConfigResponse, ApplicationServiceabilityConfig, ApplicationServiceabilityConfigResponse, CommonError, CompanyDpAccountListResponse, CompanyDpAccountRequest, CompanyDpAccountResponse, CompanyStoreView_PageItems, CompanyStoreView_Response, ContactNumberResponse, CreatedByResponse, CreateZoneData, DocumentsResponse, Dp, Dp1, DpAccountFailureResponse, DPApplicationRuleRequest, DPApplicationRuleResponse, DPCompanyRuleRequest, DPCompanyRuleResponse, DpIds, DpMultipleRuleSuccessResponse, DpRule, DpRuleRequest, DpRuleResponse, DpRuleSuccessResponse, DpRulesUpdateRequest, DpRuleUpdateSuccessResponse, DpSchemaInRuleListing, EinvoiceResponse, EntityRegionView_Error, EntityRegionView_Items, EntityRegionView_page, EntityRegionView_Request, EntityRegionView_Response, Error, ErrorResponse, EwayBillResponse, FailureResponse, GetSingleZoneDataViewResponse, GetStoresViewResponse, GetZoneDataViewChannels, GetZoneDataViewItems, GetZoneFromApplicationIdViewResponse, GetZoneFromPincodeViewRequest, GetZoneFromPincodeViewResponse, GstCredentialsResponse, IntegrationTypeResponse, ItemResponse, ListViewChannels, ListViewItems, ListViewProduct, ListViewResponse, ListViewSummary, LogisticsResponse, ManagerResponse, MobileNo, ModifiedByResponse, OpeningClosing, Page, PincodeBulkViewResponse, PincodeCodStatusListingPage, PincodeCodStatusListingRequest, PincodeCodStatusListingResponse, PincodeCodStatusListingSummary, PincodeMopBulkData, PincodeMopData, PincodeMOPresponse, PincodeMopUpdateAuditHistoryPaging, PincodeMopUpdateAuditHistoryRequest, PincodeMopUpdateAuditHistoryResponse, PincodeMopUpdateAuditHistoryResponseData, PincodeMopUpdateResponse, ProductReturnConfigResponse, ReAssignStoreRequest, ReAssignStoreResponse, SelfShipResponse, ServiceabilityErrorResponse, ServiceabilityPageResponse, ServiceabilityPayloadSchema, TimmingResponse, UpdateZoneData, WarningsResponse, Zone, ZoneDataItem, ZoneMappingType, ZoneProductTypes, ZoneRequest, ZoneResponse, ZoneSuccessResponse, ZoneUpdateRequest };
656
660
  }
657
661
  /** @returns {AddressResponse} */
658
662
  declare function AddressResponse(): AddressResponse;
@@ -683,7 +687,7 @@ type ApplicationCompanyDpViewResponse = {
683
687
  /** @returns {ApplicationSelfShipConfig} */
684
688
  declare function ApplicationSelfShipConfig(): ApplicationSelfShipConfig;
685
689
  type ApplicationSelfShipConfig = {
686
- self_ship?: SelfShipResponse;
690
+ self_ship?: any;
687
691
  };
688
692
  /** @returns {ApplicationSelfShipConfigResponse} */
689
693
  declare function ApplicationSelfShipConfigResponse(): ApplicationSelfShipConfigResponse;
@@ -1311,6 +1315,11 @@ type ServiceabilityPageResponse = {
1311
1315
  size?: number;
1312
1316
  type?: string;
1313
1317
  };
1318
+ /** @returns {ServiceabilityPayloadSchema} */
1319
+ declare function ServiceabilityPayloadSchema(): ServiceabilityPayloadSchema;
1320
+ type ServiceabilityPayloadSchema = {
1321
+ serviceability_type: string;
1322
+ };
1314
1323
  /** @returns {TimmingResponse} */
1315
1324
  declare function TimmingResponse(): TimmingResponse;
1316
1325
  type TimmingResponse = {
@@ -28,7 +28,7 @@ const Joi = require("joi");
28
28
 
29
29
  /**
30
30
  * @typedef ApplicationSelfShipConfig
31
- * @property {SelfShipResponse} [self_ship]
31
+ * @property {Object} [self_ship]
32
32
  */
33
33
 
34
34
  /**
@@ -657,6 +657,11 @@ const Joi = require("joi");
657
657
  * @property {string} [type]
658
658
  */
659
659
 
660
+ /**
661
+ * @typedef ServiceabilityPayloadSchema
662
+ * @property {string} serviceability_type
663
+ */
664
+
660
665
  /**
661
666
  * @typedef TimmingResponse
662
667
  * @property {OpeningClosing} [closing]
@@ -780,7 +785,7 @@ class ServiceabilityPlatformModel {
780
785
  /** @returns {ApplicationSelfShipConfig} */
781
786
  static ApplicationSelfShipConfig() {
782
787
  return Joi.object({
783
- self_ship: ServiceabilityPlatformModel.SelfShipResponse(),
788
+ self_ship: Joi.any().allow(null),
784
789
  });
785
790
  }
786
791
 
@@ -1612,6 +1617,13 @@ class ServiceabilityPlatformModel {
1612
1617
  });
1613
1618
  }
1614
1619
 
1620
+ /** @returns {ServiceabilityPayloadSchema} */
1621
+ static ServiceabilityPayloadSchema() {
1622
+ return Joi.object({
1623
+ serviceability_type: Joi.string().allow("").required(),
1624
+ });
1625
+ }
1626
+
1615
1627
  /** @returns {TimmingResponse} */
1616
1628
  static TimmingResponse() {
1617
1629
  return Joi.object({
@@ -5,74 +5,58 @@ declare class Share {
5
5
  applicationId: any;
6
6
  /**
7
7
  * @param {SharePlatformApplicationValidator.CreateShortLinkParam} arg - Arg object
8
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
9
  * @param {import("../PlatformAPIClient").Options} - Options
9
10
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
10
11
  * @name createShortLink
11
12
  * @summary: Create short link
12
13
  * @description: Create short link - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/createShortLink/).
13
14
  */
14
- createShortLink({ body }?: SharePlatformApplicationValidator.CreateShortLinkParam, { headers }?: import("../PlatformAPIClient").Options): Promise<SharePlatformModel.ShortLinkRes>;
15
+ createShortLink({ body, requestHeaders }?: SharePlatformApplicationValidator.CreateShortLinkParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
15
16
  /**
16
17
  * @param {SharePlatformApplicationValidator.GetShortLinkByHashParam} arg - Arg object
18
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
17
19
  * @param {import("../PlatformAPIClient").Options} - Options
18
20
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
19
21
  * @name getShortLinkByHash
20
22
  * @summary: Get short link by hash
21
23
  * @description: Get short link by hash - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkByHash/).
22
24
  */
23
- getShortLinkByHash({ hash }?: SharePlatformApplicationValidator.GetShortLinkByHashParam, { headers }?: import("../PlatformAPIClient").Options): Promise<SharePlatformModel.ShortLinkRes>;
25
+ getShortLinkByHash({ hash, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkByHashParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
24
26
  /**
25
27
  * @param {SharePlatformApplicationValidator.GetShortLinkClickStatsParam} arg
26
28
  * - Arg object
27
29
  *
30
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
28
31
  * @param {import("../PlatformAPIClient").Options} - Options
29
32
  * @returns {Promise<SharePlatformModel.ClickStatsResponse>} - Success response
30
33
  * @name getShortLinkClickStats
31
34
  * @summary: Get click statistics for a short link
32
35
  * @description: Retrieve click statistics for a given short link ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
33
36
  */
34
- getShortLinkClickStats({ surlId }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { headers }?: import("../PlatformAPIClient").Options): Promise<SharePlatformModel.ClickStatsResponse>;
37
+ getShortLinkClickStats({ surlId, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinkClickStatsParam, { responseHeaders }?: object): Promise<SharePlatformModel.ClickStatsResponse>;
35
38
  /**
36
39
  * @param {SharePlatformApplicationValidator.GetShortLinksParam} arg - Arg object
40
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
37
41
  * @param {import("../PlatformAPIClient").Options} - Options
38
42
  * @returns {Promise<SharePlatformModel.ShortLinkList>} - Success response
39
43
  * @name getShortLinks
40
44
  * @summary: Get short links
41
45
  * @description: Get short links - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinks/).
42
46
  */
43
- getShortLinks({ pageNo, pageSize, createdBy, active, q }?: SharePlatformApplicationValidator.GetShortLinksParam, { headers }?: import("../PlatformAPIClient").Options): Promise<SharePlatformModel.ShortLinkList>;
44
- /**
45
- * @param {Object} arg - Arg object.
46
- * @param {string} arg.companyId - Company Id
47
- * @param {string} arg.applicationId - Application Id
48
- * @param {number} [arg.pageSize] - Current page size
49
- * @param {string} [arg.createdBy] - Short link creator
50
- * @param {string} [arg.active] - Short link active status
51
- * @param {string} [arg.q] - Search text for original and short url
52
- * @returns {Paginator<SharePlatformModel.ShortLinkList>}
53
- * @summary: Get short links
54
- * @description: Get short links
55
- */
56
- getShortLinksPaginator({ companyId, applicationId, pageSize, createdBy, active, q, }?: {
57
- companyId: string;
58
- applicationId: string;
59
- pageSize?: number;
60
- createdBy?: string;
61
- active?: string;
62
- q?: string;
63
- }): Paginator<SharePlatformModel.ShortLinkList>;
47
+ getShortLinks({ pageNo, pageSize, createdBy, active, q, requestHeaders }?: SharePlatformApplicationValidator.GetShortLinksParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkList>;
64
48
  /**
65
49
  * @param {SharePlatformApplicationValidator.UpdateShortLinkByIdParam} arg
66
50
  * - Arg object
67
51
  *
52
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
68
53
  * @param {import("../PlatformAPIClient").Options} - Options
69
54
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
70
55
  * @name updateShortLinkById
71
56
  * @summary: Update short link by id
72
57
  * @description: Update short link by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/updateShortLinkById/).
73
58
  */
74
- updateShortLinkById({ id, body }?: SharePlatformApplicationValidator.UpdateShortLinkByIdParam, { headers }?: import("../PlatformAPIClient").Options): Promise<SharePlatformModel.ShortLinkRes>;
59
+ updateShortLinkById({ id, body, requestHeaders }?: SharePlatformApplicationValidator.UpdateShortLinkByIdParam, { responseHeaders }?: object): Promise<SharePlatformModel.ShortLinkRes>;
75
60
  }
76
61
  import SharePlatformApplicationValidator = require("./SharePlatformApplicationValidator");
77
62
  import SharePlatformModel = require("./SharePlatformModel");
78
- import Paginator = require("../../common/Paginator");
@@ -14,13 +14,17 @@ class Share {
14
14
 
15
15
  /**
16
16
  * @param {SharePlatformApplicationValidator.CreateShortLinkParam} arg - Arg object
17
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
17
18
  * @param {import("../PlatformAPIClient").Options} - Options
18
19
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
19
20
  * @name createShortLink
20
21
  * @summary: Create short link
21
22
  * @description: Create short link - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/createShortLink/).
22
23
  */
23
- async createShortLink({ body } = {}, { headers } = { headers: false }) {
24
+ async createShortLink(
25
+ { body, requestHeaders } = { requestHeaders: {} },
26
+ { responseHeaders } = { responseHeaders: false }
27
+ ) {
24
28
  const {
25
29
  error,
26
30
  } = SharePlatformApplicationValidator.createShortLink().validate(
@@ -57,12 +61,12 @@ class Share {
57
61
  `/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/`,
58
62
  query_params,
59
63
  body,
60
- undefined,
61
- { headers }
64
+ requestHeaders,
65
+ { responseHeaders }
62
66
  );
63
67
 
64
68
  let responseData = response;
65
- if (headers) {
69
+ if (responseHeaders) {
66
70
  responseData = response[0];
67
71
  }
68
72
 
@@ -85,13 +89,17 @@ class Share {
85
89
 
86
90
  /**
87
91
  * @param {SharePlatformApplicationValidator.GetShortLinkByHashParam} arg - Arg object
92
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
88
93
  * @param {import("../PlatformAPIClient").Options} - Options
89
94
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
90
95
  * @name getShortLinkByHash
91
96
  * @summary: Get short link by hash
92
97
  * @description: Get short link by hash - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkByHash/).
93
98
  */
94
- async getShortLinkByHash({ hash } = {}, { headers } = { headers: false }) {
99
+ async getShortLinkByHash(
100
+ { hash, requestHeaders } = { requestHeaders: {} },
101
+ { responseHeaders } = { responseHeaders: false }
102
+ ) {
95
103
  const {
96
104
  error,
97
105
  } = SharePlatformApplicationValidator.getShortLinkByHash().validate(
@@ -128,12 +136,12 @@ class Share {
128
136
  `/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${hash}/`,
129
137
  query_params,
130
138
  undefined,
131
- undefined,
132
- { headers }
139
+ requestHeaders,
140
+ { responseHeaders }
133
141
  );
134
142
 
135
143
  let responseData = response;
136
- if (headers) {
144
+ if (responseHeaders) {
137
145
  responseData = response[0];
138
146
  }
139
147
 
@@ -158,6 +166,7 @@ class Share {
158
166
  * @param {SharePlatformApplicationValidator.GetShortLinkClickStatsParam} arg
159
167
  * - Arg object
160
168
  *
169
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
161
170
  * @param {import("../PlatformAPIClient").Options} - Options
162
171
  * @returns {Promise<SharePlatformModel.ClickStatsResponse>} - Success response
163
172
  * @name getShortLinkClickStats
@@ -165,8 +174,8 @@ class Share {
165
174
  * @description: Retrieve click statistics for a given short link ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinkClickStats/).
166
175
  */
167
176
  async getShortLinkClickStats(
168
- { surlId } = {},
169
- { headers } = { headers: false }
177
+ { surlId, requestHeaders } = { requestHeaders: {} },
178
+ { responseHeaders } = { responseHeaders: false }
170
179
  ) {
171
180
  const {
172
181
  error,
@@ -201,12 +210,12 @@ class Share {
201
210
  `/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/click-stats`,
202
211
  query_params,
203
212
  undefined,
204
- undefined,
205
- { headers }
213
+ requestHeaders,
214
+ { responseHeaders }
206
215
  );
207
216
 
208
217
  let responseData = response;
209
- if (headers) {
218
+ if (responseHeaders) {
210
219
  responseData = response[0];
211
220
  }
212
221
 
@@ -229,6 +238,7 @@ class Share {
229
238
 
230
239
  /**
231
240
  * @param {SharePlatformApplicationValidator.GetShortLinksParam} arg - Arg object
241
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
232
242
  * @param {import("../PlatformAPIClient").Options} - Options
233
243
  * @returns {Promise<SharePlatformModel.ShortLinkList>} - Success response
234
244
  * @name getShortLinks
@@ -236,8 +246,10 @@ class Share {
236
246
  * @description: Get short links - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/getShortLinks/).
237
247
  */
238
248
  async getShortLinks(
239
- { pageNo, pageSize, createdBy, active, q } = {},
240
- { headers } = { headers: false }
249
+ { pageNo, pageSize, createdBy, active, q, requestHeaders } = {
250
+ requestHeaders: {},
251
+ },
252
+ { responseHeaders } = { responseHeaders: false }
241
253
  ) {
242
254
  const {
243
255
  error,
@@ -288,12 +300,12 @@ class Share {
288
300
  `/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/`,
289
301
  query_params,
290
302
  undefined,
291
- undefined,
292
- { headers }
303
+ requestHeaders,
304
+ { responseHeaders }
293
305
  );
294
306
 
295
307
  let responseData = response;
296
- if (headers) {
308
+ if (responseHeaders) {
297
309
  responseData = response[0];
298
310
  }
299
311
 
@@ -314,54 +326,11 @@ class Share {
314
326
  return response;
315
327
  }
316
328
 
317
- /**
318
- * @param {Object} arg - Arg object.
319
- * @param {string} arg.companyId - Company Id
320
- * @param {string} arg.applicationId - Application Id
321
- * @param {number} [arg.pageSize] - Current page size
322
- * @param {string} [arg.createdBy] - Short link creator
323
- * @param {string} [arg.active] - Short link active status
324
- * @param {string} [arg.q] - Search text for original and short url
325
- * @returns {Paginator<SharePlatformModel.ShortLinkList>}
326
- * @summary: Get short links
327
- * @description: Get short links
328
- */
329
- getShortLinksPaginator({
330
- companyId,
331
- applicationId,
332
- pageSize,
333
- createdBy,
334
- active,
335
- q,
336
- } = {}) {
337
- const paginator = new Paginator();
338
- const callback = async () => {
339
- const pageId = paginator.nextId;
340
- const pageNo = paginator.pageNo;
341
- const pageType = "number";
342
- const data = await this.getShortLinks({
343
- companyId: companyId,
344
- applicationId: applicationId,
345
- pageNo: pageNo,
346
- pageSize: pageSize,
347
- createdBy: createdBy,
348
- active: active,
349
- q: q,
350
- });
351
- paginator.setPaginator({
352
- hasNext: data.page.has_next ? true : false,
353
- nextId: data.page.next_id,
354
- });
355
- return data;
356
- };
357
- paginator.setCallback(callback.bind(this));
358
- return paginator;
359
- }
360
-
361
329
  /**
362
330
  * @param {SharePlatformApplicationValidator.UpdateShortLinkByIdParam} arg
363
331
  * - Arg object
364
332
  *
333
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
365
334
  * @param {import("../PlatformAPIClient").Options} - Options
366
335
  * @returns {Promise<SharePlatformModel.ShortLinkRes>} - Success response
367
336
  * @name updateShortLinkById
@@ -369,8 +338,8 @@ class Share {
369
338
  * @description: Update short link by id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/share/updateShortLinkById/).
370
339
  */
371
340
  async updateShortLinkById(
372
- { id, body } = {},
373
- { headers } = { headers: false }
341
+ { id, body, requestHeaders } = { requestHeaders: {} },
342
+ { responseHeaders } = { responseHeaders: false }
374
343
  ) {
375
344
  const {
376
345
  error,
@@ -410,12 +379,12 @@ class Share {
410
379
  `/service/platform/share/v1.0/company/${this.config.companyId}/application/${this.applicationId}/links/short-link/${id}/`,
411
380
  query_params,
412
381
  body,
413
- undefined,
414
- { headers }
382
+ requestHeaders,
383
+ { responseHeaders }
415
384
  );
416
385
 
417
386
  let responseData = response;
418
- if (headers) {
387
+ if (responseHeaders) {
419
388
  responseData = response[0];
420
389
  }
421
390
 
@@ -10,8 +10,8 @@ export = SharePlatformModel;
10
10
  */
11
11
  /**
12
12
  * @typedef ClickStatsItem
13
- * @property {string} [display] - The display name of the click statistic.
14
- * @property {number} [total] - The total number of clicks for the statistic.
13
+ * @property {string} display - The display name of the click statistic.
14
+ * @property {number} total - The total number of clicks for the statistic.
15
15
  */
16
16
  /**
17
17
  * @typedef ClickStatsResponse
@@ -126,11 +126,11 @@ type ClickStatsItem = {
126
126
  /**
127
127
  * - The display name of the click statistic.
128
128
  */
129
- display?: string;
129
+ display: string;
130
130
  /**
131
131
  * - The total number of clicks for the statistic.
132
132
  */
133
- total?: number;
133
+ total: number;
134
134
  };
135
135
  /** @returns {ClickStatsResponse} */
136
136
  declare function ClickStatsResponse(): ClickStatsResponse;
@@ -13,8 +13,8 @@ const Joi = require("joi");
13
13
 
14
14
  /**
15
15
  * @typedef ClickStatsItem
16
- * @property {string} [display] - The display name of the click statistic.
17
- * @property {number} [total] - The total number of clicks for the statistic.
16
+ * @property {string} display - The display name of the click statistic.
17
+ * @property {number} total - The total number of clicks for the statistic.
18
18
  */
19
19
 
20
20
  /**
@@ -138,8 +138,8 @@ class SharePlatformModel {
138
138
  /** @returns {ClickStatsItem} */
139
139
  static ClickStatsItem() {
140
140
  return Joi.object({
141
- display: Joi.string().allow(""),
142
- total: Joi.number(),
141
+ display: Joi.string().allow("").required(),
142
+ total: Joi.number().required(),
143
143
  });
144
144
  }
145
145