@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
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Records = exports.ListViews = exports.Fields = exports.CustomObjects = void 0;
4
+ exports.Records = exports.RecordActions = exports.ListViews = exports.Fields = exports.CustomObjects = void 0;
5
5
  var custom_objects_1 = require("./custom-objects.js");
6
6
  Object.defineProperty(exports, "CustomObjects", { enumerable: true, get: function () { return custom_objects_1.CustomObjects; } });
7
7
  var fields_1 = require("./fields.js");
8
8
  Object.defineProperty(exports, "Fields", { enumerable: true, get: function () { return fields_1.Fields; } });
9
9
  var index_1 = require("./list-views/index.js");
10
10
  Object.defineProperty(exports, "ListViews", { enumerable: true, get: function () { return index_1.ListViews; } });
11
+ var record_actions_1 = require("./record-actions.js");
12
+ Object.defineProperty(exports, "RecordActions", { enumerable: true, get: function () { return record_actions_1.RecordActions; } });
11
13
  var index_2 = require("./records/index.js");
12
14
  Object.defineProperty(exports, "Records", { enumerable: true, get: function () { return index_2.Records; } });
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/custom-objects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,+CAU4B;AAT1B,kGAAA,SAAS,OAAA;AAUX,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/custom-objects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,+CAU4B;AAT1B,kGAAA,SAAS,OAAA;AAUX,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA"}
@@ -2,5 +2,6 @@
2
2
  export { CustomObjects, } from "./custom-objects.mjs";
3
3
  export { Fields, } from "./fields.mjs";
4
4
  export { ListViews, } from "./list-views/index.mjs";
5
+ export { RecordActions, } from "./record-actions.mjs";
5
6
  export { Records, } from "./records/index.mjs";
