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

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 (242) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
  6. package/sdk/application/Cart/CartApplicationClient.js +27 -117
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +29 -30
  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 +30 -51
  14. package/sdk/application/Content/ContentApplicationClient.js +56 -161
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -9
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -7
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  18. package/sdk/application/Lead/LeadApplicationClient.js +1 -1
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +8 -101
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  22. package/sdk/application/Order/OrderApplicationClient.js +8 -56
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  24. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  28. package/sdk/application/Theme/ThemeApplicationClient.js +2 -4
  29. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  30. package/sdk/application/User/UserApplicationClient.js +6 -6
  31. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  32. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  33. package/sdk/common/Utility.js +6 -3
  34. package/sdk/common/utils.d.ts +0 -1
  35. package/sdk/common/utils.js +0 -14
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
  39. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -121
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  41. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  42. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  43. package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
  44. package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
  45. package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
  47. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  49. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  51. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  52. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
  53. package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
  54. package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
  55. package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
  56. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  57. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
  58. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
  59. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
  60. package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
  61. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
  62. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
  63. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
  64. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
  65. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
  66. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
  67. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  68. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  69. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
  70. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
  71. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  72. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  73. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  74. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  75. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  76. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  77. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  78. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  79. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
  80. package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
  81. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -121
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1294 -5068
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1992
  85. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
  86. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
  87. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
  88. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
  89. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
  90. package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
  91. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6389
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1681 -3222
  93. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
  94. package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
  95. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
  96. package/sdk/platform/Common/CommonPlatformClient.js +2 -3
  97. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  98. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  99. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
  100. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
  101. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
  102. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
  103. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
  104. package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
  105. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
  106. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
  107. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
  108. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
  109. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  110. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  111. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
  112. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
  113. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
  114. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
  115. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
  116. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
  117. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
  118. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
  119. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
  120. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
  121. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -204
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +475 -1073
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -253
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -256
  125. package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
  126. package/sdk/platform/Content/ContentPlatformClient.js +336 -523
  127. package/sdk/platform/Content/ContentPlatformModel.d.ts +403 -1375
  128. package/sdk/platform/Content/ContentPlatformModel.js +394 -631
  129. package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
  130. package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
  131. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
  132. package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
  133. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
  134. package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
  135. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  136. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  137. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +39 -95
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -462
  139. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
  141. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +22 -20
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -313
  145. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  146. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  147. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  148. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  149. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
  150. package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
  151. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  152. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  153. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  154. package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
  155. package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
  156. package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
  157. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
  159. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
  161. package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
  162. package/sdk/platform/Order/OrderPlatformClient.js +198 -416
  163. package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
  164. package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
  165. package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
  166. package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
  167. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  168. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  169. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  170. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  171. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
  172. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
  173. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
  174. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
  175. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  176. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  177. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
  178. package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
  179. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  180. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  181. package/sdk/platform/PlatformClient.d.ts +2 -0
  182. package/sdk/platform/PlatformClient.js +4 -0
  183. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  184. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  185. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  186. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  187. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
  188. package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
  190. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
  191. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
  192. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +68 -62
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +49 -45
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +30 -28
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +9 -9
  201. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -3
  202. package/sdk/platform/Share/SharePlatformApplicationValidator.js +2 -2
  203. package/sdk/platform/Share/SharePlatformModel.d.ts +7 -46
  204. package/sdk/platform/Share/SharePlatformModel.js +6 -31
  205. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  206. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  207. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  208. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  209. package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
  210. package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
  211. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  212. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  213. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  214. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  215. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  216. package/sdk/platform/User/UserPlatformModel.js +23 -23
  217. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  218. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  219. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  220. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  221. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  222. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  223. package/sdk/platform/index.d.ts +1 -0
  224. package/sdk/platform/index.js +2 -0
  225. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  226. package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
  227. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  228. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  229. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  230. package/sdk/public/Content/ContentPublicClient.js +6 -810
  231. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  232. package/sdk/public/Content/ContentPublicModel.js +3 -649
  233. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  234. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  235. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  236. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  237. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  238. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  239. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  240. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  241. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  242. package/sdk/application/Finance/FinanceApplicationClient.js +0 -111
