@rippling/rippling-sdk 0.2.0-alpha.32 → 0.2.0-alpha.34
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 +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +17 -0
- package/client.js.map +1 -1
- package/client.mjs +17 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/lib/manifest/_helpers.d.mts +91 -0
- package/lib/manifest/_helpers.d.mts.map +1 -0
- package/lib/manifest/_helpers.d.ts +91 -0
- package/lib/manifest/_helpers.d.ts.map +1 -0
- package/lib/manifest/_helpers.js +65 -0
- package/lib/manifest/_helpers.js.map +1 -0
- package/lib/manifest/_helpers.mjs +61 -0
- package/lib/manifest/_helpers.mjs.map +1 -0
- package/lib/manifest/app.d.mts +45 -0
- package/lib/manifest/app.d.mts.map +1 -0
- package/lib/manifest/app.d.ts +45 -0
- package/lib/manifest/app.d.ts.map +1 -0
- package/lib/manifest/app.js +74 -0
- package/lib/manifest/app.js.map +1 -0
- package/lib/manifest/app.mjs +70 -0
- package/lib/manifest/app.mjs.map +1 -0
- package/lib/manifest/category.d.mts +23 -0
- package/lib/manifest/category.d.mts.map +1 -0
- package/lib/manifest/category.d.ts +23 -0
- package/lib/manifest/category.d.ts.map +1 -0
- package/lib/manifest/category.js +37 -0
- package/lib/manifest/category.js.map +1 -0
- package/lib/manifest/category.mjs +33 -0
- package/lib/manifest/category.mjs.map +1 -0
- package/lib/manifest/custom-object-field-section.d.mts +21 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -0
- package/lib/manifest/custom-object-field-section.d.ts +21 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -0
- package/lib/manifest/custom-object-field-section.js +42 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -0
- package/lib/manifest/custom-object-field-section.mjs +38 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.mts +158 -0
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.ts +158 -0
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -0
- package/lib/manifest/custom-object-page-layout.js +112 -0
- package/lib/manifest/custom-object-page-layout.js.map +1 -0
- package/lib/manifest/custom-object-page-layout.mjs +108 -0
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -0
- package/lib/manifest/custom-object.d.mts +52 -0
- package/lib/manifest/custom-object.d.mts.map +1 -0
- package/lib/manifest/custom-object.d.ts +52 -0
- package/lib/manifest/custom-object.d.ts.map +1 -0
- package/lib/manifest/custom-object.js +219 -0
- package/lib/manifest/custom-object.js.map +1 -0
- package/lib/manifest/custom-object.mjs +215 -0
- package/lib/manifest/custom-object.mjs.map +1 -0
- package/lib/manifest/field.d.mts +276 -0
- package/lib/manifest/field.d.mts.map +1 -0
- package/lib/manifest/field.d.ts +276 -0
- package/lib/manifest/field.d.ts.map +1 -0
- package/lib/manifest/field.js +418 -0
- package/lib/manifest/field.js.map +1 -0
- package/lib/manifest/field.mjs +395 -0
- package/lib/manifest/field.mjs.map +1 -0
- package/lib/manifest/index.d.mts +15 -0
- package/lib/manifest/index.d.mts.map +1 -0
- package/lib/manifest/index.d.ts +15 -0
- package/lib/manifest/index.d.ts.map +1 -0
- package/lib/manifest/index.js +53 -0
- package/lib/manifest/index.js.map +1 -0
- package/lib/manifest/index.mjs +18 -0
- package/lib/manifest/index.mjs.map +1 -0
- package/lib/manifest/list-view.d.mts +47 -0
- package/lib/manifest/list-view.d.mts.map +1 -0
- package/lib/manifest/list-view.d.ts +47 -0
- package/lib/manifest/list-view.d.ts.map +1 -0
- package/lib/manifest/list-view.js +73 -0
- package/lib/manifest/list-view.js.map +1 -0
- package/lib/manifest/list-view.mjs +69 -0
- package/lib/manifest/list-view.mjs.map +1 -0
- package/lib/manifest/manifest-builder.d.mts +44 -0
- package/lib/manifest/manifest-builder.d.mts.map +1 -0
- package/lib/manifest/manifest-builder.d.ts +44 -0
- package/lib/manifest/manifest-builder.d.ts.map +1 -0
- package/lib/manifest/manifest-builder.js +69 -0
- package/lib/manifest/manifest-builder.js.map +1 -0
- package/lib/manifest/manifest-builder.mjs +65 -0
- package/lib/manifest/manifest-builder.mjs.map +1 -0
- package/lib/manifest/manifest-function.d.mts +39 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -0
- package/lib/manifest/manifest-function.d.ts +39 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -0
- package/lib/manifest/manifest-function.js +56 -0
- package/lib/manifest/manifest-function.js.map +1 -0
- package/lib/manifest/manifest-function.mjs +52 -0
- package/lib/manifest/manifest-function.mjs.map +1 -0
- package/lib/manifest/rule.d.mts +50 -0
- package/lib/manifest/rule.d.mts.map +1 -0
- package/lib/manifest/rule.d.ts +50 -0
- package/lib/manifest/rule.d.ts.map +1 -0
- package/lib/manifest/rule.js +84 -0
- package/lib/manifest/rule.js.map +1 -0
- package/lib/manifest/rule.mjs +80 -0
- package/lib/manifest/rule.mjs.map +1 -0
- package/lib/manifest/sdui-page.d.mts +33 -0
- package/lib/manifest/sdui-page.d.mts.map +1 -0
- package/lib/manifest/sdui-page.d.ts +33 -0
- package/lib/manifest/sdui-page.d.ts.map +1 -0
- package/lib/manifest/sdui-page.js +52 -0
- package/lib/manifest/sdui-page.js.map +1 -0
- package/lib/manifest/sdui-page.mjs +48 -0
- package/lib/manifest/sdui-page.mjs.map +1 -0
- package/lib/manifest/validation.d.mts +41 -0
- package/lib/manifest/validation.d.mts.map +1 -0
- package/lib/manifest/validation.d.ts +41 -0
- package/lib/manifest/validation.d.ts.map +1 -0
- package/lib/manifest/validation.js +57 -0
- package/lib/manifest/validation.js.map +1 -0
- package/lib/manifest/validation.mjs +53 -0
- package/lib/manifest/validation.mjs.map +1 -0
- package/package.json +11 -1
- package/resources/draft-hires.d.mts +22 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +22 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/earnings-inputs.d.mts +104 -1
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +104 -1
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +17 -0
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +17 -0
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/files.d.mts +149 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +149 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +25 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +21 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/object-categories.d.mts +1 -1
- package/resources/object-categories.d.ts +1 -1
- package/resources/object-categories.js +1 -1
- package/resources/object-categories.mjs +1 -1
- package/resources/report-runs.d.mts +11 -11
- package/resources/report-runs.d.ts +11 -11
- package/resources/workflow-action-executions.d.mts +17 -2
- package/resources/workflow-action-executions.d.mts.map +1 -1
- package/resources/workflow-action-executions.d.ts +17 -2
- package/resources/workflow-action-executions.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/internal/types.ts +6 -8
- package/src/lib/manifest/_helpers.ts +164 -0
- package/src/lib/manifest/app.ts +108 -0
- package/src/lib/manifest/category.ts +51 -0
- package/src/lib/manifest/custom-object-field-section.ts +54 -0
- package/src/lib/manifest/custom-object-page-layout.ts +292 -0
- package/src/lib/manifest/custom-object.ts +269 -0
- package/src/lib/manifest/field.ts +632 -0
- package/src/lib/manifest/index.ts +114 -0
- package/src/lib/manifest/list-view.ts +103 -0
- package/src/lib/manifest/manifest-builder.ts +97 -0
- package/src/lib/manifest/manifest-function.ts +81 -0
- package/src/lib/manifest/rule.ts +125 -0
- package/src/lib/manifest/sdui-page.ts +72 -0
- package/src/lib/manifest/validation.ts +87 -0
- package/src/resources/draft-hires.ts +26 -0
- package/src/resources/earnings-inputs.ts +140 -0
- package/src/resources/files.ts +186 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/object-categories.ts +1 -1
- package/src/resources/report-runs.ts +32 -32
- package/src/resources/workflow-action-executions.ts +22 -1
- 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
|
@@ -118,6 +118,11 @@ export namespace DraftHireCreateParams {
|
|
|
118
118
|
* Custom fields for the draft hire
|
|
119
119
|
*/
|
|
120
120
|
custom_fields?: Array<DraftHire.CustomField>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Documents to attach to this draft hire
|
|
124
|
+
*/
|
|
125
|
+
documents?: Array<DraftHire.Document>;
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
export namespace DraftHire {
|
|
@@ -538,6 +543,27 @@ export namespace DraftHireCreateParams {
|
|
|
538
543
|
*/
|
|
539
544
|
field_value: unknown;
|
|
540
545
|
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* A document to attach to a draft hire, referencing a pre-uploaded file.
|
|
549
|
+
*/
|
|
550
|
+
export interface Document {
|
|
551
|
+
/**
|
|
552
|
+
* Id of a FileUploadTracker in ACTIVE status whose file should become a document
|
|
553
|
+
* on the hire
|
|
554
|
+
*/
|
|
555
|
+
file_id: string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Document name. Defaults to the uploaded file name when omitted.
|
|
559
|
+
*/
|
|
560
|
+
name?: string;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Signature date in YYYY-MM-DD format.
|
|
564
|
+
*/
|
|
565
|
+
signature_date?: string;
|
|
566
|
+
}
|
|
541
567
|
}
|
|
542
568
|
}
|
|
543
569
|
|
|
@@ -1,8 +1,11 @@
|
|
|
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 { APIPromise } from '../core/api-promise';
|
|
4
5
|
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../internal/headers';
|
|
5
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* External earnings inputs for the company
|
|
@@ -18,6 +21,26 @@ export class EarningsInputs extends APIResource {
|
|
|
18
21
|
): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse> {
|
|
19
22
|
return this._client.getAPIList('/earnings-inputs/', PageCursorURL<EarningsInputListResponse>, options);
|
|
20
23
|
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Create a new earnings-input
|
|
27
|
+
*/
|
|
28
|
+
create(
|
|
29
|
+
body: EarningsInputCreateParams | null | undefined = {},
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<EarningsInputCreateResponse> {
|
|
32
|
+
return this._client.post('/earnings-inputs/', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Delete a earnings-input
|
|
37
|
+
*/
|
|
38
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
39
|
+
return this._client.delete(path`/earnings-inputs/${id}/`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
21
44
|
}
|
|
22
45
|
|
|
23
46
|
export type EarningsInputListResponsesPageCursorURL = PageCursorURL<EarningsInputListResponse>;
|
|
@@ -85,9 +108,126 @@ export interface EarningsInputListResponse {
|
|
|
85
108
|
worker_id?: string;
|
|
86
109
|
}
|
|
87
110
|
|
|
111
|
+
/**
|
|
112
|
+
* V2 DTO representing an external earnings input record.
|
|
113
|
+
*
|
|
114
|
+
* Used by:
|
|
115
|
+
* - GET /earnings-inputs/ (list)
|
|
116
|
+
*/
|
|
117
|
+
export interface EarningsInputCreateResponse {
|
|
118
|
+
/**
|
|
119
|
+
* Unique identifier for the earnings input.
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Earning amount as a string-encoded decimal.
|
|
125
|
+
*/
|
|
126
|
+
amount?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
130
|
+
*/
|
|
131
|
+
assignment_type?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
135
|
+
*/
|
|
136
|
+
earning_code?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* External reference identifier for this earning.
|
|
140
|
+
*/
|
|
141
|
+
external_id?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
145
|
+
*/
|
|
146
|
+
hours?: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The pay period basis date for this earning.
|
|
150
|
+
*/
|
|
151
|
+
pay_period_basis_date?: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
155
|
+
*/
|
|
156
|
+
run_id?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
160
|
+
*/
|
|
161
|
+
status?: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Time tracking labels associated with this earning.
|
|
165
|
+
*/
|
|
166
|
+
time_labels?: Array<string>;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Identifier of the worker (role ID).
|
|
170
|
+
*/
|
|
171
|
+
worker_id?: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface EarningsInputCreateParams {
|
|
175
|
+
/**
|
|
176
|
+
* Earning amount as a string-encoded decimal.
|
|
177
|
+
*/
|
|
178
|
+
amount?: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
182
|
+
*/
|
|
183
|
+
assignment_type?: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
187
|
+
*/
|
|
188
|
+
earning_code?: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* External reference identifier for this earning.
|
|
192
|
+
*/
|
|
193
|
+
external_id?: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
197
|
+
*/
|
|
198
|
+
hours?: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The pay period basis date for this earning.
|
|
202
|
+
*/
|
|
203
|
+
pay_period_basis_date?: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
207
|
+
*/
|
|
208
|
+
run_id?: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
212
|
+
*/
|
|
213
|
+
status?: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Time tracking labels associated with this earning.
|
|
217
|
+
*/
|
|
218
|
+
time_labels?: Array<string>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Identifier of the worker (role ID).
|
|
222
|
+
*/
|
|
223
|
+
worker_id?: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
88
226
|
export declare namespace EarningsInputs {
|
|
89
227
|
export {
|
|
90
228
|
type EarningsInputListResponse as EarningsInputListResponse,
|
|
229
|
+
type EarningsInputCreateResponse as EarningsInputCreateResponse,
|
|
91
230
|
type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL,
|
|
231
|
+
type EarningsInputCreateParams as EarningsInputCreateParams,
|
|
92
232
|
};
|
|
93
233
|
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Generate presigned URLs to upload files to Rippling storage
|
|
11
|
+
*/
|
|
12
|
+
export class Files extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve a specific file
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<FileRetrieveResponse> {
|
|
17
|
+
return this._client.get(path`/files/${id}/`, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create a new file
|
|
22
|
+
*/
|
|
23
|
+
create(body: FileCreateParams, options?: RequestOptions): APIPromise<FileCreateResponse> {
|
|
24
|
+
return this._client.post('/files/', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Meta information for the response.
|
|
30
|
+
*/
|
|
31
|
+
export interface FileRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
32
|
+
/**
|
|
33
|
+
* Opaque identifier for this file
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
39
|
+
*/
|
|
40
|
+
status: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* MIME type supplied by the client at create time
|
|
44
|
+
*/
|
|
45
|
+
content_type?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Human-readable label for the file
|
|
49
|
+
*/
|
|
50
|
+
display_name?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
54
|
+
* binary
|
|
55
|
+
*/
|
|
56
|
+
upload_fields?: unknown;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
60
|
+
* in the create response.
|
|
61
|
+
*/
|
|
62
|
+
upload_url?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
66
|
+
*/
|
|
67
|
+
url_data?: FileRetrieveResponse.URLData;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export namespace FileRetrieveResponse {
|
|
71
|
+
/**
|
|
72
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
73
|
+
*/
|
|
74
|
+
export interface URLData {
|
|
75
|
+
/**
|
|
76
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
77
|
+
*/
|
|
78
|
+
preview_url?: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* S3 URL where the file is accessible after upload
|
|
82
|
+
*/
|
|
83
|
+
s3_url?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Response DTO for `POST /files/` and `GET /files/{id}`.
|
|
89
|
+
*/
|
|
90
|
+
export interface FileCreateResponse {
|
|
91
|
+
/**
|
|
92
|
+
* Opaque identifier for this file
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
98
|
+
*/
|
|
99
|
+
status: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* MIME type supplied by the client at create time
|
|
103
|
+
*/
|
|
104
|
+
content_type?: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Human-readable label for the file
|
|
108
|
+
*/
|
|
109
|
+
display_name?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
113
|
+
* binary
|
|
114
|
+
*/
|
|
115
|
+
upload_fields?: unknown;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
119
|
+
* in the create response.
|
|
120
|
+
*/
|
|
121
|
+
upload_url?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
125
|
+
*/
|
|
126
|
+
url_data?: FileCreateResponse.URLData;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace FileCreateResponse {
|
|
130
|
+
/**
|
|
131
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
132
|
+
*/
|
|
133
|
+
export interface URLData {
|
|
134
|
+
/**
|
|
135
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
136
|
+
*/
|
|
137
|
+
preview_url?: string;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* S3 URL where the file is accessible after upload
|
|
141
|
+
*/
|
|
142
|
+
s3_url?: string;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface FileCreateParams {
|
|
147
|
+
/**
|
|
148
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
149
|
+
*/
|
|
150
|
+
status: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* MIME type supplied by the client at create time
|
|
154
|
+
*/
|
|
155
|
+
content_type?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Human-readable label for the file
|
|
159
|
+
*/
|
|
160
|
+
display_name?: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
164
|
+
* binary
|
|
165
|
+
*/
|
|
166
|
+
upload_fields?: unknown;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
170
|
+
* in the create response.
|
|
171
|
+
*/
|
|
172
|
+
upload_url?: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
176
|
+
*/
|
|
177
|
+
url_data?: unknown;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export declare namespace Files {
|
|
181
|
+
export {
|
|
182
|
+
type FileRetrieveResponse as FileRetrieveResponse,
|
|
183
|
+
type FileCreateResponse as FileCreateResponse,
|
|
184
|
+
type FileCreateParams as FileCreateParams,
|
|
185
|
+
};
|
|
186
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -112,6 +112,8 @@ export {
|
|
|
112
112
|
export {
|
|
113
113
|
EarningsInputs,
|
|
114
114
|
type EarningsInputListResponse,
|
|
115
|
+
type EarningsInputCreateResponse,
|
|
116
|
+
type EarningsInputCreateParams,
|
|
115
117
|
type EarningsInputListResponsesPageCursorURL,
|
|
116
118
|
} from './earnings-inputs';
|
|
117
119
|
export {
|
|
@@ -126,6 +128,7 @@ export {
|
|
|
126
128
|
type EntitlementListResponse,
|
|
127
129
|
type EntitlementListResponsesPageCursorURL,
|
|
128
130
|
} from './entitlements';
|
|
131
|
+
export { Files, type FileRetrieveResponse, type FileCreateResponse, type FileCreateParams } from './files';
|
|
129
132
|
export {
|
|
130
133
|
Functions,
|
|
131
134
|
type Function,
|
|
@@ -49,7 +49,7 @@ export class ObjectCategories extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Delete
|
|
52
|
+
* Delete an object category.
|
|
53
53
|
*/
|
|
54
54
|
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
55
55
|
return this._client.delete(path`/object-categories/${id}/`, {
|
|
@@ -172,44 +172,44 @@ export namespace ReportRunCreateParams {
|
|
|
172
172
|
field_id: string;
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
|
-
* Comparison operator for the filter. Single-value operators (
|
|
176
|
-
*
|
|
177
|
-
* scalar value. List operators (
|
|
178
|
-
* operators (
|
|
179
|
-
* No-value operators (
|
|
180
|
-
* operators (
|
|
181
|
-
*
|
|
182
|
-
*
|
|
175
|
+
* Comparison operator for the filter. Single-value operators (EQ, NE, GT, GTE, LT,
|
|
176
|
+
* LTE, STARTS_WITH, ENDS_WITH, CONTAINS, NOT_CONTAINS, BEFORE, AFTER) require a
|
|
177
|
+
* scalar value. List operators (IN, NOT_IN) require a non-empty array. Range
|
|
178
|
+
* operators (BETWEEN, NOT_BETWEEN) require an object with 'from' and 'to' keys.
|
|
179
|
+
* No-value operators (IS_EMPTY, IS_NOT_EMPTY) do not require a value. Rolling-date
|
|
180
|
+
* operators (LAST_N, NEXT_N) require an object with 'unit' (DAY, WEEK, MONTH,
|
|
181
|
+
* YEAR) and 'n' (integer). Calendar-date operators (CURRENT_CALENDAR,
|
|
182
|
+
* PREVIOUS_CALENDAR) require a unit string (DAY, WEEK, MONTH, QUARTER, YEAR).
|
|
183
183
|
*/
|
|
184
184
|
operator:
|
|
185
|
-
| '
|
|
186
|
-
| '
|
|
187
|
-
| '
|
|
188
|
-
| '
|
|
189
|
-
| '
|
|
190
|
-
| '
|
|
191
|
-
| '
|
|
192
|
-
| '
|
|
193
|
-
| '
|
|
194
|
-
| '
|
|
195
|
-
| '
|
|
196
|
-
| '
|
|
197
|
-
| '
|
|
198
|
-
| '
|
|
199
|
-
| '
|
|
200
|
-
| '
|
|
201
|
-
| '
|
|
202
|
-
| '
|
|
203
|
-
| '
|
|
204
|
-
| '
|
|
205
|
-
| '
|
|
206
|
-
| '
|
|
185
|
+
| 'EQ'
|
|
186
|
+
| 'NE'
|
|
187
|
+
| 'IN'
|
|
188
|
+
| 'NOT_IN'
|
|
189
|
+
| 'STARTS_WITH'
|
|
190
|
+
| 'ENDS_WITH'
|
|
191
|
+
| 'CONTAINS'
|
|
192
|
+
| 'NOT_CONTAINS'
|
|
193
|
+
| 'GT'
|
|
194
|
+
| 'GTE'
|
|
195
|
+
| 'LT'
|
|
196
|
+
| 'LTE'
|
|
197
|
+
| 'BETWEEN'
|
|
198
|
+
| 'NOT_BETWEEN'
|
|
199
|
+
| 'IS_EMPTY'
|
|
200
|
+
| 'IS_NOT_EMPTY'
|
|
201
|
+
| 'BEFORE'
|
|
202
|
+
| 'AFTER'
|
|
203
|
+
| 'LAST_N'
|
|
204
|
+
| 'NEXT_N'
|
|
205
|
+
| 'CURRENT_CALENDAR'
|
|
206
|
+
| 'PREVIOUS_CALENDAR';
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* The filter value. Shape depends on the operator: scalar for single-value
|
|
210
210
|
* operators; array for list operators; RangeValue object ({from, to}) for range
|
|
211
211
|
* operators; RollingDateValue object ({unit, n}) for rolling-date operators; unit
|
|
212
|
-
* string for calendar-date operators; omitted or null for
|
|
212
|
+
* string for calendar-date operators; omitted or null for IS_EMPTY/IS_NOT_EMPTY.
|
|
213
213
|
*/
|
|
214
214
|
value?: string | number | boolean | Array<unknown> | Filter.RangeValue | Filter.RollingDateValue | null;
|
|
215
215
|
}
|
|
@@ -242,7 +242,7 @@ export namespace ReportRunCreateParams {
|
|
|
242
242
|
/**
|
|
243
243
|
* Unit of time for rolling/calendar date filters
|
|
244
244
|
*/
|
|
245
|
-
unit: '
|
|
245
|
+
unit: 'DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'YEAR';
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -48,7 +48,8 @@ export interface WorkflowActionExecutionCreateParams {
|
|
|
48
48
|
| 'enroll_into_learning_path'
|
|
49
49
|
| 'report_email'
|
|
50
50
|
| 'send_document'
|
|
51
|
-
| 'accrue_leave'
|
|
51
|
+
| 'accrue_leave'
|
|
52
|
+
| 'make_payment';
|
|
52
53
|
|
|
53
54
|
/**
|
|
54
55
|
* An action that sends an email.
|
|
@@ -102,6 +103,7 @@ export interface WorkflowActionExecutionCreateParams {
|
|
|
102
103
|
| WorkflowActionExecutionCreateParams.SendDocumentPayload
|
|
103
104
|
| WorkflowActionExecutionCreateParams.AccrueLeaveLeavePolicyPayload
|
|
104
105
|
| WorkflowActionExecutionCreateParams.AccrueLeaveCompanyLeaveTypePayload
|
|
106
|
+
| WorkflowActionExecutionCreateParams.MakePaymentPayload
|
|
105
107
|
| WorkflowActionExecutionCreateParams.RunQueryPayload;
|
|
106
108
|
|
|
107
109
|
workflow_definition_id?: string;
|
|
@@ -2024,6 +2026,25 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
2024
2026
|
recipients: Array<string>;
|
|
2025
2027
|
}
|
|
2026
2028
|
|
|
2029
|
+
/**
|
|
2030
|
+
* Send a payment to employee(s). This payment will be applied to the next upcoming
|
|
2031
|
+
* payroll run.
|
|
2032
|
+
* <helpdocslink href='https://help.rippling.com/article?articleId=2AcZ3Rsql2FVUy3ghiFCFt'>Help
|
|
2033
|
+
* docs</helpdocslink>
|
|
2034
|
+
*/
|
|
2035
|
+
export interface MakePaymentPayload {
|
|
2036
|
+
/**
|
|
2037
|
+
* Set a max amount that can be earned under this workflow
|
|
2038
|
+
*/
|
|
2039
|
+
apply_cap: boolean;
|
|
2040
|
+
|
|
2041
|
+
description: string;
|
|
2042
|
+
|
|
2043
|
+
payment_amount: number;
|
|
2044
|
+
|
|
2045
|
+
recipients: Array<string>;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2027
2048
|
export interface RunQueryPayload {
|
|
2028
2049
|
query: string;
|
|
2029
2050
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.34'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.34";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.34";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.34'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.34'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|