@rippling/rippling-sdk 0.2.0-alpha.25 → 0.2.0-alpha.26
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/LICENSE +1 -1
- package/client.d.mts +33 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -11
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/functions.d.mts +4 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +4 -0
- package/functions.d.ts.map +1 -1
- package/functions.js +13 -1
- package/functions.js.map +1 -1
- package/functions.mjs +11 -0
- package/functions.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/compensation-bands-details.d.mts +95 -0
- package/resources/compensation-bands-details.d.mts.map +1 -0
- package/resources/compensation-bands-details.d.ts +95 -0
- package/resources/compensation-bands-details.d.ts.map +1 -0
- package/resources/compensation-bands-details.js +29 -0
- package/resources/compensation-bands-details.js.map +1 -0
- package/resources/compensation-bands-details.mjs +25 -0
- package/resources/compensation-bands-details.mjs.map +1 -0
- package/resources/custom-settings.d.mts +270 -0
- package/resources/custom-settings.d.mts.map +1 -0
- package/resources/custom-settings.d.ts +270 -0
- package/resources/custom-settings.d.ts.map +1 -0
- package/resources/custom-settings.js +51 -0
- package/resources/custom-settings.js.map +1 -0
- package/resources/custom-settings.mjs +47 -0
- package/resources/custom-settings.mjs.map +1 -0
- package/resources/departments.d.mts +37 -1
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +37 -1
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +12 -0
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +12 -0
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +27 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +27 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/functions/executions.d.mts +6 -82
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +6 -82
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +2 -2
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +2 -2
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/index.d.mts +12 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +70 -6
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +70 -6
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +22 -0
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +22 -0
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +47 -1
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +47 -1
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-dimensions.d.mts +20 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +20 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-requisitions-write.d.mts +257 -0
- package/resources/job-requisitions-write.d.mts.map +1 -0
- package/resources/job-requisitions-write.d.ts +257 -0
- package/resources/job-requisitions-write.d.ts.map +1 -0
- package/resources/job-requisitions-write.js +15 -0
- package/resources/job-requisitions-write.js.map +1 -0
- package/resources/job-requisitions-write.mjs +11 -0
- package/resources/job-requisitions-write.mjs.map +1 -0
- package/resources/leave-accruals.d.mts +112 -6
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +112 -6
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-accruals.js +19 -3
- package/resources/leave-accruals.js.map +1 -1
- package/resources/leave-accruals.mjs +19 -3
- package/resources/leave-accruals.mjs.map +1 -1
- package/resources/report-runs.d.mts +149 -0
- package/resources/report-runs.d.mts.map +1 -0
- package/resources/report-runs.d.ts +149 -0
- package/resources/report-runs.d.ts.map +1 -0
- package/resources/report-runs.js +22 -0
- package/resources/report-runs.js.map +1 -0
- package/resources/report-runs.mjs +18 -0
- package/resources/report-runs.mjs.map +1 -0
- package/resources/shared.d.mts +35 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +35 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-assignments.d.mts +296 -0
- package/resources/shift-assignments.d.mts.map +1 -0
- package/resources/shift-assignments.d.ts +296 -0
- package/resources/shift-assignments.d.ts.map +1 -0
- package/resources/shift-assignments.js +25 -0
- package/resources/shift-assignments.js.map +1 -0
- package/resources/shift-assignments.mjs +21 -0
- package/resources/shift-assignments.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +56 -4
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +56 -4
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +3 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +3 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +3 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +3 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +1 -1
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +1 -1
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/index.js.map +1 -1
- package/resources/supergroups/index.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +6 -37
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +6 -37
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/supergroups/supergroups.d.mts +2 -2
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +2 -2
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/titles.d.mts +126 -0
- package/resources/titles.d.mts.map +1 -0
- package/resources/titles.d.ts +126 -0
- package/resources/titles.d.ts.map +1 -0
- package/resources/titles.js +48 -0
- package/resources/titles.js.map +1 -0
- package/resources/titles.mjs +44 -0
- package/resources/titles.mjs.map +1 -0
- package/resources/unassigned-shifts.d.mts +334 -0
- package/resources/unassigned-shifts.d.mts.map +1 -0
- package/resources/unassigned-shifts.d.ts +334 -0
- package/resources/unassigned-shifts.d.ts.map +1 -0
- package/resources/unassigned-shifts.js +42 -0
- package/resources/unassigned-shifts.js.map +1 -0
- package/resources/unassigned-shifts.mjs +38 -0
- package/resources/unassigned-shifts.mjs.map +1 -0
- package/resources/unassignedshifts.d.mts +382 -1
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +382 -1
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +6 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +6 -0
- package/resources/unassignedshifts.mjs.map +1 -1
- package/resources/work-locations.d.mts +95 -1
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +95 -1
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +12 -0
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +12 -0
- package/resources/work-locations.mjs.map +1 -1
- package/src/client.ts +153 -3
- package/src/functions.ts +14 -0
- package/src/resources/compensation-bands-details.ts +140 -0
- package/src/resources/custom-settings.ts +371 -0
- package/src/resources/departments.ts +50 -0
- package/src/resources/draft-hires.ts +32 -0
- package/src/resources/functions/executions.ts +8 -104
- package/src/resources/functions/functions.ts +4 -8
- package/src/resources/functions/index.ts +2 -4
- package/src/resources/index.ts +66 -2
- package/src/resources/job-assignments.ts +95 -6
- package/src/resources/job-codes.ts +56 -1
- package/src/resources/job-dimensions.ts +24 -0
- package/src/resources/job-requisitions-write.ts +327 -0
- package/src/resources/leave-accruals.ts +229 -12
- package/src/resources/report-runs.ts +186 -0
- package/src/resources/shared.ts +44 -0
- package/src/resources/shift-assignments.ts +362 -0
- package/src/resources/shiftassignments.ts +70 -5
- package/src/resources/supergroups/exclusion-members.ts +4 -4
- package/src/resources/supergroups/inclusion-members.ts +4 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +7 -49
- package/src/resources/supergroups/supergroups.ts +2 -7
- package/src/resources/titles.ts +181 -0
- package/src/resources/unassigned-shifts.ts +415 -0
- package/src/resources/unassignedshifts.ts +467 -0
- package/src/resources/work-locations.ts +118 -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
|
@@ -106,6 +106,11 @@ export interface ShiftassignmentListResponse {
|
|
|
106
106
|
*/
|
|
107
107
|
can_edit?: boolean;
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Custom fields for the shift assignment
|
|
111
|
+
*/
|
|
112
|
+
custom_fields?: Array<unknown>;
|
|
113
|
+
|
|
109
114
|
/**
|
|
110
115
|
* The published version of the shift assignment, if it exists. If filled but
|
|
111
116
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -142,6 +147,11 @@ export namespace ShiftassignmentListResponse {
|
|
|
142
147
|
*/
|
|
143
148
|
start_time: string;
|
|
144
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Notes for the shift, max length 256 characters
|
|
152
|
+
*/
|
|
153
|
+
notes?: string;
|
|
154
|
+
|
|
145
155
|
/**
|
|
146
156
|
* The breaks of the shift
|
|
147
157
|
*/
|
|
@@ -215,6 +225,11 @@ export namespace ShiftassignmentListResponse {
|
|
|
215
225
|
*/
|
|
216
226
|
start_time: string;
|
|
217
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Notes for the shift, max length 256 characters
|
|
230
|
+
*/
|
|
231
|
+
notes?: string;
|
|
232
|
+
|
|
218
233
|
/**
|
|
219
234
|
* The breaks of the shift
|
|
220
235
|
*/
|
|
@@ -404,6 +419,11 @@ export interface ShiftassignmentCreateResponse {
|
|
|
404
419
|
*/
|
|
405
420
|
can_edit?: boolean;
|
|
406
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Custom fields for the shift assignment
|
|
424
|
+
*/
|
|
425
|
+
custom_fields?: Array<unknown>;
|
|
426
|
+
|
|
407
427
|
/**
|
|
408
428
|
* The published version of the shift assignment, if it exists. If filled but
|
|
409
429
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -440,6 +460,11 @@ export namespace ShiftassignmentCreateResponse {
|
|
|
440
460
|
*/
|
|
441
461
|
start_time: string;
|
|
442
462
|
|
|
463
|
+
/**
|
|
464
|
+
* Notes for the shift, max length 256 characters
|
|
465
|
+
*/
|
|
466
|
+
notes?: string;
|
|
467
|
+
|
|
443
468
|
/**
|
|
444
469
|
* The breaks of the shift
|
|
445
470
|
*/
|
|
@@ -513,6 +538,11 @@ export namespace ShiftassignmentCreateResponse {
|
|
|
513
538
|
*/
|
|
514
539
|
start_time: string;
|
|
515
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Notes for the shift, max length 256 characters
|
|
543
|
+
*/
|
|
544
|
+
notes?: string;
|
|
545
|
+
|
|
516
546
|
/**
|
|
517
547
|
* The breaks of the shift
|
|
518
548
|
*/
|
|
@@ -705,6 +735,11 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
705
735
|
*/
|
|
706
736
|
can_edit?: boolean;
|
|
707
737
|
|
|
738
|
+
/**
|
|
739
|
+
* Custom fields for the shift assignment
|
|
740
|
+
*/
|
|
741
|
+
custom_fields?: Array<unknown>;
|
|
742
|
+
|
|
708
743
|
/**
|
|
709
744
|
* The published version of the shift assignment, if it exists. If filled but
|
|
710
745
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -741,6 +776,11 @@ export namespace ShiftassignmentRetrieveResponse {
|
|
|
741
776
|
*/
|
|
742
777
|
start_time: string;
|
|
743
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Notes for the shift, max length 256 characters
|
|
781
|
+
*/
|
|
782
|
+
notes?: string;
|
|
783
|
+
|
|
744
784
|
/**
|
|
745
785
|
* The breaks of the shift
|
|
746
786
|
*/
|
|
@@ -814,6 +854,11 @@ export namespace ShiftassignmentRetrieveResponse {
|
|
|
814
854
|
*/
|
|
815
855
|
start_time: string;
|
|
816
856
|
|
|
857
|
+
/**
|
|
858
|
+
* Notes for the shift, max length 256 characters
|
|
859
|
+
*/
|
|
860
|
+
notes?: string;
|
|
861
|
+
|
|
817
862
|
/**
|
|
818
863
|
* The breaks of the shift
|
|
819
864
|
*/
|
|
@@ -1003,6 +1048,11 @@ export interface ShiftassignmentUpdateResponse {
|
|
|
1003
1048
|
*/
|
|
1004
1049
|
can_edit?: boolean;
|
|
1005
1050
|
|
|
1051
|
+
/**
|
|
1052
|
+
* Custom fields for the shift assignment
|
|
1053
|
+
*/
|
|
1054
|
+
custom_fields?: Array<unknown>;
|
|
1055
|
+
|
|
1006
1056
|
/**
|
|
1007
1057
|
* The published version of the shift assignment, if it exists. If filled but
|
|
1008
1058
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -1039,6 +1089,11 @@ export namespace ShiftassignmentUpdateResponse {
|
|
|
1039
1089
|
*/
|
|
1040
1090
|
start_time: string;
|
|
1041
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* Notes for the shift, max length 256 characters
|
|
1094
|
+
*/
|
|
1095
|
+
notes?: string;
|
|
1096
|
+
|
|
1042
1097
|
/**
|
|
1043
1098
|
* The breaks of the shift
|
|
1044
1099
|
*/
|
|
@@ -1112,6 +1167,11 @@ export namespace ShiftassignmentUpdateResponse {
|
|
|
1112
1167
|
*/
|
|
1113
1168
|
start_time: string;
|
|
1114
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* Notes for the shift, max length 256 characters
|
|
1172
|
+
*/
|
|
1173
|
+
notes?: string;
|
|
1174
|
+
|
|
1115
1175
|
/**
|
|
1116
1176
|
* The breaks of the shift
|
|
1117
1177
|
*/
|
|
@@ -1307,6 +1367,11 @@ export namespace ShiftassignmentCreateParams {
|
|
|
1307
1367
|
*/
|
|
1308
1368
|
start_time: string;
|
|
1309
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* Notes for the shift, max length 256 characters
|
|
1372
|
+
*/
|
|
1373
|
+
notes?: string;
|
|
1374
|
+
|
|
1310
1375
|
/**
|
|
1311
1376
|
* The breaks of the shift
|
|
1312
1377
|
*/
|
|
@@ -1366,11 +1431,6 @@ export interface ShiftassignmentUpdateParams {
|
|
|
1366
1431
|
*/
|
|
1367
1432
|
is_published: boolean;
|
|
1368
1433
|
|
|
1369
|
-
/**
|
|
1370
|
-
* The ID of the schedule
|
|
1371
|
-
*/
|
|
1372
|
-
schedule_id: string;
|
|
1373
|
-
|
|
1374
1434
|
/**
|
|
1375
1435
|
* The data of the shift
|
|
1376
1436
|
*/
|
|
@@ -1398,6 +1458,11 @@ export namespace ShiftassignmentUpdateParams {
|
|
|
1398
1458
|
*/
|
|
1399
1459
|
start_time: string;
|
|
1400
1460
|
|
|
1461
|
+
/**
|
|
1462
|
+
* Notes for the shift, max length 256 characters
|
|
1463
|
+
*/
|
|
1464
|
+
notes?: string;
|
|
1465
|
+
|
|
1401
1466
|
/**
|
|
1402
1467
|
* The breaks of the shift
|
|
1403
1468
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
5
|
-
import { GroupMembersPageCursorURL } from '
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { GroupMembersPageCursorURL } from '../shared';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
8
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -20,10 +20,10 @@ export class ExclusionMembers extends APIResource {
|
|
|
20
20
|
groupID: string,
|
|
21
21
|
query: ExclusionMemberListParams | null | undefined = {},
|
|
22
22
|
options?: RequestOptions,
|
|
23
|
-
): PagePromise<GroupMembersPageCursorURL,
|
|
23
|
+
): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
|
|
24
24
|
return this._client.getAPIList(
|
|
25
25
|
path`/supergroups/${groupID}/exclusion-members`,
|
|
26
|
-
PageCursorURL<
|
|
26
|
+
PageCursorURL<Shared.GroupMember>,
|
|
27
27
|
{ query, ...options },
|
|
28
28
|
);
|
|
29
29
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
5
|
-
import { GroupMembersPageCursorURL } from '
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { GroupMembersPageCursorURL } from '../shared';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
8
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -20,10 +20,10 @@ export class InclusionMembers extends APIResource {
|
|
|
20
20
|
groupID: string,
|
|
21
21
|
query: InclusionMemberListParams | null | undefined = {},
|
|
22
22
|
options?: RequestOptions,
|
|
23
|
-
): PagePromise<GroupMembersPageCursorURL,
|
|
23
|
+
): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
|
|
24
24
|
return this._client.getAPIList(
|
|
25
25
|
path`/supergroups/${groupID}/inclusion-members`,
|
|
26
|
-
PageCursorURL<
|
|
26
|
+
PageCursorURL<Shared.GroupMember>,
|
|
27
27
|
{ query, ...options },
|
|
28
28
|
);
|
|
29
29
|
}
|
|
@@ -12,7 +12,7 @@ export {
|
|
|
12
12
|
type InclusionMemberListParams,
|
|
13
13
|
type InclusionMemberUpdateParams,
|
|
14
14
|
} from './inclusion-members';
|
|
15
|
-
export { Members, type
|
|
15
|
+
export { Members, type MemberListParams } from './members';
|
|
16
16
|
export {
|
|
17
17
|
Supergroups,
|
|
18
18
|
type Supergroup,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { GroupMembersPageCursorURL } from '../shared';
|
|
5
6
|
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -18,55 +19,14 @@ export class Members extends APIResource {
|
|
|
18
19
|
groupID: string,
|
|
19
20
|
query: MemberListParams | null | undefined = {},
|
|
20
21
|
options?: RequestOptions,
|
|
21
|
-
): PagePromise<GroupMembersPageCursorURL, GroupMember> {
|
|
22
|
-
return this._client.getAPIList(path`/supergroups/${groupID}/members`, PageCursorURL<GroupMember>, {
|
|
22
|
+
): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
|
|
23
|
+
return this._client.getAPIList(path`/supergroups/${groupID}/members`, PageCursorURL<Shared.GroupMember>, {
|
|
23
24
|
query,
|
|
24
25
|
...options,
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
export type GroupMembersPageCursorURL = PageCursorURL<GroupMember>;
|
|
30
|
-
|
|
31
|
-
export interface GroupMember {
|
|
32
|
-
/**
|
|
33
|
-
* Identifier field
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Record creation date
|
|
39
|
-
*/
|
|
40
|
-
created_at: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Record update date
|
|
44
|
-
*/
|
|
45
|
-
updated_at: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The group member's full name.
|
|
49
|
-
*/
|
|
50
|
-
full_name?: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The group member's associated work email address.
|
|
54
|
-
*/
|
|
55
|
-
work_email?: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The worker associated with this group member.
|
|
59
|
-
*
|
|
60
|
-
* Expandable field
|
|
61
|
-
*/
|
|
62
|
-
worker?: WorkersAPI.Worker;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* The worker's identifier associated with this group member.
|
|
66
|
-
*/
|
|
67
|
-
worker_id?: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
30
|
export interface MemberListParams {
|
|
71
31
|
expand?: string;
|
|
72
32
|
|
|
@@ -74,9 +34,7 @@ export interface MemberListParams {
|
|
|
74
34
|
}
|
|
75
35
|
|
|
76
36
|
export declare namespace Members {
|
|
77
|
-
export {
|
|
78
|
-
type GroupMember as GroupMember,
|
|
79
|
-
type GroupMembersPageCursorURL as GroupMembersPageCursorURL,
|
|
80
|
-
type MemberListParams as MemberListParams,
|
|
81
|
-
};
|
|
37
|
+
export { type MemberListParams as MemberListParams };
|
|
82
38
|
}
|
|
39
|
+
|
|
40
|
+
export { type GroupMembersPageCursorURL };
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
InclusionMembers,
|
|
18
18
|
} from './inclusion-members';
|
|
19
19
|
import * as MembersAPI from './members';
|
|
20
|
-
import {
|
|
20
|
+
import { MemberListParams, Members } from './members';
|
|
21
21
|
import { APIPromise } from '../../core/api-promise';
|
|
22
22
|
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
23
23
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -176,12 +176,7 @@ export declare namespace Supergroups {
|
|
|
176
176
|
type SupergroupListParams as SupergroupListParams,
|
|
177
177
|
};
|
|
178
178
|
|
|
179
|
-
export {
|
|
180
|
-
Members as Members,
|
|
181
|
-
type GroupMember as GroupMember,
|
|
182
|
-
type GroupMembersPageCursorURL as GroupMembersPageCursorURL,
|
|
183
|
-
type MemberListParams as MemberListParams,
|
|
184
|
-
};
|
|
179
|
+
export { Members as Members, type MemberListParams as MemberListParams };
|
|
185
180
|
|
|
186
181
|
export {
|
|
187
182
|
InclusionMembers as InclusionMembers,
|
|
@@ -0,0 +1,181 @@
|
|
|
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 { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
+
import { buildHeaders } from '../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Titles extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* A List of titles
|
|
14
|
+
*
|
|
15
|
+
* - Requires: `API Tier 1`
|
|
16
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
|
+
*/
|
|
18
|
+
list(
|
|
19
|
+
query: TitleListParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): PagePromise<TitleListResponsesPageCursorURL, TitleListResponse> {
|
|
22
|
+
return this._client.getAPIList('/titles', PageCursorURL<TitleListResponse>, { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Create a new title
|
|
27
|
+
*/
|
|
28
|
+
create(body: TitleCreateParams, options?: RequestOptions): APIPromise<TitleCreateResponse> {
|
|
29
|
+
return this._client.post('/titles', { body, ...options });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a specific title
|
|
34
|
+
*/
|
|
35
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TitleRetrieveResponse> {
|
|
36
|
+
return this._client.get(path`/titles/${id}`, options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Updated a specific title
|
|
41
|
+
*/
|
|
42
|
+
update(id: string, body: TitleUpdateParams, options?: RequestOptions): APIPromise<TitleUpdateResponse> {
|
|
43
|
+
return this._client.patch(path`/titles/${id}`, { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Delete a title
|
|
48
|
+
*/
|
|
49
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
50
|
+
return this._client.delete(path`/titles/${id}`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type TitleListResponsesPageCursorURL = PageCursorURL<TitleListResponse>;
|
|
58
|
+
|
|
59
|
+
export interface TitleListResponse {
|
|
60
|
+
/**
|
|
61
|
+
* Identifier field
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Record creation date
|
|
67
|
+
*/
|
|
68
|
+
created_at: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The name of the title.
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Record update date
|
|
77
|
+
*/
|
|
78
|
+
updated_at: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface TitleCreateResponse {
|
|
82
|
+
/**
|
|
83
|
+
* Identifier field
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Record creation date
|
|
89
|
+
*/
|
|
90
|
+
created_at: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The name of the title.
|
|
94
|
+
*/
|
|
95
|
+
name: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Record update date
|
|
99
|
+
*/
|
|
100
|
+
updated_at: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Meta information for the response.
|
|
105
|
+
*/
|
|
106
|
+
export interface TitleRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
107
|
+
/**
|
|
108
|
+
* Identifier field
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Record creation date
|
|
114
|
+
*/
|
|
115
|
+
created_at: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The name of the title.
|
|
119
|
+
*/
|
|
120
|
+
name: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Record update date
|
|
124
|
+
*/
|
|
125
|
+
updated_at: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface TitleUpdateResponse {
|
|
129
|
+
/**
|
|
130
|
+
* Identifier field
|
|
131
|
+
*/
|
|
132
|
+
id: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Record creation date
|
|
136
|
+
*/
|
|
137
|
+
created_at: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The name of the title.
|
|
141
|
+
*/
|
|
142
|
+
name: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Record update date
|
|
146
|
+
*/
|
|
147
|
+
updated_at: string;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface TitleListParams {
|
|
151
|
+
cursor?: string;
|
|
152
|
+
|
|
153
|
+
order_by?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface TitleCreateParams {
|
|
157
|
+
/**
|
|
158
|
+
* The name of the title.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface TitleUpdateParams {
|
|
164
|
+
/**
|
|
165
|
+
* The name of the title.
|
|
166
|
+
*/
|
|
167
|
+
name: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export declare namespace Titles {
|
|
171
|
+
export {
|
|
172
|
+
type TitleListResponse as TitleListResponse,
|
|
173
|
+
type TitleCreateResponse as TitleCreateResponse,
|
|
174
|
+
type TitleRetrieveResponse as TitleRetrieveResponse,
|
|
175
|
+
type TitleUpdateResponse as TitleUpdateResponse,
|
|
176
|
+
type TitleListResponsesPageCursorURL as TitleListResponsesPageCursorURL,
|
|
177
|
+
type TitleListParams as TitleListParams,
|
|
178
|
+
type TitleCreateParams as TitleCreateParams,
|
|
179
|
+
type TitleUpdateParams as TitleUpdateParams,
|
|
180
|
+
};
|
|
181
|
+
}
|