@rippling/rippling-sdk 0.2.0-alpha.57 → 0.2.0-alpha.59
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 +16 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -10
- package/client.d.ts.map +1 -1
- package/client.js +21 -7
- package/client.js.map +1 -1
- package/client.mjs +21 -7
- package/client.mjs.map +1 -1
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +0 -6
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +0 -6
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +0 -1
- package/lib/manifest/field.d.mts +0 -2
- package/lib/manifest/field.d.mts.map +1 -1
- package/lib/manifest/field.d.ts +0 -2
- package/lib/manifest/field.d.ts.map +1 -1
- package/lib/manifest/field.js +1 -1
- package/lib/manifest/field.js.map +1 -1
- package/lib/manifest/field.mjs +1 -1
- package/lib/manifest/field.mjs.map +1 -1
- package/lib/manifest/sdui-page.d.mts +0 -8
- package/lib/manifest/sdui-page.d.mts.map +1 -1
- package/lib/manifest/sdui-page.d.ts +0 -8
- package/lib/manifest/sdui-page.d.ts.map +1 -1
- package/lib/manifest/sdui-page.js +0 -4
- package/lib/manifest/sdui-page.js.map +1 -1
- package/lib/manifest/sdui-page.mjs +1 -5
- package/lib/manifest/sdui-page.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/break-policies.d.mts +91 -0
- package/resources/break-policies.d.mts.map +1 -0
- package/resources/break-policies.d.ts +91 -0
- package/resources/break-policies.d.ts.map +1 -0
- package/resources/break-policies.js +32 -0
- package/resources/break-policies.js.map +1 -0
- package/resources/break-policies.mjs +28 -0
- package/resources/break-policies.mjs.map +1 -0
- package/resources/break-types.d.mts +105 -2
- package/resources/break-types.d.mts.map +1 -1
- package/resources/break-types.d.ts +105 -2
- package/resources/break-types.d.ts.map +1 -1
- package/resources/break-types.js +4 -2
- package/resources/break-types.js.map +1 -1
- package/resources/break-types.mjs +4 -2
- package/resources/break-types.mjs.map +1 -1
- package/resources/business-structure-paths.d.mts +109 -0
- package/resources/business-structure-paths.d.mts.map +1 -0
- package/resources/business-structure-paths.d.ts +109 -0
- package/resources/business-structure-paths.d.ts.map +1 -0
- package/resources/business-structure-paths.js +30 -0
- package/resources/business-structure-paths.js.map +1 -0
- package/resources/business-structure-paths.mjs +26 -0
- package/resources/business-structure-paths.mjs.map +1 -0
- package/resources/candidate-applications.d.mts +5 -1
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +5 -1
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +1 -1
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +1 -1
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/employee-documents.d.mts +42 -4
- package/resources/employee-documents.d.mts.map +1 -1
- package/resources/employee-documents.d.ts +42 -4
- package/resources/employee-documents.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +14 -2
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +14 -2
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +2 -1
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +2 -1
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/scheduled-job-assignments.d.mts +13 -21
- package/resources/scheduled-job-assignments.d.mts.map +1 -1
- package/resources/scheduled-job-assignments.d.ts +13 -21
- package/resources/scheduled-job-assignments.d.ts.map +1 -1
- package/src/client.ts +55 -17
- package/src/lib/manifest/field.ts +1 -3
- package/src/lib/manifest/sdui-page.ts +1 -12
- package/src/resources/break-policies.ts +126 -0
- package/src/resources/break-types.ts +129 -2
- package/src/resources/business-structure-paths.ts +157 -0
- package/src/resources/candidate-applications.ts +6 -1
- package/src/resources/employee-documents.ts +46 -4
- package/src/resources/index.ts +17 -5
- package/src/resources/job-assignments.ts +21 -1
- package/src/resources/scheduled-job-assignments.ts +13 -23
- 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
- package/resources/metadata/components.d.mts +0 -28
- package/resources/metadata/components.d.mts.map +0 -1
- package/resources/metadata/components.d.ts +0 -28
- package/resources/metadata/components.d.ts.map +0 -1
- package/resources/metadata/components.js +0 -21
- package/resources/metadata/components.js.map +0 -1
- package/resources/metadata/components.mjs +0 -17
- package/resources/metadata/components.mjs.map +0 -1
- package/resources/metadata/index.d.mts +0 -5
- package/resources/metadata/index.d.mts.map +0 -1
- package/resources/metadata/index.d.ts +0 -5
- package/resources/metadata/index.d.ts.map +0 -1
- package/resources/metadata/index.js +0 -13
- package/resources/metadata/index.js.map +0 -1
- package/resources/metadata/index.mjs +0 -6
- package/resources/metadata/index.mjs.map +0 -1
- package/resources/metadata/metadata.d.mts +0 -40
- package/resources/metadata/metadata.d.mts.map +0 -1
- package/resources/metadata/metadata.d.ts +0 -40
- package/resources/metadata/metadata.d.ts.map +0 -1
- package/resources/metadata/metadata.js +0 -37
- package/resources/metadata/metadata.js.map +0 -1
- package/resources/metadata/metadata.mjs +0 -32
- package/resources/metadata/metadata.mjs.map +0 -1
- package/resources/metadata/summary.d.mts +0 -28
- package/resources/metadata/summary.d.mts.map +0 -1
- package/resources/metadata/summary.d.ts +0 -28
- package/resources/metadata/summary.d.ts.map +0 -1
- package/resources/metadata/summary.js +0 -21
- package/resources/metadata/summary.js.map +0 -1
- package/resources/metadata/summary.mjs +0 -17
- package/resources/metadata/summary.mjs.map +0 -1
- package/resources/metadata/types.d.mts +0 -28
- package/resources/metadata/types.d.mts.map +0 -1
- package/resources/metadata/types.d.ts +0 -28
- package/resources/metadata/types.d.ts.map +0 -1
- package/resources/metadata/types.js +0 -21
- package/resources/metadata/types.js.map +0 -1
- package/resources/metadata/types.mjs +0 -17
- package/resources/metadata/types.mjs.map +0 -1
- package/resources/metadata.d.mts +0 -2
- package/resources/metadata.d.mts.map +0 -1
- package/resources/metadata.d.ts +0 -2
- package/resources/metadata.d.ts.map +0 -1
- package/resources/metadata.js +0 -6
- package/resources/metadata.js.map +0 -1
- package/resources/metadata.mjs +0 -3
- package/resources/metadata.mjs.map +0 -1
- package/src/resources/metadata/components.ts +0 -38
- package/src/resources/metadata/index.ts +0 -10
- package/src/resources/metadata/metadata.ts +0 -70
- package/src/resources/metadata/summary.ts +0 -38
- package/src/resources/metadata/types.ts +0 -38
- package/src/resources/metadata.ts +0 -3
|
@@ -0,0 +1,126 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Break types configured by the company for time tracking
|
|
12
|
+
*/
|
|
13
|
+
export class BreakPolicies extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* A list of break policies.
|
|
16
|
+
*
|
|
17
|
+
* - Requires: `API Tier 2`
|
|
18
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
query: BreakPolicyListParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): PagePromise<BreakPolicyListResponsesPageCursorURL, BreakPolicyListResponse> {
|
|
24
|
+
return this._client.getAPIList('/break-policies/', PageCursorURL<BreakPolicyListResponse>, {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve a specific break policy
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BreakPolicyRetrieveResponse> {
|
|
34
|
+
return this._client.get(path`/break-policies/${id}/`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type BreakPolicyListResponsesPageCursorURL = PageCursorURL<BreakPolicyListResponse>;
|
|
39
|
+
|
|
40
|
+
export interface BreakPolicyListResponse {
|
|
41
|
+
/**
|
|
42
|
+
* Identifier field
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Record creation date
|
|
48
|
+
*/
|
|
49
|
+
created_at: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The display name of the break policy. For default policies this is the
|
|
53
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
54
|
+
* for custom policies this is the admin-provided description.
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Record update date
|
|
60
|
+
*/
|
|
61
|
+
updated_at: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
65
|
+
*/
|
|
66
|
+
country_code?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
70
|
+
* by an admin (false).
|
|
71
|
+
*/
|
|
72
|
+
is_default?: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Meta information for the response.
|
|
77
|
+
*/
|
|
78
|
+
export interface BreakPolicyRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
79
|
+
/**
|
|
80
|
+
* Identifier field
|
|
81
|
+
*/
|
|
82
|
+
id: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Record creation date
|
|
86
|
+
*/
|
|
87
|
+
created_at: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The display name of the break policy. For default policies this is the
|
|
91
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
92
|
+
* for custom policies this is the admin-provided description.
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Record update date
|
|
98
|
+
*/
|
|
99
|
+
updated_at: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
103
|
+
*/
|
|
104
|
+
country_code?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
108
|
+
* by an admin (false).
|
|
109
|
+
*/
|
|
110
|
+
is_default?: boolean;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface BreakPolicyListParams {
|
|
114
|
+
cursor?: string;
|
|
115
|
+
|
|
116
|
+
order_by?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export declare namespace BreakPolicies {
|
|
120
|
+
export {
|
|
121
|
+
type BreakPolicyListResponse as BreakPolicyListResponse,
|
|
122
|
+
type BreakPolicyRetrieveResponse as BreakPolicyRetrieveResponse,
|
|
123
|
+
type BreakPolicyListResponsesPageCursorURL as BreakPolicyListResponsesPageCursorURL,
|
|
124
|
+
type BreakPolicyListParams as BreakPolicyListParams,
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -15,6 +15,8 @@ export class BreakTypes extends APIResource {
|
|
|
15
15
|
* A list of break types.
|
|
16
16
|
*
|
|
17
17
|
* - Requires: `API Tier 2`
|
|
18
|
+
* - Filterable fields: `policy_id`
|
|
19
|
+
* - Expandable fields: `policy`
|
|
18
20
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
19
21
|
*/
|
|
20
22
|
list(
|
|
@@ -30,8 +32,12 @@ export class BreakTypes extends APIResource {
|
|
|
30
32
|
/**
|
|
31
33
|
* Retrieve a specific break type
|
|
32
34
|
*/
|
|
33
|
-
retrieve(
|
|
34
|
-
|
|
35
|
+
retrieve(
|
|
36
|
+
id: string,
|
|
37
|
+
query: BreakTypeRetrieveParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<BreakTypeRetrieveResponse> {
|
|
40
|
+
return this._client.get(path`/break-types/${id}/`, { query, ...options });
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -67,6 +73,62 @@ export interface BreakTypeListResponse {
|
|
|
67
73
|
* Whether this is a paid break (true) or unpaid (false).
|
|
68
74
|
*/
|
|
69
75
|
is_paid?: boolean;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
79
|
+
* full policy object.
|
|
80
|
+
*
|
|
81
|
+
* Expandable field
|
|
82
|
+
*/
|
|
83
|
+
policy?: BreakTypeListResponse.Policy;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the break policy this break type belongs to.
|
|
87
|
+
*/
|
|
88
|
+
policy_id?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export namespace BreakTypeListResponse {
|
|
92
|
+
/**
|
|
93
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
94
|
+
* full policy object.
|
|
95
|
+
*
|
|
96
|
+
* Expandable field
|
|
97
|
+
*/
|
|
98
|
+
export interface Policy {
|
|
99
|
+
/**
|
|
100
|
+
* Identifier field
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Record creation date
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The display name of the break policy. For default policies this is the
|
|
111
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
112
|
+
* for custom policies this is the admin-provided description.
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Record update date
|
|
118
|
+
*/
|
|
119
|
+
updated_at: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
123
|
+
*/
|
|
124
|
+
country_code?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
128
|
+
* by an admin (false).
|
|
129
|
+
*/
|
|
130
|
+
is_default?: boolean;
|
|
131
|
+
}
|
|
70
132
|
}
|
|
71
133
|
|
|
72
134
|
/**
|
|
@@ -102,19 +164,84 @@ export interface BreakTypeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
102
164
|
* Whether this is a paid break (true) or unpaid (false).
|
|
103
165
|
*/
|
|
104
166
|
is_paid?: boolean;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
170
|
+
* full policy object.
|
|
171
|
+
*
|
|
172
|
+
* Expandable field
|
|
173
|
+
*/
|
|
174
|
+
policy?: BreakTypeRetrieveResponse.Policy;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The ID of the break policy this break type belongs to.
|
|
178
|
+
*/
|
|
179
|
+
policy_id?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export namespace BreakTypeRetrieveResponse {
|
|
183
|
+
/**
|
|
184
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
185
|
+
* full policy object.
|
|
186
|
+
*
|
|
187
|
+
* Expandable field
|
|
188
|
+
*/
|
|
189
|
+
export interface Policy {
|
|
190
|
+
/**
|
|
191
|
+
* Identifier field
|
|
192
|
+
*/
|
|
193
|
+
id: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Record creation date
|
|
197
|
+
*/
|
|
198
|
+
created_at: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The display name of the break policy. For default policies this is the
|
|
202
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
203
|
+
* for custom policies this is the admin-provided description.
|
|
204
|
+
*/
|
|
205
|
+
name: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Record update date
|
|
209
|
+
*/
|
|
210
|
+
updated_at: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
214
|
+
*/
|
|
215
|
+
country_code?: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
219
|
+
* by an admin (false).
|
|
220
|
+
*/
|
|
221
|
+
is_default?: boolean;
|
|
222
|
+
}
|
|
105
223
|
}
|
|
106
224
|
|
|
107
225
|
export interface BreakTypeListParams {
|
|
108
226
|
cursor?: string;
|
|
109
227
|
|
|
228
|
+
expand?: string;
|
|
229
|
+
|
|
230
|
+
filter?: string;
|
|
231
|
+
|
|
110
232
|
order_by?: string;
|
|
111
233
|
}
|
|
112
234
|
|
|
235
|
+
export interface BreakTypeRetrieveParams {
|
|
236
|
+
expand?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
113
239
|
export declare namespace BreakTypes {
|
|
114
240
|
export {
|
|
115
241
|
type BreakTypeListResponse as BreakTypeListResponse,
|
|
116
242
|
type BreakTypeRetrieveResponse as BreakTypeRetrieveResponse,
|
|
117
243
|
type BreakTypeListResponsesPageCursorURL as BreakTypeListResponsesPageCursorURL,
|
|
118
244
|
type BreakTypeListParams as BreakTypeListParams,
|
|
245
|
+
type BreakTypeRetrieveParams as BreakTypeRetrieveParams,
|
|
119
246
|
};
|
|
120
247
|
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import * as JobCodesAPI from './job-codes';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Business structure used for defining hierarchy of company's org attributes
|
|
13
|
+
*/
|
|
14
|
+
export class BusinessStructurePaths extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* A list of business-structure-paths.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `API Tier 2`
|
|
19
|
+
* - Expandable fields: `parent`, `job_codes`
|
|
20
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
query: BusinessStructurePathListParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): PagePromise<BusinessStructurePathListResponsesPageCursorURL, BusinessStructurePathListResponse> {
|
|
26
|
+
return this._client.getAPIList(
|
|
27
|
+
'/business-structure-paths/',
|
|
28
|
+
PageCursorURL<BusinessStructurePathListResponse>,
|
|
29
|
+
{ query, ...options },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve a specific business-structure-path
|
|
35
|
+
*/
|
|
36
|
+
retrieve(
|
|
37
|
+
id: string,
|
|
38
|
+
query: BusinessStructurePathRetrieveParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<BusinessStructurePathRetrieveResponse> {
|
|
41
|
+
return this._client.get(path`/business-structure-paths/${id}/`, { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type BusinessStructurePathListResponsesPageCursorURL =
|
|
46
|
+
PageCursorURL<BusinessStructurePathListResponse>;
|
|
47
|
+
|
|
48
|
+
export interface BusinessStructurePathListResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Identifier field
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Record creation date
|
|
56
|
+
*/
|
|
57
|
+
created_at: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Record update date
|
|
61
|
+
*/
|
|
62
|
+
updated_at: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Ordered list of full JobCode objects for each job in the path, top to bottom.
|
|
66
|
+
* Populate via ?expand=job_codes. Requires both business-structure-paths.read and
|
|
67
|
+
* job-codes.read scopes.
|
|
68
|
+
*
|
|
69
|
+
* Expandable field
|
|
70
|
+
*/
|
|
71
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Ordered list of Job code IDs from top to bottom.
|
|
75
|
+
*/
|
|
76
|
+
job_codes_id?: Array<string>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Name of the path (e.g. 'SF Office > Coffee > Barista').
|
|
80
|
+
*/
|
|
81
|
+
name?: string;
|
|
82
|
+
|
|
83
|
+
parent?: unknown;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Id of the parent BusinessStructurePath. None for root path.
|
|
87
|
+
*/
|
|
88
|
+
parent_id?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Meta information for the response.
|
|
93
|
+
*/
|
|
94
|
+
export interface BusinessStructurePathRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
95
|
+
/**
|
|
96
|
+
* Identifier field
|
|
97
|
+
*/
|
|
98
|
+
id: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Record creation date
|
|
102
|
+
*/
|
|
103
|
+
created_at: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Record update date
|
|
107
|
+
*/
|
|
108
|
+
updated_at: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Ordered list of full JobCode objects for each job in the path, top to bottom.
|
|
112
|
+
* Populate via ?expand=job_codes. Requires both business-structure-paths.read and
|
|
113
|
+
* job-codes.read scopes.
|
|
114
|
+
*
|
|
115
|
+
* Expandable field
|
|
116
|
+
*/
|
|
117
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Ordered list of Job code IDs from top to bottom.
|
|
121
|
+
*/
|
|
122
|
+
job_codes_id?: Array<string>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Name of the path (e.g. 'SF Office > Coffee > Barista').
|
|
126
|
+
*/
|
|
127
|
+
name?: string;
|
|
128
|
+
|
|
129
|
+
parent?: unknown;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Id of the parent BusinessStructurePath. None for root path.
|
|
133
|
+
*/
|
|
134
|
+
parent_id?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface BusinessStructurePathListParams {
|
|
138
|
+
cursor?: string;
|
|
139
|
+
|
|
140
|
+
expand?: string;
|
|
141
|
+
|
|
142
|
+
order_by?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface BusinessStructurePathRetrieveParams {
|
|
146
|
+
expand?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare namespace BusinessStructurePaths {
|
|
150
|
+
export {
|
|
151
|
+
type BusinessStructurePathListResponse as BusinessStructurePathListResponse,
|
|
152
|
+
type BusinessStructurePathRetrieveResponse as BusinessStructurePathRetrieveResponse,
|
|
153
|
+
type BusinessStructurePathListResponsesPageCursorURL as BusinessStructurePathListResponsesPageCursorURL,
|
|
154
|
+
type BusinessStructurePathListParams as BusinessStructurePathListParams,
|
|
155
|
+
type BusinessStructurePathRetrieveParams as BusinessStructurePathRetrieveParams,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
@@ -17,7 +17,7 @@ export class CandidateApplications extends APIResource {
|
|
|
17
17
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
18
18
|
*/
|
|
19
19
|
list(
|
|
20
|
-
query: CandidateApplicationListParams
|
|
20
|
+
query: CandidateApplicationListParams,
|
|
21
21
|
options?: RequestOptions,
|
|
22
22
|
): PagePromise<CandidateApplicationListResponsesPageCursorURL, CandidateApplicationListResponse> {
|
|
23
23
|
return this._client.getAPIList(
|
|
@@ -80,6 +80,11 @@ export interface CandidateApplicationListResponse {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface CandidateApplicationListParams {
|
|
83
|
+
/**
|
|
84
|
+
* The unique identifier of the candidate whose applications to list.
|
|
85
|
+
*/
|
|
86
|
+
candidate_id: string;
|
|
87
|
+
|
|
83
88
|
cursor?: string;
|
|
84
89
|
|
|
85
90
|
expand?: string;
|
|
@@ -34,7 +34,8 @@ export interface EmployeeDocumentCreateResponse {
|
|
|
34
34
|
created_at: string;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* List of role/document items to process.
|
|
37
|
+
* List of role/document items to process. No limit on number of items; total
|
|
38
|
+
* documents across all items must not exceed 250.
|
|
38
39
|
*/
|
|
39
40
|
items: Array<EmployeeDocumentCreateResponse.Item>;
|
|
40
41
|
|
|
@@ -50,7 +51,7 @@ export namespace EmployeeDocumentCreateResponse {
|
|
|
50
51
|
*/
|
|
51
52
|
export interface Item {
|
|
52
53
|
/**
|
|
53
|
-
* Documents to attach to the role.
|
|
54
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
54
55
|
* FileUploadTracker by file_id.
|
|
55
56
|
*/
|
|
56
57
|
documents: Array<Item.Document>;
|
|
@@ -59,6 +60,26 @@ export namespace EmployeeDocumentCreateResponse {
|
|
|
59
60
|
* Id of the worker to attach documents to.
|
|
60
61
|
*/
|
|
61
62
|
worker_id: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Optional destination folder for documents. Accepts either: (1) an ObjectId
|
|
66
|
+
* string for custom folders, or (2) a default folder identifier ('root',
|
|
67
|
+
* 'confidential_documents', 'notices', 'work_authorization'). When omitted,
|
|
68
|
+
* documents land at the root of the worker's profile (current default behavior).
|
|
69
|
+
* When supplied, the folder must exist, be in an active state, be provisioned for
|
|
70
|
+
* the target worker, and the caller must have UPLOAD permission on it — otherwise
|
|
71
|
+
* behavior is governed by `on_invalid_folder`.
|
|
72
|
+
*/
|
|
73
|
+
folder_id?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
77
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
78
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
79
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
80
|
+
* omitted.
|
|
81
|
+
*/
|
|
82
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
62
83
|
}
|
|
63
84
|
|
|
64
85
|
export namespace Item {
|
|
@@ -87,7 +108,8 @@ export namespace EmployeeDocumentCreateResponse {
|
|
|
87
108
|
|
|
88
109
|
export interface EmployeeDocumentCreateParams {
|
|
89
110
|
/**
|
|
90
|
-
* List of role/document items to process.
|
|
111
|
+
* List of role/document items to process. No limit on number of items; total
|
|
112
|
+
* documents across all items must not exceed 250.
|
|
91
113
|
*/
|
|
92
114
|
items: Array<EmployeeDocumentCreateParams.Item>;
|
|
93
115
|
}
|
|
@@ -98,7 +120,7 @@ export namespace EmployeeDocumentCreateParams {
|
|
|
98
120
|
*/
|
|
99
121
|
export interface Item {
|
|
100
122
|
/**
|
|
101
|
-
* Documents to attach to the role.
|
|
123
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
102
124
|
* FileUploadTracker by file_id.
|
|
103
125
|
*/
|
|
104
126
|
documents: Array<Item.Document>;
|
|
@@ -107,6 +129,26 @@ export namespace EmployeeDocumentCreateParams {
|
|
|
107
129
|
* Id of the worker to attach documents to.
|
|
108
130
|
*/
|
|
109
131
|
worker_id: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Optional destination folder for documents. Accepts either: (1) an ObjectId
|
|
135
|
+
* string for custom folders, or (2) a default folder identifier ('root',
|
|
136
|
+
* 'confidential_documents', 'notices', 'work_authorization'). When omitted,
|
|
137
|
+
* documents land at the root of the worker's profile (current default behavior).
|
|
138
|
+
* When supplied, the folder must exist, be in an active state, be provisioned for
|
|
139
|
+
* the target worker, and the caller must have UPLOAD permission on it — otherwise
|
|
140
|
+
* behavior is governed by `on_invalid_folder`.
|
|
141
|
+
*/
|
|
142
|
+
folder_id?: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
146
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
147
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
148
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
149
|
+
* omitted.
|
|
150
|
+
*/
|
|
151
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
110
152
|
}
|
|
111
153
|
|
|
112
154
|
export namespace Item {
|
package/src/resources/index.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
|
+
export {
|
|
5
|
+
BreakPolicies,
|
|
6
|
+
type BreakPolicyListResponse,
|
|
7
|
+
type BreakPolicyRetrieveResponse,
|
|
8
|
+
type BreakPolicyListParams,
|
|
9
|
+
type BreakPolicyListResponsesPageCursorURL,
|
|
10
|
+
} from './break-policies';
|
|
4
11
|
export {
|
|
5
12
|
BreakTypes,
|
|
6
13
|
type BreakTypeListResponse,
|
|
7
14
|
type BreakTypeRetrieveResponse,
|
|
8
15
|
type BreakTypeListParams,
|
|
16
|
+
type BreakTypeRetrieveParams,
|
|
9
17
|
type BreakTypeListResponsesPageCursorURL,
|
|
10
18
|
} from './break-types';
|
|
11
19
|
export {
|
|
@@ -27,6 +35,14 @@ export {
|
|
|
27
35
|
type BusinessPartnerRetrieveParams,
|
|
28
36
|
type BusinessPartnersPageCursorURL,
|
|
29
37
|
} from './business-partners';
|
|
38
|
+
export {
|
|
39
|
+
BusinessStructurePaths,
|
|
40
|
+
type BusinessStructurePathListResponse,
|
|
41
|
+
type BusinessStructurePathRetrieveResponse,
|
|
42
|
+
type BusinessStructurePathListParams,
|
|
43
|
+
type BusinessStructurePathRetrieveParams,
|
|
44
|
+
type BusinessStructurePathListResponsesPageCursorURL,
|
|
45
|
+
} from './business-structure-paths';
|
|
30
46
|
export {
|
|
31
47
|
CandidateApplications,
|
|
32
48
|
type CandidateApplicationListResponse,
|
|
@@ -189,6 +205,7 @@ export {
|
|
|
189
205
|
type JobAssignmentCreateParams,
|
|
190
206
|
type JobAssignmentRetrieveParams,
|
|
191
207
|
type JobAssignmentUpdateParams,
|
|
208
|
+
type JobAssignmentDeleteParams,
|
|
192
209
|
type JobAssignmentListChangeLogParams,
|
|
193
210
|
type AttributeChangeDetailsPageCursorURL,
|
|
194
211
|
type JobAssignmentsPageCursorURL,
|
|
@@ -316,11 +333,6 @@ export {
|
|
|
316
333
|
type LocationFactorListParams,
|
|
317
334
|
type LocationFactorListResponsesPageCursorURL,
|
|
318
335
|
} from './location-factors';
|
|
319
|
-
export {
|
|
320
|
-
Metadata,
|
|
321
|
-
type MetadataListResponse,
|
|
322
|
-
type MetadataListResponsesPageCursorURL,
|
|
323
|
-
} from './metadata/metadata';
|
|
324
336
|
export {
|
|
325
337
|
ObjectCategories,
|
|
326
338
|
type ObjectCategory,
|
|
@@ -58,8 +58,13 @@ export class JobAssignments extends APIResource {
|
|
|
58
58
|
/**
|
|
59
59
|
* Delete a job assignment
|
|
60
60
|
*/
|
|
61
|
-
delete(
|
|
61
|
+
delete(
|
|
62
|
+
id: string,
|
|
63
|
+
body: JobAssignmentDeleteParams | null | undefined = {},
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): APIPromise<void> {
|
|
62
66
|
return this._client.delete(path`/job-assignments/${id}/`, {
|
|
67
|
+
body,
|
|
63
68
|
...options,
|
|
64
69
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
65
70
|
});
|
|
@@ -321,6 +326,20 @@ export interface JobAssignmentUpdateParams {
|
|
|
321
326
|
job_pay_rate_effective_from?: string;
|
|
322
327
|
}
|
|
323
328
|
|
|
329
|
+
export interface JobAssignmentDeleteParams {
|
|
330
|
+
/**
|
|
331
|
+
* Reason recorded on the scheduled unassignment.
|
|
332
|
+
*/
|
|
333
|
+
change_reason?: string;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Date and time the unassignment becomes effective (ISO 8601 format, e.g.,
|
|
337
|
+
* 2025-11-07T17:00:00.000+00:00). When provided, schedules a future unassignment
|
|
338
|
+
* instead of deleting the job assignment immediately.
|
|
339
|
+
*/
|
|
340
|
+
effective_from?: string;
|
|
341
|
+
}
|
|
342
|
+
|
|
324
343
|
export interface JobAssignmentListChangeLogParams {
|
|
325
344
|
cursor?: string;
|
|
326
345
|
|
|
@@ -340,6 +359,7 @@ export declare namespace JobAssignments {
|
|
|
340
359
|
type JobAssignmentCreateParams as JobAssignmentCreateParams,
|
|
341
360
|
type JobAssignmentRetrieveParams as JobAssignmentRetrieveParams,
|
|
342
361
|
type JobAssignmentUpdateParams as JobAssignmentUpdateParams,
|
|
362
|
+
type JobAssignmentDeleteParams as JobAssignmentDeleteParams,
|
|
343
363
|
type JobAssignmentListChangeLogParams as JobAssignmentListChangeLogParams,
|
|
344
364
|
};
|
|
345
365
|
}
|