6
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/custom-objects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAMd,6BAAyB;AAC1B,OAAO,EACL,MAAM,GAMP,qBAAiB;AAClB,OAAO,EACL,SAAS,GASV,+BAA2B;AAC5B,OAAO,EACL,OAAO,GAgBR,4BAAwB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/custom-objects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAMd,6BAAyB;AAC1B,OAAO,EACL,MAAM,GAMP,qBAAiB;AAClB,OAAO,EACL,SAAS,GASV,+BAA2B;AAC5B,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EACL,OAAO,GAgBR,4BAAwB"}
@@ -0,0 +1,98 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { PageCursorURL, PagePromise } from "../../core/pagination.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Custom object datarows defined by the company
6
+ */
7
+ export declare class RecordActions extends APIResource {
8
+ /**
9
+ * Lists callable native actions for this Custom Object. Execution remains
10
+ * separately authorized.
11
+ *
12
+ * @example SDK usage
13
+ * ```ts
14
+ * // Automatically fetches more pages as needed.
15
+ * for await (const recordActionListResponse of client.customObjects.recordActions.list(
16
+ * 'custom_object_api_name',
17
+ * )) {
18
+ * // ...
19
+ * }
20
+ * ```
21
+ *
22
+ * @example HTTP
23
+ * Representative request and response shapes.
24
+ * ```
25
+ * GET /custom-objects/{custom_object_api_name}/record-actions/?limit=100&cursor=cursor&visibility_preference=LIST_VIEW HTTP/1.1
26
+ * Host: rest.ripplingapis.com
27
+ * Accept: application/json
28
+ * Rippling-Api-Version: 2024-08-01
29
+ *
30
+ * HTTP/1.1 200 OK
31
+ * Content-Type: application/json
32
+ *
33
+ * {
34
+ * "results": [
35
+ * {
36
+ * "id": "string",
37
+ * "api_name": "string",
38
+ * "name": "string",
39
+ * "function_api_name": "string",
40
+ * "visibility_preferences": [
41
+ * "LIST_VIEW"
42
+ * ]
43
+ * }
44
+ * ],
45
+ * "next_link": "string"
46
+ * }
47
+ * ```
48
+ */
49
+ list(customObjectAPIName: string, query?: RecordActionListParams | null | undefined, options?: RequestOptions): PagePromise<RecordActionListResponsesPageCursorURL, RecordActionListResponse>;
50
+ }
51
+ export type RecordActionListResponsesPageCursorURL = PageCursorURL<RecordActionListResponse>;
52
+ /**
53
+ * A configured action the caller can attempt through the existing Function
54
+ * execution API.
55
+ */
56
+ export interface RecordActionListResponse {
57
+ /**
58
+ * Stable native ObjectAction identifier.
59
+ */
60
+ id: string;
61
+ /**
62
+ * Action API name; null for legacy actions.
63
+ */
64
+ api_name: string | null;
65
+ /**
66
+ * Associated Function API name for the unchanged Function execution endpoints.
67
+ * Discovery does not grant execution or execution-read permission.
68
+ */
69
+ function_api_name: string;
70
+ /**
71
+ * Action display label.
72
+ */
73
+ name: string;
74
+ /**
75
+ * Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
76
+ * appears on a record page.
77
+ */
78
+ visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
79
+ }
80
+ export interface RecordActionListParams {
81
+ /**
82
+ * Opaque cursor from the previous response next_link.
83
+ */
84
+ cursor?: string;
85
+ /**
86
+ * Maximum number of authorized actions to return. Defaults to 100.
87
+ */
88
+ limit?: number;
89
+ /**
90
+ * Match a configured placement: LIST_VIEW appears in an object grid; DETAIL_VIEW
91
+ * appears on a record page. Omit to return all authorized actions for this object.
92
+ */
93
+ visibility_preference?: 'LIST_VIEW' | 'DETAIL_VIEW';
94
+ }
95
+ export declare namespace RecordActions {
96
+ export { type RecordActionListResponse as RecordActionListResponse, type RecordActionListResponsesPageCursorURL as RecordActionListResponsesPageCursorURL, type RecordActionListParams as RecordActionListParams, };
97
+ }
98
+ //# sourceMappingURL=record-actions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-actions.d.mts","sourceRoot":"","sources":["../../src/resources/custom-objects/record-actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,kCAA8B;AACnE,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,IAAI,CACF,mBAAmB,EAAE,MAAM,EAC3B,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,wBAAwB,CAAC;CAOjF;AAED,MAAM,MAAM,sCAAsC,GAAG,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAE7F;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,sBAAsB,EAAE,KAAK,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC;CAC5D;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,qBAAqB,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,98 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { PageCursorURL, PagePromise } from "../../core/pagination.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Custom object datarows defined by the company
6
+ */
7
+ export declare class RecordActions extends APIResource {
8
+ /**
9
+ * Lists callable native actions for this Custom Object. Execution remains
10
+ * separately authorized.
11
+ *
12
+ * @example SDK usage
13
+ * ```ts
14
+ * // Automatically fetches more pages as needed.
15
+ * for await (const recordActionListResponse of client.customObjects.recordActions.list(
16
+ * 'custom_object_api_name',
17
+ * )) {
18
+ * // ...
19
+ * }
20
+ * ```
21
+ *
22
+ * @example HTTP
23
+ * Representative request and response shapes.
24
+ * ```
25
+ * GET /custom-objects/{custom_object_api_name}/record-actions/?limit=100&cursor=cursor&visibility_preference=LIST_VIEW HTTP/1.1
26
+ * Host: rest.ripplingapis.com
27
+ * Accept: application/json
28
+ * Rippling-Api-Version: 2024-08-01
29
+ *
30
+ * HTTP/1.1 200 OK
31
+ * Content-Type: application/json
32
+ *
33
+ * {
34
+ * "results": [
35
+ * {
36
+ * "id": "string",
37
+ * "api_name": "string",
38
+ * "name": "string",
39
+ * "function_api_name": "string",
40
+ * "visibility_preferences": [
41
+ * "LIST_VIEW"
42
+ * ]
43
+ * }
44
+ * ],
45
+ * "next_link": "string"
46
+ * }
47
+ * ```
48
+ */
49
+ list(customObjectAPIName: string, query?: RecordActionListParams | null | undefined, options?: RequestOptions): PagePromise<RecordActionListResponsesPageCursorURL, RecordActionListResponse>;
50
+ }
51
+ export type RecordActionListResponsesPageCursorURL = PageCursorURL<RecordActionListResponse>;
52
+ /**
53
+ * A configured action the caller can attempt through the existing Function
54
+ * execution API.
55
+ */
56
+ export interface RecordActionListResponse {
57
+ /**
58
+ * Stable native ObjectAction identifier.
59
+ */
60
+ id: string;
61
+ /**
62
+ * Action API name; null for legacy actions.
63
+ */
64
+ api_name: string | null;
65
+ /**
66
+ * Associated Function API name for the unchanged Function execution endpoints.
67
+ * Discovery does not grant execution or execution-read permission.
68
+ */
69
+ function_api_name: string;
70
+ /**
71
+ * Action display label.
72
+ */
73
+ name: string;
74
+ /**
75
+ * Configured action placements: LIST_VIEW appears in an object grid; DETAIL_VIEW
76
+ * appears on a record page.
77
+ */
78
+ visibility_preferences: Array<'LIST_VIEW' | 'DETAIL_VIEW'>;
79
+ }
80
+ export interface RecordActionListParams {
81
+ /**
82
+ * Opaque cursor from the previous response next_link.
83
+ */
84
+ cursor?: string;
85
+ /**
86
+ * Maximum number of authorized actions to return. Defaults to 100.
87
+ */
88
+ limit?: number;
89
+ /**
90
+ * Match a configured placement: LIST_VIEW appears in an object grid; DETAIL_VIEW
91
+ * appears on a record page. Omit to return all authorized actions for this object.
92
+ */
93
+ visibility_preference?: 'LIST_VIEW' | 'DETAIL_VIEW';
94
+ }
95
+ export declare namespace RecordActions {
96
+ export { type RecordActionListResponse as RecordActionListResponse, type RecordActionListResponsesPageCursorURL as RecordActionListResponsesPageCursorURL, type RecordActionListParams as RecordActionListParams, };
97
+ }
98
+ //# sourceMappingURL=record-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-actions.d.ts","sourceRoot":"","sources":["../../src/resources/custom-objects/record-actions.ts"],"names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.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RecordActions = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ /**
9
+ * Custom object datarows defined by the company
10
+ */
11
+ class RecordActions extends resource_1.APIResource {
12
+ /**
13
+ * Lists callable native actions for this Custom Object. Execution remains
14
+ * separately authorized.
15
+ *
16
+ * @example SDK usage
17
+ * ```ts
18
+ * // Automatically fetches more pages as needed.
19
+ * for await (const recordActionListResponse of client.customObjects.recordActions.list(
20
+ * 'custom_object_api_name',
21
+ * )) {
22
+ * // ...
23
+ * }
24
+ * ```
25
+ *
26
+ * @example HTTP
27
+ * Representative request and response shapes.
28
+ * ```
29
+ * GET /custom-objects/{custom_object_api_name}/record-actions/?limit=100&cursor=cursor&visibility_preference=LIST_VIEW HTTP/1.1
30
+ * Host: rest.ripplingapis.com
31
+ * Accept: application/json
32
+ * Rippling-Api-Version: 2024-08-01
33
+ *
34
+ * HTTP/1.1 200 OK
35
+ * Content-Type: application/json
36
+ *
37
+ * {
38
+ * "results": [
39
+ * {
40
+ * "id": "string",
41
+ * "api_name": "string",
42
+ * "name": "string",
43
+ * "function_api_name": "string",
44
+ * "visibility_preferences": [
45
+ * "LIST_VIEW"
46
+ * ]
47
+ * }
48
+ * ],
49
+ * "next_link": "string"
50
+ * }
51
+ * ```
52
+ */
53
+ list(customObjectAPIName, query = {}, options) {
54
+ return this._client.getAPIList((0, path_1.path) `/custom-objects/${customObjectAPIName}/record-actions/`, (pagination_1.PageCursorURL), { query, ...options });
55
+ }
56
+ }
57
+ exports.RecordActions = RecordActions;
58
+ //# sourceMappingURL=record-actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-actions.js","sourceRoot":"","sources":["../../src/resources/custom-objects/record-actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAAmE;AAEnE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,IAAI,CACF,mBAA2B,EAC3B,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,mBAAmB,mBAAmB,kBAAkB,EAC5D,CAAA,0BAAuC,CAAA,EACvC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AArDD,sCAqDC"}
@@ -0,0 +1,54 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { PageCursorURL } from "../../core/pagination.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ /**
6
+ * Custom object datarows defined by the company
7
+ */
8
+ export class RecordActions extends APIResource {
9
+ /**
10
+ * Lists callable native actions for this Custom Object. Execution remains
11
+ * separately authorized.
12
+ *
13
+ * @example SDK usage
14
+ * ```ts
15
+ * // Automatically fetches more pages as needed.
16
+ * for await (const recordActionListResponse of client.customObjects.recordActions.list(
17
+ * 'custom_object_api_name',
18
+ * )) {
19
+ * // ...
20
+ * }
21
+ * ```
22
+ *
23
+ * @example HTTP
24
+ * Representative request and response shapes.
25
+ * ```
26
+ * GET /custom-objects/{custom_object_api_name}/record-actions/?limit=100&cursor=cursor&visibility_preference=LIST_VIEW HTTP/1.1
27
+ * Host: rest.ripplingapis.com
28
+ * Accept: application/json
29
+ * Rippling-Api-Version: 2024-08-01
30
+ *
31
+ * HTTP/1.1 200 OK
32
+ * Content-Type: application/json
33
+ *
34
+ * {
35
+ * "results": [
36
+ * {
37
+ * "id": "string",
38
+ * "api_name": "string",
39
+ * "name": "string",
40
+ * "function_api_name": "string",
41
+ * "visibility_preferences": [
42
+ * "LIST_VIEW"
43
+ * ]
44
+ * }
45
+ * ],
46
+ * "next_link": "string"
47
+ * }
48
+ * ```
49
+ */
50
+ list(customObjectAPIName, query = {}, options) {
51
+ return this._client.getAPIList(path `/custom-objects/${customObjectAPIName}/record-actions/`, (PageCursorURL), { query, ...options });
52
+ }
53
+ }
54
+ //# sourceMappingURL=record-actions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-actions.mjs","sourceRoot":"","sources":["../../src/resources/custom-objects/record-actions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,aAAa,EAAe,kCAA8B;AAEnE,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,IAAI,CACF,mBAA2B,EAC3B,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,mBAAmB,mBAAmB,kBAAkB,EAC5D,CAAA,aAAuC,CAAA,EACvC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -58,7 +58,13 @@ export declare class EarningsInputs extends APIResource {
58
58
  */
