@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) 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 +304 -114
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  10. package/sdk/application/Common/CommonApplicationClient.js +22 -1
  11. package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
  14. package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
  15. package/sdk/application/Content/ContentApplicationClient.js +297 -28
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
  18. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  19. package/sdk/application/Lead/LeadApplicationClient.js +74 -1
  20. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
  21. package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
  22. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
  23. package/sdk/application/Order/OrderApplicationClient.js +195 -47
  24. package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
  25. package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
  26. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  27. package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +96 -0
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  30. package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
  31. package/sdk/application/User/UserApplicationClient.d.ts +10 -10
  32. package/sdk/application/User/UserApplicationClient.js +418 -6
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
  35. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
  36. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
  37. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
  38. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
  39. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
  40. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
  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 +20 -126
  46. package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
  47. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
  48. package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
  49. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
  50. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
  51. package/sdk/partner/OAuthClient.js +1 -0
  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 +39 -135
  55. package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
  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 -118
  82. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
  83. package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
  84. package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
  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 -6385
  92. package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
  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 -124
  122. package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
  123. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
  124. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
  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 +395 -1241
  128. package/sdk/platform/Content/ContentPlatformModel.js +390 -521
  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 +36 -94
  138. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -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 +19 -19
  142. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
  143. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -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 +64 -58
  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 +46 -42
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
  199. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  200. package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
  201. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
  202. package/sdk/platform/Share/SharePlatformModel.js +4 -27
  203. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
  204. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
  205. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
  206. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
  207. package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
  208. package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
  209. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
  210. package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
  211. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
  212. package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
  213. package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
  214. package/sdk/platform/User/UserPlatformModel.js +23 -23
  215. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  216. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  217. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
  218. package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
  219. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  220. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  221. package/sdk/platform/index.d.ts +1 -0
  222. package/sdk/platform/index.js +2 -0
  223. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
  224. package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
  225. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
  226. package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
  227. package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
  228. package/sdk/public/Content/ContentPublicClient.js +20 -791
  229. package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
  230. package/sdk/public/Content/ContentPublicModel.js +3 -649
  231. package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
  232. package/sdk/public/Content/ContentPublicValidator.js +2 -88
  233. package/sdk/public/Partner/PartnerPublicClient.js +15 -0
  234. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  235. package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
  236. package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
  237. package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
  238. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  239. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  240. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  241. package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
@@ -1,7 +1,7 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef GeneralConfigDetails
4
+ * @typedef GeneralConfigResponse
5
5
  * @property {string} [_id]
6
6
  * @property {SupportCommunicationSchema[]} [support_communication]
7
7
  * @property {boolean} [show_communication_info]
@@ -325,8 +325,8 @@ const Joi = require("joi");
325
325
  /** @typedef {"platform_panel" | "sales_channel"} TicketSourceEnum */
326
326
 
