@rippling/rippling-sdk 0.2.0-alpha.112 → 0.2.0-alpha.114
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 +41 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -8
- package/client.d.ts.map +1 -1
- package/client.js +35 -0
- package/client.js.map +1 -1
- package/client.mjs +35 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/app.d.mts +20 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +20 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +50 -0
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +51 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +3 -0
- package/lib/manifest/composition.d.mts.map +1 -1
- package/lib/manifest/composition.d.ts +3 -0
- package/lib/manifest/composition.d.ts.map +1 -1
- package/lib/manifest/composition.js.map +1 -1
- package/lib/manifest/composition.mjs.map +1 -1
- package/lib/manifest/definitions/app.js +4 -1
- package/lib/manifest/definitions/app.js.map +1 -1
- package/lib/manifest/definitions/app.mjs +4 -1
- package/lib/manifest/definitions/app.mjs.map +1 -1
- package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -1
- package/lib/manifest/definitions/function.d.ts.map +1 -1
- package/lib/manifest/definitions/function.js +1 -0
- package/lib/manifest/definitions/function.js.map +1 -1
- package/lib/manifest/definitions/function.mjs +1 -0
- package/lib/manifest/definitions/function.mjs.map +1 -1
- package/lib/manifest/definitions/group.d.mts +64 -0
- package/lib/manifest/definitions/group.d.mts.map +1 -0
- package/lib/manifest/definitions/group.d.ts +64 -0
- package/lib/manifest/definitions/group.d.ts.map +1 -0
- package/lib/manifest/definitions/group.js +57 -0
- package/lib/manifest/definitions/group.js.map +1 -0
- package/lib/manifest/definitions/group.mjs +50 -0
- package/lib/manifest/definitions/group.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +5 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +5 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +9 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +3 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.js +26 -0
- package/lib/manifest/definitions/saved-super-group.js.map +1 -0
- package/lib/manifest/definitions/saved-super-group.mjs +21 -0
- package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +3 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
- package/lib/manifest/existing-manifest-context.d.ts +3 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
- package/lib/manifest/existing-manifest-context.js +15 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -1
- package/lib/manifest/existing-manifest-context.mjs +15 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -1
- package/lib/manifest/group.d.mts +83 -0
- package/lib/manifest/group.d.mts.map +1 -0
- package/lib/manifest/group.d.ts +83 -0
- package/lib/manifest/group.d.ts.map +1 -0
- package/lib/manifest/group.js +207 -0
- package/lib/manifest/group.js.map +1 -0
- package/lib/manifest/group.mjs +203 -0
- package/lib/manifest/group.mjs.map +1 -0
- package/lib/manifest/index.d.mts +2 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/manifest-function.d.mts +16 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +16 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +67 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +68 -1
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/saved-super-group.d.mts +43 -0
- package/lib/manifest/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/saved-super-group.d.ts +43 -0
- package/lib/manifest/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/saved-super-group.js +136 -0
- package/lib/manifest/saved-super-group.js.map +1 -0
- package/lib/manifest/saved-super-group.mjs +132 -0
- package/lib/manifest/saved-super-group.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/application-submissions.d.mts +261 -0
- package/resources/application-submissions.d.mts.map +1 -0
- package/resources/application-submissions.d.ts +261 -0
- package/resources/application-submissions.d.ts.map +1 -0
- package/resources/application-submissions.js +112 -0
- package/resources/application-submissions.js.map +1 -0
- package/resources/application-submissions.mjs +108 -0
- package/resources/application-submissions.mjs.map +1 -0
- package/resources/bills.d.mts +913 -12
- package/resources/bills.d.mts.map +1 -1
- package/resources/bills.d.ts +913 -12
- package/resources/bills.d.ts.map +1 -1
- package/resources/bills.js +221 -0
- package/resources/bills.js.map +1 -1
- package/resources/bills.mjs +221 -0
- package/resources/bills.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +247 -9
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +247 -9
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +37 -5
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +37 -5
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/card-transactions.d.mts +1580 -30
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +1580 -30
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +404 -4
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +404 -4
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-posts.d.mts +345 -0
- package/resources/job-posts.d.mts.map +1 -0
- package/resources/job-posts.d.ts +345 -0
- package/resources/job-posts.d.ts.map +1 -0
- package/resources/job-posts.js +110 -0
- package/resources/job-posts.js.map +1 -0
- package/resources/job-posts.mjs +106 -0
- package/resources/job-posts.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +96 -4
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +96 -4
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +64 -3
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +64 -3
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.map +1 -1
- package/resources/reimbursements.d.mts +1106 -64
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1106 -64
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +208 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +208 -0
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1588 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1588 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +582 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +578 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +150 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/function.ts +1 -0
- package/src/lib/manifest/definitions/group.ts +159 -0
- package/src/lib/manifest/definitions/index.ts +42 -0
- package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
- package/src/lib/manifest/existing-manifest-context.ts +24 -0
- package/src/lib/manifest/group.ts +282 -0
- package/src/lib/manifest/index.ts +16 -0
- package/src/lib/manifest/manifest-builder.ts +2 -0
- package/src/lib/manifest/manifest-function.ts +91 -1
- package/src/lib/manifest/saved-super-group.ts +171 -0
- package/src/resources/application-submissions.ts +315 -0
- package/src/resources/bills.ts +1085 -12
- package/src/resources/candidate-applications.ts +282 -9
- package/src/resources/card-transactions.ts +1874 -32
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +57 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1947 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,415 @@
|
|
|
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 JobRequisitionsAPI from './job-requisitions';
|
|
6
|
+
import * as WorkLocationsAPI from './work-locations';
|
|
7
|
+
import { APIPromise } from '../core/api-promise';
|
|
8
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
9
|
+
import { RequestOptions } from '../internal/request-options';
|
|
10
|
+
import { path } from '../internal/utils/path';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Customer-facing postings associated with job requisitions
|
|
14
|
+
*/
|
|
15
|
+
export class JobPosts extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* List location-specific job posts belonging to non-confidential active job
|
|
18
|
+
* requisitions. Use filter=job_requisition_id eq '...' and filter=published eq
|
|
19
|
+
* true for standard OData filtering. Named job_requisition_id and published
|
|
20
|
+
* parameters remain supported as aliases. The requisition_id parameter is a
|
|
21
|
+
* cross-resource lookup of the parent requisition's customer-defined identifier
|
|
22
|
+
* and requires job-requisitions.read. Use the returned job post identifier when
|
|
23
|
+
* submitting an application for a specific posting.
|
|
24
|
+
*
|
|
25
|
+
* - Requires: `Internal Testing`
|
|
26
|
+
* - Filterable fields: `job_requisition_id`, `published`
|
|
27
|
+
* - Expandable fields: `job_requisition`, `work_locations`
|
|
28
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
29
|
+
*
|
|
30
|
+
* @example HTTP
|
|
31
|
+
* Representative request and response shapes.
|
|
32
|
+
* ```
|
|
33
|
+
* GET /job-posts/?filter=filter&expand=expand&order_by=order_by&job_requisition_id=job_requisition_id&requisition_id=requisition_id&published=true&limit=50&cursor=cursor HTTP/1.1
|
|
34
|
+
* Host: rest.ripplingapis.com
|
|
35
|
+
* Accept: application/json
|
|
36
|
+
* Rippling-Api-Version: 2024-08-01
|
|
37
|
+
*
|
|
38
|
+
* HTTP/1.1 200 OK
|
|
39
|
+
* Content-Type: application/json
|
|
40
|
+
*
|
|
41
|
+
* {
|
|
42
|
+
* "__meta": {
|
|
43
|
+
* "redacted_fields": [
|
|
44
|
+
* {
|
|
45
|
+
* "name": "date_of_birth",
|
|
46
|
+
* "reason": "Insufficient entitlements"
|
|
47
|
+
* }
|
|
48
|
+
* ]
|
|
49
|
+
* },
|
|
50
|
+
* "results": [
|
|
51
|
+
* {
|
|
52
|
+
* "id": "string",
|
|
53
|
+
* "created_at": "string",
|
|
54
|
+
* "updated_at": "string",
|
|
55
|
+
* "job_requisition_id": "string",
|
|
56
|
+
* "job_requisition": {
|
|
57
|
+
* "id": "string",
|
|
58
|
+
* "created_at": "string",
|
|
59
|
+
* "updated_at": "string",
|
|
60
|
+
* "name": "string",
|
|
61
|
+
* "status": "OPEN",
|
|
62
|
+
* "requisition_id": "string"
|
|
63
|
+
* },
|
|
64
|
+
* "name": "string",
|
|
65
|
+
* "published": false,
|
|
66
|
+
* "locations": [
|
|
67
|
+
* {}
|
|
68
|
+
* ],
|
|
69
|
+
* "work_location_ids": [
|
|
70
|
+
* "string"
|
|
71
|
+
* ],
|
|
72
|
+
* "work_locations": [
|
|
73
|
+
* {}
|
|
74
|
+
* ],
|
|
75
|
+
* "public_url": "string",
|
|
76
|
+
* "language": "string"
|
|
77
|
+
* }
|
|
78
|
+
* ],
|
|
79
|
+
* "next_link": "string"
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
list(
|
|
84
|
+
query: JobPostListParams | null | undefined = {},
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): PagePromise<JobPostListResponsesPageCursorURL, JobPostListResponse> {
|
|
87
|
+
return this._client.getAPIList('/job-posts/', PageCursorURL<JobPostListResponse>, { query, ...options });
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Retrieve a job post belonging to a non-confidential active job requisition.
|
|
92
|
+
*
|
|
93
|
+
* @example HTTP
|
|
94
|
+
* Representative request and response shapes.
|
|
95
|
+
* ```
|
|
96
|
+
* GET /job-posts/{id}/?expand=expand HTTP/1.1
|
|
97
|
+
* Host: rest.ripplingapis.com
|
|
98
|
+
* Accept: application/json
|
|
99
|
+
* Rippling-Api-Version: 2024-08-01
|
|
100
|
+
*
|
|
101
|
+
* HTTP/1.1 200 OK
|
|
102
|
+
* Content-Type: application/json
|
|
103
|
+
*
|
|
104
|
+
* {
|
|
105
|
+
* "__meta": {
|
|
106
|
+
* "redacted_fields": [
|
|
107
|
+
* {}
|
|
108
|
+
* ]
|
|
109
|
+
* }
|
|
110
|
+
* }
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
retrieve(
|
|
114
|
+
id: string,
|
|
115
|
+
query: JobPostRetrieveParams | null | undefined = {},
|
|
116
|
+
options?: RequestOptions,
|
|
117
|
+
): APIPromise<JobPostRetrieveResponse> {
|
|
118
|
+
return this._client.get(path`/job-posts/${id}/`, { query, ...options });
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type JobPostListResponsesPageCursorURL = PageCursorURL<JobPostListResponse>;
|
|
123
|
+
|
|
124
|
+
export interface JobPostListResponse {
|
|
125
|
+
/**
|
|
126
|
+
* Identifier field
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Record creation date
|
|
132
|
+
*/
|
|
133
|
+
created_at: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Configured and manually entered locations associated with the job post.
|
|
137
|
+
* Configured entries expose only work_location_id; manual entries expose
|
|
138
|
+
* manual_location_id and inline location details.
|
|
139
|
+
*/
|
|
140
|
+
locations: Array<JobPostListResponse.Location>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Job post name
|
|
144
|
+
*/
|
|
145
|
+
name: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Whether the job post is published
|
|
149
|
+
*/
|
|
150
|
+
published: boolean;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Record update date
|
|
154
|
+
*/
|
|
155
|
+
updated_at: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Parent job requisition; null when not expanded or unavailable. Request
|
|
159
|
+
* expand=job_requisition to include it
|
|
160
|
+
*
|
|
161
|
+
* Expandable field
|
|
162
|
+
*/
|
|
163
|
+
job_requisition?: JobRequisitionsAPI.JobRequisition;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Identifier of the parent Job Requisition resource. Applications use the legacy
|
|
167
|
+
* field name job_id for the same resource. Null when the parent Job Requisition
|
|
168
|
+
* reference is unavailable.
|
|
169
|
+
*/
|
|
170
|
+
job_requisition_id?: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* BCP 47 job post language tag; defaults to en-US when not otherwise set
|
|
174
|
+
*/
|
|
175
|
+
language?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Public job post URL; null when the post is not published
|
|
179
|
+
*/
|
|
180
|
+
public_url?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Canonical Work Location identifiers for the configured subset of locations[].
|
|
184
|
+
* Unlike locations[], this list excludes manually entered locations and supports
|
|
185
|
+
* expand=work_locations. Returns an empty list when there are no configured
|
|
186
|
+
* locations.
|
|
187
|
+
*/
|
|
188
|
+
work_location_ids?: Array<string>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Configured Work Location resources; request expand=work_locations to include
|
|
192
|
+
* them
|
|
193
|
+
*
|
|
194
|
+
* Expandable field
|
|
195
|
+
*/
|
|
196
|
+
work_locations?: Array<WorkLocationsAPI.WorkLocation>;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace JobPostListResponse {
|
|
200
|
+
export interface Location {
|
|
201
|
+
/**
|
|
202
|
+
* City for a manually entered location; null for a configured Work Location
|
|
203
|
+
* resource
|
|
204
|
+
*/
|
|
205
|
+
city?: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* ISO 3166-1 alpha-2 country code for a manually entered location; null for a
|
|
209
|
+
* configured Work Location resource
|
|
210
|
+
*/
|
|
211
|
+
country_code?: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Opaque job-post-local identifier for a manually entered location; null for a
|
|
215
|
+
* configured Work Location.
|
|
216
|
+
*/
|
|
217
|
+
manual_location_id?: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Display name for a manually entered location; null for a configured Work
|
|
221
|
+
* Location resource
|
|
222
|
+
*/
|
|
223
|
+
name?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* State or region for a manually entered location; null for a configured Work
|
|
227
|
+
* Location resource
|
|
228
|
+
*/
|
|
229
|
+
state?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Canonical Work Location resource identifier for a configured location; null for
|
|
233
|
+
* a manually entered location. Request expand=work_locations on the parent job
|
|
234
|
+
* post to retrieve the corresponding Work Location resources.
|
|
235
|
+
*/
|
|
236
|
+
work_location_id?: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Workplace type for a manually entered location: ON_SITE, REMOTE, or HYBRID.
|
|
240
|
+
* Configured Work Location resources return null.
|
|
241
|
+
*/
|
|
242
|
+
workplace_type?: 'ON_SITE' | 'REMOTE' | 'HYBRID';
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Meta information for the response.
|
|
248
|
+
*/
|
|
249
|
+
export interface JobPostRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
250
|
+
/**
|
|
251
|
+
* Identifier field
|
|
252
|
+
*/
|
|
253
|
+
id: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Record creation date
|
|
257
|
+
*/
|
|
258
|
+
created_at: string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Configured and manually entered locations associated with the job post.
|
|
262
|
+
* Configured entries expose only work_location_id; manual entries expose
|
|
263
|
+
* manual_location_id and inline location details.
|
|
264
|
+
*/
|
|
265
|
+
locations: Array<JobPostRetrieveResponse.Location>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Job post name
|
|
269
|
+
*/
|
|
270
|
+
name: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Whether the job post is published
|
|
274
|
+
*/
|
|
275
|
+
published: boolean;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Record update date
|
|
279
|
+
*/
|
|
280
|
+
updated_at: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Parent job requisition; null when not expanded or unavailable. Request
|
|
284
|
+
* expand=job_requisition to include it
|
|
285
|
+
*
|
|
286
|
+
* Expandable field
|
|
287
|
+
*/
|
|
288
|
+
job_requisition?: JobRequisitionsAPI.JobRequisition;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Identifier of the parent Job Requisition resource. Applications use the legacy
|
|
292
|
+
* field name job_id for the same resource. Null when the parent Job Requisition
|
|
293
|
+
* reference is unavailable.
|
|
294
|
+
*/
|
|
295
|
+
job_requisition_id?: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* BCP 47 job post language tag; defaults to en-US when not otherwise set
|
|
299
|
+
*/
|
|
300
|
+
language?: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Public job post URL; null when the post is not published
|
|
304
|
+
*/
|
|
305
|
+
public_url?: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Canonical Work Location identifiers for the configured subset of locations[].
|
|
309
|
+
* Unlike locations[], this list excludes manually entered locations and supports
|
|
310
|
+
* expand=work_locations. Returns an empty list when there are no configured
|
|
311
|
+
* locations.
|
|
312
|
+
*/
|
|
313
|
+
work_location_ids?: Array<string>;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Configured Work Location resources; request expand=work_locations to include
|
|
317
|
+
* them
|
|
318
|
+
*
|
|
319
|
+
* Expandable field
|
|
320
|
+
*/
|
|
321
|
+
work_locations?: Array<WorkLocationsAPI.WorkLocation>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace JobPostRetrieveResponse {
|
|
325
|
+
export interface Location {
|
|
326
|
+
/**
|
|
327
|
+
* City for a manually entered location; null for a configured Work Location
|
|
328
|
+
* resource
|
|
329
|
+
*/
|
|
330
|
+
city?: string;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* ISO 3166-1 alpha-2 country code for a manually entered location; null for a
|
|
334
|
+
* configured Work Location resource
|
|
335
|
+
*/
|
|
336
|
+
country_code?: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Opaque job-post-local identifier for a manually entered location; null for a
|
|
340
|
+
* configured Work Location.
|
|
341
|
+
*/
|
|
342
|
+
manual_location_id?: string;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Display name for a manually entered location; null for a configured Work
|
|
346
|
+
* Location resource
|
|
347
|
+
*/
|
|
348
|
+
name?: string;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* State or region for a manually entered location; null for a configured Work
|
|
352
|
+
* Location resource
|
|
353
|
+
*/
|
|
354
|
+
state?: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Canonical Work Location resource identifier for a configured location; null for
|
|
358
|
+
* a manually entered location. Request expand=work_locations on the parent job
|
|
359
|
+
* post to retrieve the corresponding Work Location resources.
|
|
360
|
+
*/
|
|
361
|
+
work_location_id?: string;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Workplace type for a manually entered location: ON_SITE, REMOTE, or HYBRID.
|
|
365
|
+
* Configured Work Location resources return null.
|
|
366
|
+
*/
|
|
367
|
+
workplace_type?: 'ON_SITE' | 'REMOTE' | 'HYBRID';
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export interface JobPostListParams {
|
|
372
|
+
cursor?: string;
|
|
373
|
+
|
|
374
|
+
expand?: string;
|
|
375
|
+
|
|
376
|
+
filter?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Return job posts for this Rippling job requisition identifier.
|
|
380
|
+
*/
|
|
381
|
+
job_requisition_id?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
385
|
+
*/
|
|
386
|
+
limit?: number;
|
|
387
|
+
|
|
388
|
+
order_by?: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Filter job posts by external job board publication state. When omitted, returns
|
|
392
|
+
* both published and unpublished posts.
|
|
393
|
+
*/
|
|
394
|
+
published?: boolean;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Return job posts for this customer-defined requisition identifier. Requires the
|
|
398
|
+
* job-requisitions.read scope.
|
|
399
|
+
*/
|
|
400
|
+
requisition_id?: string;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export interface JobPostRetrieveParams {
|
|
404
|
+
expand?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare namespace JobPosts {
|
|
408
|
+
export {
|
|
409
|
+
type JobPostListResponse as JobPostListResponse,
|
|
410
|
+
type JobPostRetrieveResponse as JobPostRetrieveResponse,
|
|
411
|
+
type JobPostListResponsesPageCursorURL as JobPostListResponsesPageCursorURL,
|
|
412
|
+
type JobPostListParams as JobPostListParams,
|
|
413
|
+
type JobPostRetrieveParams as JobPostRetrieveParams,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
4
6
|
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
5
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* A request for a job to be filled by a candidate
|
|
9
12
|
*/
|
|
10
13
|
export class JobRequisitions extends APIResource {
|
|
11
14
|
/**
|
|
12
|
-
*
|
|
15
|
+
* List non-confidential active job requisitions available to the integration. Use
|
|
16
|
+
* a requisition identifier to retrieve its details, pipeline, or location-specific
|
|
17
|
+
* job posts.
|
|
13
18
|
*
|
|
14
19
|
* - Requires: `API Tier 1`
|
|
20
|
+
* - Filterable fields: `requisition_id`, `created_at`
|
|
15
21
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
16
22
|
*
|
|
17
23
|
* @example HTTP
|
|
18
24
|
* Representative request and response shapes.
|
|
19
25
|
* ```
|
|
20
|
-
* GET /job-requisitions/?order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
26
|
+
* GET /job-requisitions/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
|
|
21
27
|
* Host: rest.ripplingapis.com
|
|
22
28
|
* Accept: application/json
|
|
23
29
|
* Rippling-Api-Version: 2024-08-01
|
|
@@ -40,7 +46,8 @@ export class JobRequisitions extends APIResource {
|
|
|
40
46
|
* "created_at": "string",
|
|
41
47
|
* "updated_at": "string",
|
|
42
48
|
* "name": "string",
|
|
43
|
-
* "status": "OPEN"
|
|
49
|
+
* "status": "OPEN",
|
|
50
|
+
* "requisition_id": "string"
|
|
44
51
|
* }
|
|
45
52
|
* ],
|
|
46
53
|
* "next_link": "string"
|
|
@@ -56,6 +63,64 @@ export class JobRequisitions extends APIResource {
|
|
|
56
63
|
...options,
|
|
57
64
|
});
|
|
58
65
|
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve a non-confidential job requisition by identifier. Unlike the list
|
|
69
|
+
* operation, retrieve can return a closed requisition.
|
|
70
|
+
*
|
|
71
|
+
* @example HTTP
|
|
72
|
+
* Representative request and response shapes.
|
|
73
|
+
* ```
|
|
74
|
+
* GET /job-requisitions/{id}/ HTTP/1.1
|
|
75
|
+
* Host: rest.ripplingapis.com
|
|
76
|
+
* Accept: application/json
|
|
77
|
+
* Rippling-Api-Version: 2024-08-01
|
|
78
|
+
*
|
|
79
|
+
* HTTP/1.1 200 OK
|
|
80
|
+
* Content-Type: application/json
|
|
81
|
+
*
|
|
82
|
+
* {
|
|
83
|
+
* "__meta": {
|
|
84
|
+
* "redacted_fields": [
|
|
85
|
+
* {}
|
|
86
|
+
* ]
|
|
87
|
+
* }
|
|
88
|
+
* }
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<JobRequisitionRetrieveResponse> {
|
|
92
|
+
return this._client.get(path`/job-requisitions/${id}/`, options);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Returns the configured application stages in pipeline order. Requisitions
|
|
97
|
+
* without a configured pipeline return an empty stages list.
|
|
98
|
+
*
|
|
99
|
+
* @example HTTP
|
|
100
|
+
* Representative request and response shapes.
|
|
101
|
+
* ```
|
|
102
|
+
* GET /job-requisitions/{id}/pipeline/ HTTP/1.1
|
|
103
|
+
* Host: rest.ripplingapis.com
|
|
104
|
+
* Accept: application/json
|
|
105
|
+
* Rippling-Api-Version: 2024-08-01
|
|
106
|
+
*
|
|
107
|
+
* HTTP/1.1 200 OK
|
|
108
|
+
* Content-Type: application/json
|
|
109
|
+
*
|
|
110
|
+
* {
|
|
111
|
+
* "job_requisition_id": "string",
|
|
112
|
+
* "stages": [
|
|
113
|
+
* {
|
|
114
|
+
* "id": "string",
|
|
115
|
+
* "name": "string"
|
|
116
|
+
* }
|
|
117
|
+
* ]
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
pipeline(id: string, options?: RequestOptions): APIPromise<JobRequisitionPipelineResponse> {
|
|
122
|
+
return this._client.get(path`/job-requisitions/${id}/pipeline/`, options);
|
|
123
|
+
}
|
|
59
124
|
}
|
|
60
125
|
|
|
61
126
|
export type JobRequisitionsPageCursorURL = PageCursorURL<JobRequisition>;
|
|
@@ -85,11 +150,51 @@ export interface JobRequisition {
|
|
|
85
150
|
* Record update date
|
|
86
151
|
*/
|
|
87
152
|
updated_at: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Customer-defined job requisition identifier; null when the company has not set
|
|
156
|
+
* one
|
|
157
|
+
*/
|
|
158
|
+
requisition_id?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Meta information for the response.
|
|
163
|
+
*/
|
|
164
|
+
export interface JobRequisitionRetrieveResponse extends BusinessPartnersAPI.Meta, JobRequisition {}
|
|
165
|
+
|
|
166
|
+
export interface JobRequisitionPipelineResponse {
|
|
167
|
+
/**
|
|
168
|
+
* Job requisition identifier
|
|
169
|
+
*/
|
|
170
|
+
job_requisition_id: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Ordered application stages for the job requisition
|
|
174
|
+
*/
|
|
175
|
+
stages: Array<JobRequisitionPipelineResponse.Stage>;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace JobRequisitionPipelineResponse {
|
|
179
|
+
export interface Stage {
|
|
180
|
+
/**
|
|
181
|
+
* Application stage identifier from the requisition's configured pipeline plan;
|
|
182
|
+
* stable for other requisitions that use the same stage definition.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Application stage name
|
|
188
|
+
*/
|
|
189
|
+
name: string;
|
|
190
|
+
}
|
|
88
191
|
}
|
|
89
192
|
|
|
90
193
|
export interface JobRequisitionListParams {
|
|
91
194
|
cursor?: string;
|
|
92
195
|
|
|
196
|
+
filter?: string;
|
|
197
|
+
|
|
93
198
|
/**
|
|
94
199
|
* The maximum number of results to return. Defaults to 50. Maximum is 100.
|
|
95
200
|
*/
|
|
@@ -101,6 +206,8 @@ export interface JobRequisitionListParams {
|
|
|
101
206
|
export declare namespace JobRequisitions {
|
|
102
207
|
export {
|
|
103
208
|
type JobRequisition as JobRequisition,
|
|
209
|
+
type JobRequisitionRetrieveResponse as JobRequisitionRetrieveResponse,
|
|
210
|
+
type JobRequisitionPipelineResponse as JobRequisitionPipelineResponse,
|
|
104
211
|
type JobRequisitionsPageCursorURL as JobRequisitionsPageCursorURL,
|
|
105
212
|
type JobRequisitionListParams as JobRequisitionListParams,
|
|
106
213
|
};
|