59
59
  list(query?: EarningsInputListParams | null | undefined, options?: RequestOptions): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse>;
60
60
  /**
61
- * Create a new earnings-input
61
+ * Create or update earnings-inputs for one worker. Requires Global Payroll admin
62
+ * write permission for the company and for the target worker. Each earnings line
63
+ * requires an `external_id`, which identifies the line across requests: resending
64
+ * a line with the same `external_id` and identical values writes nothing, and
65
+ * resending it with different values records a new version that replaces the
66
+ * previous one (last write wins). Retrying a request is therefore safe. There is
67
+ * no separate idempotency key.
62
68
  *
63
69
  * @example HTTP
64
70
  * Representative request and response shapes.
@@ -97,7 +103,13 @@ export declare class EarningsInputs extends APIResource {
97
103
  */
98
104
  create(body?: EarningsInputCreateParams | null | undefined, options?: RequestOptions): APIPromise<EarningsInputCreateResponse>;
99
105
  /**
100
- * Delete a earnings-input
106
+ * Delete an earnings-input. Requires Global Payroll admin write permission for the
107
+ * company and for the earnings-input's worker. Deletion is a soft delete: the
108
+ * earnings-input is removed from payroll and is still returned by
109
+ * `GET /earnings-inputs/` with `filter=include_deleted eq true`. Deleting it again
110
+ * returns 404 `PAYROLL_EARNING_INPUT_ALREADY_DELETED`, so a retried delete is safe
111
+ * to treat as done. An earnings-input on an approved or paid payroll run cannot be
112
+ * deleted and returns 409 `PAYROLL_EARNING_ALREADY_ASSIGNED`.
101
113
  *
102
114
  * @example HTTP
103
115
  * Representative request and response shapes.
@@ -1 +1 @@
1
- {"version":3,"file":"earnings-inputs.d.mts","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAEhE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CACJ,IAAI,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OA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AEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -58,7 +58,13 @@ export declare class EarningsInputs extends APIResource {
58
58
  */
