@gofynd/fdk-client-javascript 1.4.15-beta.6 → 1.4.16-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) 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 +130 -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 +19 -30
  14. package/sdk/application/Content/ContentApplicationClient.js +40 -60
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +7 -7
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  18. package/sdk/application/Finance/FinanceApplicationClient.js +126 -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 +118 -8
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +22 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +62 -8
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  26. package/sdk/application/Payment/PaymentApplicationClient.js +65 -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 -19
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
  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 +5039 -1300
  83. package/sdk/platform/Cart/CartPlatformModel.js +1976 -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 +6941 -2203
  91. package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -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 +124 -141
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
  122. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -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 +1241 -395
  127. package/sdk/platform/Content/ContentPlatformModel.js +521 -390
  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 +94 -36
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
  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 +19 -19
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  142. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
  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 +7602 -1269
  157. package/sdk/platform/Order/OrderPlatformModel.js +3926 -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 +48 -38
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +134 -43
  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 +38 -44
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +56 -62
  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 +2 -2
  193. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  194. package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
  195. package/sdk/platform/Share/SharePlatformModel.js +27 -4
  196. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  197. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
  198. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
  199. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
  200. package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
  201. package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
  202. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  203. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  204. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  205. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  206. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  207. package/sdk/platform/User/UserPlatformModel.js +23 -23
  208. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
  209. package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
  210. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
  211. package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
  212. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  213. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  214. package/sdk/platform/index.d.ts +0 -1
  215. package/sdk/platform/index.js +0 -2
  216. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
  217. package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
  218. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  219. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  220. package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
  221. package/sdk/public/Content/ContentPublicClient.js +895 -8
  222. package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
  223. package/sdk/public/Content/ContentPublicModel.js +649 -3
  224. package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
  225. package/sdk/public/Content/ContentPublicValidator.js +88 -2
  226. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  227. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  228. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  229. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  230. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  231. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  232. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  233. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  234. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  235. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  236. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  237. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
@@ -2,21 +2,16 @@ const Joi = require("joi");
2
2
 
3
3
  const ContentPlatformModel = require("./ContentPlatformModel");
4
4
 
5
- /**
6
- * @typedef CreateCustomFieldByResourceIdParam
7
- * @property {string} resource
8
- * @property {string} resourceId
9
- * @property {ContentPlatformModel.CustomFieldRequestSchema} body
10
- */
11
-
12
5
  /**
13
6
  * @typedef CreateCustomFieldDefinitionParam
7
+ * @property {string} resource
14
8
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
15
9
  */
16
10
 
17
11
  /**
18
- * @typedef CreateCustomObjectParam
19
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
12
+ * @typedef CreateCustomObjectBySlugParam
13
+ * @property {string} definitionSlug
14
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
20
15
  */
21
16
 
22
17
  /**
@@ -25,60 +20,81 @@ const ContentPlatformModel = require("./ContentPlatformModel");
25
20
  */
26
21
 
27
22
  /**
28
- * @typedef DeleteCustomFieldDefinitionParam
29
- * @property {string} definitionId
23
+ * @typedef DeleteCustomFieldDefinitionBySlugParam
24
+ * @property {string} slug
25
+ * @property {string} resource
26
+ * @property {string} namespace
30
27
  */
31
28
 
32
29
  /**
33
- * @typedef DeleteCustomObjectParam
34
- * @property {string} metaobjectId
30
+ * @typedef DeleteCustomFieldsByResourceSlugParam
31
+ * @property {string} resource
32
+ * @property {string} resourceSlug
33
+ * @property {string} ids
35
34
  */
36
35
 
37
36
  /**
38
- * @typedef DeleteCustomObjectDefinitionParam
39
- * @property {string} definitionId
37
+ * @typedef DeleteCustomObjectBySlugParam
38
+ * @property {string} definitionSlug
39
+ * @property {string} slug
40
40
  */
41
41
 
42
42
  /**
43
- * @typedef ExportCustomObjectEntriesParam
44
- * @property {string} definitionId
43
+ * @typedef DeleteCustomObjectDefinitionBySlugParam
44
+ * @property {string} slug
45
45
  */
46
46
 
47
47
  /**
48
- * @typedef GetCustomFieldDefinitionParam
49
- * @property {string} definitionId
48
+ * @typedef ExportCustomObjectEntriesBySlugParam
49
+ * @property {string} slug
50
50
  */
51
51
 
