@rippling/rippling-sdk 0.2.0-alpha.111 → 0.2.0-alpha.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.mts +20 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -2
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +1 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +1 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +3 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +1 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/record-detail-reference-options.d.mts +18 -19
- package/resources/record-detail-reference-options.d.mts.map +1 -1
- package/resources/record-detail-reference-options.d.ts +18 -19
- package/resources/record-detail-reference-options.d.ts.map +1 -1
- package/resources/record-detail-reference-options.js +13 -13
- package/resources/record-detail-reference-options.mjs +13 -13
- package/resources/record-detail-related-records.d.mts +293 -204
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +293 -204
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-detail-related-records.js +3 -3
- package/resources/record-detail-related-records.mjs +3 -3
- package/resources/record-details.d.mts +1676 -222
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +1676 -222
- package/resources/record-details.d.ts.map +1 -1
- package/resources/record-details.js +76 -6
- package/resources/record-details.js.map +1 -1
- package/resources/record-details.mjs +76 -6
- package/resources/record-details.mjs.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1590 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1590 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +584 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +580 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/resources/worker-changes.d.mts +65 -10
- package/resources/worker-changes.d.mts.map +1 -1
- package/resources/worker-changes.d.ts +65 -10
- package/resources/worker-changes.d.ts.map +1 -1
- package/resources/worker-changes.js +3 -0
- package/resources/worker-changes.js.map +1 -1
- package/resources/worker-changes.mjs +3 -0
- package/resources/worker-changes.mjs.map +1 -1
- package/src/client.ts +88 -0
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/index.ts +17 -0
- package/src/lib/manifest/manifest-builder.ts +1 -0
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +35 -0
- package/src/resources/record-detail-reference-options.ts +18 -19
- package/src/resources/record-detail-related-records.ts +298 -191
- package/src/resources/record-details.ts +2031 -209
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1949 -0
- package/src/resources/worker-changes.ts +71 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,546 @@
|
|
|
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.ScheduledPayoutTypes = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
/**
|
|
10
|
+
* Compensation associated with workers
|
|
11
|
+
*/
|
|
12
|
+
class ScheduledPayoutTypes extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* List system and custom payout types, ordered by id. Per-entity earning code
|
|
15
|
+
* mappings are configured in Rippling and are not part of this API. Paginated with
|
|
16
|
+
* limit and cursor.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `Internal Testing`
|
|
19
|
+
*
|
|
20
|
+
* @example HTTP
|
|
21
|
+
* Representative request and response shapes.
|
|
22
|
+
* ```
|
|
23
|
+
* GET /scheduled-payout-types/?expand=expand&limit=0&cursor=cursor HTTP/1.1
|
|
24
|
+
* Host: rest.ripplingapis.com
|
|
25
|
+
* Accept: application/json
|
|
26
|
+
* Rippling-Api-Version: 2024-08-01
|
|
27
|
+
*
|
|
28
|
+
* HTTP/1.1 200 OK
|
|
29
|
+
* Content-Type: application/json
|
|
30
|
+
*
|
|
31
|
+
* {
|
|
32
|
+
* "__meta": {
|
|
33
|
+
* "redacted_fields": [
|
|
34
|
+
* {
|
|
35
|
+
* "name": "date_of_birth",
|
|
36
|
+
* "reason": "Insufficient entitlements"
|
|
37
|
+
* }
|
|
38
|
+
* ]
|
|
39
|
+
* },
|
|
40
|
+
* "results": [
|
|
41
|
+
* {
|
|
42
|
+
* "id": "string",
|
|
43
|
+
* "key": "string",
|
|
44
|
+
* "display_name": "string",
|
|
45
|
+
* "is_system": false,
|
|
46
|
+
* "created_by_id": "string",
|
|
47
|
+
* "created_by": {
|
|
48
|
+
* "id": "string",
|
|
49
|
+
* "created_at": "string",
|
|
50
|
+
* "updated_at": "string",
|
|
51
|
+
* "user_id": "string",
|
|
52
|
+
* "user": {},
|
|
53
|
+
* "is_manager": "string",
|
|
54
|
+
* "manager_id": "string",
|
|
55
|
+
* "manager": {},
|
|
56
|
+
* "legal_entity_id": "string",
|
|
57
|
+
* "legal_entity": {},
|
|
58
|
+
* "country": "AF",
|
|
59
|
+
* "start_date": "string",
|
|
60
|
+
* "end_date": "string",
|
|
61
|
+
* "number": "string",
|
|
62
|
+
* "work_email": "string",
|
|
63
|
+
* "personal_email": "string",
|
|
64
|
+
* "status": "INIT",
|
|
65
|
+
* "location": {},
|
|
66
|
+
* "employment_type_id": "string",
|
|
67
|
+
* "employment_type": {},
|
|
68
|
+
* "gender": "MALE",
|
|
69
|
+
* "date_of_birth": "string",
|
|
70
|
+
* "race": "BLACK",
|
|
71
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
72
|
+
* "citizenship": "AF",
|
|
73
|
+
* "compensation_id": "string",
|
|
74
|
+
* "compensation": {},
|
|
75
|
+
* "overtime_exemption": "EXEMPT",
|
|
76
|
+
* "department_id": "string",
|
|
77
|
+
* "department": {},
|
|
78
|
+
* "teams_id": [],
|
|
79
|
+
* "teams": [],
|
|
80
|
+
* "title": "string",
|
|
81
|
+
* "title_effective_date": "string",
|
|
82
|
+
* "level_id": "string",
|
|
83
|
+
* "level": {},
|
|
84
|
+
* "job_function_id": "string",
|
|
85
|
+
* "job_function": {},
|
|
86
|
+
* "termination_details": {},
|
|
87
|
+
* "pay_schedule_id": "string",
|
|
88
|
+
* "work_schedule": {},
|
|
89
|
+
* "compensation_grade": {},
|
|
90
|
+
* "original_start_date": "string",
|
|
91
|
+
* "custom_fields": [],
|
|
92
|
+
* "country_fields": {},
|
|
93
|
+
* "business_partners_id": [],
|
|
94
|
+
* "business_partners": []
|
|
95
|
+
* }
|
|
96
|
+
* }
|
|
97
|
+
* ],
|
|
98
|
+
* "next_link": "string"
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
list(query = {}, options) {
|
|
103
|
+
return this._client.getAPIList('/scheduled-payout-types/', (pagination_1.PageCursorURL), { query, ...options });
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Create a custom payout type. Omit key; the server assigns one. Creates are not
|
|
107
|
+
* idempotent: repeating the request creates another payout type with a new key,
|
|
108
|
+
* even with the same display_name. Use PATCH /scheduled-payout-types/{key}/ to
|
|
109
|
+
* update.
|
|
110
|
+
*
|
|
111
|
+
* @example HTTP
|
|
112
|
+
* Representative request and response shapes.
|
|
113
|
+
* ```
|
|
114
|
+
* POST /scheduled-payout-types/ HTTP/1.1
|
|
115
|
+
* Host: rest.ripplingapis.com
|
|
116
|
+
* Content-Type: application/json
|
|
117
|
+
* Accept: application/json
|
|
118
|
+
* Rippling-Api-Version: 2024-08-01
|
|
119
|
+
*
|
|
120
|
+
* {
|
|
121
|
+
* "display_name": "display_name"
|
|
122
|
+
* }
|
|
123
|
+
*
|
|
124
|
+
* HTTP/1.1 200 OK
|
|
125
|
+
* Content-Type: application/json
|
|
126
|
+
*
|
|
127
|
+
* {
|
|
128
|
+
* "id": "string",
|
|
129
|
+
* "key": "string",
|
|
130
|
+
* "display_name": "string",
|
|
131
|
+
* "is_system": false,
|
|
132
|
+
* "created_by_id": "string",
|
|
133
|
+
* "created_by": {
|
|
134
|
+
* "id": "string",
|
|
135
|
+
* "created_at": "string",
|
|
136
|
+
* "updated_at": "string",
|
|
137
|
+
* "user_id": "string",
|
|
138
|
+
* "user": {
|
|
139
|
+
* "id": "string",
|
|
140
|
+
* "created_at": "string",
|
|
141
|
+
* "updated_at": "string"
|
|
142
|
+
* },
|
|
143
|
+
* "is_manager": false,
|
|
144
|
+
* "manager_id": "string",
|
|
145
|
+
* "manager": {
|
|
146
|
+
* "id": "string",
|
|
147
|
+
* "created_at": "string",
|
|
148
|
+
* "updated_at": "string"
|
|
149
|
+
* },
|
|
150
|
+
* "legal_entity_id": "string",
|
|
151
|
+
* "legal_entity": {
|
|
152
|
+
* "id": "string",
|
|
153
|
+
* "created_at": "string",
|
|
154
|
+
* "updated_at": "string"
|
|
155
|
+
* },
|
|
156
|
+
* "country": "AF",
|
|
157
|
+
* "start_date": "string",
|
|
158
|
+
* "end_date": "string",
|
|
159
|
+
* "number": 0,
|
|
160
|
+
* "work_email": "string",
|
|
161
|
+
* "personal_email": "string",
|
|
162
|
+
* "status": "INIT",
|
|
163
|
+
* "location": {
|
|
164
|
+
* "type": "REMOTE",
|
|
165
|
+
* "work_location_id": "string"
|
|
166
|
+
* },
|
|
167
|
+
* "employment_type_id": "string",
|
|
168
|
+
* "employment_type": {
|
|
169
|
+
* "id": "string",
|
|
170
|
+
* "created_at": "string",
|
|
171
|
+
* "updated_at": "string",
|
|
172
|
+
* "label": "string"
|
|
173
|
+
* },
|
|
174
|
+
* "gender": "MALE",
|
|
175
|
+
* "date_of_birth": "string",
|
|
176
|
+
* "race": "BLACK",
|
|
177
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
178
|
+
* "citizenship": "AF",
|
|
179
|
+
* "compensation_id": "string",
|
|
180
|
+
* "compensation": {
|
|
181
|
+
* "id": "string",
|
|
182
|
+
* "created_at": "string",
|
|
183
|
+
* "updated_at": "string"
|
|
184
|
+
* },
|
|
185
|
+
* "overtime_exemption": "EXEMPT",
|
|
186
|
+
* "department_id": "string",
|
|
187
|
+
* "department": {
|
|
188
|
+
* "id": "string",
|
|
189
|
+
* "created_at": "string",
|
|
190
|
+
* "updated_at": "string",
|
|
191
|
+
* "name": "string",
|
|
192
|
+
* "parent_id": "string"
|
|
193
|
+
* },
|
|
194
|
+
* "teams_id": [
|
|
195
|
+
* "string"
|
|
196
|
+
* ],
|
|
197
|
+
* "teams": [
|
|
198
|
+
* {
|
|
199
|
+
* "id": "string",
|
|
200
|
+
* "created_at": "string",
|
|
201
|
+
* "updated_at": "string",
|
|
202
|
+
* "parent_id": "string",
|
|
203
|
+
* "parent": {},
|
|
204
|
+
* "name": "string"
|
|
205
|
+
* }
|
|
206
|
+
* ],
|
|
207
|
+
* "title": "string",
|
|
208
|
+
* "title_effective_date": "string",
|
|
209
|
+
* "level_id": "string",
|
|
210
|
+
* "level": {
|
|
211
|
+
* "id": "string",
|
|
212
|
+
* "created_at": "string",
|
|
213
|
+
* "updated_at": "string",
|
|
214
|
+
* "name": "string",
|
|
215
|
+
* "parent_id": "string",
|
|
216
|
+
* "parent": {
|
|
217
|
+
* "id": "string",
|
|
218
|
+
* "created_at": "string",
|
|
219
|
+
* "updated_at": "string",
|
|
220
|
+
* "name": "string",
|
|
221
|
+
* "parent_id": "string",
|
|
222
|
+
* "parent": {},
|
|
223
|
+
* "global_level": "string",
|
|
224
|
+
* "description": "string",
|
|
225
|
+
* "scope_of_responsibilities": "string",
|
|
226
|
+
* "experience_requirements": "string",
|
|
227
|
+
* "rank": "string",
|
|
228
|
+
* "track_id": "string",
|
|
229
|
+
* "track": {}
|
|
230
|
+
* },
|
|
231
|
+
* "global_level": 0,
|
|
232
|
+
* "description": "string",
|
|
233
|
+
* "scope_of_responsibilities": "string",
|
|
234
|
+
* "experience_requirements": "string",
|
|
235
|
+
* "rank": 0,
|
|
236
|
+
* "track_id": "string",
|
|
237
|
+
* "track": {
|
|
238
|
+
* "id": "string",
|
|
239
|
+
* "created_at": "string",
|
|
240
|
+
* "updated_at": "string",
|
|
241
|
+
* "name": "string",
|
|
242
|
+
* "is_default": "string",
|
|
243
|
+
* "order": "string",
|
|
244
|
+
* "start_global_level": "string"
|
|
245
|
+
* }
|
|
246
|
+
* },
|
|
247
|
+
* "job_function_id": "string",
|
|
248
|
+
* "job_function": {
|
|
249
|
+
* "id": "string",
|
|
250
|
+
* "created_at": "string",
|
|
251
|
+
* "updated_at": "string",
|
|
252
|
+
* "name": "string"
|
|
253
|
+
* },
|
|
254
|
+
* "termination_details": {
|
|
255
|
+
* "type": "VOLUNTARY",
|
|
256
|
+
* "reason": "string"
|
|
257
|
+
* },
|
|
258
|
+
* "pay_schedule_id": "string",
|
|
259
|
+
* "work_schedule": {},
|
|
260
|
+
* "compensation_grade": {
|
|
261
|
+
* "id": "string",
|
|
262
|
+
* "label": "string"
|
|
263
|
+
* },
|
|
264
|
+
* "original_start_date": "string",
|
|
265
|
+
* "custom_fields": [
|
|
266
|
+
* null
|
|
267
|
+
* ],
|
|
268
|
+
* "country_fields": {
|
|
269
|
+
* "us": {
|
|
270
|
+
* "ssn": "string"
|
|
271
|
+
* },
|
|
272
|
+
* "ca": {
|
|
273
|
+
* "sin": "string"
|
|
274
|
+
* },
|
|
275
|
+
* "nz": {
|
|
276
|
+
* "ird_number": "string"
|
|
277
|
+
* }
|
|
278
|
+
* },
|
|
279
|
+
* "business_partners_id": [
|
|
280
|
+
* "string"
|
|
281
|
+
* ],
|
|
282
|
+
* "business_partners": [
|
|
283
|
+
* {
|
|
284
|
+
* "id": "string",
|
|
285
|
+
* "created_at": "string",
|
|
286
|
+
* "updated_at": "string",
|
|
287
|
+
* "business_partner_group_id": "string",
|
|
288
|
+
* "business_partner_group": {},
|
|
289
|
+
* "worker_id": "string",
|
|
290
|
+
* "worker": {},
|
|
291
|
+
* "client_group_id": "string",
|
|
292
|
+
* "client_group": {},
|
|
293
|
+
* "client_group_member_count": "string"
|
|
294
|
+
* }
|
|
295
|
+
* ]
|
|
296
|
+
* }
|
|
297
|
+
* }
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
create(body, options) {
|
|
301
|
+
return this._client.post('/scheduled-payout-types/', { body, ...options });
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Retrieve a specific scheduled payout type by key.
|
|
305
|
+
*
|
|
306
|
+
* @example HTTP
|
|
307
|
+
* Representative request and response shapes.
|
|
308
|
+
* ```
|
|
309
|
+
* GET /scheduled-payout-types/{id}/ HTTP/1.1
|
|
310
|
+
* Host: rest.ripplingapis.com
|
|
311
|
+
* Accept: application/json
|
|
312
|
+
* Rippling-Api-Version: 2024-08-01
|
|
313
|
+
*
|
|
314
|
+
* HTTP/1.1 200 OK
|
|
315
|
+
* Content-Type: application/json
|
|
316
|
+
*
|
|
317
|
+
* {
|
|
318
|
+
* "__meta": {
|
|
319
|
+
* "redacted_fields": [
|
|
320
|
+
* {}
|
|
321
|
+
* ]
|
|
322
|
+
* }
|
|
323
|
+
* }
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
retrieve(id, options) {
|
|
327
|
+
return this._client.get((0, path_1.path) `/scheduled-payout-types/${id}/`, options);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Rename a custom payout type. Only display_name is writable.
|
|
331
|
+
*
|
|
332
|
+
* @example HTTP
|
|
333
|
+
* Representative request and response shapes.
|
|
334
|
+
* ```
|
|
335
|
+
* PATCH /scheduled-payout-types/{id}/ HTTP/1.1
|
|
336
|
+
* Host: rest.ripplingapis.com
|
|
337
|
+
* Content-Type: application/json
|
|
338
|
+
* Accept: application/json
|
|
339
|
+
* Rippling-Api-Version: 2024-08-01
|
|
340
|
+
*
|
|
341
|
+
* {
|
|
342
|
+
* "display_name": "display_name"
|
|
343
|
+
* }
|
|
344
|
+
*
|
|
345
|
+
* HTTP/1.1 200 OK
|
|
346
|
+
* Content-Type: application/json
|
|
347
|
+
*
|
|
348
|
+
* {
|
|
349
|
+
* "id": "string",
|
|
350
|
+
* "key": "string",
|
|
351
|
+
* "display_name": "string",
|
|
352
|
+
* "is_system": false,
|
|
353
|
+
* "created_by_id": "string",
|
|
354
|
+
* "created_by": {
|
|
355
|
+
* "id": "string",
|
|
356
|
+
* "created_at": "string",
|
|
357
|
+
* "updated_at": "string",
|
|
358
|
+
* "user_id": "string",
|
|
359
|
+
* "user": {
|
|
360
|
+
* "id": "string",
|
|
361
|
+
* "created_at": "string",
|
|
362
|
+
* "updated_at": "string"
|
|
363
|
+
* },
|
|
364
|
+
* "is_manager": false,
|
|
365
|
+
* "manager_id": "string",
|
|
366
|
+
* "manager": {
|
|
367
|
+
* "id": "string",
|
|
368
|
+
* "created_at": "string",
|
|
369
|
+
* "updated_at": "string"
|
|
370
|
+
* },
|
|
371
|
+
* "legal_entity_id": "string",
|
|
372
|
+
* "legal_entity": {
|
|
373
|
+
* "id": "string",
|
|
374
|
+
* "created_at": "string",
|
|
375
|
+
* "updated_at": "string"
|
|
376
|
+
* },
|
|
377
|
+
* "country": "AF",
|
|
378
|
+
* "start_date": "string",
|
|
379
|
+
* "end_date": "string",
|
|
380
|
+
* "number": 0,
|
|
381
|
+
* "work_email": "string",
|
|
382
|
+
* "personal_email": "string",
|
|
383
|
+
* "status": "INIT",
|
|
384
|
+
* "location": {
|
|
385
|
+
* "type": "REMOTE",
|
|
386
|
+
* "work_location_id": "string"
|
|
387
|
+
* },
|
|
388
|
+
* "employment_type_id": "string",
|
|
389
|
+
* "employment_type": {
|
|
390
|
+
* "id": "string",
|
|
391
|
+
* "created_at": "string",
|
|
392
|
+
* "updated_at": "string",
|
|
393
|
+
* "label": "string"
|
|
394
|
+
* },
|
|
395
|
+
* "gender": "MALE",
|
|
396
|
+
* "date_of_birth": "string",
|
|
397
|
+
* "race": "BLACK",
|
|
398
|
+
* "ethnicity": "HISPANIC_OR_LATINO",
|
|
399
|
+
* "citizenship": "AF",
|
|
400
|
+
* "compensation_id": "string",
|
|
401
|
+
* "compensation": {
|
|
402
|
+
* "id": "string",
|
|
403
|
+
* "created_at": "string",
|
|
404
|
+
* "updated_at": "string"
|
|
405
|
+
* },
|
|
406
|
+
* "overtime_exemption": "EXEMPT",
|
|
407
|
+
* "department_id": "string",
|
|
408
|
+
* "department": {
|
|
409
|
+
* "id": "string",
|
|
410
|
+
* "created_at": "string",
|
|
411
|
+
* "updated_at": "string",
|
|
412
|
+
* "name": "string",
|
|
413
|
+
* "parent_id": "string"
|
|
414
|
+
* },
|
|
415
|
+
* "teams_id": [
|
|
416
|
+
* "string"
|
|
417
|
+
* ],
|
|
418
|
+
* "teams": [
|
|
419
|
+
* {
|
|
420
|
+
* "id": "string",
|
|
421
|
+
* "created_at": "string",
|
|
422
|
+
* "updated_at": "string",
|
|
423
|
+
* "parent_id": "string",
|
|
424
|
+
* "parent": {},
|
|
425
|
+
* "name": "string"
|
|
426
|
+
* }
|
|
427
|
+
* ],
|
|
428
|
+
* "title": "string",
|
|
429
|
+
* "title_effective_date": "string",
|
|
430
|
+
* "level_id": "string",
|
|
431
|
+
* "level": {
|
|
432
|
+
* "id": "string",
|
|
433
|
+
* "created_at": "string",
|
|
434
|
+
* "updated_at": "string",
|
|
435
|
+
* "name": "string",
|
|
436
|
+
* "parent_id": "string",
|
|
437
|
+
* "parent": {
|
|
438
|
+
* "id": "string",
|
|
439
|
+
* "created_at": "string",
|
|
440
|
+
* "updated_at": "string",
|
|
441
|
+
* "name": "string",
|
|
442
|
+
* "parent_id": "string",
|
|
443
|
+
* "parent": {},
|
|
444
|
+
* "global_level": "string",
|
|
445
|
+
* "description": "string",
|
|
446
|
+
* "scope_of_responsibilities": "string",
|
|
447
|
+
* "experience_requirements": "string",
|
|
448
|
+
* "rank": "string",
|
|
449
|
+
* "track_id": "string",
|
|
450
|
+
* "track": {}
|
|
451
|
+
* },
|
|
452
|
+
* "global_level": 0,
|
|
453
|
+
* "description": "string",
|
|
454
|
+
* "scope_of_responsibilities": "string",
|
|
455
|
+
* "experience_requirements": "string",
|
|
456
|
+
* "rank": 0,
|
|
457
|
+
* "track_id": "string",
|
|
458
|
+
* "track": {
|
|
459
|
+
* "id": "string",
|
|
460
|
+
* "created_at": "string",
|
|
461
|
+
* "updated_at": "string",
|
|
462
|
+
* "name": "string",
|
|
463
|
+
* "is_default": "string",
|
|
464
|
+
* "order": "string",
|
|
465
|
+
* "start_global_level": "string"
|
|
466
|
+
* }
|
|
467
|
+
* },
|
|
468
|
+
* "job_function_id": "string",
|
|
469
|
+
* "job_function": {
|
|
470
|
+
* "id": "string",
|
|
471
|
+
* "created_at": "string",
|
|
472
|
+
* "updated_at": "string",
|
|
473
|
+
* "name": "string"
|
|
474
|
+
* },
|
|
475
|
+
* "termination_details": {
|
|
476
|
+
* "type": "VOLUNTARY",
|
|
477
|
+
* "reason": "string"
|
|
478
|
+
* },
|
|
479
|
+
* "pay_schedule_id": "string",
|
|
480
|
+
* "work_schedule": {},
|
|
481
|
+
* "compensation_grade": {
|
|
482
|
+
* "id": "string",
|
|
483
|
+
* "label": "string"
|
|
484
|
+
* },
|
|
485
|
+
* "original_start_date": "string",
|
|
486
|
+
* "custom_fields": [
|
|
487
|
+
* null
|
|
488
|
+
* ],
|
|
489
|
+
* "country_fields": {
|
|
490
|
+
* "us": {
|
|
491
|
+
* "ssn": "string"
|
|
492
|
+
* },
|
|
493
|
+
* "ca": {
|
|
494
|
+
* "sin": "string"
|
|
495
|
+
* },
|
|
496
|
+
* "nz": {
|
|
497
|
+
* "ird_number": "string"
|
|
498
|
+
* }
|
|
499
|
+
* },
|
|
500
|
+
* "business_partners_id": [
|
|
501
|
+
* "string"
|
|
502
|
+
* ],
|
|
503
|
+
* "business_partners": [
|
|
504
|
+
* {
|
|
505
|
+
* "id": "string",
|
|
506
|
+
* "created_at": "string",
|
|
507
|
+
* "updated_at": "string",
|
|
508
|
+
* "business_partner_group_id": "string",
|
|
509
|
+
* "business_partner_group": {},
|
|
510
|
+
* "worker_id": "string",
|
|
511
|
+
* "worker": {},
|
|
512
|
+
* "client_group_id": "string",
|
|
513
|
+
* "client_group": {},
|
|
514
|
+
* "client_group_member_count": "string"
|
|
515
|
+
* }
|
|
516
|
+
* ]
|
|
517
|
+
* }
|
|
518
|
+
* }
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
update(id, body, options) {
|
|
522
|
+
return this._client.patch((0, path_1.path) `/scheduled-payout-types/${id}/`, { body, ...options });
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* Delete a custom payout type. Built-in payout types cannot be deleted. Returns
|
|
526
|
+
* 204 with no body.
|
|
527
|
+
*
|
|
528
|
+
* @example HTTP
|
|
529
|
+
* Representative request and response shapes.
|
|
530
|
+
* ```
|
|
531
|
+
* DELETE /scheduled-payout-types/{id}/ HTTP/1.1
|
|
532
|
+
* Host: rest.ripplingapis.com
|
|
533
|
+
* Rippling-Api-Version: 2024-08-01
|
|
534
|
+
*
|
|
535
|
+
* HTTP/1.1 204 No Content
|
|
536
|
+
* ```
|
|
537
|
+
*/
|
|
538
|
+
delete(id, options) {
|
|
539
|
+
return this._client.delete((0, path_1.path) `/scheduled-payout-types/${id}/`, {
|
|
540
|
+
...options,
|
|
541
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
exports.ScheduledPayoutTypes = ScheduledPayoutTypes;
|
|
546
|
+
//# sourceMappingURL=scheduled-payout-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduled-payout-types.js","sourceRoot":"","sources":["../src/resources/scheduled-payout-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwFG;IACH,IAAI,CACF,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,0BAA0B,EAC1B,CAAA,0BAA8C,CAAA,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkMG;IACH,MAAM,CACJ,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+LG;IACH,MAAM,CACJ,EAAU,EACV,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,GAAG,EAAE;YAC/D,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;AAtiBD,oDAsiBC"}
|