@rippling/rippling-sdk 0.2.0-alpha.63 → 0.2.0-alpha.64
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.
- package/client.d.mts +0 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -12
- package/client.d.ts.map +1 -1
- package/client.js +0 -12
- package/client.js.map +1 -1
- package/client.mjs +0 -12
- package/client.mjs.map +1 -1
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +6 -5
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +6 -5
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +3 -1
- package/lib/manifest/index.d.mts +1 -1
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +1 -1
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +4 -7
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +4 -7
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +7 -11
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +7 -10
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +0 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +0 -38
- package/src/lib/manifest/index.ts +0 -1
- package/src/lib/manifest/manifest-function.ts +8 -18
- package/src/resources/index.ts +0 -13
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/worker-change-fields.d.mts +0 -45
- package/resources/worker-change-fields.d.mts.map +0 -1
- package/resources/worker-change-fields.d.ts +0 -45
- package/resources/worker-change-fields.d.ts.map +0 -1
- package/resources/worker-change-fields.js +0 -21
- package/resources/worker-change-fields.js.map +0 -1
- package/resources/worker-change-fields.mjs +0 -17
- package/resources/worker-change-fields.mjs.map +0 -1
- package/resources/worker-changes.d.mts +0 -267
- package/resources/worker-changes.d.mts.map +0 -1
- package/resources/worker-changes.d.ts +0 -267
- package/resources/worker-changes.d.ts.map +0 -1
- package/resources/worker-changes.js +0 -36
- package/resources/worker-changes.js.map +0 -1
- package/resources/worker-changes.mjs +0 -32
- package/resources/worker-changes.mjs.map +0 -1
- package/src/resources/worker-change-fields.ts +0 -64
- package/src/resources/worker-changes.ts +0 -354
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
|
-
import * as WorkersAPI from "./workers.mjs";
|
|
4
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
-
import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
6
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* Historical changes to worker data over time
|
|
9
|
-
*/
|
|
10
|
-
export declare class WorkerChanges extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* A list of worker changes.
|
|
13
|
-
*
|
|
14
|
-
* - Requires: `API Tier 2`
|
|
15
|
-
* - Filterable fields: `worker_id`, `applied_on`, `effective_on`, `changed_by_id`,
|
|
16
|
-
* `reason_code`, `field_key`, `event_type`
|
|
17
|
-
* - Expandable fields: `worker`, `changed_by`
|
|
18
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`, `applied_on`,
|
|
19
|
-
* `effective_on`
|
|
20
|
-
*/
|
|
21
|
-
list(query?: WorkerChangeListParams | null | undefined, options?: RequestOptions): PagePromise<WorkerChangeListResponsesPageCursorURL, WorkerChangeListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve a specific worker change
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id: string, query?: WorkerChangeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<WorkerChangeRetrieveResponse>;
|
|
26
|
-
}
|
|
27
|
-
export type WorkerChangeListResponsesPageCursorURL = PageCursorURL<WorkerChangeListResponse>;
|
|
28
|
-
export interface WorkerChangeListResponse {
|
|
29
|
-
/**
|
|
30
|
-
* Identifier field
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
/**
|
|
34
|
-
* When the change was persisted (approval time for changes that went through an
|
|
35
|
-
* approval workflow). UTC. Monotonically increasing as new commits land; use as
|
|
36
|
-
* the cursor axis for incremental polling.
|
|
37
|
-
*/
|
|
38
|
-
applied_on: string;
|
|
39
|
-
/**
|
|
40
|
-
* Field-level changes captured by this event. Per-field REDACTED entries appear
|
|
41
|
-
* for fields the caller cannot read so consumers can detect that a change occurred
|
|
42
|
-
* even when the value is hidden. Events where every changed field is invisible to
|
|
43
|
-
* the caller — either internal fields not exposed via the public Object Graph, or
|
|
44
|
-
* fields the caller's role has zero read permission on — are dropped from the
|
|
45
|
-
* response entirely (they never appear with an all-REDACTED changes array).
|
|
46
|
-
*/
|
|
47
|
-
changes: Array<WorkerChangeListResponse.Change>;
|
|
48
|
-
/**
|
|
49
|
-
* Record creation date
|
|
50
|
-
*/
|
|
51
|
-
created_at: string;
|
|
52
|
-
/**
|
|
53
|
-
* When the change is true in the business domain. Can be past, present, or future.
|
|
54
|
-
* Independent of applied_on. UTC.
|
|
55
|
-
*/
|
|
56
|
-
effective_on: string;
|
|
57
|
-
/**
|
|
58
|
-
* The lifecycle event type this change represents. CHANGE is the catch-all for
|
|
59
|
-
* non-lifecycle field edits.
|
|
60
|
-
*/
|
|
61
|
-
event_type: 'HIRE' | 'CHANGE' | 'SCHEDULED_CHANGE' | 'OFFBOARD' | 'SCHEDULED_OFFBOARD' | 'IMPORT' | 'UNDO' | 'EFFECTIVE_DATE_AMENDMENT';
|
|
62
|
-
/**
|
|
63
|
-
* Record update date
|
|
64
|
-
*/
|
|
65
|
-
updated_at: string;
|
|
66
|
-
/**
|
|
67
|
-
* The worker affected by this change.
|
|
68
|
-
*/
|
|
69
|
-
worker_id: string;
|
|
70
|
-
/**
|
|
71
|
-
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
72
|
-
* requested.
|
|
73
|
-
*
|
|
74
|
-
* Expandable field
|
|
75
|
-
*/
|
|
76
|
-
changed_by?: WorkersAPI.Worker;
|
|
77
|
-
/**
|
|
78
|
-
* Actor who made the change. Null for system-initiated events.
|
|
79
|
-
*/
|
|
80
|
-
changed_by_id?: string;
|
|
81
|
-
/**
|
|
82
|
-
* INITIAL (census import at company onboarding) or HISTORICAL (historical data
|
|
83
|
-
* imported later). Set only when event_type is IMPORT.
|
|
84
|
-
*/
|
|
85
|
-
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
86
|
-
/**
|
|
87
|
-
* Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
|
|
88
|
-
* only when the company has configured transition reasons and the change went
|
|
89
|
-
* through a role transition with one selected. Null for most companies and events.
|
|
90
|
-
*/
|
|
91
|
-
reason_code?: string;
|
|
92
|
-
/**
|
|
93
|
-
* For amendments or undos, the id of the worker-change event being modified.
|
|
94
|
-
*/
|
|
95
|
-
referenced_transaction_id?: string;
|
|
96
|
-
/**
|
|
97
|
-
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
98
|
-
* is requested. Includes terminated employees.
|
|
99
|
-
*
|
|
100
|
-
* Expandable field
|
|
101
|
-
*/
|
|
102
|
-
worker?: WorkersAPI.Worker;
|
|
103
|
-
}
|
|
104
|
-
export declare namespace WorkerChangeListResponse {
|
|
105
|
-
interface Change {
|
|
106
|
-
/**
|
|
107
|
-
* VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
|
|
108
|
-
* this field; from_value/to_value are null but the entry still appears so
|
|
109
|
-
* consumers know a change occurred.
|
|
110
|
-
*/
|
|
111
|
-
display_type: 'VISIBLE' | 'REDACTED';
|
|
112
|
-
/**
|
|
113
|
-
* UI label for the field (English).
|
|
114
|
-
*/
|
|
115
|
-
field_display_name: string;
|
|
116
|
-
/**
|
|
117
|
-
* Field key in snake_case (see GET /worker-change-fields for the valid set).
|
|
118
|
-
*/
|
|
119
|
-
field_key: string;
|
|
120
|
-
/**
|
|
121
|
-
* The underlying value type of this field. Populated regardless of display_type so
|
|
122
|
-
* consumers can interpret from_value / to_value (or anticipate a future typed
|
|
123
|
-
* representation) without a separate lookup against GET /worker-change-fields.
|
|
124
|
-
*/
|
|
125
|
-
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
126
|
-
/**
|
|
127
|
-
* Value before the change, rendered as a display string (locale- and
|
|
128
|
-
* currency-formatted per the activity-log convention). Null when display_type is
|
|
129
|
-
* REDACTED. Typed JSON values are tracked as a future addition; consult value_type
|
|
130
|
-
* to interpret the rendering.
|
|
131
|
-
*/
|
|
132
|
-
from_value?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Value after the change, rendered as a display string. Null when display_type is
|
|
135
|
-
* REDACTED. See from_value for notes on typed-value plans.
|
|
136
|
-
*/
|
|
137
|
-
to_value?: string;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Meta information for the response.
|
|
142
|
-
*/
|
|
143
|
-
export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
144
|
-
/**
|
|
145
|
-
* Identifier field
|
|
146
|
-
*/
|
|
147
|
-
id: string;
|
|
148
|
-
/**
|
|
149
|
-
* When the change was persisted (approval time for changes that went through an
|
|
150
|
-
* approval workflow). UTC. Monotonically increasing as new commits land; use as
|
|
151
|
-
* the cursor axis for incremental polling.
|
|
152
|
-
*/
|
|
153
|
-
applied_on: string;
|
|
154
|
-
/**
|
|
155
|
-
* Field-level changes captured by this event. Per-field REDACTED entries appear
|
|
156
|
-
* for fields the caller cannot read so consumers can detect that a change occurred
|
|
157
|
-
* even when the value is hidden. Events where every changed field is invisible to
|
|
158
|
-
* the caller — either internal fields not exposed via the public Object Graph, or
|
|
159
|
-
* fields the caller's role has zero read permission on — are dropped from the
|
|
160
|
-
* response entirely (they never appear with an all-REDACTED changes array).
|
|
161
|
-
*/
|
|
162
|
-
changes: Array<WorkerChangeRetrieveResponse.Change>;
|
|
163
|
-
/**
|
|
164
|
-
* Record creation date
|
|
165
|
-
*/
|
|
166
|
-
created_at: string;
|
|
167
|
-
/**
|
|
168
|
-
* When the change is true in the business domain. Can be past, present, or future.
|
|
169
|
-
* Independent of applied_on. UTC.
|
|
170
|
-
*/
|
|
171
|
-
effective_on: string;
|
|
172
|
-
/**
|
|
173
|
-
* The lifecycle event type this change represents. CHANGE is the catch-all for
|
|
174
|
-
* non-lifecycle field edits.
|
|
175
|
-
*/
|
|
176
|
-
event_type: 'HIRE' | 'CHANGE' | 'SCHEDULED_CHANGE' | 'OFFBOARD' | 'SCHEDULED_OFFBOARD' | 'IMPORT' | 'UNDO' | 'EFFECTIVE_DATE_AMENDMENT';
|
|
177
|
-
/**
|
|
178
|
-
* Record update date
|
|
179
|
-
*/
|
|
180
|
-
updated_at: string;
|
|
181
|
-
/**
|
|
182
|
-
* The worker affected by this change.
|
|
183
|
-
*/
|
|
184
|
-
worker_id: string;
|
|
185
|
-
/**
|
|
186
|
-
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
187
|
-
* requested.
|
|
188
|
-
*
|
|
189
|
-
* Expandable field
|
|
190
|
-
*/
|
|
191
|
-
changed_by?: WorkersAPI.Worker;
|
|
192
|
-
/**
|
|
193
|
-
* Actor who made the change. Null for system-initiated events.
|
|
194
|
-
*/
|
|
195
|
-
changed_by_id?: string;
|
|
196
|
-
/**
|
|
197
|
-
* INITIAL (census import at company onboarding) or HISTORICAL (historical data
|
|
198
|
-
* imported later). Set only when event_type is IMPORT.
|
|
199
|
-
*/
|
|
200
|
-
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
201
|
-
/**
|
|
202
|
-
* Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
|
|
203
|
-
* only when the company has configured transition reasons and the change went
|
|
204
|
-
* through a role transition with one selected. Null for most companies and events.
|
|
205
|
-
*/
|
|
206
|
-
reason_code?: string;
|
|
207
|
-
/**
|
|
208
|
-
* For amendments or undos, the id of the worker-change event being modified.
|
|
209
|
-
*/
|
|
210
|
-
referenced_transaction_id?: string;
|
|
211
|
-
/**
|
|
212
|
-
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
213
|
-
* is requested. Includes terminated employees.
|
|
214
|
-
*
|
|
215
|
-
* Expandable field
|
|
216
|
-
*/
|
|
217
|
-
worker?: WorkersAPI.Worker;
|
|
218
|
-
}
|
|
219
|
-
export declare namespace WorkerChangeRetrieveResponse {
|
|
220
|
-
interface Change {
|
|
221
|
-
/**
|
|
222
|
-
* VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
|
|
223
|
-
* this field; from_value/to_value are null but the entry still appears so
|
|
224
|
-
* consumers know a change occurred.
|
|
225
|
-
*/
|
|
226
|
-
display_type: 'VISIBLE' | 'REDACTED';
|
|
227
|
-
/**
|
|
228
|
-
* UI label for the field (English).
|
|
229
|
-
*/
|
|
230
|
-
field_display_name: string;
|
|
231
|
-
/**
|
|
232
|
-
* Field key in snake_case (see GET /worker-change-fields for the valid set).
|
|
233
|
-
*/
|
|
234
|
-
field_key: string;
|
|
235
|
-
/**
|
|
236
|
-
* The underlying value type of this field. Populated regardless of display_type so
|
|
237
|
-
* consumers can interpret from_value / to_value (or anticipate a future typed
|
|
238
|
-
* representation) without a separate lookup against GET /worker-change-fields.
|
|
239
|
-
*/
|
|
240
|
-
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
241
|
-
/**
|
|
242
|
-
* Value before the change, rendered as a display string (locale- and
|
|
243
|
-
* currency-formatted per the activity-log convention). Null when display_type is
|
|
244
|
-
* REDACTED. Typed JSON values are tracked as a future addition; consult value_type
|
|
245
|
-
* to interpret the rendering.
|
|
246
|
-
*/
|
|
247
|
-
from_value?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Value after the change, rendered as a display string. Null when display_type is
|
|
250
|
-
* REDACTED. See from_value for notes on typed-value plans.
|
|
251
|
-
*/
|
|
252
|
-
to_value?: string;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
export interface WorkerChangeListParams {
|
|
256
|
-
cursor?: string;
|
|
257
|
-
expand?: string;
|
|
258
|
-
filter?: string;
|
|
259
|
-
order_by?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface WorkerChangeRetrieveParams {
|
|
262
|
-
expand?: string;
|
|
263
|
-
}
|
|
264
|
-
export declare namespace WorkerChanges {
|
|
265
|
-
export { type WorkerChangeListResponse as WorkerChangeListResponse, type WorkerChangeRetrieveResponse as WorkerChangeRetrieveResponse, type WorkerChangeListResponsesPageCursorURL as WorkerChangeListResponsesPageCursorURL, type WorkerChangeListParams as WorkerChangeListParams, type WorkerChangeRetrieveParams as WorkerChangeRetrieveParams, };
|
|
266
|
-
}
|
|
267
|
-
//# sourceMappingURL=worker-changes.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.d.mts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,S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;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC;CAC5B;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,MAAM;QACrB;;;;WAIG;QACH,YAAY,EAAE,SAAS,GAAG,UAAU,CAAC;QAErC;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;QAEtG;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
-
import * as WorkersAPI from "./workers.js";
|
|
4
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
-
import { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
6
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
7
|
-
/**
|
|
8
|
-
* Historical changes to worker data over time
|
|
9
|
-
*/
|
|
10
|
-
export declare class WorkerChanges extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* A list of worker changes.
|
|
13
|
-
*
|
|
14
|
-
* - Requires: `API Tier 2`
|
|
15
|
-
* - Filterable fields: `worker_id`, `applied_on`, `effective_on`, `changed_by_id`,
|
|
16
|
-
* `reason_code`, `field_key`, `event_type`
|
|
17
|
-
* - Expandable fields: `worker`, `changed_by`
|
|
18
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`, `applied_on`,
|
|
19
|
-
* `effective_on`
|
|
20
|
-
*/
|
|
21
|
-
list(query?: WorkerChangeListParams | null | undefined, options?: RequestOptions): PagePromise<WorkerChangeListResponsesPageCursorURL, WorkerChangeListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Retrieve a specific worker change
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id: string, query?: WorkerChangeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<WorkerChangeRetrieveResponse>;
|
|
26
|
-
}
|
|
27
|
-
export type WorkerChangeListResponsesPageCursorURL = PageCursorURL<WorkerChangeListResponse>;
|
|
28
|
-
export interface WorkerChangeListResponse {
|
|
29
|
-
/**
|
|
30
|
-
* Identifier field
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
/**
|
|
34
|
-
* When the change was persisted (approval time for changes that went through an
|
|
35
|
-
* approval workflow). UTC. Monotonically increasing as new commits land; use as
|
|
36
|
-
* the cursor axis for incremental polling.
|
|
37
|
-
*/
|
|
38
|
-
applied_on: string;
|
|
39
|
-
/**
|
|
40
|
-
* Field-level changes captured by this event. Per-field REDACTED entries appear
|
|
41
|
-
* for fields the caller cannot read so consumers can detect that a change occurred
|
|
42
|
-
* even when the value is hidden. Events where every changed field is invisible to
|
|
43
|
-
* the caller — either internal fields not exposed via the public Object Graph, or
|
|
44
|
-
* fields the caller's role has zero read permission on — are dropped from the
|
|
45
|
-
* response entirely (they never appear with an all-REDACTED changes array).
|
|
46
|
-
*/
|
|
47
|
-
changes: Array<WorkerChangeListResponse.Change>;
|
|
48
|
-
/**
|
|
49
|
-
* Record creation date
|
|
50
|
-
*/
|
|
51
|
-
created_at: string;
|
|
52
|
-
/**
|
|
53
|
-
* When the change is true in the business domain. Can be past, present, or future.
|
|
54
|
-
* Independent of applied_on. UTC.
|
|
55
|
-
*/
|
|
56
|
-
effective_on: string;
|
|
57
|
-
/**
|
|
58
|
-
* The lifecycle event type this change represents. CHANGE is the catch-all for
|
|
59
|
-
* non-lifecycle field edits.
|
|
60
|
-
*/
|
|
61
|
-
event_type: 'HIRE' | 'CHANGE' | 'SCHEDULED_CHANGE' | 'OFFBOARD' | 'SCHEDULED_OFFBOARD' | 'IMPORT' | 'UNDO' | 'EFFECTIVE_DATE_AMENDMENT';
|
|
62
|
-
/**
|
|
63
|
-
* Record update date
|
|
64
|
-
*/
|
|
65
|
-
updated_at: string;
|
|
66
|
-
/**
|
|
67
|
-
* The worker affected by this change.
|
|
68
|
-
*/
|
|
69
|
-
worker_id: string;
|
|
70
|
-
/**
|
|
71
|
-
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
72
|
-
* requested.
|
|
73
|
-
*
|
|
74
|
-
* Expandable field
|
|
75
|
-
*/
|
|
76
|
-
changed_by?: WorkersAPI.Worker;
|
|
77
|
-
/**
|
|
78
|
-
* Actor who made the change. Null for system-initiated events.
|
|
79
|
-
*/
|
|
80
|
-
changed_by_id?: string;
|
|
81
|
-
/**
|
|
82
|
-
* INITIAL (census import at company onboarding) or HISTORICAL (historical data
|
|
83
|
-
* imported later). Set only when event_type is IMPORT.
|
|
84
|
-
*/
|
|
85
|
-
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
86
|
-
/**
|
|
87
|
-
* Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
|
|
88
|
-
* only when the company has configured transition reasons and the change went
|
|
89
|
-
* through a role transition with one selected. Null for most companies and events.
|
|
90
|
-
*/
|
|
91
|
-
reason_code?: string;
|
|
92
|
-
/**
|
|
93
|
-
* For amendments or undos, the id of the worker-change event being modified.
|
|
94
|
-
*/
|
|
95
|
-
referenced_transaction_id?: string;
|
|
96
|
-
/**
|
|
97
|
-
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
98
|
-
* is requested. Includes terminated employees.
|
|
99
|
-
*
|
|
100
|
-
* Expandable field
|
|
101
|
-
*/
|
|
102
|
-
worker?: WorkersAPI.Worker;
|
|
103
|
-
}
|
|
104
|
-
export declare namespace WorkerChangeListResponse {
|
|
105
|
-
interface Change {
|
|
106
|
-
/**
|
|
107
|
-
* VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
|
|
108
|
-
* this field; from_value/to_value are null but the entry still appears so
|
|
109
|
-
* consumers know a change occurred.
|
|
110
|
-
*/
|
|
111
|
-
display_type: 'VISIBLE' | 'REDACTED';
|
|
112
|
-
/**
|
|
113
|
-
* UI label for the field (English).
|
|
114
|
-
*/
|
|
115
|
-
field_display_name: string;
|
|
116
|
-
/**
|
|
117
|
-
* Field key in snake_case (see GET /worker-change-fields for the valid set).
|
|
118
|
-
*/
|
|
119
|
-
field_key: string;
|
|
120
|
-
/**
|
|
121
|
-
* The underlying value type of this field. Populated regardless of display_type so
|
|
122
|
-
* consumers can interpret from_value / to_value (or anticipate a future typed
|
|
123
|
-
* representation) without a separate lookup against GET /worker-change-fields.
|
|
124
|
-
*/
|
|
125
|
-
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
126
|
-
/**
|
|
127
|
-
* Value before the change, rendered as a display string (locale- and
|
|
128
|
-
* currency-formatted per the activity-log convention). Null when display_type is
|
|
129
|
-
* REDACTED. Typed JSON values are tracked as a future addition; consult value_type
|
|
130
|
-
* to interpret the rendering.
|
|
131
|
-
*/
|
|
132
|
-
from_value?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Value after the change, rendered as a display string. Null when display_type is
|
|
135
|
-
* REDACTED. See from_value for notes on typed-value plans.
|
|
136
|
-
*/
|
|
137
|
-
to_value?: string;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Meta information for the response.
|
|
142
|
-
*/
|
|
143
|
-
export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
144
|
-
/**
|
|
145
|
-
* Identifier field
|
|
146
|
-
*/
|
|
147
|
-
id: string;
|
|
148
|
-
/**
|
|
149
|
-
* When the change was persisted (approval time for changes that went through an
|
|
150
|
-
* approval workflow). UTC. Monotonically increasing as new commits land; use as
|
|
151
|
-
* the cursor axis for incremental polling.
|
|
152
|
-
*/
|
|
153
|
-
applied_on: string;
|
|
154
|
-
/**
|
|
155
|
-
* Field-level changes captured by this event. Per-field REDACTED entries appear
|
|
156
|
-
* for fields the caller cannot read so consumers can detect that a change occurred
|
|
157
|
-
* even when the value is hidden. Events where every changed field is invisible to
|
|
158
|
-
* the caller — either internal fields not exposed via the public Object Graph, or
|
|
159
|
-
* fields the caller's role has zero read permission on — are dropped from the
|
|
160
|
-
* response entirely (they never appear with an all-REDACTED changes array).
|
|
161
|
-
*/
|
|
162
|
-
changes: Array<WorkerChangeRetrieveResponse.Change>;
|
|
163
|
-
/**
|
|
164
|
-
* Record creation date
|
|
165
|
-
*/
|
|
166
|
-
created_at: string;
|
|
167
|
-
/**
|
|
168
|
-
* When the change is true in the business domain. Can be past, present, or future.
|
|
169
|
-
* Independent of applied_on. UTC.
|
|
170
|
-
*/
|
|
171
|
-
effective_on: string;
|
|
172
|
-
/**
|
|
173
|
-
* The lifecycle event type this change represents. CHANGE is the catch-all for
|
|
174
|
-
* non-lifecycle field edits.
|
|
175
|
-
*/
|
|
176
|
-
event_type: 'HIRE' | 'CHANGE' | 'SCHEDULED_CHANGE' | 'OFFBOARD' | 'SCHEDULED_OFFBOARD' | 'IMPORT' | 'UNDO' | 'EFFECTIVE_DATE_AMENDMENT';
|
|
177
|
-
/**
|
|
178
|
-
* Record update date
|
|
179
|
-
*/
|
|
180
|
-
updated_at: string;
|
|
181
|
-
/**
|
|
182
|
-
* The worker affected by this change.
|
|
183
|
-
*/
|
|
184
|
-
worker_id: string;
|
|
185
|
-
/**
|
|
186
|
-
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
187
|
-
* requested.
|
|
188
|
-
*
|
|
189
|
-
* Expandable field
|
|
190
|
-
*/
|
|
191
|
-
changed_by?: WorkersAPI.Worker;
|
|
192
|
-
/**
|
|
193
|
-
* Actor who made the change. Null for system-initiated events.
|
|
194
|
-
*/
|
|
195
|
-
changed_by_id?: string;
|
|
196
|
-
/**
|
|
197
|
-
* INITIAL (census import at company onboarding) or HISTORICAL (historical data
|
|
198
|
-
* imported later). Set only when event_type is IMPORT.
|
|
199
|
-
*/
|
|
200
|
-
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
201
|
-
/**
|
|
202
|
-
* Structured transition reason (e.g. 'PROMOTION', 'MARKET_ADJUSTMENT'). Populated
|
|
203
|
-
* only when the company has configured transition reasons and the change went
|
|
204
|
-
* through a role transition with one selected. Null for most companies and events.
|
|
205
|
-
*/
|
|
206
|
-
reason_code?: string;
|
|
207
|
-
/**
|
|
208
|
-
* For amendments or undos, the id of the worker-change event being modified.
|
|
209
|
-
*/
|
|
210
|
-
referenced_transaction_id?: string;
|
|
211
|
-
/**
|
|
212
|
-
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
213
|
-
* is requested. Includes terminated employees.
|
|
214
|
-
*
|
|
215
|
-
* Expandable field
|
|
216
|
-
*/
|
|
217
|
-
worker?: WorkersAPI.Worker;
|
|
218
|
-
}
|
|
219
|
-
export declare namespace WorkerChangeRetrieveResponse {
|
|
220
|
-
interface Change {
|
|
221
|
-
/**
|
|
222
|
-
* VISIBLE or REDACTED. REDACTED means the caller's role lacks permission to read
|
|
223
|
-
* this field; from_value/to_value are null but the entry still appears so
|
|
224
|
-
* consumers know a change occurred.
|
|
225
|
-
*/
|
|
226
|
-
display_type: 'VISIBLE' | 'REDACTED';
|
|
227
|
-
/**
|
|
228
|
-
* UI label for the field (English).
|
|
229
|
-
*/
|
|
230
|
-
field_display_name: string;
|
|
231
|
-
/**
|
|
232
|
-
* Field key in snake_case (see GET /worker-change-fields for the valid set).
|
|
233
|
-
*/
|
|
234
|
-
field_key: string;
|
|
235
|
-
/**
|
|
236
|
-
* The underlying value type of this field. Populated regardless of display_type so
|
|
237
|
-
* consumers can interpret from_value / to_value (or anticipate a future typed
|
|
238
|
-
* representation) without a separate lookup against GET /worker-change-fields.
|
|
239
|
-
*/
|
|
240
|
-
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
241
|
-
/**
|
|
242
|
-
* Value before the change, rendered as a display string (locale- and
|
|
243
|
-
* currency-formatted per the activity-log convention). Null when display_type is
|
|
244
|
-
* REDACTED. Typed JSON values are tracked as a future addition; consult value_type
|
|
245
|
-
* to interpret the rendering.
|
|
246
|
-
*/
|
|
247
|
-
from_value?: string;
|
|
248
|
-
/**
|
|
249
|
-
* Value after the change, rendered as a display string. Null when display_type is
|
|
250
|
-
* REDACTED. See from_value for notes on typed-value plans.
|
|
251
|
-
*/
|
|
252
|
-
to_value?: string;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
export interface WorkerChangeListParams {
|
|
256
|
-
cursor?: string;
|
|
257
|
-
expand?: string;
|
|
258
|
-
filter?: string;
|
|
259
|
-
order_by?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface WorkerChangeRetrieveParams {
|
|
262
|
-
expand?: string;
|
|
263
|
-
}
|
|
264
|
-
export declare namespace WorkerChanges {
|
|
265
|
-
export { type WorkerChangeListResponse as WorkerChangeListResponse, type WorkerChangeRetrieveResponse as WorkerChangeRetrieveResponse, type WorkerChangeListResponsesPageCursorURL as WorkerChangeListResponsesPageCursorURL, type WorkerChangeListParams as WorkerChangeListParams, type WorkerChangeRetrieveParams as WorkerChangeRetrieveParams, };
|
|
266
|
-
}
|
|
267
|
-
//# sourceMappingURL=worker-changes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.d.ts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,wBAAwB,CAAC;IAOhF;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,sCAAsC,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAE7F,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;OAOG;IACH,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAEhD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC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,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WorkerChanges = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../core/pagination.js");
|
|
7
|
-
const path_1 = require("../internal/utils/path.js");
|
|
8
|
-
/**
|
|
9
|
-
* Historical changes to worker data over time
|
|
10
|
-
*/
|
|
11
|
-
class WorkerChanges extends resource_1.APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* A list of worker changes.
|
|
14
|
-
*
|
|
15
|
-
* - Requires: `API Tier 2`
|
|
16
|
-
* - Filterable fields: `worker_id`, `applied_on`, `effective_on`, `changed_by_id`,
|
|
17
|
-
* `reason_code`, `field_key`, `event_type`
|
|
18
|
-
* - Expandable fields: `worker`, `changed_by`
|
|
19
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`, `applied_on`,
|
|
20
|
-
* `effective_on`
|
|
21
|
-
*/
|
|
22
|
-
list(query = {}, options) {
|
|
23
|
-
return this._client.getAPIList('/worker-changes/', (pagination_1.PageCursorURL), {
|
|
24
|
-
query,
|
|
25
|
-
...options,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieve a specific worker change
|
|
30
|
-
*/
|
|
31
|
-
retrieve(id, query = {}, options) {
|
|
32
|
-
return this._client.get((0, path_1.path) `/worker-changes/${id}/`, { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.WorkerChanges = WorkerChanges;
|
|
36
|
-
//# sourceMappingURL=worker-changes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.js","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,0BAAuC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA/BD,sCA+BC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
-
import { path } from "../internal/utils/path.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Historical changes to worker data over time
|
|
7
|
-
*/
|
|
8
|
-
export class WorkerChanges extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* A list of worker changes.
|
|
11
|
-
*
|
|
12
|
-
* - Requires: `API Tier 2`
|
|
13
|
-
* - Filterable fields: `worker_id`, `applied_on`, `effective_on`, `changed_by_id`,
|
|
14
|
-
* `reason_code`, `field_key`, `event_type`
|
|
15
|
-
* - Expandable fields: `worker`, `changed_by`
|
|
16
|
-
* - Sortable fields: `id`, `created_at`, `updated_at`, `applied_on`,
|
|
17
|
-
* `effective_on`
|
|
18
|
-
*/
|
|
19
|
-
list(query = {}, options) {
|
|
20
|
-
return this._client.getAPIList('/worker-changes/', (PageCursorURL), {
|
|
21
|
-
query,
|
|
22
|
-
...options,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Retrieve a specific worker change
|
|
27
|
-
*/
|
|
28
|
-
retrieve(id, query = {}, options) {
|
|
29
|
-
return this._client.get(path `/worker-changes/${id}/`, { query, ...options });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=worker-changes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.mjs","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,aAAuC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|