@rippling/rippling-sdk 0.2.0-alpha.23 → 0.2.0-alpha.24
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 +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +4 -0
- package/client.js.map +1 -1
- package/client.mjs +4 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/business-partner-groups.d.mts +1 -0
- package/resources/business-partner-groups.d.mts.map +1 -1
- package/resources/business-partner-groups.d.ts +1 -0
- package/resources/business-partner-groups.d.ts.map +1 -1
- package/resources/business-partners.d.mts +1 -0
- package/resources/business-partners.d.mts.map +1 -1
- package/resources/business-partners.d.ts +1 -0
- package/resources/business-partners.d.ts.map +1 -1
- package/resources/candidate-applications.d.mts +1 -0
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +1 -0
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidates.d.mts +1 -0
- package/resources/candidates.d.mts.map +1 -1
- package/resources/candidates.d.ts +1 -0
- package/resources/candidates.d.ts.map +1 -1
- package/resources/companies.d.mts +1 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +1 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/compensations.d.mts +1 -0
- package/resources/compensations.d.mts.map +1 -1
- package/resources/compensations.d.ts +1 -0
- package/resources/compensations.d.ts.map +1 -1
- package/resources/custom-fields.d.mts +1 -0
- package/resources/custom-fields.d.mts.map +1 -1
- package/resources/custom-fields.d.ts +1 -0
- package/resources/custom-fields.d.ts.map +1 -1
- package/resources/departments.d.mts +1 -0
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +1 -0
- package/resources/departments.d.ts.map +1 -1
- package/resources/employment-types.d.mts +1 -0
- package/resources/employment-types.d.mts.map +1 -1
- package/resources/employment-types.d.ts +1 -0
- package/resources/employment-types.d.ts.map +1 -1
- package/resources/headcount-positions.d.mts +1 -0
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +1 -0
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/headcount-priorities.d.mts +1 -0
- package/resources/headcount-priorities.d.mts.map +1 -1
- package/resources/headcount-priorities.d.ts +1 -0
- package/resources/headcount-priorities.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +2 -0
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +2 -0
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-codes.d.mts +2 -0
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +2 -0
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-dimensions.d.mts +1 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +1 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-functions.d.mts +1 -0
- package/resources/job-functions.d.mts.map +1 -1
- package/resources/job-functions.d.ts +1 -0
- package/resources/job-functions.d.ts.map +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +2 -0
- package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
- package/resources/job-pay-rate-exceptions.d.ts +2 -0
- package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
- package/resources/job-requisitions.d.mts +1 -0
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +1 -0
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/kiosk-badges.d.mts +1 -0
- package/resources/kiosk-badges.d.mts.map +1 -1
- package/resources/kiosk-badges.d.ts +1 -0
- package/resources/kiosk-badges.d.ts.map +1 -1
- package/resources/leave-balances.d.mts +1 -0
- package/resources/leave-balances.d.mts.map +1 -1
- package/resources/leave-balances.d.ts +1 -0
- package/resources/leave-balances.d.ts.map +1 -1
- package/resources/leave-requests.d.mts +1 -0
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +1 -0
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-types.d.mts +1 -0
- package/resources/leave-types.d.mts.map +1 -1
- package/resources/leave-types.d.ts +1 -0
- package/resources/leave-types.d.ts.map +1 -1
- package/resources/legal-entities.d.mts +1 -0
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +1 -0
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/levels.d.mts +1 -0
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +1 -0
- package/resources/levels.d.ts.map +1 -1
- package/resources/location-factors.d.mts +1 -0
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +1 -0
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/schedules.d.mts +110 -1
- package/resources/schedules.d.mts.map +1 -1
- package/resources/schedules.d.ts +110 -1
- package/resources/schedules.d.ts.map +1 -1
- package/resources/schedules.js +6 -0
- package/resources/schedules.js.map +1 -1
- package/resources/schedules.mjs +6 -0
- package/resources/schedules.mjs.map +1 -1
- package/resources/shift-inputs.d.mts +1 -0
- package/resources/shift-inputs.d.mts.map +1 -1
- package/resources/shift-inputs.d.ts +1 -0
- package/resources/shift-inputs.d.ts.map +1 -1
- package/resources/shiftassignments.d.mts +826 -139
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +826 -139
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/shiftassignments.js +12 -0
- package/resources/shiftassignments.js.map +1 -1
- package/resources/shiftassignments.mjs +12 -0
- package/resources/shiftassignments.mjs.map +1 -1
- package/resources/sso-me.d.mts +1 -0
- package/resources/sso-me.d.mts.map +1 -1
- package/resources/sso-me.d.ts +1 -0
- package/resources/sso-me.d.ts.map +1 -1
- package/resources/teams.d.mts +1 -0
- package/resources/teams.d.mts.map +1 -1
- package/resources/teams.d.ts +1 -0
- package/resources/teams.d.ts.map +1 -1
- package/resources/time-cards.d.mts +1 -0
- package/resources/time-cards.d.mts.map +1 -1
- package/resources/time-cards.d.ts +1 -0
- package/resources/time-cards.d.ts.map +1 -1
- package/resources/time-entries.d.mts +1 -0
- package/resources/time-entries.d.mts.map +1 -1
- package/resources/time-entries.d.ts +1 -0
- package/resources/time-entries.d.ts.map +1 -1
- package/resources/tracks.d.mts +1 -0
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +1 -0
- package/resources/tracks.d.ts.map +1 -1
- package/resources/unassignedshifts.d.mts +535 -0
- package/resources/unassignedshifts.d.mts.map +1 -0
- package/resources/unassignedshifts.d.ts +535 -0
- package/resources/unassignedshifts.d.ts.map +1 -0
- package/resources/unassignedshifts.js +32 -0
- package/resources/unassignedshifts.js.map +1 -0
- package/resources/unassignedshifts.mjs +28 -0
- package/resources/unassignedshifts.mjs.map +1 -0
- package/resources/users.d.mts +1 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +1 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/work-locations.d.mts +1 -0
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +1 -0
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/workers.d.mts +1 -0
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +1 -0
- package/resources/workers.d.ts.map +1 -1
- package/src/client.ts +32 -0
- package/src/resources/business-partner-groups.ts +2 -0
- package/src/resources/business-partners.ts +2 -0
- package/src/resources/candidate-applications.ts +2 -0
- package/src/resources/candidates.ts +2 -0
- package/src/resources/companies.ts +2 -0
- package/src/resources/compensations.ts +2 -0
- package/src/resources/custom-fields.ts +2 -0
- package/src/resources/departments.ts +2 -0
- package/src/resources/employment-types.ts +2 -0
- package/src/resources/headcount-positions.ts +2 -0
- package/src/resources/headcount-priorities.ts +2 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/job-assignments.ts +4 -0
- package/src/resources/job-codes.ts +4 -0
- package/src/resources/job-dimensions.ts +2 -0
- package/src/resources/job-functions.ts +2 -0
- package/src/resources/job-pay-rate-exceptions.ts +4 -0
- package/src/resources/job-requisitions.ts +2 -0
- package/src/resources/kiosk-badges.ts +2 -0
- package/src/resources/leave-balances.ts +2 -0
- package/src/resources/leave-requests.ts +2 -0
- package/src/resources/leave-types.ts +2 -0
- package/src/resources/legal-entities.ts +2 -0
- package/src/resources/levels.ts +2 -0
- package/src/resources/location-factors.ts +2 -0
- package/src/resources/schedules.ts +138 -0
- package/src/resources/shift-inputs.ts +2 -0
- package/src/resources/shiftassignments.ts +1004 -167
- package/src/resources/sso-me.ts +2 -0
- package/src/resources/teams.ts +2 -0
- package/src/resources/time-cards.ts +2 -0
- package/src/resources/time-entries.ts +2 -0
- package/src/resources/tracks.ts +2 -0
- package/src/resources/unassignedshifts.ts +664 -0
- package/src/resources/users.ts +2 -0
- package/src/resources/work-locations.ts +2 -0
- package/src/resources/workers.ts +2 -0
- 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
|
@@ -43,6 +43,17 @@ export class Schedules extends APIResource {
|
|
|
43
43
|
): APIPromise<ScheduleRetrieveResponse> {
|
|
44
44
|
return this._client.get(path`/schedules/${id}`, { query, ...options });
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Updated a specific schedule
|
|
49
|
+
*/
|
|
50
|
+
update(
|
|
51
|
+
id: string,
|
|
52
|
+
body: ScheduleUpdateParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<ScheduleUpdateResponse> {
|
|
55
|
+
return this._client.patch(path`/schedules/${id}`, { body, ...options });
|
|
56
|
+
}
|
|
46
57
|
}
|
|
47
58
|
|
|
48
59
|
export type ScheduleListResponsesPageCursorURL = PageCursorURL<ScheduleListResponse>;
|
|
@@ -296,7 +307,91 @@ export namespace ScheduleRetrieveResponse {
|
|
|
296
307
|
}
|
|
297
308
|
}
|
|
298
309
|
|
|
310
|
+
export interface ScheduleUpdateResponse {
|
|
311
|
+
/**
|
|
312
|
+
* Identifier field
|
|
313
|
+
*/
|
|
314
|
+
id: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Record creation date
|
|
318
|
+
*/
|
|
319
|
+
created_at: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Record update date
|
|
323
|
+
*/
|
|
324
|
+
updated_at: string;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Whether the requesting role can edit the schedule.
|
|
328
|
+
*/
|
|
329
|
+
can_edit?: boolean;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* The managers of the schedule.
|
|
333
|
+
*
|
|
334
|
+
* Expandable field
|
|
335
|
+
*/
|
|
336
|
+
managers?: Array<WorkersAPI.Worker>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The IDs of the managers of the schedule.
|
|
340
|
+
*/
|
|
341
|
+
managers_id?: Array<string>;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* The members of the schedule.
|
|
345
|
+
*
|
|
346
|
+
* Expandable field
|
|
347
|
+
*/
|
|
348
|
+
members?: Array<WorkersAPI.Worker>;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* The IDs of the members of the schedule.
|
|
352
|
+
*/
|
|
353
|
+
members_id?: Array<string>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The name of the schedule.
|
|
357
|
+
*/
|
|
358
|
+
name?: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The observers of the schedule.
|
|
362
|
+
*
|
|
363
|
+
* Expandable field
|
|
364
|
+
*/
|
|
365
|
+
observers?: Array<WorkersAPI.Worker>;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The IDs of the observers of the schedule.
|
|
369
|
+
*/
|
|
370
|
+
observers_id?: Array<string>;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The settings of the schedule.
|
|
374
|
+
*/
|
|
375
|
+
settings?: ScheduleUpdateResponse.Settings;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export namespace ScheduleUpdateResponse {
|
|
379
|
+
/**
|
|
380
|
+
* The settings of the schedule.
|
|
381
|
+
*/
|
|
382
|
+
export interface Settings {
|
|
383
|
+
/**
|
|
384
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
385
|
+
* Accepted values are defined by the tz database, listed here:
|
|
386
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
387
|
+
*/
|
|
388
|
+
timezone?: string;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
299
392
|
export interface ScheduleListParams {
|
|
393
|
+
cursor?: string;
|
|
394
|
+
|
|
300
395
|
expand?: string;
|
|
301
396
|
|
|
302
397
|
order_by?: string;
|
|
@@ -347,14 +442,57 @@ export interface ScheduleRetrieveParams {
|
|
|
347
442
|
expand?: string;
|
|
348
443
|
}
|
|
349
444
|
|
|
445
|
+
export interface ScheduleUpdateParams {
|
|
446
|
+
/**
|
|
447
|
+
* The IDs of the managers of the schedule.
|
|
448
|
+
*/
|
|
449
|
+
managers_id?: Array<string>;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* The IDs of the members of the schedule.
|
|
453
|
+
*/
|
|
454
|
+
members_id?: Array<string>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* The name of the schedule.
|
|
458
|
+
*/
|
|
459
|
+
name?: string;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* The IDs of the observers of the schedule.
|
|
463
|
+
*/
|
|
464
|
+
observers_id?: Array<string>;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* The settings of the schedule.
|
|
468
|
+
*/
|
|
469
|
+
settings?: ScheduleUpdateParams.Settings;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export namespace ScheduleUpdateParams {
|
|
473
|
+
/**
|
|
474
|
+
* The settings of the schedule.
|
|
475
|
+
*/
|
|
476
|
+
export interface Settings {
|
|
477
|
+
/**
|
|
478
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
479
|
+
* Accepted values are defined by the tz database, listed here:
|
|
480
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
481
|
+
*/
|
|
482
|
+
timezone?: string;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
350
486
|
export declare namespace Schedules {
|
|
351
487
|
export {
|
|
352
488
|
type ScheduleListResponse as ScheduleListResponse,
|
|
353
489
|
type ScheduleCreateResponse as ScheduleCreateResponse,
|
|
354
490
|
type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
|
|
491
|
+
type ScheduleUpdateResponse as ScheduleUpdateResponse,
|
|
355
492
|
type ScheduleListResponsesPageCursorURL as ScheduleListResponsesPageCursorURL,
|
|
356
493
|
type ScheduleListParams as ScheduleListParams,
|
|
357
494
|
type ScheduleCreateParams as ScheduleCreateParams,
|
|
358
495
|
type ScheduleRetrieveParams as ScheduleRetrieveParams,
|
|
496
|
+
type ScheduleUpdateParams as ScheduleUpdateParams,
|
|
359
497
|
};
|
|
360
498
|
}
|