@@ -3,15 +3,20 @@ const Joi = require("joi");
3
3
  const ContentPlatformModel = require("./ContentPlatformModel");
4
4
 
5
5
  /**
6
- * @typedef CreateCustomFieldDefinitionParam
6
+ * @typedef CreateCustomFieldByResourceIdParam
7
7
  * @property {string} resource
8
+ * @property {string} resourceId
9
+ * @property {ContentPlatformModel.CustomFieldRequestSchema} body
10
+ */
11
+
12
+ /**
13
+ * @typedef CreateCustomFieldDefinitionParam
8
14
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
9
15
  */
10
16
 
11
17
  /**
12
- * @typedef CreateCustomObjectBySlugParam
13
- * @property {string} definitionSlug
14
- * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
18
+ * @typedef CreateCustomObjectParam
19
+ * @property {ContentPlatformModel.CustomObjectRequestSchema} body
15
20
  */
16
21
 
17
22
  /**
@@ -20,81 +25,60 @@ const ContentPlatformModel = require("./ContentPlatformModel");
20
25
  */
21
26
 
22
27
  /**
23
- * @typedef DeleteCustomFieldDefinitionBySlugParam
24
- * @property {string} slug
25
- * @property {string} resource
26
- * @property {string} namespace
28
+ * @typedef DeleteCustomFieldDefinitionParam
29
+ * @property {string} definitionId
27
30
  */
28
31
 
29
32
  /**
30
- * @typedef DeleteCustomFieldsByResourceSlugParam
31
- * @property {string} resource
32
- * @property {string} resourceSlug
33
- * @property {string} ids
33
+ * @typedef DeleteCustomObjectParam
34
+ * @property {string} metaobjectId
34
35
  */
35
36
 
36
37
  /**
37
- * @typedef DeleteCustomObjectBySlugParam
38
- * @property {string} definitionSlug
39
- * @property {string} slug
38
+ * @typedef DeleteCustomObjectDefinitionParam
39
+ * @property {string} definitionId
40
40
  */
41
41
 
42
42
  /**
43
- * @typedef DeleteCustomObjectDefinitionBySlugParam
44
- * @property {string} slug
43
+ * @typedef ExportCustomObjectEntriesParam
44
+ * @property {string} definitionId
45
45
  */
46
46
 
47
47
  /**
48
- * @typedef ExportCustomObjectEntriesBySlugParam
49
- * @property {string} slug
48
+ * @typedef GetCustomFieldDefinitionParam
49
+ * @property {string} definitionId
50
50
  */
51
51
 
52
52
  /**
53
- * @typedef GetCustomFieldDefinitionByResourceParam
53
+ * @typedef GetCustomFieldDefinitionsParam
54
54
  * @property {string} pageNo
55
55
  * @property {string} pageSize
56
- * @property {string} resource
57
- * @property {string} [types]
56
+ * @property {string} [resource]
57
+ * @property {string} [type]
58
58
  * @property {string} [search]
59
- * @property {string} [slugs]
60
- * @property {string} [namespaces]
61
59
  */
62
60
 
63
- /**
64
- * @typedef GetCustomFieldDefinitionBySlugParam
65
- * @property {string} slug
66
- * @property {string} resource
67
- * @property {string} namespace
68
- */
61
+ /** @typedef GetCustomFieldTypesParam */
69
62
 
70
63
  /**
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]
64
+ * @typedef GetCustomFieldsParam
65
+ * @property {string} resource
79
66
  */
80
67
 
81
- /** @typedef GetCustomFieldTypesParam */
82
-
83
68
  /**
84
- * @typedef GetCustomFieldsByResourceSlugParam
69
+ * @typedef GetCustomFieldsByResourceIdParam
85
70
  * @property {string} resource
86
- * @property {string} resourceSlug
71
+ * @property {string} resourceId
87
72
  */
