@gofynd/fdk-client-javascript 1.2.0 → 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 (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 +4 -4
  12. package/sdk/application/Cart/CartApplicationModel.js +4 -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 +96 -9
  234. package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
  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
@@ -1,20 +1,56 @@
1
1
  export = WebhookPlatformValidator;
2
+ /**
3
+ * @typedef CancelJobByNameParam
4
+ * @property {string} filename - Filename of the specific report export to cancel.
5
+ */
6
+ /**
7
+ * @typedef DownloadDeliveryReportParam
8
+ * @property {WebhookPlatformModel.EventProcessRequest} body
9
+ */
2
10
  /** @typedef FetchAllEventConfigurationsParam */
11
+ /**
12
+ * @typedef GetDeliveryReportsParam
13
+ * @property {WebhookPlatformModel.EventProcessRequest} body
14
+ */
15
+ /**
16
+ * @typedef GetEventCountsParam
17
+ * @property {WebhookPlatformModel.EventProcessRequest} body
18
+ */
19
+ /**
20
+ * @typedef GetHistoricalReportsParam
21
+ * @property {WebhookPlatformModel.HistoryPayload} body
22
+ */
23
+ /** @typedef GetManualRetryStatusParam */
24
+ /**
25
+ * @typedef GetReportFiltersParam
26
+ * @property {WebhookPlatformModel.ReportFiltersPayload} body
27
+ */
3
28
  /**
4
29
  * @typedef GetSubscriberByIdParam
5
- * @property {number} subscriberId - Subscriber ID
30
+ * @property {number} subscriberId - The ID of the company for which manual
31
+ * retry is to be initiated.
6
32
  */
7
33
  /**
8
34
  * @typedef GetSubscribersByCompanyParam
9
35
  * @property {number} [pageNo] - Page Number
10
36
  * @property {number} [pageSize] - Page Size
11
- * @property {string} [extensionId] - Extension ID
37
+ * @property {number} [extensionId] - Extension_id
12
38
  */
13
39
  /**
14
40
  * @typedef GetSubscribersByExtensionIdParam
15
41
  * @property {number} [pageNo] - Page Number
16
42
  * @property {number} [pageSize] - Page Size
17
- * @property {string} extensionId - Extension ID
43
+ * @property {number} extensionId - The ID of the company for which manual retry
44
+ * is to be initiated.
45
+ */
46
+ /** @typedef ManualRetryCancelParam */
47
+ /**
48
+ * @typedef ManualRetryOfFailedEventParam
49
+ * @property {WebhookPlatformModel.EventProcessRequest} body
50
+ */
51
+ /**
52
+ * @typedef PingWebhookParam
53
+ * @property {WebhookPlatformModel.PingWebhook} body
18
54
  */
19
55
  /**
20
56
  * @typedef RegisterSubscriberToEventParam
@@ -25,25 +61,67 @@ export = WebhookPlatformValidator;
25
61
  * @property {WebhookPlatformModel.SubscriberConfig} body
26
62
  */
27
63
  declare class WebhookPlatformValidator {
64
+ /** @returns {CancelJobByNameParam} */
65
+ static cancelJobByName(): CancelJobByNameParam;
66
+ /** @returns {DownloadDeliveryReportParam} */
67
+ static downloadDeliveryReport(): DownloadDeliveryReportParam;
28
68
  /** @returns {FetchAllEventConfigurationsParam} */
29
69
  static fetchAllEventConfigurations(): any;
70
+ /** @returns {GetDeliveryReportsParam} */
71
+ static getDeliveryReports(): GetDeliveryReportsParam;
72
+ /** @returns {GetEventCountsParam} */
73
+ static getEventCounts(): GetEventCountsParam;
74
+ /** @returns {GetHistoricalReportsParam} */
75
+ static getHistoricalReports(): GetHistoricalReportsParam;
76
+ /** @returns {GetManualRetryStatusParam} */
77
+ static getManualRetryStatus(): any;
78
+ /** @returns {GetReportFiltersParam} */
79
+ static getReportFilters(): GetReportFiltersParam;
30
80
  /** @returns {GetSubscriberByIdParam} */
31
81
  static getSubscriberById(): GetSubscriberByIdParam;
32
82
  /** @returns {GetSubscribersByCompanyParam} */
33
83
  static getSubscribersByCompany(): GetSubscribersByCompanyParam;
34
84
  /** @returns {GetSubscribersByExtensionIdParam} */
35
85
  static getSubscribersByExtensionId(): GetSubscribersByExtensionIdParam;
86
+ /** @returns {ManualRetryCancelParam} */
87
+ static manualRetryCancel(): any;
88
+ /** @returns {ManualRetryOfFailedEventParam} */
89
+ static manualRetryOfFailedEvent(): ManualRetryOfFailedEventParam;
90
+ /** @returns {PingWebhookParam} */
91
+ static pingWebhook(): PingWebhookParam;
36
92
  /** @returns {RegisterSubscriberToEventParam} */
37
93
  static registerSubscriberToEvent(): RegisterSubscriberToEventParam;
38
94
  /** @returns {UpdateSubscriberConfigParam} */
39
95
  static updateSubscriberConfig(): UpdateSubscriberConfigParam;
40
96
  }
41
97
  declare namespace WebhookPlatformValidator {
42
- export { FetchAllEventConfigurationsParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam };
98
+ export { CancelJobByNameParam, DownloadDeliveryReportParam, FetchAllEventConfigurationsParam, GetDeliveryReportsParam, GetEventCountsParam, GetHistoricalReportsParam, GetManualRetryStatusParam, GetReportFiltersParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, ManualRetryCancelParam, ManualRetryOfFailedEventParam, PingWebhookParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam };
43
99
  }
100
+ type CancelJobByNameParam = {
101
+ /**
102
+ * - Filename of the specific report export to cancel.
103
+ */
104
+ filename: string;
105
+ };
106
+ type DownloadDeliveryReportParam = {
107
+ body: WebhookPlatformModel.EventProcessRequest;
108
+ };
109
+ type GetDeliveryReportsParam = {
110
+ body: WebhookPlatformModel.EventProcessRequest;
111
+ };
112
+ type GetEventCountsParam = {
113
+ body: WebhookPlatformModel.EventProcessRequest;
114
+ };
115
+ type GetHistoricalReportsParam = {
116
+ body: WebhookPlatformModel.HistoryPayload;
117
+ };
118
+ type GetReportFiltersParam = {
119
+ body: WebhookPlatformModel.ReportFiltersPayload;
120
+ };
44
121
  type GetSubscriberByIdParam = {
45
122
  /**
46
- * - Subscriber ID
123
+ * - The ID of the company for which manual
124
+ * retry is to be initiated.
47
125
  */
48
126
  subscriberId: number;
49
127
  };
@@ -57,9 +135,9 @@ type GetSubscribersByCompanyParam = {
57
135
  */
58
136
  pageSize?: number;
59
137
  /**
60
- * - Extension ID
138
+ * - Extension_id
61
139
  */
62
- extensionId?: string;
140
+ extensionId?: number;
63
141
  };
64
142
  type GetSubscribersByExtensionIdParam = {
65
143
  /**
@@ -71,9 +149,16 @@ type GetSubscribersByExtensionIdParam = {
71
149
  */
72
150
  pageSize?: number;
73
151
  /**
74
- * - Extension ID
152
+ * - The ID of the company for which manual retry
153
+ * is to be initiated.
75
154
  */
76
- extensionId: string;
155
+ extensionId: number;
156
+ };
157
+ type ManualRetryOfFailedEventParam = {
158
+ body: WebhookPlatformModel.EventProcessRequest;
159
+ };
160
+ type PingWebhookParam = {
161
+ body: WebhookPlatformModel.PingWebhook;
77
162
  };
78
163
  type RegisterSubscriberToEventParam = {
79
164
  body: WebhookPlatformModel.SubscriberConfig;
@@ -82,4 +167,6 @@ type UpdateSubscriberConfigParam = {
82
167
  body: WebhookPlatformModel.SubscriberConfig;
83
168
  };
84
169
  type FetchAllEventConfigurationsParam = any;
170
+ type GetManualRetryStatusParam = any;
171
+ type ManualRetryCancelParam = any;
85
172
  import WebhookPlatformModel = require("./WebhookPlatformModel");
@@ -2,25 +2,71 @@ const Joi = require("joi");
2
2
 
3
3
  const WebhookPlatformModel = require("./WebhookPlatformModel");
4
4
 
5
+ /**
6
+ * @typedef CancelJobByNameParam
7
+ * @property {string} filename - Filename of the specific report export to cancel.
8
+ */
9
+
10
+ /**
11
+ * @typedef DownloadDeliveryReportParam
12
+ * @property {WebhookPlatformModel.EventProcessRequest} body
13
+ */
14
+
5
15
  /** @typedef FetchAllEventConfigurationsParam */
6
16
 
17
+ /**
18
+ * @typedef GetDeliveryReportsParam
19
+ * @property {WebhookPlatformModel.EventProcessRequest} body
20
+ */
21
+
22
+ /**
23
+ * @typedef GetEventCountsParam
24
+ * @property {WebhookPlatformModel.EventProcessRequest} body
25
+ */
26
+
27
+ /**
28
+ * @typedef GetHistoricalReportsParam
29
+ * @property {WebhookPlatformModel.HistoryPayload} body
30
+ */
31
+
32
+ /** @typedef GetManualRetryStatusParam */
33
+
34
+ /**
35
+ * @typedef GetReportFiltersParam
36
+ * @property {WebhookPlatformModel.ReportFiltersPayload} body
37
+ */
38
+
7
39
  /**
8
40
  * @typedef GetSubscriberByIdParam
9
- * @property {number} subscriberId - Subscriber ID
41
+ * @property {number} subscriberId - The ID of the company for which manual
42
+ * retry is to be initiated.
10
43
  */
11
44
 
12
45
  /**
13
46
  * @typedef GetSubscribersByCompanyParam
14
47
  * @property {number} [pageNo] - Page Number
15
48
  * @property {number} [pageSize] - Page Size
16
- * @property {string} [extensionId] - Extension ID
49
+ * @property {number} [extensionId] - Extension_id
17
50
  */
18
51
 
19
52
  /**
20
53
  * @typedef GetSubscribersByExtensionIdParam
21
54
  * @property {number} [pageNo] - Page Number
22
55
  * @property {number} [pageSize] - Page Size
23
- * @property {string} extensionId - Extension ID
56
+ * @property {number} extensionId - The ID of the company for which manual retry
57
+ * is to be initiated.
58
+ */
59
+
60
+ /** @typedef ManualRetryCancelParam */
61
+
62
+ /**
63
+ * @typedef ManualRetryOfFailedEventParam
64
+ * @property {WebhookPlatformModel.EventProcessRequest} body
65
+ */
66
+
67
+ /**
68
+ * @typedef PingWebhookParam
69
+ * @property {WebhookPlatformModel.PingWebhook} body
24
70
  */
25
71
 
26
72
  /**
@@ -34,11 +80,58 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
34
80
  */
35
81
 
36
82
  class WebhookPlatformValidator {
83
+ /** @returns {CancelJobByNameParam} */
84
+ static cancelJobByName() {
85
+ return Joi.object({
86
+ filename: Joi.string().allow("").required(),
87
+ }).required();
88
+ }
89
+
90
+ /** @returns {DownloadDeliveryReportParam} */
91
+ static downloadDeliveryReport() {
92
+ return Joi.object({
93
+ body: WebhookPlatformModel.EventProcessRequest().required(),
94
+ }).required();
95
+ }
96
+
37
97
  /** @returns {FetchAllEventConfigurationsParam} */
38
98
  static fetchAllEventConfigurations() {
39
99
  return Joi.object({}).required();
40
100
  }
41
101
 
102
+ /** @returns {GetDeliveryReportsParam} */
103
+ static getDeliveryReports() {
104
+ return Joi.object({
105
+ body: WebhookPlatformModel.EventProcessRequest().required(),
106
+ }).required();
107
+ }
108
+
109
+ /** @returns {GetEventCountsParam} */
110
+ static getEventCounts() {
111
+ return Joi.object({
112
+ body: WebhookPlatformModel.EventProcessRequest().required(),
113
+ }).required();
114
+ }
115
+
116
+ /** @returns {GetHistoricalReportsParam} */
117
+ static getHistoricalReports() {
118
+ return Joi.object({
119
+ body: WebhookPlatformModel.HistoryPayload().required(),
120
+ }).required();
121
+ }
122
+
123
+ /** @returns {GetManualRetryStatusParam} */
124
+ static getManualRetryStatus() {
125
+ return Joi.object({}).required();
126
+ }
127
+
128
+ /** @returns {GetReportFiltersParam} */
129
+ static getReportFilters() {
130
+ return Joi.object({
131
+ body: WebhookPlatformModel.ReportFiltersPayload().required(),
132
+ }).required();
133
+ }
134
+
42
135
  /** @returns {GetSubscriberByIdParam} */
43
136
  static getSubscriberById() {
44
137
  return Joi.object({
@@ -51,7 +144,7 @@ class WebhookPlatformValidator {
51
144
  return Joi.object({
52
145
  pageNo: Joi.number(),
53
146
  pageSize: Joi.number(),
54
- extensionId: Joi.string().allow(""),
147
+ extensionId: Joi.number(),
55
148
  }).required();
56
149
  }
57
150
 
@@ -60,7 +153,26 @@ class WebhookPlatformValidator {
60
153
  return Joi.object({
61
154
  pageNo: Joi.number(),
62
155
  pageSize: Joi.number(),
63
- extensionId: Joi.string().allow("").required(),
156
+ extensionId: Joi.number().required(),
157
+ }).required();
158
+ }
159
+
160
+ /** @returns {ManualRetryCancelParam} */
161
+ static manualRetryCancel() {
162
+ return Joi.object({}).required();
163
+ }
164
+
165
+ /** @returns {ManualRetryOfFailedEventParam} */
166
+ static manualRetryOfFailedEvent() {
167
+ return Joi.object({
168
+ body: WebhookPlatformModel.EventProcessRequest().required(),
169
+ }).required();
170
+ }
171
+
172
+ /** @returns {PingWebhookParam} */
173
+ static pingWebhook() {
174
+ return Joi.object({
175
+ body: WebhookPlatformModel.PingWebhook().required(),
64
176
  }).required();
65
177
  }
66
178
 
@@ -10,22 +10,24 @@ declare class Configuration {
10
10
  updateUrls(urls: any): void;
11
11
  /**
12
12
  * @param {ConfigurationPublicValidator.GetLocationsParam} arg - Arg object.
13
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
14
  * @param {import("../PublicAPIClient").Options} - Options
14
15
  * @returns {Promise<ConfigurationPublicModel.Locations>} - Success response
15
16
  * @name getLocations
16
17
  * @summary: Get countries, states, cities
17
- * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
18
+ * @description: Get Location configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
18
19
  */
19
- getLocations({ locationType, id }?: ConfigurationPublicValidator.GetLocationsParam, { headers }?: any): Promise<ConfigurationPublicModel.Locations>;
20
+ getLocations({ locationType, id, requestHeaders }?: ConfigurationPublicValidator.GetLocationsParam, { responseHeaders }?: object): Promise<ConfigurationPublicModel.Locations>;
20
21
  /**
21
22
  * @param {ConfigurationPublicValidator.SearchApplicationParam} arg - Arg object.
23
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
22
24
  * @param {import("../PublicAPIClient").Options} - Options
23
25
  * @returns {Promise<ConfigurationPublicModel.ApplicationResponse>} - Success response
24
26
  * @name searchApplication
25
27
  * @summary: Search Application
26
28
  * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/searchApplication/).
27
29
  */
28
- searchApplication({ authorization, query }?: ConfigurationPublicValidator.SearchApplicationParam, { headers }?: any): Promise<ConfigurationPublicModel.ApplicationResponse>;
30
+ searchApplication({ authorization, query, requestHeaders }?: ConfigurationPublicValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<ConfigurationPublicModel.ApplicationResponse>;
29
31
  }
30
32
  import ConfigurationPublicValidator = require("./ConfigurationPublicValidator");
31
33
  import ConfigurationPublicModel = require("./ConfigurationPublicModel");
@@ -33,15 +33,16 @@ class Configuration {
33
33
 
34
34
  /**
35
35
  * @param {ConfigurationPublicValidator.GetLocationsParam} arg - Arg object.
36
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
36
37
  * @param {import("../PublicAPIClient").Options} - Options
37
38
  * @returns {Promise<ConfigurationPublicModel.Locations>} - Success response
38
39
  * @name getLocations
39
40
  * @summary: Get countries, states, cities
40
- * @description: - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
41
+ * @description: Get Location configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/getLocations/).
41
42
  */
42
43
  async getLocations(
43
- { locationType, id } = {},
44
- { headers } = { headers: false }
44
+ { locationType, id, requestHeaders } = { requestHeaders: {} },
45
+ { responseHeaders } = { responseHeaders: false }
45
46
  ) {
46
47
  const { error } = ConfigurationPublicValidator.getLocations().validate(
47
48
  { locationType, id },
@@ -80,12 +81,12 @@ class Configuration {
80
81
  }),
81
82
  query_params,
82
83
  undefined,
83
- xHeaders,
84
- { headers }
84
+ { ...xHeaders, ...requestHeaders },
85
+ { responseHeaders }
85
86
  );
86
87
 
87
88
  let responseData = response;
88
- if (headers) {
89
+ if (responseHeaders) {
89
90
  responseData = response[0];
90
91
  }
91
92
 
@@ -108,6 +109,7 @@ class Configuration {
108
109
 
109
110
  /**
110
111
  * @param {ConfigurationPublicValidator.SearchApplicationParam} arg - Arg object.
112
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
113
  * @param {import("../PublicAPIClient").Options} - Options
112
114
  * @returns {Promise<ConfigurationPublicModel.ApplicationResponse>} - Success response
113
115
  * @name searchApplication
@@ -115,8 +117,8 @@ class Configuration {
115
117
  * @description: Provide application name or domain url - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/configuration/searchApplication/).
116
118
  */
117
119
  async searchApplication(
118
- { authorization, query } = {},
119
- { headers } = { headers: false }
120
+ { authorization, query, requestHeaders } = { requestHeaders: {} },
121
+ { responseHeaders } = { responseHeaders: false }
120
122
  ) {
121
123
  const { error } = ConfigurationPublicValidator.searchApplication().validate(
122
124
  { authorization, query },
@@ -155,12 +157,12 @@ class Configuration {
155
157
  }),
156
158
  query_params,
157
159
  undefined,
158
- xHeaders,
159
- { headers }
160
+ { ...xHeaders, ...requestHeaders },
161
+ { responseHeaders }
160
162
  );
161
163
 
162
164
  let responseData = response;
163
- if (headers) {
165
+ if (responseHeaders) {
164
166
  responseData = response[0];
165
167
  }
166
168
 
@@ -74,23 +74,6 @@ export = ConfigurationPublicModel;
74
74
  * @typedef BadRequest
75
75
  * @property {string} [message] - Failure message (in a string format)
76
76
  */
77
- /**
78
- * @typedef Currency
79
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
80
- * of the current sales channel supported currency
81
- * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
82
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
83
- * currency creation
84
- * @property {number} [decimal_digits] - Acceptable decimal limits for a given
85
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
86
- * value of a currency.
87
- * @property {boolean} [is_active] - Shows currency is enabled or not in current
88
- * sales channel
89
- * @property {string} [name] - Name of the currency, e.g. Indian Rupee
90
- * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
91
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
92
- * currency updation
93
- */
94
77
  /**
95
78
  * @typedef Domain
96
79
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -136,23 +119,12 @@ export = ConfigurationPublicModel;
136
119
  */
137
120
  /**
138
121
  * @typedef Locations
139
- * @property {Object[]} [items]
122
+ * @property {LocationCountry[]} [items]
140
123
  */
141
124
  /**
142
125
  * @typedef NotFound
143
126
  * @property {string} [message] - Response message for not found
144
127
  */
145
- /**
146
- * @typedef Page
147
- * @property {number} [current] - Current page number
148
- * @property {boolean} [has_next] - Next page is present or not
149
- * @property {boolean} [has_previous] - Previous page is present or not
150
- * @property {number} [item_total] - Total number of items to retrieve
151
- * @property {string} [next_id] - Next page ID
152
- * @property {number} [size] - The number of items to retrieve in each page.
153
- * Default value is 10.
154
- * @property {string} type - Page type
155
- */
156
128
  /**
157
129
  * @typedef SecureUrl
158
130
  * @property {string} [secure_url] - Hosted URL of the image
@@ -160,7 +132,7 @@ export = ConfigurationPublicModel;
160
132
  declare class ConfigurationPublicModel {
161
133
  }
162
134
  declare namespace ConfigurationPublicModel {
163
- export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Currency, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, Page, SecureUrl };
135
+ export { Application, ApplicationAuth, ApplicationCors, ApplicationMeta, ApplicationRedirections, ApplicationResponse, ApplicationWebsite, BadRequest, Domain, LocationCountry, LocationDefaultCurrency, LocationDefaultLanguage, Locations, NotFound, SecureUrl };
164
136
  }
165
137
  /** @returns {Application} */
166
138
  declare function Application(): Application;
@@ -314,48 +286,6 @@ type BadRequest = {
314
286
  */
315
287
  message?: string;
316
288
  };
317
- /** @returns {Currency} */
318
- declare function Currency(): Currency;
319
- type Currency = {
320
- /**
321
- * - The unique identifier (24-digit Mongo Object ID)
322
- * of the current sales channel supported currency
323
- */
324
- _id?: string;
325
- /**
326
- * - 3-character currency code, e.g. INR, USD, EUR.
327
- */
328
- code?: string;
329
- /**
330
- * - ISO 8601 timestamp of sales channel support
331
- * currency creation
332
- */
333
- created_at?: string;
334
- /**
335
- * - Acceptable decimal limits for a given
336
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
337
- * value of a currency.
338
- */
339
- decimal_digits?: number;
340
- /**
341
- * - Shows currency is enabled or not in current
342
- * sales channel
343
- */
344
- is_active?: boolean;
345
- /**
346
- * - Name of the currency, e.g. Indian Rupee
347
- */
348
- name?: string;
349
- /**
350
- * - Unique symbol for identifying the currency, e.g. ₹
351
- */
352
- symbol?: string;
353
- /**
354
- * - ISO 8601 timestamp of sales channel support
355
- * currency updation
356
- */
357
- updated_at?: string;
358
- };
359
289
  /** @returns {Domain} */
360
290
  declare function Domain(): Domain;
361
291
  type Domain = {
@@ -421,7 +351,7 @@ type LocationDefaultLanguage = {
421
351
  /** @returns {Locations} */
422
352
  declare function Locations(): Locations;
423
353
  type Locations = {
424
- items?: any[];
354
+ items?: LocationCountry[];
425
355
  };
426
356
  /** @returns {NotFound} */
427
357
  declare function NotFound(): NotFound;
@@ -431,39 +361,6 @@ type NotFound = {
431
361
  */
432
362
  message?: string;
433
363
  };
434
- /** @returns {Page} */
435
- declare function Page(): Page;
436
- type Page = {
437
- /**
438
- * - Current page number
439
- */
440
- current?: number;
441
- /**
442
- * - Next page is present or not
443
- */
444
- has_next?: boolean;
445
- /**
446
- * - Previous page is present or not
447
- */
448
- has_previous?: boolean;
449
- /**
450
- * - Total number of items to retrieve
451
- */
452
- item_total?: number;
453
- /**
454
- * - Next page ID
455
- */
456
- next_id?: string;
457
- /**
458
- * - The number of items to retrieve in each page.
459
- * Default value is 10.
460
- */
461
- size?: number;
462
- /**
463
- * - Page type
464
- */
465
- type: string;
466
- };
467
364
  /** @returns {SecureUrl} */
468
365
  declare function SecureUrl(): SecureUrl;
469
366
  type SecureUrl = {
@@ -83,24 +83,6 @@ const Joi = require("joi");
83
83
  * @property {string} [message] - Failure message (in a string format)
84
84
  */
85
85
 
86
- /**
87
- * @typedef Currency
88
- * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
89
- * of the current sales channel supported currency
90
- * @property {string} [code] - 3-character currency code, e.g. INR, USD, EUR.
91
- * @property {string} [created_at] - ISO 8601 timestamp of sales channel support
92
- * currency creation
93
- * @property {number} [decimal_digits] - Acceptable decimal limits for a given
94
- * currency, e.g. 1.05$ means upto 2 decimal digits can be accepted as a valid
95
- * value of a currency.
96
- * @property {boolean} [is_active] - Shows currency is enabled or not in current
97
- * sales channel
98
- * @property {string} [name] - Name of the currency, e.g. Indian Rupee
99
- * @property {string} [symbol] - Unique symbol for identifying the currency, e.g. ₹
100
- * @property {string} [updated_at] - ISO 8601 timestamp of sales channel support
101
- * currency updation
102
- */
103
-
104
86
  /**
105
87
  * @typedef Domain
106
88
  * @property {string} [_id] - The unique identifier (24-digit Mongo Object ID)
@@ -150,7 +132,7 @@ const Joi = require("joi");
150
132
 
151
133
  /**
152
134
  * @typedef Locations
153
- * @property {Object[]} [items]
135
+ * @property {LocationCountry[]} [items]
154
136
  */
155
137
 
156
138
  /**
@@ -158,18 +140,6 @@ const Joi = require("joi");
158
140
  * @property {string} [message] - Response message for not found
159
141
  */
160
142
 
161
- /**
162
- * @typedef Page
163
- * @property {number} [current] - Current page number
164
- * @property {boolean} [has_next] - Next page is present or not
165
- * @property {boolean} [has_previous] - Previous page is present or not
166
- * @property {number} [item_total] - Total number of items to retrieve
167
- * @property {string} [next_id] - Next page ID
168
- * @property {number} [size] - The number of items to retrieve in each page.
169
- * Default value is 10.
170
- * @property {string} type - Page type
171
- */
172
-
173
143
  /**
174
144
  * @typedef SecureUrl
175
145
  * @property {string} [secure_url] - Hosted URL of the image
@@ -263,20 +233,6 @@ class ConfigurationPublicModel {
263
233
  });
264
234
  }
265
235
 
266
- /** @returns {Currency} */
267
- static Currency() {
268
- return Joi.object({
269
- _id: Joi.string().allow(""),
270
- code: Joi.string().allow(""),
271
- created_at: Joi.string().allow(""),
272
- decimal_digits: Joi.number(),
273
- is_active: Joi.boolean(),
274
- name: Joi.string().allow(""),
275
- symbol: Joi.string().allow(""),
276
- updated_at: Joi.string().allow(""),
277
- });
278
- }
279
-
280
236
  /** @returns {Domain} */
281
237
  static Domain() {
282
238
  return Joi.object({
@@ -332,7 +288,7 @@ class ConfigurationPublicModel {
332
288
  /** @returns {Locations} */
333
289
  static Locations() {
334
290
  return Joi.object({
335
- items: Joi.array().items(Joi.any()),
291
+ items: Joi.array().items(ConfigurationPublicModel.LocationCountry()),
336
292
  });
337
293
  }
338
294
 
@@ -343,19 +299,6 @@ class ConfigurationPublicModel {
343
299
  });
344
300
  }
345
301
 
346
- /** @returns {Page} */
347
- static Page() {
348
- return Joi.object({
349
- current: Joi.number(),
350
- has_next: Joi.boolean(),
351
- has_previous: Joi.boolean(),
352
- item_total: Joi.number(),
353
- next_id: Joi.string().allow(""),
354
- size: Joi.number(),
355
- type: Joi.string().allow("").required(),
356
- });
357
- }
358
-
359
302
  /** @returns {SecureUrl} */
360
303
  static SecureUrl() {
361
304
  return Joi.object({