@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 @@
1
+ {"version":3,"file":"reimbursements.d.ts","sourceRoot":"","sources":["../src/resources/reimbursements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgGG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAA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,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,140 @@
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.Reimbursements = 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
+ class Reimbursements extends resource_1.APIResource {
9
+ /**
10
+ * A list of reimbursements.
11
+ *
12
+ * - Requires: `Internal Testing`
13
+ * - Filterable fields: `worker_id`, `transaction_date`, `entity_id`, `vendor_id`,
14
+ * `category_id`
15
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
16
+ *
17
+ * @example HTTP
18
+ * Representative request and response shapes.
19
+ * ```
20
+ * GET /reimbursements/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
21
+ * Host: rest.ripplingapis.com
22
+ * Accept: application/json
23
+ * Rippling-Api-Version: 2024-08-01
24
+ *
25
+ * HTTP/1.1 200 OK
26
+ * Content-Type: application/json
27
+ *
28
+ * {
29
+ * "__meta": {
30
+ * "redacted_fields": [
31
+ * {
32
+ * "name": "date_of_birth",
33
+ * "reason": "Insufficient entitlements"
34
+ * }
35
+ * ]
36
+ * },
37
+ * "results": [
38
+ * {
39
+ * "id": "string",
40
+ * "created_at": "string",
41
+ * "updated_at": "string",
42
+ * "worker_id": "string",
43
+ * "company_amount": {
44
+ * "currency_type": "string",
45
+ * "value": "string"
46
+ * },
47
+ * "merchant_amount": {
48
+ * "currency_type": "string",
49
+ * "value": "string"
50
+ * },
51
+ * "transaction_date": "string",
52
+ * "accounting_date": "string",
53
+ * "gl_sync_state": "NOT_FINALIZED",
54
+ * "approval_status": "DRAFT",
55
+ * "entity_id": "string",
56
+ * "vendor": {
57
+ * "id": "string",
58
+ * "name": "string"
59
+ * },
60
+ * "gl_vendor": {
61
+ * "id": "string",
62
+ * "name": "string",
63
+ * "gl_vendor_id": "string"
64
+ * },
65
+ * "memo": "string",
66
+ * "receipt": "string",
67
+ * "attachments": [
68
+ * "string"
69
+ * ],
70
+ * "line_items": [
71
+ * {}
72
+ * ],
73
+ * "transaction_type": "REIMBURSEMENT",
74
+ * "payout_amount": {
75
+ * "currency_type": "string",
76
+ * "value": "string"
77
+ * },
78
+ * "payout_method": "NOT_SET",
79
+ * "payout_date": "string",
80
+ * "distance": 0,
81
+ * "mileage_rate": {
82
+ * "id": "string",
83
+ * "name": "string",
84
+ * "rate": {},
85
+ * "units": "km"
86
+ * },
87
+ * "start_address": "string",
88
+ * "end_address": "string",
89
+ * "trip_start_date": "string",
90
+ * "trip_end_date": "string",
91
+ * "per_diem_rate": {
92
+ * "id": "string",
93
+ * "destination_name": "string",
94
+ * "country": "string",
95
+ * "currency": "string"
96
+ * },
97
+ * "per_diem_line_items": [
98
+ * {}
99
+ * ]
100
+ * }
101
+ * ],
102
+ * "next_link": "string"
103
+ * }
104
+ * ```
105
+ */
106
+ list(query = {}, options) {
107
+ return this._client.getAPIList('/reimbursements/', (pagination_1.PageCursorURL), {
108
+ query,
109
+ ...options,
110
+ });
111
+ }
112
+ /**
113
+ * Retrieve a specific reimbursement
114
+ *
115
+ * @example HTTP
116
+ * Representative request and response shapes.
117
+ * ```
118
+ * GET /reimbursements/{id}/ HTTP/1.1
119
+ * Host: rest.ripplingapis.com
120
+ * Accept: application/json
121
+ * Rippling-Api-Version: 2024-08-01
122
+ *
123
+ * HTTP/1.1 200 OK
124
+ * Content-Type: application/json
125
+ *
126
+ * {
127
+ * "__meta": {
128
+ * "redacted_fields": [
129
+ * {}
130
+ * ]
131
+ * }
132
+ * }
133
+ * ```
134
+ */
135
+ retrieve(id, options) {
136
+ return this._client.get((0, path_1.path) `/reimbursements/${id}/`, options);
137
+ }
138
+ }
139
+ exports.Reimbursements = Reimbursements;
140
+ //# sourceMappingURL=reimbursements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reimbursements.js","sourceRoot":"","sources":["../src/resources/reimbursements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgGG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,0BAAwC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAtID,wCAsIC"}
@@ -0,0 +1,136 @@
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
+ export class Reimbursements extends APIResource {
6
+ /**
7
+ * A list of reimbursements.
8
+ *
9
+ * - Requires: `Internal Testing`
10
+ * - Filterable fields: `worker_id`, `transaction_date`, `entity_id`, `vendor_id`,
11
+ * `category_id`
12
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `transaction_date`
13
+ *
14
+ * @example HTTP
15
+ * Representative request and response shapes.
16
+ * ```
17
+ * GET /reimbursements/?filter=filter&order_by=order_by&limit=50&cursor=cursor HTTP/1.1
18
+ * Host: rest.ripplingapis.com
19
+ * Accept: application/json
20
+ * Rippling-Api-Version: 2024-08-01
21
+ *
22
+ * HTTP/1.1 200 OK
23
+ * Content-Type: application/json
24
+ *
25
+ * {
26
+ * "__meta": {
27
+ * "redacted_fields": [
28
+ * {
29
+ * "name": "date_of_birth",
30
+ * "reason": "Insufficient entitlements"
31
+ * }
32
+ * ]
33
+ * },
34
+ * "results": [
35
+ * {
36
+ * "id": "string",
37
+ * "created_at": "string",
38
+ * "updated_at": "string",
39
+ * "worker_id": "string",
40
+ * "company_amount": {
41
+ * "currency_type": "string",
42
+ * "value": "string"
43
+ * },
44
+ * "merchant_amount": {
45
+ * "currency_type": "string",
46
+ * "value": "string"
47
+ * },
48
+ * "transaction_date": "string",
49
+ * "accounting_date": "string",
50
+ * "gl_sync_state": "NOT_FINALIZED",
51
+ * "approval_status": "DRAFT",
52
+ * "entity_id": "string",
53
+ * "vendor": {
54
+ * "id": "string",
55
+ * "name": "string"
56
+ * },
57
+ * "gl_vendor": {
58
+ * "id": "string",
59
+ * "name": "string",
60
+ * "gl_vendor_id": "string"
61
+ * },
62
+ * "memo": "string",
63
+ * "receipt": "string",
64
+ * "attachments": [
65
+ * "string"
66
+ * ],
67
+ * "line_items": [
68
+ * {}
69
+ * ],
70
+ * "transaction_type": "REIMBURSEMENT",
71
+ * "payout_amount": {
72
+ * "currency_type": "string",
73
+ * "value": "string"
74
+ * },
75
+ * "payout_method": "NOT_SET",
76
+ * "payout_date": "string",
77
+ * "distance": 0,
78
+ * "mileage_rate": {
79
+ * "id": "string",
80
+ * "name": "string",
81
+ * "rate": {},
82
+ * "units": "km"
83
+ * },
84
+ * "start_address": "string",
85
+ * "end_address": "string",
86
+ * "trip_start_date": "string",
87
+ * "trip_end_date": "string",
88
+ * "per_diem_rate": {
89
+ * "id": "string",
90
+ * "destination_name": "string",
91
+ * "country": "string",
92
+ * "currency": "string"
93
+ * },
94
+ * "per_diem_line_items": [
95
+ * {}
96
+ * ]
97
+ * }
98
+ * ],
99
+ * "next_link": "string"
100
+ * }
101
+ * ```
102
+ */
103
+ list(query = {}, options) {
104
+ return this._client.getAPIList('/reimbursements/', (PageCursorURL), {
105
+ query,
106
+ ...options,
107
+ });
108
+ }
109
+ /**
110
+ * Retrieve a specific reimbursement
111
+ *
112
+ * @example HTTP
113
+ * Representative request and response shapes.
114
+ * ```
115
+ * GET /reimbursements/{id}/ HTTP/1.1
116
+ * Host: rest.ripplingapis.com
117
+ * Accept: application/json
118
+ * Rippling-Api-Version: 2024-08-01
119
+ *
120
+ * HTTP/1.1 200 OK
121
+ * Content-Type: application/json
122
+ *
123
+ * {
124
+ * "__meta": {
125
+ * "redacted_fields": [
126
+ * {}
127
+ * ]
128
+ * }
129
+ * }
130
+ * ```
131
+ */
132
+ retrieve(id, options) {
133
+ return this._client.get(path `/reimbursements/${id}/`, options);
134
+ }
135
+ }
136
+ //# sourceMappingURL=reimbursements.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reimbursements.mjs","sourceRoot":"","sources":["../src/resources/reimbursements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgGG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,aAAwC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
@@ -0,0 +1,153 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Execute workflow actions like sending emails, Slack messages, and notifications
6
+ */
7
+ export declare 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: string, options?: RequestOptions): APIPromise<ExecutionCreateResponse>;
39
+ /**
40
+ * Returns a workflow execution's current status. Poll until the status reaches a
41
+ * terminal value (`completed`, `failed`, or `cancelled`); all other values are
42
+ * transitional.
43
+ *
44
+ * @example HTTP
45
+ * Representative request and response shapes.
46
+ * ```
47
+ * GET /workflows/{id}/executions/{execution_id}/ HTTP/1.1
48
+ * Host: rest.ripplingapis.com
49
+ * Accept: application/json
50
+ * Rippling-Api-Version: 2024-08-01
51
+ *
52
+ * HTTP/1.1 200 OK
53
+ * Content-Type: application/json
54
+ *
55
+ * {
56
+ * "id": "string",
57
+ * "workflow_id": "string",
58
+ * "version_id": "string",
59
+ * "status": "pending",
60
+ * "created_at": "2025-01-01T00:00:00Z"
61
+ * }
62
+ * ```
63
+ */
64
+ retrieve(id: string, executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
65
+ }
66
+ /**
67
+ * A single execution of a workflow: one launch of the workflow's current published
68
+ * version, with a status to poll until it reaches a terminal value.
69
+ */
70
+ export interface ExecutionCreateResponse {
71
+ /**
72
+ * Unique identifier for this workflow execution. Poll it with GET
73
+ * /workflows/{id}/executions/{execution_id}.
74
+ */
75
+ id: string;
76
+ /**
77
+ * When the workflow was launched, in UTC (ISO 8601).
78
+ */
79
+ created_at: string;
80
+ /**
81
+ * The execution status. Transitional values are `pending`, `in_progress`,
82
+ * `waiting_for_response`, and `cancellation_pending`; terminal values are
83
+ * `completed`, `failed`, and `cancelled`. Poll until the status reaches a terminal
84
+ * value.
85
+ *
86
+ * - `pending`: The execution is queued and has not started.
87
+ * - `in_progress`: The workflow is executing.
88
+ * - `waiting_for_response`: The execution is paused on a human input or approval
89
+ * step.
90
+ * - `cancellation_pending`: A cancellation was requested and is being applied.
91
+ * - `completed`: Every step finished successfully.
92
+ * - `failed`: The execution stopped on an error.
93
+ * - `cancelled`: The execution was cancelled before completing.
94
+ * - `unknown`: The status could not be mapped. Contact support if this persists.
95
+ */
96
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'cancellation_pending' | 'waiting_for_response' | 'unknown';
97
+ /**
98
+ * The workflow version that ran. An execution always runs the workflow's current
99
+ * published version; the current version_id is available from GET /workflows/{id}.
100
+ */
101
+ version_id: string;
102
+ /**
103
+ * The ID of the workflow this execution belongs to. Matches the {id} path
104
+ * parameter.
105
+ */
106
+ workflow_id: string;
107
+ }
108
+ /**
109
+ * A single execution of a workflow: one launch of the workflow's current published
110
+ * version, with a status to poll until it reaches a terminal value.
111
+ */
112
+ export interface ExecutionRetrieveResponse {
113
+ /**
114
+ * Unique identifier for this workflow execution. Poll it with GET
115
+ * /workflows/{id}/executions/{execution_id}.
116
+ */
117
+ id: string;
118
+ /**
119
+ * When the workflow was launched, in UTC (ISO 8601).
120
+ */
121
+ created_at: string;
122
+ /**
123
+ * The execution status. Transitional values are `pending`, `in_progress`,
124
+ * `waiting_for_response`, and `cancellation_pending`; terminal values are
125
+ * `completed`, `failed`, and `cancelled`. Poll until the status reaches a terminal
126
+ * value.
127
+ *
128
+ * - `pending`: The execution is queued and has not started.
129
+ * - `in_progress`: The workflow is executing.
130
+ * - `waiting_for_response`: The execution is paused on a human input or approval
131
+ * step.
132
+ * - `cancellation_pending`: A cancellation was requested and is being applied.
133
+ * - `completed`: Every step finished successfully.
134
+ * - `failed`: The execution stopped on an error.
135
+ * - `cancelled`: The execution was cancelled before completing.
136
+ * - `unknown`: The status could not be mapped. Contact support if this persists.
137
+ */
138
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'cancellation_pending' | 'waiting_for_response' | 'unknown';
139
+ /**
140
+ * The workflow version that ran. An execution always runs the workflow's current
141
+ * published version; the current version_id is available from GET /workflows/{id}.
142
+ */
143
+ version_id: string;
144
+ /**
145
+ * The ID of the workflow this execution belongs to. Matches the {id} path
146
+ * parameter.
147
+ */
148
+ workflow_id: string;
149
+ }
150
+ export declare namespace Executions {
151
+ export { type ExecutionCreateResponse as ExecutionCreateResponse, type ExecutionRetrieveResponse as ExecutionRetrieveResponse, };
152
+ }
153
+ //# sourceMappingURL=executions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIjF;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG3G;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,EACF,SAAS,GACT,aAAa,GACb,WAAW,GACX,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,sBAAsB,GACtB,SAAS,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,EACF,SAAS,GACT,aAAa,GACb,WAAW,GACX,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,sBAAsB,GACtB,SAAS,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,153 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Execute workflow actions like sending emails, Slack messages, and notifications
6
+ */
7
+ export declare 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: string, options?: RequestOptions): APIPromise<ExecutionCreateResponse>;
39
+ /**
40
+ * Returns a workflow execution's current status. Poll until the status reaches a
41
+ * terminal value (`completed`, `failed`, or `cancelled`); all other values are
42
+ * transitional.
43
+ *
44
+ * @example HTTP
45
+ * Representative request and response shapes.
46
+ * ```
47
+ * GET /workflows/{id}/executions/{execution_id}/ HTTP/1.1
48
+ * Host: rest.ripplingapis.com
49
+ * Accept: application/json
50
+ * Rippling-Api-Version: 2024-08-01
51
+ *
52
+ * HTTP/1.1 200 OK
53
+ * Content-Type: application/json
54
+ *
55
+ * {
56
+ * "id": "string",
57
+ * "workflow_id": "string",
58
+ * "version_id": "string",
59
+ * "status": "pending",
60
+ * "created_at": "2025-01-01T00:00:00Z"
61
+ * }
62
+ * ```
63
+ */
64
+ retrieve(id: string, executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
65
+ }
66
+ /**
67
+ * A single execution of a workflow: one launch of the workflow's current published
68
+ * version, with a status to poll until it reaches a terminal value.
69
+ */
70
+ export interface ExecutionCreateResponse {
71
+ /**
72
+ * Unique identifier for this workflow execution. Poll it with GET
73
+ * /workflows/{id}/executions/{execution_id}.
74
+ */
75
+ id: string;
76
+ /**
77
+ * When the workflow was launched, in UTC (ISO 8601).
78
+ */
79
+ created_at: string;
80
+ /**
81
+ * The execution status. Transitional values are `pending`, `in_progress`,
82
+ * `waiting_for_response`, and `cancellation_pending`; terminal values are
83
+ * `completed`, `failed`, and `cancelled`. Poll until the status reaches a terminal
84
+ * value.
85
+ *
86
+ * - `pending`: The execution is queued and has not started.
87
+ * - `in_progress`: The workflow is executing.
88
+ * - `waiting_for_response`: The execution is paused on a human input or approval
89
+ * step.
90
+ * - `cancellation_pending`: A cancellation was requested and is being applied.
91
+ * - `completed`: Every step finished successfully.
92
+ * - `failed`: The execution stopped on an error.
93
+ * - `cancelled`: The execution was cancelled before completing.
94
+ * - `unknown`: The status could not be mapped. Contact support if this persists.
95
+ */
96
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'cancellation_pending' | 'waiting_for_response' | 'unknown';
97
+ /**
98
+ * The workflow version that ran. An execution always runs the workflow's current
99
+ * published version; the current version_id is available from GET /workflows/{id}.
100
+ */
101
+ version_id: string;
102
+ /**
103
+ * The ID of the workflow this execution belongs to. Matches the {id} path
104
+ * parameter.
105
+ */
106
+ workflow_id: string;
107
+ }
108
+ /**
109
+ * A single execution of a workflow: one launch of the workflow's current published
110
+ * version, with a status to poll until it reaches a terminal value.
111
+ */
112
+ export interface ExecutionRetrieveResponse {
113
+ /**
114
+ * Unique identifier for this workflow execution. Poll it with GET
115
+ * /workflows/{id}/executions/{execution_id}.
116
+ */
117
+ id: string;
118
+ /**
119
+ * When the workflow was launched, in UTC (ISO 8601).
120
+ */
121
+ created_at: string;
122
+ /**
123
+ * The execution status. Transitional values are `pending`, `in_progress`,
124
+ * `waiting_for_response`, and `cancellation_pending`; terminal values are
125
+ * `completed`, `failed`, and `cancelled`. Poll until the status reaches a terminal
126
+ * value.
127
+ *
128
+ * - `pending`: The execution is queued and has not started.
129
+ * - `in_progress`: The workflow is executing.
130
+ * - `waiting_for_response`: The execution is paused on a human input or approval
131
+ * step.
132
+ * - `cancellation_pending`: A cancellation was requested and is being applied.
133
+ * - `completed`: Every step finished successfully.
134
+ * - `failed`: The execution stopped on an error.
135
+ * - `cancelled`: The execution was cancelled before completing.
136
+ * - `unknown`: The status could not be mapped. Contact support if this persists.
137
+ */
138
+ status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'cancellation_pending' | 'waiting_for_response' | 'unknown';
139
+ /**
140
+ * The workflow version that ran. An execution always runs the workflow's current
141
+ * published version; the current version_id is available from GET /workflows/{id}.
142
+ */
143
+ version_id: string;
144
+ /**
145
+ * The ID of the workflow this execution belongs to. Matches the {id} path
146
+ * parameter.
147
+ */
148
+ workflow_id: string;
149
+ }
150
+ export declare namespace Executions {
151
+ export { type ExecutionCreateResponse as ExecutionCreateResponse, type ExecutionRetrieveResponse as ExecutionRetrieveResponse, };
152
+ }
153
+ //# sourceMappingURL=executions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../src/resources/workflows/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAIjF;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG3G;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,EACF,SAAS,GACT,aAAa,GACb,WAAW,GACX,QAAQ,GACR,WAAW,GACX,sBAAsB,GACtB,sBAAsB,GACtB,SAAS,CAAC;IAEd;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;;;;;;OAeG;IACH,MAAM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