@rippling/rippling-sdk 0.2.0-alpha.55 → 0.2.0-alpha.57

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 (116) hide show
  1. package/client.d.mts +18 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +18 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +18 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +18 -0
  8. package/client.mjs.map +1 -1
  9. package/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +0 -10
  10. package/examples/manifest/dental-practice-management/dental-practice-management.ts +18 -28
  11. package/examples/manifest/gym-membership-management/gym-membership-management.ts +18 -31
  12. package/examples/manifest/simple-todo-app/simple-todo-app.ts +4 -15
  13. package/lib/manifest/custom-object-page-layout.d.mts +10 -8
  14. package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
  15. package/lib/manifest/custom-object-page-layout.d.ts +10 -8
  16. package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
  17. package/lib/manifest/custom-object-page-layout.js +47 -23
  18. package/lib/manifest/custom-object-page-layout.js.map +1 -1
  19. package/lib/manifest/custom-object-page-layout.mjs +47 -23
  20. package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
  21. package/lib/manifest/custom-object.d.mts +120 -0
  22. package/lib/manifest/custom-object.d.mts.map +1 -1
  23. package/lib/manifest/custom-object.d.ts +120 -0
  24. package/lib/manifest/custom-object.d.ts.map +1 -1
  25. package/lib/manifest/custom-object.js +62 -0
  26. package/lib/manifest/custom-object.js.map +1 -1
  27. package/lib/manifest/custom-object.mjs +62 -0
  28. package/lib/manifest/custom-object.mjs.map +1 -1
  29. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  30. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  31. package/lib/manifest/existing-manifest-context.js +3 -1
  32. package/lib/manifest/existing-manifest-context.js.map +1 -1
  33. package/lib/manifest/existing-manifest-context.mjs +3 -1
  34. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  35. package/lib/manifest/field.d.mts +9 -4
  36. package/lib/manifest/field.d.mts.map +1 -1
  37. package/lib/manifest/field.d.ts +9 -4
  38. package/lib/manifest/field.d.ts.map +1 -1
  39. package/lib/manifest/field.js +14 -4
  40. package/lib/manifest/field.js.map +1 -1
  41. package/lib/manifest/field.mjs +14 -4
  42. package/lib/manifest/field.mjs.map +1 -1
  43. package/lib/manifest/index.d.mts +1 -1
  44. package/lib/manifest/index.d.mts.map +1 -1
  45. package/lib/manifest/index.d.ts +1 -1
  46. package/lib/manifest/index.d.ts.map +1 -1
  47. package/lib/manifest/index.js.map +1 -1
  48. package/lib/manifest/index.mjs +1 -1
  49. package/lib/manifest/index.mjs.map +1 -1
  50. package/lib/manifest/list-view.d.mts +6 -6
  51. package/lib/manifest/list-view.d.mts.map +1 -1
  52. package/lib/manifest/list-view.d.ts +6 -6
  53. package/lib/manifest/list-view.d.ts.map +1 -1
  54. package/lib/manifest/list-view.js +4 -4
  55. package/lib/manifest/list-view.js.map +1 -1
  56. package/lib/manifest/list-view.mjs +4 -4
  57. package/lib/manifest/list-view.mjs.map +1 -1
  58. package/package.json +1 -1
  59. package/resources/employee-documents.d.mts +115 -0
  60. package/resources/employee-documents.d.mts.map +1 -0
  61. package/resources/employee-documents.d.ts +115 -0
  62. package/resources/employee-documents.d.ts.map +1 -0
  63. package/resources/employee-documents.js +18 -0
  64. package/resources/employee-documents.js.map +1 -0
  65. package/resources/employee-documents.mjs +14 -0
  66. package/resources/employee-documents.mjs.map +1 -0
  67. package/resources/index.d.mts +3 -0
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +3 -0
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +8 -2
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +3 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/job-assignments.d.mts +18 -0
  76. package/resources/job-assignments.d.mts.map +1 -1
  77. package/resources/job-assignments.d.ts +18 -0
  78. package/resources/job-assignments.d.ts.map +1 -1
  79. package/resources/worker-change-fields.d.mts +45 -0
  80. package/resources/worker-change-fields.d.mts.map +1 -0
  81. package/resources/worker-change-fields.d.ts +45 -0
  82. package/resources/worker-change-fields.d.ts.map +1 -0
  83. package/resources/worker-change-fields.js +21 -0
  84. package/resources/worker-change-fields.js.map +1 -0
  85. package/resources/worker-change-fields.mjs +17 -0
  86. package/resources/worker-change-fields.mjs.map +1 -0
  87. package/resources/worker-changes.d.mts +267 -0
  88. package/resources/worker-changes.d.mts.map +1 -0
  89. package/resources/worker-changes.d.ts +267 -0
  90. package/resources/worker-changes.d.ts.map +1 -0
  91. package/resources/worker-changes.js +36 -0
  92. package/resources/worker-changes.js.map +1 -0
  93. package/resources/worker-changes.mjs +32 -0
  94. package/resources/worker-changes.mjs.map +1 -0
  95. package/resources/workflow-action-executions.d.mts +18 -3
  96. package/resources/workflow-action-executions.d.mts.map +1 -1
  97. package/resources/workflow-action-executions.d.ts +18 -3
  98. package/resources/workflow-action-executions.d.ts.map +1 -1
  99. package/src/client.ts +54 -0
  100. package/src/lib/manifest/custom-object-page-layout.ts +60 -30
  101. package/src/lib/manifest/custom-object.ts +93 -9
  102. package/src/lib/manifest/existing-manifest-context.ts +8 -2
  103. package/src/lib/manifest/field.ts +15 -4
  104. package/src/lib/manifest/index.ts +10 -1
  105. package/src/lib/manifest/list-view.ts +8 -8
  106. package/src/resources/employee-documents.ts +141 -0
  107. package/src/resources/index.ts +18 -0
  108. package/src/resources/job-assignments.ts +22 -0
  109. package/src/resources/worker-change-fields.ts +64 -0
  110. package/src/resources/worker-changes.ts +354 -0
  111. package/src/resources/workflow-action-executions.ts +18 -3
  112. package/src/version.ts +1 -1
  113. package/version.d.mts +1 -1
  114. package/version.d.ts +1 -1
  115. package/version.js +1 -1
  116. package/version.mjs +1 -1
