@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.
Files changed (61) hide show
  1. package/client.d.mts +0 -12
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +0 -12
  4. package/client.d.ts.map +1 -1
  5. package/client.js +0 -12
  6. package/client.js.map +1 -1
  7. package/client.mjs +0 -12
  8. package/client.mjs.map +1 -1
  9. package/examples/manifest/dental-practice-management/dental-practice-management.ts +6 -5
  10. package/examples/manifest/gym-membership-management/gym-membership-management.ts +6 -5
  11. package/examples/manifest/simple-todo-app/simple-todo-app.ts +3 -1
  12. package/lib/manifest/index.d.mts +1 -1
  13. package/lib/manifest/index.d.mts.map +1 -1
  14. package/lib/manifest/index.d.ts +1 -1
  15. package/lib/manifest/index.d.ts.map +1 -1
  16. package/lib/manifest/index.js.map +1 -1
  17. package/lib/manifest/index.mjs.map +1 -1
  18. package/lib/manifest/manifest-function.d.mts +4 -7
  19. package/lib/manifest/manifest-function.d.mts.map +1 -1
  20. package/lib/manifest/manifest-function.d.ts +4 -7
  21. package/lib/manifest/manifest-function.d.ts.map +1 -1
  22. package/lib/manifest/manifest-function.js +7 -11
  23. package/lib/manifest/manifest-function.js.map +1 -1
  24. package/lib/manifest/manifest-function.mjs +7 -10
  25. package/lib/manifest/manifest-function.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/resources/index.d.mts +0 -2
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +0 -2
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +1 -5
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +0 -2
  34. package/resources/index.mjs.map +1 -1
  35. package/src/client.ts +0 -38
  36. package/src/lib/manifest/index.ts +0 -1
  37. package/src/lib/manifest/manifest-function.ts +8 -18
  38. package/src/resources/index.ts +0 -13
  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
  44. package/resources/worker-change-fields.d.mts +0 -45
  45. package/resources/worker-change-fields.d.mts.map +0 -1
  46. package/resources/worker-change-fields.d.ts +0 -45
  47. package/resources/worker-change-fields.d.ts.map +0 -1
  48. package/resources/worker-change-fields.js +0 -21
  49. package/resources/worker-change-fields.js.map +0 -1
  50. package/resources/worker-change-fields.mjs +0 -17
  51. package/resources/worker-change-fields.mjs.map +0 -1
  52. package/resources/worker-changes.d.mts +0 -267
  53. package/resources/worker-changes.d.mts.map +0 -1
  54. package/resources/worker-changes.d.ts +0 -267
  55. package/resources/worker-changes.d.ts.map +0 -1
  56. package/resources/worker-changes.js +0 -36
  57. package/resources/worker-changes.js.map +0 -1
  58. package/resources/worker-changes.mjs +0 -32
  59. package/resources/worker-changes.mjs.map +0 -1
  60. package/src/resources/worker-change-fields.ts +0 -64
  61. package/src/resources/worker-changes.ts +0 -354
@@ -1,64 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import { 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
- }
@@ -1,354 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../core/resource';
4
- import * 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
- }