@rippling/rippling-sdk 0.2.0-alpha.106 → 0.2.0-alpha.108

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 (110) hide show
  1. package/client.d.mts +7 -1
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +7 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +7 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +7 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/card-transactions.d.mts +579 -0
  11. package/resources/card-transactions.d.mts.map +1 -0
  12. package/resources/card-transactions.d.ts +579 -0
  13. package/resources/card-transactions.d.ts.map +1 -0
  14. package/resources/card-transactions.js +116 -0
  15. package/resources/card-transactions.js.map +1 -0
  16. package/resources/card-transactions.mjs +112 -0
  17. package/resources/card-transactions.mjs.map +1 -0
  18. package/resources/custom-settings.d.mts +1 -1
  19. package/resources/custom-settings.d.ts +1 -1
  20. package/resources/custom-settings.js +1 -1
  21. package/resources/custom-settings.mjs +1 -1
  22. package/resources/earning-types.d.mts +50 -10
  23. package/resources/earning-types.d.mts.map +1 -1
  24. package/resources/earning-types.d.ts +50 -10
  25. package/resources/earning-types.d.ts.map +1 -1
  26. package/resources/earning-types.js +21 -2
  27. package/resources/earning-types.js.map +1 -1
  28. package/resources/earning-types.mjs +21 -2
  29. package/resources/earning-types.mjs.map +1 -1
  30. package/resources/hires.d.mts +0 -5
  31. package/resources/hires.d.mts.map +1 -1
  32. package/resources/hires.d.ts +0 -5
  33. package/resources/hires.d.ts.map +1 -1
  34. package/resources/hires.js +0 -1
  35. package/resources/hires.js.map +1 -1
  36. package/resources/hires.mjs +0 -1
  37. package/resources/hires.mjs.map +1 -1
  38. package/resources/index.d.mts +3 -1
  39. package/resources/index.d.mts.map +1 -1
  40. package/resources/index.d.ts +3 -1
  41. package/resources/index.d.ts.map +1 -1
  42. package/resources/index.js +8 -4
  43. package/resources/index.js.map +1 -1
  44. package/resources/index.mjs +3 -1
  45. package/resources/index.mjs.map +1 -1
  46. package/resources/payroll-payment-mode-changes.d.mts +66 -18
  47. package/resources/payroll-payment-mode-changes.d.mts.map +1 -1
  48. package/resources/payroll-payment-mode-changes.d.ts +66 -18
  49. package/resources/payroll-payment-mode-changes.d.ts.map +1 -1
  50. package/resources/payroll-payment-mode-changes.js +16 -4
  51. package/resources/payroll-payment-mode-changes.js.map +1 -1
  52. package/resources/payroll-payment-mode-changes.mjs +16 -4
  53. package/resources/payroll-payment-mode-changes.mjs.map +1 -1
  54. package/resources/reimbursements.d.mts +954 -0
  55. package/resources/reimbursements.d.mts.map +1 -0
  56. package/resources/reimbursements.d.ts +954 -0
  57. package/resources/reimbursements.d.ts.map +1 -0
  58. package/resources/reimbursements.js +140 -0
  59. package/resources/reimbursements.js.map +1 -0
  60. package/resources/reimbursements.mjs +136 -0
  61. package/resources/reimbursements.mjs.map +1 -0
  62. package/resources/workflows/executions.d.mts +153 -0
  63. package/resources/workflows/executions.d.mts.map +1 -0
  64. package/resources/workflows/executions.d.ts +153 -0
  65. package/resources/workflows/executions.d.ts.map +1 -0
  66. package/resources/workflows/executions.js +74 -0
  67. package/resources/workflows/executions.js.map +1 -0
  68. package/resources/workflows/executions.mjs +70 -0
  69. package/resources/workflows/executions.mjs.map +1 -0
  70. package/resources/workflows/index.d.mts +3 -0
  71. package/resources/workflows/index.d.mts.map +1 -0
  72. package/resources/workflows/index.d.ts +3 -0
  73. package/resources/workflows/index.d.ts.map +1 -0
  74. package/resources/workflows/index.js +9 -0
  75. package/resources/workflows/index.js.map +1 -0
  76. package/resources/workflows/index.mjs +4 -0
  77. package/resources/workflows/index.mjs.map +1 -0
  78. package/resources/workflows/workflows.d.mts +977 -0
  79. package/resources/workflows/workflows.d.mts.map +1 -0
  80. package/resources/workflows/workflows.d.ts +977 -0
  81. package/resources/workflows/workflows.d.ts.map +1 -0
  82. package/resources/workflows/workflows.js +246 -0
  83. package/resources/workflows/workflows.js.map +1 -0
  84. package/resources/workflows/workflows.mjs +241 -0
  85. package/resources/workflows/workflows.mjs.map +1 -0
  86. package/resources/workflows.d.mts +1 -957
  87. package/resources/workflows.d.mts.map +1 -1
  88. package/resources/workflows.d.ts +1 -957
  89. package/resources/workflows.d.ts.map +1 -1
  90. package/resources/workflows.js +2 -234
  91. package/resources/workflows.js.map +1 -1
  92. package/resources/workflows.mjs +1 -232
  93. package/resources/workflows.mjs.map +1 -1
  94. package/src/client.ts +46 -12
  95. package/src/resources/card-transactions.ts +718 -0
  96. package/src/resources/custom-settings.ts +1 -1
  97. package/src/resources/earning-types.ts +52 -10
  98. package/src/resources/hires.ts +0 -6
  99. package/src/resources/index.ts +15 -1
  100. package/src/resources/payroll-payment-mode-changes.ts +79 -18
  101. package/src/resources/reimbursements.ts +1157 -0
  102. package/src/resources/workflows/executions.ts +191 -0
  103. package/src/resources/workflows/index.ts +15 -0
  104. package/src/resources/workflows/workflows.ts +1661 -0
  105. package/src/resources/workflows.ts +1 -1622
  106. package/src/version.ts +1 -1
  107. package/version.d.mts +1 -1
  108. package/version.d.ts +1 -1
  109. package/version.js +1 -1
  110. package/version.mjs +1 -1