88
73
 
89
74
  /**
90
- * @typedef GetCustomObjectBySlugParam
91
- * @property {string} definitionSlug
92
- * @property {string} slug
75
+ * @typedef GetCustomObjectParam
76
+ * @property {string} metaobjectId
93
77
  */
94
78
 
95
79
  /**
96
- * @typedef GetCustomObjectDefinitionBySlugParam
97
- * @property {string} slug
80
+ * @typedef GetCustomObjectDefinitionParam
81
+ * @property {string} definitionId
98
82
  */
99
83
 
100
84
  /**
@@ -105,10 +89,10 @@ const ContentPlatformModel = require("./ContentPlatformModel");
105
89
  */
106
90
 
107
91
  /**
108
- * @typedef GetCustomObjectsBySlugParam
92
+ * @typedef GetCustomObjectsParam
93
+ * @property {string} [definitionId]
109
94
  * @property {string} pageNo
110
95
  * @property {string} pageSize
111
- * @property {string} definitionSlug
112
96
  */
113
97
 
114
98
  /**
@@ -121,58 +105,55 @@ const ContentPlatformModel = require("./ContentPlatformModel");
121
105
  /** @typedef GetResourcesParam */
122
106
 
123
107
  /**
124
- * @typedef ImportCustomObjectEntriesBySlugParam
125
- * @property {string} slug
108
+ * @typedef ImportCustomObjectEntriesParam
109
+ * @property {string} definitionId
126
110
  * @property {ContentPlatformModel.CustomObjectBulkSchema} body
127
111
  */
128
112
 
129
113
  /**
130
- * @typedef SampleCustomObjectBulkEntryBySlugParam
131
- * @property {string} slug
114
+ * @typedef SampleCustomObjectBulkEntryParam
115
+ * @property {string} definitionId
132
116
  */
133
117
 
134
118
  /**
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
119
+ * @typedef UpdateCustomFieldDefinitionParam
120
+ * @property {string} definitionId
146
121
  * @property {ContentPlatformModel.CustomFieldDefinitionRequestSchema} body
147
122
  */
148
123
 
149
124
  /**
150
- * @typedef UpdateCustomObjectBySlugParam
151
- * @property {string} definitionSlug
152
- * @property {string} slug
153
- * @property {ContentPlatformModel.CustomObjectRequestSchemaWithoutId} body
125
+ * @typedef UpdateCustomObjectParam
126
+ * @property {string} metaobjectId
127
+ * @property {ContentPlatformModel.CustomObjectRequestSchema} body
154
128
  */
155
129
 
156
130
  /**
157
- * @typedef UpdateCustomObjectDefinitionBySlugParam
158
- * @property {string} slug
131
+ * @typedef UpdateCustomObjectDefinitionParam
132
+ * @property {string} definitionId
159
133
  * @property {ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema} body
160
134
  */
161
135
 
162
136
  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
+
163
146
  /** @returns {CreateCustomFieldDefinitionParam} */
164
147
  static createCustomFieldDefinition() {
165
148
  return Joi.object({
166
- resource: Joi.string().allow("").required(),
167
149
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
168
150
  }).required();
169
151
  }
170
152
 
171
- /** @returns {CreateCustomObjectBySlugParam} */
172
- static createCustomObjectBySlug() {
153
+ /** @returns {CreateCustomObjectParam} */
154
+ static createCustomObject() {
173
155
  return Joi.object({
174
- definitionSlug: Joi.string().allow("").required(),
175
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
156
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
176
157
  }).required();
177
158
  }
178
159
 
@@ -183,65 +164,38 @@ class ContentPlatformValidator {
183
164
  }).required();
184
165
  }
185
166
 