59
59
  list(query?: EarningsInputListParams | null | undefined, options?: RequestOptions): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse>;
60
60
  /**
61
- * Create a new earnings-input
61
+ * Create or update earnings-inputs for one worker. Requires Global Payroll admin
62
+ * write permission for the company and for the target worker. Each earnings line
63
+ * requires an `external_id`, which identifies the line across requests: resending
64
+ * a line with the same `external_id` and identical values writes nothing, and
65
+ * resending it with different values records a new version that replaces the
66
+ * previous one (last write wins). Retrying a request is therefore safe. There is
67
+ * no separate idempotency key.
62
68
  *
63
69
  * @example HTTP
64
70
  * Representative request and response shapes.
@@ -97,7 +103,13 @@ export declare class EarningsInputs extends APIResource {
97
103
  */
98
104
  create(body?: EarningsInputCreateParams | null | undefined, options?: RequestOptions): APIPromise<EarningsInputCreateResponse>;
99
105
  /**
100
- * Delete a earnings-input
106
+ * Delete an earnings-input. Requires Global Payroll admin write permission for the
107
+ * company and for the earnings-input's worker. Deletion is a soft delete: the
108
+ * earnings-input is removed from payroll and is still returned by
109
+ * `GET /earnings-inputs/` with `filter=include_deleted eq true`. Deleting it again
110
+ * returns 404 `PAYROLL_EARNING_INPUT_ALREADY_DELETED`, so a retried delete is safe
111
+ * to treat as done. An earnings-input on an approved or paid payroll run cannot be
112
+ * deleted and returns 409 `PAYROLL_EARNING_ALREADY_ASSIGNED`.
101
113
  *
102
114
  * @example HTTP
103
115
  * Representative request and response shapes.
@@ -1 +1 @@
1
- {"version":3,"file":"earnings-inputs.d.ts","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAEhE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAOlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CACJ,IAAI,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM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67
  });
68
68
  }
69
69
  /**
70
- * Create a new earnings-input
70
+ * Create or update earnings-inputs for one worker. Requires Global Payroll admin
71
+ * write permission for the company and for the target worker. Each earnings line
72
+ * requires an `external_id`, which identifies the line across requests: resending
73
+ * a line with the same `external_id` and identical values writes nothing, and
74
+ * resending it with different values records a new version that replaces the
75
+ * previous one (last write wins). Retrying a request is therefore safe. There is
76
+ * no separate idempotency key.
71
77
  *
72
78
  * @example HTTP
73
79
  * Representative request and response shapes.
@@ -108,7 +114,13 @@ class EarningsInputs extends resource_1.APIResource {
108
114
  return this._client.post('/earnings-inputs/', { body, ...options });
109
115
  }
110
116
  /**
111
- * Delete a earnings-input
117
+ * Delete an earnings-input. Requires Global Payroll admin write permission for the
118
+ * company and for the earnings-input's worker. Deletion is a soft delete: the
119
+ * earnings-input is removed from payroll and is still returned by
120
+ * `GET /earnings-inputs/` with `filter=include_deleted eq true`. Deleting it again
121
+ * returns 404 `PAYROLL_EARNING_INPUT_ALREADY_DELETED`, so a retried delete is safe
122
+ * to treat as done. An earnings-input on an approved or paid payroll run cannot be
123
+ * deleted and returns 409 `PAYROLL_EARNING_ALREADY_ASSIGNED`.
112
124
  *
113
125
  * @example HTTP
114
126
  * Representative request and response shapes.
@@ -1 +1 @@
1
- {"version":3,"file":"earnings-inputs.js","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,0BAAwC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;I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CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,GAAG,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzID,wCAyIC"}
@@ -64,7 +64,13 @@ export class EarningsInputs extends APIResource {
64
64
  });
65
65
  }
66
66
  /**
67
- * Create a new earnings-input
67
+ * Create or update earnings-inputs for one worker. Requires Global Payroll admin
68
+ * write permission for the company and for the target worker. Each earnings line
69
+ * requires an `external_id`, which identifies the line across requests: resending
70
+ * a line with the same `external_id` and identical values writes nothing, and
71
+ * resending it with different values records a new version that replaces the
72
+ * previous one (last write wins). Retrying a request is therefore safe. There is
73
+ * no separate idempotency key.
68
74
  *
69
75
  * @example HTTP
70
76
  * Representative request and response shapes.
@@ -105,7 +111,13 @@ export class EarningsInputs extends APIResource {
105
111
  return this._client.post('/earnings-inputs/', { body, ...options });
106
112
  }
107
113
  /**
108
- * Delete a earnings-input
114
+ * Delete an earnings-input. Requires Global Payroll admin write permission for the
115
+ * company and for the earnings-input's worker. Deletion is a soft delete: the
116
+ * earnings-input is removed from payroll and is still returned by
117
+ * `GET /earnings-inputs/` with `filter=include_deleted eq true`. Deleting it again
118
+ * returns 404 `PAYROLL_EARNING_INPUT_ALREADY_DELETED`, so a retried delete is safe
119
+ * to treat as done. An earnings-input on an approved or paid payroll run cannot be
120
+ * deleted and returns 409 `PAYROLL_EARNING_ALREADY_ASSIGNED`.
109
121
  *
110
122
  * @example HTTP
111
123
  * Representative request and response shapes.
@@ -1 +1 @@
1
- {"version":3,"file":"earnings-inputs.mjs","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,aAAwC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,MAAM,CACJ,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,EAAE,GAAG,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"earnings-inputs.mjs","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,aAAwC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,EAAE,GAAG,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -2,8 +2,9 @@ export * from "./shared.mjs";
2
2
  export { ActivityLog, type ActivityLogListResponse, type ActivityLogRetrieveResponse, type ActivityLogListParams, type ActivityLogRetrieveParams, type ActivityLogListResponsesPageCursorURL, } from "./activity-log.mjs";
3
3
  export { Agents, type AgentListResponse, type AgentCreateResponse, type AgentRetrieveResponse, type AgentUpdateResponse, type AgentListParams, type AgentCreateParams, type AgentUpdateParams, type AgentListResponsesPageCursorURL, } from "./agents/agents.mjs";
4
4
  export { AppUsers, type AppUserListResponse, type AppUserRetrieveResponse, type AppUserListParams, type AppUserRetrieveParams, type AppUserListResponsesPageCursorURL, } from "./app-users.mjs";
5
+ export { ApplicationSubmissions, type ApplicationSubmissionRetrieveResponse, type ApplicationSubmissionCreateResponse, type ApplicationSubmissionCreateParams, } from "./application-submissions.mjs";
5
6
  export { BackgroundCheckCandidates, type BackgroundCheckCandidateListResponse, type BackgroundCheckCandidateCreateResponse, type BackgroundCheckCandidateRetrieveResponse, type BackgroundCheckCandidateUpdateResponse, type BackgroundCheckCandidateListParams, type BackgroundCheckCandidateCreateParams, type BackgroundCheckCandidateUpdateParams, type BackgroundCheckCandidateListResponsesPageCursorURL, } from "./background-check-candidates.mjs";
6
- export { Bills, type BillListResponse, type BillRetrieveResponse, type BillListParams, type BillRetrieveParams, type BillListResponsesPageCursorURL, } from "./bills.mjs";
7
+ export { Bills, type BillListResponse, type BillRetrieveResponse, type BillUpdateResponse, type BillListParams, type BillRetrieveParams, type BillUpdateParams, type BillListResponsesPageCursorURL, } from "./bills.mjs";
7
8
  export { BreakPolicies, type BreakPolicyListResponse, type BreakPolicyRetrieveResponse, type BreakPolicyListParams, type BreakPolicyListResponsesPageCursorURL, } from "./break-policies.mjs";
8
9
  export { BreakTypes, type BreakTypeListResponse, type BreakTypeRetrieveResponse, type BreakTypeListParams, type BreakTypeRetrieveParams, type BreakTypeListResponsesPageCursorURL, } from "./break-types.mjs";
9
10
  export { BusinessPartnerGroups, type BusinessPartnerGroup, type BusinessPartnerGroupRetrieveResponse, type BusinessPartnerGroupListParams, type BusinessPartnerGroupCreateParams, type BusinessPartnerGroupRetrieveParams, type BusinessPartnerGroupsPageCursorURL, } from "./business-partner-groups.mjs";
@@ -11,7 +12,7 @@ export { BusinessPartners, type BusinessPartner, type Meta, type BusinessPartner
11
12
  export { BusinessStructurePaths, type BusinessStructurePathListResponse, type BusinessStructurePathCreateResponse, type BusinessStructurePathRetrieveResponse, type BusinessStructurePathListParams, type BusinessStructurePathCreateParams, type BusinessStructurePathRetrieveParams, type BusinessStructurePathListResponsesPageCursorURL, } from "./business-structure-paths.mjs";
12
13
  export { CandidateApplications, type CandidateApplicationListResponse, type CandidateApplicationListParams, type CandidateApplicationListResponsesPageCursorURL, } from "./candidate-applications.mjs";
13
14
  export { Candidates, type CandidateListResponse, type CandidateListParams, type CandidateListResponsesPageCursorURL, } from "./candidates.mjs";
14
- export { CardTransactions, type CardTransactionListResponse, type CardTransactionRetrieveResponse, type CardTransactionListParams, type CardTransactionRetrieveParams, type CardTransactionListResponsesPageCursorURL, } from "./card-transactions.mjs";
15
+ export { CardTransactions, type CardTransactionListResponse, type CardTransactionRetrieveResponse, type CardTransactionUpdateResponse, type CardTransactionUploadReceiptResponse, type CardTransactionListParams, type CardTransactionRetrieveParams, type CardTransactionUpdateParams, type CardTransactionUploadReceiptParams, type CardTransactionListResponsesPageCursorURL, } from "./card-transactions.mjs";
15
16
  export { Companies, type Company, type CompanyListParams, type CompaniesPageCursorURL } from "./companies.mjs";
16
17
  export { CompanyLegalEntities, type CompanyLegalEntityListResponse, type CompanyLegalEntityRetrieveResponse, type CompanyLegalEntityListParams, type CompanyLegalEntityListResponsesPageCursorURL, } from "./company-legal-entities.mjs";
17
18
  export { CompanyLegalEntityWorkers, type CompanyLegalEntityWorkerListResponse, type CompanyLegalEntityWorkerRetrieveResponse, type CompanyLegalEntityWorkerListParams, type CompanyLegalEntityWorkerListResponsesPageCursorURL, } from "./company-legal-entity-workers.mjs";
@@ -47,7 +48,8 @@ export { JobCodes, type JobCode, type JobCodeRequest, type JobCodeRetrieveRespon
47
48
  export { JobDimensions, type JobDimension, type JobDimensionRequest, type JobDimensionRetrieveResponse, type JobDimensionListParams, type JobDimensionCreateParams, type JobDimensionUpdateParams, type JobDimensionsPageCursorURL, } from "./job-dimensions.mjs";
48
49
  export { JobFunctions, type JobFunctionListResponse, type JobFunctionRetrieveResponse, type JobFunctionListParams, type JobFunctionListResponsesPageCursorURL, } from "./job-functions.mjs";
49
50
  export { JobPayRateExceptions, type JobPayRateException, type JobPayRateExceptionRetrieveResponse, type JobPayRateExceptionListParams, type JobPayRateExceptionRetrieveParams, type JobPayRateExceptionListChangeLogParams, type JobPayRateExceptionsPageCursorURL, } from "./job-pay-rate-exceptions.mjs";
50
- export { JobRequisitions, type JobRequisition, type JobRequisitionListParams, type JobRequisitionsPageCursorURL, } from "./job-requisitions.mjs";
51
+ export { JobPosts, type JobPostListResponse, type JobPostRetrieveResponse, type JobPostListParams, type JobPostRetrieveParams, type JobPostListResponsesPageCursorURL, } from "./job-posts.mjs";
52
+ export { JobRequisitions, type JobRequisition, type JobRequisitionRetrieveResponse, type JobRequisitionPipelineResponse, type JobRequisitionListParams, type JobRequisitionsPageCursorURL, } from "./job-requisitions.mjs";
51
53
  export { JobRequisitionsWrite, type JobRequisitionsWriteCreateResponse, type JobRequisitionsWriteCreateParams, } from "./job-requisitions-write.mjs";
52
54
  export { KioskBadges, type TimeKioskBadge, type KioskBadgeListResponse, type KioskBadgeCreateResponse, type KioskBadgeRetrieveResponse, type KioskBadgeUpdateResponse, type KioskBadgeListParams, type KioskBadgeCreateParams, type KioskBadgeRetrieveParams, type KioskBadgeUpdateParams, type KioskBadgeListResponsesPageCursorURL, } from "./kiosk-badges.mjs";
53
55
  export { LeaveAccruals, type LeaveAccrualListResponse, type LeaveAccrualCreateResponse, type LeaveAccrualRetrieveResponse, type LeaveAccrualListParams, type LeaveAccrualCreateParams, type LeaveAccrualRetrieveParams, type LeaveAccrualListResponsesPageCursorURL, } from "./leave-accruals.mjs";
@@ -80,12 +82,15 @@ export { PlatformCapabilities, type PlatformCapabilityListResponse, type Platfor
80
82
  export { RecordDetailReferenceOptions, type RecordDetailReferenceOptionListResponse, type RecordDetailReferenceOptionListParams, type RecordDetailReferenceOptionListResponsesPageCursorURL, } from "./record-detail-reference-options.mjs";
81
83
  export { RecordDetailRelatedRecords, type RecordDetailRelatedRecordListResponse, type RecordDetailRelatedRecordListParams, type RecordDetailRelatedRecordListResponsesPageCursorURL, } from "./record-detail-related-records.mjs";
82
84
  export { RecordDetails, type RecordDetailRetrieveResponse, type RecordDetailRetrieveCreateResponse, type RecordDetailRetrieveParams, type RecordDetailRetrieveCreateParams, } from "./record-details.mjs";
83
- export { Reimbursements, type ReimbursementListResponse, type ReimbursementRetrieveResponse, type ReimbursementUpdateResponse, type ReimbursementListParams, type ReimbursementRetrieveParams, type ReimbursementUpdateParams, type ReimbursementListResponsesPageCursorURL, } from "./reimbursements.mjs";
85
+ export { Reimbursements, type ReimbursementListResponse, type ReimbursementRetrieveResponse, type ReimbursementUpdateResponse, type ReimbursementUploadReceiptResponse, type ReimbursementListParams, type ReimbursementRetrieveParams, type ReimbursementUpdateParams, type ReimbursementUploadReceiptParams, type ReimbursementListResponsesPageCursorURL, } from "./reimbursements.mjs";
84
86
  export { ReportRuns, type ReportRunCreateResponse, type ReportRunRetrieveResponse, type ReportRunCreateParams, } from "./report-runs.mjs";
85
87
  export { Reports, type ReportRetrieveResponse } from "./reports/reports.mjs";
86
88
  export { SSOMeResource, type SSOMe, type SSOMeListParams } from "./sso-me.mjs";
87
89
  export { Sandboxes, type SandboxListResponse, type SandboxCreateResponse, type SandboxRetrieveResponse, type SandboxDeveloperSandboxEntryRolesResponse, type SandboxListParams, type SandboxCreateParams, type SandboxListResponsesPageCursorURL, } from "./sandboxes.mjs";
88
90
  export { ScheduledJobAssignments, type ScheduledJobAssignmentListResponse, type ScheduledJobAssignmentRetrieveResponse, type ScheduledJobAssignmentListParams, type ScheduledJobAssignmentListResponsesPageCursorURL, } from "./scheduled-job-assignments.mjs";
91
+ export { ScheduledPayoutLabels, type ScheduledPayoutLabelListResponse, type ScheduledPayoutLabelCreateResponse, type ScheduledPayoutLabelRetrieveResponse, type ScheduledPayoutLabelUpdateResponse, type ScheduledPayoutLabelListParams, type ScheduledPayoutLabelCreateParams, type ScheduledPayoutLabelUpdateParams, type ScheduledPayoutLabelListResponsesPageCursorURL, } from "./scheduled-payout-labels.mjs";
92
+ export { ScheduledPayoutTypes, type ScheduledPayoutTypeListResponse, type ScheduledPayoutTypeCreateResponse, type ScheduledPayoutTypeRetrieveResponse, type ScheduledPayoutTypeUpdateResponse, type ScheduledPayoutTypeListParams, type ScheduledPayoutTypeCreateParams, type ScheduledPayoutTypeUpdateParams, type ScheduledPayoutTypeListResponsesPageCursorURL, } from "./scheduled-payout-types.mjs";
93
+ export { ScheduledPayouts, type ScheduledPayoutListResponse, type ScheduledPayoutCreateResponse, type ScheduledPayoutRetrieveResponse, type ScheduledPayoutCancelResponse, type ScheduledPayoutListParams, type ScheduledPayoutCreateParams, type ScheduledPayoutCancelParams, type ScheduledPayoutListResponsesPageCursorURL, } from "./scheduled-payouts.mjs";
89
94
  export { Schedules, type ScheduleListResponse, type ScheduleCreateResponse, type ScheduleRetrieveResponse, type ScheduleUpdateResponse, type ScheduleListParams, type ScheduleCreateParams, type ScheduleRetrieveParams, type ScheduleUpdateParams, type ScheduleListResponsesPageCursorURL, } from "./schedules.mjs";
90
95
  export { ShiftAssignments, type ShiftAssignmentUpdateCustomfieldsResponse, type ShiftAssignmentUpdateCustomfieldsParams, } from "./shift-assignments.mjs";
91
96
  export { ShiftInputs, type ShiftInput, type ShiftInputListResponse, type ShiftInputCreateResponse, type ShiftInputRetrieveResponse, type ShiftInputUpdateResponse, type ShiftInputListParams, type ShiftInputCreateParams, type ShiftInputRetrieveParams, type ShiftInputUpdateParams, type ShiftInputListResponsesPageCursorURL, } from "./shift-inputs.mjs";