@rippling/rippling-sdk 0.2.0-alpha.31 → 0.2.0-alpha.32

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 (43) hide show
  1. package/client.d.mts +6 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +6 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +6 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +6 -0
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/earnings-inputs.d.mts +71 -0
  11. package/resources/earnings-inputs.d.mts.map +1 -0
  12. package/resources/earnings-inputs.d.ts +71 -0
  13. package/resources/earnings-inputs.d.ts.map +1 -0
  14. package/resources/earnings-inputs.js +21 -0
  15. package/resources/earnings-inputs.js.map +1 -0
  16. package/resources/earnings-inputs.mjs +17 -0
  17. package/resources/earnings-inputs.mjs.map +1 -0
  18. package/resources/index.d.mts +1 -0
  19. package/resources/index.d.mts.map +1 -1
  20. package/resources/index.d.ts +1 -0
  21. package/resources/index.d.ts.map +1 -1
  22. package/resources/index.js +4 -2
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs +1 -0
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/job-codes.d.mts +20 -0
  27. package/resources/job-codes.d.mts.map +1 -1
  28. package/resources/job-codes.d.ts +20 -0
  29. package/resources/job-codes.d.ts.map +1 -1
  30. package/resources/workflow-action-executions.d.mts +417 -2
  31. package/resources/workflow-action-executions.d.mts.map +1 -1
  32. package/resources/workflow-action-executions.d.ts +417 -2
  33. package/resources/workflow-action-executions.d.ts.map +1 -1
  34. package/src/client.ts +16 -0
  35. package/src/resources/earnings-inputs.ts +93 -0
  36. package/src/resources/index.ts +5 -0
  37. package/src/resources/job-codes.ts +24 -0
  38. package/src/resources/workflow-action-executions.ts +610 -1
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
@@ -0,0 +1,93 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { PageCursorURL, PagePromise } from '../core/pagination';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ /**
8
+ * External earnings inputs for the company
9
+ */
10
+ export class EarningsInputs extends APIResource {
11
+ /**
12
+ * A list of earnings-inputs.
13
+ *
14
+ * - Requires: `Payroll API`
15
+ */
16
+ list(
17
+ options?: RequestOptions,
18
+ ): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse> {
19
+ return this._client.getAPIList('/earnings-inputs/', PageCursorURL<EarningsInputListResponse>, options);
20
+ }
21
+ }
22
+
23
+ export type EarningsInputListResponsesPageCursorURL = PageCursorURL<EarningsInputListResponse>;
24
+
25
+ /**
26
+ * V2 DTO representing an external earnings input record.
27
+ *
28
+ * Used by:
29
+ * - GET /earnings-inputs/ (list)
30
+ */
31
+ export interface EarningsInputListResponse {
32
+ /**
33
+ * Unique identifier for the earnings input.
34
+ */
35
+ id?: string;
36
+
37
+ /**
38
+ * Earning amount as a string-encoded decimal.
39
+ */
40
+ amount?: string;
41
+
42
+ /**
43
+ * How the earning is assigned (e.g. BY_PAY_PERIOD).
44
+ */
45
+ assignment_type?: string;
46
+
47
+ /**
48
+ * Code identifying the earning type (e.g. regular_salary).
49
+ */
50
+ earning_code?: string;
51
+
52
+ /**
53
+ * External reference identifier for this earning.
54
+ */
55
+ external_id?: string;
56
+
57
+ /**
58
+ * Hours associated with this earning as a string-encoded decimal.
59
+ */
60
+ hours?: string;
61
+
62
+ /**
63
+ * The pay period basis date for this earning.
64
+ */
65
+ pay_period_basis_date?: string;
66
+
67
+ /**
68
+ * Identifier of the payroll run this earning is assigned to, if any.
69
+ */
70
+ run_id?: string;
71
+
72
+ /**
73
+ * Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
74
+ */
75
+ status?: string;
76
+
77
+ /**
78
+ * Time tracking labels associated with this earning.
79
+ */
80
+ time_labels?: Array<string>;
81
+
82
+ /**
83
+ * Identifier of the worker (role ID).
84
+ */
85
+ worker_id?: string;
86
+ }
87
+
88
+ export declare namespace EarningsInputs {
89
+ export {
90
+ type EarningsInputListResponse as EarningsInputListResponse,
91
+ type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL,
92
+ };
93
+ }
@@ -109,6 +109,11 @@ export {
109
109
  type EarningTypeListResponse,
110
110
  type EarningTypeListResponsesPageCursorURL,
111
111
  } from './earning-types';
112
+ export {
113
+ EarningsInputs,
114
+ type EarningsInputListResponse,
115
+ type EarningsInputListResponsesPageCursorURL,
116
+ } from './earnings-inputs';
112
117
  export {
113
118
  EmploymentTypes,
114
119
  type CompanyEmploymentType,
@@ -147,6 +147,12 @@ export interface JobCode {
147
147
  */
148
148
  group_id?: string;
149
149
 
150
+ /**
151
+ * Whether this job code is archived. Set to true via PATCH to archive. Archiving
152
+ * is irreversible via this API.
153
+ */
154
+ is_archived?: boolean;
155
+
150
156
  /**
151
157
  * The job dimension this job code belongs to.
152
158
  *
@@ -222,6 +228,12 @@ export interface JobCodeRequest {
222
228
  */
223
229
  external_id?: string;
224
230
 
231
+ /**
232
+ * Whether this job code is archived. Set to true via PATCH to archive. Archiving
233
+ * is irreversible via this API.
234
+ */
235
+ is_archived?: boolean;
236
+
225
237
  /**
226
238
  * The pay rate for this job code. Only applicable if the associated job dimension
227
239
  * includes the 'PAY_RATE' organizational attribute.
@@ -332,6 +344,12 @@ export interface JobCodeCreateParams {
332
344
  */
333
345
  external_id?: string;
334
346
 
347
+ /**
348
+ * Whether this job code is archived. Set to true via PATCH to archive. Archiving
349
+ * is irreversible via this API.
350
+ */
351
+ is_archived?: boolean;
352
+
335
353
  /**
336
354
  * The pay rate for this job code. Only applicable if the associated job dimension
337
355
  * includes the 'PAY_RATE' organizational attribute.
@@ -431,6 +449,12 @@ export interface JobCodeUpdateParams {
431
449
  */
432
450
  external_id?: string;
433
451
 
452
+ /**
453
+ * Whether this job code is archived. Set to true via PATCH to archive. Archiving
454
+ * is irreversible via this API.
455
+ */
456
+ is_archived?: boolean;
457
+
434
458
  /**
435
459
  * The pay rate for this job code. Only applicable if the associated job dimension
436
460
  * includes the 'PAY_RATE' organizational attribute.