@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.3.11-beta.8

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 (229) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  56. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  58. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  59. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  60. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  62. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  67. package/sdk/partner/PartnerClient.d.ts +6 -0
  68. package/sdk/partner/PartnerClient.js +9 -0
  69. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  70. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  71. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  72. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  73. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  74. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  75. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  76. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  77. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  78. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  79. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  80. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  81. package/sdk/partner/index.d.ts +3 -0
  82. package/sdk/partner/index.js +6 -0
  83. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  84. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  85. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  86. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  87. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  88. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  89. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  90. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  91. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  92. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  93. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  94. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  95. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  97. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  100. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  101. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  102. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  103. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  104. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  105. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  106. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  110. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  111. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  112. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  113. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  118. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  119. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  120. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  121. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  122. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  123. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  124. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  125. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3630 -1059
  126. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +342 -1
  127. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +401 -0
  128. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  129. package/sdk/platform/Content/ContentPlatformClient.js +2000 -0
  130. package/sdk/platform/Content/ContentPlatformModel.d.ts +1094 -1
  131. package/sdk/platform/Content/ContentPlatformModel.js +1356 -46
  132. package/sdk/platform/Content/ContentPlatformValidator.d.ts +238 -0
  133. package/sdk/platform/Content/ContentPlatformValidator.js +310 -0
  134. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  135. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  137. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +16 -5
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +18 -4
  144. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  145. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  146. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  147. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  148. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  149. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  150. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  151. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  152. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  153. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  154. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  155. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  156. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  158. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  160. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  161. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  162. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  163. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  164. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  165. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  166. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  167. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  168. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  169. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  170. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  171. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  172. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  173. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  174. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  175. package/sdk/platform/PlatformApplicationClient.js +4 -4
  176. package/sdk/platform/PlatformClient.d.ts +4 -2
  177. package/sdk/platform/PlatformClient.js +8 -4
  178. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  179. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  188. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  189. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  190. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  191. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  192. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  193. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  194. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  195. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  196. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  197. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  198. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  199. package/sdk/platform/User/UserPlatformModel.js +256 -5
  200. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  201. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  202. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  203. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  204. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  205. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  206. package/sdk/platform/index.d.ts +1 -1
  207. package/sdk/platform/index.js +2 -2
  208. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  209. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  210. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  211. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  212. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  213. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  214. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  215. package/sdk/public/Content/ContentPublicClient.js +114 -0
  216. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  217. package/sdk/public/Content/ContentPublicModel.js +60 -0
  218. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  219. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  220. package/sdk/public/PublicClient.d.ts +4 -0
  221. package/sdk/public/PublicClient.js +8 -0
  222. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  223. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  224. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  225. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  226. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  227. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  228. package/sdk/public/index.d.ts +2 -0
  229. package/sdk/public/index.js +4 -0
@@ -1,7 +1,7 @@
1
1
  export = WebhookPlatformValidator;
2
2
  /**
3
3
  * @typedef CancelJobByNameParam
4
- * @property {string} filename - Filename of the specific report export to cancel.
4
+ * @property {string} filename
5
5
  */
6
6
  /**
7
7
  * @typedef DownloadDeliveryReportParam
@@ -14,7 +14,7 @@ export = WebhookPlatformValidator;
14
14
  */
15
15
  /**
16
16
  * @typedef GetEventCountsParam
17
- * @property {WebhookPlatformModel.EventProcessRequest} body
17
+ * @property {WebhookPlatformModel.RetryEventRequest} body
18
18
  */
19
19
  /**
20
20
  * @typedef GetHistoricalReportsParam
@@ -39,12 +39,12 @@ export = WebhookPlatformValidator;
39
39
  * @typedef GetSubscribersByExtensionIdParam
40
40
  * @property {number} [pageNo] - Page Number
41
41
  * @property {number} [pageSize] - Page Size
42
- * @property {string} extensionId - Extension id
42
+ * @property {string} extensionId - Extension_id
43
43
  */
44
44
  /** @typedef ManualRetryCancelParam */
45
45
  /**
46
46
  * @typedef ManualRetryOfFailedEventParam
47
- * @property {WebhookPlatformModel.EventProcessRequest} body
47
+ * @property {WebhookPlatformModel.RetryEventRequest} body
48
48
  */