327
327
  class LeadPlatformModel {
328
- /** @returns {GeneralConfigDetails} */
329
- static GeneralConfigDetails() {
328
+ /** @returns {GeneralConfigResponse} */
329
+ static GeneralConfigResponse() {
330
330
  return Joi.object({
331
331
  _id: Joi.string().allow(""),
332
332
  support_communication: Joi.array().items(
@@ -474,7 +474,7 @@ class LeadPlatformModel {
474
474
  /** @returns {TicketHistoryPayload} */
475
475
  static TicketHistoryPayload() {
476
476
  return Joi.object({
477
- value: Joi.object().pattern(/\S/, Joi.any()).required(),
477
+ value: Joi.any().required(),
478
478
  type: LeadPlatformModel.HistoryTypeEnum().required(),
479
479
  });
480
480
  }
@@ -515,12 +515,12 @@ class LeadPlatformModel {
515
515
  /** @returns {AddTicketPayload} */
516
516
  static AddTicketPayload() {
517
517
  return Joi.object({
518
- created_by: Joi.object().pattern(/\S/, Joi.any()),
518
+ created_by: Joi.any(),
519
519
  status: Joi.string().allow(""),
520
520
  priority: LeadPlatformModel.PriorityEnum(),
521
521
  category: Joi.string().allow("").required(),
522
522
  content: LeadPlatformModel.TicketContent().required(),
523
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
523
+ _custom_json: Joi.any(),
524
524
  });
525
525
  }
526
526
 
@@ -559,7 +559,7 @@ class LeadPlatformModel {
559
559
  /** @returns {TicketFeedbackPayload} */
560
560
  static TicketFeedbackPayload() {
561
561
  return Joi.object({
562
- form_response: Joi.object().pattern(/\S/, Joi.any()),
562
+ form_response: Joi.any(),
563
563
  });
564
564
  }
565
565
 
@@ -605,9 +605,9 @@ class LeadPlatformModel {
605
605
  /** @returns {FeedbackForm} */
606
606
  static FeedbackForm() {
607
607
  return Joi.object({
608
- inputs: Joi.object().pattern(/\S/, Joi.any()),
608
+ inputs: Joi.any(),
609
609
  title: Joi.string().allow(""),
610
- timestamps: Joi.object().pattern(/\S/, Joi.any()),
610
+ timestamps: Joi.any(),
611
611
  });
612
612
  }
613
613
 
@@ -641,7 +641,7 @@ class LeadPlatformModel {
641
641
  .items(LeadPlatformModel.FeedbackResponseItem())
642
642
  .required(),
643
643
  category: Joi.string().allow(""),
644
- user: Joi.object().pattern(/\S/, Joi.any()),
644
+ user: Joi.any(),
645
645
  updated_at: Joi.string().allow(""),
646
646
  created_at: Joi.string().allow(""),
647
647
  });
@@ -651,10 +651,10 @@ class LeadPlatformModel {
651
651
  static TicketHistory() {
652
652
  return Joi.object({
653
653
  type: Joi.string().allow("").required(),
654
- value: Joi.object().pattern(/\S/, Joi.any()).required(),
654
+ value: Joi.any().required(),
655
655
  ticket_id: Joi.string().allow("").required(),
656
656
  created_on: LeadPlatformModel.CreatedOn(),
657
- created_by: Joi.object().pattern(/\S/, Joi.any()),
657
+ created_by: Joi.any(),
658
658
  _id: Joi.string().allow("").required(),
659
659
  updated_at: Joi.string().allow(""),
660
660
  created_at: Joi.string().allow(""),
@@ -674,12 +674,12 @@ class LeadPlatformModel {
674
674
  status: LeadPlatformModel.Status().required(),
675
675
  priority: LeadPlatformModel.Priority().required(),
676
676
  sla: LeadPlatformModel.SLA(),
677
- created_by: Joi.object().pattern(/\S/, Joi.any()),
678
- assigned_to: Joi.object().pattern(/\S/, Joi.any()),
677
+ created_by: Joi.any(),
678
+ assigned_to: Joi.any(),
679
679
  tags: Joi.array().items(Joi.string().allow("")),
680
- _custom_json: Joi.object().pattern(/\S/, Joi.any()),
680
+ _custom_json: Joi.any(),
681
681
  is_feedback_pending: Joi.boolean(),
682
- integration: Joi.object().pattern(/\S/, Joi.any()),
682
+ integration: Joi.any(),
683
683
  _id: Joi.string().allow("").required(),
684
684
  updated_at: Joi.string().allow(""),
685
685
  created_at: Joi.string().allow(""),
@@ -19,37 +19,26 @@ declare class Order {
19
19
  *
20
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
21
21
  * @param {import("../PlatformAPIClient").Options} - Options
22
- * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
22
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
23
23
  * - Success response
24
24
  *
25
25
  * @name getApplicationShipments
26
26
  * @summary: List sales channel shipments
27
27
  * @description: Get shipments of a particular sales channel based on the filters provided - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getApplicationShipments/).
28
28
  */
29
- getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>;
29
+ getApplicationShipments({ lane, searchType, searchId, fromDate, toDate, dpIds, orderingCompanyId, stores, salesChannel, requestByExt, pageNo, pageSize, customerId, isPrioritySort, excludeLockedShipments, requestHeaders, }?: OrderPlatformApplicationValidator.GetApplicationShipmentsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>;
30
30
  /**
31
31
  * @param {OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam} arg
32
32
  * - Arg object
33
33
  *
34
34
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
35
35
  * @param {import("../PlatformAPIClient").Options} - Options
36
- * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
37
- * Success response
36
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
38
37
  * @name getPlatformShipmentReasons
39
38
  * @summary: List shipment cancellation reasons
40
39
  * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
41
40
  */
42
- getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>;
43
- /**
44
- * @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
45
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
46
- * @param {import("../PlatformAPIClient").Options} - Options
47
- * @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
48
- * @name getRules
49
- * @summary: List of RMA rules based on the given input conditions.
50
- * @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
51
- */
52
- getRules({ body, requestHeaders }?: OrderPlatformApplicationValidator.GetRulesParam, { responseHeaders }?: object): Promise<OrderPlatformModel.RuleListResponseSchema>;
41
+ getPlatformShipmentReasons({ action, requestHeaders }?: OrderPlatformApplicationValidator.GetPlatformShipmentReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentReasonsResponse>;
53
42
  /**
54
43
  * @param {OrderPlatformApplicationValidator.GetShipmentBagReasonsParam} arg
55
44
  * - Arg object
@@ -58,8 +47,8 @@ declare class Order {
58
47
  * @param {import("../PlatformAPIClient").Options} - Options
59
48
  * @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
60
49
  * @name getShipmentBagReasons
61
- * @summary: Retrieve Reasons for Cancellation and Return journey
62
- * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
50
+ * @summary: List bag cancellation reasons
51
+ * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
63
52
  */
64
53
  getShipmentBagReasons({ shipmentId, lineNumber, requestHeaders }?: OrderPlatformApplicationValidator.GetShipmentBagReasonsParam, { responseHeaders }?: object): Promise<OrderPlatformModel.ShipmentBagReasons>;
65
54
  /**
@@ -113,7 +113,7 @@ class Order {
113
113
  *
114
114
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
115
115
  * @param {import("../PlatformAPIClient").Options} - Options
116
- * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema>}
116
+ * @returns {Promise<OrderPlatformModel.ShipmentInternalPlatformViewResponse>}
117
117
  * - Success response
118
118
  *
119
119
  * @name getApplicationShipments
@@ -231,7 +231,7 @@ class Order {
231
231
 
232
232
  const {
233
233
  error: res_error,
234
- } = OrderPlatformModel.ShipmentInternalPlatformViewResponseSchema().validate(
234
+ } = OrderPlatformModel.ShipmentInternalPlatformViewResponse().validate(
235
235
  responseData,
236
236
  { abortEarly: false, allowUnknown: true }
237
237
  );
@@ -256,8 +256,7 @@ class Order {
256
256
  *
257
257
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
258
258
  * @param {import("../PlatformAPIClient").Options} - Options
259
- * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponseSchema>} -
260
- * Success response
259
+ * @returns {Promise<OrderPlatformModel.ShipmentReasonsResponse>} - Success response
261
260
  * @name getPlatformShipmentReasons
262
261
  * @summary: List shipment cancellation reasons
263
262
  * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getPlatformShipmentReasons/).
@@ -313,84 +312,7 @@ class Order {
313
312
 
314
313
  const {
315
314
  error: res_error,
316
- } = OrderPlatformModel.ShipmentReasonsResponseSchema().validate(
317
- responseData,
318
- { abortEarly: false, allowUnknown: true }
319
- );
320
-
321
- if (res_error) {
322
- if (this.config.options.strictResponseCheck === true) {
323
- return Promise.reject(new FDKResponseValidationError(res_error));
324
- } else {
325
- Logger({
326
- level: "WARN",
327
- message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
328
- });
329
- }
330
- }
331
-
332
- return response;
333
- }
334
-
335
- /**
336
- * @param {OrderPlatformApplicationValidator.GetRulesParam} arg - Arg object
337
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
338
- * @param {import("../PlatformAPIClient").Options} - Options
339
- * @returns {Promise<OrderPlatformModel.RuleListResponseSchema>} - Success response
340
- * @name getRules
341
- * @summary: List of RMA rules based on the given input conditions.
342
- * @description: Retrieves a comprehensive list of RMA (Return Merchandise Authorization) rules associated with a specific company and application. These rules dictate the processes for handling returns, including actions, reasons, quality control (QC) types, and associated questions. The endpoint allows for filtering and pagination based on input conditions, providing a tailored set of rules that match the criteria specified. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getRules/).
343
- */
344
- async getRules(
345
- { body, requestHeaders } = { requestHeaders: {} },
346
- { responseHeaders } = { responseHeaders: false }
347
- ) {
348
- const { error } = OrderPlatformApplicationValidator.getRules().validate(
349
- {
350
- body,
351
- },
352
- { abortEarly: false, allowUnknown: true }
353
- );
354
- if (error) {
355
- return Promise.reject(new FDKClientValidationError(error));
356
- }
357
-
358
- // Showing warrnings if extra unknown parameters are found
359
- const {
360
- error: warrning,
361
- } = OrderPlatformApplicationValidator.getRules().validate(
362
- {
363
- body,
364
- },
365
- { abortEarly: false, allowUnknown: false }
366
- );
367
- if (warrning) {
368
- Logger({
369
- level: "WARN",
370
- message: `Parameter Validation warrnings for platform > Order > getRules \n ${warrning}`,
371
- });
372
- }
373
-
374
- const query_params = {};
375
-
376
- const response = await PlatformAPIClient.execute(
377
- this.config,
378
- "post",
379
- `/service/platform/order-manage/v1.0/company/${this.config.companyId}/application/${this.applicationId}/rule_list`,
380
- query_params,
381
- body,
382
- requestHeaders,
383
- { responseHeaders }
384
- );
385
-
386
- let responseData = response;
387
- if (responseHeaders) {
388
- responseData = response[0];
389
- }
390
-
391
- const {
392
- error: res_error,
393
- } = OrderPlatformModel.RuleListResponseSchema().validate(responseData, {
315
+ } = OrderPlatformModel.ShipmentReasonsResponse().validate(responseData, {
394
316
  abortEarly: false,
395
317
  allowUnknown: true,
396
318
  });
@@ -401,7 +323,7 @@ class Order {
401
323
  } else {
402
324
  Logger({
403
325
  level: "WARN",
404
- message: `Response Validation Warnings for platform > Order > getRules \n ${res_error}`,
326
+ message: `Response Validation Warnings for platform > Order > getPlatformShipmentReasons \n ${res_error}`,
405
327
  });
406
328
  }
407
329
  }
@@ -417,8 +339,8 @@ class Order {
417
339
  * @param {import("../PlatformAPIClient").Options} - Options
418
340
  * @returns {Promise<OrderPlatformModel.ShipmentBagReasons>} - Success response
419
341
  * @name getShipmentBagReasons
420
- * @summary: Retrieve Reasons for Cancellation and Return journey
421
- * @description: Allows users to retrieve a comprehensive list of reasons for cancellation or returning a shipment. It provides both cancellation and return reasons, with an emphasis on Quality Control (QC) evaluations. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
342
+ * @summary: List bag cancellation reasons
343
+ * @description: Get reasons to perform full or partial cancellation of a shipment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/order/getShipmentBagReasons/).
422
344
  */
423
345
  async getShipmentBagReasons(
424
346
  { shipmentId, lineNumber, requestHeaders } = { requestHeaders: {} },
@@ -8,47 +8,35 @@ export = OrderPlatformApplicationValidator;
8
8
  */
9
9
  /**
10
10
  * @typedef GetApplicationShipmentsParam
11
- * @property {string} [lane] - Optional parameter to specify the lane for
12
- * filtering results.
13
- * @property {string} [searchType] - Search_type refers to the field that will
14
- * be used as the target for the search operation
15
- * @property {string} [searchId] - Identifier used for the search operation
16
- * based on the selected search type.
17
- * @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
18
- * @property {string} [toDate] - Date time in UTC timezone as per ISO format.
19
- * @property {string} [dpIds] - Comma-separated list of delivery partner IDs to
20
- * filter results.
21
- * @property {string} [orderingCompanyId] - ID of the company placing the order,
22
- * used for filtering results.
23
- * @property {string} [stores] - Comma-separated list of store IDs to filter results.
24
- * @property {string} [salesChannel] - The sales channel to filter results.
25
- * @property {string} [requestByExt] - Identifier for external requests.
26
- * @property {number} [pageNo] - The page number for pagination of results.
27
- * @property {number} [pageSize] - The number of results to return per page for
28
- * pagination.
29
- * @property {string} [customerId] - ID of the customer to filter results
30
- * related to specific customer.
31
- * @property {boolean} [isPrioritySort] - Flag to determine if results should be
32
- * sorted by priority. Defaults to true.
33
- * @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
34
- * are currently locked from the results.
11
+ * @property {string} [lane]
12
+ * @property {string} [searchType]
13
+ * @property {string} [searchId]
14
+ * @property {string} [fromDate]
15
+ * @property {string} [toDate]
16
+ * @property {string} [dpIds]
17
+ * @property {string} [orderingCompanyId]
18
+ * @property {string} [stores]
19
+ * @property {string} [salesChannel]
20
+ * @property {string} [requestByExt]
21
+ * @property {number} [pageNo]
22
+ * @property {number} [pageSize]
23
+ * @property {string} [customerId]
24
+ * @property {boolean} [isPrioritySort]
25
+ * @property {boolean} [excludeLockedShipments]
35
26
  */
36
27
  /**
37
28
  * @typedef GetPlatformShipmentReasonsParam
38
29
  * @property {string} action
39
30
  */
40
- /**
41
- * @typedef GetRulesParam
42
- * @property {OrderPlatformModel.RuleListRequestSchema} body
43
- */
44
31
  /**
45
32
  * @typedef GetShipmentBagReasonsParam
46
- * @property {string} shipmentId - The unique identifier for the shipment
47
- * @property {number} lineNumber - A unique identifier of the bag's line number.
33
+ * @property {string} shipmentId - ID of the bag. An order may contain multiple
34
+ * items and may get divided into one or more shipment, each having its own ID.
35
+ * @property {number} lineNumber - Line number of bag.
48
36
  */
49
37
  /**
50
38
  * @typedef TrackShipmentPlatformParam
51
- * @property {string} shipmentId - The unique identifier for the shipment
39
+ * @property {string} shipmentId - Shipment Id
52
40
  */
53
41
  declare class OrderPlatformApplicationValidator {
54
42
  /** @returns {FailedOrderLogsParam} */
@@ -57,15 +45,13 @@ declare class OrderPlatformApplicationValidator {
57
45
  static getApplicationShipments(): GetApplicationShipmentsParam;
58
46
  /** @returns {GetPlatformShipmentReasonsParam} */
59
47
  static getPlatformShipmentReasons(): GetPlatformShipmentReasonsParam;
60
- /** @returns {GetRulesParam} */
61
- static getRules(): GetRulesParam;
62
48
  /** @returns {GetShipmentBagReasonsParam} */
63
49
  static getShipmentBagReasons(): GetShipmentBagReasonsParam;
64
50
  /** @returns {TrackShipmentPlatformParam} */
65
51
  static trackShipmentPlatform(): TrackShipmentPlatformParam;
66
52
  }
67
53
  declare namespace OrderPlatformApplicationValidator {
68
- export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetRulesParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
54
+ export { FailedOrderLogsParam, GetApplicationShipmentsParam, GetPlatformShipmentReasonsParam, GetShipmentBagReasonsParam, TrackShipmentPlatformParam };
69
55
  }
70
56
  type FailedOrderLogsParam = {
71
57
  /**
@@ -86,96 +72,39 @@ type FailedOrderLogsParam = {
86
72
  searchValue?: string;
87
73
  };
88
74
  type GetApplicationShipmentsParam = {
89
- /**
90
- * - Optional parameter to specify the lane for
91
- * filtering results.
92
- */
93
75
  lane?: string;
94
- /**
95
- * - Search_type refers to the field that will
96
- * be used as the target for the search operation
97
- */
98
76
  searchType?: string;
99
- /**
100
- * - Identifier used for the search operation
101
- * based on the selected search type.
102
- */
103
77
  searchId?: string;
104
- /**
105
- * - Date time in UTC timezone as per ISO format.
106
- */
107
78
  fromDate?: string;
108
- /**
109
- * - Date time in UTC timezone as per ISO format.
110
- */
111
79
  toDate?: string;
112
- /**
113
- * - Comma-separated list of delivery partner IDs to
114
- * filter results.
115
- */
116
80
  dpIds?: string;
117
- /**
118
- * - ID of the company placing the order,
119
- * used for filtering results.
120
- */
121
81
  orderingCompanyId?: string;
122
- /**
123
- * - Comma-separated list of store IDs to filter results.
124
- */
125
82
  stores?: string;
126
- /**
127
- * - The sales channel to filter results.
128
- */
129
83
  salesChannel?: string;
130
- /**
131
- * - Identifier for external requests.
132
- */
133
84
  requestByExt?: string;
134
- /**
135
- * - The page number for pagination of results.
136
- */
137
85
  pageNo?: number;
138
- /**
139
- * - The number of results to return per page for
140
- * pagination.
141
- */
142
86
  pageSize?: number;
143
- /**
144
- * - ID of the customer to filter results
145
- * related to specific customer.
146
- */
147
87
  customerId?: string;
148
- /**
149
- * - Flag to determine if results should be
150
- * sorted by priority. Defaults to true.
151
- */
152
88
  isPrioritySort?: boolean;
153
- /**
154
- * - Flag to exclude shipments that
155
- * are currently locked from the results.
156
- */
157
89
  excludeLockedShipments?: boolean;
158
90
  };
159
91
  type GetPlatformShipmentReasonsParam = {
160
92
  action: string;
161
93
  };
162
- type GetRulesParam = {
163
- body: OrderPlatformModel.RuleListRequestSchema;
164
- };
165
94
  type GetShipmentBagReasonsParam = {
166
95
  /**
167
- * - The unique identifier for the shipment
96
+ * - ID of the bag. An order may contain multiple
97
+ * items and may get divided into one or more shipment, each having its own ID.
168
98
  */
169
99
  shipmentId: string;
170
100
  /**
171
- * - A unique identifier of the bag's line number.
101
+ * - Line number of bag.
172
102
  */
173
103
  lineNumber: number;
174
104
  };
175
105
  type TrackShipmentPlatformParam = {
176
106
  /**
177
- * - The unique identifier for the shipment
107
+ * - Shipment Id
178
108
  */
179
109
  shipmentId: string;
180
110
  };
181
- import OrderPlatformModel = require("./OrderPlatformModel");
@@ -12,30 +12,21 @@ const OrderPlatformModel = require("./OrderPlatformModel");
12
12
 
13
13
  /**
14
14
  * @typedef GetApplicationShipmentsParam
15
- * @property {string} [lane] - Optional parameter to specify the lane for
16
- * filtering results.
17
- * @property {string} [searchType] - Search_type refers to the field that will
18
- * be used as the target for the search operation
19
- * @property {string} [searchId] - Identifier used for the search operation
20
- * based on the selected search type.
21
- * @property {string} [fromDate] - Date time in UTC timezone as per ISO format.
22
- * @property {string} [toDate] - Date time in UTC timezone as per ISO format.
23
- * @property {string} [dpIds] - Comma-separated list of delivery partner IDs to
24
- * filter results.
25
- * @property {string} [orderingCompanyId] - ID of the company placing the order,
26
- * used for filtering results.
27
- * @property {string} [stores] - Comma-separated list of store IDs to filter results.
28
- * @property {string} [salesChannel] - The sales channel to filter results.
29
- * @property {string} [requestByExt] - Identifier for external requests.
30
- * @property {number} [pageNo] - The page number for pagination of results.
31
- * @property {number} [pageSize] - The number of results to return per page for
32
- * pagination.
33
- * @property {string} [customerId] - ID of the customer to filter results
34
- * related to specific customer.
35
- * @property {boolean} [isPrioritySort] - Flag to determine if results should be
36
- * sorted by priority. Defaults to true.
37
- * @property {boolean} [excludeLockedShipments] - Flag to exclude shipments that
38
- * are currently locked from the results.
15
+ * @property {string} [lane]
16
+ * @property {string} [searchType]
17
+ * @property {string} [searchId]
18
+ * @property {string} [fromDate]
19
+ * @property {string} [toDate]
20
+ * @property {string} [dpIds]
21
+ * @property {string} [orderingCompanyId]
22
+ * @property {string} [stores]
23
+ * @property {string} [salesChannel]
24
+ * @property {string} [requestByExt]
25
+ * @property {number} [pageNo]
26
+ * @property {number} [pageSize]
27
+ * @property {string} [customerId]
28
+ * @property {boolean} [isPrioritySort]
29
+ * @property {boolean} [excludeLockedShipments]
39
30
  */
40
31
 
41
32
  /**
@@ -43,20 +34,16 @@ const OrderPlatformModel = require("./OrderPlatformModel");
43
34
  * @property {string} action
44
35
  */
45
36
 
46
- /**
47
- * @typedef GetRulesParam
48
- * @property {OrderPlatformModel.RuleListRequestSchema} body
49
- */
50
-
51
37
  /**
52
38
  * @typedef GetShipmentBagReasonsParam
53
- * @property {string} shipmentId - The unique identifier for the shipment
54
- * @property {number} lineNumber - A unique identifier of the bag's line number.
39
+ * @property {string} shipmentId - ID of the bag. An order may contain multiple
40
+ * items and may get divided into one or more shipment, each having its own ID.
41
+ * @property {number} lineNumber - Line number of bag.
55
42
  */
56
43
 
57
44
  /**
58
45
  * @typedef TrackShipmentPlatformParam
59
- * @property {string} shipmentId - The unique identifier for the shipment
46
+ * @property {string} shipmentId - Shipment Id
60
47
  */
61
48
 
62
49
  class OrderPlatformApplicationValidator {
@@ -98,13 +85,6 @@ class OrderPlatformApplicationValidator {
98
85
  }).required();
99
86
  }
100
87
 
101
- /** @returns {GetRulesParam} */
102
- static getRules() {
103
- return Joi.object({
104
- body: OrderPlatformModel.RuleListRequestSchema().required(),
105
- }).required();
106
- }
107
-
108
88
  /** @returns {GetShipmentBagReasonsParam} */
109
89
  static getShipmentBagReasons() {
110
90
  return Joi.object({