@unified-api/typescript-sdk 2.64.0 → 2.66.0

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 (385) hide show
  1. package/README.md +12 -0
  2. package/docs/sdks/commerce/README.md +512 -0
  3. package/docs/sdks/review/README.md +519 -0
  4. package/funcs/accountingListAccountingContacts.js +1 -0
  5. package/funcs/accountingListAccountingContacts.js.map +1 -1
  6. package/funcs/commerceCreateCommerceReview.d.ts +14 -0
  7. package/funcs/commerceCreateCommerceReview.d.ts.map +1 -0
  8. package/funcs/commerceCreateCommerceReview.js +110 -0
  9. package/funcs/commerceCreateCommerceReview.js.map +1 -0
  10. package/funcs/commerceGetCommerceReview.d.ts +14 -0
  11. package/funcs/commerceGetCommerceReview.d.ts.map +1 -0
  12. package/funcs/commerceGetCommerceReview.js +113 -0
  13. package/funcs/commerceGetCommerceReview.js.map +1 -0
  14. package/funcs/commerceListCommerceReviews.d.ts +14 -0
  15. package/funcs/commerceListCommerceReviews.d.ts.map +1 -0
  16. package/funcs/commerceListCommerceReviews.js +118 -0
  17. package/funcs/commerceListCommerceReviews.js.map +1 -0
  18. package/funcs/commercePatchCommerceReview.d.ts +14 -0
  19. package/funcs/commercePatchCommerceReview.d.ts.map +1 -0
  20. package/funcs/commercePatchCommerceReview.js +114 -0
  21. package/funcs/commercePatchCommerceReview.js.map +1 -0
  22. package/funcs/commerceRemoveCommerceReview.d.ts +13 -0
  23. package/funcs/commerceRemoveCommerceReview.d.ts.map +1 -0
  24. package/funcs/commerceRemoveCommerceReview.js +110 -0
  25. package/funcs/commerceRemoveCommerceReview.js.map +1 -0
  26. package/funcs/commerceUpdateCommerceReview.d.ts +14 -0
  27. package/funcs/commerceUpdateCommerceReview.d.ts.map +1 -0
  28. package/funcs/commerceUpdateCommerceReview.js +114 -0
  29. package/funcs/commerceUpdateCommerceReview.js.map +1 -0
  30. package/funcs/contactListAccountingContacts.js +1 -0
  31. package/funcs/contactListAccountingContacts.js.map +1 -1
  32. package/funcs/instructorListLmsInstructors.js +0 -1
  33. package/funcs/instructorListLmsInstructors.js.map +1 -1
  34. package/funcs/lmsListLmsInstructors.js +0 -1
  35. package/funcs/lmsListLmsInstructors.js.map +1 -1
  36. package/funcs/lmsListLmsStudents.js +0 -1
  37. package/funcs/lmsListLmsStudents.js.map +1 -1
  38. package/funcs/recordingListUcRecordings.js +1 -0
  39. package/funcs/recordingListUcRecordings.js.map +1 -1
  40. package/funcs/reviewCreateCommerceReview.d.ts +14 -0
  41. package/funcs/reviewCreateCommerceReview.d.ts.map +1 -0
  42. package/funcs/reviewCreateCommerceReview.js +110 -0
  43. package/funcs/reviewCreateCommerceReview.js.map +1 -0
  44. package/funcs/reviewGetCommerceReview.d.ts +14 -0
  45. package/funcs/reviewGetCommerceReview.d.ts.map +1 -0
  46. package/funcs/reviewGetCommerceReview.js +113 -0
  47. package/funcs/reviewGetCommerceReview.js.map +1 -0
  48. package/funcs/reviewListCommerceReviews.d.ts +14 -0
  49. package/funcs/reviewListCommerceReviews.d.ts.map +1 -0
  50. package/funcs/reviewListCommerceReviews.js +118 -0
  51. package/funcs/reviewListCommerceReviews.js.map +1 -0
  52. package/funcs/reviewPatchCommerceReview.d.ts +14 -0
  53. package/funcs/reviewPatchCommerceReview.d.ts.map +1 -0
  54. package/funcs/reviewPatchCommerceReview.js +114 -0
  55. package/funcs/reviewPatchCommerceReview.js.map +1 -0
  56. package/funcs/reviewRemoveCommerceReview.d.ts +13 -0
  57. package/funcs/reviewRemoveCommerceReview.d.ts.map +1 -0
  58. package/funcs/reviewRemoveCommerceReview.js +110 -0
  59. package/funcs/reviewRemoveCommerceReview.js.map +1 -0
  60. package/funcs/reviewUpdateCommerceReview.d.ts +14 -0
  61. package/funcs/reviewUpdateCommerceReview.d.ts.map +1 -0
  62. package/funcs/reviewUpdateCommerceReview.js +114 -0
  63. package/funcs/reviewUpdateCommerceReview.js.map +1 -0
  64. package/funcs/studentListLmsStudents.js +0 -1
  65. package/funcs/studentListLmsStudents.js.map +1 -1
  66. package/funcs/ucListUcRecordings.js +1 -0
  67. package/funcs/ucListUcRecordings.js.map +1 -1
  68. package/jsr.json +1 -1
  69. package/lib/config.d.ts +2 -2
  70. package/lib/config.js +2 -2
  71. package/package.json +1 -1
  72. package/sdk/commerce.d.ts +24 -0
  73. package/sdk/commerce.d.ts.map +1 -1
  74. package/sdk/commerce.js +42 -0
  75. package/sdk/commerce.js.map +1 -1
  76. package/sdk/models/operations/createcommercereview.d.ts +45 -0
  77. package/sdk/models/operations/createcommercereview.d.ts.map +1 -0
  78. package/sdk/models/operations/createcommercereview.js +77 -0
  79. package/sdk/models/operations/createcommercereview.js.map +1 -0
  80. package/sdk/models/operations/getcommercereview.d.ts +47 -0
  81. package/sdk/models/operations/getcommercereview.d.ts.map +1 -0
  82. package/sdk/models/operations/getcommercereview.js +74 -0
  83. package/sdk/models/operations/getcommercereview.js.map +1 -0
  84. package/sdk/models/operations/index.d.ts +6 -0
  85. package/sdk/models/operations/index.d.ts.map +1 -1
  86. package/sdk/models/operations/index.js +6 -0
  87. package/sdk/models/operations/index.js.map +1 -1
  88. package/sdk/models/operations/listaccountingaccounts.d.ts +3 -0
  89. package/sdk/models/operations/listaccountingaccounts.d.ts.map +1 -1
  90. package/sdk/models/operations/listaccountingaccounts.js.map +1 -1
  91. package/sdk/models/operations/listaccountingcontacts.d.ts +5 -0
  92. package/sdk/models/operations/listaccountingcontacts.d.ts.map +1 -1
  93. package/sdk/models/operations/listaccountingcontacts.js +4 -0
  94. package/sdk/models/operations/listaccountingcontacts.js.map +1 -1
  95. package/sdk/models/operations/listaccountinginvoices.d.ts +3 -0
  96. package/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
  97. package/sdk/models/operations/listaccountinginvoices.js.map +1 -1
  98. package/sdk/models/operations/listaccountingreports.d.ts +6 -0
  99. package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
  100. package/sdk/models/operations/listaccountingreports.js.map +1 -1
  101. package/sdk/models/operations/listaccountingtransactions.d.ts +3 -0
  102. package/sdk/models/operations/listaccountingtransactions.d.ts.map +1 -1
  103. package/sdk/models/operations/listaccountingtransactions.js.map +1 -1
  104. package/sdk/models/operations/listatsactivities.d.ts +18 -0
  105. package/sdk/models/operations/listatsactivities.d.ts.map +1 -1
  106. package/sdk/models/operations/listatsactivities.js.map +1 -1
  107. package/sdk/models/operations/listatsapplications.d.ts +6 -0
  108. package/sdk/models/operations/listatsapplications.d.ts.map +1 -1
  109. package/sdk/models/operations/listatsapplications.js.map +1 -1
  110. package/sdk/models/operations/listatsdocuments.d.ts +9 -0
  111. package/sdk/models/operations/listatsdocuments.d.ts.map +1 -1
  112. package/sdk/models/operations/listatsdocuments.js.map +1 -1
  113. package/sdk/models/operations/listatsinterviews.d.ts +3 -0
  114. package/sdk/models/operations/listatsinterviews.d.ts.map +1 -1
  115. package/sdk/models/operations/listatsinterviews.js.map +1 -1
  116. package/sdk/models/operations/listatsjobs.d.ts +3 -0
  117. package/sdk/models/operations/listatsjobs.d.ts.map +1 -1
  118. package/sdk/models/operations/listatsjobs.js.map +1 -1
  119. package/sdk/models/operations/listatsscorecards.d.ts +12 -0
  120. package/sdk/models/operations/listatsscorecards.d.ts.map +1 -1
  121. package/sdk/models/operations/listatsscorecards.js.map +1 -1
  122. package/sdk/models/operations/listcalendarbusies.d.ts +9 -0
  123. package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
  124. package/sdk/models/operations/listcalendarbusies.js.map +1 -1
  125. package/sdk/models/operations/listcalendarevents.d.ts +9 -0
  126. package/sdk/models/operations/listcalendarevents.d.ts.map +1 -1
  127. package/sdk/models/operations/listcalendarevents.js.map +1 -1
  128. package/sdk/models/operations/listcalendarrecordings.d.ts +9 -0
  129. package/sdk/models/operations/listcalendarrecordings.d.ts.map +1 -1
  130. package/sdk/models/operations/listcalendarrecordings.js.map +1 -1
  131. package/sdk/models/operations/listcommercecollections.d.ts +3 -0
  132. package/sdk/models/operations/listcommercecollections.d.ts.map +1 -1
  133. package/sdk/models/operations/listcommercecollections.js.map +1 -1
  134. package/sdk/models/operations/listcommerceinventories.d.ts +6 -0
  135. package/sdk/models/operations/listcommerceinventories.d.ts.map +1 -1
  136. package/sdk/models/operations/listcommerceinventories.js.map +1 -1
  137. package/sdk/models/operations/listcommerceitems.d.ts +3 -0
  138. package/sdk/models/operations/listcommerceitems.d.ts.map +1 -1
  139. package/sdk/models/operations/listcommerceitems.js.map +1 -1
  140. package/sdk/models/operations/listcommercereviews.d.ts +70 -0
  141. package/sdk/models/operations/listcommercereviews.d.ts.map +1 -0
  142. package/sdk/models/operations/listcommercereviews.js +95 -0
  143. package/sdk/models/operations/listcommercereviews.js.map +1 -0
  144. package/sdk/models/operations/listcrmcompanies.d.ts +9 -0
  145. package/sdk/models/operations/listcrmcompanies.d.ts.map +1 -1
  146. package/sdk/models/operations/listcrmcompanies.js.map +1 -1
  147. package/sdk/models/operations/listcrmcontacts.d.ts +9 -0
  148. package/sdk/models/operations/listcrmcontacts.d.ts.map +1 -1
  149. package/sdk/models/operations/listcrmcontacts.js.map +1 -1
  150. package/sdk/models/operations/listcrmdeals.d.ts +9 -0
  151. package/sdk/models/operations/listcrmdeals.d.ts.map +1 -1
  152. package/sdk/models/operations/listcrmdeals.js.map +1 -1
  153. package/sdk/models/operations/listcrmevents.d.ts +15 -0
  154. package/sdk/models/operations/listcrmevents.d.ts.map +1 -1
  155. package/sdk/models/operations/listcrmevents.js.map +1 -1
  156. package/sdk/models/operations/listcrmleads.d.ts +9 -0
  157. package/sdk/models/operations/listcrmleads.d.ts.map +1 -1
  158. package/sdk/models/operations/listcrmleads.js.map +1 -1
  159. package/sdk/models/operations/listhrisdevices.d.ts +3 -0
  160. package/sdk/models/operations/listhrisdevices.d.ts.map +1 -1
  161. package/sdk/models/operations/listhrisdevices.js.map +1 -1
  162. package/sdk/models/operations/listhrisemployees.d.ts +3 -0
  163. package/sdk/models/operations/listhrisemployees.d.ts.map +1 -1
  164. package/sdk/models/operations/listhrisemployees.js.map +1 -1
  165. package/sdk/models/operations/listhrisgroups.d.ts +3 -0
  166. package/sdk/models/operations/listhrisgroups.d.ts.map +1 -1
  167. package/sdk/models/operations/listhrisgroups.js.map +1 -1
  168. package/sdk/models/operations/listhrispayslips.d.ts +6 -0
  169. package/sdk/models/operations/listhrispayslips.d.ts.map +1 -1
  170. package/sdk/models/operations/listhrispayslips.js.map +1 -1
  171. package/sdk/models/operations/listhristimeoffs.d.ts +6 -0
  172. package/sdk/models/operations/listhristimeoffs.d.ts.map +1 -1
  173. package/sdk/models/operations/listhristimeoffs.js.map +1 -1
  174. package/sdk/models/operations/listkmscomments.d.ts +9 -0
  175. package/sdk/models/operations/listkmscomments.d.ts.map +1 -1
  176. package/sdk/models/operations/listkmscomments.js.map +1 -1
  177. package/sdk/models/operations/listkmspages.d.ts +6 -0
  178. package/sdk/models/operations/listkmspages.d.ts.map +1 -1
  179. package/sdk/models/operations/listkmspages.js.map +1 -1
  180. package/sdk/models/operations/listkmsspaces.d.ts +3 -0
  181. package/sdk/models/operations/listkmsspaces.d.ts.map +1 -1
  182. package/sdk/models/operations/listkmsspaces.js.map +1 -1
  183. package/sdk/models/operations/listlmsclasses.d.ts +6 -0
  184. package/sdk/models/operations/listlmsclasses.d.ts.map +1 -1
  185. package/sdk/models/operations/listlmsclasses.js.map +1 -1
  186. package/sdk/models/operations/listlmscourses.d.ts +9 -0
  187. package/sdk/models/operations/listlmscourses.d.ts.map +1 -1
  188. package/sdk/models/operations/listlmscourses.js.map +1 -1
  189. package/sdk/models/operations/listlmsinstructors.d.ts +12 -2
  190. package/sdk/models/operations/listlmsinstructors.d.ts.map +1 -1
  191. package/sdk/models/operations/listlmsinstructors.js +0 -4
  192. package/sdk/models/operations/listlmsinstructors.js.map +1 -1
  193. package/sdk/models/operations/listlmsstudents.d.ts +9 -2
  194. package/sdk/models/operations/listlmsstudents.d.ts.map +1 -1
  195. package/sdk/models/operations/listlmsstudents.js +0 -4
  196. package/sdk/models/operations/listlmsstudents.js.map +1 -1
  197. package/sdk/models/operations/listmartechmembers.d.ts +3 -0
  198. package/sdk/models/operations/listmartechmembers.d.ts.map +1 -1
  199. package/sdk/models/operations/listmartechmembers.js.map +1 -1
  200. package/sdk/models/operations/listmessagingchannels.d.ts +3 -0
  201. package/sdk/models/operations/listmessagingchannels.d.ts.map +1 -1
  202. package/sdk/models/operations/listmessagingchannels.js.map +1 -1
  203. package/sdk/models/operations/listmessagingmessages.d.ts +12 -0
  204. package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
  205. package/sdk/models/operations/listmessagingmessages.js.map +1 -1
  206. package/sdk/models/operations/listmetadatametadatas.d.ts +3 -0
  207. package/sdk/models/operations/listmetadatametadatas.d.ts.map +1 -1
  208. package/sdk/models/operations/listmetadatametadatas.js.map +1 -1
  209. package/sdk/models/operations/listpaymentlinks.d.ts +6 -0
  210. package/sdk/models/operations/listpaymentlinks.d.ts.map +1 -1
  211. package/sdk/models/operations/listpaymentlinks.js.map +1 -1
  212. package/sdk/models/operations/listpaymentpayments.d.ts +6 -0
  213. package/sdk/models/operations/listpaymentpayments.d.ts.map +1 -1
  214. package/sdk/models/operations/listpaymentpayments.js.map +1 -1
  215. package/sdk/models/operations/listpaymentrefunds.d.ts +3 -0
  216. package/sdk/models/operations/listpaymentrefunds.d.ts.map +1 -1
  217. package/sdk/models/operations/listpaymentrefunds.js.map +1 -1
  218. package/sdk/models/operations/listpaymentsubscriptions.d.ts +3 -0
  219. package/sdk/models/operations/listpaymentsubscriptions.d.ts.map +1 -1
  220. package/sdk/models/operations/listpaymentsubscriptions.js.map +1 -1
  221. package/sdk/models/operations/listrepobranches.d.ts +3 -0
  222. package/sdk/models/operations/listrepobranches.d.ts.map +1 -1
  223. package/sdk/models/operations/listrepobranches.js.map +1 -1
  224. package/sdk/models/operations/listrepocommits.d.ts +6 -0
  225. package/sdk/models/operations/listrepocommits.d.ts.map +1 -1
  226. package/sdk/models/operations/listrepocommits.js.map +1 -1
  227. package/sdk/models/operations/listrepopullrequests.d.ts +3 -0
  228. package/sdk/models/operations/listrepopullrequests.d.ts.map +1 -1
  229. package/sdk/models/operations/listrepopullrequests.js.map +1 -1
  230. package/sdk/models/operations/listreporepositories.d.ts +3 -0
  231. package/sdk/models/operations/listreporepositories.d.ts.map +1 -1
  232. package/sdk/models/operations/listreporepositories.js.map +1 -1
  233. package/sdk/models/operations/liststoragefiles.d.ts +6 -0
  234. package/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
  235. package/sdk/models/operations/liststoragefiles.js.map +1 -1
  236. package/sdk/models/operations/listtaskcomments.d.ts +3 -0
  237. package/sdk/models/operations/listtaskcomments.d.ts.map +1 -1
  238. package/sdk/models/operations/listtaskcomments.js.map +1 -1
  239. package/sdk/models/operations/listtaskprojects.d.ts +3 -0
  240. package/sdk/models/operations/listtaskprojects.d.ts.map +1 -1
  241. package/sdk/models/operations/listtaskprojects.js.map +1 -1
  242. package/sdk/models/operations/listtasktasks.d.ts +9 -0
  243. package/sdk/models/operations/listtasktasks.d.ts.map +1 -1
  244. package/sdk/models/operations/listtasktasks.js.map +1 -1
  245. package/sdk/models/operations/listticketingnotes.d.ts +6 -0
  246. package/sdk/models/operations/listticketingnotes.d.ts.map +1 -1
  247. package/sdk/models/operations/listticketingnotes.js.map +1 -1
  248. package/sdk/models/operations/listticketingtickets.d.ts +6 -0
  249. package/sdk/models/operations/listticketingtickets.d.ts.map +1 -1
  250. package/sdk/models/operations/listticketingtickets.js.map +1 -1
  251. package/sdk/models/operations/listuccalls.d.ts +6 -0
  252. package/sdk/models/operations/listuccalls.d.ts.map +1 -1
  253. package/sdk/models/operations/listuccalls.js.map +1 -1
  254. package/sdk/models/operations/listuccomments.d.ts +6 -0
  255. package/sdk/models/operations/listuccomments.d.ts.map +1 -1
  256. package/sdk/models/operations/listuccomments.js.map +1 -1
  257. package/sdk/models/operations/listuccontacts.d.ts +3 -0
  258. package/sdk/models/operations/listuccontacts.d.ts.map +1 -1
  259. package/sdk/models/operations/listuccontacts.js.map +1 -1
  260. package/sdk/models/operations/listucrecordings.d.ts +17 -0
  261. package/sdk/models/operations/listucrecordings.d.ts.map +1 -1
  262. package/sdk/models/operations/listucrecordings.js +4 -0
  263. package/sdk/models/operations/listucrecordings.js.map +1 -1
  264. package/sdk/models/operations/patchcommercereview.d.ts +50 -0
  265. package/sdk/models/operations/patchcommercereview.d.ts.map +1 -0
  266. package/sdk/models/operations/patchcommercereview.js +79 -0
  267. package/sdk/models/operations/patchcommercereview.js.map +1 -0
  268. package/sdk/models/operations/removecommercereview.d.ts +66 -0
  269. package/sdk/models/operations/removecommercereview.d.ts.map +1 -0
  270. package/sdk/models/operations/removecommercereview.js +105 -0
  271. package/sdk/models/operations/removecommercereview.js.map +1 -0
  272. package/sdk/models/operations/updatecommercereview.d.ts +50 -0
  273. package/sdk/models/operations/updatecommercereview.d.ts.map +1 -0
  274. package/sdk/models/operations/updatecommercereview.js +79 -0
  275. package/sdk/models/operations/updatecommercereview.js.map +1 -0
  276. package/sdk/models/shared/commercereview.d.ts +115 -0
  277. package/sdk/models/shared/commercereview.d.ts.map +1 -0
  278. package/sdk/models/shared/commercereview.js +164 -0
  279. package/sdk/models/shared/commercereview.js.map +1 -0
  280. package/sdk/models/shared/commercereviewcomment.d.ts +94 -0
  281. package/sdk/models/shared/commercereviewcomment.d.ts.map +1 -0
  282. package/sdk/models/shared/commercereviewcomment.js +138 -0
  283. package/sdk/models/shared/commercereviewcomment.js.map +1 -0
  284. package/sdk/models/shared/index.d.ts +2 -0
  285. package/sdk/models/shared/index.d.ts.map +1 -1
  286. package/sdk/models/shared/index.js +2 -0
  287. package/sdk/models/shared/index.js.map +1 -1
  288. package/sdk/review.d.ts +30 -0
  289. package/sdk/review.d.ts.map +1 -0
  290. package/sdk/review.js +54 -0
  291. package/sdk/review.js.map +1 -0
  292. package/sdk/sdk.d.ts +3 -0
  293. package/sdk/sdk.d.ts.map +1 -1
  294. package/sdk/sdk.js +4 -0
  295. package/sdk/sdk.js.map +1 -1
  296. package/src/funcs/accountingListAccountingContacts.ts +1 -0
  297. package/src/funcs/commerceCreateCommerceReview.ts +165 -0
  298. package/src/funcs/commerceGetCommerceReview.ts +167 -0
  299. package/src/funcs/commerceListCommerceReviews.ts +173 -0
  300. package/src/funcs/commercePatchCommerceReview.ts +169 -0
  301. package/src/funcs/commerceRemoveCommerceReview.ts +173 -0
  302. package/src/funcs/commerceUpdateCommerceReview.ts +169 -0
  303. package/src/funcs/contactListAccountingContacts.ts +1 -0
  304. package/src/funcs/instructorListLmsInstructors.ts +0 -1
  305. package/src/funcs/lmsListLmsInstructors.ts +0 -1
  306. package/src/funcs/lmsListLmsStudents.ts +0 -1
  307. package/src/funcs/recordingListUcRecordings.ts +1 -0
  308. package/src/funcs/reviewCreateCommerceReview.ts +165 -0
  309. package/src/funcs/reviewGetCommerceReview.ts +167 -0
  310. package/src/funcs/reviewListCommerceReviews.ts +173 -0
  311. package/src/funcs/reviewPatchCommerceReview.ts +169 -0
  312. package/src/funcs/reviewRemoveCommerceReview.ts +173 -0
  313. package/src/funcs/reviewUpdateCommerceReview.ts +169 -0
  314. package/src/funcs/studentListLmsStudents.ts +0 -1
  315. package/src/funcs/ucListUcRecordings.ts +1 -0
  316. package/src/lib/config.ts +2 -2
  317. package/src/sdk/commerce.ts +90 -0
  318. package/src/sdk/models/operations/createcommercereview.ts +101 -0
  319. package/src/sdk/models/operations/getcommercereview.ts +99 -0
  320. package/src/sdk/models/operations/index.ts +6 -0
  321. package/src/sdk/models/operations/listaccountingaccounts.ts +3 -0
  322. package/src/sdk/models/operations/listaccountingcontacts.ts +9 -0
  323. package/src/sdk/models/operations/listaccountinginvoices.ts +3 -0
  324. package/src/sdk/models/operations/listaccountingreports.ts +6 -0
  325. package/src/sdk/models/operations/listaccountingtransactions.ts +3 -0
  326. package/src/sdk/models/operations/listatsactivities.ts +18 -0
  327. package/src/sdk/models/operations/listatsapplications.ts +6 -0
  328. package/src/sdk/models/operations/listatsdocuments.ts +9 -0
  329. package/src/sdk/models/operations/listatsinterviews.ts +3 -0
  330. package/src/sdk/models/operations/listatsjobs.ts +3 -0
  331. package/src/sdk/models/operations/listatsscorecards.ts +12 -0
  332. package/src/sdk/models/operations/listcalendarbusies.ts +9 -0
  333. package/src/sdk/models/operations/listcalendarevents.ts +9 -0
  334. package/src/sdk/models/operations/listcalendarrecordings.ts +9 -0
  335. package/src/sdk/models/operations/listcommercecollections.ts +3 -0
  336. package/src/sdk/models/operations/listcommerceinventories.ts +6 -0
  337. package/src/sdk/models/operations/listcommerceitems.ts +3 -0
  338. package/src/sdk/models/operations/listcommercereviews.ts +143 -0
  339. package/src/sdk/models/operations/listcrmcompanies.ts +9 -0
  340. package/src/sdk/models/operations/listcrmcontacts.ts +9 -0
  341. package/src/sdk/models/operations/listcrmdeals.ts +9 -0
  342. package/src/sdk/models/operations/listcrmevents.ts +15 -0
  343. package/src/sdk/models/operations/listcrmleads.ts +9 -0
  344. package/src/sdk/models/operations/listhrisdevices.ts +3 -0
  345. package/src/sdk/models/operations/listhrisemployees.ts +3 -0
  346. package/src/sdk/models/operations/listhrisgroups.ts +3 -0
  347. package/src/sdk/models/operations/listhrispayslips.ts +6 -0
  348. package/src/sdk/models/operations/listhristimeoffs.ts +6 -0
  349. package/src/sdk/models/operations/listkmscomments.ts +9 -0
  350. package/src/sdk/models/operations/listkmspages.ts +6 -0
  351. package/src/sdk/models/operations/listkmsspaces.ts +3 -0
  352. package/src/sdk/models/operations/listlmsclasses.ts +6 -0
  353. package/src/sdk/models/operations/listlmscourses.ts +9 -0
  354. package/src/sdk/models/operations/listlmsinstructors.ts +12 -6
  355. package/src/sdk/models/operations/listlmsstudents.ts +9 -6
  356. package/src/sdk/models/operations/listmartechmembers.ts +3 -0
  357. package/src/sdk/models/operations/listmessagingchannels.ts +3 -0
  358. package/src/sdk/models/operations/listmessagingmessages.ts +12 -0
  359. package/src/sdk/models/operations/listmetadatametadatas.ts +3 -0
  360. package/src/sdk/models/operations/listpaymentlinks.ts +6 -0
  361. package/src/sdk/models/operations/listpaymentpayments.ts +6 -0
  362. package/src/sdk/models/operations/listpaymentrefunds.ts +3 -0
  363. package/src/sdk/models/operations/listpaymentsubscriptions.ts +3 -0
  364. package/src/sdk/models/operations/listrepobranches.ts +3 -0
  365. package/src/sdk/models/operations/listrepocommits.ts +6 -0
  366. package/src/sdk/models/operations/listrepopullrequests.ts +3 -0
  367. package/src/sdk/models/operations/listreporepositories.ts +3 -0
  368. package/src/sdk/models/operations/liststoragefiles.ts +6 -0
  369. package/src/sdk/models/operations/listtaskcomments.ts +3 -0
  370. package/src/sdk/models/operations/listtaskprojects.ts +3 -0
  371. package/src/sdk/models/operations/listtasktasks.ts +9 -0
  372. package/src/sdk/models/operations/listticketingnotes.ts +6 -0
  373. package/src/sdk/models/operations/listticketingtickets.ts +6 -0
  374. package/src/sdk/models/operations/listuccalls.ts +6 -0
  375. package/src/sdk/models/operations/listuccomments.ts +6 -0
  376. package/src/sdk/models/operations/listuccontacts.ts +3 -0
  377. package/src/sdk/models/operations/listucrecordings.ts +21 -0
  378. package/src/sdk/models/operations/patchcommercereview.ts +106 -0
  379. package/src/sdk/models/operations/removecommercereview.ts +155 -0
  380. package/src/sdk/models/operations/updatecommercereview.ts +108 -0
  381. package/src/sdk/models/shared/commercereview.ts +238 -0
  382. package/src/sdk/models/shared/commercereviewcomment.ts +189 -0
  383. package/src/sdk/models/shared/index.ts +2 -0
  384. package/src/sdk/review.ts +100 -0
  385. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,155 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type RemoveCommerceReviewRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Review
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveCommerceReviewResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export const RemoveCommerceReviewRequest$inboundSchema: z.ZodType<
28
+ RemoveCommerceReviewRequest,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ connection_id: z.string(),
33
+ id: z.string(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "connection_id": "connectionId",
37
+ });
38
+ });
39
+
40
+ /** @internal */
41
+ export type RemoveCommerceReviewRequest$Outbound = {
42
+ connection_id: string;
43
+ id: string;
44
+ };
45
+
46
+ /** @internal */
47
+ export const RemoveCommerceReviewRequest$outboundSchema: z.ZodType<
48
+ RemoveCommerceReviewRequest$Outbound,
49
+ z.ZodTypeDef,
50
+ RemoveCommerceReviewRequest
51
+ > = z.object({
52
+ connectionId: z.string(),
53
+ id: z.string(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ connectionId: "connection_id",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace RemoveCommerceReviewRequest$ {
65
+ /** @deprecated use `RemoveCommerceReviewRequest$inboundSchema` instead. */
66
+ export const inboundSchema = RemoveCommerceReviewRequest$inboundSchema;
67
+ /** @deprecated use `RemoveCommerceReviewRequest$outboundSchema` instead. */
68
+ export const outboundSchema = RemoveCommerceReviewRequest$outboundSchema;
69
+ /** @deprecated use `RemoveCommerceReviewRequest$Outbound` instead. */
70
+ export type Outbound = RemoveCommerceReviewRequest$Outbound;
71
+ }
72
+
73
+ export function removeCommerceReviewRequestToJSON(
74
+ removeCommerceReviewRequest: RemoveCommerceReviewRequest,
75
+ ): string {
76
+ return JSON.stringify(
77
+ RemoveCommerceReviewRequest$outboundSchema.parse(
78
+ removeCommerceReviewRequest,
79
+ ),
80
+ );
81
+ }
82
+
83
+ export function removeCommerceReviewRequestFromJSON(
84
+ jsonString: string,
85
+ ): SafeParseResult<RemoveCommerceReviewRequest, SDKValidationError> {
86
+ return safeParse(
87
+ jsonString,
88
+ (x) => RemoveCommerceReviewRequest$inboundSchema.parse(JSON.parse(x)),
89
+ `Failed to parse 'RemoveCommerceReviewRequest' from JSON`,
90
+ );
91
+ }
92
+
93
+ /** @internal */
94
+ export const RemoveCommerceReviewResponse$inboundSchema: z.ZodType<
95
+ RemoveCommerceReviewResponse,
96
+ z.ZodTypeDef,
97
+ unknown
98
+ > = z.object({
99
+ Headers: z.record(z.array(z.string())),
100
+ }).transform((v) => {
101
+ return remap$(v, {
102
+ "Headers": "headers",
103
+ });
104
+ });
105
+
106
+ /** @internal */
107
+ export type RemoveCommerceReviewResponse$Outbound = {
108
+ Headers: { [k: string]: Array<string> };
109
+ };
110
+
111
+ /** @internal */
112
+ export const RemoveCommerceReviewResponse$outboundSchema: z.ZodType<
113
+ RemoveCommerceReviewResponse$Outbound,
114
+ z.ZodTypeDef,
115
+ RemoveCommerceReviewResponse
116
+ > = z.object({
117
+ headers: z.record(z.array(z.string())),
118
+ }).transform((v) => {
119
+ return remap$(v, {
120
+ headers: "Headers",
121
+ });
122
+ });
123
+
124
+ /**
125
+ * @internal
126
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
127
+ */
128
+ export namespace RemoveCommerceReviewResponse$ {
129
+ /** @deprecated use `RemoveCommerceReviewResponse$inboundSchema` instead. */
130
+ export const inboundSchema = RemoveCommerceReviewResponse$inboundSchema;
131
+ /** @deprecated use `RemoveCommerceReviewResponse$outboundSchema` instead. */
132
+ export const outboundSchema = RemoveCommerceReviewResponse$outboundSchema;
133
+ /** @deprecated use `RemoveCommerceReviewResponse$Outbound` instead. */
134
+ export type Outbound = RemoveCommerceReviewResponse$Outbound;
135
+ }
136
+
137
+ export function removeCommerceReviewResponseToJSON(
138
+ removeCommerceReviewResponse: RemoveCommerceReviewResponse,
139
+ ): string {
140
+ return JSON.stringify(
141
+ RemoveCommerceReviewResponse$outboundSchema.parse(
142
+ removeCommerceReviewResponse,
143
+ ),
144
+ );
145
+ }
146
+
147
+ export function removeCommerceReviewResponseFromJSON(
148
+ jsonString: string,
149
+ ): SafeParseResult<RemoveCommerceReviewResponse, SDKValidationError> {
150
+ return safeParse(
151
+ jsonString,
152
+ (x) => RemoveCommerceReviewResponse$inboundSchema.parse(JSON.parse(x)),
153
+ `Failed to parse 'RemoveCommerceReviewResponse' from JSON`,
154
+ );
155
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import * as shared from "../shared/index.js";
11
+
12
+ export type UpdateCommerceReviewRequest = {
13
+ commerceReview: shared.CommerceReview;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * ID of the Review
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const UpdateCommerceReviewRequest$inboundSchema: z.ZodType<
34
+ UpdateCommerceReviewRequest,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ CommerceReview: shared.CommerceReview$inboundSchema,
39
+ connection_id: z.string(),
40
+ fields: z.array(z.string()).optional(),
41
+ id: z.string(),
42
+ raw: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "CommerceReview": "commerceReview",
46
+ "connection_id": "connectionId",
47
+ });
48
+ });
49
+
50
+ /** @internal */
51
+ export type UpdateCommerceReviewRequest$Outbound = {
52
+ CommerceReview: shared.CommerceReview$Outbound;
53
+ connection_id: string;
54
+ fields?: Array<string> | undefined;
55
+ id: string;
56
+ raw?: string | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const UpdateCommerceReviewRequest$outboundSchema: z.ZodType<
61
+ UpdateCommerceReviewRequest$Outbound,
62
+ z.ZodTypeDef,
63
+ UpdateCommerceReviewRequest
64
+ > = z.object({
65
+ commerceReview: shared.CommerceReview$outboundSchema,
66
+ connectionId: z.string(),
67
+ fields: z.array(z.string()).optional(),
68
+ id: z.string(),
69
+ raw: z.string().optional(),
70
+ }).transform((v) => {
71
+ return remap$(v, {
72
+ commerceReview: "CommerceReview",
73
+ connectionId: "connection_id",
74
+ });
75
+ });
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace UpdateCommerceReviewRequest$ {
82
+ /** @deprecated use `UpdateCommerceReviewRequest$inboundSchema` instead. */
83
+ export const inboundSchema = UpdateCommerceReviewRequest$inboundSchema;
84
+ /** @deprecated use `UpdateCommerceReviewRequest$outboundSchema` instead. */
85
+ export const outboundSchema = UpdateCommerceReviewRequest$outboundSchema;
86
+ /** @deprecated use `UpdateCommerceReviewRequest$Outbound` instead. */
87
+ export type Outbound = UpdateCommerceReviewRequest$Outbound;
88
+ }
89
+
90
+ export function updateCommerceReviewRequestToJSON(
91
+ updateCommerceReviewRequest: UpdateCommerceReviewRequest,
92
+ ): string {
93
+ return JSON.stringify(
94
+ UpdateCommerceReviewRequest$outboundSchema.parse(
95
+ updateCommerceReviewRequest,
96
+ ),
97
+ );
98
+ }
99
+
100
+ export function updateCommerceReviewRequestFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<UpdateCommerceReviewRequest, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) => UpdateCommerceReviewRequest$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'UpdateCommerceReviewRequest' from JSON`,
107
+ );
108
+ }
@@ -0,0 +1,238 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ CommerceItemMedia,
13
+ CommerceItemMedia$inboundSchema,
14
+ CommerceItemMedia$Outbound,
15
+ CommerceItemMedia$outboundSchema,
16
+ } from "./commerceitemmedia.js";
17
+ import {
18
+ CommerceMetadata,
19
+ CommerceMetadata$inboundSchema,
20
+ CommerceMetadata$Outbound,
21
+ CommerceMetadata$outboundSchema,
22
+ } from "./commercemetadata.js";
23
+ import {
24
+ CommerceReviewComment,
25
+ CommerceReviewComment$inboundSchema,
26
+ CommerceReviewComment$Outbound,
27
+ CommerceReviewComment$outboundSchema,
28
+ } from "./commercereviewcomment.js";
29
+
30
+ export const CommerceReviewStatus = {
31
+ Pending: "PENDING",
32
+ Approved: "APPROVED",
33
+ Rejected: "REJECTED",
34
+ Spam: "SPAM",
35
+ } as const;
36
+ export type CommerceReviewStatus = ClosedEnum<typeof CommerceReviewStatus>;
37
+
38
+ export type CommerceReview = {
39
+ authorAvatarUrl?: string | undefined;
40
+ authorEmail?: string | undefined;
41
+ authorLocation?: string | undefined;
42
+ authorName?: string | undefined;
43
+ comments?: Array<CommerceReviewComment> | undefined;
44
+ content?: string | undefined;
45
+ createdAt?: Date | undefined;
46
+ helpfulVotes?: number | undefined;
47
+ id?: string | undefined;
48
+ isFeatured?: boolean | undefined;
49
+ isPublic?: boolean | undefined;
50
+ isVerified?: boolean | undefined;
51
+ itemId: string;
52
+ itemVariantId?: string | undefined;
53
+ /**
54
+ * Photosvideos attached to the review
55
+ */
56
+ media?: Array<CommerceItemMedia> | undefined;
57
+ metadata?: Array<CommerceMetadata> | undefined;
58
+ rating?: number | undefined;
59
+ raw?: { [k: string]: any } | undefined;
60
+ status?: CommerceReviewStatus | undefined;
61
+ title?: string | undefined;
62
+ unhelpfulVotes?: number | undefined;
63
+ updatedAt?: Date | undefined;
64
+ verifiedPurchase?: boolean | undefined;
65
+ };
66
+
67
+ /** @internal */
68
+ export const CommerceReviewStatus$inboundSchema: z.ZodNativeEnum<
69
+ typeof CommerceReviewStatus
70
+ > = z.nativeEnum(CommerceReviewStatus);
71
+
72
+ /** @internal */
73
+ export const CommerceReviewStatus$outboundSchema: z.ZodNativeEnum<
74
+ typeof CommerceReviewStatus
75
+ > = CommerceReviewStatus$inboundSchema;
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace CommerceReviewStatus$ {
82
+ /** @deprecated use `CommerceReviewStatus$inboundSchema` instead. */
83
+ export const inboundSchema = CommerceReviewStatus$inboundSchema;
84
+ /** @deprecated use `CommerceReviewStatus$outboundSchema` instead. */
85
+ export const outboundSchema = CommerceReviewStatus$outboundSchema;
86
+ }
87
+
88
+ /** @internal */
89
+ export const CommerceReview$inboundSchema: z.ZodType<
90
+ CommerceReview,
91
+ z.ZodTypeDef,
92
+ unknown
93
+ > = z.object({
94
+ author_avatar_url: z.string().optional(),
95
+ author_email: z.string().optional(),
96
+ author_location: z.string().optional(),
97
+ author_name: z.string().optional(),
98
+ comments: z.array(CommerceReviewComment$inboundSchema).optional(),
99
+ content: z.string().optional(),
100
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
101
+ .optional(),
102
+ helpful_votes: z.number().optional(),
103
+ id: z.string().optional(),
104
+ is_featured: z.boolean().optional(),
105
+ is_public: z.boolean().optional(),
106
+ is_verified: z.boolean().optional(),
107
+ item_id: z.string(),
108
+ item_variant_id: z.string().optional(),
109
+ media: z.array(CommerceItemMedia$inboundSchema).optional(),
110
+ metadata: z.array(CommerceMetadata$inboundSchema).optional(),
111
+ rating: z.number().optional(),
112
+ raw: z.record(z.any()).optional(),
113
+ status: CommerceReviewStatus$inboundSchema.optional(),
114
+ title: z.string().optional(),
115
+ unhelpful_votes: z.number().optional(),
116
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
117
+ .optional(),
118
+ verified_purchase: z.boolean().optional(),
119
+ }).transform((v) => {
120
+ return remap$(v, {
121
+ "author_avatar_url": "authorAvatarUrl",
122
+ "author_email": "authorEmail",
123
+ "author_location": "authorLocation",
124
+ "author_name": "authorName",
125
+ "created_at": "createdAt",
126
+ "helpful_votes": "helpfulVotes",
127
+ "is_featured": "isFeatured",
128
+ "is_public": "isPublic",
129
+ "is_verified": "isVerified",
130
+ "item_id": "itemId",
131
+ "item_variant_id": "itemVariantId",
132
+ "unhelpful_votes": "unhelpfulVotes",
133
+ "updated_at": "updatedAt",
134
+ "verified_purchase": "verifiedPurchase",
135
+ });
136
+ });
137
+
138
+ /** @internal */
139
+ export type CommerceReview$Outbound = {
140
+ author_avatar_url?: string | undefined;
141
+ author_email?: string | undefined;
142
+ author_location?: string | undefined;
143
+ author_name?: string | undefined;
144
+ comments?: Array<CommerceReviewComment$Outbound> | undefined;
145
+ content?: string | undefined;
146
+ created_at?: string | undefined;
147
+ helpful_votes?: number | undefined;
148
+ id?: string | undefined;
149
+ is_featured?: boolean | undefined;
150
+ is_public?: boolean | undefined;
151
+ is_verified?: boolean | undefined;
152
+ item_id: string;
153
+ item_variant_id?: string | undefined;
154
+ media?: Array<CommerceItemMedia$Outbound> | undefined;
155
+ metadata?: Array<CommerceMetadata$Outbound> | undefined;
156
+ rating?: number | undefined;
157
+ raw?: { [k: string]: any } | undefined;
158
+ status?: string | undefined;
159
+ title?: string | undefined;
160
+ unhelpful_votes?: number | undefined;
161
+ updated_at?: string | undefined;
162
+ verified_purchase?: boolean | undefined;
163
+ };
164
+
165
+ /** @internal */
166
+ export const CommerceReview$outboundSchema: z.ZodType<
167
+ CommerceReview$Outbound,
168
+ z.ZodTypeDef,
169
+ CommerceReview
170
+ > = z.object({
171
+ authorAvatarUrl: z.string().optional(),
172
+ authorEmail: z.string().optional(),
173
+ authorLocation: z.string().optional(),
174
+ authorName: z.string().optional(),
175
+ comments: z.array(CommerceReviewComment$outboundSchema).optional(),
176
+ content: z.string().optional(),
177
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
178
+ helpfulVotes: z.number().optional(),
179
+ id: z.string().optional(),
180
+ isFeatured: z.boolean().optional(),
181
+ isPublic: z.boolean().optional(),
182
+ isVerified: z.boolean().optional(),
183
+ itemId: z.string(),
184
+ itemVariantId: z.string().optional(),
185
+ media: z.array(CommerceItemMedia$outboundSchema).optional(),
186
+ metadata: z.array(CommerceMetadata$outboundSchema).optional(),
187
+ rating: z.number().optional(),
188
+ raw: z.record(z.any()).optional(),
189
+ status: CommerceReviewStatus$outboundSchema.optional(),
190
+ title: z.string().optional(),
191
+ unhelpfulVotes: z.number().optional(),
192
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
193
+ verifiedPurchase: z.boolean().optional(),
194
+ }).transform((v) => {
195
+ return remap$(v, {
196
+ authorAvatarUrl: "author_avatar_url",
197
+ authorEmail: "author_email",
198
+ authorLocation: "author_location",
199
+ authorName: "author_name",
200
+ createdAt: "created_at",
201
+ helpfulVotes: "helpful_votes",
202
+ isFeatured: "is_featured",
203
+ isPublic: "is_public",
204
+ isVerified: "is_verified",
205
+ itemId: "item_id",
206
+ itemVariantId: "item_variant_id",
207
+ unhelpfulVotes: "unhelpful_votes",
208
+ updatedAt: "updated_at",
209
+ verifiedPurchase: "verified_purchase",
210
+ });
211
+ });
212
+
213
+ /**
214
+ * @internal
215
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
216
+ */
217
+ export namespace CommerceReview$ {
218
+ /** @deprecated use `CommerceReview$inboundSchema` instead. */
219
+ export const inboundSchema = CommerceReview$inboundSchema;
220
+ /** @deprecated use `CommerceReview$outboundSchema` instead. */
221
+ export const outboundSchema = CommerceReview$outboundSchema;
222
+ /** @deprecated use `CommerceReview$Outbound` instead. */
223
+ export type Outbound = CommerceReview$Outbound;
224
+ }
225
+
226
+ export function commerceReviewToJSON(commerceReview: CommerceReview): string {
227
+ return JSON.stringify(CommerceReview$outboundSchema.parse(commerceReview));
228
+ }
229
+
230
+ export function commerceReviewFromJSON(
231
+ jsonString: string,
232
+ ): SafeParseResult<CommerceReview, SDKValidationError> {
233
+ return safeParse(
234
+ jsonString,
235
+ (x) => CommerceReview$inboundSchema.parse(JSON.parse(x)),
236
+ `Failed to parse 'CommerceReview' from JSON`,
237
+ );
238
+ }
@@ -0,0 +1,189 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ CommerceMetadata,
13
+ CommerceMetadata$inboundSchema,
14
+ CommerceMetadata$Outbound,
15
+ CommerceMetadata$outboundSchema,
16
+ } from "./commercemetadata.js";
17
+
18
+ export const CommerceReviewCommentStatus = {
19
+ Pending: "PENDING",
20
+ Approved: "APPROVED",
21
+ Rejected: "REJECTED",
22
+ Spam: "SPAM",
23
+ } as const;
24
+ export type CommerceReviewCommentStatus = ClosedEnum<
25
+ typeof CommerceReviewCommentStatus
26
+ >;
27
+
28
+ export type CommerceReviewComment = {
29
+ authorAvatarUrl?: string | undefined;
30
+ authorEmail?: string | undefined;
31
+ authorLocation?: string | undefined;
32
+ authorName?: string | undefined;
33
+ content: string;
34
+ createdAt?: Date | undefined;
35
+ helpfulVotes?: number | undefined;
36
+ id?: string | undefined;
37
+ isPublic?: boolean | undefined;
38
+ isVerified?: boolean | undefined;
39
+ metadata?: Array<CommerceMetadata> | undefined;
40
+ raw?: { [k: string]: any } | undefined;
41
+ status?: CommerceReviewCommentStatus | undefined;
42
+ unhelpfulVotes?: number | undefined;
43
+ updatedAt?: Date | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const CommerceReviewCommentStatus$inboundSchema: z.ZodNativeEnum<
48
+ typeof CommerceReviewCommentStatus
49
+ > = z.nativeEnum(CommerceReviewCommentStatus);
50
+
51
+ /** @internal */
52
+ export const CommerceReviewCommentStatus$outboundSchema: z.ZodNativeEnum<
53
+ typeof CommerceReviewCommentStatus
54
+ > = CommerceReviewCommentStatus$inboundSchema;
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace CommerceReviewCommentStatus$ {
61
+ /** @deprecated use `CommerceReviewCommentStatus$inboundSchema` instead. */
62
+ export const inboundSchema = CommerceReviewCommentStatus$inboundSchema;
63
+ /** @deprecated use `CommerceReviewCommentStatus$outboundSchema` instead. */
64
+ export const outboundSchema = CommerceReviewCommentStatus$outboundSchema;
65
+ }
66
+
67
+ /** @internal */
68
+ export const CommerceReviewComment$inboundSchema: z.ZodType<
69
+ CommerceReviewComment,
70
+ z.ZodTypeDef,
71
+ unknown
72
+ > = z.object({
73
+ author_avatar_url: z.string().optional(),
74
+ author_email: z.string().optional(),
75
+ author_location: z.string().optional(),
76
+ author_name: z.string().optional(),
77
+ content: z.string(),
78
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
79
+ .optional(),
80
+ helpful_votes: z.number().optional(),
81
+ id: z.string().optional(),
82
+ is_public: z.boolean().optional(),
83
+ is_verified: z.boolean().optional(),
84
+ metadata: z.array(CommerceMetadata$inboundSchema).optional(),
85
+ raw: z.record(z.any()).optional(),
86
+ status: CommerceReviewCommentStatus$inboundSchema.optional(),
87
+ unhelpful_votes: z.number().optional(),
88
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
89
+ .optional(),
90
+ }).transform((v) => {
91
+ return remap$(v, {
92
+ "author_avatar_url": "authorAvatarUrl",
93
+ "author_email": "authorEmail",
94
+ "author_location": "authorLocation",
95
+ "author_name": "authorName",
96
+ "created_at": "createdAt",
97
+ "helpful_votes": "helpfulVotes",
98
+ "is_public": "isPublic",
99
+ "is_verified": "isVerified",
100
+ "unhelpful_votes": "unhelpfulVotes",
101
+ "updated_at": "updatedAt",
102
+ });
103
+ });
104
+
105
+ /** @internal */
106
+ export type CommerceReviewComment$Outbound = {
107
+ author_avatar_url?: string | undefined;
108
+ author_email?: string | undefined;
109
+ author_location?: string | undefined;
110
+ author_name?: string | undefined;
111
+ content: string;
112
+ created_at?: string | undefined;
113
+ helpful_votes?: number | undefined;
114
+ id?: string | undefined;
115
+ is_public?: boolean | undefined;
116
+ is_verified?: boolean | undefined;
117
+ metadata?: Array<CommerceMetadata$Outbound> | undefined;
118
+ raw?: { [k: string]: any } | undefined;
119
+ status?: string | undefined;
120
+ unhelpful_votes?: number | undefined;
121
+ updated_at?: string | undefined;
122
+ };
123
+
124
+ /** @internal */
125
+ export const CommerceReviewComment$outboundSchema: z.ZodType<
126
+ CommerceReviewComment$Outbound,
127
+ z.ZodTypeDef,
128
+ CommerceReviewComment
129
+ > = z.object({
130
+ authorAvatarUrl: z.string().optional(),
131
+ authorEmail: z.string().optional(),
132
+ authorLocation: z.string().optional(),
133
+ authorName: z.string().optional(),
134
+ content: z.string(),
135
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
136
+ helpfulVotes: z.number().optional(),
137
+ id: z.string().optional(),
138
+ isPublic: z.boolean().optional(),
139
+ isVerified: z.boolean().optional(),
140
+ metadata: z.array(CommerceMetadata$outboundSchema).optional(),
141
+ raw: z.record(z.any()).optional(),
142
+ status: CommerceReviewCommentStatus$outboundSchema.optional(),
143
+ unhelpfulVotes: z.number().optional(),
144
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
145
+ }).transform((v) => {
146
+ return remap$(v, {
147
+ authorAvatarUrl: "author_avatar_url",
148
+ authorEmail: "author_email",
149
+ authorLocation: "author_location",
150
+ authorName: "author_name",
151
+ createdAt: "created_at",
152
+ helpfulVotes: "helpful_votes",
153
+ isPublic: "is_public",
154
+ isVerified: "is_verified",
155
+ unhelpfulVotes: "unhelpful_votes",
156
+ updatedAt: "updated_at",
157
+ });
158
+ });
159
+
160
+ /**
161
+ * @internal
162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
+ */
164
+ export namespace CommerceReviewComment$ {
165
+ /** @deprecated use `CommerceReviewComment$inboundSchema` instead. */
166
+ export const inboundSchema = CommerceReviewComment$inboundSchema;
167
+ /** @deprecated use `CommerceReviewComment$outboundSchema` instead. */
168
+ export const outboundSchema = CommerceReviewComment$outboundSchema;
169
+ /** @deprecated use `CommerceReviewComment$Outbound` instead. */
170
+ export type Outbound = CommerceReviewComment$Outbound;
171
+ }
172
+
173
+ export function commerceReviewCommentToJSON(
174
+ commerceReviewComment: CommerceReviewComment,
175
+ ): string {
176
+ return JSON.stringify(
177
+ CommerceReviewComment$outboundSchema.parse(commerceReviewComment),
178
+ );
179
+ }
180
+
181
+ export function commerceReviewCommentFromJSON(
182
+ jsonString: string,
183
+ ): SafeParseResult<CommerceReviewComment, SDKValidationError> {
184
+ return safeParse(
185
+ jsonString,
186
+ (x) => CommerceReviewComment$inboundSchema.parse(JSON.parse(x)),
187
+ `Failed to parse 'CommerceReviewComment' from JSON`,
188
+ );
189
+ }
@@ -65,6 +65,8 @@ export * from "./commerceitemprice.js";
65
65
  export * from "./commerceitemvariant.js";
66
66
  export * from "./commercelocation.js";
67
67
  export * from "./commercemetadata.js";
68
+ export * from "./commercereview.js";
69
+ export * from "./commercereviewcomment.js";
68
70
  export * from "./connection.js";
69
71
  export * from "./crmcompany.js";
70
72
  export * from "./crmcontact.js";