49
49
  /**
50
50
  * @typedef PingWebhookParam
@@ -96,9 +96,6 @@ declare namespace WebhookPlatformValidator {
96
96
  export { CancelJobByNameParam, DownloadDeliveryReportParam, FetchAllEventConfigurationsParam, GetDeliveryReportsParam, GetEventCountsParam, GetHistoricalReportsParam, GetManualRetryStatusParam, GetReportFiltersParam, GetSubscriberByIdParam, GetSubscribersByCompanyParam, GetSubscribersByExtensionIdParam, ManualRetryCancelParam, ManualRetryOfFailedEventParam, PingWebhookParam, RegisterSubscriberToEventParam, UpdateSubscriberConfigParam };
97
97
  }
98
98
  type CancelJobByNameParam = {
99
- /**
100
- * - Filename of the specific report export to cancel.
101
- */
102
99
  filename: string;
103
100
  };
104
101
  type DownloadDeliveryReportParam = {
@@ -108,7 +105,7 @@ type GetDeliveryReportsParam = {
108
105
  body: WebhookPlatformModel.EventProcessRequest;
109
106
  };
110
107
  type GetEventCountsParam = {
111
- body: WebhookPlatformModel.EventProcessRequest;
108
+ body: WebhookPlatformModel.RetryEventRequest;
112
109
  };
113
110
  type GetHistoricalReportsParam = {
114
111
  body: WebhookPlatformModel.HistoryPayload;
@@ -146,12 +143,12 @@ type GetSubscribersByExtensionIdParam = {
146
143
  */
147
144
  pageSize?: number;
148
145
  /**
149
- * - Extension id
146
+ * - Extension_id
150
147
  */
151
148
  extensionId: string;
152
149
  };
153
150
  type ManualRetryOfFailedEventParam = {
154
- body: WebhookPlatformModel.EventProcessRequest;
151
+ body: WebhookPlatformModel.RetryEventRequest;
155
152
  };
156
153
  type PingWebhookParam = {
157
154
  body: WebhookPlatformModel.PingWebhook;
@@ -4,7 +4,7 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
4
4
 
5
5
  /**
6
6
  * @typedef CancelJobByNameParam
7
- * @property {string} filename - Filename of the specific report export to cancel.
7
+ * @property {string} filename
8
8
  */
9
9
 
10
10
  /**
@@ -21,7 +21,7 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
21
21
 
22
22
  /**
23
23
  * @typedef GetEventCountsParam
24
- * @property {WebhookPlatformModel.EventProcessRequest} body
24
+ * @property {WebhookPlatformModel.RetryEventRequest} body
25
25
  */
26
26
 
27
27
  /**
@@ -52,14 +52,14 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
52
52
  * @typedef GetSubscribersByExtensionIdParam
53
53
  * @property {number} [pageNo] - Page Number
54
54
  * @property {number} [pageSize] - Page Size
55
- * @property {string} extensionId - Extension id
55
+ * @property {string} extensionId - Extension_id
56
56
  */
57
57
 
58
58
  /** @typedef ManualRetryCancelParam */
59
59
 
60
60
  /**
61
61
  * @typedef ManualRetryOfFailedEventParam
62
- * @property {WebhookPlatformModel.EventProcessRequest} body
62
+ * @property {WebhookPlatformModel.RetryEventRequest} body
63
63
  */
64
64
 
65
65
  /**
@@ -107,7 +107,7 @@ class WebhookPlatformValidator {
107
107
  /** @returns {GetEventCountsParam} */
108
108
  static getEventCounts() {
109
109
  return Joi.object({
110
- body: WebhookPlatformModel.EventProcessRequest().required(),
110
+ body: WebhookPlatformModel.RetryEventRequest().required(),
111
111
  }).required();
112
112
  }
113
113
 
@@ -163,7 +163,7 @@ class WebhookPlatformValidator {
163
163
  /** @returns {ManualRetryOfFailedEventParam} */
164
164
  static manualRetryOfFailedEvent() {
165
165
  return Joi.object({
166
- body: WebhookPlatformModel.EventProcessRequest().required(),
166
+ body: WebhookPlatformModel.RetryEventRequest().required(),
167
167
  }).required();
168
168
  }
169
169
 
@@ -15,11 +15,11 @@ export namespace PlatformModel {
15
15
  const FinancePlatformModel: typeof import("./Finance/FinancePlatformModel");
16
16
  const InventoryPlatformModel: typeof import("./Inventory/InventoryPlatformModel");
17
17
  const LeadPlatformModel: typeof import("./Lead/LeadPlatformModel");
18
+ const ServiceabilityPlatformModel: typeof import("./Serviceability/ServiceabilityPlatformModel");
18
19
  const OrderPlatformModel: typeof import("./Order/OrderPlatformModel");
19
20
  const PartnerPlatformModel: typeof import("./Partner/PartnerPlatformModel");
20
21
  const PaymentPlatformModel: typeof import("./Payment/PaymentPlatformModel");
21
22
  const RewardsPlatformModel: typeof import("./Rewards/RewardsPlatformModel");
22
- const ServiceabilityPlatformModel: typeof import("./Serviceability/ServiceabilityPlatformModel");
23
23
  const SharePlatformModel: typeof import("./Share/SharePlatformModel");
24
24
  const ThemePlatformModel: typeof import("./Theme/ThemePlatformModel");
25
25
  const UserPlatformModel: typeof import("./User/UserPlatformModel");
@@ -30,6 +30,8 @@ module.exports = {
30
30
 
31
31
  LeadPlatformModel: require("./Lead/LeadPlatformModel"),
32
32
 
33
+ ServiceabilityPlatformModel: require("./Serviceability/ServiceabilityPlatformModel"),
34
+
33
35
  OrderPlatformModel: require("./Order/OrderPlatformModel"),
34
36
 
35
37
  PartnerPlatformModel: require("./Partner/PartnerPlatformModel"),
@@ -38,8 +40,6 @@ module.exports = {
38
40
 
39
41
  RewardsPlatformModel: require("./Rewards/RewardsPlatformModel"),
40
42
 
41
- ServiceabilityPlatformModel: require("./Serviceability/ServiceabilityPlatformModel"),
42
-
43
43
  SharePlatformModel: require("./Share/SharePlatformModel"),
44
44
 
45
45
  ThemePlatformModel: require("./Theme/ThemePlatformModel"),
@@ -0,0 +1,23 @@
1
+ export = Billing;
2
+ declare class Billing {
3
+ constructor(_conf: any);
4
+ _conf: any;
5
+ _relativeUrls: {
6
+ getStandardPlans: string;
7
+ };
8
+ _urls: {};
9
+ updateUrls(urls: any): void;
10
+ /**
11
+ * @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object.
12
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
+ * @param {import("../PublicAPIClient").Options} - Options
14
+ * @returns {Promise<BillingPublicModel.DetailList>} - Success response
15
+ * @name getStandardPlans
16
+ * @summary: Get Standard/Public Plans
17
+ * @description: Get Standard/Public Plans.
18
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
19
+ */
20
+ getStandardPlans({ platformType, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise<BillingPublicModel.DetailList>;
21
+ }
22
+ import BillingPublicValidator = require("./BillingPublicValidator");
23
+ import BillingPublicModel = require("./BillingPublicModel");
@@ -0,0 +1,116 @@
1
+ const PublicAPIClient = require("../PublicAPIClient");
2
+ const {
3
+ FDKClientValidationError,
4
+ FDKResponseValidationError,
5
+ } = require("../../common/FDKError");
6
+ const constructUrl = require("../constructUrl");
7
+ const Paginator = require("../../common/Paginator");
8
+ const BillingPublicValidator = require("./BillingPublicValidator");
9
+ const BillingPublicModel = require("./BillingPublicModel");
10
+ const { Logger } = require("./../../common/Logger");
11
+ const Joi = require("joi");
12
+
13
+ class Billing {
14
+ constructor(_conf) {
15
+ this._conf = _conf;
16
+ this._relativeUrls = {
17
+ getStandardPlans: "/service/public/billing/v1.0/plan/detailed-list",
18
+ };
19
+ this._urls = Object.entries(this._relativeUrls).reduce(
20
+ (urls, [method, relativeUrl]) => {
21
+ urls[method] = `${_conf.domain}${relativeUrl}`;
22
+ return urls;
23
+ },
24
+ {}
25
+ );
26
+ }
27
+
28
+ updateUrls(urls) {
29
+ this._urls = {
30
+ ...this._urls,
31
+ ...urls,
32
+ };
33
+ }
34
+
35
+ /**
36
+ * @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object.
37
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
+ * @param {import("../PublicAPIClient").Options} - Options
39
+ * @returns {Promise<BillingPublicModel.DetailList>} - Success response
40
+ * @name getStandardPlans
41
+ * @summary: Get Standard/Public Plans
42
+ * @description: Get Standard/Public Plans.
43
+ * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
44
+ */
45
+ async getStandardPlans(
46
+ { platformType, requestHeaders } = { requestHeaders: {} },
47
+ { responseHeaders } = { responseHeaders: false }
48
+ ) {
49
+ const { error } = BillingPublicValidator.getStandardPlans().validate(
50
+ { platformType },
51
+ { abortEarly: false, allowUnknown: true }
52
+ );
53
+ if (error) {
54
+ return Promise.reject(new FDKClientValidationError(error));
55
+ }
56
+
57
+ // Showing warrnings if extra unknown parameters are found
58
+ const {
59
+ error: warrning,
60
+ } = BillingPublicValidator.getStandardPlans().validate(
61
+ { platformType },
62
+ { abortEarly: false, allowUnknown: false }
63
+ );
64
+ if (warrning) {
65
+ Logger({
66
+ level: "WARN",
67
+ message: `Parameter Validation warrnings for public > Billing > getStandardPlans \n ${warrning}`,
68
+ });
69
+ }
70
+
71
+ const query_params = {};
72
+ query_params["platform_type"] = platformType;
73
+
74
+ const xHeaders = {};
75
+
76
+ const response = await PublicAPIClient.execute(
77
+ this._conf,
78
+ "get",
79
+ constructUrl({
80
+ url: this._urls["getStandardPlans"],
81
+ params: {},
82
+ }),
83
+ query_params,
84
+ undefined,
85
+ { ...xHeaders, ...requestHeaders },
86
+ { responseHeaders }
87
+ );
88
+
89
+ let responseData = response;
90
+ if (responseHeaders) {
91
+ responseData = response[0];
92
+ }
93
+
94
+ const {
95
+ error: res_error,
96
+ } = BillingPublicModel.DetailList().validate(responseData, {
97
+ abortEarly: false,
98
+ allowUnknown: true,
99
+ });
100
+
101
+ if (res_error) {
102
+ if (this._conf.options.strictResponseCheck === true) {
103
+ return Promise.reject(new FDKResponseValidationError(res_error));
104
+ } else {
105
+ Logger({
106
+ level: "WARN",
107
+ message: `Response Validation Warnings for public > Billing > getStandardPlans \n ${res_error}`,
108
+ });
109
+ }
110
+ }
111
+
112
+ return response;
113
+ }
114
+ }
115
+
116
+ module.exports = Billing;
@@ -0,0 +1,92 @@
1
+ export = BillingPublicModel;
2
+ /**
3
+ * @typedef DetailList
4
+ * @property {string[]} [component_groups]
5
+ * @property {Plan[]} [plans]
6
+ * @property {Plan} [trial_plan]
7
+ */
8
+ /**
9
+ * @typedef InternalServerError
10
+ * @property {string} [code] - Error code
11
+ * @property {string} [message] - Internal server Server error
12
+ */
13
+ /**
14
+ * @typedef Plan
15
+ * @property {string} [_id]
16
+ * @property {string[]} [addons]
17
+ * @property {number} [amount]
18
+ * @property {string} [country]
19
+ * @property {string} [created_at]
20
+ * @property {string} [currency]
21
+ * @property {string} [description]
22
+ * @property {boolean} [is_active]
23
+ * @property {boolean} [is_trial_plan]
24
+ * @property {boolean} [is_visible]
25
+ * @property {string} [modified_at]
26
+ * @property {string} [name]
27
+ * @property {string} [plan_group]
28
+ * @property {string} [product_suite_id]
29
+ * @property {PlanRecurring} [recurring]
30
+ * @property {string[]} [tag_lines]
31
+ * @property {string[]} [tags]
32
+ * @property {number} [trial_period]
33
+ * @property {string} [type]
34
+ */
35
+ /**
36
+ * @typedef PlanRecurring
37
+ * @property {string} [interval]
38
+ * @property {number} [interval_count]
39
+ */
40
+ declare class BillingPublicModel {
41
+ }
42
+ declare namespace BillingPublicModel {
43
+ export { DetailList, InternalServerError, Plan, PlanRecurring };
44
+ }
45
+ /** @returns {DetailList} */
46
+ declare function DetailList(): DetailList;
47
+ type DetailList = {
48
+ component_groups?: string[];
49
+ plans?: Plan[];
50
+ trial_plan?: Plan;
51
+ };
52
+ /** @returns {InternalServerError} */
53
+ declare function InternalServerError(): InternalServerError;
54
+ type InternalServerError = {
55
+ /**
56
+ * - Error code
57
+ */
58
+ code?: string;
59
+ /**
60
+ * - Internal server Server error
61
+ */
62
+ message?: string;
63
+ };
64
+ /** @returns {Plan} */
65
+ declare function Plan(): Plan;
66
+ type Plan = {
67
+ _id?: string;
68
+ addons?: string[];
69
+ amount?: number;
70
+ country?: string;
71
+ created_at?: string;
72
+ currency?: string;
73
+ description?: string;
74
+ is_active?: boolean;
75
+ is_trial_plan?: boolean;
76
+ is_visible?: boolean;
77
+ modified_at?: string;
78
+ name?: string;
79
+ plan_group?: string;
80
+ product_suite_id?: string;
81
+ recurring?: PlanRecurring;
82
+ tag_lines?: string[];
83
+ tags?: string[];
84
+ trial_period?: number;
85
+ type?: string;
86
+ };
87
+ /** @returns {PlanRecurring} */
88
+ declare function PlanRecurring(): PlanRecurring;
89
+ type PlanRecurring = {
90
+ interval?: string;
91
+ interval_count?: number;
92
+ };
@@ -0,0 +1,96 @@
1
+ const Joi = require("joi");
2
+
3
+ /**
4
+ * @typedef DetailList
5
+ * @property {string[]} [component_groups]
6
+ * @property {Plan[]} [plans]
7
+ * @property {Plan} [trial_plan]
8
+ */
9
+
10
+ /**
11
+ * @typedef InternalServerError
12
+ * @property {string} [code] - Error code
13
+ * @property {string} [message] - Internal server Server error
14
+ */
15
+
16
+ /**
17
+ * @typedef Plan
18
+ * @property {string} [_id]
19
+ * @property {string[]} [addons]
20
+ * @property {number} [amount]
21
+ * @property {string} [country]
22
+ * @property {string} [created_at]
23
+ * @property {string} [currency]
24
+ * @property {string} [description]
25
+ * @property {boolean} [is_active]
26
+ * @property {boolean} [is_trial_plan]
27
+ * @property {boolean} [is_visible]
28
+ * @property {string} [modified_at]
29
+ * @property {string} [name]
30
+ * @property {string} [plan_group]
31
+ * @property {string} [product_suite_id]
32
+ * @property {PlanRecurring} [recurring]
33
+ * @property {string[]} [tag_lines]
34
+ * @property {string[]} [tags]
35
+ * @property {number} [trial_period]
36
+ * @property {string} [type]
37
+ */
38
+
39
+ /**
40
+ * @typedef PlanRecurring
41
+ * @property {string} [interval]
42
+ * @property {number} [interval_count]
43
+ */
44
+
45
+ class BillingPublicModel {
46
+ /** @returns {DetailList} */
47
+ static DetailList() {
48
+ return Joi.object({
49
+ component_groups: Joi.array().items(Joi.string().allow("")),
50
+ plans: Joi.array().items(BillingPublicModel.Plan()),
51
+ trial_plan: BillingPublicModel.Plan(),
52
+ });
53
+ }
54
+
55
+ /** @returns {InternalServerError} */
56
+ static InternalServerError() {
57
+ return Joi.object({
58
+ code: Joi.string().allow(""),
59
+ message: Joi.string().allow(""),
60
+ });
61
+ }
62
+
63
+ /** @returns {Plan} */
64
+ static Plan() {
65
+ return Joi.object({
66
+ _id: Joi.string().allow(""),
67
+ addons: Joi.array().items(Joi.string().allow("")),
68
+ amount: Joi.number(),
69
+ country: Joi.string().allow(""),
70
+ created_at: Joi.string().allow(""),
71
+ currency: Joi.string().allow(""),
72
+ description: Joi.string().allow(""),
73
+ is_active: Joi.boolean(),
74
+ is_trial_plan: Joi.boolean(),
75
+ is_visible: Joi.boolean(),
76
+ modified_at: Joi.string().allow(""),
77
+ name: Joi.string().allow(""),
78
+ plan_group: Joi.string().allow(""),
79
+ product_suite_id: Joi.string().allow(""),
80
+ recurring: BillingPublicModel.PlanRecurring(),
81
+ tag_lines: Joi.array().items(Joi.string().allow("")),
82
+ tags: Joi.array().items(Joi.string().allow("")),
83
+ trial_period: Joi.number(),
84
+ type: Joi.string().allow(""),
85
+ });
86
+ }
87
+
88
+ /** @returns {PlanRecurring} */
89
+ static PlanRecurring() {
90
+ return Joi.object({
91
+ interval: Joi.string().allow(""),
92
+ interval_count: Joi.number(),
93
+ });
94
+ }
95
+ }
96
+ module.exports = BillingPublicModel;
@@ -0,0 +1,18 @@
1
+ export = BillingPublicValidator;
2
+ /**
3
+ * @typedef GetStandardPlansParam
4
+ * @property {string} platformType - The type of platform for which plans are requested.
5
+ */
6
+ declare class BillingPublicValidator {
7
+ /** @returns {GetStandardPlansParam} */
8
+ static getStandardPlans(): GetStandardPlansParam;
9
+ }
10
+ declare namespace BillingPublicValidator {
11
+ export { GetStandardPlansParam };
12
+ }
13
+ type GetStandardPlansParam = {
14
+ /**
15
+ * - The type of platform for which plans are requested.
16
+ */
17
+ platformType: string;
18
+ };
@@ -0,0 +1,19 @@
1
+ const Joi = require("joi");
2
+
3
+ const BillingPublicModel = require("./BillingPublicModel");
4
+
5
+ /**
6
+ * @typedef GetStandardPlansParam
7
+ * @property {string} platformType - The type of platform for which plans are requested.
8
+ */
9
+
10
+ class BillingPublicValidator {
11
+ /** @returns {GetStandardPlansParam} */
12
+ static getStandardPlans() {
13
+ return Joi.object({
14
+ platformType: Joi.string().allow("").required(),
15
+ }).required();
16
+ }
17
+ }
18
+
19
+ module.exports = BillingPublicValidator;
@@ -0,0 +1,22 @@
1
+ export = Content;
2
+ declare class Content {
3
+ constructor(_conf: any);
4
+ _conf: any;
5
+ _relativeUrls: {
6
+ getCredentialsByEntity: string;
7
+ };
8
+ _urls: {};
9
+ updateUrls(urls: any): void;
10
+ /**
11
+ * @param {ContentPublicValidator.GetCredentialsByEntityParam} arg - Arg object.
12
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
13
+ * @param {import("../PublicAPIClient").Options} - Options
14
+ * @returns {Promise<ContentPublicModel.CredentialsSchema>} - Success response
15
+ * @name getCredentialsByEntity
16
+ * @summary: Get credentials to power chat support systems
17
+ * @description: Get credentials for support system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCredentialsByEntity/).
18
+ */
19
+ getCredentialsByEntity({ entity, requestHeaders }?: ContentPublicValidator.GetCredentialsByEntityParam, { responseHeaders }?: object): Promise<ContentPublicModel.CredentialsSchema>;
20
+ }
21
+ import ContentPublicValidator = require("./ContentPublicValidator");
22
+ import ContentPublicModel = require("./ContentPublicModel");
@@ -0,0 +1,114 @@
1
+ const PublicAPIClient = require("../PublicAPIClient");
2
+ const {
3
+ FDKClientValidationError,
4
+ FDKResponseValidationError,
5
+ } = require("../../common/FDKError");
6
+ const constructUrl = require("../constructUrl");
7
+ const Paginator = require("../../common/Paginator");
8
+ const ContentPublicValidator = require("./ContentPublicValidator");
9
+ const ContentPublicModel = require("./ContentPublicModel");
10
+ const { Logger } = require("./../../common/Logger");
11
+ const Joi = require("joi");
12
+
13
+ class Content {
14
+ constructor(_conf) {
15
+ this._conf = _conf;
16
+ this._relativeUrls = {
17
+ getCredentialsByEntity: "/service/public/content/credentials/{entity}",
18
+ };
19
+ this._urls = Object.entries(this._relativeUrls).reduce(
20
+ (urls, [method, relativeUrl]) => {
21
+ urls[method] = `${_conf.domain}${relativeUrl}`;
22
+ return urls;
23
+ },
24
+ {}
25
+ );
26
+ }
27
+
28
+ updateUrls(urls) {
29
+ this._urls = {
30
+ ...this._urls,
31
+ ...urls,
32
+ };
33
+ }
34
+
35
+ /**
36
+ * @param {ContentPublicValidator.GetCredentialsByEntityParam} arg - Arg object.
37
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
+ * @param {import("../PublicAPIClient").Options} - Options
39
+ * @returns {Promise<ContentPublicModel.CredentialsSchema>} - Success response
40
+ * @name getCredentialsByEntity
41
+ * @summary: Get credentials to power chat support systems
42
+ * @description: Get credentials for support system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/content/getCredentialsByEntity/).
43
+ */
44
+ async getCredentialsByEntity(
45
+ { entity, requestHeaders } = { requestHeaders: {} },
46
+ { responseHeaders } = { responseHeaders: false }
47
+ ) {
48
+ const { error } = ContentPublicValidator.getCredentialsByEntity().validate(
49
+ { entity },
50
+ { abortEarly: false, allowUnknown: true }
51
+ );
52
+ if (error) {
53
+ return Promise.reject(new FDKClientValidationError(error));
54
+ }
55
+
56
+ // Showing warrnings if extra unknown parameters are found
57
+ const {
58
+ error: warrning,
59
+ } = ContentPublicValidator.getCredentialsByEntity().validate(
60
+ { entity },
61
+ { abortEarly: false, allowUnknown: false }
62
+ );
63
+ if (warrning) {
64
+ Logger({
65
+ level: "WARN",
66
+ message: `Parameter Validation warrnings for public > Content > getCredentialsByEntity \n ${warrning}`,
67
+ });
68
+ }
69
+
70
+ const query_params = {};
71
+
72
+ const xHeaders = {};
73
+
74
+ const response = await PublicAPIClient.execute(
75
+ this._conf,
76
+ "get",
77
+ constructUrl({
78
+ url: this._urls["getCredentialsByEntity"],
79
+ params: { entity },
80
+ }),
81
+ query_params,
82
+ undefined,
83
+ { ...xHeaders, ...requestHeaders },
84
+ { responseHeaders }
85
+ );
86
+
87
+ let responseData = response;
88
+ if (responseHeaders) {
89
+ responseData = response[0];
90
+ }
91
+
92
+ const {
93
+ error: res_error,
94
+ } = ContentPublicModel.CredentialsSchema().validate(responseData, {
95
+ abortEarly: false,
96
+ allowUnknown: true,
97
+ });
98
+
99
+ if (res_error) {
100
+ if (this._conf.options.strictResponseCheck === true) {
101
+ return Promise.reject(new FDKResponseValidationError(res_error));
102
+ } else {
103
+ Logger({
104
+ level: "WARN",
105
+ message: `Response Validation Warnings for public > Content > getCredentialsByEntity \n ${res_error}`,
106
+ });
107
+ }
108
+ }
109
+
110
+ return response;
111
+ }
112
+ }
113
+
114
+ module.exports = Content;