@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,261 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* An application by a candidate to a specific job requisition
|
|
7
|
+
*/
|
|
8
|
+
export declare class ApplicationSubmissions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Poll a receipt returned by application submission to discover creation status.
|
|
11
|
+
* On SUCCEEDED, retain application_id and candidate_id for recruiting status
|
|
12
|
+
* queries. Only the submitting integration in the same company can read the
|
|
13
|
+
* receipt. Requires candidate-applications.read or
|
|
14
|
+
* candidate-applications.read-write. UNKNOWN indicates an interrupted worker or no
|
|
15
|
+
* update for an hour; the application may still be created. Continue checking this
|
|
16
|
+
* receipt and do not automatically submit with a new key. Receipts and their
|
|
17
|
+
* idempotency keys are retained indefinitely with no automatic expiry. The receipt
|
|
18
|
+
* remains queryable and the key continues to replay it; UNKNOWN does not expire
|
|
19
|
+
* either.
|
|
20
|
+
*
|
|
21
|
+
* @example HTTP
|
|
22
|
+
* Representative request and response shapes.
|
|
23
|
+
* ```
|
|
24
|
+
* GET /application-submissions/{id}/ HTTP/1.1
|
|
25
|
+
* Host: rest.ripplingapis.com
|
|
26
|
+
* Accept: application/json
|
|
27
|
+
* Rippling-Api-Version: 2024-08-01
|
|
28
|
+
*
|
|
29
|
+
* HTTP/1.1 200 OK
|
|
30
|
+
* Content-Type: application/json
|
|
31
|
+
*
|
|
32
|
+
* {
|
|
33
|
+
* "__meta": {
|
|
34
|
+
* "redacted_fields": [
|
|
35
|
+
* {}
|
|
36
|
+
* ]
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<ApplicationSubmissionRetrieveResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Accepts an application for asynchronous processing and returns the full
|
|
44
|
+
* ApplicationSubmission receipt, including id, status, result IDs, and timestamps.
|
|
45
|
+
* Poll GET /application-submissions/{id}/ for creation status and result IDs.
|
|
46
|
+
* Supply Idempotency-Key (1-255 characters) to replay the same receipt after a
|
|
47
|
+
* lost response. Reusing a key with a different payload returns HTTP 409.
|
|
48
|
+
* Concurrent requests with the same key and payload return the same receipt and
|
|
49
|
+
* enqueue creation once. Receipts and their idempotency keys are retained
|
|
50
|
+
* indefinitely with no automatic expiry. The same key continues to replay its
|
|
51
|
+
* receipt; use a new key for a new submission. The one-hour UNKNOWN threshold does
|
|
52
|
+
* not expire the receipt or key. When job_post_id is supplied, it must belong to
|
|
53
|
+
* job_id, the authenticated company, and the same Recruiting installation.
|
|
54
|
+
* Duplicate submissions for the same candidate and job are matched to the existing
|
|
55
|
+
* active application; when job_post_id is supplied, duplicate matching is scoped
|
|
56
|
+
* to that job post, so the same candidate can apply to multiple posts under one
|
|
57
|
+
* requisition. After creation, use GET /candidate-applications/ to track
|
|
58
|
+
* recruiting status.
|
|
59
|
+
*
|
|
60
|
+
* @example HTTP
|
|
61
|
+
* Representative request and response shapes.
|
|
62
|
+
* ```
|
|
63
|
+
* POST /application-submissions/ HTTP/1.1
|
|
64
|
+
* Host: rest.ripplingapis.com
|
|
65
|
+
* Content-Type: application/json
|
|
66
|
+
* Accept: application/json
|
|
67
|
+
* Rippling-Api-Version: 2024-08-01
|
|
68
|
+
*
|
|
69
|
+
* {
|
|
70
|
+
* "candidate": {
|
|
71
|
+
* "email": "dev@stainless.com",
|
|
72
|
+
* "first_name": "first_name",
|
|
73
|
+
* "last_name": "last_name",
|
|
74
|
+
* "phone_number": "phone_number"
|
|
75
|
+
* },
|
|
76
|
+
* "job_id": "job_id"
|
|
77
|
+
* }
|
|
78
|
+
*
|
|
79
|
+
* HTTP/1.1 200 OK
|
|
80
|
+
* Content-Type: application/json
|
|
81
|
+
*
|
|
82
|
+
* {
|
|
83
|
+
* "id": "string",
|
|
84
|
+
* "created_at": "2025-01-01T00:00:00Z",
|
|
85
|
+
* "updated_at": "2025-01-01T00:00:00Z",
|
|
86
|
+
* "status": "QUEUED",
|
|
87
|
+
* "application_id": "string",
|
|
88
|
+
* "candidate_id": "string",
|
|
89
|
+
* "outcome": "CREATED",
|
|
90
|
+
* "error_code": "PROCESSING_INTERRUPTED"
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
create(params: ApplicationSubmissionCreateParams, options?: RequestOptions): APIPromise<ApplicationSubmissionCreateResponse>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Meta information for the response.
|
|
98
|
+
*/
|
|
99
|
+
export interface ApplicationSubmissionRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
100
|
+
/**
|
|
101
|
+
* Identifier field
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Record creation date
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
/**
|
|
109
|
+
* QUEUED or PROCESSING until creation completes; SUCCEEDED includes result IDs;
|
|
110
|
+
* FAILED means creation exhausted retries. UNKNOWN means processing was
|
|
111
|
+
* interrupted or no update was received for an hour; creation may still complete.
|
|
112
|
+
* Do not resubmit with a new key automatically.
|
|
113
|
+
*/
|
|
114
|
+
status: 'QUEUED' | 'PROCESSING' | 'SUCCEEDED' | 'FAILED' | 'UNKNOWN';
|
|
115
|
+
/**
|
|
116
|
+
* Record update date
|
|
117
|
+
*/
|
|
118
|
+
updated_at: string;
|
|
119
|
+
/**
|
|
120
|
+
* Created or matched application ID
|
|
121
|
+
*/
|
|
122
|
+
application_id?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Created or matched candidate ID
|
|
125
|
+
*/
|
|
126
|
+
candidate_id?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Safe machine-readable failure code. PROCESSING_INTERRUPTED means a worker was
|
|
129
|
+
* interrupted and creation may still complete; APPLICATION_CREATION_FAILED means
|
|
130
|
+
* creation exhausted retries. Null when no worker failure has been recorded,
|
|
131
|
+
* including when UNKNOWN is caused only by a stale receipt.
|
|
132
|
+
*/
|
|
133
|
+
error_code?: 'PROCESSING_INTERRUPTED' | 'APPLICATION_CREATION_FAILED' | null;
|
|
134
|
+
/**
|
|
135
|
+
* CREATED when this submission created the application; MATCHED when it reused an
|
|
136
|
+
* existing application. Null until successful, or for older receipts without a
|
|
137
|
+
* recorded outcome.
|
|
138
|
+
*/
|
|
139
|
+
outcome?: 'CREATED' | 'MATCHED' | null;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Creation outcome for one submission, separate from the application's recruiting
|
|
143
|
+
* status.
|
|
144
|
+
*/
|
|
145
|
+
export interface ApplicationSubmissionCreateResponse {
|
|
146
|
+
/**
|
|
147
|
+
* Identifier field
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
/**
|
|
151
|
+
* Record creation date
|
|
152
|
+
*/
|
|
153
|
+
created_at: string;
|
|
154
|
+
/**
|
|
155
|
+
* QUEUED or PROCESSING until creation completes; SUCCEEDED includes result IDs;
|
|
156
|
+
* FAILED means creation exhausted retries. UNKNOWN means processing was
|
|
157
|
+
* interrupted or no update was received for an hour; creation may still complete.
|
|
158
|
+
* Do not resubmit with a new key automatically.
|
|
159
|
+
*/
|
|
160
|
+
status: 'QUEUED' | 'PROCESSING' | 'SUCCEEDED' | 'FAILED' | 'UNKNOWN';
|
|
161
|
+
/**
|
|
162
|
+
* Record update date
|
|
163
|
+
*/
|
|
164
|
+
updated_at: string;
|
|
165
|
+
/**
|
|
166
|
+
* Created or matched application ID
|
|
167
|
+
*/
|
|
168
|
+
application_id?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
* Created or matched candidate ID
|
|
171
|
+
*/
|
|
172
|
+
candidate_id?: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* Safe machine-readable failure code. PROCESSING_INTERRUPTED means a worker was
|
|
175
|
+
* interrupted and creation may still complete; APPLICATION_CREATION_FAILED means
|
|
176
|
+
* creation exhausted retries. Null when no worker failure has been recorded,
|
|
177
|
+
* including when UNKNOWN is caused only by a stale receipt.
|
|
178
|
+
*/
|
|
179
|
+
error_code?: 'PROCESSING_INTERRUPTED' | 'APPLICATION_CREATION_FAILED' | null;
|
|
180
|
+
/**
|
|
181
|
+
* CREATED when this submission created the application; MATCHED when it reused an
|
|
182
|
+
* existing application. Null until successful, or for older receipts without a
|
|
183
|
+
* recorded outcome.
|
|
184
|
+
*/
|
|
185
|
+
outcome?: 'CREATED' | 'MATCHED' | null;
|
|
186
|
+
}
|
|
187
|
+
export interface ApplicationSubmissionCreateParams {
|
|
188
|
+
/**
|
|
189
|
+
* Body param
|
|
190
|
+
*/
|
|
191
|
+
candidate: ApplicationSubmissionCreateParams.Candidate;
|
|
192
|
+
/**
|
|
193
|
+
* Body param: Job requisition identifier.
|
|
194
|
+
*/
|
|
195
|
+
job_id: string;
|
|
196
|
+
/**
|
|
197
|
+
* Body param: Optional free-text name of the candidate's current employer, for
|
|
198
|
+
* example 'Acme Inc.'. Supply the employer name, not a Rippling company ID. No
|
|
199
|
+
* field-specific maximum length is enforced.
|
|
200
|
+
*/
|
|
201
|
+
current_company?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Body param: Optional location-specific job post identifier belonging to job_id.
|
|
204
|
+
*/
|
|
205
|
+
job_post_id?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Body param: Optional free-text description of the candidate's current location,
|
|
208
|
+
* for example 'Seattle, WA, US'. Supply a string, not a structured address or Work
|
|
209
|
+
* Location ID. No field-specific maximum length is enforced.
|
|
210
|
+
*/
|
|
211
|
+
location?: string;
|
|
212
|
+
/**
|
|
213
|
+
* Body param: Optional S3 or CDN URL of a resume already uploaded through Rippling
|
|
214
|
+
* Recruiting's file-upload flow. The file must be in permitted Recruiting storage
|
|
215
|
+
* for the authenticated company or a shared Recruiting upload area. Supply
|
|
216
|
+
* resume_file_extension with a supported MIME type; otherwise the resume is
|
|
217
|
+
* ignored. Base64 file contents and arbitrary external URLs are not accepted.
|
|
218
|
+
*/
|
|
219
|
+
resume?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Body param: MIME type of the supplied resume, rather than a filename extension.
|
|
222
|
+
* Supported values: application/pdf, application/msword,
|
|
223
|
+
* application/vnd.openxmlformats-officedocument.wordprocessingml.document,
|
|
224
|
+
* text/plain, video/mp4, video/webm. Required to attach a supplied resume; a
|
|
225
|
+
* missing or unsupported value causes the resume to be ignored.
|
|
226
|
+
*/
|
|
227
|
+
resume_file_extension?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Body param: Optional identifier of a role in the authenticated company.
|
|
230
|
+
*/
|
|
231
|
+
sourcing_credit?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Header param: Reuse this key with the same request body to retrieve the same
|
|
234
|
+
* submission receipt. Omitting it creates a new receipt for each request.
|
|
235
|
+
*/
|
|
236
|
+
'Idempotency-Key'?: string;
|
|
237
|
+
}
|
|
238
|
+
export declare namespace ApplicationSubmissionCreateParams {
|
|
239
|
+
interface Candidate {
|
|
240
|
+
/**
|
|
241
|
+
* Candidate's email address.
|
|
242
|
+
*/
|
|
243
|
+
email: string;
|
|
244
|
+
/**
|
|
245
|
+
* Candidate's first name.
|
|
246
|
+
*/
|
|
247
|
+
first_name: string;
|
|
248
|
+
/**
|
|
249
|
+
* Candidate's last name.
|
|
250
|
+
*/
|
|
251
|
+
last_name: string;
|
|
252
|
+
/**
|
|
253
|
+
* Candidate phone number in E.164 format.
|
|
254
|
+
*/
|
|
255
|
+
phone_number: string;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
export declare namespace ApplicationSubmissions {
|
|
259
|
+
export { type ApplicationSubmissionRetrieveResponse as ApplicationSubmissionRetrieveResponse, type ApplicationSubmissionCreateResponse as ApplicationSubmissionCreateResponse, type ApplicationSubmissionCreateParams as ApplicationSubmissionCreateParams, };
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=application-submissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-submissions.d.ts","sourceRoot":"","sources":["../src/resources/application-submissions.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.ApplicationSubmissions = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* An application by a candidate to a specific job requisition
|
|
10
|
+
*/
|
|
11
|
+
class ApplicationSubmissions extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Poll a receipt returned by application submission to discover creation status.
|
|
14
|
+
* On SUCCEEDED, retain application_id and candidate_id for recruiting status
|
|
15
|
+
* queries. Only the submitting integration in the same company can read the
|
|
16
|
+
* receipt. Requires candidate-applications.read or
|
|
17
|
+
* candidate-applications.read-write. UNKNOWN indicates an interrupted worker or no
|
|
18
|
+
* update for an hour; the application may still be created. Continue checking this
|
|
19
|
+
* receipt and do not automatically submit with a new key. Receipts and their
|
|
20
|
+
* idempotency keys are retained indefinitely with no automatic expiry. The receipt
|
|
21
|
+
* remains queryable and the key continues to replay it; UNKNOWN does not expire
|
|
22
|
+
* either.
|
|
23
|
+
*
|
|
24
|
+
* @example HTTP
|
|
25
|
+
* Representative request and response shapes.
|
|
26
|
+
* ```
|
|
27
|
+
* GET /application-submissions/{id}/ HTTP/1.1
|
|
28
|
+
* Host: rest.ripplingapis.com
|
|
29
|
+
* Accept: application/json
|
|
30
|
+
* Rippling-Api-Version: 2024-08-01
|
|
31
|
+
*
|
|
32
|
+
* HTTP/1.1 200 OK
|
|
33
|
+
* Content-Type: application/json
|
|
34
|
+
*
|
|
35
|
+
* {
|
|
36
|
+
* "__meta": {
|
|
37
|
+
* "redacted_fields": [
|
|
38
|
+
* {}
|
|
39
|
+
* ]
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
retrieve(id, options) {
|
|
45
|
+
return this._client.get((0, path_1.path) `/application-submissions/${id}/`, options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Accepts an application for asynchronous processing and returns the full
|
|
49
|
+
* ApplicationSubmission receipt, including id, status, result IDs, and timestamps.
|
|
50
|
+
* Poll GET /application-submissions/{id}/ for creation status and result IDs.
|
|
51
|
+
* Supply Idempotency-Key (1-255 characters) to replay the same receipt after a
|
|
52
|
+
* lost response. Reusing a key with a different payload returns HTTP 409.
|
|
53
|
+
* Concurrent requests with the same key and payload return the same receipt and
|
|
54
|
+
* enqueue creation once. Receipts and their idempotency keys are retained
|
|
55
|
+
* indefinitely with no automatic expiry. The same key continues to replay its
|
|
56
|
+
* receipt; use a new key for a new submission. The one-hour UNKNOWN threshold does
|
|
57
|
+
* not expire the receipt or key. When job_post_id is supplied, it must belong to
|
|
58
|
+
* job_id, the authenticated company, and the same Recruiting installation.
|
|
59
|
+
* Duplicate submissions for the same candidate and job are matched to the existing
|
|
60
|
+
* active application; when job_post_id is supplied, duplicate matching is scoped
|
|
61
|
+
* to that job post, so the same candidate can apply to multiple posts under one
|
|
62
|
+
* requisition. After creation, use GET /candidate-applications/ to track
|
|
63
|
+
* recruiting status.
|
|
64
|
+
*
|
|
65
|
+
* @example HTTP
|
|
66
|
+
* Representative request and response shapes.
|
|
67
|
+
* ```
|
|
68
|
+
* POST /application-submissions/ HTTP/1.1
|
|
69
|
+
* Host: rest.ripplingapis.com
|
|
70
|
+
* Content-Type: application/json
|
|
71
|
+
* Accept: application/json
|
|
72
|
+
* Rippling-Api-Version: 2024-08-01
|
|
73
|
+
*
|
|
74
|
+
* {
|
|
75
|
+
* "candidate": {
|
|
76
|
+
* "email": "dev@stainless.com",
|
|
77
|
+
* "first_name": "first_name",
|
|
78
|
+
* "last_name": "last_name",
|
|
79
|
+
* "phone_number": "phone_number"
|
|
80
|
+
* },
|
|
81
|
+
* "job_id": "job_id"
|
|
82
|
+
* }
|
|
83
|
+
*
|
|
84
|
+
* HTTP/1.1 200 OK
|
|
85
|
+
* Content-Type: application/json
|
|
86
|
+
*
|
|
87
|
+
* {
|
|
88
|
+
* "id": "string",
|
|
89
|
+
* "created_at": "2025-01-01T00:00:00Z",
|
|
90
|
+
* "updated_at": "2025-01-01T00:00:00Z",
|
|
91
|
+
* "status": "QUEUED",
|
|
92
|
+
* "application_id": "string",
|
|
93
|
+
* "candidate_id": "string",
|
|
94
|
+
* "outcome": "CREATED",
|
|
95
|
+
* "error_code": "PROCESSING_INTERRUPTED"
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
create(params, options) {
|
|
100
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
101
|
+
return this._client.post('/application-submissions/', {
|
|
102
|
+
body,
|
|
103
|
+
...options,
|
|
104
|
+
headers: (0, headers_1.buildHeaders)([
|
|
105
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
106
|
+
options?.headers,
|
|
107
|
+
]),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.ApplicationSubmissions = ApplicationSubmissions;
|
|
112
|
+
//# sourceMappingURL=application-submissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-submissions.js","sourceRoot":"","sources":["../src/resources/application-submissions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAvGD,wDAuGC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* An application by a candidate to a specific job requisition
|
|
7
|
+
*/
|
|
8
|
+
export class ApplicationSubmissions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Poll a receipt returned by application submission to discover creation status.
|
|
11
|
+
* On SUCCEEDED, retain application_id and candidate_id for recruiting status
|
|
12
|
+
* queries. Only the submitting integration in the same company can read the
|
|
13
|
+
* receipt. Requires candidate-applications.read or
|
|
14
|
+
* candidate-applications.read-write. UNKNOWN indicates an interrupted worker or no
|
|
15
|
+
* update for an hour; the application may still be created. Continue checking this
|
|
16
|
+
* receipt and do not automatically submit with a new key. Receipts and their
|
|
17
|
+
* idempotency keys are retained indefinitely with no automatic expiry. The receipt
|
|
18
|
+
* remains queryable and the key continues to replay it; UNKNOWN does not expire
|
|
19
|
+
* either.
|
|
20
|
+
*
|
|
21
|
+
* @example HTTP
|
|
22
|
+
* Representative request and response shapes.
|
|
23
|
+
* ```
|
|
24
|
+
* GET /application-submissions/{id}/ HTTP/1.1
|
|
25
|
+
* Host: rest.ripplingapis.com
|
|
26
|
+
* Accept: application/json
|
|
27
|
+
* Rippling-Api-Version: 2024-08-01
|
|
28
|
+
*
|
|
29
|
+
* HTTP/1.1 200 OK
|
|
30
|
+
* Content-Type: application/json
|
|
31
|
+
*
|
|
32
|
+
* {
|
|
33
|
+
* "__meta": {
|
|
34
|
+
* "redacted_fields": [
|
|
35
|
+
* {}
|
|
36
|
+
* ]
|
|
37
|
+
* }
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id, options) {
|
|
42
|
+
return this._client.get(path `/application-submissions/${id}/`, options);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Accepts an application for asynchronous processing and returns the full
|
|
46
|
+
* ApplicationSubmission receipt, including id, status, result IDs, and timestamps.
|
|
47
|
+
* Poll GET /application-submissions/{id}/ for creation status and result IDs.
|
|
48
|
+
* Supply Idempotency-Key (1-255 characters) to replay the same receipt after a
|
|
49
|
+
* lost response. Reusing a key with a different payload returns HTTP 409.
|
|
50
|
+
* Concurrent requests with the same key and payload return the same receipt and
|
|
51
|
+
* enqueue creation once. Receipts and their idempotency keys are retained
|
|
52
|
+
* indefinitely with no automatic expiry. The same key continues to replay its
|
|
53
|
+
* receipt; use a new key for a new submission. The one-hour UNKNOWN threshold does
|
|
54
|
+
* not expire the receipt or key. When job_post_id is supplied, it must belong to
|
|
55
|
+
* job_id, the authenticated company, and the same Recruiting installation.
|
|
56
|
+
* Duplicate submissions for the same candidate and job are matched to the existing
|
|
57
|
+
* active application; when job_post_id is supplied, duplicate matching is scoped
|
|
58
|
+
* to that job post, so the same candidate can apply to multiple posts under one
|
|
59
|
+
* requisition. After creation, use GET /candidate-applications/ to track
|
|
60
|
+
* recruiting status.
|
|
61
|
+
*
|
|
62
|
+
* @example HTTP
|
|
63
|
+
* Representative request and response shapes.
|
|
64
|
+
* ```
|
|
65
|
+
* POST /application-submissions/ HTTP/1.1
|
|
66
|
+
* Host: rest.ripplingapis.com
|
|
67
|
+
* Content-Type: application/json
|
|
68
|
+
* Accept: application/json
|
|
69
|
+
* Rippling-Api-Version: 2024-08-01
|
|
70
|
+
*
|
|
71
|
+
* {
|
|
72
|
+
* "candidate": {
|
|
73
|
+
* "email": "dev@stainless.com",
|
|
74
|
+
* "first_name": "first_name",
|
|
75
|
+
* "last_name": "last_name",
|
|
76
|
+
* "phone_number": "phone_number"
|
|
77
|
+
* },
|
|
78
|
+
* "job_id": "job_id"
|
|
79
|
+
* }
|
|
80
|
+
*
|
|
81
|
+
* HTTP/1.1 200 OK
|
|
82
|
+
* Content-Type: application/json
|
|
83
|
+
*
|
|
84
|
+
* {
|
|
85
|
+
* "id": "string",
|
|
86
|
+
* "created_at": "2025-01-01T00:00:00Z",
|
|
87
|
+
* "updated_at": "2025-01-01T00:00:00Z",
|
|
88
|
+
* "status": "QUEUED",
|
|
89
|
+
* "application_id": "string",
|
|
90
|
+
* "candidate_id": "string",
|
|
91
|
+
* "outcome": "CREATED",
|
|
92
|
+
* "error_code": "PROCESSING_INTERRUPTED"
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
create(params, options) {
|
|
97
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
98
|
+
return this._client.post('/application-submissions/', {
|
|
99
|
+
body,
|
|
100
|
+
...options,
|
|
101
|
+
headers: buildHeaders([
|
|
102
|
+
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
103
|
+
options?.headers,
|
|
104
|
+
]),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=application-submissions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-submissions.mjs","sourceRoot":"","sources":["../src/resources/application-submissions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,MAAM,CACJ,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|