@rippling/rippling-sdk 0.2.0-alpha.95 → 0.2.0-alpha.97

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 (259) hide show
  1. package/client.d.mts +78 -6
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +78 -6
  4. package/client.d.ts.map +1 -1
  5. package/client.js +73 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +73 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/agents/sessions/index.d.mts +1 -0
  11. package/resources/agents/sessions/index.d.mts.map +1 -1
  12. package/resources/agents/sessions/index.d.ts +1 -0
  13. package/resources/agents/sessions/index.d.ts.map +1 -1
  14. package/resources/agents/sessions/index.js +3 -1
  15. package/resources/agents/sessions/index.js.map +1 -1
  16. package/resources/agents/sessions/index.mjs +1 -0
  17. package/resources/agents/sessions/index.mjs.map +1 -1
  18. package/resources/agents/sessions/messages.d.mts +24 -0
  19. package/resources/agents/sessions/messages.d.mts.map +1 -1
  20. package/resources/agents/sessions/messages.d.ts +24 -0
  21. package/resources/agents/sessions/messages.d.ts.map +1 -1
  22. package/resources/agents/sessions/resume-state.d.mts +25 -0
  23. package/resources/agents/sessions/resume-state.d.mts.map +1 -0
  24. package/resources/agents/sessions/resume-state.d.ts +25 -0
  25. package/resources/agents/sessions/resume-state.d.ts.map +1 -0
  26. package/resources/agents/sessions/resume-state.js +19 -0
  27. package/resources/agents/sessions/resume-state.js.map +1 -0
  28. package/resources/agents/sessions/resume-state.mjs +15 -0
  29. package/resources/agents/sessions/resume-state.mjs.map +1 -0
  30. package/resources/agents/sessions/sessions.d.mts +91 -0
  31. package/resources/agents/sessions/sessions.d.mts.map +1 -1
  32. package/resources/agents/sessions/sessions.d.ts +91 -0
  33. package/resources/agents/sessions/sessions.d.ts.map +1 -1
  34. package/resources/agents/sessions/sessions.js +4 -0
  35. package/resources/agents/sessions/sessions.js.map +1 -1
  36. package/resources/agents/sessions/sessions.mjs +4 -0
  37. package/resources/agents/sessions/sessions.mjs.map +1 -1
  38. package/resources/background-check-candidates.d.mts +337 -0
  39. package/resources/background-check-candidates.d.mts.map +1 -0
  40. package/resources/background-check-candidates.d.ts +337 -0
  41. package/resources/background-check-candidates.d.ts.map +1 -0
  42. package/resources/background-check-candidates.js +52 -0
  43. package/resources/background-check-candidates.js.map +1 -0
  44. package/resources/background-check-candidates.mjs +48 -0
  45. package/resources/background-check-candidates.mjs.map +1 -0
  46. package/resources/business-structure-paths.d.mts +54 -1
  47. package/resources/business-structure-paths.d.mts.map +1 -1
  48. package/resources/business-structure-paths.d.ts +54 -1
  49. package/resources/business-structure-paths.d.ts.map +1 -1
  50. package/resources/business-structure-paths.js +16 -0
  51. package/resources/business-structure-paths.js.map +1 -1
  52. package/resources/business-structure-paths.mjs +16 -0
  53. package/resources/business-structure-paths.mjs.map +1 -1
  54. package/resources/developer-program-application.d.mts +176 -0
  55. package/resources/developer-program-application.d.mts.map +1 -0
  56. package/resources/developer-program-application.d.ts +176 -0
  57. package/resources/developer-program-application.d.ts.map +1 -0
  58. package/resources/developer-program-application.js +27 -0
  59. package/resources/developer-program-application.js.map +1 -0
  60. package/resources/developer-program-application.mjs +23 -0
  61. package/resources/developer-program-application.mjs.map +1 -0
  62. package/resources/developer-users.d.mts +53 -0
  63. package/resources/developer-users.d.mts.map +1 -0
  64. package/resources/developer-users.d.ts +53 -0
  65. package/resources/developer-users.d.ts.map +1 -0
  66. package/resources/developer-users.js +25 -0
  67. package/resources/developer-users.js.map +1 -0
  68. package/resources/developer-users.mjs +21 -0
  69. package/resources/developer-users.mjs.map +1 -0
  70. package/resources/draft-transitions.d.mts +474 -0
  71. package/resources/draft-transitions.d.mts.map +1 -0
  72. package/resources/draft-transitions.d.ts +474 -0
  73. package/resources/draft-transitions.d.ts.map +1 -0
  74. package/resources/draft-transitions.js +25 -0
  75. package/resources/draft-transitions.js.map +1 -0
  76. package/resources/draft-transitions.mjs +21 -0
  77. package/resources/draft-transitions.mjs.map +1 -0
  78. package/resources/earnings-inputs.d.mts +30 -0
  79. package/resources/earnings-inputs.d.mts.map +1 -1
  80. package/resources/earnings-inputs.d.ts +30 -0
  81. package/resources/earnings-inputs.d.ts.map +1 -1
  82. package/resources/hire-requirements.d.mts +112 -0
  83. package/resources/hire-requirements.d.mts.map +1 -0
  84. package/resources/hire-requirements.d.ts +112 -0
  85. package/resources/hire-requirements.d.ts.map +1 -0
  86. package/resources/hire-requirements.js +19 -0
  87. package/resources/hire-requirements.js.map +1 -0
  88. package/resources/hire-requirements.mjs +15 -0
  89. package/resources/hire-requirements.mjs.map +1 -0
  90. package/resources/hires.d.mts +657 -0
  91. package/resources/hires.d.mts.map +1 -0
  92. package/resources/hires.d.ts +657 -0
  93. package/resources/hires.d.ts.map +1 -0
  94. package/resources/hires.js +25 -0
  95. package/resources/hires.js.map +1 -0
  96. package/resources/hires.mjs +21 -0
  97. package/resources/hires.mjs.map +1 -0
  98. package/resources/index.d.mts +15 -3
  99. package/resources/index.d.mts.map +1 -1
  100. package/resources/index.d.ts +15 -3
  101. package/resources/index.d.ts.map +1 -1
  102. package/resources/index.js +27 -3
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs +13 -1
  105. package/resources/index.mjs.map +1 -1
  106. package/resources/listing-submissions.d.mts +86 -0
  107. package/resources/listing-submissions.d.mts.map +1 -0
  108. package/resources/listing-submissions.d.ts +86 -0
  109. package/resources/listing-submissions.d.ts.map +1 -0
  110. package/resources/listing-submissions.js +31 -0
  111. package/resources/listing-submissions.js.map +1 -0
  112. package/resources/listing-submissions.mjs +27 -0
  113. package/resources/listing-submissions.mjs.map +1 -0
  114. package/resources/listing-transitions.d.mts +59 -0
  115. package/resources/listing-transitions.d.mts.map +1 -0
  116. package/resources/listing-transitions.d.ts +59 -0
  117. package/resources/listing-transitions.d.ts.map +1 -0
  118. package/resources/listing-transitions.js +24 -0
  119. package/resources/listing-transitions.js.map +1 -0
  120. package/resources/listing-transitions.mjs +20 -0
  121. package/resources/listing-transitions.mjs.map +1 -0
  122. package/resources/listing.d.mts +1818 -0
  123. package/resources/listing.d.mts.map +1 -0
  124. package/resources/listing.d.ts +1818 -0
  125. package/resources/listing.d.ts.map +1 -0
  126. package/resources/listing.js +70 -0
  127. package/resources/listing.js.map +1 -0
  128. package/resources/listing.mjs +66 -0
  129. package/resources/listing.mjs.map +1 -0
  130. package/resources/package-managed-installs.d.mts +119 -0
  131. package/resources/package-managed-installs.d.mts.map +1 -0
  132. package/resources/package-managed-installs.d.ts +119 -0
  133. package/resources/package-managed-installs.d.ts.map +1 -0
  134. package/resources/package-managed-installs.js +26 -0
  135. package/resources/package-managed-installs.js.map +1 -0
  136. package/resources/package-managed-installs.mjs +22 -0
  137. package/resources/package-managed-installs.mjs.map +1 -0
  138. package/resources/package-sandbox-links.d.mts +150 -0
  139. package/resources/package-sandbox-links.d.mts.map +1 -0
  140. package/resources/package-sandbox-links.d.ts +150 -0
  141. package/resources/package-sandbox-links.d.ts.map +1 -0
  142. package/resources/package-sandbox-links.js +25 -0
  143. package/resources/package-sandbox-links.js.map +1 -0
  144. package/resources/package-sandbox-links.mjs +21 -0
  145. package/resources/package-sandbox-links.mjs.map +1 -0
  146. package/resources/package-versions/index.d.mts +3 -0
  147. package/resources/package-versions/index.d.mts.map +1 -0
  148. package/resources/package-versions/index.d.ts +3 -0
  149. package/resources/package-versions/index.d.ts.map +1 -0
  150. package/resources/package-versions/index.js +9 -0
  151. package/resources/package-versions/index.js.map +1 -0
  152. package/resources/package-versions/index.mjs +4 -0
  153. package/resources/package-versions/index.mjs.map +1 -0
  154. package/resources/package-versions/package-versions.d.mts +114 -0
  155. package/resources/package-versions/package-versions.d.mts.map +1 -0
  156. package/resources/package-versions/package-versions.d.ts +114 -0
  157. package/resources/package-versions/package-versions.d.ts.map +1 -0
  158. package/resources/package-versions/package-versions.js +33 -0
  159. package/resources/package-versions/package-versions.js.map +1 -0
  160. package/resources/package-versions/package-versions.mjs +28 -0
  161. package/resources/package-versions/package-versions.mjs.map +1 -0
  162. package/resources/package-versions/publish.d.mts +58 -0
  163. package/resources/package-versions/publish.d.mts.map +1 -0
  164. package/resources/package-versions/publish.d.ts +58 -0
  165. package/resources/package-versions/publish.d.ts.map +1 -0
  166. package/resources/package-versions/publish.js +19 -0
  167. package/resources/package-versions/publish.js.map +1 -0
  168. package/resources/package-versions/publish.mjs +15 -0
  169. package/resources/package-versions/publish.mjs.map +1 -0
  170. package/resources/package-versions.d.mts +1 -63
  171. package/resources/package-versions.d.mts.map +1 -1
  172. package/resources/package-versions.d.ts +1 -63
  173. package/resources/package-versions.d.ts.map +1 -1
  174. package/resources/package-versions.js +2 -15
  175. package/resources/package-versions.js.map +1 -1
  176. package/resources/package-versions.mjs +1 -13
  177. package/resources/package-versions.mjs.map +1 -1
  178. package/resources/packages/index.d.mts +1 -1
  179. package/resources/packages/index.d.mts.map +1 -1
  180. package/resources/packages/index.d.ts +1 -1
  181. package/resources/packages/index.d.ts.map +1 -1
  182. package/resources/packages/index.js.map +1 -1
  183. package/resources/packages/index.mjs +1 -1
  184. package/resources/packages/index.mjs.map +1 -1
  185. package/resources/packages/packages.d.mts +10 -10
  186. package/resources/packages/packages.d.mts.map +1 -1
  187. package/resources/packages/packages.d.ts +10 -10
  188. package/resources/packages/packages.d.ts.map +1 -1
  189. package/resources/packages/packages.js +11 -11
  190. package/resources/packages/packages.js.map +1 -1
  191. package/resources/packages/packages.mjs +12 -12
  192. package/resources/packages/packages.mjs.map +1 -1
  193. package/resources/packages/versions.d.mts +57 -2
  194. package/resources/packages/versions.d.mts.map +1 -1
  195. package/resources/packages/versions.d.ts +57 -2
  196. package/resources/packages/versions.d.ts.map +1 -1
  197. package/resources/packages/versions.js +8 -1
  198. package/resources/packages/versions.js.map +1 -1
  199. package/resources/packages/versions.mjs +8 -1
  200. package/resources/packages/versions.mjs.map +1 -1
  201. package/resources/sandboxes.d.mts +35 -22
  202. package/resources/sandboxes.d.mts.map +1 -1
  203. package/resources/sandboxes.d.ts +35 -22
  204. package/resources/sandboxes.d.ts.map +1 -1
  205. package/resources/sandboxes.js +6 -0
  206. package/resources/sandboxes.js.map +1 -1
  207. package/resources/sandboxes.mjs +6 -0
  208. package/resources/sandboxes.mjs.map +1 -1
  209. package/resources/sites.d.mts +2 -1
  210. package/resources/sites.d.mts.map +1 -1
  211. package/resources/sites.d.ts +2 -1
  212. package/resources/sites.d.ts.map +1 -1
  213. package/resources/workers.d.mts +41 -0
  214. package/resources/workers.d.mts.map +1 -1
  215. package/resources/workers.d.ts +41 -0
  216. package/resources/workers.d.ts.map +1 -1
  217. package/resources/workflows.d.mts +768 -0
  218. package/resources/workflows.d.mts.map +1 -0
  219. package/resources/workflows.d.ts +768 -0
  220. package/resources/workflows.d.ts.map +1 -0
  221. package/resources/workflows.js +48 -0
  222. package/resources/workflows.js.map +1 -0
  223. package/resources/workflows.mjs +44 -0
  224. package/resources/workflows.mjs.map +1 -0
  225. package/src/client.ts +277 -5
  226. package/src/resources/agents/sessions/index.ts +1 -0
  227. package/src/resources/agents/sessions/messages.ts +28 -0
  228. package/src/resources/agents/sessions/resume-state.ts +32 -0
  229. package/src/resources/agents/sessions/sessions.ts +107 -0
  230. package/src/resources/background-check-candidates.ts +434 -0
  231. package/src/resources/business-structure-paths.ts +78 -0
  232. package/src/resources/developer-program-application.ts +233 -0
  233. package/src/resources/developer-users.ts +77 -0
  234. package/src/resources/draft-transitions.ts +583 -0
  235. package/src/resources/earnings-inputs.ts +36 -0
  236. package/src/resources/hire-requirements.ts +140 -0
  237. package/src/resources/hires.ts +786 -0
  238. package/src/resources/index.ts +99 -1
  239. package/src/resources/listing-submissions.ts +120 -0
  240. package/src/resources/listing-transitions.ts +84 -0
  241. package/src/resources/listing.ts +2297 -0
  242. package/src/resources/package-managed-installs.ts +156 -0
  243. package/src/resources/package-sandbox-links.ts +195 -0
  244. package/src/resources/package-versions/index.ts +9 -0
  245. package/src/resources/package-versions/package-versions.ts +156 -0
  246. package/src/resources/package-versions/publish.ts +74 -0
  247. package/src/resources/package-versions.ts +1 -86
  248. package/src/resources/packages/index.ts +8 -1
  249. package/src/resources/packages/packages.ts +26 -12
  250. package/src/resources/packages/versions.ts +83 -1
  251. package/src/resources/sandboxes.ts +45 -24
  252. package/src/resources/sites.ts +2 -1
  253. package/src/resources/workers.ts +46 -0
  254. package/src/resources/workflows.ts +1434 -0
  255. package/src/version.ts +1 -1
  256. package/version.d.mts +1 -1
  257. package/version.d.ts +1 -1
  258. package/version.js +1 -1
  259. package/version.mjs +1 -1
