@rippling/rippling-sdk 0.2.0-alpha.56 → 0.2.0-alpha.58
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 +28 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -10
- package/client.d.ts.map +1 -1
- package/client.js +33 -7
- package/client.js.map +1 -1
- package/client.mjs +33 -7
- package/client.mjs.map +1 -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/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/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 +149 -0
- package/resources/employee-documents.d.mts.map +1 -0
- package/resources/employee-documents.d.ts +149 -0
- package/resources/employee-documents.d.ts.map +1 -0
- package/resources/employee-documents.js +18 -0
- package/resources/employee-documents.js.map +1 -0
- package/resources/employee-documents.mjs +14 -0
- package/resources/employee-documents.mjs.map +1 -0
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +32 -2
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +32 -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/resources/worker-change-fields.d.mts +45 -0
- package/resources/worker-change-fields.d.mts.map +1 -0
- package/resources/worker-change-fields.d.ts +45 -0
- package/resources/worker-change-fields.d.ts.map +1 -0
- package/resources/worker-change-fields.js +21 -0
- package/resources/worker-change-fields.js.map +1 -0
- package/resources/worker-change-fields.mjs +17 -0
- package/resources/worker-change-fields.mjs.map +1 -0
- package/resources/worker-changes.d.mts +267 -0
- package/resources/worker-changes.d.mts.map +1 -0
- package/resources/worker-changes.d.ts +267 -0
- package/resources/worker-changes.d.ts.map +1 -0
- package/resources/worker-changes.js +36 -0
- package/resources/worker-changes.js.map +1 -0
- package/resources/worker-changes.mjs +32 -0
- package/resources/worker-changes.mjs.map +1 -0
- package/resources/workflow-action-executions.d.mts +18 -3
- package/resources/workflow-action-executions.d.mts.map +1 -1
- package/resources/workflow-action-executions.d.ts +18 -3
- package/resources/workflow-action-executions.d.ts.map +1 -1
- package/src/client.ts +87 -17
- package/src/lib/manifest/field.ts +1 -3
- package/src/resources/break-policies.ts +126 -0
- package/src/resources/break-types.ts +129 -2
- package/src/resources/candidate-applications.ts +6 -1
- package/src/resources/employee-documents.ts +179 -0
- package/src/resources/index.ts +27 -5
- package/src/resources/job-assignments.ts +43 -1
- package/src/resources/scheduled-job-assignments.ts +13 -23
- package/src/resources/worker-change-fields.ts +64 -0
- package/src/resources/worker-changes.ts +354 -0
- package/src/resources/workflow-action-executions.ts +18 -3
- 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
|
@@ -11,13 +11,15 @@ export declare class BreakTypes extends APIResource {
|
|
|
11
11
|
* A list of break types.
|
|
12
12
|
*
|
|
13
13
|
* - Requires: `API Tier 2`
|
|
14
|
+
* - Filterable fields: `policy_id`
|
|
15
|
+
* - Expandable fields: `policy`
|
|
14
16
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
17
|
*/
|
|
16
18
|
list(query?: BreakTypeListParams | null | undefined, options?: RequestOptions): PagePromise<BreakTypeListResponsesPageCursorURL, BreakTypeListResponse>;
|
|
17
19
|
/**
|
|
18
20
|
* Retrieve a specific break type
|
|
19
21
|
*/
|
|
20
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<BreakTypeRetrieveResponse>;
|
|
22
|
+
retrieve(id: string, query?: BreakTypeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BreakTypeRetrieveResponse>;
|
|
21
23
|
}
|
|
22
24
|
export type BreakTypeListResponsesPageCursorURL = PageCursorURL<BreakTypeListResponse>;
|
|
23
25
|
export interface BreakTypeListResponse {
|
|
@@ -45,6 +47,54 @@ export interface BreakTypeListResponse {
|
|
|
45
47
|
* Whether this is a paid break (true) or unpaid (false).
|
|
46
48
|
*/
|
|
47
49
|
is_paid?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
52
|
+
* full policy object.
|
|
53
|
+
*
|
|
54
|
+
* Expandable field
|
|
55
|
+
*/
|
|
56
|
+
policy?: BreakTypeListResponse.Policy;
|
|
57
|
+
/**
|
|
58
|
+
* The ID of the break policy this break type belongs to.
|
|
59
|
+
*/
|
|
60
|
+
policy_id?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace BreakTypeListResponse {
|
|
63
|
+
/**
|
|
64
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
65
|
+
* full policy object.
|
|
66
|
+
*
|
|
67
|
+
* Expandable field
|
|
68
|
+
*/
|
|
69
|
+
interface Policy {
|
|
70
|
+
/**
|
|
71
|
+
* Identifier field
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
/**
|
|
75
|
+
* Record creation date
|
|
76
|
+
*/
|
|
77
|
+
created_at: string;
|
|
78
|
+
/**
|
|
79
|
+
* The display name of the break policy. For default policies this is the
|
|
80
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
81
|
+
* for custom policies this is the admin-provided description.
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* Record update date
|
|
86
|
+
*/
|
|
87
|
+
updated_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
90
|
+
*/
|
|
91
|
+
country_code?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
94
|
+
* by an admin (false).
|
|
95
|
+
*/
|
|
96
|
+
is_default?: boolean;
|
|
97
|
+
}
|
|
48
98
|
}
|
|
49
99
|
/**
|
|
50
100
|
* Meta information for the response.
|
|
@@ -74,12 +124,65 @@ export interface BreakTypeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
74
124
|
* Whether this is a paid break (true) or unpaid (false).
|
|
75
125
|
*/
|
|
76
126
|
is_paid?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
129
|
+
* full policy object.
|
|
130
|
+
*
|
|
131
|
+
* Expandable field
|
|
132
|
+
*/
|
|
133
|
+
policy?: BreakTypeRetrieveResponse.Policy;
|
|
134
|
+
/**
|
|
135
|
+
* The ID of the break policy this break type belongs to.
|
|
136
|
+
*/
|
|
137
|
+
policy_id?: string;
|
|
138
|
+
}
|
|
139
|
+
export declare namespace BreakTypeRetrieveResponse {
|
|
140
|
+
/**
|
|
141
|
+
* The break policy this break type belongs to. Use ?expand=policy to inline the
|
|
142
|
+
* full policy object.
|
|
143
|
+
*
|
|
144
|
+
* Expandable field
|
|
145
|
+
*/
|
|
146
|
+
interface Policy {
|
|
147
|
+
/**
|
|
148
|
+
* Identifier field
|
|
149
|
+
*/
|
|
150
|
+
id: string;
|
|
151
|
+
/**
|
|
152
|
+
* Record creation date
|
|
153
|
+
*/
|
|
154
|
+
created_at: string;
|
|
155
|
+
/**
|
|
156
|
+
* The display name of the break policy. For default policies this is the
|
|
157
|
+
* system-generated label (e.g. 'Default Break policy: All Workers | California');
|
|
158
|
+
* for custom policies this is the admin-provided description.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
/**
|
|
162
|
+
* Record update date
|
|
163
|
+
*/
|
|
164
|
+
updated_at: string;
|
|
165
|
+
/**
|
|
166
|
+
* ISO 3166-1 alpha-2 country code the policy applies to (e.g. 'US', 'CA', 'GB').
|
|
167
|
+
*/
|
|
168
|
+
country_code?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Whether this is a system-seeded default policy (true) or a custom policy created
|
|
171
|
+
* by an admin (false).
|
|
172
|
+
*/
|
|
173
|
+
is_default?: boolean;
|
|
174
|
+
}
|
|
77
175
|
}
|
|
78
176
|
export interface BreakTypeListParams {
|
|
79
177
|
cursor?: string;
|
|
178
|
+
expand?: string;
|
|
179
|
+
filter?: string;
|
|
80
180
|
order_by?: string;
|
|
81
181
|
}
|
|
182
|
+
export interface BreakTypeRetrieveParams {
|
|
183
|
+
expand?: string;
|
|
184
|
+
}
|
|
82
185
|
export declare namespace BreakTypes {
|
|
83
|
-
export { type BreakTypeListResponse as BreakTypeListResponse, type BreakTypeRetrieveResponse as BreakTypeRetrieveResponse, type BreakTypeListResponsesPageCursorURL as BreakTypeListResponsesPageCursorURL, type BreakTypeListParams as BreakTypeListParams, };
|
|
186
|
+
export { type BreakTypeListResponse as BreakTypeListResponse, type BreakTypeRetrieveResponse as BreakTypeRetrieveResponse, type BreakTypeListResponsesPageCursorURL as BreakTypeListResponsesPageCursorURL, type BreakTypeListParams as BreakTypeListParams, type BreakTypeRetrieveParams as BreakTypeRetrieveParams, };
|
|
84
187
|
}
|
|
85
188
|
//# sourceMappingURL=break-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"break-types.d.ts","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC
|
|
1
|
+
{"version":3,"file":"break-types.d.ts","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":"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"}
|
package/resources/break-types.js
CHANGED
|
@@ -13,6 +13,8 @@ class BreakTypes extends resource_1.APIResource {
|
|
|
13
13
|
* A list of break types.
|
|
14
14
|
*
|
|
15
15
|
* - Requires: `API Tier 2`
|
|
16
|
+
* - Filterable fields: `policy_id`
|
|
17
|
+
* - Expandable fields: `policy`
|
|
16
18
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
19
|
*/
|
|
18
20
|
list(query = {}, options) {
|
|
@@ -24,8 +26,8 @@ class BreakTypes extends resource_1.APIResource {
|
|
|
24
26
|
/**
|
|
25
27
|
* Retrieve a specific break type
|
|
26
28
|
*/
|
|
27
|
-
retrieve(id, options) {
|
|
28
|
-
return this._client.get((0, path_1.path) `/break-types/${id}/`, options);
|
|
29
|
+
retrieve(id, query = {}, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/break-types/${id}/`, { query, ...options });
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
exports.BreakTypes = BreakTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"break-types.js","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC
|
|
1
|
+
{"version":3,"file":"break-types.js","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;OAOG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,0BAAoC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA7BD,gCA6BC"}
|
|
@@ -10,6 +10,8 @@ export class BreakTypes extends APIResource {
|
|
|
10
10
|
* A list of break types.
|
|
11
11
|
*
|
|
12
12
|
* - Requires: `API Tier 2`
|
|
13
|
+
* - Filterable fields: `policy_id`
|
|
14
|
+
* - Expandable fields: `policy`
|
|
13
15
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
14
16
|
*/
|
|
15
17
|
list(query = {}, options) {
|
|
@@ -21,8 +23,8 @@ export class BreakTypes extends APIResource {
|
|
|
21
23
|
/**
|
|
22
24
|
* Retrieve a specific break type
|
|
23
25
|
*/
|
|
24
|
-
retrieve(id, options) {
|
|
25
|
-
return this._client.get(path `/break-types/${id}/`, options);
|
|
26
|
+
retrieve(id, query = {}, options) {
|
|
27
|
+
return this._client.get(path `/break-types/${id}/`, { query, ...options });
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
//# sourceMappingURL=break-types.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"break-types.mjs","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC
|
|
1
|
+
{"version":3,"file":"break-types.mjs","sourceRoot":"","sources":["../src/resources/break-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;OAOG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,aAAoC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -13,7 +13,7 @@ export declare class CandidateApplications extends APIResource {
|
|
|
13
13
|
* - Expandable fields: `job`
|
|
14
14
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
15
|
*/
|
|
16
|
-
list(query
|
|
16
|
+
list(query: CandidateApplicationListParams, options?: RequestOptions): PagePromise<CandidateApplicationListResponsesPageCursorURL, CandidateApplicationListResponse>;
|
|
17
17
|
}
|
|
18
18
|
export type CandidateApplicationListResponsesPageCursorURL = PageCursorURL<CandidateApplicationListResponse>;
|
|
19
19
|
export interface CandidateApplicationListResponse {
|
|
@@ -57,6 +57,10 @@ export interface CandidateApplicationListResponse {
|
|
|
57
57
|
url?: string;
|
|
58
58
|
}
|
|
59
59
|
export interface CandidateApplicationListParams {
|
|
60
|
+
/**
|
|
61
|
+
* The unique identifier of the candidate whose applications to list.
|
|
62
|
+
*/
|
|
63
|
+
candidate_id: string;
|
|
60
64
|
cursor?: string;
|
|
61
65
|
expand?: string;
|
|
62
66
|
order_by?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidate-applications.d.mts","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,
|
|
1
|
+
{"version":3,"file":"candidate-applications.d.mts","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,8BAA8B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,gCAAgC,CAAC;CAOjG;AAED,MAAM,MAAM,8CAA8C,GAAG,aAAa,CAAC,gCAAgC,CAAC,CAAC;AAE7G,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;IAEtD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -13,7 +13,7 @@ export declare class CandidateApplications extends APIResource {
|
|
|
13
13
|
* - Expandable fields: `job`
|
|
14
14
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
15
|
*/
|
|
16
|
-
list(query
|
|
16
|
+
list(query: CandidateApplicationListParams, options?: RequestOptions): PagePromise<CandidateApplicationListResponsesPageCursorURL, CandidateApplicationListResponse>;
|
|
17
17
|
}
|
|
18
18
|
export type CandidateApplicationListResponsesPageCursorURL = PageCursorURL<CandidateApplicationListResponse>;
|
|
19
19
|
export interface CandidateApplicationListResponse {
|
|
@@ -57,6 +57,10 @@ export interface CandidateApplicationListResponse {
|
|
|
57
57
|
url?: string;
|
|
58
58
|
}
|
|
59
59
|
export interface CandidateApplicationListParams {
|
|
60
|
+
/**
|
|
61
|
+
* The unique identifier of the candidate whose applications to list.
|
|
62
|
+
*/
|
|
63
|
+
candidate_id: string;
|
|
60
64
|
cursor?: string;
|
|
61
65
|
expand?: string;
|
|
62
66
|
order_by?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidate-applications.d.ts","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,
|
|
1
|
+
{"version":3,"file":"candidate-applications.d.ts","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,8BAA8B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,gCAAgC,CAAC;CAOjG;AAED,MAAM,MAAM,8CAA8C,GAAG,aAAa,CAAC,gCAAgC,CAAC,CAAC;AAE7G,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;IAEtD;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -15,7 +15,7 @@ class CandidateApplications extends resource_1.APIResource {
|
|
|
15
15
|
* - Expandable fields: `job`
|
|
16
16
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
17
|
*/
|
|
18
|
-
list(query
|
|
18
|
+
list(query, options) {
|
|
19
19
|
return this._client.getAPIList('/candidate-applications/', (pagination_1.PageCursorURL), { query, ...options });
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidate-applications.js","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgE;AAGhE;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"candidate-applications.js","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgE;AAGhE;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,0BAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlBD,sDAkBC"}
|
|
@@ -12,7 +12,7 @@ export class CandidateApplications extends APIResource {
|
|
|
12
12
|
* - Expandable fields: `job`
|
|
13
13
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
14
14
|
*/
|
|
15
|
-
list(query
|
|
15
|
+
list(query, options) {
|
|
16
16
|
return this._client.getAPIList('/candidate-applications/', (PageCursorURL), { query, ...options });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"candidate-applications.mjs","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAGhE;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,
|
|
1
|
+
{"version":3,"file":"candidate-applications.mjs","sourceRoot":"","sources":["../src/resources/candidate-applications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAGhE;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CACF,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,aAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Documents attached to existing employees
|
|
6
|
+
*/
|
|
7
|
+
export declare class EmployeeDocuments extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new employee document
|
|
10
|
+
*/
|
|
11
|
+
create(body: EmployeeDocumentCreateParams, options?: RequestOptions): APIPromise<EmployeeDocumentCreateResponse>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Top-level request body for `POST /employee-documents/`.
|
|
15
|
+
*/
|
|
16
|
+
export interface EmployeeDocumentCreateResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Identifier field
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Record creation date
|
|
23
|
+
*/
|
|
24
|
+
created_at: string;
|
|
25
|
+
/**
|
|
26
|
+
* List of role/document items to process. No limit on number of items; total
|
|
27
|
+
* documents across all items must not exceed 250.
|
|
28
|
+
*/
|
|
29
|
+
items: Array<EmployeeDocumentCreateResponse.Item>;
|
|
30
|
+
/**
|
|
31
|
+
* Record update date
|
|
32
|
+
*/
|
|
33
|
+
updated_at: string;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace EmployeeDocumentCreateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* A single item: attach `documents` to the worker identified by `worker_id`.
|
|
38
|
+
*/
|
|
39
|
+
interface Item {
|
|
40
|
+
/**
|
|
41
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
42
|
+
* FileUploadTracker by file_id.
|
|
43
|
+
*/
|
|
44
|
+
documents: Array<Item.Document>;
|
|
45
|
+
/**
|
|
46
|
+
* Id of the worker to attach documents to.
|
|
47
|
+
*/
|
|
48
|
+
worker_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Optional ObjectId of the destination sub-folder on the worker's documents
|
|
51
|
+
* profile. When omitted, documents land at the root of the worker's profile
|
|
52
|
+
* (current default behavior). When supplied, the folder must exist, be in an
|
|
53
|
+
* active state, be provisioned for the target worker, and the caller must have
|
|
54
|
+
* UPLOAD permission on it — otherwise behavior is governed by `on_invalid_folder`.
|
|
55
|
+
*/
|
|
56
|
+
folder_id?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
59
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
60
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
61
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
62
|
+
* omitted.
|
|
63
|
+
*/
|
|
64
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
65
|
+
}
|
|
66
|
+
namespace Item {
|
|
67
|
+
/**
|
|
68
|
+
* A document to attach to a draft hire, referencing a pre-uploaded file.
|
|
69
|
+
*/
|
|
70
|
+
interface Document {
|
|
71
|
+
/**
|
|
72
|
+
* Id of a FileUploadTracker in ACTIVE status whose file should become a document
|
|
73
|
+
* on the hire
|
|
74
|
+
*/
|
|
75
|
+
file_id: string;
|
|
76
|
+
/**
|
|
77
|
+
* Document name. Defaults to the uploaded file name when omitted.
|
|
78
|
+
*/
|
|
79
|
+
name?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Signature date in YYYY-MM-DD format.
|
|
82
|
+
*/
|
|
83
|
+
signature_date?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export interface EmployeeDocumentCreateParams {
|
|
88
|
+
/**
|
|
89
|
+
* List of role/document items to process. No limit on number of items; total
|
|
90
|
+
* documents across all items must not exceed 250.
|
|
91
|
+
*/
|
|
92
|
+
items: Array<EmployeeDocumentCreateParams.Item>;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace EmployeeDocumentCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* A single item: attach `documents` to the worker identified by `worker_id`.
|
|
97
|
+
*/
|
|
98
|
+
interface Item {
|
|
99
|
+
/**
|
|
100
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
101
|
+
* FileUploadTracker by file_id.
|
|
102
|
+
*/
|
|
103
|
+
documents: Array<Item.Document>;
|
|
104
|
+
/**
|
|
105
|
+
* Id of the worker to attach documents to.
|
|
106
|
+
*/
|
|
107
|
+
worker_id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional ObjectId of the destination sub-folder on the worker's documents
|
|
110
|
+
* profile. When omitted, documents land at the root of the worker's profile
|
|
111
|
+
* (current default behavior). When supplied, the folder must exist, be in an
|
|
112
|
+
* active state, be provisioned for the target worker, and the caller must have
|
|
113
|
+
* UPLOAD permission on it — otherwise behavior is governed by `on_invalid_folder`.
|
|
114
|
+
*/
|
|
115
|
+
folder_id?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
118
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
119
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
120
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
121
|
+
* omitted.
|
|
122
|
+
*/
|
|
123
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
124
|
+
}
|
|
125
|
+
namespace Item {
|
|
126
|
+
/**
|
|
127
|
+
* A document to attach to a draft hire, referencing a pre-uploaded file.
|
|
128
|
+
*/
|
|
129
|
+
interface Document {
|
|
130
|
+
/**
|
|
131
|
+
* Id of a FileUploadTracker in ACTIVE status whose file should become a document
|
|
132
|
+
* on the hire
|
|
133
|
+
*/
|
|
134
|
+
file_id: string;
|
|
135
|
+
/**
|
|
136
|
+
* Document name. Defaults to the uploaded file name when omitted.
|
|
137
|
+
*/
|
|
138
|
+
name?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Signature date in YYYY-MM-DD format.
|
|
141
|
+
*/
|
|
142
|
+
signature_date?: string;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare namespace EmployeeDocuments {
|
|
147
|
+
export { type EmployeeDocumentCreateResponse as EmployeeDocumentCreateResponse, type EmployeeDocumentCreateParams as EmployeeDocumentCreateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=employee-documents.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-documents.d.mts","sourceRoot":"","sources":["../src/resources/employee-documents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAElD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;OAEG;IACH,UAAiB,IAAI;QACnB;;;WAGG;QACH,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;WAMG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;KACjD;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;;WAGG;QACH,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;WAMG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;KACjD;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Documents attached to existing employees
|
|
6
|
+
*/
|
|
7
|
+
export declare class EmployeeDocuments extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new employee document
|
|
10
|
+
*/
|
|
11
|
+
create(body: EmployeeDocumentCreateParams, options?: RequestOptions): APIPromise<EmployeeDocumentCreateResponse>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Top-level request body for `POST /employee-documents/`.
|
|
15
|
+
*/
|
|
16
|
+
export interface EmployeeDocumentCreateResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Identifier field
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Record creation date
|
|
23
|
+
*/
|
|
24
|
+
created_at: string;
|
|
25
|
+
/**
|
|
26
|
+
* List of role/document items to process. No limit on number of items; total
|
|
27
|
+
* documents across all items must not exceed 250.
|
|
28
|
+
*/
|
|
29
|
+
items: Array<EmployeeDocumentCreateResponse.Item>;
|
|
30
|
+
/**
|
|
31
|
+
* Record update date
|
|
32
|
+
*/
|
|
33
|
+
updated_at: string;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace EmployeeDocumentCreateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* A single item: attach `documents` to the worker identified by `worker_id`.
|
|
38
|
+
*/
|
|
39
|
+
interface Item {
|
|
40
|
+
/**
|
|
41
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
42
|
+
* FileUploadTracker by file_id.
|
|
43
|
+
*/
|
|
44
|
+
documents: Array<Item.Document>;
|
|
45
|
+
/**
|
|
46
|
+
* Id of the worker to attach documents to.
|
|
47
|
+
*/
|
|
48
|
+
worker_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Optional ObjectId of the destination sub-folder on the worker's documents
|
|
51
|
+
* profile. When omitted, documents land at the root of the worker's profile
|
|
52
|
+
* (current default behavior). When supplied, the folder must exist, be in an
|
|
53
|
+
* active state, be provisioned for the target worker, and the caller must have
|
|
54
|
+
* UPLOAD permission on it — otherwise behavior is governed by `on_invalid_folder`.
|
|
55
|
+
*/
|
|
56
|
+
folder_id?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
59
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
60
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
61
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
62
|
+
* omitted.
|
|
63
|
+
*/
|
|
64
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
65
|
+
}
|
|
66
|
+
namespace Item {
|
|
67
|
+
/**
|
|
68
|
+
* A document to attach to a draft hire, referencing a pre-uploaded file.
|
|
69
|
+
*/
|
|
70
|
+
interface Document {
|
|
71
|
+
/**
|
|
72
|
+
* Id of a FileUploadTracker in ACTIVE status whose file should become a document
|
|
73
|
+
* on the hire
|
|
74
|
+
*/
|
|
75
|
+
file_id: string;
|
|
76
|
+
/**
|
|
77
|
+
* Document name. Defaults to the uploaded file name when omitted.
|
|
78
|
+
*/
|
|
79
|
+
name?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Signature date in YYYY-MM-DD format.
|
|
82
|
+
*/
|
|
83
|
+
signature_date?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export interface EmployeeDocumentCreateParams {
|
|
88
|
+
/**
|
|
89
|
+
* List of role/document items to process. No limit on number of items; total
|
|
90
|
+
* documents across all items must not exceed 250.
|
|
91
|
+
*/
|
|
92
|
+
items: Array<EmployeeDocumentCreateParams.Item>;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace EmployeeDocumentCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* A single item: attach `documents` to the worker identified by `worker_id`.
|
|
97
|
+
*/
|
|
98
|
+
interface Item {
|
|
99
|
+
/**
|
|
100
|
+
* Documents to attach to the role. At least one required. Each entry references a
|
|
101
|
+
* FileUploadTracker by file_id.
|
|
102
|
+
*/
|
|
103
|
+
documents: Array<Item.Document>;
|
|
104
|
+
/**
|
|
105
|
+
* Id of the worker to attach documents to.
|
|
106
|
+
*/
|
|
107
|
+
worker_id: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional ObjectId of the destination sub-folder on the worker's documents
|
|
110
|
+
* profile. When omitted, documents land at the root of the worker's profile
|
|
111
|
+
* (current default behavior). When supplied, the folder must exist, be in an
|
|
112
|
+
* active state, be provisioned for the target worker, and the caller must have
|
|
113
|
+
* UPLOAD permission on it — otherwise behavior is governed by `on_invalid_folder`.
|
|
114
|
+
*/
|
|
115
|
+
folder_id?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Fallback behavior when `folder_id` is supplied but inaccessible. 'fail'
|
|
118
|
+
* (default) rejects each affected document with FOLDER_ACCESS_ERROR.
|
|
119
|
+
* 'fallback_to_root' uploads to the worker's root profile instead and attaches a
|
|
120
|
+
* FOLDER_ACCESS_FALLBACK warning to each result. Ignored when `folder_id` is
|
|
121
|
+
* omitted.
|
|
122
|
+
*/
|
|
123
|
+
on_invalid_folder?: 'fail' | 'fallback_to_root';
|
|
124
|
+
}
|
|
125
|
+
namespace Item {
|
|
126
|
+
/**
|
|
127
|
+
* A document to attach to a draft hire, referencing a pre-uploaded file.
|
|
128
|
+
*/
|
|
129
|
+
interface Document {
|
|
130
|
+
/**
|
|
131
|
+
* Id of a FileUploadTracker in ACTIVE status whose file should become a document
|
|
132
|
+
* on the hire
|
|
133
|
+
*/
|
|
134
|
+
file_id: string;
|
|
135
|
+
/**
|
|
136
|
+
* Document name. Defaults to the uploaded file name when omitted.
|
|
137
|
+
*/
|
|
138
|
+
name?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Signature date in YYYY-MM-DD format.
|
|
141
|
+
*/
|
|
142
|
+
signature_date?: string;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare namespace EmployeeDocuments {
|
|
147
|
+
export { type EmployeeDocumentCreateResponse as EmployeeDocumentCreateResponse, type EmployeeDocumentCreateParams as EmployeeDocumentCreateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=employee-documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-documents.d.ts","sourceRoot":"","sources":["../src/resources/employee-documents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAG9C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAElD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;OAEG;IACH,UAAiB,IAAI;QACnB;;;WAGG;QACH,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;WAMG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;KACjD;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;;WAGG;QACH,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEhC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;WAMG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;KACjD;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;eAGG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.EmployeeDocuments = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Documents attached to existing employees
|
|
8
|
+
*/
|
|
9
|
+
class EmployeeDocuments extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new employee document
|
|
12
|
+
*/
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return this._client.post('/employee-documents/', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.EmployeeDocuments = EmployeeDocuments;
|
|
18
|
+
//# sourceMappingURL=employee-documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-documents.js","sourceRoot":"","sources":["../src/resources/employee-documents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;OAEG;IACH,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAVD,8CAUC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Documents attached to existing employees
|
|
5
|
+
*/
|
|
6
|
+
export class EmployeeDocuments extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new employee document
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/employee-documents/', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=employee-documents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-documents.mjs","sourceRoot":"","sources":["../src/resources/employee-documents.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;OAEG;IACH,MAAM,CACJ,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
|