@gofynd/fdk-client-javascript 1.4.16-beta.4 → 1.4.16-beta.5

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 (239) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +2 -0
  4. package/sdk/application/ApplicationClient.js +2 -0
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +68 -48
  6. package/sdk/application/Cart/CartApplicationClient.js +118 -27
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +59 -58
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -29
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +1 -1
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +10 -10
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +51 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +161 -56
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -11
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -10
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  20. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +35 -15
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +101 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +56 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +4 -2
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +6 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -21
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -16
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
  41. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  44. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  45. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
  51. package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
  52. package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
  53. package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
  54. package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
  55. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
  57. package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
  58. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
  59. package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
  60. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
  62. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
  64. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
  66. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  72. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  73. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  74. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  75. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  76. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  77. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  78. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.js +419 -115
  80. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +121 -65
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
  82. package/sdk/platform/Cart/CartPlatformModel.d.ts +5070 -1296
  83. package/sdk/platform/Cart/CartPlatformModel.js +1992 -1217
  84. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
  88. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +154 -117
  89. package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
  90. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6512 -1770
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3228 -1687
  92. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -24
  94. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
  95. package/sdk/platform/Common/CommonPlatformClient.js +3 -2
  96. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  97. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  98. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
  103. package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
  104. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  110. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
  116. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
  118. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  120. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +204 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1076 -478
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +253 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +256 -130
  124. package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
  125. package/sdk/platform/Content/ContentPlatformClient.js +523 -336
  126. package/sdk/platform/Content/ContentPlatformModel.d.ts +1372 -400
  127. package/sdk/platform/Content/ContentPlatformModel.js +631 -394
  128. package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
  129. package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
  130. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
  131. package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
  132. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  133. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  134. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  136. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +95 -39
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -63
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
  140. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -22
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -24
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -116
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -104
  144. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  146. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  147. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  148. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  149. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  150. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +17 -6
  151. package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
  152. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
  153. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
  154. package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
  155. package/sdk/platform/Order/OrderPlatformClient.js +416 -198
  156. package/sdk/platform/Order/OrderPlatformModel.d.ts +7607 -1267
  157. package/sdk/platform/Order/OrderPlatformModel.js +3929 -1269
  158. package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
  159. package/sdk/platform/Order/OrderPlatformValidator.js +135 -77
  160. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
  161. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
  162. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  163. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  164. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
  165. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
  166. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  167. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  168. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  169. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  170. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +333 -319
  171. package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
  172. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  173. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  174. package/sdk/platform/PlatformClient.d.ts +0 -2
  175. package/sdk/platform/PlatformClient.js +0 -4
  176. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  178. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  179. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  180. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  181. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +46 -36
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1842 -609
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +886 -554
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -28
  192. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  194. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +3 -6
  195. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  196. package/sdk/platform/Share/SharePlatformModel.d.ts +46 -7
  197. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  198. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  199. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  200. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  201. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  202. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  203. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  204. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  205. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  206. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  207. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  208. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  209. package/sdk/platform/User/UserPlatformModel.js +23 -23
  210. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  211. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  212. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  213. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  214. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  215. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  216. package/sdk/platform/index.d.ts +0 -1
  217. package/sdk/platform/index.js +0 -2
  218. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  219. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  220. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  221. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  222. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  223. package/sdk/public/Content/ContentPublicClient.js +810 -6
  224. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  225. package/sdk/public/Content/ContentPublicModel.js +649 -3
  226. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  227. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  228. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  229. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  230. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  231. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  232. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  233. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  234. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  235. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  236. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  237. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  238. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  239. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -14,11 +14,96 @@ class Webhook {
14
14
  this.config = config;
15
15
  }
16
16
 
