@rippling/rippling-sdk 0.2.0-alpha.29 → 0.2.0-alpha.30

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 (534) hide show
  1. package/client.d.mts +22 -94
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +22 -94
  4. package/client.d.ts.map +1 -1
  5. package/client.js +20 -92
  6. package/client.js.map +1 -1
  7. package/client.mjs +20 -92
  8. package/client.mjs.map +1 -1
  9. package/internal/utils/env.js +2 -2
  10. package/internal/utils/env.js.map +1 -1
  11. package/internal/utils/env.mjs +2 -2
  12. package/internal/utils/env.mjs.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/business-partner-groups.d.mts +1 -1
  15. package/resources/business-partner-groups.d.ts +1 -1
  16. package/resources/business-partner-groups.js +1 -1
  17. package/resources/business-partner-groups.mjs +1 -1
  18. package/resources/business-partners.d.mts +1 -1
  19. package/resources/business-partners.d.ts +1 -1
  20. package/resources/business-partners.js +1 -1
  21. package/resources/business-partners.mjs +1 -1
  22. package/resources/candidate-applications.d.mts +1 -1
  23. package/resources/candidate-applications.d.ts +1 -1
  24. package/resources/candidate-applications.js +1 -1
  25. package/resources/candidate-applications.mjs +1 -1
  26. package/resources/candidates.d.mts +1 -1
  27. package/resources/candidates.d.ts +1 -1
  28. package/resources/candidates.js +1 -1
  29. package/resources/candidates.mjs +1 -1
  30. package/resources/companies.d.mts +1 -1
  31. package/resources/companies.d.ts +1 -1
  32. package/resources/companies.js +1 -1
  33. package/resources/companies.mjs +1 -1
  34. package/resources/compensation-bands-details.d.mts +1 -1
  35. package/resources/compensation-bands-details.d.ts +1 -1
  36. package/resources/compensation-bands-details.js +1 -1
  37. package/resources/compensation-bands-details.mjs +1 -1
  38. package/resources/compensations.d.mts +1 -1
  39. package/resources/compensations.d.ts +1 -1
  40. package/resources/compensations.js +1 -1
  41. package/resources/compensations.mjs +1 -1
  42. package/resources/custom-apps.d.mts +3 -3
  43. package/resources/custom-apps.d.ts +3 -3
  44. package/resources/custom-apps.js +3 -3
  45. package/resources/custom-apps.mjs +3 -3
  46. package/resources/custom-fields.d.mts +1 -1
  47. package/resources/custom-fields.d.ts +1 -1
  48. package/resources/custom-fields.js +1 -1
  49. package/resources/custom-fields.mjs +1 -1
  50. package/resources/custom-objects/custom-objects.d.mts +29 -5
  51. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  52. package/resources/custom-objects/custom-objects.d.ts +29 -5
  53. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  54. package/resources/custom-objects/custom-objects.js +5 -5
  55. package/resources/custom-objects/custom-objects.js.map +1 -1
  56. package/resources/custom-objects/custom-objects.mjs +5 -5
  57. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  58. package/resources/custom-objects/fields.d.mts +71 -5
  59. package/resources/custom-objects/fields.d.mts.map +1 -1
  60. package/resources/custom-objects/fields.d.ts +71 -5
  61. package/resources/custom-objects/fields.d.ts.map +1 -1
  62. package/resources/custom-objects/fields.js +5 -5
  63. package/resources/custom-objects/fields.mjs +5 -5
  64. package/resources/custom-objects/records.d.mts +68 -11
  65. package/resources/custom-objects/records.d.mts.map +1 -1
  66. package/resources/custom-objects/records.d.ts +68 -11
  67. package/resources/custom-objects/records.d.ts.map +1 -1
  68. package/resources/custom-objects/records.js +10 -10
  69. package/resources/custom-objects/records.mjs +10 -10
  70. package/resources/custom-pages.d.mts +3 -3
  71. package/resources/custom-pages.d.ts +3 -3
  72. package/resources/custom-pages.js +3 -3
  73. package/resources/custom-pages.mjs +3 -3
  74. package/resources/custom-settings.d.mts +2 -2
  75. package/resources/custom-settings.d.ts +2 -2
  76. package/resources/custom-settings.js +2 -2
  77. package/resources/custom-settings.mjs +2 -2
  78. package/resources/departments.d.mts +2 -2
  79. package/resources/departments.d.ts +2 -2
  80. package/resources/departments.js +2 -2
  81. package/resources/departments.mjs +2 -2
  82. package/resources/earning-types.d.mts +48 -0
  83. package/resources/earning-types.d.mts.map +1 -0
  84. package/resources/earning-types.d.ts +48 -0
  85. package/resources/earning-types.d.ts.map +1 -0
  86. package/resources/earning-types.js +21 -0
  87. package/resources/earning-types.js.map +1 -0
  88. package/resources/earning-types.mjs +17 -0
  89. package/resources/earning-types.mjs.map +1 -0
  90. package/resources/employment-types.d.mts +1 -1
  91. package/resources/employment-types.d.ts +1 -1
  92. package/resources/employment-types.js +1 -1
  93. package/resources/employment-types.mjs +1 -1
  94. package/resources/entitlements.d.mts +1 -1
  95. package/resources/entitlements.d.ts +1 -1
  96. package/resources/entitlements.js +1 -1
  97. package/resources/entitlements.mjs +1 -1
  98. package/resources/functions/deployments.d.mts +10 -4
  99. package/resources/functions/deployments.d.mts.map +1 -1
  100. package/resources/functions/deployments.d.ts +10 -4
  101. package/resources/functions/deployments.d.ts.map +1 -1
  102. package/resources/functions/deployments.js +4 -4
  103. package/resources/functions/deployments.mjs +4 -4
  104. package/resources/functions/executions.d.mts +10 -4
  105. package/resources/functions/executions.d.mts.map +1 -1
  106. package/resources/functions/executions.d.ts +10 -4
  107. package/resources/functions/executions.d.ts.map +1 -1
  108. package/resources/functions/executions.js +4 -4
  109. package/resources/functions/executions.mjs +4 -4
  110. package/resources/functions/functions.d.mts +8 -14
  111. package/resources/functions/functions.d.mts.map +1 -1
  112. package/resources/functions/functions.d.ts +8 -14
  113. package/resources/functions/functions.d.ts.map +1 -1
  114. package/resources/functions/functions.js +6 -6
  115. package/resources/functions/functions.js.map +1 -1
  116. package/resources/functions/functions.mjs +6 -6
  117. package/resources/functions/functions.mjs.map +1 -1
  118. package/resources/functions/index.d.mts +1 -1
  119. package/resources/functions/index.d.mts.map +1 -1
  120. package/resources/functions/index.d.ts +1 -1
  121. package/resources/functions/index.d.ts.map +1 -1
  122. package/resources/functions/index.js.map +1 -1
  123. package/resources/functions/index.mjs.map +1 -1
  124. package/resources/headcount-positions.d.mts +1 -1
  125. package/resources/headcount-positions.d.ts +1 -1
  126. package/resources/headcount-positions.js +1 -1
  127. package/resources/headcount-positions.mjs +1 -1
  128. package/resources/headcount-priorities.d.mts +1 -1
  129. package/resources/headcount-priorities.d.ts +1 -1
  130. package/resources/headcount-priorities.js +1 -1
  131. package/resources/headcount-priorities.mjs +1 -1
  132. package/resources/index.d.mts +5 -17
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +5 -17
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +10 -34
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +4 -16
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/job-assignments.d.mts +3 -3
  141. package/resources/job-assignments.d.ts +3 -3
  142. package/resources/job-assignments.js +3 -3
  143. package/resources/job-assignments.mjs +3 -3
  144. package/resources/job-codes.d.mts +3 -3
  145. package/resources/job-codes.d.ts +3 -3
  146. package/resources/job-codes.js +3 -3
  147. package/resources/job-codes.mjs +3 -3
  148. package/resources/job-dimensions.d.mts +2 -2
  149. package/resources/job-dimensions.d.ts +2 -2
  150. package/resources/job-dimensions.js +2 -2
  151. package/resources/job-dimensions.mjs +2 -2
  152. package/resources/job-functions.d.mts +1 -1
  153. package/resources/job-functions.d.ts +1 -1
  154. package/resources/job-functions.js +1 -1
  155. package/resources/job-functions.mjs +1 -1
  156. package/resources/job-pay-rate-exceptions.d.mts +2 -2
  157. package/resources/job-pay-rate-exceptions.d.ts +2 -2
  158. package/resources/job-pay-rate-exceptions.js +2 -2
  159. package/resources/job-pay-rate-exceptions.mjs +2 -2
  160. package/resources/job-requisitions.d.mts +1 -1
  161. package/resources/job-requisitions.d.ts +1 -1
  162. package/resources/job-requisitions.js +1 -1
  163. package/resources/job-requisitions.mjs +1 -1
  164. package/resources/kiosk-badges.d.mts +2 -2
  165. package/resources/kiosk-badges.d.ts +2 -2
  166. package/resources/kiosk-badges.js +2 -2
  167. package/resources/kiosk-badges.mjs +2 -2
  168. package/resources/leave-accruals.d.mts +1 -1
  169. package/resources/leave-accruals.d.ts +1 -1
  170. package/resources/leave-accruals.js +1 -1
  171. package/resources/leave-accruals.mjs +1 -1
  172. package/resources/leave-balances.d.mts +1 -1
  173. package/resources/leave-balances.d.ts +1 -1
  174. package/resources/leave-balances.js +1 -1
  175. package/resources/leave-balances.mjs +1 -1
  176. package/resources/leave-requests.d.mts +2 -2
  177. package/resources/leave-requests.d.ts +2 -2
  178. package/resources/leave-requests.js +2 -2
  179. package/resources/leave-requests.mjs +2 -2
  180. package/resources/leave-types.d.mts +1 -1
  181. package/resources/leave-types.d.ts +1 -1
  182. package/resources/leave-types.js +1 -1
  183. package/resources/leave-types.mjs +1 -1
  184. package/resources/legal-entities.d.mts +1 -1
  185. package/resources/legal-entities.d.ts +1 -1
  186. package/resources/legal-entities.js +1 -1
  187. package/resources/legal-entities.mjs +1 -1
  188. package/resources/levels.d.mts +1 -1
  189. package/resources/levels.d.ts +1 -1
  190. package/resources/levels.js +1 -1
  191. package/resources/levels.mjs +1 -1
  192. package/resources/location-factors.d.mts +1 -1
  193. package/resources/location-factors.d.ts +1 -1
  194. package/resources/location-factors.js +1 -1
  195. package/resources/location-factors.mjs +1 -1
  196. package/resources/metadata/components.d.mts +2 -2
  197. package/resources/metadata/components.d.ts +2 -2
  198. package/resources/metadata/components.js +2 -2
  199. package/resources/metadata/components.mjs +2 -2
  200. package/resources/metadata/metadata.d.mts +2 -2
  201. package/resources/metadata/metadata.d.ts +2 -2
  202. package/resources/metadata/metadata.js +2 -2
  203. package/resources/metadata/metadata.mjs +2 -2
  204. package/resources/metadata/summary.d.mts +2 -2
  205. package/resources/metadata/summary.d.ts +2 -2
  206. package/resources/metadata/summary.js +2 -2
  207. package/resources/metadata/summary.mjs +2 -2
  208. package/resources/metadata/types.d.mts +2 -2
  209. package/resources/metadata/types.d.ts +2 -2
  210. package/resources/metadata/types.js +2 -2
  211. package/resources/metadata/types.mjs +2 -2
  212. package/resources/object-categories.d.mts +17 -5
  213. package/resources/object-categories.d.mts.map +1 -1
  214. package/resources/object-categories.d.ts +17 -5
  215. package/resources/object-categories.d.ts.map +1 -1
  216. package/resources/object-categories.js +5 -5
  217. package/resources/object-categories.mjs +5 -5
  218. package/resources/payroll-runs.d.mts +195 -0
  219. package/resources/payroll-runs.d.mts.map +1 -0
  220. package/resources/payroll-runs.d.ts +195 -0
  221. package/resources/payroll-runs.d.ts.map +1 -0
  222. package/resources/payroll-runs.js +32 -0
  223. package/resources/payroll-runs.js.map +1 -0
  224. package/resources/payroll-runs.mjs +28 -0
  225. package/resources/payroll-runs.mjs.map +1 -0
  226. package/resources/platform-capabilities.d.mts +2 -2
  227. package/resources/platform-capabilities.d.ts +2 -2
  228. package/resources/platform-capabilities.js +2 -2
  229. package/resources/platform-capabilities.mjs +2 -2
  230. package/resources/report-runs.d.mts +60 -0
  231. package/resources/report-runs.d.mts.map +1 -1
  232. package/resources/report-runs.d.ts +60 -0
  233. package/resources/report-runs.d.ts.map +1 -1
  234. package/resources/reports/available-filters.d.mts +49 -0
  235. package/resources/reports/available-filters.d.mts.map +1 -0
  236. package/resources/reports/available-filters.d.ts +49 -0
  237. package/resources/reports/available-filters.d.ts.map +1 -0
  238. package/resources/reports/available-filters.js +20 -0
  239. package/resources/reports/available-filters.js.map +1 -0
  240. package/resources/reports/available-filters.mjs +16 -0
  241. package/resources/reports/available-filters.mjs.map +1 -0
  242. package/resources/reports/index.d.mts +3 -0
  243. package/resources/reports/index.d.mts.map +1 -0
  244. package/resources/reports/index.d.ts +3 -0
  245. package/resources/reports/index.d.ts.map +1 -0
  246. package/resources/reports/index.js +9 -0
  247. package/resources/reports/index.js.map +1 -0
  248. package/resources/reports/index.mjs +4 -0
  249. package/resources/reports/index.mjs.map +1 -0
  250. package/resources/reports/reports.d.mts +85 -0
  251. package/resources/reports/reports.d.mts.map +1 -0
  252. package/resources/reports/reports.d.ts +85 -0
  253. package/resources/reports/reports.d.ts.map +1 -0
  254. package/resources/reports/reports.js +27 -0
  255. package/resources/reports/reports.js.map +1 -0
  256. package/resources/reports/reports.mjs +22 -0
  257. package/resources/reports/reports.mjs.map +1 -0
  258. package/resources/reports.d.mts +2 -0
  259. package/resources/reports.d.mts.map +1 -0
  260. package/resources/reports.d.ts +2 -0
  261. package/resources/reports.d.ts.map +1 -0
  262. package/resources/reports.js +6 -0
  263. package/resources/reports.js.map +1 -0
  264. package/resources/reports.mjs +3 -0
  265. package/resources/reports.mjs.map +1 -0
  266. package/resources/schedules.d.mts +2 -2
  267. package/resources/schedules.d.ts +2 -2
  268. package/resources/schedules.js +2 -2
  269. package/resources/schedules.mjs +2 -2
  270. package/resources/shift-inputs.d.mts +2 -2
  271. package/resources/shift-inputs.d.ts +2 -2
  272. package/resources/shift-inputs.js +2 -2
  273. package/resources/shift-inputs.mjs +2 -2
  274. package/resources/shiftassignments.d.mts +2 -2
  275. package/resources/shiftassignments.d.ts +2 -2
  276. package/resources/shiftassignments.js +2 -2
  277. package/resources/shiftassignments.mjs +2 -2
  278. package/resources/teams.d.mts +1 -1
  279. package/resources/teams.d.ts +1 -1
  280. package/resources/teams.js +1 -1
  281. package/resources/teams.mjs +1 -1
  282. package/resources/time-cards.d.mts +1 -1
  283. package/resources/time-cards.d.ts +1 -1
  284. package/resources/time-cards.js +1 -1
  285. package/resources/time-cards.mjs +1 -1
  286. package/resources/time-entries.d.mts +2 -2
  287. package/resources/time-entries.d.ts +2 -2
  288. package/resources/time-entries.js +2 -2
  289. package/resources/time-entries.mjs +2 -2
  290. package/resources/titles.d.mts +2 -2
  291. package/resources/titles.d.ts +2 -2
  292. package/resources/titles.js +2 -2
  293. package/resources/titles.mjs +2 -2
  294. package/resources/tracks.d.mts +1 -1
  295. package/resources/tracks.d.ts +1 -1
  296. package/resources/tracks.js +1 -1
  297. package/resources/tracks.mjs +1 -1
  298. package/resources/unassignedshifts.d.mts +2 -2
  299. package/resources/unassignedshifts.d.ts +2 -2
  300. package/resources/unassignedshifts.js +2 -2
  301. package/resources/unassignedshifts.mjs +2 -2
  302. package/resources/users.d.mts +1 -1
  303. package/resources/users.d.ts +1 -1
  304. package/resources/users.js +1 -1
  305. package/resources/users.mjs +1 -1
  306. package/resources/work-locations.d.mts +2 -2
  307. package/resources/work-locations.d.ts +2 -2
  308. package/resources/work-locations.js +2 -2
  309. package/resources/work-locations.mjs +2 -2
  310. package/resources/workers.d.mts +1 -1
  311. package/resources/workers.d.ts +1 -1
  312. package/resources/workers.js +1 -1
  313. package/resources/workers.mjs +1 -1
  314. package/resources/workflow-action-executions.d.mts +572 -0
  315. package/resources/workflow-action-executions.d.mts.map +1 -0
  316. package/resources/workflow-action-executions.d.ts +572 -0
  317. package/resources/workflow-action-executions.d.ts.map +1 -0
  318. package/resources/{create-app-notification.js → workflow-action-executions.js} +6 -6
  319. package/resources/workflow-action-executions.js.map +1 -0
  320. package/resources/{evaluate-rql.mjs → workflow-action-executions.mjs} +4 -4
  321. package/resources/workflow-action-executions.mjs.map +1 -0
  322. package/src/client.ts +55 -221
  323. package/src/internal/utils/env.ts +2 -2
  324. package/src/resources/business-partner-groups.ts +1 -1
  325. package/src/resources/business-partners.ts +1 -1
  326. package/src/resources/candidate-applications.ts +1 -1
  327. package/src/resources/candidates.ts +1 -1
  328. package/src/resources/companies.ts +1 -1
  329. package/src/resources/compensation-bands-details.ts +1 -1
  330. package/src/resources/compensations.ts +1 -1
  331. package/src/resources/custom-apps.ts +3 -3
  332. package/src/resources/custom-fields.ts +1 -1
  333. package/src/resources/custom-objects/custom-objects.ts +29 -5
  334. package/src/resources/custom-objects/fields.ts +71 -5
  335. package/src/resources/custom-objects/records.ts +68 -11
  336. package/src/resources/custom-pages.ts +3 -3
  337. package/src/resources/custom-settings.ts +2 -2
  338. package/src/resources/departments.ts +2 -2
  339. package/src/resources/earning-types.ts +64 -0
  340. package/src/resources/employment-types.ts +1 -1
  341. package/src/resources/entitlements.ts +1 -1
  342. package/src/resources/functions/deployments.ts +10 -4
  343. package/src/resources/functions/executions.ts +10 -4
  344. package/src/resources/functions/functions.ts +9 -15
  345. package/src/resources/functions/index.ts +1 -0
  346. package/src/resources/headcount-positions.ts +1 -1
  347. package/src/resources/headcount-priorities.ts +1 -1
  348. package/src/resources/index.ts +19 -52
  349. package/src/resources/job-assignments.ts +3 -3
  350. package/src/resources/job-codes.ts +3 -3
  351. package/src/resources/job-dimensions.ts +2 -2
  352. package/src/resources/job-functions.ts +1 -1
  353. package/src/resources/job-pay-rate-exceptions.ts +2 -2
  354. package/src/resources/job-requisitions.ts +1 -1
  355. package/src/resources/kiosk-badges.ts +2 -2
  356. package/src/resources/leave-accruals.ts +1 -1
  357. package/src/resources/leave-balances.ts +1 -1
  358. package/src/resources/leave-requests.ts +2 -2
  359. package/src/resources/leave-types.ts +1 -1
  360. package/src/resources/legal-entities.ts +1 -1
  361. package/src/resources/levels.ts +1 -1
  362. package/src/resources/location-factors.ts +1 -1
  363. package/src/resources/metadata/components.ts +2 -2
  364. package/src/resources/metadata/metadata.ts +2 -2
  365. package/src/resources/metadata/summary.ts +2 -2
  366. package/src/resources/metadata/types.ts +2 -2
  367. package/src/resources/object-categories.ts +17 -5
  368. package/src/resources/payroll-runs.ts +251 -0
  369. package/src/resources/platform-capabilities.ts +2 -2
  370. package/src/resources/report-runs.ts +90 -0
  371. package/src/resources/reports/available-filters.ts +60 -0
  372. package/src/resources/reports/index.ts +4 -0
  373. package/src/resources/reports/reports.ts +112 -0
  374. package/src/resources/reports.ts +3 -0
  375. package/src/resources/schedules.ts +2 -2
  376. package/src/resources/shift-inputs.ts +2 -2
  377. package/src/resources/shiftassignments.ts +2 -2
  378. package/src/resources/teams.ts +1 -1
  379. package/src/resources/time-cards.ts +1 -1
  380. package/src/resources/time-entries.ts +2 -2
  381. package/src/resources/titles.ts +2 -2
  382. package/src/resources/tracks.ts +1 -1
  383. package/src/resources/unassignedshifts.ts +2 -2
  384. package/src/resources/users.ts +1 -1
  385. package/src/resources/work-locations.ts +2 -2
  386. package/src/resources/workers.ts +1 -1
  387. package/src/resources/workflow-action-executions.ts +925 -0
  388. package/src/version.ts +1 -1
  389. package/version.d.mts +1 -1
  390. package/version.d.ts +1 -1
  391. package/version.js +1 -1
  392. package/version.mjs +1 -1
  393. package/resources/assign-review.d.mts +0 -31
  394. package/resources/assign-review.d.mts.map +0 -1
  395. package/resources/assign-review.d.ts +0 -31
  396. package/resources/assign-review.d.ts.map +0 -1
  397. package/resources/assign-review.js +0 -18
  398. package/resources/assign-review.js.map +0 -1
  399. package/resources/assign-review.mjs +0 -14
  400. package/resources/assign-review.mjs.map +0 -1
  401. package/resources/create-app-notification.d.mts +0 -29
  402. package/resources/create-app-notification.d.mts.map +0 -1
  403. package/resources/create-app-notification.d.ts +0 -29
  404. package/resources/create-app-notification.d.ts.map +0 -1
  405. package/resources/create-app-notification.js.map +0 -1
  406. package/resources/create-app-notification.mjs +0 -14
  407. package/resources/create-app-notification.mjs.map +0 -1
  408. package/resources/create-gcal-event.d.mts +0 -55
  409. package/resources/create-gcal-event.d.mts.map +0 -1
  410. package/resources/create-gcal-event.d.ts +0 -55
  411. package/resources/create-gcal-event.d.ts.map +0 -1
  412. package/resources/create-gcal-event.js +0 -18
  413. package/resources/create-gcal-event.js.map +0 -1
  414. package/resources/create-gcal-event.mjs +0 -14
  415. package/resources/create-gcal-event.mjs.map +0 -1
  416. package/resources/delete-custom-object-record.d.mts +0 -26
  417. package/resources/delete-custom-object-record.d.mts.map +0 -1
  418. package/resources/delete-custom-object-record.d.ts +0 -26
  419. package/resources/delete-custom-object-record.d.ts.map +0 -1
  420. package/resources/delete-custom-object-record.js +0 -18
  421. package/resources/delete-custom-object-record.js.map +0 -1
  422. package/resources/delete-custom-object-record.mjs +0 -14
  423. package/resources/delete-custom-object-record.mjs.map +0 -1
  424. package/resources/evaluate-rql.d.mts +0 -31
  425. package/resources/evaluate-rql.d.mts.map +0 -1
  426. package/resources/evaluate-rql.d.ts +0 -31
  427. package/resources/evaluate-rql.d.ts.map +0 -1
  428. package/resources/evaluate-rql.js +0 -18
  429. package/resources/evaluate-rql.js.map +0 -1
  430. package/resources/evaluate-rql.mjs.map +0 -1
  431. package/resources/run-query.d.mts +0 -39
  432. package/resources/run-query.d.mts.map +0 -1
  433. package/resources/run-query.d.ts +0 -39
  434. package/resources/run-query.d.ts.map +0 -1
  435. package/resources/run-query.js +0 -21
  436. package/resources/run-query.js.map +0 -1
  437. package/resources/run-query.mjs +0 -17
  438. package/resources/run-query.mjs.map +0 -1
  439. package/resources/send-email.d.mts +0 -33
  440. package/resources/send-email.d.mts.map +0 -1
  441. package/resources/send-email.d.ts +0 -33
  442. package/resources/send-email.d.ts.map +0 -1
  443. package/resources/send-email.js +0 -18
  444. package/resources/send-email.js.map +0 -1
  445. package/resources/send-email.mjs +0 -14
  446. package/resources/send-email.mjs.map +0 -1
  447. package/resources/send-http-request.d.mts +0 -32
  448. package/resources/send-http-request.d.mts.map +0 -1
  449. package/resources/send-http-request.d.ts +0 -32
  450. package/resources/send-http-request.d.ts.map +0 -1
  451. package/resources/send-http-request.js +0 -18
  452. package/resources/send-http-request.js.map +0 -1
  453. package/resources/send-http-request.mjs +0 -14
  454. package/resources/send-http-request.mjs.map +0 -1
  455. package/resources/send-push-notification.d.mts +0 -27
  456. package/resources/send-push-notification.d.mts.map +0 -1
  457. package/resources/send-push-notification.d.ts +0 -27
  458. package/resources/send-push-notification.d.ts.map +0 -1
  459. package/resources/send-push-notification.js +0 -18
  460. package/resources/send-push-notification.js.map +0 -1
  461. package/resources/send-push-notification.mjs +0 -14
  462. package/resources/send-push-notification.mjs.map +0 -1
  463. package/resources/send-report-sftp.d.mts +0 -42
  464. package/resources/send-report-sftp.d.mts.map +0 -1
  465. package/resources/send-report-sftp.d.ts +0 -42
  466. package/resources/send-report-sftp.d.ts.map +0 -1
  467. package/resources/send-report-sftp.js +0 -18
  468. package/resources/send-report-sftp.js.map +0 -1
  469. package/resources/send-report-sftp.mjs +0 -14
  470. package/resources/send-report-sftp.mjs.map +0 -1
  471. package/resources/send-slack.d.mts +0 -30
  472. package/resources/send-slack.d.mts.map +0 -1
  473. package/resources/send-slack.d.ts +0 -30
  474. package/resources/send-slack.d.ts.map +0 -1
  475. package/resources/send-slack.js +0 -18
  476. package/resources/send-slack.js.map +0 -1
  477. package/resources/send-slack.mjs +0 -14
  478. package/resources/send-slack.mjs.map +0 -1
  479. package/resources/send-sms.d.mts +0 -26
  480. package/resources/send-sms.d.mts.map +0 -1
  481. package/resources/send-sms.d.ts +0 -26
  482. package/resources/send-sms.d.ts.map +0 -1
  483. package/resources/send-sms.js +0 -18
  484. package/resources/send-sms.js.map +0 -1
  485. package/resources/send-sms.mjs +0 -14
  486. package/resources/send-sms.mjs.map +0 -1
  487. package/resources/send-survey.d.mts +0 -29
  488. package/resources/send-survey.d.mts.map +0 -1
  489. package/resources/send-survey.d.ts +0 -29
  490. package/resources/send-survey.d.ts.map +0 -1
  491. package/resources/send-survey.js +0 -18
  492. package/resources/send-survey.js.map +0 -1
  493. package/resources/send-survey.mjs +0 -14
  494. package/resources/send-survey.mjs.map +0 -1
  495. package/resources/send-teams.d.mts +0 -30
  496. package/resources/send-teams.d.mts.map +0 -1
  497. package/resources/send-teams.d.ts +0 -30
  498. package/resources/send-teams.d.ts.map +0 -1
  499. package/resources/send-teams.js +0 -18
  500. package/resources/send-teams.js.map +0 -1
  501. package/resources/send-teams.mjs +0 -14
  502. package/resources/send-teams.mjs.map +0 -1
  503. package/resources/update-custom-object-record.d.mts +0 -27
  504. package/resources/update-custom-object-record.d.mts.map +0 -1
  505. package/resources/update-custom-object-record.d.ts +0 -27
  506. package/resources/update-custom-object-record.d.ts.map +0 -1
  507. package/resources/update-custom-object-record.js +0 -18
  508. package/resources/update-custom-object-record.js.map +0 -1
  509. package/resources/update-custom-object-record.mjs +0 -14
  510. package/resources/update-custom-object-record.mjs.map +0 -1
  511. package/resources/upsert-custom-object.d.mts +0 -26
  512. package/resources/upsert-custom-object.d.mts.map +0 -1
  513. package/resources/upsert-custom-object.d.ts +0 -26
  514. package/resources/upsert-custom-object.d.ts.map +0 -1
  515. package/resources/upsert-custom-object.js +0 -18
  516. package/resources/upsert-custom-object.js.map +0 -1
  517. package/resources/upsert-custom-object.mjs +0 -14
  518. package/resources/upsert-custom-object.mjs.map +0 -1
  519. package/src/resources/assign-review.ts +0 -44
  520. package/src/resources/create-app-notification.ts +0 -46
  521. package/src/resources/create-gcal-event.ts +0 -86
  522. package/src/resources/delete-custom-object-record.ts +0 -40
  523. package/src/resources/evaluate-rql.ts +0 -44
  524. package/src/resources/run-query.ts +0 -51
  525. package/src/resources/send-email.ts +0 -48
  526. package/src/resources/send-http-request.ts +0 -49
  527. package/src/resources/send-push-notification.ts +0 -42
  528. package/src/resources/send-report-sftp.ts +0 -66
  529. package/src/resources/send-slack.ts +0 -42
  530. package/src/resources/send-sms.ts +0 -37
  531. package/src/resources/send-survey.ts +0 -43
  532. package/src/resources/send-teams.ts +0 -42
  533. package/src/resources/update-custom-object-record.ts +0 -42
  534. package/src/resources/upsert-custom-object.ts +0 -40
