@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.
Files changed (277) hide show
  1. package/client.d.mts +41 -8
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +41 -8
  4. package/client.d.ts.map +1 -1
  5. package/client.js +35 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +35 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/manifest/app.d.mts +20 -1
  10. package/lib/manifest/app.d.mts.map +1 -1
  11. package/lib/manifest/app.d.ts +20 -1
  12. package/lib/manifest/app.d.ts.map +1 -1
  13. package/lib/manifest/app.js +50 -0
  14. package/lib/manifest/app.js.map +1 -1
  15. package/lib/manifest/app.mjs +51 -1
  16. package/lib/manifest/app.mjs.map +1 -1
  17. package/lib/manifest/composition.d.mts +3 -0
  18. package/lib/manifest/composition.d.mts.map +1 -1
  19. package/lib/manifest/composition.d.ts +3 -0
  20. package/lib/manifest/composition.d.ts.map +1 -1
  21. package/lib/manifest/composition.js.map +1 -1
  22. package/lib/manifest/composition.mjs.map +1 -1
  23. package/lib/manifest/definitions/app.js +4 -1
  24. package/lib/manifest/definitions/app.js.map +1 -1
  25. package/lib/manifest/definitions/app.mjs +4 -1
  26. package/lib/manifest/definitions/app.mjs.map +1 -1
  27. package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
  28. package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
  29. package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
  30. package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
  31. package/lib/manifest/definitions/canvas-instance.js +31 -0
  32. package/lib/manifest/definitions/canvas-instance.js.map +1 -0
  33. package/lib/manifest/definitions/canvas-instance.mjs +28 -0
  34. package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
  35. package/lib/manifest/definitions/function.d.mts.map +1 -1
  36. package/lib/manifest/definitions/function.d.ts.map +1 -1
  37. package/lib/manifest/definitions/function.js +1 -0
  38. package/lib/manifest/definitions/function.js.map +1 -1
  39. package/lib/manifest/definitions/function.mjs +1 -0
  40. package/lib/manifest/definitions/function.mjs.map +1 -1
  41. package/lib/manifest/definitions/group.d.mts +64 -0
  42. package/lib/manifest/definitions/group.d.mts.map +1 -0
  43. package/lib/manifest/definitions/group.d.ts +64 -0
  44. package/lib/manifest/definitions/group.d.ts.map +1 -0
  45. package/lib/manifest/definitions/group.js +57 -0
  46. package/lib/manifest/definitions/group.js.map +1 -0
  47. package/lib/manifest/definitions/group.mjs +50 -0
  48. package/lib/manifest/definitions/group.mjs.map +1 -0
  49. package/lib/manifest/definitions/index.d.mts +5 -0
  50. package/lib/manifest/definitions/index.d.mts.map +1 -1
  51. package/lib/manifest/definitions/index.d.ts +5 -0
  52. package/lib/manifest/definitions/index.d.ts.map +1 -1
  53. package/lib/manifest/definitions/index.js +9 -1
  54. package/lib/manifest/definitions/index.js.map +1 -1
  55. package/lib/manifest/definitions/index.mjs +3 -0
  56. package/lib/manifest/definitions/index.mjs.map +1 -1
  57. package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
  58. package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
  59. package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
  60. package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
  61. package/lib/manifest/definitions/saved-super-group.js +26 -0
  62. package/lib/manifest/definitions/saved-super-group.js.map +1 -0
  63. package/lib/manifest/definitions/saved-super-group.mjs +21 -0
  64. package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
  65. package/lib/manifest/existing-manifest-context.d.mts +3 -0
  66. package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
  67. package/lib/manifest/existing-manifest-context.d.ts +3 -0
  68. package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
  69. package/lib/manifest/existing-manifest-context.js +15 -0
  70. package/lib/manifest/existing-manifest-context.js.map +1 -1
  71. package/lib/manifest/existing-manifest-context.mjs +15 -0
  72. package/lib/manifest/existing-manifest-context.mjs.map +1 -1
  73. package/lib/manifest/group.d.mts +83 -0
  74. package/lib/manifest/group.d.mts.map +1 -0
  75. package/lib/manifest/group.d.ts +83 -0
  76. package/lib/manifest/group.d.ts.map +1 -0
  77. package/lib/manifest/group.js +207 -0
  78. package/lib/manifest/group.js.map +1 -0
  79. package/lib/manifest/group.mjs +203 -0
  80. package/lib/manifest/group.mjs.map +1 -0
  81. package/lib/manifest/index.d.mts +2 -0
  82. package/lib/manifest/index.d.mts.map +1 -1
  83. package/lib/manifest/index.d.ts +2 -0
  84. package/lib/manifest/index.d.ts.map +1 -1
  85. package/lib/manifest/index.js +5 -1
  86. package/lib/manifest/index.js.map +1 -1
  87. package/lib/manifest/index.mjs +2 -0
  88. package/lib/manifest/index.mjs.map +1 -1
  89. package/lib/manifest/manifest-builder.d.mts +1 -1
  90. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  91. package/lib/manifest/manifest-builder.d.ts +1 -1
  92. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  93. package/lib/manifest/manifest-builder.js.map +1 -1
  94. package/lib/manifest/manifest-builder.mjs.map +1 -1
  95. package/lib/manifest/manifest-function.d.mts +16 -0
  96. package/lib/manifest/manifest-function.d.mts.map +1 -1
  97. package/lib/manifest/manifest-function.d.ts +16 -0
  98. package/lib/manifest/manifest-function.d.ts.map +1 -1
  99. package/lib/manifest/manifest-function.js +67 -0
  100. package/lib/manifest/manifest-function.js.map +1 -1
  101. package/lib/manifest/manifest-function.mjs +68 -1
  102. package/lib/manifest/manifest-function.mjs.map +1 -1
  103. package/lib/manifest/saved-super-group.d.mts +43 -0
  104. package/lib/manifest/saved-super-group.d.mts.map +1 -0
  105. package/lib/manifest/saved-super-group.d.ts +43 -0
  106. package/lib/manifest/saved-super-group.d.ts.map +1 -0
  107. package/lib/manifest/saved-super-group.js +136 -0
  108. package/lib/manifest/saved-super-group.js.map +1 -0
  109. package/lib/manifest/saved-super-group.mjs +132 -0
  110. package/lib/manifest/saved-super-group.mjs.map +1 -0
  111. package/package.json +1 -1
  112. package/resources/application-submissions.d.mts +261 -0
  113. package/resources/application-submissions.d.mts.map +1 -0
  114. package/resources/application-submissions.d.ts +261 -0
  115. package/resources/application-submissions.d.ts.map +1 -0
  116. package/resources/application-submissions.js +112 -0
  117. package/resources/application-submissions.js.map +1 -0
  118. package/resources/application-submissions.mjs +108 -0
  119. package/resources/application-submissions.mjs.map +1 -0
  120. package/resources/bills.d.mts +913 -12
  121. package/resources/bills.d.mts.map +1 -1
  122. package/resources/bills.d.ts +913 -12
  123. package/resources/bills.d.ts.map +1 -1
  124. package/resources/bills.js +221 -0
  125. package/resources/bills.js.map +1 -1
  126. package/resources/bills.mjs +221 -0
  127. package/resources/bills.mjs.map +1 -1
  128. package/resources/candidate-applications.d.mts +247 -9
  129. package/resources/candidate-applications.d.mts.map +1 -1
  130. package/resources/candidate-applications.d.ts +247 -9
  131. package/resources/candidate-applications.d.ts.map +1 -1
  132. package/resources/candidate-applications.js +37 -5
  133. package/resources/candidate-applications.js.map +1 -1
  134. package/resources/candidate-applications.mjs +37 -5
  135. package/resources/candidate-applications.mjs.map +1 -1
  136. package/resources/card-transactions.d.mts +1580 -30
  137. package/resources/card-transactions.d.mts.map +1 -1
  138. package/resources/card-transactions.d.ts +1580 -30
  139. package/resources/card-transactions.d.ts.map +1 -1
  140. package/resources/card-transactions.js +404 -4
  141. package/resources/card-transactions.js.map +1 -1
  142. package/resources/card-transactions.mjs +404 -4
  143. package/resources/card-transactions.mjs.map +1 -1
  144. package/resources/custom-objects/custom-objects.d.mts +4 -0
  145. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  146. package/resources/custom-objects/custom-objects.d.ts +4 -0
  147. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  148. package/resources/custom-objects/custom-objects.js +4 -0
  149. package/resources/custom-objects/custom-objects.js.map +1 -1
  150. package/resources/custom-objects/custom-objects.mjs +4 -0
  151. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  152. package/resources/custom-objects/index.d.mts +1 -0
  153. package/resources/custom-objects/index.d.mts.map +1 -1
  154. package/resources/custom-objects/index.d.ts +1 -0
  155. package/resources/custom-objects/index.d.ts.map +1 -1
  156. package/resources/custom-objects/index.js +3 -1
  157. package/resources/custom-objects/index.js.map +1 -1
  158. package/resources/custom-objects/index.mjs +1 -0
  159. package/resources/custom-objects/index.mjs.map +1 -1
  160. package/resources/custom-objects/record-actions.d.mts +98 -0
  161. package/resources/custom-objects/record-actions.d.mts.map +1 -0
  162. package/resources/custom-objects/record-actions.d.ts +98 -0
  163. package/resources/custom-objects/record-actions.d.ts.map +1 -0
  164. package/resources/custom-objects/record-actions.js +58 -0
  165. package/resources/custom-objects/record-actions.js.map +1 -0
  166. package/resources/custom-objects/record-actions.mjs +54 -0
  167. package/resources/custom-objects/record-actions.mjs.map +1 -0
  168. package/resources/earnings-inputs.d.mts +14 -2
  169. package/resources/earnings-inputs.d.mts.map +1 -1
  170. package/resources/earnings-inputs.d.ts +14 -2
  171. package/resources/earnings-inputs.d.ts.map +1 -1
  172. package/resources/earnings-inputs.js +14 -2
  173. package/resources/earnings-inputs.js.map +1 -1
  174. package/resources/earnings-inputs.mjs +14 -2
  175. package/resources/earnings-inputs.mjs.map +1 -1
  176. package/resources/index.d.mts +9 -4
  177. package/resources/index.d.mts.map +1 -1
  178. package/resources/index.d.ts +9 -4
  179. package/resources/index.d.ts.map +1 -1
  180. package/resources/index.js +13 -3
  181. package/resources/index.js.map +1 -1
  182. package/resources/index.mjs +5 -0
  183. package/resources/index.mjs.map +1 -1
  184. package/resources/job-posts.d.mts +345 -0
  185. package/resources/job-posts.d.mts.map +1 -0
  186. package/resources/job-posts.d.ts +345 -0
  187. package/resources/job-posts.d.ts.map +1 -0
  188. package/resources/job-posts.js +110 -0
  189. package/resources/job-posts.js.map +1 -0
  190. package/resources/job-posts.mjs +106 -0
  191. package/resources/job-posts.mjs.map +1 -0
  192. package/resources/job-requisitions.d.mts +96 -4
  193. package/resources/job-requisitions.d.mts.map +1 -1
  194. package/resources/job-requisitions.d.ts +96 -4
  195. package/resources/job-requisitions.d.ts.map +1 -1
  196. package/resources/job-requisitions.js +64 -3
  197. package/resources/job-requisitions.js.map +1 -1
  198. package/resources/job-requisitions.mjs +64 -3
  199. package/resources/job-requisitions.mjs.map +1 -1
  200. package/resources/record-detail-related-records.d.mts +60 -30
  201. package/resources/record-detail-related-records.d.mts.map +1 -1
  202. package/resources/record-detail-related-records.d.ts +60 -30
  203. package/resources/record-detail-related-records.d.ts.map +1 -1
  204. package/resources/record-details.d.mts +120 -60
  205. package/resources/record-details.d.mts.map +1 -1
  206. package/resources/record-details.d.ts +120 -60
  207. package/resources/record-details.d.ts.map +1 -1
  208. package/resources/reimbursements.d.mts +1106 -64
  209. package/resources/reimbursements.d.mts.map +1 -1
  210. package/resources/reimbursements.d.ts +1106 -64
  211. package/resources/reimbursements.d.ts.map +1 -1
  212. package/resources/reimbursements.js +208 -0
  213. package/resources/reimbursements.js.map +1 -1
  214. package/resources/reimbursements.mjs +208 -0
  215. package/resources/reimbursements.mjs.map +1 -1
  216. package/resources/scheduled-payout-labels.d.mts +267 -0
  217. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  218. package/resources/scheduled-payout-labels.d.ts +267 -0
  219. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  220. package/resources/scheduled-payout-labels.js +151 -0
  221. package/resources/scheduled-payout-labels.js.map +1 -0
  222. package/resources/scheduled-payout-labels.mjs +147 -0
  223. package/resources/scheduled-payout-labels.mjs.map +1 -0
  224. package/resources/scheduled-payout-types.d.mts +680 -0
  225. package/resources/scheduled-payout-types.d.mts.map +1 -0
  226. package/resources/scheduled-payout-types.d.ts +680 -0
  227. package/resources/scheduled-payout-types.d.ts.map +1 -0
  228. package/resources/scheduled-payout-types.js +546 -0
  229. package/resources/scheduled-payout-types.js.map +1 -0
  230. package/resources/scheduled-payout-types.mjs +542 -0
  231. package/resources/scheduled-payout-types.mjs.map +1 -0
  232. package/resources/scheduled-payouts.d.mts +1588 -0
  233. package/resources/scheduled-payouts.d.mts.map +1 -0
  234. package/resources/scheduled-payouts.d.ts +1588 -0
  235. package/resources/scheduled-payouts.d.ts.map +1 -0
  236. package/resources/scheduled-payouts.js +582 -0
  237. package/resources/scheduled-payouts.js.map +1 -0
  238. package/resources/scheduled-payouts.mjs +578 -0
  239. package/resources/scheduled-payouts.mjs.map +1 -0
  240. package/src/client.ts +150 -0
  241. package/src/lib/manifest/app.ts +72 -2
  242. package/src/lib/manifest/composition.ts +8 -2
  243. package/src/lib/manifest/definitions/README.md +3 -1
  244. package/src/lib/manifest/definitions/app.ts +4 -1
  245. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  246. package/src/lib/manifest/definitions/function.ts +1 -0
  247. package/src/lib/manifest/definitions/group.ts +159 -0
  248. package/src/lib/manifest/definitions/index.ts +42 -0
  249. package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
  250. package/src/lib/manifest/existing-manifest-context.ts +24 -0
  251. package/src/lib/manifest/group.ts +282 -0
  252. package/src/lib/manifest/index.ts +16 -0
  253. package/src/lib/manifest/manifest-builder.ts +2 -0
  254. package/src/lib/manifest/manifest-function.ts +91 -1
  255. package/src/lib/manifest/saved-super-group.ts +171 -0
  256. package/src/resources/application-submissions.ts +315 -0
  257. package/src/resources/bills.ts +1085 -12
  258. package/src/resources/candidate-applications.ts +282 -9
  259. package/src/resources/card-transactions.ts +1874 -32
  260. package/src/resources/custom-objects/custom-objects.ts +16 -0
  261. package/src/resources/custom-objects/index.ts +6 -0
  262. package/src/resources/custom-objects/record-actions.ts +125 -0
  263. package/src/resources/earnings-inputs.ts +14 -2
  264. package/src/resources/index.ts +57 -0
  265. package/src/resources/job-posts.ts +415 -0
  266. package/src/resources/job-requisitions.ts +110 -3
  267. package/src/resources/record-detail-related-records.ts +60 -30
  268. package/src/resources/record-details.ts +120 -60
  269. package/src/resources/reimbursements.ts +1299 -63
  270. package/src/resources/scheduled-payout-labels.ts +373 -0
  271. package/src/resources/scheduled-payout-types.ts +755 -0
  272. package/src/resources/scheduled-payouts.ts +1947 -0
  273. package/src/version.ts +1 -1
  274. package/version.d.mts +1 -1
  275. package/version.d.ts +1 -1
  276. package/version.js +1 -1
  277. 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"}