@rippling/rippling-sdk 0.2.0-alpha.24 → 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 +7 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +7 -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 +68 -10
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +68 -10
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +5 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +5 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js +1 -0
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs +1 -0
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +5 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +5 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js +1 -0
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs +1 -0
- 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 +8 -26
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +8 -26
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js +1 -0
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs +1 -0
- 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 +744 -32
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +744 -32
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +12 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +12 -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 +157 -3
- package/src/functions.ts +20 -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 +68 -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 +82 -11
- package/src/resources/supergroups/exclusion-members.ts +7 -4
- package/src/resources/supergroups/inclusion-members.ts +7 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +10 -36
- 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 +905 -35
- 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
|
@@ -96,7 +96,8 @@ export interface ShiftassignmentListResponse {
|
|
|
96
96
|
updated_at: string;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* The ID of the worker
|
|
99
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
100
|
+
* shift.
|
|
100
101
|
*/
|
|
101
102
|
worker_id: string;
|
|
102
103
|
|
|
@@ -105,6 +106,11 @@ export interface ShiftassignmentListResponse {
|
|
|
105
106
|
*/
|
|
106
107
|
can_edit?: boolean;
|
|
107
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Custom fields for the shift assignment
|
|
111
|
+
*/
|
|
112
|
+
custom_fields?: Array<unknown>;
|
|
113
|
+
|
|
108
114
|
/**
|
|
109
115
|
* The published version of the shift assignment, if it exists. If filled but
|
|
110
116
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -141,6 +147,11 @@ export namespace ShiftassignmentListResponse {
|
|
|
141
147
|
*/
|
|
142
148
|
start_time: string;
|
|
143
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Notes for the shift, max length 256 characters
|
|
152
|
+
*/
|
|
153
|
+
notes?: string;
|
|
154
|
+
|
|
144
155
|
/**
|
|
145
156
|
* The breaks of the shift
|
|
146
157
|
*/
|
|
@@ -214,6 +225,11 @@ export namespace ShiftassignmentListResponse {
|
|
|
214
225
|
*/
|
|
215
226
|
start_time: string;
|
|
216
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Notes for the shift, max length 256 characters
|
|
230
|
+
*/
|
|
231
|
+
notes?: string;
|
|
232
|
+
|
|
217
233
|
/**
|
|
218
234
|
* The breaks of the shift
|
|
219
235
|
*/
|
|
@@ -393,7 +409,8 @@ export interface ShiftassignmentCreateResponse {
|
|
|
393
409
|
updated_at: string;
|
|
394
410
|
|
|
395
411
|
/**
|
|
396
|
-
* The ID of the worker
|
|
412
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
413
|
+
* shift.
|
|
397
414
|
*/
|
|
398
415
|
worker_id: string;
|
|
399
416
|
|
|
@@ -402,6 +419,11 @@ export interface ShiftassignmentCreateResponse {
|
|
|
402
419
|
*/
|
|
403
420
|
can_edit?: boolean;
|
|
404
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Custom fields for the shift assignment
|
|
424
|
+
*/
|
|
425
|
+
custom_fields?: Array<unknown>;
|
|
426
|
+
|
|
405
427
|
/**
|
|
406
428
|
* The published version of the shift assignment, if it exists. If filled but
|
|
407
429
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -438,6 +460,11 @@ export namespace ShiftassignmentCreateResponse {
|
|
|
438
460
|
*/
|
|
439
461
|
start_time: string;
|
|
440
462
|
|
|
463
|
+
/**
|
|
464
|
+
* Notes for the shift, max length 256 characters
|
|
465
|
+
*/
|
|
466
|
+
notes?: string;
|
|
467
|
+
|
|
441
468
|
/**
|
|
442
469
|
* The breaks of the shift
|
|
443
470
|
*/
|
|
@@ -511,6 +538,11 @@ export namespace ShiftassignmentCreateResponse {
|
|
|
511
538
|
*/
|
|
512
539
|
start_time: string;
|
|
513
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Notes for the shift, max length 256 characters
|
|
543
|
+
*/
|
|
544
|
+
notes?: string;
|
|
545
|
+
|
|
514
546
|
/**
|
|
515
547
|
* The breaks of the shift
|
|
516
548
|
*/
|
|
@@ -693,7 +725,8 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
693
725
|
updated_at: string;
|
|
694
726
|
|
|
695
727
|
/**
|
|
696
|
-
* The ID of the worker
|
|
728
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
729
|
+
* shift.
|
|
697
730
|
*/
|
|
698
731
|
worker_id: string;
|
|
699
732
|
|
|
@@ -702,6 +735,11 @@ export interface ShiftassignmentRetrieveResponse extends BusinessPartnersAPI.Met
|
|
|
702
735
|
*/
|
|
703
736
|
can_edit?: boolean;
|
|
704
737
|
|
|
738
|
+
/**
|
|
739
|
+
* Custom fields for the shift assignment
|
|
740
|
+
*/
|
|
741
|
+
custom_fields?: Array<unknown>;
|
|
742
|
+
|
|
705
743
|
/**
|
|
706
744
|
* The published version of the shift assignment, if it exists. If filled but
|
|
707
745
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -738,6 +776,11 @@ export namespace ShiftassignmentRetrieveResponse {
|
|
|
738
776
|
*/
|
|
739
777
|
start_time: string;
|
|
740
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Notes for the shift, max length 256 characters
|
|
781
|
+
*/
|
|
782
|
+
notes?: string;
|
|
783
|
+
|
|
741
784
|
/**
|
|
742
785
|
* The breaks of the shift
|
|
743
786
|
*/
|
|
@@ -811,6 +854,11 @@ export namespace ShiftassignmentRetrieveResponse {
|
|
|
811
854
|
*/
|
|
812
855
|
start_time: string;
|
|
813
856
|
|
|
857
|
+
/**
|
|
858
|
+
* Notes for the shift, max length 256 characters
|
|
859
|
+
*/
|
|
860
|
+
notes?: string;
|
|
861
|
+
|
|
814
862
|
/**
|
|
815
863
|
* The breaks of the shift
|
|
816
864
|
*/
|
|
@@ -990,7 +1038,8 @@ export interface ShiftassignmentUpdateResponse {
|
|
|
990
1038
|
updated_at: string;
|
|
991
1039
|
|
|
992
1040
|
/**
|
|
993
|
-
* The ID of the worker
|
|
1041
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
1042
|
+
* shift.
|
|
994
1043
|
*/
|
|
995
1044
|
worker_id: string;
|
|
996
1045
|
|
|
@@ -999,6 +1048,11 @@ export interface ShiftassignmentUpdateResponse {
|
|
|
999
1048
|
*/
|
|
1000
1049
|
can_edit?: boolean;
|
|
1001
1050
|
|
|
1051
|
+
/**
|
|
1052
|
+
* Custom fields for the shift assignment
|
|
1053
|
+
*/
|
|
1054
|
+
custom_fields?: Array<unknown>;
|
|
1055
|
+
|
|
1002
1056
|
/**
|
|
1003
1057
|
* The published version of the shift assignment, if it exists. If filled but
|
|
1004
1058
|
* is_published is false, the shift_data is the latest version.
|
|
@@ -1035,6 +1089,11 @@ export namespace ShiftassignmentUpdateResponse {
|
|
|
1035
1089
|
*/
|
|
1036
1090
|
start_time: string;
|
|
1037
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* Notes for the shift, max length 256 characters
|
|
1094
|
+
*/
|
|
1095
|
+
notes?: string;
|
|
1096
|
+
|
|
1038
1097
|
/**
|
|
1039
1098
|
* The breaks of the shift
|
|
1040
1099
|
*/
|
|
@@ -1108,6 +1167,11 @@ export namespace ShiftassignmentUpdateResponse {
|
|
|
1108
1167
|
*/
|
|
1109
1168
|
start_time: string;
|
|
1110
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* Notes for the shift, max length 256 characters
|
|
1172
|
+
*/
|
|
1173
|
+
notes?: string;
|
|
1174
|
+
|
|
1111
1175
|
/**
|
|
1112
1176
|
* The breaks of the shift
|
|
1113
1177
|
*/
|
|
@@ -1282,7 +1346,8 @@ export interface ShiftassignmentCreateParams {
|
|
|
1282
1346
|
shift_data: ShiftassignmentCreateParams.ShiftData;
|
|
1283
1347
|
|
|
1284
1348
|
/**
|
|
1285
|
-
* The ID of the worker
|
|
1349
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
1350
|
+
* shift.
|
|
1286
1351
|
*/
|
|
1287
1352
|
worker_id: string;
|
|
1288
1353
|
}
|
|
@@ -1302,6 +1367,11 @@ export namespace ShiftassignmentCreateParams {
|
|
|
1302
1367
|
*/
|
|
1303
1368
|
start_time: string;
|
|
1304
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* Notes for the shift, max length 256 characters
|
|
1372
|
+
*/
|
|
1373
|
+
notes?: string;
|
|
1374
|
+
|
|
1305
1375
|
/**
|
|
1306
1376
|
* The breaks of the shift
|
|
1307
1377
|
*/
|
|
@@ -1361,18 +1431,14 @@ export interface ShiftassignmentUpdateParams {
|
|
|
1361
1431
|
*/
|
|
1362
1432
|
is_published: boolean;
|
|
1363
1433
|
|
|
1364
|
-
/**
|
|
1365
|
-
* The ID of the schedule
|
|
1366
|
-
*/
|
|
1367
|
-
schedule_id: string;
|
|
1368
|
-
|
|
1369
1434
|
/**
|
|
1370
1435
|
* The data of the shift
|
|
1371
1436
|
*/
|
|
1372
1437
|
shift_data: ShiftassignmentUpdateParams.ShiftData;
|
|
1373
1438
|
|
|
1374
1439
|
/**
|
|
1375
|
-
* The ID of the worker
|
|
1440
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
1441
|
+
* shift.
|
|
1376
1442
|
*/
|
|
1377
1443
|
worker_id: string;
|
|
1378
1444
|
}
|
|
@@ -1392,6 +1458,11 @@ export namespace ShiftassignmentUpdateParams {
|
|
|
1392
1458
|
*/
|
|
1393
1459
|
start_time: string;
|
|
1394
1460
|
|
|
1461
|
+
/**
|
|
1462
|
+
* Notes for the shift, max length 256 characters
|
|
1463
|
+
*/
|
|
1464
|
+
notes?: string;
|
|
1465
|
+
|
|
1395
1466
|
/**
|
|
1396
1467
|
* The breaks of the shift
|
|
1397
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';
|
|
@@ -13,16 +13,17 @@ export class ExclusionMembers extends APIResource {
|
|
|
13
13
|
* Retrieve supergroup exclusion members matching the input parameters.
|
|
14
14
|
*
|
|
15
15
|
* - Requires: `API Tier 1`
|
|
16
|
+
* - Expandable fields: `worker`
|
|
16
17
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
18
|
*/
|
|
18
19
|
list(
|
|
19
20
|
groupID: string,
|
|
20
21
|
query: ExclusionMemberListParams | null | undefined = {},
|
|
21
22
|
options?: RequestOptions,
|
|
22
|
-
): PagePromise<GroupMembersPageCursorURL,
|
|
23
|
+
): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
|
|
23
24
|
return this._client.getAPIList(
|
|
24
25
|
path`/supergroups/${groupID}/exclusion-members`,
|
|
25
|
-
PageCursorURL<
|
|
26
|
+
PageCursorURL<Shared.GroupMember>,
|
|
26
27
|
{ query, ...options },
|
|
27
28
|
);
|
|
28
29
|
}
|
|
@@ -47,6 +48,8 @@ export interface ExclusionMemberUpdateResponse {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export interface ExclusionMemberListParams {
|
|
51
|
+
expand?: string;
|
|
52
|
+
|
|
50
53
|
order_by?: string;
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -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';
|
|
@@ -13,16 +13,17 @@ export class InclusionMembers extends APIResource {
|
|
|
13
13
|
* Retrieve supergroup inclusion members matching the input parameters.
|
|
14
14
|
*
|
|
15
15
|
* - Requires: `API Tier 1`
|
|
16
|
+
* - Expandable fields: `worker`
|
|
16
17
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
18
|
*/
|
|
18
19
|
list(
|
|
19
20
|
groupID: string,
|
|
20
21
|
query: InclusionMemberListParams | null | undefined = {},
|
|
21
22
|
options?: RequestOptions,
|
|
22
|
-
): PagePromise<GroupMembersPageCursorURL,
|
|
23
|
+
): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
|
|
23
24
|
return this._client.getAPIList(
|
|
24
25
|
path`/supergroups/${groupID}/inclusion-members`,
|
|
25
|
-
PageCursorURL<
|
|
26
|
+
PageCursorURL<Shared.GroupMember>,
|
|
26
27
|
{ query, ...options },
|
|
27
28
|
);
|
|
28
29
|
}
|
|
@@ -47,6 +48,8 @@ export interface InclusionMemberUpdateResponse {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export interface InclusionMemberListParams {
|
|
51
|
+
expand?: string;
|
|
52
|
+
|
|
50
53
|
order_by?: string;
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -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,6 +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 Shared from '../shared';
|
|
5
|
+
import { GroupMembersPageCursorURL } from '../shared';
|
|
4
6
|
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
5
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -10,57 +12,29 @@ export class Members extends APIResource {
|
|
|
10
12
|
* Retrieve supergroup members matching the input parameters.
|
|
11
13
|
*
|
|
12
14
|
* - Requires: `API Tier 1`
|
|
15
|
+
* - Expandable fields: `worker`
|
|
13
16
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
14
17
|
*/
|
|
15
18
|
list(
|
|
16
19
|
groupID: string,
|
|
17
20
|
query: MemberListParams | null | undefined = {},
|
|
18
21
|
options?: RequestOptions,
|
|
19
|
-
): PagePromise<GroupMembersPageCursorURL, GroupMember> {
|
|
20
|
-
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>, {
|
|
21
24
|
query,
|
|
22
25
|
...options,
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
export type GroupMembersPageCursorURL = PageCursorURL<GroupMember>;
|
|
28
|
-
|
|
29
|
-
export interface GroupMember {
|
|
30
|
-
/**
|
|
31
|
-
* Identifier field
|
|
32
|
-
*/
|
|
33
|
-
id: string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Record creation date
|
|
37
|
-
*/
|
|
38
|
-
created_at: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Record update date
|
|
42
|
-
*/
|
|
43
|
-
updated_at: string;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The group member's full name.
|
|
47
|
-
*/
|
|
48
|
-
full_name?: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The group member's associated work email address.
|
|
52
|
-
*/
|
|
53
|
-
work_email?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
30
|
export interface MemberListParams {
|
|
31
|
+
expand?: string;
|
|
32
|
+
|
|
57
33
|
order_by?: string;
|
|
58
34
|
}
|
|
59
35
|
|
|
60
36
|
export declare namespace Members {
|
|
61
|
-
export {
|
|
62
|
-
type GroupMember as GroupMember,
|
|
63
|
-
type GroupMembersPageCursorURL as GroupMembersPageCursorURL,
|
|
64
|
-
type MemberListParams as MemberListParams,
|
|
65
|
-
};
|
|
37
|
+
export { type MemberListParams as MemberListParams };
|
|
66
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
|
+
}
|