@@ -0,0 +1,141 @@
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
+ * Documents attached to existing employees
9
+ */
10
+ export class EmployeeDocuments extends APIResource {
11
+ /**
12
+ * Create a new employee document
13
+ */
14
+ create(
15
+ body: EmployeeDocumentCreateParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<EmployeeDocumentCreateResponse> {
18
+ return this._client.post('/employee-documents/', { body, ...options });
19
+ }
20
+ }
21
+
22
+ /**
23
+ * Top-level request body for `POST /employee-documents/`.
24
+ */
25
+ export interface EmployeeDocumentCreateResponse {
26
+ /**
27
+ * Identifier field
28
+ */
29
+ id: string;
30
+
31
+ /**
32
+ * Record creation date
33
+ */
34
+ created_at: string;
35
+
36
+ /**
37
+ * List of role/document items to process. Max 1 per request.
38
+ */
39
+ items: Array<EmployeeDocumentCreateResponse.Item>;
40
+
41
+ /**
42
+ * Record update date
43
+ */
44
+ updated_at: string;
45
+ }
46
+
47
+ export namespace EmployeeDocumentCreateResponse {
48
+ /**
49
+ * A single item: attach `documents` to the worker identified by `worker_id`.
50
+ */
51
+ export interface Item {
52
+ /**
53
+ * Documents to attach to the role. Max 50 per role item. Each entry references a
54
+ * FileUploadTracker by file_id.
55
+ */
56
+ documents: Array<Item.Document>;
57
+
58
+ /**
59
+ * Id of the worker to attach documents to.
60
+ */
61
+ worker_id: string;
62
+ }
63
+
64
+ export namespace Item {
65
+ /**
66
+ * A document to attach to a draft hire, referencing a pre-uploaded file.
67
+ */
68
+ export interface Document {
69
+ /**
70
+ * Id of a FileUploadTracker in ACTIVE status whose file should become a document
71
+ * on the hire
72
+ */
73
+ file_id: string;
74
+
75
+ /**
76
+ * Document name. Defaults to the uploaded file name when omitted.
77
+ */
78
+ name?: string;
79
+
80
+ /**
81
+ * Signature date in YYYY-MM-DD format.
82
+ */
83
+ signature_date?: string;
84
+ }
85
+ }
86
+ }
87
+
88
+ export interface EmployeeDocumentCreateParams {
89
+ /**
90
+ * List of role/document items to process. Max 1 per request.
91
+ */
92
+ items: Array<EmployeeDocumentCreateParams.Item>;
93
+ }
94
+
95
+ export namespace EmployeeDocumentCreateParams {
96
+ /**
97
+ * A single item: attach `documents` to the worker identified by `worker_id`.
98
+ */
99
+ export interface Item {
100
+ /**
101
+ * Documents to attach to the role. Max 50 per role item. Each entry references a
102
+ * FileUploadTracker by file_id.
103
+ */
104
+ documents: Array<Item.Document>;
105
+
106
+ /**
107
+ * Id of the worker to attach documents to.
108
+ */
109
+ worker_id: string;
110
+ }
111
+
112
+ export namespace Item {
113
+ /**
114
+ * A document to attach to a draft hire, referencing a pre-uploaded file.
115
+ */
116
+ export interface Document {
117
+ /**
118
+ * Id of a FileUploadTracker in ACTIVE status whose file should become a document
119
+ * on the hire
120
+ */
121
+ file_id: string;
122
+
123
+ /**
124
+ * Document name. Defaults to the uploaded file name when omitted.
125
+ */
126
+ name?: string;
127
+
128
+ /**
129
+ * Signature date in YYYY-MM-DD format.
130
+ */
131
+ signature_date?: string;
132
+ }
133
+ }
134
+ }
135
+
136
+ export declare namespace EmployeeDocuments {
137
+ export {
138
+ type EmployeeDocumentCreateResponse as EmployeeDocumentCreateResponse,
139
+ type EmployeeDocumentCreateParams as EmployeeDocumentCreateParams,
140
+ };
141
+ }
@@ -137,6 +137,11 @@ export {
137
137
  type EarningsInputCreateParams,
138
138
  type EarningsInputListResponsesPageCursorURL,
139
139
  } from './earnings-inputs';
140
+ export {
141
+ EmployeeDocuments,
142
+ type EmployeeDocumentCreateResponse,
143
+ type EmployeeDocumentCreateParams,
144
+ } from './employee-documents';
140
145
  export {
141
146
  EmploymentTypes,
142
147
  type CompanyEmploymentType,
@@ -494,6 +499,19 @@ export {
494
499
  type WorkLocationUpdateParams,
495
500
  type WorkLocationsPageCursorURL,
496
501
  } from './work-locations';
502
+ export {
503
+ WorkerChangeFields,
504
+ type WorkerChangeFieldListResponse,
505
+ type WorkerChangeFieldListResponsesPageCursorURL,
506
+ } from './worker-change-fields';
507
+ export {
508
+ WorkerChanges,
509
+ type WorkerChangeListResponse,
510
+ type WorkerChangeRetrieveResponse,
511
+ type WorkerChangeListParams,
512
+ type WorkerChangeRetrieveParams,
513
+ type WorkerChangeListResponsesPageCursorURL,
514
+ } from './worker-changes';
497
515
  export {
498
516
  WorkerTimeSplits,
499
517
  type WorkerTimeSplitListResponse,
@@ -244,6 +244,17 @@ export interface JobAssignmentCreateParams {
244
244
  */
245
245
  worker_id: string;
246
246
 
247
+ /**
248
+ * Reason recorded on the change (e.g., the reason for scheduling an unassignment).
249
+ */
250
+ change_reason?: string;
251
+
252
+ /**
253
+ * Date and time the change becomes effective (ISO 8601 format, e.g.,
254
+ * 2025-11-07T17:00:00.000+00:00).
255
+ */
256
+ effective_from?: string;
257
+
247
258
  /**
248
259
  * The pay rate for job assigned to worker. This can be different from the job's
249
260
  * standard pay rate and can be overriden for a worker.
@@ -279,6 +290,17 @@ export interface JobAssignmentUpdateParams {
279
290
  */
280
291
  worker_id: string;
281
292
 
293
+ /**
294
+ * Reason recorded on the change (e.g., the reason for scheduling an unassignment).
295
+ */
296
+ change_reason?: string;
297
+
298
+ /**
299
+ * Date and time the change becomes effective (ISO 8601 format, e.g.,
300
+ * 2025-11-07T17:00:00.000+00:00).
301
+ */
302
+ effective_from?: string;
303
+
282
304
  /**
283
305
  * The pay rate for job assigned to worker. This can be different from the job's
284
306
  * standard pay rate and can be overriden for a worker.
@@ -0,0 +1,64 @@
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
+ * Historical changes to worker data over time
9
+ */
10
+ export class WorkerChangeFields extends APIResource {
11
+ /**
12
+ * A list of worker change fields.
13
+ *
14
+ * - Requires: `API Tier 2`
15
+ */
16
+ list(
17
+ options?: RequestOptions,
18
+ ): PagePromise<WorkerChangeFieldListResponsesPageCursorURL, WorkerChangeFieldListResponse> {
19
+ return this._client.getAPIList(
20
+ '/worker-change-fields/',
21
+ PageCursorURL<WorkerChangeFieldListResponse>,
22
+ options,
23
+ );
24
+ }
25
+ }
26
+
27
+ export type WorkerChangeFieldListResponsesPageCursorURL = PageCursorURL<WorkerChangeFieldListResponse>;
28
+
29
+ export interface WorkerChangeFieldListResponse {
30
+ /**
31
+ * High-level grouping for the field.
32
+ */
33
+ category: 'PERSONAL' | 'JOB' | 'COMPENSATION' | 'BENEFITS' | 'CUSTOM' | 'COUNTRY_SPECIFIC';
34
+
35
+ /**
36
+ * UI label for the field (English).
37
+ */
38
+ field_display_name: string;
39
+
40
+ /**
41
+ * Field key in snake_case. Use directly in ?filter=field_key eq '...' on GET
42
+ * /worker-changes. Naming convention: public DTO fields use the DTO field name
43
+ * verbatim (work_email, title); nested fields use dot notation
44
+ * (compensation.base_salary); custom fields use custom_fields.<custom_field_id>;
45
+ * country-specific fields use the ISO country prefix (us.eeo.race). Filter
46
+ * semantics: filtering GET /worker-changes by field_key returns events that
47
+ * contain at least one change to this field, but the changes[] array on those
48
+ * events is NOT pruned — consumers receive the full event payload including
49
+ * changes to other fields.
50
+ */
51
+ field_key: string;
52
+
53
+ /**
54
+ * Value type of the field.
55
+ */
56
+ value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
57
+ }
58
+
59
+ export declare namespace WorkerChangeFields {
60
+ export {
61
+ type WorkerChangeFieldListResponse as WorkerChangeFieldListResponse,
62
+ type WorkerChangeFieldListResponsesPageCursorURL as WorkerChangeFieldListResponsesPageCursorURL,
63
+ };
64
+ }
@@ -0,0 +1,354 @@
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 * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Historical changes to worker data over time
13
+ */
14
+ export class WorkerChanges extends APIResource {
15
+ /**
16
+ * A list of worker changes.
17
+ *
18
+ * - Requires: `API Tier 2`
19
+ * - Filterable fields: `worker_id`, `applied_on`, `effective_on`, `changed_by_id`,
20
+ * `reason_code`, `field_key`, `event_type`
21
+ * - Expandable fields: `worker`, `changed_by`
22
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `applied_on`,
23
+ * `effective_on`
24
+ */
25
+ list(
26
+ query: WorkerChangeListParams | null | undefined = {},
27
+ options?: RequestOptions,
28
+ ): PagePromise<WorkerChangeListResponsesPageCursorURL, WorkerChangeListResponse> {
29
+ return this._client.getAPIList('/worker-changes/', PageCursorURL<WorkerChangeListResponse>, {
30
+ query,
31
+ ...options,
32
+ });
33
+ }
34
+
35
+ /**
36
+ * Retrieve a specific worker change
37
+ */
38
+ retrieve(
39
+ id: string,
40
+ query: WorkerChangeRetrieveParams | null | undefined = {},
41
+ options?: RequestOptions,
42
+ ): APIPromise<WorkerChangeRetrieveResponse> {
43
+ return this._client.get(path`/worker-changes/${id}/`, { query, ...options });
44
+ }
45
+ }
46
+
47
+ export type WorkerChangeListResponsesPageCursorURL = PageCursorURL<WorkerChangeListResponse>;
48
+
49
+ export interface WorkerChangeListResponse {
50
+ /**
51
+ * Identifier field
52
+ */
53
+ id: string;
54
+
55
+ /**
56
+ * When the change was persisted (approval time for changes that went through an
57
+ * approval workflow). UTC. Monotonically increasing as new commits land; use as
58
+ * the cursor axis for incremental polling.
59
+ */
60
+ applied_on: string;
61
+
62
+ /**
63
+ * Field-level changes captured by this event. Per-field REDACTED entries appear
64
+ * for fields the caller cannot read so consumers can detect that a change occurred
65
+ * even when the value is hidden. Events where every changed field is invisible to
66
+ * the caller — either internal fields not exposed via the public Object Graph, or
67
+ * fields the caller's role has zero read permission on — are dropped from the
68
+ * response entirely (they never appear with an all-REDACTED changes array).
69
+ */
70
+ changes: Array<WorkerChangeListResponse.Change>;
71
+
72
+ /**
73
+ * Record creation date
74
+ */
75
+ created_at: string;
76
+
77
+ /**
78
+ * When the change is true in the business domain. Can be past, present, or future.
79
+ * Independent of applied_on. UTC.
80
+ */
81
+ effective_on: string;
82
+
83
+ /**
84
+ * The lifecycle event type this change represents. CHANGE is the catch-all for
85
+ * non-lifecycle field edits.
86
+ */
87
+ event_type:
88
+ | 'HIRE'
89
+ | 'CHANGE'
90
+ | 'SCHEDULED_CHANGE'
91
+ | 'OFFBOARD'
92
+ | 'SCHEDULED_OFFBOARD'
93
+ | 'IMPORT'
94
+ | 'UNDO'
95
+ | 'EFFECTIVE_DATE_AMENDMENT';
96
+
97
+ /**
98
+ * Record update date
99
+ */
100
+ updated_at: string;
101
+
102
+ /**
103
+ * The worker affected by this change.
104
+ */
105
+ worker_id: string;
106
+
107
+ /**
108
+ * The actor as the current Worker DTO. Returned only when expand=changed_by is
109
+ * requested.
110
+ *
111
+ * Expandable field
112
+ */
113
+ changed_by?: WorkersAPI.Worker;
114
+
115
+ /**
116
+ * Actor who made the change. Null for system-initiated events.
117
+ */
118
+ changed_by_id?: string;
119
+
120
+ /**
121
+ * INITIAL (census import at company onboarding) or HISTORICAL (historical data
122
+ * imported later). Set only when event_type is IMPORT.
123
+ */
124
+ import_type?: 'INITIAL' | 'HISTORICAL';
125
+
126
+ /**
127
+ * Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
128
+ * only when the company has configured transition reasons and the change went
129
+ * through a role transition with one selected. Null for most companies and events.
130
+ */
131
+ reason_code?: string;
132
+
133
+ /**
134
+ * For amendments or undos, the id of the worker-change event being modified.
135
+ */
136
+ referenced_transaction_id?: string;
137
+
138
+ /**
139
+ * The affected worker as the current Worker DTO. Returned only when expand=worker
140
+ * is requested. Includes terminated employees.
141
+ *
142
+ * Expandable field
143
+ */
144
+ worker?: WorkersAPI.Worker;
145
+ }
146
+
147
+ export namespace WorkerChangeListResponse {
148
+ export interface Change {
149
+ /**
150
+ * VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
151
+ * this field; from_value/to_value are null but the entry still appears so
152
+ * consumers know a change occurred.
153
+ */
154
+ display_type: 'VISIBLE' | 'REDACTED';
155
+
156
+ /**
157
+ * UI label for the field (English).
158
+ */
159
+ field_display_name: string;
160
+
161
+ /**
162
+ * Field key in snake_case (see GET /worker-change-fields for the valid set).
163
+ */
164
+ field_key: string;
165
+
166
+ /**
167
+ * The underlying value type of this field. Populated regardless of display_type so
168
+ * consumers can interpret from_value / to_value (or anticipate a future typed
169
+ * representation) without a separate lookup against GET /worker-change-fields.
170
+ */
171
+ value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
172
+
173
+ /**
174
+ * Value before the change, rendered as a display string (locale- and
175
+ * currency-formatted per the activity-log convention). Null when display_type is
176
+ * REDACTED. Typed JSON values are tracked as a future addition; consult value_type
177
+ * to interpret the rendering.
178
+ */
179
+ from_value?: string;
180
+
181
+ /**
182
+ * Value after the change, rendered as a display string. Null when display_type is
183
+ * REDACTED. See from_value for notes on typed-value plans.
184
+ */
185
+ to_value?: string;
186
+ }
187
+ }
188
+
189
+ /**
190
+ * Meta information for the response.
191
+ */
192
+ export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
193
+ /**
194
+ * Identifier field
195
+ */
196
+ id: string;
197
+
198
+ /**
199
+ * When the change was persisted (approval time for changes that went through an
200
+ * approval workflow). UTC. Monotonically increasing as new commits land; use as
201
+ * the cursor axis for incremental polling.
202
+ */
203
+ applied_on: string;
204
+
205
+ /**
206
+ * Field-level changes captured by this event. Per-field REDACTED entries appear
207
+ * for fields the caller cannot read so consumers can detect that a change occurred
208
+ * even when the value is hidden. Events where every changed field is invisible to
209
+ * the caller — either internal fields not exposed via the public Object Graph, or
210
+ * fields the caller's role has zero read permission on — are dropped from the
211
+ * response entirely (they never appear with an all-REDACTED changes array).
212
+ */
213
+ changes: Array<WorkerChangeRetrieveResponse.Change>;
214
+
215
+ /**
216
+ * Record creation date
217
+ */
218
+ created_at: string;
219
+
220
+ /**
221
+ * When the change is true in the business domain. Can be past, present, or future.
222
+ * Independent of applied_on. UTC.
223
+ */
224
+ effective_on: string;
225
+
226
+ /**
227
+ * The lifecycle event type this change represents. CHANGE is the catch-all for
228
+ * non-lifecycle field edits.
229
+ */
230
+ event_type:
231
+ | 'HIRE'
232
+ | 'CHANGE'
233
+ | 'SCHEDULED_CHANGE'
234
+ | 'OFFBOARD'
235
+ | 'SCHEDULED_OFFBOARD'
236
+ | 'IMPORT'
237
+ | 'UNDO'
238
+ | 'EFFECTIVE_DATE_AMENDMENT';
239
+
240
+ /**
241
+ * Record update date
242
+ */
243
+ updated_at: string;
244
+
245
+ /**
246
+ * The worker affected by this change.
247
+ */
248
+ worker_id: string;
249
+
250
+ /**
251
+ * The actor as the current Worker DTO. Returned only when expand=changed_by is
252
+ * requested.
253
+ *
254
+ * Expandable field
255
+ */
256
+ changed_by?: WorkersAPI.Worker;
257
+
258
+ /**
259
+ * Actor who made the change. Null for system-initiated events.
260
+ */
261
+ changed_by_id?: string;
262
+
263
+ /**
264
+ * INITIAL (census import at company onboarding) or HISTORICAL (historical data
265
+ * imported later). Set only when event_type is IMPORT.
266
+ */
267
+ import_type?: 'INITIAL' | 'HISTORICAL';
268
+
269
+ /**
270
+ * Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
271
+ * only when the company has configured transition reasons and the change went
272
+ * through a role transition with one selected. Null for most companies and events.
273
+ */
274
+ reason_code?: string;
275
+
276
+ /**
277
+ * For amendments or undos, the id of the worker-change event being modified.
278
+ */
279
+ referenced_transaction_id?: string;
280
+
281
+ /**
282
+ * The affected worker as the current Worker DTO. Returned only when expand=worker
283
+ * is requested. Includes terminated employees.
284
+ *
285
+ * Expandable field
286
+ */
287
+ worker?: WorkersAPI.Worker;
288
+ }
289
+
290
+ export namespace WorkerChangeRetrieveResponse {
291
+ export interface Change {
292
+ /**
293
+ * VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
294
+ * this field; from_value/to_value are null but the entry still appears so
295
+ * consumers know a change occurred.
296
+ */
297
+ display_type: 'VISIBLE' | 'REDACTED';
298
+
299
+ /**
300
+ * UI label for the field (English).
301
+ */
302
+ field_display_name: string;
303
+
304
+ /**
305
+ * Field key in snake_case (see GET /worker-change-fields for the valid set).
306
+ */
307
+ field_key: string;
308
+
309
+ /**
310
+ * The underlying value type of this field. Populated regardless of display_type so
311
+ * consumers can interpret from_value / to_value (or anticipate a future typed
312
+ * representation) without a separate lookup against GET /worker-change-fields.
313
+ */
314
+ value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
315
+
316
+ /**
317
+ * Value before the change, rendered as a display string (locale- and
318
+ * currency-formatted per the activity-log convention). Null when display_type is
319
+ * REDACTED. Typed JSON values are tracked as a future addition; consult value_type
320
+ * to interpret the rendering.
321
+ */
322
+ from_value?: string;
323
+
324
+ /**
325
+ * Value after the change, rendered as a display string. Null when display_type is
326
+ * REDACTED. See from_value for notes on typed-value plans.
327
+ */
328
+ to_value?: string;
329
+ }
330
+ }
331
+
332
+ export interface WorkerChangeListParams {
333
+ cursor?: string;
334
+
335
+ expand?: string;
336
+
337
+ filter?: string;
338
+
339
+ order_by?: string;
340
+ }
341
+
342
+ export interface WorkerChangeRetrieveParams {
343
+ expand?: string;
344
+ }
345
+
346
+ export declare namespace WorkerChanges {
347
+ export {
348
+ type WorkerChangeListResponse as WorkerChangeListResponse,
349
+ type WorkerChangeRetrieveResponse as WorkerChangeRetrieveResponse,
350
+ type WorkerChangeListResponsesPageCursorURL as WorkerChangeListResponsesPageCursorURL,
351
+ type WorkerChangeListParams as WorkerChangeListParams,
352
+ type WorkerChangeRetrieveParams as WorkerChangeRetrieveParams,
353
+ };
354
+ }
@@ -462,7 +462,12 @@ export declare namespace WorkflowActionExecutionCreateParams {
462
462
  action_type: 'evaluate_rql';
463
463
 
464
464
  /**
465
- * Query and retrieve specific records from Rippling
465
+ * Query and retrieve records from Rippling. Pick a Query mode: Basic (SELECTION)
466
+ * returns matching record IDs for a chosen Rippling model via a wizard-built
467
+ * filter; Advanced (QUERY) evaluates a free-form RQL formula and returns a value
468
+ * of any RQL type (scalar or list). Always express filtering inside this action
469
+ * (via the SELECTION filter wizard or the QUERY formula) — do not fetch records
470
+ * and filter in code downstream.
466
471
  */
467
472
  payload:
468
473
  | EvaluateRqlActionRequest.EvaluateRqlSelectionPayload
@@ -473,7 +478,12 @@ export declare namespace WorkflowActionExecutionCreateParams {
473
478
 
474
479
  export namespace EvaluateRqlActionRequest {
475
480
  /**
476
- * Query and retrieve specific records from Rippling
481
+ * Query and retrieve records from Rippling. Pick a Query mode: Basic (SELECTION)
482
+ * returns matching record IDs for a chosen Rippling model via a wizard-built
483
+ * filter; Advanced (QUERY) evaluates a free-form RQL formula and returns a value
484
+ * of any RQL type (scalar or list). Always express filtering inside this action
485
+ * (via the SELECTION filter wizard or the QUERY formula) — do not fetch records
486
+ * and filter in code downstream.
477
487
  */
478
488
  export interface EvaluateRqlSelectionPayload {
479
489
  queryType: 'SELECTION';
@@ -482,7 +492,12 @@ export declare namespace WorkflowActionExecutionCreateParams {
482
492
  }
483
493
 
484
494
  /**
485
- * Query and retrieve specific records from Rippling
495
+ * Query and retrieve records from Rippling. Pick a Query mode: Basic (SELECTION)
496
+ * returns matching record IDs for a chosen Rippling model via a wizard-built
497
+ * filter; Advanced (QUERY) evaluates a free-form RQL formula and returns a value
498
+ * of any RQL type (scalar or list). Always express filtering inside this action
499
+ * (via the SELECTION filter wizard or the QUERY formula) — do not fetch records
500
+ * and filter in code downstream.
486
501
  */
487
502
  export interface EvaluateRqlQueryPayload {
488
503
  queryType: 'QUERY';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.55'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.57'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.55";
1
+ export declare const VERSION = "0.2.0-alpha.57";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.55";
1
+ export declare const VERSION = "0.2.0-alpha.57";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0-alpha.55'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.57'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0-alpha.55'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.57'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map