@@ -1 +0,0 @@
1
- {"version":3,"file":"upsert-custom-object.js","sourceRoot":"","sources":["../src/resources/upsert-custom-object.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAVD,gDAUC"}
@@ -1,14 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- /**
4
- * Execute workflow actions like sending emails, Slack messages, and notifications
5
- */
6
- export class UpsertCustomObject extends APIResource {
7
- /**
8
- * Execute the custom object upsert action.
9
- */
10
- create(body, options) {
11
- return this._client.post('/upsert-custom-object/', { body, ...options });
12
- }
13
- }
14
- //# sourceMappingURL=upsert-custom-object.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upsert-custom-object.mjs","sourceRoot":"","sources":["../src/resources/upsert-custom-object.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -1,44 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class AssignReview extends APIResource {
11
- /**
12
- * Execute the review assignment action.
13
- */
14
- create(body: AssignReviewCreateParams, options?: RequestOptions): APIPromise<AssignReviewCreateResponse> {
15
- return this._client.post('/assign-review/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface AssignReviewCreateResponse {
20
- /**
21
- * Result of the assign review action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface AssignReviewCreateParams {
27
- cycleId: string;
28
-
29
- reviewees: Array<string>;
30
-
31
- reviewers: Array<string>;
32
-
33
- /**
34
- * An enumeration.
35
- */
36
- isReviewerRelativeToReviewee?: 'REVIEWER_RELATIVE_TO_REVIEWEE' | 'REVIEWER_RELATIVE_TO_TRIGGER' | null;
37
- }
38
-
39
- export declare namespace AssignReview {
40
- export {
41
- type AssignReviewCreateResponse as AssignReviewCreateResponse,
42
- type AssignReviewCreateParams as AssignReviewCreateParams,
43
- };
44
- }
@@ -1,46 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class CreateAppNotification extends APIResource {
11
- /**
12
- * Execute the app notification action.
13
- */
14
- create(
15
- body: CreateAppNotificationCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<CreateAppNotificationCreateResponse> {
18
- return this._client.post('/create-app-notification/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface CreateAppNotificationCreateResponse {
23
- /**
24
- * Result of the create app notification action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface CreateAppNotificationCreateParams {
30
- description: string;
31
-
32
- recipients: Array<string>;
33
-
34
- subject: string;
35
-
36
- days_from_now?: number | null;
37
-
38
- due_date?: string | null;
39
- }
40
-
41
- export declare namespace CreateAppNotification {
42
- export {
43
- type CreateAppNotificationCreateResponse as CreateAppNotificationCreateResponse,
44
- type CreateAppNotificationCreateParams as CreateAppNotificationCreateParams,
45
- };
46
- }
@@ -1,86 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class CreateGcalEvent extends APIResource {
11
- /**
12
- * Execute the gcal event action.
13
- */
14
- create(
15
- body: CreateGcalEventCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<CreateGcalEventCreateResponse> {
18
- return this._client.post('/create-gcal-event/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface CreateGcalEventCreateResponse {
23
- /**
24
- * Result of the create Google Calendar event action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface CreateGcalEventCreateParams {
30
- attendees: Array<string>;
31
-
32
- description: string;
33
-
34
- end_date: string;
35
-
36
- end_time: string;
37
-
38
- organizer: Array<string>;
39
-
40
- /**
41
- * An enumeration.
42
- */
43
- organizer_type: 'SUPERGROUP' | 'WORKFLOW_OWNER';
44
-
45
- start_date: string;
46
-
47
- start_time: string;
48
-
49
- timezone: string;
50
-
51
- title: string;
52
-
53
- all_day_event?: boolean | null;
54
-
55
- guestsCanInviteOthers?: boolean | null;
56
-
57
- guestsCanModify?: boolean | null;
58
-
59
- guestsCanSeeOtherGuests?: boolean | null;
60
-
61
- recurrence_count?: number | null;
62
-
63
- /**
64
- * An enumeration.
65
- */
66
- recurrence_frequency?: 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY' | null;
67
-
68
- recurrence_has_end?: boolean | null;
69
-
70
- /**
71
- * An enumeration.
72
- */
73
- transparency?: 'opaque' | 'transparent' | null;
74
-
75
- /**
76
- * An enumeration.
77
- */
78
- visibility?: 'default' | 'public' | 'private' | null;
79
- }
80
-
81
- export declare namespace CreateGcalEvent {
82
- export {
83
- type CreateGcalEventCreateResponse as CreateGcalEventCreateResponse,
84
- type CreateGcalEventCreateParams as CreateGcalEventCreateParams,
85
- };
86
- }
@@ -1,40 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class DeleteCustomObjectRecord extends APIResource {
11
- /**
12
- * Execute the custom object record deletion action.
13
- */
14
- create(
15
- body: DeleteCustomObjectRecordCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<DeleteCustomObjectRecordCreateResponse> {
18
- return this._client.post('/delete-custom-object-record/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface DeleteCustomObjectRecordCreateResponse {
23
- /**
24
- * Result of the delete custom object record action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface DeleteCustomObjectRecordCreateParams {
30
- customObjectAPIName: string;
31
-
32
- recordID: string;
33
- }
34
-
35
- export declare namespace DeleteCustomObjectRecord {
36
- export {
37
- type DeleteCustomObjectRecordCreateResponse as DeleteCustomObjectRecordCreateResponse,
38
- type DeleteCustomObjectRecordCreateParams as DeleteCustomObjectRecordCreateParams,
39
- };
40
- }
@@ -1,44 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class EvaluateRql extends APIResource {
11
- /**
12
- * Execute the rql evaluation action.
13
- */
14
- create(body: EvaluateRqlCreateParams, options?: RequestOptions): APIPromise<EvaluateRqlCreateResponse> {
15
- return this._client.post('/evaluate-rql/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface EvaluateRqlCreateResponse {
20
- /**
21
- * Result of the evaluate RQL action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface EvaluateRqlCreateParams {
27
- /**
28
- * An enumeration.
29
- */
30
- queryType: 'SELECTION' | 'QUERY';
31
-
32
- rqlCondition?: string | null;
33
-
34
- rqlFormula?: string | null;
35
-
36
- rqlModelName?: string | null;
37
- }
38
-
39
- export declare namespace EvaluateRql {
40
- export {
41
- type EvaluateRqlCreateResponse as EvaluateRqlCreateResponse,
42
- type EvaluateRqlCreateParams as EvaluateRqlCreateParams,
43
- };
44
- }
@@ -1,51 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute SQL queries and manage transformations
9
- */
10
- export class RunQuery extends APIResource {
11
- /**
12
- * Execute a SQL query (Trino dialect) against Data Cloud transformations. Returns
13
- * result rows as dictionaries and column metadata (api_name, display_name,
14
- * data_type). Permission checks and blocked source validation are enforced
15
- * server-side.
16
- */
17
- create(body: RunQueryCreateParams, options?: RequestOptions): APIPromise<RunQueryCreateResponse> {
18
- return this._client.post('/run-query/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface RunQueryCreateResponse {
23
- /**
24
- * Query result rows, each row is a dictionary of column name to value
25
- */
26
- data: unknown;
27
-
28
- /**
29
- * Column metadata including api_name, display_name, and data_type
30
- */
31
- derived_columns: unknown;
32
- }
33
-
34
- export interface RunQueryCreateParams {
35
- /**
36
- * SQL query to execute in Trino dialect.
37
- */
38
- query: string;
39
-
40
- /**
41
- * Optional product name for request attribution and tracking
42
- */
43
- product_name?: string | null;
44
- }
45
-
46
- export declare namespace RunQuery {
47
- export {
48
- type RunQueryCreateResponse as RunQueryCreateResponse,
49
- type RunQueryCreateParams as RunQueryCreateParams,
50
- };
51
- }
@@ -1,48 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendEmail extends APIResource {
11
- /**
12
- * Execute the email action.
13
- */
14
- create(body: SendEmailCreateParams, options?: RequestOptions): APIPromise<SendEmailCreateResponse> {
15
- return this._client.post('/send-email/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface SendEmailCreateResponse {
20
- /**
21
- * Result of the send email action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface SendEmailCreateParams {
27
- /**
28
- * An enumeration.
29
- */
30
- action_type: 'INDIVIDUAL_EMAILS' | 'GROUP_EMAIL';
31
-
32
- body: string;
33
-
34
- recipients: Array<string>;
35
-
36
- subject: string;
37
-
38
- bcc?: Array<string> | null;
39
-
40
- cc?: Array<string> | null;
41
- }
42
-
43
- export declare namespace SendEmail {
44
- export {
45
- type SendEmailCreateResponse as SendEmailCreateResponse,
46
- type SendEmailCreateParams as SendEmailCreateParams,
47
- };
48
- }
@@ -1,49 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendHTTPRequest extends APIResource {
11
- /**
12
- * Execute the http request action.
13
- */
14
- create(
15
- body: SendHTTPRequestCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<SendHTTPRequestCreateResponse> {
18
- return this._client.post('/send-http-request/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface SendHTTPRequestCreateResponse {
23
- /**
24
- * Result of the send HTTP request action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface SendHTTPRequestCreateParams {
30
- url: string;
31
-
32
- customHTTPHeaders?: unknown | null;
33
-
34
- /**
35
- * An enumeration.
36
- */
37
- method?: 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE' | null;
38
-
39
- payload?: unknown | null;
40
-
41
- queryParams?: unknown | null;
42
- }
43
-
44
- export declare namespace SendHTTPRequest {
45
- export {
46
- type SendHTTPRequestCreateResponse as SendHTTPRequestCreateResponse,
47
- type SendHTTPRequestCreateParams as SendHTTPRequestCreateParams,
48
- };
49
- }
@@ -1,42 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendPushNotification extends APIResource {
11
- /**
12
- * Execute the push notification action.
13
- */
14
- create(
15
- body: SendPushNotificationCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<SendPushNotificationCreateResponse> {
18
- return this._client.post('/send-push-notification/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface SendPushNotificationCreateResponse {
23
- /**
24
- * Result of the send push notification action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface SendPushNotificationCreateParams {
30
- header: string;
31
-
32
- message: string;
33
-
34
- recipients: Array<string>;
35
- }
36
-
37
- export declare namespace SendPushNotification {
38
- export {
39
- type SendPushNotificationCreateResponse as SendPushNotificationCreateResponse,
40
- type SendPushNotificationCreateParams as SendPushNotificationCreateParams,
41
- };
42
- }
@@ -1,66 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendReportSftp extends APIResource {
11
- /**
12
- * Execute the sftp report action.
13
- */
14
- create(
15
- body: SendReportSftpCreateParams,
16
- options?: RequestOptions,
17
- ): APIPromise<SendReportSftpCreateResponse> {
18
- return this._client.post('/send-report-sftp/', { body, ...options });
19
- }
20
- }
21
-
22
- export interface SendReportSftpCreateResponse {
23
- /**
24
- * Result of the send report via SFTP action
25
- */
26
- result: unknown;
27
- }
28
-
29
- export interface SendReportSftpCreateParams {
30
- /**
31
- * An enumeration.
32
- */
33
- authenticationType: 'PASSWORD' | 'SSH_KEY';
34
-
35
- fileType: string;
36
-
37
- hostName: string;
38
-
39
- port: number;
40
-
41
- reportId: string;
42
-
43
- userName: string;
44
-
45
- fileName?: string | null;
46
-
47
- filePath?: string | null;
48
-
49
- /**
50
- * An enumeration.
51
- */
52
- fileSuffix?: 'EPOCH_FORMAT' | 'NO_SUFFIX' | 'DEFAULT_FORMAT' | null;
53
-
54
- password?: string | null;
55
-
56
- privateKey?: string | null;
57
-
58
- privateKeyPassphrase?: string | null;
59
- }
60
-
61
- export declare namespace SendReportSftp {
62
- export {
63
- type SendReportSftpCreateResponse as SendReportSftpCreateResponse,
64
- type SendReportSftpCreateParams as SendReportSftpCreateParams,
65
- };
66
- }
@@ -1,42 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendSlack extends APIResource {
11
- /**
12
- * Execute the slack message action.
13
- */
14
- create(body: SendSlackCreateParams, options?: RequestOptions): APIPromise<SendSlackCreateResponse> {
15
- return this._client.post('/send-slack/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface SendSlackCreateResponse {
20
- /**
21
- * Result of the send Slack message action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface SendSlackCreateParams {
27
- /**
28
- * An enumeration.
29
- */
30
- action_type: 'SINGLE_DIRECT_MESSAGE' | 'GROUP_DIRECT_MESSAGE' | 'PUBLIC_CHANNEL_MESSAGE';
31
-
32
- body: string;
33
-
34
- recipients: Array<string>;
35
- }
36
-
37
- export declare namespace SendSlack {
38
- export {
39
- type SendSlackCreateResponse as SendSlackCreateResponse,
40
- type SendSlackCreateParams as SendSlackCreateParams,
41
- };
42
- }
@@ -1,37 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendSMS extends APIResource {
11
- /**
12
- * Execute the sms action.
13
- */
14
- create(body: SendSMSCreateParams, options?: RequestOptions): APIPromise<SendSMSCreateResponse> {
15
- return this._client.post('/send-sms/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface SendSMSCreateResponse {
20
- /**
21
- * Result of the send SMS action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface SendSMSCreateParams {
27
- message: string;
28
-
29
- recipients: Array<string>;
30
- }
31
-
32
- export declare namespace SendSMS {
33
- export {
34
- type SendSMSCreateResponse as SendSMSCreateResponse,
35
- type SendSMSCreateParams as SendSMSCreateParams,
36
- };
37
- }
@@ -1,43 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
-
7
- /**
8
- * Execute workflow actions like sending emails, Slack messages, and notifications
9
- */
10
- export class SendSurvey extends APIResource {
11
- /**
12
- * Execute the survey action.
13
- */
14
- create(body: SendSurveyCreateParams, options?: RequestOptions): APIPromise<SendSurveyCreateResponse> {
15
- return this._client.post('/send-survey/', { body, ...options });
16
- }
17
- }
18
-
19
- export interface SendSurveyCreateResponse {
20
- /**
21
- * Result of the send survey action
22
- */
23
- result: unknown;
24
- }
25
-
26
- export interface SendSurveyCreateParams {
27
- body: string;
28
-
29
- recipients: Array<string>;
30
-
31
- subject: string;
32
-
33
- surveyID: string;
34
-
35
- expiryDays?: number | null;
36
- }
37
-
38
- export declare namespace SendSurvey {
39
- export {
40
- type SendSurveyCreateResponse as SendSurveyCreateResponse,
41
- type SendSurveyCreateParams as SendSurveyCreateParams,
42
- };
43
- }