@@ -0,0 +1,583 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import { APIPromise } from '../core/api-promise';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ /**
10
+ * Proposed changes to existing workers that can be reviewed in Rippling
11
+ */
12
+ export class DraftTransitions extends APIResource {
13
+ /**
14
+ * Retrieve a specific draft transition
15
+ */
16
+ retrieve(id: string, options?: RequestOptions): APIPromise<DraftTransitionRetrieveResponse> {
17
+ return this._client.get(path`/draft-transitions/${id}/`, options);
18
+ }
19
+
20
+ /**
21
+ * Create a new draft transition
22
+ */
23
+ create(
24
+ body: DraftTransitionCreateParams,
25
+ options?: RequestOptions,
26
+ ): APIPromise<DraftTransitionCreateResponse> {
27
+ return this._client.post('/draft-transitions/', { body, ...options });
28
+ }
29
+ }
30
+
31
+ /**
32
+ * Meta information for the response.
33
+ */
34
+ export interface DraftTransitionRetrieveResponse extends BusinessPartnersAPI.Meta {
35
+ /**
36
+ * Effective timestamp applied to the entire draft transition request.
37
+ */
38
+ effective_at: string;
39
+
40
+ /**
41
+ * Draft transition items to accept for asynchronous processing.
42
+ */
43
+ items: Array<DraftTransitionRetrieveResponse.Item>;
44
+
45
+ /**
46
+ * IANA timezone used to interpret and display the request's effective timestamp.
47
+ */
48
+ timezone: string;
49
+ }
50
+
51
+ export namespace DraftTransitionRetrieveResponse {
52
+ export interface Item {
53
+ /**
54
+ * Requested role/profile changes for this item.
55
+ */
56
+ changes: Item.Changes;
57
+
58
+ /**
59
+ * Target role identifier for this draft transition item.
60
+ */
61
+ role_id: string;
62
+
63
+ /**
64
+ * Controls whether this item should append to a compatible existing draft or
65
+ * create a new draft.
66
+ */
67
+ draft_grouping_preference?: 'APPEND_TO_MATCHING_DRAFT' | 'CREATE_NEW_DRAFT';
68
+ }
69
+
70
+ export namespace Item {
71
+ /**
72
+ * Requested role/profile changes for this item.
73
+ */
74
+ export interface Changes {
75
+ /**
76
+ * Country-specific field changes supported by current draft transition flows.
77
+ */
78
+ country_specific_info?: unknown;
79
+
80
+ /**
81
+ * Employment information changes for the target role.
82
+ */
83
+ employment_info?: Changes.EmploymentInfo;
84
+
85
+ /**
86
+ * Work location changes for the target role.
87
+ */
88
+ work_location_info?: Changes.WorkLocationInfo;
89
+ }
90
+
91
+ export namespace Changes {
92
+ /**
93
+ * Employment information changes for the target role.
94
+ */
95
+ export interface EmploymentInfo {
96
+ /**
97
+ * New annual salary equivalent.
98
+ */
99
+ annual_salary_equivalent?: number;
100
+
101
+ /**
102
+ * New compensation currency.
103
+ */
104
+ currency?: string;
105
+
106
+ /**
107
+ * New department identifier for the target role.
108
+ */
109
+ department_id?: string;
110
+
111
+ /**
112
+ * New company employment type identifier for the target role.
113
+ */
114
+ employment_type_id?: string;
115
+
116
+ /**
117
+ * New offer letter equity share count.
118
+ */
119
+ equity_num_shares?: number;
120
+
121
+ /**
122
+ * New offer letter equity value.
123
+ */
124
+ equity_value?: number;
125
+
126
+ /**
127
+ * New equity vesting package identifier.
128
+ */
129
+ equity_vesting_package_id?: string;
130
+
131
+ /**
132
+ * New job family identifier for the target role.
133
+ */
134
+ job_family_id?: string;
135
+
136
+ /**
137
+ * New level identifier for the target role.
138
+ */
139
+ level_id?: string;
140
+
141
+ /**
142
+ * New manager role identifier for the target role.
143
+ */
144
+ manager_id?: string;
145
+
146
+ /**
147
+ * New annual on-target commission amount.
148
+ */
149
+ on_target_commission?: number;
150
+
151
+ /**
152
+ * New relocation reimbursement amount.
153
+ */
154
+ relocation_reimbursement?: number;
155
+
156
+ /**
157
+ * New compensation amount per salary unit.
158
+ */
159
+ salary_per_unit?: number;
160
+
161
+ /**
162
+ * New salary unit.
163
+ */
164
+ salary_unit?: string;
165
+
166
+ /**
167
+ * New start date for the target role.
168
+ */
169
+ start_date?: string;
170
+
171
+ /**
172
+ * New target annual bonus amount.
173
+ */
174
+ target_annual_bonus?: number;
175
+
176
+ /**
177
+ * New target annual bonus payment frequency.
178
+ */
179
+ target_annual_bonus_payment_frequency_unit?: 'MONTH' | 'QUARTER' | 'YEAR' | 'SEMI_ANNUAL';
180
+
181
+ /**
182
+ * New target annual bonus percentage.
183
+ */
184
+ target_annual_bonus_percent?: number;
185
+
186
+ /**
187
+ * New team identifiers for the target role.
188
+ */
189
+ teams_ids?: Array<string>;
190
+
191
+ /**
192
+ * New job title for the target role.
193
+ */
194
+ title?: string;
195
+ }
196
+
197
+ /**
198
+ * Work location changes for the target role.
199
+ */
200
+ export interface WorkLocationInfo {
201
+ /**
202
+ * New work country code for the target role.
203
+ */
204
+ country_code?: string;
205
+
206
+ /**
207
+ * New work location identifier for the target role.
208
+ */
209
+ location_id?: string;
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ export interface DraftTransitionCreateResponse {
216
+ /**
217
+ * Effective timestamp applied to the entire draft transition request.
218
+ */
219
+ effective_at: string;
220
+
221
+ /**
222
+ * Draft transition items to accept for asynchronous processing.
223
+ */
224
+ items: Array<DraftTransitionCreateResponse.Item>;
225
+
226
+ /**
227
+ * IANA timezone used to interpret and display the request's effective timestamp.
228
+ */
229
+ timezone: string;
230
+ }
231
+
232
+ export namespace DraftTransitionCreateResponse {
233
+ export interface Item {
234
+ /**
235
+ * Requested role/profile changes for this item.
236
+ */
237
+ changes: Item.Changes;
238
+
239
+ /**
240
+ * Target role identifier for this draft transition item.
241
+ */
242
+ role_id: string;
243
+
244
+ /**
245
+ * Controls whether this item should append to a compatible existing draft or
246
+ * create a new draft.
247
+ */
248
+ draft_grouping_preference?: 'APPEND_TO_MATCHING_DRAFT' | 'CREATE_NEW_DRAFT';
249
+ }
250
+
251
+ export namespace Item {
252
+ /**
253
+ * Requested role/profile changes for this item.
254
+ */
255
+ export interface Changes {
256
+ /**
257
+ * Country-specific field changes supported by current draft transition flows.
258
+ */
259
+ country_specific_info?: unknown;
260
+
261
+ /**
262
+ * Employment information changes for the target role.
263
+ */
264
+ employment_info?: Changes.EmploymentInfo;
265
+
266
+ /**
267
+ * Work location changes for the target role.
268
+ */
269
+ work_location_info?: Changes.WorkLocationInfo;
270
+ }
271
+
272
+ export namespace Changes {
273
+ /**
274
+ * Employment information changes for the target role.
275
+ */
276
+ export interface EmploymentInfo {
277
+ /**
278
+ * New annual salary equivalent.
279
+ */
280
+ annual_salary_equivalent?: number;
281
+
282
+ /**
283
+ * New compensation currency.
284
+ */
285
+ currency?: string;
286
+
287
+ /**
288
+ * New department identifier for the target role.
289
+ */
290
+ department_id?: string;
291
+
292
+ /**
293
+ * New company employment type identifier for the target role.
294
+ */
295
+ employment_type_id?: string;
296
+
297
+ /**
298
+ * New offer letter equity share count.
299
+ */
300
+ equity_num_shares?: number;
301
+
302
+ /**
303
+ * New offer letter equity value.
304
+ */
305
+ equity_value?: number;
306
+
307
+ /**
308
+ * New equity vesting package identifier.
309
+ */
310
+ equity_vesting_package_id?: string;
311
+
312
+ /**
313
+ * New job family identifier for the target role.
314
+ */
315
+ job_family_id?: string;
316
+
317
+ /**
318
+ * New level identifier for the target role.
319
+ */
320
+ level_id?: string;
321
+
322
+ /**
323
+ * New manager role identifier for the target role.
324
+ */
325
+ manager_id?: string;
326
+
327
+ /**
328
+ * New annual on-target commission amount.
329
+ */
330
+ on_target_commission?: number;
331
+
332
+ /**
333
+ * New relocation reimbursement amount.
334
+ */
335
+ relocation_reimbursement?: number;
336
+
337
+ /**
338
+ * New compensation amount per salary unit.
339
+ */
340
+ salary_per_unit?: number;
341
+
342
+ /**
343
+ * New salary unit.
344
+ */
345
+ salary_unit?: string;
346
+
347
+ /**
348
+ * New start date for the target role.
349
+ */
350
+ start_date?: string;
351
+
352
+ /**
353
+ * New target annual bonus amount.
354
+ */
355
+ target_annual_bonus?: number;
356
+
357
+ /**
358
+ * New target annual bonus payment frequency.
359
+ */
360
+ target_annual_bonus_payment_frequency_unit?: 'MONTH' | 'QUARTER' | 'YEAR' | 'SEMI_ANNUAL';
361
+
362
+ /**
363
+ * New target annual bonus percentage.
364
+ */
365
+ target_annual_bonus_percent?: number;
366
+
367
+ /**
368
+ * New team identifiers for the target role.
369
+ */
370
+ teams_ids?: Array<string>;
371
+
372
+ /**
373
+ * New job title for the target role.
374
+ */
375
+ title?: string;
376
+ }
377
+
378
+ /**
379
+ * Work location changes for the target role.
380
+ */
381
+ export interface WorkLocationInfo {
382
+ /**
383
+ * New work country code for the target role.
384
+ */
385
+ country_code?: string;
386
+
387
+ /**
388
+ * New work location identifier for the target role.
389
+ */
390
+ location_id?: string;
391
+ }
392
+ }
393
+ }
394
+ }
395
+
396
+ export interface DraftTransitionCreateParams {
397
+ /**
398
+ * Effective timestamp applied to the entire draft transition request.
399
+ */
400
+ effective_at: string;
401
+
402
+ /**
403
+ * Draft transition items to accept for asynchronous processing.
404
+ */
405
+ items: Array<DraftTransitionCreateParams.Item>;
406
+
407
+ /**
408
+ * IANA timezone used to interpret and display the request's effective timestamp.
409
+ */
410
+ timezone: string;
411
+ }
412
+
413
+ export namespace DraftTransitionCreateParams {
414
+ export interface Item {
415
+ /**
416
+ * Requested role/profile changes for this item.
417
+ */
418
+ changes: Item.Changes;
419
+
420
+ /**
421
+ * Target role identifier for this draft transition item.
422
+ */
423
+ role_id: string;
424
+
425
+ /**
426
+ * Controls whether this item should append to a compatible existing draft or
427
+ * create a new draft.
428
+ */
429
+ draft_grouping_preference?: 'APPEND_TO_MATCHING_DRAFT' | 'CREATE_NEW_DRAFT';
430
+ }
431
+
432
+ export namespace Item {
433
+ /**
434
+ * Requested role/profile changes for this item.
435
+ */
436
+ export interface Changes {
437
+ /**
438
+ * Country-specific field changes supported by current draft transition flows.
439
+ */
440
+ country_specific_info?: unknown;
441
+
442
+ /**
443
+ * Employment information changes for the target role.
444
+ */
445
+ employment_info?: Changes.EmploymentInfo;
446
+
447
+ /**
448
+ * Work location changes for the target role.
449
+ */
450
+ work_location_info?: Changes.WorkLocationInfo;
451
+ }
452
+
453
+ export namespace Changes {
454
+ /**
455
+ * Employment information changes for the target role.
456
+ */
457
+ export interface EmploymentInfo {
458
+ /**
459
+ * New annual salary equivalent.
460
+ */
461
+ annual_salary_equivalent?: number;
462
+
463
+ /**
464
+ * New compensation currency.
465
+ */
466
+ currency?: string;
467
+
468
+ /**
469
+ * New department identifier for the target role.
470
+ */
471
+ department_id?: string;
472
+
473
+ /**
474
+ * New company employment type identifier for the target role.
475
+ */
476
+ employment_type_id?: string;
477
+
478
+ /**
479
+ * New offer letter equity share count.
480
+ */
481
+ equity_num_shares?: number;
482
+
483
+ /**
484
+ * New offer letter equity value.
485
+ */
486
+ equity_value?: number;
487
+
488
+ /**
489
+ * New equity vesting package identifier.
490
+ */
491
+ equity_vesting_package_id?: string;
492
+
493
+ /**
494
+ * New job family identifier for the target role.
495
+ */
496
+ job_family_id?: string;
497
+
498
+ /**
499
+ * New level identifier for the target role.
500
+ */
501
+ level_id?: string;
502
+
503
+ /**
504
+ * New manager role identifier for the target role.
505
+ */
506
+ manager_id?: string;
507
+
508
+ /**
509
+ * New annual on-target commission amount.
510
+ */
511
+ on_target_commission?: number;
512
+
513
+ /**
514
+ * New relocation reimbursement amount.
515
+ */
516
+ relocation_reimbursement?: number;
517
+
518
+ /**
519
+ * New compensation amount per salary unit.
520
+ */
521
+ salary_per_unit?: number;
522
+
523
+ /**
524
+ * New salary unit.
525
+ */
526
+ salary_unit?: string;
527
+
528
+ /**
529
+ * New start date for the target role.
530
+ */
531
+ start_date?: string;
532
+
533
+ /**
534
+ * New target annual bonus amount.
535
+ */
536
+ target_annual_bonus?: number;
537
+
538
+ /**
539
+ * New target annual bonus payment frequency.
540
+ */
541
+ target_annual_bonus_payment_frequency_unit?: 'MONTH' | 'QUARTER' | 'YEAR' | 'SEMI_ANNUAL';
542
+
543
+ /**
544
+ * New target annual bonus percentage.
545
+ */
546
+ target_annual_bonus_percent?: number;
547
+
548
+ /**
549
+ * New team identifiers for the target role.
550
+ */
551
+ teams_ids?: Array<string>;
552
+
553
+ /**
554
+ * New job title for the target role.
555
+ */
556
+ title?: string;
557
+ }
558
+
559
+ /**
560
+ * Work location changes for the target role.
561
+ */
562
+ export interface WorkLocationInfo {
563
+ /**
564
+ * New work country code for the target role.
565
+ */
566
+ country_code?: string;
567
+
568
+ /**
569
+ * New work location identifier for the target role.
570
+ */
571
+ location_id?: string;
572
+ }
573
+ }
574
+ }
575
+ }
576
+
577
+ export declare namespace DraftTransitions {
578
+ export {
579
+ type DraftTransitionRetrieveResponse as DraftTransitionRetrieveResponse,
580
+ type DraftTransitionCreateResponse as DraftTransitionCreateResponse,
581
+ type DraftTransitionCreateParams as DraftTransitionCreateParams,
582
+ };
583
+ }
@@ -83,6 +83,18 @@ export interface EarningsInputListResponse {
83
83
  */
84
84
  earning_code?: string;
85
85
 
86
+ /**
87
+ * End of the period this earning was earned. Used for regular-rate-of-pay (RROP)
88
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
89
+ */
90
+ earning_end_date?: string;
91
+
92
+ /**
93
+ * Start of the period this earning was earned. Used for regular-rate-of-pay (RROP)
94
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
95
+ */
96
+ earning_start_date?: string;
97
+
86
98
  /**
87
99
  * External reference identifier for this earning.
88
100
  */
@@ -159,6 +171,18 @@ export interface EarningsInputCreateResponse {
159
171
  */
160
172
  earning_code?: string;
161
173
 
174
+ /**
175
+ * End of the period this earning was earned. Used for regular-rate-of-pay (RROP)
176
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
177
+ */
178
+ earning_end_date?: string;
179
+
180
+ /**
181
+ * Start of the period this earning was earned. Used for regular-rate-of-pay (RROP)
182
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
183
+ */
184
+ earning_start_date?: string;
185
+
162
186
  /**
163
187
  * External reference identifier for this earning.
164
188
  */
@@ -233,6 +257,18 @@ export interface EarningsInputCreateParams {
233
257
  */
234
258
  earning_code?: string;
235
259
 
260
+ /**
261
+ * End of the period this earning was earned. Used for regular-rate-of-pay (RROP)
262
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
263
+ */
264
+ earning_end_date?: string;
265
+
266
+ /**
267
+ * Start of the period this earning was earned. Used for regular-rate-of-pay (RROP)
268
+ * attribution. Distinct from pay_period_basis_date, which selects the pay run.
269
+ */
270
+ earning_start_date?: string;
271
+
236
272
  /**
237
273
  * External reference identifier for this earning.
238
274
  */