@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.
Files changed (223) hide show
  1. package/LICENSE +1 -1
  2. package/client.d.mts +33 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/functions.d.mts +4 -0
  11. package/functions.d.mts.map +1 -1
  12. package/functions.d.ts +4 -0
  13. package/functions.d.ts.map +1 -1
  14. package/functions.js +13 -1
  15. package/functions.js.map +1 -1
  16. package/functions.mjs +11 -0
  17. package/functions.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/compensation-bands-details.d.mts +95 -0
  20. package/resources/compensation-bands-details.d.mts.map +1 -0
  21. package/resources/compensation-bands-details.d.ts +95 -0
  22. package/resources/compensation-bands-details.d.ts.map +1 -0
  23. package/resources/compensation-bands-details.js +29 -0
  24. package/resources/compensation-bands-details.js.map +1 -0
  25. package/resources/compensation-bands-details.mjs +25 -0
  26. package/resources/compensation-bands-details.mjs.map +1 -0
  27. package/resources/custom-settings.d.mts +270 -0
  28. package/resources/custom-settings.d.mts.map +1 -0
  29. package/resources/custom-settings.d.ts +270 -0
  30. package/resources/custom-settings.d.ts.map +1 -0
  31. package/resources/custom-settings.js +51 -0
  32. package/resources/custom-settings.js.map +1 -0
  33. package/resources/custom-settings.mjs +47 -0
  34. package/resources/custom-settings.mjs.map +1 -0
  35. package/resources/departments.d.mts +37 -1
  36. package/resources/departments.d.mts.map +1 -1
  37. package/resources/departments.d.ts +37 -1
  38. package/resources/departments.d.ts.map +1 -1
  39. package/resources/departments.js +12 -0
  40. package/resources/departments.js.map +1 -1
  41. package/resources/departments.mjs +12 -0
  42. package/resources/departments.mjs.map +1 -1
  43. package/resources/draft-hires.d.mts +27 -0
  44. package/resources/draft-hires.d.mts.map +1 -1
  45. package/resources/draft-hires.d.ts +27 -0
  46. package/resources/draft-hires.d.ts.map +1 -1
  47. package/resources/functions/executions.d.mts +6 -82
  48. package/resources/functions/executions.d.mts.map +1 -1
  49. package/resources/functions/executions.d.ts +6 -82
  50. package/resources/functions/executions.d.ts.map +1 -1
  51. package/resources/functions/executions.js.map +1 -1
  52. package/resources/functions/executions.mjs.map +1 -1
  53. package/resources/functions/functions.d.mts +2 -2
  54. package/resources/functions/functions.d.mts.map +1 -1
  55. package/resources/functions/functions.d.ts +2 -2
  56. package/resources/functions/functions.d.ts.map +1 -1
  57. package/resources/functions/functions.js.map +1 -1
  58. package/resources/functions/functions.mjs.map +1 -1
  59. package/resources/functions/index.d.mts +1 -1
  60. package/resources/functions/index.d.mts.map +1 -1
  61. package/resources/functions/index.d.ts +1 -1
  62. package/resources/functions/index.d.ts.map +1 -1
  63. package/resources/functions/index.js.map +1 -1
  64. package/resources/functions/index.mjs.map +1 -1
  65. package/resources/index.d.mts +12 -5
  66. package/resources/index.d.mts.map +1 -1
  67. package/resources/index.d.ts +12 -5
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +15 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +7 -0
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/job-assignments.d.mts +70 -6
  74. package/resources/job-assignments.d.mts.map +1 -1
  75. package/resources/job-assignments.d.ts +70 -6
  76. package/resources/job-assignments.d.ts.map +1 -1
  77. package/resources/job-assignments.js +22 -0
  78. package/resources/job-assignments.js.map +1 -1
  79. package/resources/job-assignments.mjs +22 -0
  80. package/resources/job-assignments.mjs.map +1 -1
  81. package/resources/job-codes.d.mts +47 -1
  82. package/resources/job-codes.d.mts.map +1 -1
  83. package/resources/job-codes.d.ts +47 -1
  84. package/resources/job-codes.d.ts.map +1 -1
  85. package/resources/job-dimensions.d.mts +20 -0
  86. package/resources/job-dimensions.d.mts.map +1 -1
  87. package/resources/job-dimensions.d.ts +20 -0
  88. package/resources/job-dimensions.d.ts.map +1 -1
  89. package/resources/job-requisitions-write.d.mts +257 -0
  90. package/resources/job-requisitions-write.d.mts.map +1 -0
  91. package/resources/job-requisitions-write.d.ts +257 -0
  92. package/resources/job-requisitions-write.d.ts.map +1 -0
  93. package/resources/job-requisitions-write.js +15 -0
  94. package/resources/job-requisitions-write.js.map +1 -0
  95. package/resources/job-requisitions-write.mjs +11 -0
  96. package/resources/job-requisitions-write.mjs.map +1 -0
  97. package/resources/leave-accruals.d.mts +112 -6
  98. package/resources/leave-accruals.d.mts.map +1 -1
  99. package/resources/leave-accruals.d.ts +112 -6
  100. package/resources/leave-accruals.d.ts.map +1 -1
  101. package/resources/leave-accruals.js +19 -3
  102. package/resources/leave-accruals.js.map +1 -1
  103. package/resources/leave-accruals.mjs +19 -3
  104. package/resources/leave-accruals.mjs.map +1 -1
  105. package/resources/report-runs.d.mts +149 -0
  106. package/resources/report-runs.d.mts.map +1 -0
  107. package/resources/report-runs.d.ts +149 -0
  108. package/resources/report-runs.d.ts.map +1 -0
  109. package/resources/report-runs.js +22 -0
  110. package/resources/report-runs.js.map +1 -0
  111. package/resources/report-runs.mjs +18 -0
  112. package/resources/report-runs.mjs.map +1 -0
  113. package/resources/shared.d.mts +35 -0
  114. package/resources/shared.d.mts.map +1 -1
  115. package/resources/shared.d.ts +35 -0
  116. package/resources/shared.d.ts.map +1 -1
  117. package/resources/shift-assignments.d.mts +296 -0
  118. package/resources/shift-assignments.d.mts.map +1 -0
  119. package/resources/shift-assignments.d.ts +296 -0
  120. package/resources/shift-assignments.d.ts.map +1 -0
  121. package/resources/shift-assignments.js +25 -0
  122. package/resources/shift-assignments.js.map +1 -0
  123. package/resources/shift-assignments.mjs +21 -0
  124. package/resources/shift-assignments.mjs.map +1 -0
  125. package/resources/shiftassignments.d.mts +56 -4
  126. package/resources/shiftassignments.d.mts.map +1 -1
  127. package/resources/shiftassignments.d.ts +56 -4
  128. package/resources/shiftassignments.d.ts.map +1 -1
  129. package/resources/supergroups/exclusion-members.d.mts +3 -3
  130. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  131. package/resources/supergroups/exclusion-members.d.ts +3 -3
  132. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  133. package/resources/supergroups/exclusion-members.js.map +1 -1
  134. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  135. package/resources/supergroups/inclusion-members.d.mts +3 -3
  136. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  137. package/resources/supergroups/inclusion-members.d.ts +3 -3
  138. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  139. package/resources/supergroups/inclusion-members.js.map +1 -1
  140. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  141. package/resources/supergroups/index.d.mts +1 -1
  142. package/resources/supergroups/index.d.mts.map +1 -1
  143. package/resources/supergroups/index.d.ts +1 -1
  144. package/resources/supergroups/index.d.ts.map +1 -1
  145. package/resources/supergroups/index.js.map +1 -1
  146. package/resources/supergroups/index.mjs.map +1 -1
  147. package/resources/supergroups/members.d.mts +6 -37
  148. package/resources/supergroups/members.d.mts.map +1 -1
  149. package/resources/supergroups/members.d.ts +6 -37
  150. package/resources/supergroups/members.d.ts.map +1 -1
  151. package/resources/supergroups/members.js.map +1 -1
  152. package/resources/supergroups/members.mjs.map +1 -1
  153. package/resources/supergroups/supergroups.d.mts +2 -2
  154. package/resources/supergroups/supergroups.d.mts.map +1 -1
  155. package/resources/supergroups/supergroups.d.ts +2 -2
  156. package/resources/supergroups/supergroups.d.ts.map +1 -1
  157. package/resources/supergroups/supergroups.js.map +1 -1
  158. package/resources/supergroups/supergroups.mjs.map +1 -1
  159. package/resources/titles.d.mts +126 -0
  160. package/resources/titles.d.mts.map +1 -0
  161. package/resources/titles.d.ts +126 -0
  162. package/resources/titles.d.ts.map +1 -0
  163. package/resources/titles.js +48 -0
  164. package/resources/titles.js.map +1 -0
  165. package/resources/titles.mjs +44 -0
  166. package/resources/titles.mjs.map +1 -0
  167. package/resources/unassigned-shifts.d.mts +334 -0
  168. package/resources/unassigned-shifts.d.mts.map +1 -0
  169. package/resources/unassigned-shifts.d.ts +334 -0
  170. package/resources/unassigned-shifts.d.ts.map +1 -0
  171. package/resources/unassigned-shifts.js +42 -0
  172. package/resources/unassigned-shifts.js.map +1 -0
  173. package/resources/unassigned-shifts.mjs +38 -0
  174. package/resources/unassigned-shifts.mjs.map +1 -0
  175. package/resources/unassignedshifts.d.mts +382 -1
  176. package/resources/unassignedshifts.d.mts.map +1 -1
  177. package/resources/unassignedshifts.d.ts +382 -1
  178. package/resources/unassignedshifts.d.ts.map +1 -1
  179. package/resources/unassignedshifts.js +6 -0
  180. package/resources/unassignedshifts.js.map +1 -1
  181. package/resources/unassignedshifts.mjs +6 -0
  182. package/resources/unassignedshifts.mjs.map +1 -1
  183. package/resources/work-locations.d.mts +95 -1
  184. package/resources/work-locations.d.mts.map +1 -1
  185. package/resources/work-locations.d.ts +95 -1
  186. package/resources/work-locations.d.ts.map +1 -1
  187. package/resources/work-locations.js +12 -0
  188. package/resources/work-locations.js.map +1 -1
  189. package/resources/work-locations.mjs +12 -0
  190. package/resources/work-locations.mjs.map +1 -1
  191. package/src/client.ts +153 -3
  192. package/src/functions.ts +14 -0
  193. package/src/resources/compensation-bands-details.ts +140 -0
  194. package/src/resources/custom-settings.ts +371 -0
  195. package/src/resources/departments.ts +50 -0
  196. package/src/resources/draft-hires.ts +32 -0
  197. package/src/resources/functions/executions.ts +8 -104
  198. package/src/resources/functions/functions.ts +4 -8
  199. package/src/resources/functions/index.ts +2 -4
  200. package/src/resources/index.ts +66 -2
  201. package/src/resources/job-assignments.ts +95 -6
  202. package/src/resources/job-codes.ts +56 -1
  203. package/src/resources/job-dimensions.ts +24 -0
  204. package/src/resources/job-requisitions-write.ts +327 -0
  205. package/src/resources/leave-accruals.ts +229 -12
  206. package/src/resources/report-runs.ts +186 -0
  207. package/src/resources/shared.ts +44 -0
  208. package/src/resources/shift-assignments.ts +362 -0
  209. package/src/resources/shiftassignments.ts +70 -5
  210. package/src/resources/supergroups/exclusion-members.ts +4 -4
  211. package/src/resources/supergroups/inclusion-members.ts +4 -4
  212. package/src/resources/supergroups/index.ts +1 -1
  213. package/src/resources/supergroups/members.ts +7 -49
  214. package/src/resources/supergroups/supergroups.ts +2 -7
  215. package/src/resources/titles.ts +181 -0
  216. package/src/resources/unassigned-shifts.ts +415 -0
  217. package/src/resources/unassignedshifts.ts +467 -0
  218. package/src/resources/work-locations.ts +118 -0
  219. package/src/version.ts +1 -1
  220. package/version.d.mts +1 -1
  221. package/version.d.ts +1 -1
  222. package/version.js +1 -1
  223. 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 MembersAPI from './members';
5
- import { GroupMembersPageCursorURL } from './members';
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, MembersAPI.GroupMember> {
23
+ ): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
24
24
  return this._client.getAPIList(
25
25
  path`/supergroups/${groupID}/exclusion-members`,
26
- PageCursorURL<MembersAPI.GroupMember>,
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 MembersAPI from './members';
5
- import { GroupMembersPageCursorURL } from './members';
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, MembersAPI.GroupMember> {
23
+ ): PagePromise<GroupMembersPageCursorURL, Shared.GroupMember> {
24
24
  return this._client.getAPIList(
25
25
  path`/supergroups/${groupID}/inclusion-members`,
26
- PageCursorURL<MembersAPI.GroupMember>,
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 GroupMember, type MemberListParams, type GroupMembersPageCursorURL } from './members';
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 WorkersAPI from '../workers';
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 { GroupMember, GroupMembersPageCursorURL, MemberListParams, Members } from './members';
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
+ }