52
52
  /**
53
- * @typedef GetCustomFieldDefinitionsParam
53
+ * @typedef GetCustomFieldDefinitionByResourceParam
54
54
  * @property {string} pageNo
55
55
  * @property {string} pageSize
56
- * @property {string} [resource]
57
- * @property {string} [type]
56
+ * @property {string} resource
57
+ * @property {string} [types]
58
58
  * @property {string} [search]
59
+ * @property {string} [slugs]
60
+ * @property {string} [namespaces]
59
61
  */
60
62
 
61
- /** @typedef GetCustomFieldTypesParam */
62
-
63
63
  /**
64
- * @typedef GetCustomFieldsParam
64
+ * @typedef GetCustomFieldDefinitionBySlugParam
65
+ * @property {string} slug
65
66
  * @property {string} resource
67
+ * @property {string} namespace
66
68
  */
67
69
 
68
70
  /**
69
- * @typedef GetCustomFieldsByResourceIdParam
71
+ * @typedef GetCustomFieldDefinitionsParam
72
+ * @property {string} pageNo
73
+ * @property {string} pageSize
74
+ * @property {string} [resources]
75
+ * @property {string} [types]
76
+ * @property {string} [search]
77
+ * @property {string} [slugs]
78
+ * @property {string} [namespaces]
79
+ */
80
+
81
+ /** @typedef GetCustomFieldTypesParam */
82
+
83
+ /**
84
+ * @typedef GetCustomFieldsByResourceSlugParam
70
85
  * @property {string} resource
71
- * @property {string} resourceId
86
+ * @property {string} resourceSlug
72
87
  */
73
88
 
74
89
  /**
75
- * @typedef GetCustomObjectParam
76
- * @property {string} metaobjectId
90
+ * @typedef GetCustomObjectBySlugParam
91
+ * @property {string} definitionSlug
92
+ * @property {string} slug
77
93
  */
78
94
 
79
95
  /**
80
- * @typedef GetCustomObjectDefinitionParam
81
- * @property {string} definitionId
96
+ * @typedef GetCustomObjectDefinitionBySlugParam
97
+ * @property {string} slug
82
98
  */
83
99
 
84
100
  /**
@@ -89,10 +105,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
89
105
  */
90
106
 
91
107
  /**
92
- * @typedef GetCustomObjectsParam
93
- * @property {string} [definitionId]
108
+ * @typedef GetCustomObjectsBySlugParam
94
109
  * @property {string} pageNo
95
110
  * @property {string} pageSize
111
+ * @property {string} definitionSlug
96
112
  */
97
113
 
98
114
  /**
@@ -105,55 +121,58 @@ const ContentPlatformModel = require("./ContentPlatformModel");
105
121
  /** @typedef GetResourcesParam */
106
122
 
107
123
  /**
108
- * @typedef ImportCustomObjectEntriesParam
109
- * @property {string} definitionId
124
+ * @typedef ImportCustomObjectEntriesBySlugParam
125
+ * @property {string} slug
110
126
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
111
127
  */
112
128
 
113
129
  /**
114
- * @typedef SampleCustomObjectBulkEntryParam
115
- * @property {string} definitionId
130
+ * @typedef SampleCustomObjectBulkEntryBySlugParam
131
+ * @property {string} slug
116
132
  */
117
133
 
118
134
  /**
119
- * @typedef UpdateCustomFieldDefinitionParam
120
- * @property {string} definitionId
135
+ * @typedef UpdateCustomFieldByResourceSlugParam
136
+ * @property {string} resource
137
+ * @property {string} resourceSlug
138
+ * @property {ContentPlatformModel.CustomFieldRequestSchema} body
139
+ */
140
+
141
+ /**
142
+ * @typedef UpdateCustomFieldDefinitionBySlugParam
143
+ * @property {string} slug
144
+ * @property {string} resource
145
+ * @property {string} namespace
121
146
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
122
147
  */
123
148
 
124
149
  /**
125
- * @typedef UpdateCustomObjectParam
126
- * @property {string} metaobjectId
127
- * @property {ContentPlatformModel.CustomObjectRequestSchema} body
150
+ * @typedef UpdateCustomObjectBySlugParam
151
+ * @property {string} definitionSlug
152
+ * @property {string} slug
153
+ * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
128
154
  */
129
155
 
130
156
  /**
131
- * @typedef UpdateCustomObjectDefinitionParam
132
- * @property {string} definitionId
157
+ * @typedef UpdateCustomObjectDefinitionBySlugParam
158
+ * @property {string} slug
133
159
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
134
160
  */