17
+ /**
18
+ * @param {WebhookPartnerValidator.ResponseTimeSummaryParam} arg - Arg object.
19
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
+ * @param {import("../PartnerAPIClient").Options} - Options
21
+ * @returns {Promise<WebhookPartnerModel.ResponseTimeTs>} - Success response
22
+ * @name responseTimeSummary
23
+ * @summary: Response time summary
24
+ * @description: Response time summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/responseTimeSummary/).
25
+ */
26
+ async responseTimeSummary(
27
+ { extensionId, startDate, endDate, requestHeaders } = {
28
+ requestHeaders: {},
29
+ },
30
+ { responseHeaders } = { responseHeaders: false }
31
+ ) {
32
+ const { error } = WebhookPartnerValidator.responseTimeSummary().validate(
33
+ {
34
+ extensionId,
35
+ startDate,
36
+ endDate,
37
+ },
38
+ { abortEarly: false, allowUnknown: true }
39
+ );
40
+ if (error) {
41
+ return Promise.reject(new FDKClientValidationError(error));
42
+ }
43
+
44
+ // Showing warrnings if extra unknown parameters are found
45
+ const {
46
+ error: warrning,
47
+ } = WebhookPartnerValidator.responseTimeSummary().validate(
48
+ {
49
+ extensionId,
50
+ startDate,
51
+ endDate,
52
+ },
53
+ { abortEarly: false, allowUnknown: false }
54
+ );
55
+ if (warrning) {
56
+ Logger({
57
+ level: "WARN",
58
+ message: `Parameter Validation warrnings for partner > Webhook > responseTimeSummary \n ${warrning}`,
59
+ });
60
+ }
61
+
62
+ const query_params = {};
63
+ query_params["start_date"] = startDate;
64
+ query_params["end_date"] = endDate;
65
+
66
+ const response = await PartnerAPIClient.execute(
67
+ this.config,
68
+ "get",
69
+ `/service/partner/webhook/v1.0/organization/${this.config.organizationId}/extension/${extensionId}/report/response_time_ts`,
70
+ query_params,
71
+ undefined,
72
+ requestHeaders,
73
+ { responseHeaders }
74
+ );
75
+
76
+ let responseData = response;
77
+ if (responseHeaders) {
78
+ responseData = response[0];
79
+ }
80
+
81
+ const {
82
+ error: res_error,
83
+ } = WebhookPartnerModel.ResponseTimeTs().validate(responseData, {
84
+ abortEarly: false,
85
+ allowUnknown: true,
86
+ });
87
+
88
+ if (res_error) {
89
+ if (this.config.options.strictResponseCheck === true) {
90
+ return Promise.reject(new FDKResponseValidationError(res_error));
91
+ } else {
92
+ Logger({
93
+ level: "WARN",
94
+ message: `Response Validation Warnings for partner > Webhook > responseTimeSummary \n ${res_error}`,
95
+ });
96
+ }
97
+ }
98
+
99
+ return response;
100
+ }
101
+
17
102
  /**
18
103
  * @param {WebhookPartnerValidator.FetchDeliverySummaryParam} arg - Arg object.
19
104
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
105
  * @param {import("../PartnerAPIClient").Options} - Options
21
- * @returns {Promise<WebhookPartnerModel.DeliverySummaryResponse>} - Success response
106
+ * @returns {Promise<WebhookPartnerModel.DeliverySummaryResult>} - Success response
22
107
  * @name fetchDeliverySummary
23
108
  * @summary: Webhook delivery summary
24
109
  * @description: Webhook delivery summary - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliverySummary/).
@@ -80,7 +165,7 @@ class Webhook {
80
165
 
81
166
  const {
82
167
  error: res_error,
83
- } = WebhookPartnerModel.DeliverySummaryResponse().validate(responseData, {
168
+ } = WebhookPartnerModel.DeliverySummaryResult().validate(responseData, {
84
169
  abortEarly: false,
85
170
  allowUnknown: true,
86
171
  });
@@ -103,7 +188,7 @@ class Webhook {
103
188
  * @param {WebhookPartnerValidator.GetDeliveryDetailInsightsParam} arg - Arg object.
104
189
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
105
190
  * @param {import("../PartnerAPIClient").Options} - Options
106
- * @returns {Promise<WebhookPartnerModel.DeliveryDetailsResponse>} - Success response
191
+ * @returns {Promise<WebhookPartnerModel.DeliveryDetailsResult>} - Success response
107
192
  * @name getDeliveryDetailInsights
108
193
  * @summary: Get the insights of delivery details of the events that was pushed to subscribers
109
194
  * @description: Get the delivery details insights - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/getDeliveryDetailInsights/).
@@ -161,7 +246,7 @@ class Webhook {
161
246
 
162
247
  const {
163
248
  error: res_error,
164
- } = WebhookPartnerModel.DeliveryDetailsResponse().validate(responseData, {
249
+ } = WebhookPartnerModel.DeliveryDetailsResult().validate(responseData, {
165
250
  abortEarly: false,
166
251
  allowUnknown: true,
167
252
  });
@@ -184,7 +269,7 @@ class Webhook {
184
269
  * @param {WebhookPartnerValidator.FetchDeliveryTsParam} arg - Arg object.
185
270
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
186
271
  * @param {import("../PartnerAPIClient").Options} - Options
187
- * @returns {Promise<WebhookPartnerModel.DeliveryTsResponse>} - Success response
272
+ * @returns {Promise<WebhookPartnerModel.DeliveryTsResult>} - Success response
188
273
  * @name fetchDeliveryTs
189
274
  * @summary: Webhook delivery ts
190
275
  * @description: Webhook delivery ts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchDeliveryTs/).
@@ -246,7 +331,7 @@ class Webhook {
246
331
 
247
332
  const {
248
333
  error: res_error,
249
- } = WebhookPartnerModel.DeliveryTsResponse().validate(responseData, {
334
+ } = WebhookPartnerModel.DeliveryTsResult().validate(responseData, {
250
335
  abortEarly: false,
251
336
  allowUnknown: true,
252
337
  });
@@ -269,7 +354,7 @@ class Webhook {
269
354
  * @param {WebhookPartnerValidator.FetchReportFiltersParam} arg - Arg object.
270
355
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
271
356
  * @param {import("../PartnerAPIClient").Options} - Options
272
- * @returns {Promise<WebhookPartnerModel.FilterReportResponse[]>} - Success response
357
+ * @returns {Promise<WebhookPartnerModel.FilterReportResult[]>} - Success response
273
358
  * @name fetchReportFilters
274
359
  * @summary: Fetch webhook report filters
275
360
  * @description: Fetch webhook report filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchReportFilters/).
@@ -336,7 +421,7 @@ class Webhook {
336
421
  }
337
422
 
338
423
  const { error: res_error } = Joi.array()
339
- .items(WebhookPartnerModel.FilterReportResponse())
424
+ .items(WebhookPartnerModel.FilterReportResult())
340
425
  .validate(responseData, { abortEarly: false, allowUnknown: true });
341
426
 
342
427
  if (res_error) {
@@ -357,7 +442,7 @@ class Webhook {
357
442
  * @param {WebhookPartnerValidator.CancelReportDownloadParam} arg - Arg object.
358
443
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
359
444
  * @param {import("../PartnerAPIClient").Options} - Options
360
- * @returns {Promise<WebhookPartnerModel.CancelDownloadResponse>} - Success response
445
+ * @returns {Promise<WebhookPartnerModel.CancelDownloadResult>} - Success response
361
446
  * @name cancelReportDownload
362
447
  * @summary: Cancel report download job
363
448
  * @description: Cancel report download job - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/cancelReportDownload/).
@@ -413,7 +498,7 @@ class Webhook {
413
498
 
414
499
  const {
415
500
  error: res_error,
416
- } = WebhookPartnerModel.CancelDownloadResponse().validate(responseData, {
501
+ } = WebhookPartnerModel.CancelDownloadResult().validate(responseData, {
417
502
  abortEarly: false,
418
503
  allowUnknown: true,
419
504
  });
@@ -436,7 +521,7 @@ class Webhook {
436
521
  * @param {WebhookPartnerValidator.GetHistoricalReportsParam} arg - Arg object.
437
522
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
438
523
  * @param {import("../PartnerAPIClient").Options} - Options
439
- * @returns {Promise<WebhookPartnerModel.HistoryResponse>} - Success response
524
+ * @returns {Promise<WebhookPartnerModel.HistoryResult>} - Success response
440
525
  * @name getHistoricalReports
441
526
  * @summary: Get report download history.
442
527
  * @description: Retrieve history reports for a specific company based on the provided filters.
@@ -493,7 +578,7 @@ class Webhook {
493
578
 
494
579
  const {
495
580
  error: res_error,
496
- } = WebhookPartnerModel.HistoryResponse().validate(responseData, {
581
+ } = WebhookPartnerModel.HistoryResult().validate(responseData, {
497
582
  abortEarly: false,
498
583
  allowUnknown: true,
499
584
  });
@@ -516,7 +601,7 @@ class Webhook {
516
601
  * @param {WebhookPartnerValidator.GetInvalidEventListParam} arg - Arg object.
517
602
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
518
603
  * @param {import("../PartnerAPIClient").Options} - Options
519
- * @returns {Promise<WebhookPartnerModel.InvalidEventsResponse[]>} - Success response
604
+ * @returns {Promise<WebhookPartnerModel.InvalidEventsResult[]>} - Success response
520
605
  * @name getInvalidEventList
521
606
  * @summary: Get invalid event list
522
607
  * @description: Get invalid event list.
@@ -572,7 +657,7 @@ class Webhook {
572
657
  }
573
658
 
574
659
  const { error: res_error } = Joi.array()
575
- .items(WebhookPartnerModel.InvalidEventsResponse())
660
+ .items(WebhookPartnerModel.InvalidEventsResult())
576
661
  .validate(responseData, { abortEarly: false, allowUnknown: true });
577
662
 
578
663
  if (res_error) {
@@ -593,7 +678,7 @@ class Webhook {
593
678
  * @param {WebhookPartnerValidator.FetchSubscribersParam} arg - Arg object.
594
679
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
595
680
  * @param {import("../PartnerAPIClient").Options} - Options
596
- * @returns {Promise<WebhookPartnerModel.SubscriberConfigResponse>} - Success response
681
+ * @returns {Promise<WebhookPartnerModel.SubscriberConfigDetails>} - Success response
597
682
  * @name fetchSubscribers
598
683
  * @summary: Fetch subscriber by filters
599
684
  * @description: Fetch subscriber by filters - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/webhook/fetchSubscribers/).
@@ -647,7 +732,7 @@ class Webhook {
647
732
 
648
733
  const {
649
734
  error: res_error,
650
- } = WebhookPartnerModel.SubscriberConfigResponse().validate(responseData, {
735
+ } = WebhookPartnerModel.SubscriberConfigDetails().validate(responseData, {
651
736
  abortEarly: false,
652
737
  allowUnknown: true,
653
738
  });
@@ -670,7 +755,7 @@ class Webhook {
670
755
  * @param {WebhookPartnerValidator.UpdateSubscriberParam} arg - Arg object.
671
756
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
672
757
  * @param {import("../PartnerAPIClient").Options} - Options
673
- * @returns {Promise<WebhookPartnerModel.UpdateSubscriberResponse>} - Success response
758
+ * @returns {Promise<WebhookPartnerModel.SubscriberUpdateResult>} - Success response
674
759
  * @name updateSubscriber
675
760
  * @summary: Update subscriber status by id.
676
761
  * @description: Update subscriber status by id.
@@ -731,7 +816,7 @@ class Webhook {
731
816
 
732
817
  const {
733
818
  error: res_error,
734
- } = WebhookPartnerModel.UpdateSubscriberResponse().validate(responseData, {
819
+ } = WebhookPartnerModel.SubscriberUpdateResult().validate(responseData, {
735
820
  abortEarly: false,
736
821
  allowUnknown: true,
737
822
  });