186
- /** @returns {DeleteCustomFieldDefinitionBySlugParam} */
187
- static deleteCustomFieldDefinitionBySlug() {
167
+ /** @returns {DeleteCustomFieldDefinitionParam} */
168
+ static deleteCustomFieldDefinition() {
188
169
  return Joi.object({
189
- slug: Joi.string().allow("").required(),
190
- resource: Joi.string().allow("").required(),
191
- namespace: Joi.string().allow("").required(),
170
+ definitionId: Joi.string().allow("").required(),
192
171
  }).required();
193
172
  }
194
173
 
195
- /** @returns {DeleteCustomFieldsByResourceSlugParam} */
196
- static deleteCustomFieldsByResourceSlug() {
174
+ /** @returns {DeleteCustomObjectParam} */
175
+ static deleteCustomObject() {
197
176
  return Joi.object({
198
- resource: Joi.string().allow("").required(),
199
- resourceSlug: Joi.string().allow("").required(),
200
- ids: Joi.string().allow("").required(),
177
+ metaobjectId: Joi.string().allow("").required(),
201
178
  }).required();
202
179
  }
203
180
 
204
- /** @returns {DeleteCustomObjectBySlugParam} */
205
- static deleteCustomObjectBySlug() {
181
+ /** @returns {DeleteCustomObjectDefinitionParam} */
182
+ static deleteCustomObjectDefinition() {
206
183
  return Joi.object({
207
- definitionSlug: Joi.string().allow("").required(),
208
- slug: Joi.string().allow("").required(),
184
+ definitionId: Joi.string().allow("").required(),
209
185
  }).required();
210
186
  }
211
187
 
212
- /** @returns {DeleteCustomObjectDefinitionBySlugParam} */
213
- static deleteCustomObjectDefinitionBySlug() {
188
+ /** @returns {ExportCustomObjectEntriesParam} */
189
+ static exportCustomObjectEntries() {
214
190
  return Joi.object({
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(""),
191
+ definitionId: Joi.string().allow("").required(),
236
192
  }).required();
237
193
  }
238
194
 
239
- /** @returns {GetCustomFieldDefinitionBySlugParam} */
240
- static getCustomFieldDefinitionBySlug() {
195
+ /** @returns {GetCustomFieldDefinitionParam} */
196
+ static getCustomFieldDefinition() {
241
197
  return Joi.object({
242
- slug: Joi.string().allow("").required(),
243
- resource: Joi.string().allow("").required(),
244
- namespace: Joi.string().allow("").required(),
198
+ definitionId: Joi.string().allow("").required(),
245
199
  }).required();
246
200
  }
247
201
 
@@ -250,11 +204,9 @@ class ContentPlatformValidator {
250
204
  return Joi.object({
251
205
  pageNo: Joi.string().allow("").required(),
252
206
  pageSize: Joi.string().allow("").required(),
253
- resources: Joi.string().allow(""),
254
- types: Joi.string().allow(""),
207
+ resource: Joi.string().allow(""),
208
+ type: Joi.string().allow(""),
255
209
  search: Joi.string().allow(""),
256
- slugs: Joi.string().allow(""),
257
- namespaces: Joi.string().allow(""),
258
210
  }).required();
259
211
  }
260
212
 
@@ -263,26 +215,32 @@ class ContentPlatformValidator {
263
215
  return Joi.object({}).required();
264
216
  }
265
217
 
266
- /** @returns {GetCustomFieldsByResourceSlugParam} */
267
- static getCustomFieldsByResourceSlug() {
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() {
268
227
  return Joi.object({
269
228
  resource: Joi.string().allow("").required(),
270
- resourceSlug: Joi.string().allow("").required(),
229
+ resourceId: Joi.string().allow("").required(),
271
230
  }).required();
272
231
  }
273
232
 
274
- /** @returns {GetCustomObjectBySlugParam} */
275
- static getCustomObjectBySlug() {
233
+ /** @returns {GetCustomObjectParam} */
234
+ static getCustomObject() {
276
235
  return Joi.object({
277
- definitionSlug: Joi.string().allow("").required(),
278
- slug: Joi.string().allow("").required(),
236
+ metaobjectId: Joi.string().allow("").required(),
279
237
  }).required();
280
238
  }
281
239
 
282
- /** @returns {GetCustomObjectDefinitionBySlugParam} */
283
- static getCustomObjectDefinitionBySlug() {
240
+ /** @returns {GetCustomObjectDefinitionParam} */
241
+ static getCustomObjectDefinition() {
284
242
  return Joi.object({
285
- slug: Joi.string().allow("").required(),
243
+ definitionId: Joi.string().allow("").required(),
286
244
  }).required();
287
245
  }
288
246
 
@@ -295,12 +253,12 @@ class ContentPlatformValidator {
295
253
  }).required();
296
254
  }
297
255
 
298
- /** @returns {GetCustomObjectsBySlugParam} */
299
- static getCustomObjectsBySlug() {
256
+ /** @returns {GetCustomObjectsParam} */
257
+ static getCustomObjects() {
300
258
  return Joi.object({
259
+ definitionId: Joi.string().allow(""),
301
260
  pageNo: Joi.string().allow("").required(),
302
261
  pageSize: Joi.string().allow("").required(),
303
- definitionSlug: Joi.string().allow("").required(),
304
262
  }).required();
305
263
  }
306
264
 
@@ -318,53 +276,41 @@ class ContentPlatformValidator {
318
276
  return Joi.object({}).required();
319
277
  }
320
278
 
321
- /** @returns {ImportCustomObjectEntriesBySlugParam} */
322
- static importCustomObjectEntriesBySlug() {
279
+ /** @returns {ImportCustomObjectEntriesParam} */
280
+ static importCustomObjectEntries() {
323
281
  return Joi.object({
324
- slug: Joi.string().allow("").required(),
282
+ definitionId: Joi.string().allow("").required(),
325
283
  body: ContentPlatformModel.CustomObjectBulkSchema().required(),
326
284
  }).required();
327
285
  }
328
286
 
329
- /** @returns {SampleCustomObjectBulkEntryBySlugParam} */
330
- static sampleCustomObjectBulkEntryBySlug() {
287
+ /** @returns {SampleCustomObjectBulkEntryParam} */
288
+ static sampleCustomObjectBulkEntry() {
331
289
  return Joi.object({
332
- slug: Joi.string().allow("").required(),
290
+ definitionId: Joi.string().allow("").required(),
333
291
  }).required();
334
292
  }
335
293
 
336
- /** @returns {UpdateCustomFieldByResourceSlugParam} */
337
- static updateCustomFieldByResourceSlug() {
294
+ /** @returns {UpdateCustomFieldDefinitionParam} */
295
+ static updateCustomFieldDefinition() {
338
296
  return Joi.object({
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(),
297
+ definitionId: Joi.string().allow("").required(),
351
298
  body: ContentPlatformModel.CustomFieldDefinitionRequestSchema().required(),
352
299
  }).required();
353
300
  }
354
301
 
355
- /** @returns {UpdateCustomObjectBySlugParam} */
356
- static updateCustomObjectBySlug() {
302
+ /** @returns {UpdateCustomObjectParam} */
303
+ static updateCustomObject() {
357
304
  return Joi.object({
358
- definitionSlug: Joi.string().allow("").required(),
359
- slug: Joi.string().allow("").required(),
360
- body: ContentPlatformModel.CustomObjectRequestSchemaWithoutId().required(),
305
+ metaobjectId: Joi.string().allow("").required(),
306
+ body: ContentPlatformModel.CustomObjectRequestSchema().required(),
361
307
  }).required();
362
308
  }
363
309
 
364
- /** @returns {UpdateCustomObjectDefinitionBySlugParam} */
365
- static updateCustomObjectDefinitionBySlug() {
310
+ /** @returns {UpdateCustomObjectDefinitionParam} */
311
+ static updateCustomObjectDefinition() {
366
312
  return Joi.object({
367
- slug: Joi.string().allow("").required(),
313
+ definitionId: Joi.string().allow("").required(),
368
314
  body: ContentPlatformModel.CustomObjectDefinitionUpdateRequestSchema().required(),
369
315
  }).required();
370
316
  }
@@ -6,24 +6,22 @@ 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.CancelJobResponseSchema>} -
10
- * Success response
9
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
11
10
  * @name cancelDownloadJob
12
11
  * @summary: delete discount download job
13
12
  * @description: Cancel a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
14
13
  */
15
- cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponseSchema>;
14
+ cancelDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
16
15
  /**
17
16
  * @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
18
17
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
19
18
  * @param {import("../PlatformAPIClient").Options} - Options
20
- * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
21
- * Success response
19
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
22
20
  * @name cancelValidationJob
23
21
  * @summary: deletel validation job discount
24
22
  * @description: Cancel validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
25
23
  */
26
- cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponseSchema>;
24
+ cancelValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.CancelValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.CancelJobResponse>;
27
25
  /**
28
26
  * @param {DiscountPlatformValidator.CreateDiscountParam} arg - Arg object
29
27
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -38,12 +36,12 @@ declare class Discount {
38
36
  * @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
39
37
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
40
38
  * @param {import("../PlatformAPIClient").Options} - Options
41
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
39
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
42
40
  * @name downloadDiscountFile
43
41
  * @summary: Get discount file
44
42
  * @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/).
45
43
  */
46
- downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
44
+ downloadDiscountFile({ type, body, requestHeaders }?: DiscountPlatformValidator.DownloadDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
47
45
  /**
48
46
  * @param {DiscountPlatformValidator.GetDiscountParam} arg - Arg object
49
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -68,22 +66,22 @@ declare class Discount {
68
66
  * @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
69
67
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
70
68
  * @param {import("../PlatformAPIClient").Options} - Options
71
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
69
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
72
70
  * @name getDownloadJob
73
71
  * @summary: List discount download job
74
72
  * @description: Retrieve a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
75
73
  */
76
- getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
74
+ getDownloadJob({ id, requestHeaders }?: DiscountPlatformValidator.GetDownloadJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
77
75
  /**
78
76
  * @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
79
77
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
80
78
  * @param {import("../PlatformAPIClient").Options} - Options
81
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
79
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
82
80
  * @name getValidationJob
83
81
  * @summary: List validation job discount
84
82
  * @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/).
85
83
  */
86
- getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
84
+ getValidationJob({ id, requestHeaders }?: DiscountPlatformValidator.GetValidationJobParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
87
85
  /**
88
86
  * @param {DiscountPlatformValidator.UpdateDiscountParam} arg - Arg object
89
87
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -108,12 +106,12 @@ declare class Discount {
108
106
  * @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
109
107
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
110
108
  * @param {import("../PlatformAPIClient").Options} - Options
111
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
109
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
112
110
  * @name validateDiscountFile
113
111
  * @summary: Validate discount file
114
112
  * @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/).
115
113
  */
116
- validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponseSchema>;
114
+ validateDiscountFile({ body, discount, requestHeaders }?: DiscountPlatformValidator.ValidateDiscountFileParam, { responseHeaders }?: object): Promise<DiscountPlatformModel.FileJobResponse>;
117
115
  }
118
116
  import DiscountPlatformValidator = require("./DiscountPlatformValidator");
119
117
  import DiscountPlatformModel = require("./DiscountPlatformModel");
@@ -18,8 +18,7 @@ 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.CancelJobResponseSchema>} -
22
- * Success response
21
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
23
22
  * @name cancelDownloadJob
24
23
  * @summary: delete discount download job
25
24
  * @description: Cancel a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelDownloadJob/).
@@ -75,7 +74,7 @@ class Discount {
75
74
 
76
75
  const {
77
76
  error: res_error,
78
- } = DiscountPlatformModel.CancelJobResponseSchema().validate(responseData, {
77
+ } = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
79
78
  abortEarly: false,
80
79
  allowUnknown: true,
81
80
  });
@@ -98,8 +97,7 @@ class Discount {
98
97
  * @param {DiscountPlatformValidator.CancelValidationJobParam} arg - Arg object
99
98
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
100
99
  * @param {import("../PlatformAPIClient").Options} - Options
101
- * @returns {Promise<DiscountPlatformModel.CancelJobResponseSchema>} -
102
- * Success response
100
+ * @returns {Promise<DiscountPlatformModel.CancelJobResponse>} - Success response
103
101
  * @name cancelValidationJob
104
102
  * @summary: deletel validation job discount
105
103
  * @description: Cancel validation job of a discount by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/cancelValidationJob/).
@@ -155,7 +153,7 @@ class Discount {
155
153
 
156
154
  const {
157
155
  error: res_error,
158
- } = DiscountPlatformModel.CancelJobResponseSchema().validate(responseData, {
156
+ } = DiscountPlatformModel.CancelJobResponse().validate(responseData, {
159
157
  abortEarly: false,
160
158
  allowUnknown: true,
161
159
  });
@@ -257,7 +255,7 @@ class Discount {
257
255
  * @param {DiscountPlatformValidator.DownloadDiscountFileParam} arg - Arg object
258
256
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
259
257
  * @param {import("../PlatformAPIClient").Options} - Options
260
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
258
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
261
259
  * @name downloadDiscountFile
262
260
  * @summary: Get discount file
263
261
  * @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/).
@@ -315,7 +313,7 @@ class Discount {
315
313
 
316
314
  const {
317
315
  error: res_error,
318
- } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
316
+ } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
319
317
  abortEarly: false,
320
318
  allowUnknown: true,
321
319
  });
@@ -532,7 +530,7 @@ class Discount {
532
530
  * @param {DiscountPlatformValidator.GetDownloadJobParam} arg - Arg object
533
531
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
534
532
  * @param {import("../PlatformAPIClient").Options} - Options
535
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
533
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
536
534
  * @name getDownloadJob
537
535
  * @summary: List discount download job
538
536
  * @description: Retrieve a discount download job by its id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/discount/getDownloadJob/).
@@ -588,7 +586,7 @@ class Discount {
588
586
 
589
587
  const {
590
588
  error: res_error,
591
- } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
589
+ } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
592
590
  abortEarly: false,
593
591
  allowUnknown: true,
594
592
  });
@@ -611,7 +609,7 @@ class Discount {
611
609
  * @param {DiscountPlatformValidator.GetValidationJobParam} arg - Arg object
612
610
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
613
611
  * @param {import("../PlatformAPIClient").Options} - Options
614
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
612
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
615
613
  * @name getValidationJob
616
614
  * @summary: List validation job discount
617
615
  * @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/).
@@ -667,7 +665,7 @@ class Discount {
667
665
 
668
666
  const {
669
667
  error: res_error,
670
- } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
668
+ } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
671
669
  abortEarly: false,
672
670
  allowUnknown: true,
673
671
  });
@@ -850,7 +848,7 @@ class Discount {
850
848
  * @param {DiscountPlatformValidator.ValidateDiscountFileParam} arg - Arg object
851
849
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
852
850
  * @param {import("../PlatformAPIClient").Options} - Options
853
- * @returns {Promise<DiscountPlatformModel.FileJobResponseSchema>} - Success response
851
+ * @returns {Promise<DiscountPlatformModel.FileJobResponse>} - Success response
854
852
  * @name validateDiscountFile
855
853
  * @summary: Validate discount file
856
854
  * @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/).
@@ -909,7 +907,7 @@ class Discount {
909
907
 
910
908
  const {
911
909
  error: res_error,
912
- } = DiscountPlatformModel.FileJobResponseSchema().validate(responseData, {
910
+ } = DiscountPlatformModel.FileJobResponse().validate(responseData, {
913
911
  abortEarly: false,
914
912
  allowUnknown: true,
915
913
  });