@@ -0,0 +1,74 @@
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.Executions = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Execute workflow actions like sending emails, Slack messages, and notifications
9
+ */
10
+ class Executions extends resource_1.APIResource {
11
+ /**
12
+ * Launches a new execution of the workflow's current published version. The
13
+ * workflow must use a manual trigger and be published and enabled, and the
14
+ * caller's role must have permission to run it. The request body must be empty:
15
+ * manual workflow executions accept no input parameters. Executions are not
16
+ * idempotent: every successful call starts a real execution with real side effects
17
+ * (messages, callbacks), and a duplicate request starts a second execution. Do not
18
+ * retry automatically; check an execution's status with GET
19
+ * /workflows/{id}/executions/{execution_id} instead.
20
+ *
21
+ * @example HTTP
22
+ * Representative request and response shapes.
23
+ * ```
24
+ * POST /workflows/{id}/executions/ HTTP/1.1
25
+ * Host: rest.ripplingapis.com
26
+ * Accept: application/json
27
+ * Rippling-Api-Version: 2024-08-01
28
+ *
29
+ * HTTP/1.1 201 Created
30
+ * Content-Type: application/json
31
+ *
32
+ * {
33
+ * "id": "string",
34
+ * "workflow_id": "string",
35
+ * "version_id": "string",
36
+ * "status": "pending",
37
+ * "created_at": "2025-01-01T00:00:00Z"
38
+ * }
39
+ * ```
40
+ */
41
+ create(id, options) {
42
+ return this._client.post((0, path_1.path) `/workflows/${id}/executions/`, options);
43
+ }
44
+ /**
45
+ * Returns a workflow execution's current status. Poll until the status reaches a
46
+ * terminal value (`completed`, `failed`, or `cancelled`); all other values are
47
+ * transitional.
48
+ *
49
+ * @example HTTP
50
+ * Representative request and response shapes.
51
+ * ```
52
+ * GET /workflows/{id}/executions/{execution_id}/ HTTP/1.1
53
+ * Host: rest.ripplingapis.com
54
+ * Accept: application/json
55
+ * Rippling-Api-Version: 2024-08-01
56
+ *
57
+ * HTTP/1.1 200 OK
58
+ * Content-Type: application/json
59
+ *
60
+ * {
61
+ * "id": "string",
62
+ * "workflow_id": "string",
63
+ * "version_id": "string",
64
+ * "status": "pending",
65
+ * "created_at": "2025-01-01T00:00:00Z"
66
+ * }
67
+ * ```
68
+ */
69
+ retrieve(id, executionID, options) {
70
+ return this._client.get((0, path_1.path) `/workflows/${id}/executions/${executionID}/`, options);
71
+ }
72
+ }
73
+ exports.Executions = Executions;
74
+ //# sourceMappingURL=executions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.js","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAU,EAAE,WAAmB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,eAAe,WAAW,GAAG,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AA/DD,gCA+DC"}
@@ -0,0 +1,70 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Execute workflow actions like sending emails, Slack messages, and notifications
6
+ */
7
+ export class Executions extends APIResource {
8
+ /**
9
+ * Launches a new execution of the workflow's current published version. The
10
+ * workflow must use a manual trigger and be published and enabled, and the
11
+ * caller's role must have permission to run it. The request body must be empty:
12
+ * manual workflow executions accept no input parameters. Executions are not
13
+ * idempotent: every successful call starts a real execution with real side effects
14
+ * (messages, callbacks), and a duplicate request starts a second execution. Do not
15
+ * retry automatically; check an execution's status with GET
16
+ * /workflows/{id}/executions/{execution_id} instead.
17
+ *
18
+ * @example HTTP
19
+ * Representative request and response shapes.
20
+ * ```
21
+ * POST /workflows/{id}/executions/ HTTP/1.1
22
+ * Host: rest.ripplingapis.com
23
+ * Accept: application/json
24
+ * Rippling-Api-Version: 2024-08-01
25
+ *
26
+ * HTTP/1.1 201 Created
27
+ * Content-Type: application/json
28
+ *
29
+ * {
30
+ * "id": "string",
31
+ * "workflow_id": "string",
32
+ * "version_id": "string",
33
+ * "status": "pending",
34
+ * "created_at": "2025-01-01T00:00:00Z"
35
+ * }
36
+ * ```
37
+ */
38
+ create(id, options) {
39
+ return this._client.post(path `/workflows/${id}/executions/`, options);
40
+ }
41
+ /**
42
+ * Returns a workflow execution's current status. Poll until the status reaches a
43
+ * terminal value (`completed`, `failed`, or `cancelled`); all other values are
44
+ * transitional.
45
+ *
46
+ * @example HTTP
47
+ * Representative request and response shapes.
48
+ * ```
49
+ * GET /workflows/{id}/executions/{execution_id}/ HTTP/1.1
50
+ * Host: rest.ripplingapis.com
51
+ * Accept: application/json
52
+ * Rippling-Api-Version: 2024-08-01
53
+ *
54
+ * HTTP/1.1 200 OK
55
+ * Content-Type: application/json
56
+ *
57
+ * {
58
+ * "id": "string",
59
+ * "workflow_id": "string",
60
+ * "version_id": "string",
61
+ * "status": "pending",
62
+ * "created_at": "2025-01-01T00:00:00Z"
63
+ * }
64
+ * ```
65
+ */
66
+ retrieve(id, executionID, options) {
67
+ return this._client.get(path `/workflows/${id}/executions/${executionID}/`, options);
68
+ }
69
+ }
70
+ //# sourceMappingURL=executions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAU,EAAE,WAAmB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,eAAe,WAAW,GAAG,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Executions, type ExecutionCreateResponse, type ExecutionRetrieveResponse } from "./executions.mjs";
2
+ export { Workflows, type WorkflowListResponse, type WorkflowCreateResponse, type WorkflowRetrieveResponse, type WorkflowUpdateResponse, type WorkflowListParams, type WorkflowCreateParams, type WorkflowRetrieveParams, type WorkflowUpdateParams, type WorkflowListResponsesPageCursorURL, } from "./workflows.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,yBAAqB;AACxG,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC,wBAAoB"}
@@ -0,0 +1,3 @@
1
+ export { Executions, type ExecutionCreateResponse, type ExecutionRetrieveResponse } from "./executions.js";
2
+ export { Workflows, type WorkflowListResponse, type WorkflowCreateResponse, type WorkflowRetrieveResponse, type WorkflowUpdateResponse, type WorkflowListParams, type WorkflowCreateParams, type WorkflowRetrieveParams, type WorkflowUpdateParams, type WorkflowListResponsesPageCursorURL, } from "./workflows.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,yBAAyB,EAAE,wBAAqB;AACxG,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,GACxC,uBAAoB"}
@@ -0,0 +1,9 @@
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.Workflows = exports.Executions = void 0;
5
+ var executions_1 = require("./executions.js");
6
+ Object.defineProperty(exports, "Executions", { enumerable: true, get: function () { return executions_1.Executions; } });
7
+ var workflows_1 = require("./workflows.js");
8
+ Object.defineProperty(exports, "Workflows", { enumerable: true, get: function () { return workflows_1.Workflows; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/workflows/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAAwG;AAA/F,wGAAA,UAAU,OAAA;AACnB,4CAWqB;AAVnB,sGAAA,SAAS,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Executions } from "./executions.mjs";
3
+ export { Workflows, } from "./workflows.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/workflows/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,UAAU,EAAgE,yBAAqB;AACxG,OAAO,EACL,SAAS,GAUV,wBAAoB"}