135
161
 
136
162
  class ContentPlatformValidator {
137
- /** @returns {CreateCustomFieldByResourceIdParam} */
138
- static createCustomFieldByResourceId() {
139
- return Joi.object({
140
- resource: Joi.string().allow("").required(),
141
- resourceId: Joi.string().allow("").required(),
142
- body: ContentPlatformModel.CustomFieldRequestSchema().required(),
143
- }).required();
144
- }
145
-
146
163
  /** @returns {CreateCustomFieldDefinitionParam} */
147
164
  static createCustomFieldDefinition() {
148
165
  return Joi.object({
166
+ resource: Joi.string().allow("").required(),
149
167
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
150
168
  }).required();
151
169
  }
152
170
 
153
- /** @returns {CreateCustomObjectParam} */
154
- static createCustomObject() {
171
+ /** @returns {CreateCustomObjectBySlugParam} */
172
+ static createCustomObjectBySlug() {
155
173
  return Joi.object({
156
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
174
+ definitionSlug: Joi.string().allow("").required(),
175
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
157
176
  }).required();
158
177
  }
159
178
 
@@ -164,38 +183,65 @@ class ContentPlatformValidator {
164
183
  }).required();
165
184
  }
166
185
 
167
- /** @returns {DeleteCustomFieldDefinitionParam} */
168
- static deleteCustomFieldDefinition() {
186
+ /** @returns {DeleteCustomFieldDefinitionBySlugParam} */
187
+ static deleteCustomFieldDefinitionBySlug() {
169
188
  return Joi.object({
170
- definitionId: Joi.string().allow("").required(),
189
+ slug: Joi.string().allow("").required(),
190
+ resource: Joi.string().allow("").required(),
191
+ namespace: Joi.string().allow("").required(),
171
192
  }).required();
172
193
  }
173
194
 
174
- /** @returns {DeleteCustomObjectParam} */
175
- static deleteCustomObject() {
195
+ /** @returns {DeleteCustomFieldsByResourceSlugParam} */
196
+ static deleteCustomFieldsByResourceSlug() {
176
197
  return Joi.object({
177
- metaobjectId: Joi.string().allow("").required(),
198
+ resource: Joi.string().allow("").required(),
199
+ resourceSlug: Joi.string().allow("").required(),
200
+ ids: Joi.string().allow("").required(),
178
201
  }).required();
179
202
  }
180
203
 
181
- /** @returns {DeleteCustomObjectDefinitionParam} */
182
- static deleteCustomObjectDefinition() {
204
+ /** @returns {DeleteCustomObjectBySlugParam} */
205
+ static deleteCustomObjectBySlug() {
183
206
  return Joi.object({
184
- definitionId: Joi.string().allow("").required(),
207
+ definitionSlug: Joi.string().allow("").required(),
208
+ slug: Joi.string().allow("").required(),
185
209
  }).required();
186
210
  }
187
211
 
188
- /** @returns {ExportCustomObjectEntriesParam} */
189
- static exportCustomObjectEntries() {
212
+ /** @returns {DeleteCustomObjectDefinitionBySlugParam} */
213
+ static deleteCustomObjectDefinitionBySlug() {
190
214
  return Joi.object({
191
- definitionId: Joi.string().allow("").required(),
215
+ slug: Joi.string().allow("").required(),
216
+ }).required();
217
+ }
218
+
219
+ /** @returns {ExportCustomObjectEntriesBySlugParam} */
220
+ static exportCustomObjectEntriesBySlug() {
221
+ return Joi.object({
222
+ slug: Joi.string().allow("").required(),
223
+ }).required();
224
+ }
225
+
226
+ /** @returns {GetCustomFieldDefinitionByResourceParam} */
227
+ static getCustomFieldDefinitionByResource() {
228
+ return Joi.object({
229
+ pageNo: Joi.string().allow("").required(),
230
+ pageSize: Joi.string().allow("").required(),
231
+ resource: Joi.string().allow("").required(),
232
+ types: Joi.string().allow(""),
233
+ search: Joi.string().allow(""),
234
+ slugs: Joi.string().allow(""),
235
+ namespaces: Joi.string().allow(""),
192
236
  }).required();
193
237
  }
194
238
 
195
- /** @returns {GetCustomFieldDefinitionParam} */
196
- static getCustomFieldDefinition() {
239
+ /** @returns {GetCustomFieldDefinitionBySlugParam} */
240
+ static getCustomFieldDefinitionBySlug() {
197
241
  return Joi.object({
198
- definitionId: Joi.string().allow("").required(),
242
+ slug: Joi.string().allow("").required(),
243
+ resource: Joi.string().allow("").required(),
244
+ namespace: Joi.string().allow("").required(),
199
245
  }).required();
200
246
  }
201
247
 
@@ -204,9 +250,11 @@ class ContentPlatformValidator {
204
250
  return Joi.object({
205
251
  pageNo: Joi.string().allow("").required(),
206
252
  pageSize: Joi.string().allow("").required(),
207
- resource: Joi.string().allow(""),
208
- type: Joi.string().allow(""),
253
+ resources: Joi.string().allow(""),
254
+ types: Joi.string().allow(""),
209
255
  search: Joi.string().allow(""),
256
+ slugs: Joi.string().allow(""),
257
+ namespaces: Joi.string().allow(""),
210
258
  }).required();
211
259
  }
212
260
 
@@ -215,32 +263,26 @@ class ContentPlatformValidator {
215
263
  return Joi.object({}).required();
216
264
  }
217
265
 
218
- /** @returns {GetCustomFieldsParam} */
219
- static getCustomFields() {
220
- return Joi.object({
221
- resource: Joi.string().allow("").required(),
222
- }).required();
223
- }
224
-
225
- /** @returns {GetCustomFieldsByResourceIdParam} */
226
- static getCustomFieldsByResourceId() {
266
+ /** @returns {GetCustomFieldsByResourceSlugParam} */
267
+ static getCustomFieldsByResourceSlug() {
227
268
  return Joi.object({
228
269
  resource: Joi.string().allow("").required(),
229
- resourceId: Joi.string().allow("").required(),
270
+ resourceSlug: Joi.string().allow("").required(),
230
271
  }).required();
231
272
  }
232
273
 
233
- /** @returns {GetCustomObjectParam} */
234
- static getCustomObject() {
274
+ /** @returns {GetCustomObjectBySlugParam} */
275
+ static getCustomObjectBySlug() {
235
276
  return Joi.object({
236
- metaobjectId: Joi.string().allow("").required(),
277
+ definitionSlug: Joi.string().allow("").required(),
278
+ slug: Joi.string().allow("").required(),
237
279
  }).required();
238
280
  }
239
281
 
240
- /** @returns {GetCustomObjectDefinitionParam} */
241
- static getCustomObjectDefinition() {
282
+ /** @returns {GetCustomObjectDefinitionBySlugParam} */
283
+ static getCustomObjectDefinitionBySlug() {
242
284
  return Joi.object({
243
- definitionId: Joi.string().allow("").required(),
285
+ slug: Joi.string().allow("").required(),
244
286
  }).required();
245
287
  }
246
288
 
@@ -253,12 +295,12 @@ class ContentPlatformValidator {
253
295
  }).required();
254
296
  }
255
297
 
256
- /** @returns {GetCustomObjectsParam} */
257
- static getCustomObjects() {
298
+ /** @returns {GetCustomObjectsBySlugParam} */
299
+ static getCustomObjectsBySlug() {
258
300
  return Joi.object({
259
- definitionId: Joi.string().allow(""),
260
301
  pageNo: Joi.string().allow("").required(),
261
302
  pageSize: Joi.string().allow("").required(),
303
+ definitionSlug: Joi.string().allow("").required(),
262
304
  }).required();
263
305
  }
264
306
 
@@ -276,41 +318,53 @@ class ContentPlatformValidator {
276
318
  return Joi.object({}).required();
277
319
  }
278
320
 
279
- /** @returns {ImportCustomObjectEntriesParam} */
280
- static importCustomObjectEntries() {
321
+ /** @returns {ImportCustomObjectEntriesBySlugParam} */
322
+ static importCustomObjectEntriesBySlug() {
281
323
  return Joi.object({
282
- definitionId: Joi.string().allow("").required(),
324
+ slug: Joi.string().allow("").required(),
283
325
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
284
326
  }).required();
285
327
  }
286
328
 
287
- /** @returns {SampleCustomObjectBulkEntryParam} */
288
- static sampleCustomObjectBulkEntry() {
329
+ /** @returns {SampleCustomObjectBulkEntryBySlugParam} */
330
+ static sampleCustomObjectBulkEntryBySlug() {
289
331
  return Joi.object({
290
- definitionId: Joi.string().allow("").required(),
332
+ slug: Joi.string().allow("").required(),
291
333
  }).required();
292
334
  }
293
335
 
294
- /** @returns {UpdateCustomFieldDefinitionParam} */
295
- static updateCustomFieldDefinition() {
336
+ /** @returns {UpdateCustomFieldByResourceSlugParam} */
337
+ static updateCustomFieldByResourceSlug() {
296
338
  return Joi.object({
297
- definitionId: Joi.string().allow("").required(),
339
+ resource: Joi.string().allow("").required(),
340
+ resourceSlug: Joi.string().allow("").required(),
341
+ body: ContentPlatformModel.CustomFieldRequestSchema().required(),
342
+ }).required();
343
+ }
344
+
345
+ /** @returns {UpdateCustomFieldDefinitionBySlugParam} */
346
+ static updateCustomFieldDefinitionBySlug() {
347
+ return Joi.object({
348
+ slug: Joi.string().allow("").required(),
349
+ resource: Joi.string().allow("").required(),
350
+ namespace: Joi.string().allow("").required(),
298
351
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
299
352
  }).required();
300
353
  }
301
354
 
302
- /** @returns {UpdateCustomObjectParam} */
303
- static updateCustomObject() {
355
+ /** @returns {UpdateCustomObjectBySlugParam} */
356
+ static updateCustomObjectBySlug() {
304
357
  return Joi.object({
305
- metaobjectId: Joi.string().allow("").required(),
306
- body: ContentPlatformModel.CustomObjectRequestSchema().required(),
358
+ definitionSlug: Joi.string().allow("").required(),
359
+ slug: Joi.string().allow("").required(),
360
+ body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
307
361
  }).required();
308
362
  }
309
363
 
310
- /** @returns {UpdateCustomObjectDefinitionParam} */
311
- static updateCustomObjectDefinition() {
364
+ /** @returns {UpdateCustomObjectDefinitionBySlugParam} */
365
+ static updateCustomObjectDefinitionBySlug() {
312
366
  return Joi.object({
313
- definitionId: Joi.string().allow("").required(),
367
+ slug: Joi.string().allow("").required(),
314
368
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
315
369
  }).required();
316
370
  }
@@ -6,22 +6,24 @@ declare class Discount {
6
6
  * @param {DiscountPlatformValidator.CancelDownloadJobParam} arg - Arg object
7
7
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
8
8
  * @param {import("../PlatformAPIClient").Options} - Options
9
- * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
9
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
10
+ * Success response
10
11
  * @name cancelDownloadJob
11
12
  * @summary: delete discount download job
12
13
  * @description: Cancel a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
13
14
  */
14
- cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
15
+ cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponseSchema>;
15
16
  /**
16
17
  * @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
17
18
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
19
  * @param {import("../PlatformAPIClient").Options} - Options
19
- * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
20
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
21
+ * Success response
20
22
  * @name cancelValidationJob
21
23
  * @summary: deletel validation job discount
22
24
  * @description: Cancel validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
23
25
  */
24
- cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
26
+ cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponseSchema>;
25
27
  /**
26
28
  * @param {DiscountPlatformValidator.CreateDiscountParam} arg - Arg object
27
29
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -36,12 +38,12 @@ declare class Discount {
36
38
  * @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
37
39
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
40
  * @param {import("../PlatformAPIClient").Options} - Options
39
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
41
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
40
42
  * @name downloadDiscountFile
41
43
  * @summary: Get discount file
42
44
  * @description: Retrieve a discount file by its type, it could be product or inventory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
43
45
  */
44
- downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
46
+ downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
45
47
  /**
46
48
  * @param {DiscountPlatformValidator.GetDiscountParam} arg - Arg object
47
49
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -66,22 +68,22 @@ declare class Discount {
66
68
  * @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
67
69
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
68
70
  * @param {import("../PlatformAPIClient").Options} - Options
69
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
71
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
70
72
  * @name getDownloadJob
71
73
  * @summary: List discount download job
72
74
  * @description: Retrieve a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
73
75
  */
74
- getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
76
+ getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
75
77
  /**
76
78
  * @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
77
79
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
78
80
  * @param {import("../PlatformAPIClient").Options} - Options
79
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
81
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
80
82
  * @name getValidationJob
81
83
  * @summary: List validation job discount
82
84
  * @description: Retrieve a validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
83
85
  */
84
- getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
86
+ getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
85
87
  /**
86
88
  * @param {DiscountPlatformValidator.UpdateDiscountParam} arg - Arg object
87
89
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -106,12 +108,12 @@ declare class Discount {
106
108
  * @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
107
109
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
108
110
  * @param {import("../PlatformAPIClient").Options} - Options
109
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
111
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
110
112
  * @name validateDiscountFile
111
113
  * @summary: Validate discount file
112
114
  * @description: Validates the discount file for any discrepancies. like item should be valid etc.. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
113
115
  */
114
- validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
116
+ validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
115
117
  }
116
118
  import DiscountPlatformValidator = require("./DiscountPlatformValidator");
117
119
  import DiscountPlatformModel = require("./DiscountPlatformModel");
@@ -18,7 +18,8 @@ class Discount {
18
18
  * @param {DiscountPlatformValidator.CancelDownloadJobParam} arg - Arg object
19
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
20
20
  * @param {import("../PlatformAPIClient").Options} - Options
21
- * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
21
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
22
+ * Success response
22
23
  * @name cancelDownloadJob
23
24
  * @summary: delete discount download job
24
25
  * @description: Cancel a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
@@ -74,7 +75,7 @@ class Discount {
74
75
 
75
76
  const {
76
77
  error: res_error,
77
- } = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
78
+ } = DiscountPlatformModel.CancelJobResponseSchema().validate(responseData, {
78
79
  abortEarly: false,
79
80
  allowUnknown: true,
80
81
  });
@@ -97,7 +98,8 @@ class Discount {
97
98
  * @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
98
99
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
99
100
  * @param {import("../PlatformAPIClient").Options} - Options
100
- * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
101
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
102
+ * Success response
101
103
  * @name cancelValidationJob
102
104
  * @summary: deletel validation job discount
103
105
  * @description: Cancel validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
@@ -153,7 +155,7 @@ class Discount {
153
155
 
154
156
  const {
155
157
  error: res_error,
156
- } = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
158
+ } = DiscountPlatformModel.CancelJobResponseSchema().validate(responseData, {
157
159
  abortEarly: false,
158
160
  allowUnknown: true,
159
161
  });
@@ -255,7 +257,7 @@ class Discount {
255
257
  * @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
256
258
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
257
259
  * @param {import("../PlatformAPIClient").Options} - Options
258
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
260
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
259
261
  * @name downloadDiscountFile
260
262
  * @summary: Get discount file
261
263
  * @description: Retrieve a discount file by its type, it could be product or inventory. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/downloadDiscountFile/).
@@ -313,7 +315,7 @@ class Discount {
313
315
 
314
316
  const {
315
317
  error: res_error,
316
- } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
318
+ } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
317
319
  abortEarly: false,
318
320
  allowUnknown: true,
319
321
  });
@@ -530,7 +532,7 @@ class Discount {
530
532
  * @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
531
533
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
532
534
  * @param {import("../PlatformAPIClient").Options} - Options
533
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
535
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
534
536
  * @name getDownloadJob
535
537
  * @summary: List discount download job
536
538
  * @description: Retrieve a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
@@ -586,7 +588,7 @@ class Discount {
586
588
 
587
589
  const {
588
590
  error: res_error,
589
- } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
591
+ } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
590
592
  abortEarly: false,
591
593
  allowUnknown: true,
592
594
  });
@@ -609,7 +611,7 @@ class Discount {
609
611
  * @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
610
612
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
611
613
  * @param {import("../PlatformAPIClient").Options} - Options
612
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
614
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
613
615
  * @name getValidationJob
614
616
  * @summary: List validation job discount
615
617
  * @description: Retrieve a validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getValidationJob/).
@@ -665,7 +667,7 @@ class Discount {
665
667
 
666
668
  const {
667
669
  error: res_error,
668
- } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
670
+ } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
669
671
  abortEarly: false,
670
672
  allowUnknown: true,
671
673
  });
@@ -848,7 +850,7 @@ class Discount {
848
850
  * @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
849
851
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
850
852
  * @param {import("../PlatformAPIClient").Options} - Options
851
- * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
853
+ * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
852
854
  * @name validateDiscountFile
853
855
  * @summary: Validate discount file
854
856
  * @description: Validates the discount file for any discrepancies. like item should be valid etc.. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/validateDiscountFile/).
@@ -907,7 +909,7 @@ class Discount {
907
909
 
908
910
  const {
909
911
  error: res_error,
910
- } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
912
+ } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
911
913
  abortEarly: false,
912
914
  allowUnknown: true,
913
915
  });