@rippling/rippling-sdk 0.2.0-alpha.97 → 0.2.0-alpha.99
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 +25 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -4
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +22 -1
- package/client.mjs.map +1 -1
- package/lib/manifest/acp-agent-source-files.d.mts +1 -1
- package/lib/manifest/acp-agent-source-files.d.ts +1 -1
- package/lib/manifest/acp-agent-source-files.js +3 -10
- package/lib/manifest/acp-agent-source-files.js.map +1 -1
- package/lib/manifest/acp-agent-source-files.mjs +3 -10
- package/lib/manifest/acp-agent-source-files.mjs.map +1 -1
- package/package.json +2 -1
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metadata/index.d.mts +1 -1
- package/resources/metadata/index.d.mts.map +1 -1
- package/resources/metadata/index.d.ts +1 -1
- package/resources/metadata/index.d.ts.map +1 -1
- package/resources/metadata/index.js.map +1 -1
- package/resources/metadata/index.mjs +1 -1
- package/resources/metadata/index.mjs.map +1 -1
- package/resources/metadata/metadata.d.mts +47 -1
- package/resources/metadata/metadata.d.mts.map +1 -1
- package/resources/metadata/metadata.d.ts +47 -1
- package/resources/metadata/metadata.d.ts.map +1 -1
- package/resources/metadata/metadata.js +15 -0
- package/resources/metadata/metadata.js.map +1 -1
- package/resources/metadata/metadata.mjs +15 -0
- package/resources/metadata/metadata.mjs.map +1 -1
- package/resources/sandboxes.d.mts +224 -1
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +224 -1
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +6 -0
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/sites.d.mts +3 -0
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +3 -0
- package/resources/sites.d.ts.map +1 -1
- package/resources/sites.js +3 -0
- package/resources/sites.js.map +1 -1
- package/resources/sites.mjs +3 -0
- package/resources/sites.mjs.map +1 -1
- package/resources/variable-compensation-payout-labels.d.mts +155 -0
- package/resources/variable-compensation-payout-labels.d.mts.map +1 -0
- package/resources/variable-compensation-payout-labels.d.ts +155 -0
- package/resources/variable-compensation-payout-labels.d.ts.map +1 -0
- package/resources/variable-compensation-payout-labels.js +41 -0
- package/resources/variable-compensation-payout-labels.js.map +1 -0
- package/resources/variable-compensation-payout-labels.mjs +37 -0
- package/resources/variable-compensation-payout-labels.mjs.map +1 -0
- package/resources/variable-compensation-payout-types.d.mts +334 -0
- package/resources/variable-compensation-payout-types.d.mts.map +1 -0
- package/resources/variable-compensation-payout-types.d.ts +334 -0
- package/resources/variable-compensation-payout-types.d.ts.map +1 -0
- package/resources/variable-compensation-payout-types.js +52 -0
- package/resources/variable-compensation-payout-types.js.map +1 -0
- package/resources/variable-compensation-payout-types.mjs +48 -0
- package/resources/variable-compensation-payout-types.mjs.map +1 -0
- package/resources/variable-compensation-payout-writes.d.mts +6 -17
- package/resources/variable-compensation-payout-writes.d.mts.map +1 -1
- package/resources/variable-compensation-payout-writes.d.ts +6 -17
- package/resources/variable-compensation-payout-writes.d.ts.map +1 -1
- package/resources/variable-compensation-payout-writes.js +2 -1
- package/resources/variable-compensation-payout-writes.js.map +1 -1
- package/resources/variable-compensation-payout-writes.mjs +2 -1
- package/resources/variable-compensation-payout-writes.mjs.map +1 -1
- package/resources/variable-compensation-payouts.d.mts +501 -0
- package/resources/variable-compensation-payouts.d.mts.map +1 -0
- package/resources/variable-compensation-payouts.d.ts +501 -0
- package/resources/variable-compensation-payouts.d.ts.map +1 -0
- package/resources/variable-compensation-payouts.js +41 -0
- package/resources/variable-compensation-payouts.js.map +1 -0
- package/resources/variable-compensation-payouts.mjs +37 -0
- package/resources/variable-compensation-payouts.mjs.map +1 -0
- package/src/client.ts +94 -1
- package/src/lib/manifest/acp-agent-source-files.ts +3 -13
- package/src/resources/index.ts +38 -1
- package/src/resources/metadata/index.ts +7 -1
- package/src/resources/metadata/metadata.ts +54 -0
- package/src/resources/sandboxes.ts +265 -0
- package/src/resources/sites.ts +3 -0
- package/src/resources/variable-compensation-payout-labels.ts +227 -0
- package/src/resources/variable-compensation-payout-types.ts +440 -0
- package/src/resources/variable-compensation-payout-writes.ts +6 -20
- package/src/resources/variable-compensation-payouts.ts +702 -0
- 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,227 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Compensation associated with workers
|
|
12
|
+
*/
|
|
13
|
+
export class VariableCompensationPayoutLabels extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* A list of variable compensation payout labels.
|
|
16
|
+
*
|
|
17
|
+
* - Requires: `API Tier 1`
|
|
18
|
+
*/
|
|
19
|
+
list(
|
|
20
|
+
query: VariableCompensationPayoutLabelListParams | null | undefined = {},
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): PagePromise<
|
|
23
|
+
VariableCompensationPayoutLabelListResponsesPageCursorURL,
|
|
24
|
+
VariableCompensationPayoutLabelListResponse
|
|
25
|
+
> {
|
|
26
|
+
return this._client.getAPIList(
|
|
27
|
+
'/variable-compensation-payout-labels/',
|
|
28
|
+
PageCursorURL<VariableCompensationPayoutLabelListResponse>,
|
|
29
|
+
{ query, ...options },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get or create a source or group label. Identity is (client, external_id). New
|
|
35
|
+
* identities return 201; an existing match returns 200.
|
|
36
|
+
*/
|
|
37
|
+
create(
|
|
38
|
+
body: VariableCompensationPayoutLabelCreateParams,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<VariableCompensationPayoutLabelCreateResponse> {
|
|
41
|
+
return this._client.post('/variable-compensation-payout-labels/', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a specific payout source or group label.
|
|
46
|
+
*/
|
|
47
|
+
retrieve(
|
|
48
|
+
id: string,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): APIPromise<VariableCompensationPayoutLabelRetrieveResponse> {
|
|
51
|
+
return this._client.get(path`/variable-compensation-payout-labels/${id}/`, options);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Update a specific variable compensation payout label.
|
|
56
|
+
*/
|
|
57
|
+
update(
|
|
58
|
+
id: string,
|
|
59
|
+
body: VariableCompensationPayoutLabelUpdateParams,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): APIPromise<VariableCompensationPayoutLabelUpdateResponse> {
|
|
62
|
+
return this._client.patch(path`/variable-compensation-payout-labels/${id}/`, { body, ...options });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type VariableCompensationPayoutLabelListResponsesPageCursorURL =
|
|
67
|
+
PageCursorURL<VariableCompensationPayoutLabelListResponse>;
|
|
68
|
+
|
|
69
|
+
export interface VariableCompensationPayoutLabelListResponse {
|
|
70
|
+
/**
|
|
71
|
+
* Unique identifier of the payout label.
|
|
72
|
+
*/
|
|
73
|
+
id: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Client system that created the label.
|
|
77
|
+
*/
|
|
78
|
+
client: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* External identifier unique per company and client.
|
|
82
|
+
*/
|
|
83
|
+
external_id: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Display name of the label.
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface VariableCompensationPayoutLabelCreateResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Unique identifier of the payout label.
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Client system that created the label.
|
|
99
|
+
*/
|
|
100
|
+
client: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* External identifier unique per company and client.
|
|
104
|
+
*/
|
|
105
|
+
external_id: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Display name of the label.
|
|
109
|
+
*/
|
|
110
|
+
name: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Meta information for the response.
|
|
115
|
+
*/
|
|
116
|
+
export interface VariableCompensationPayoutLabelRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
117
|
+
/**
|
|
118
|
+
* Unique identifier of the payout label.
|
|
119
|
+
*/
|
|
120
|
+
id: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Client system that created the label.
|
|
124
|
+
*/
|
|
125
|
+
client: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* External identifier unique per company and client.
|
|
129
|
+
*/
|
|
130
|
+
external_id: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Display name of the label.
|
|
134
|
+
*/
|
|
135
|
+
name: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface VariableCompensationPayoutLabelUpdateResponse {
|
|
139
|
+
/**
|
|
140
|
+
* Unique identifier of the payout label.
|
|
141
|
+
*/
|
|
142
|
+
id: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Client system that created the label.
|
|
146
|
+
*/
|
|
147
|
+
client: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* External identifier unique per company and client.
|
|
151
|
+
*/
|
|
152
|
+
external_id: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Display name of the label.
|
|
156
|
+
*/
|
|
157
|
+
name: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface VariableCompensationPayoutLabelListParams {
|
|
161
|
+
/**
|
|
162
|
+
* Client system that created the label.
|
|
163
|
+
*/
|
|
164
|
+
client?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Opaque pagination cursor from the previous page's next_link.
|
|
168
|
+
*/
|
|
169
|
+
cursor?: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* External identifier unique per company and client.
|
|
173
|
+
*/
|
|
174
|
+
external_id?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Page size. Defaults to 50. Maximum 100.
|
|
178
|
+
*/
|
|
179
|
+
limit?: number;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface VariableCompensationPayoutLabelCreateParams {
|
|
183
|
+
/**
|
|
184
|
+
* Client system that created the label.
|
|
185
|
+
*/
|
|
186
|
+
client: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* External identifier unique per company and client.
|
|
190
|
+
*/
|
|
191
|
+
external_id: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Display name of the label.
|
|
195
|
+
*/
|
|
196
|
+
name: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface VariableCompensationPayoutLabelUpdateParams {
|
|
200
|
+
/**
|
|
201
|
+
* Client system that created the label.
|
|
202
|
+
*/
|
|
203
|
+
client: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* External identifier unique per company and client.
|
|
207
|
+
*/
|
|
208
|
+
external_id: string;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Display name of the label.
|
|
212
|
+
*/
|
|
213
|
+
name: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export declare namespace VariableCompensationPayoutLabels {
|
|
217
|
+
export {
|
|
218
|
+
type VariableCompensationPayoutLabelListResponse as VariableCompensationPayoutLabelListResponse,
|
|
219
|
+
type VariableCompensationPayoutLabelCreateResponse as VariableCompensationPayoutLabelCreateResponse,
|
|
220
|
+
type VariableCompensationPayoutLabelRetrieveResponse as VariableCompensationPayoutLabelRetrieveResponse,
|
|
221
|
+
type VariableCompensationPayoutLabelUpdateResponse as VariableCompensationPayoutLabelUpdateResponse,
|
|
222
|
+
type VariableCompensationPayoutLabelListResponsesPageCursorURL as VariableCompensationPayoutLabelListResponsesPageCursorURL,
|
|
223
|
+
type VariableCompensationPayoutLabelListParams as VariableCompensationPayoutLabelListParams,
|
|
224
|
+
type VariableCompensationPayoutLabelCreateParams as VariableCompensationPayoutLabelCreateParams,
|
|
225
|
+
type VariableCompensationPayoutLabelUpdateParams as VariableCompensationPayoutLabelUpdateParams,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import { APIPromise } from '../core/api-promise';
|
|
6
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
7
|
+
import { buildHeaders } from '../internal/headers';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Compensation associated with workers
|
|
13
|
+
*/
|
|
14
|
+
export class VariableCompensationPayoutTypes extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* A list of variable compensation payout types.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `API Tier 1`
|
|
19
|
+
*/
|
|
20
|
+
list(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): PagePromise<
|
|
23
|
+
VariableCompensationPayoutTypeListResponsesPageCursorURL,
|
|
24
|
+
VariableCompensationPayoutTypeListResponse
|
|
25
|
+
> {
|
|
26
|
+
return this._client.getAPIList(
|
|
27
|
+
'/variable-compensation-payout-types/',
|
|
28
|
+
PageCursorURL<VariableCompensationPayoutTypeListResponse>,
|
|
29
|
+
options,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create a custom payout type. Omit key; the server assigns one. Use PATCH
|
|
35
|
+
* /variable-compensation-payout-types/{key}/ to update.
|
|
36
|
+
*/
|
|
37
|
+
create(
|
|
38
|
+
body: VariableCompensationPayoutTypeCreateParams,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<VariableCompensationPayoutTypeCreateResponse> {
|
|
41
|
+
return this._client.post('/variable-compensation-payout-types/', { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a specific variable compensation payout type by key.
|
|
46
|
+
*/
|
|
47
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VariableCompensationPayoutTypeRetrieveResponse> {
|
|
48
|
+
return this._client.get(path`/variable-compensation-payout-types/${id}/`, options);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Update a custom payout type's display name or per-entity earning mappings.
|
|
53
|
+
*/
|
|
54
|
+
update(
|
|
55
|
+
id: string,
|
|
56
|
+
body: VariableCompensationPayoutTypeUpdateParams,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): APIPromise<VariableCompensationPayoutTypeUpdateResponse> {
|
|
59
|
+
return this._client.patch(path`/variable-compensation-payout-types/${id}/`, { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Delete a custom payout type. Built-in payout types cannot be deleted. Returns
|
|
64
|
+
* 200 with a null body.
|
|
65
|
+
*/
|
|
66
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
67
|
+
return this._client.delete(path`/variable-compensation-payout-types/${id}/`, {
|
|
68
|
+
...options,
|
|
69
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type VariableCompensationPayoutTypeListResponsesPageCursorURL =
|
|
75
|
+
PageCursorURL<VariableCompensationPayoutTypeListResponse>;
|
|
76
|
+
|
|
77
|
+
export interface VariableCompensationPayoutTypeListResponse {
|
|
78
|
+
/**
|
|
79
|
+
* Unique identifier of the payout type. Same as key.
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Display name of the payout type.
|
|
85
|
+
*/
|
|
86
|
+
display_name: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Whether this is a built-in payout type.
|
|
90
|
+
*/
|
|
91
|
+
is_system: boolean;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Stable payout type key assigned by the server on create.
|
|
95
|
+
*/
|
|
96
|
+
key: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* ID of the worker who created this custom payout type.
|
|
100
|
+
*/
|
|
101
|
+
created_by?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Per-entity earning code mappings.
|
|
105
|
+
*/
|
|
106
|
+
mappings?: Array<VariableCompensationPayoutTypeListResponse.Mapping>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export namespace VariableCompensationPayoutTypeListResponse {
|
|
110
|
+
export interface Mapping {
|
|
111
|
+
/**
|
|
112
|
+
* ID of the payroll entity this mapping applies to.
|
|
113
|
+
*/
|
|
114
|
+
entity_id: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Mapping health status.
|
|
118
|
+
*/
|
|
119
|
+
health: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Mapped earning code for the payroll entity.
|
|
123
|
+
*/
|
|
124
|
+
earning_code?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
128
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
129
|
+
* this field.
|
|
130
|
+
*/
|
|
131
|
+
earning_display_name?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
135
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
136
|
+
* this field.
|
|
137
|
+
*/
|
|
138
|
+
entity_name?: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface VariableCompensationPayoutTypeCreateResponse {
|
|
143
|
+
/**
|
|
144
|
+
* Unique identifier of the payout type. Same as key.
|
|
145
|
+
*/
|
|
146
|
+
id: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Display name of the payout type.
|
|
150
|
+
*/
|
|
151
|
+
display_name: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Whether this is a built-in payout type.
|
|
155
|
+
*/
|
|
156
|
+
is_system: boolean;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Stable payout type key assigned by the server on create.
|
|
160
|
+
*/
|
|
161
|
+
key: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* ID of the worker who created this custom payout type.
|
|
165
|
+
*/
|
|
166
|
+
created_by?: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Per-entity earning code mappings.
|
|
170
|
+
*/
|
|
171
|
+
mappings?: Array<VariableCompensationPayoutTypeCreateResponse.Mapping>;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export namespace VariableCompensationPayoutTypeCreateResponse {
|
|
175
|
+
export interface Mapping {
|
|
176
|
+
/**
|
|
177
|
+
* ID of the payroll entity this mapping applies to.
|
|
178
|
+
*/
|
|
179
|
+
entity_id: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Mapping health status.
|
|
183
|
+
*/
|
|
184
|
+
health: string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Mapped earning code for the payroll entity.
|
|
188
|
+
*/
|
|
189
|
+
earning_code?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
193
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
194
|
+
* this field.
|
|
195
|
+
*/
|
|
196
|
+
earning_display_name?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
200
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
201
|
+
* this field.
|
|
202
|
+
*/
|
|
203
|
+
entity_name?: string;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Meta information for the response.
|
|
209
|
+
*/
|
|
210
|
+
export interface VariableCompensationPayoutTypeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
211
|
+
/**
|
|
212
|
+
* Unique identifier of the payout type. Same as key.
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Display name of the payout type.
|
|
218
|
+
*/
|
|
219
|
+
display_name: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Whether this is a built-in payout type.
|
|
223
|
+
*/
|
|
224
|
+
is_system: boolean;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Stable payout type key assigned by the server on create.
|
|
228
|
+
*/
|
|
229
|
+
key: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* ID of the worker who created this custom payout type.
|
|
233
|
+
*/
|
|
234
|
+
created_by?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Per-entity earning code mappings.
|
|
238
|
+
*/
|
|
239
|
+
mappings?: Array<VariableCompensationPayoutTypeRetrieveResponse.Mapping>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export namespace VariableCompensationPayoutTypeRetrieveResponse {
|
|
243
|
+
export interface Mapping {
|
|
244
|
+
/**
|
|
245
|
+
* ID of the payroll entity this mapping applies to.
|
|
246
|
+
*/
|
|
247
|
+
entity_id: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Mapping health status.
|
|
251
|
+
*/
|
|
252
|
+
health: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Mapped earning code for the payroll entity.
|
|
256
|
+
*/
|
|
257
|
+
earning_code?: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
261
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
262
|
+
* this field.
|
|
263
|
+
*/
|
|
264
|
+
earning_display_name?: string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
268
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
269
|
+
* this field.
|
|
270
|
+
*/
|
|
271
|
+
entity_name?: string;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface VariableCompensationPayoutTypeUpdateResponse {
|
|
276
|
+
/**
|
|
277
|
+
* Unique identifier of the payout type. Same as key.
|
|
278
|
+
*/
|
|
279
|
+
id: string;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Display name of the payout type.
|
|
283
|
+
*/
|
|
284
|
+
display_name: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Whether this is a built-in payout type.
|
|
288
|
+
*/
|
|
289
|
+
is_system: boolean;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Stable payout type key assigned by the server on create.
|
|
293
|
+
*/
|
|
294
|
+
key: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* ID of the worker who created this custom payout type.
|
|
298
|
+
*/
|
|
299
|
+
created_by?: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Per-entity earning code mappings.
|
|
303
|
+
*/
|
|
304
|
+
mappings?: Array<VariableCompensationPayoutTypeUpdateResponse.Mapping>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export namespace VariableCompensationPayoutTypeUpdateResponse {
|
|
308
|
+
export interface Mapping {
|
|
309
|
+
/**
|
|
310
|
+
* ID of the payroll entity this mapping applies to.
|
|
311
|
+
*/
|
|
312
|
+
entity_id: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Mapping health status.
|
|
316
|
+
*/
|
|
317
|
+
health: string;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Mapped earning code for the payroll entity.
|
|
321
|
+
*/
|
|
322
|
+
earning_code?: string;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
326
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
327
|
+
* this field.
|
|
328
|
+
*/
|
|
329
|
+
earning_display_name?: string;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
333
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
334
|
+
* this field.
|
|
335
|
+
*/
|
|
336
|
+
entity_name?: string;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface VariableCompensationPayoutTypeCreateParams {
|
|
341
|
+
/**
|
|
342
|
+
* Display name of the payout type.
|
|
343
|
+
*/
|
|
344
|
+
display_name: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Per-entity earning code mappings.
|
|
348
|
+
*/
|
|
349
|
+
mappings?: Array<VariableCompensationPayoutTypeCreateParams.Mapping>;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export namespace VariableCompensationPayoutTypeCreateParams {
|
|
353
|
+
export interface Mapping {
|
|
354
|
+
/**
|
|
355
|
+
* ID of the payroll entity this mapping applies to.
|
|
356
|
+
*/
|
|
357
|
+
entity_id: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Mapping health status.
|
|
361
|
+
*/
|
|
362
|
+
health: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Mapped earning code for the payroll entity.
|
|
366
|
+
*/
|
|
367
|
+
earning_code?: string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
371
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
372
|
+
* this field.
|
|
373
|
+
*/
|
|
374
|
+
earning_display_name?: string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
378
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
379
|
+
* this field.
|
|
380
|
+
*/
|
|
381
|
+
entity_name?: string;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export interface VariableCompensationPayoutTypeUpdateParams {
|
|
386
|
+
/**
|
|
387
|
+
* Display name of the payout type.
|
|
388
|
+
*/
|
|
389
|
+
display_name: string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Per-entity earning code mappings.
|
|
393
|
+
*/
|
|
394
|
+
mappings?: Array<VariableCompensationPayoutTypeUpdateParams.Mapping>;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export namespace VariableCompensationPayoutTypeUpdateParams {
|
|
398
|
+
export interface Mapping {
|
|
399
|
+
/**
|
|
400
|
+
* ID of the payroll entity this mapping applies to.
|
|
401
|
+
*/
|
|
402
|
+
entity_id: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Mapping health status.
|
|
406
|
+
*/
|
|
407
|
+
health: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Mapped earning code for the payroll entity.
|
|
411
|
+
*/
|
|
412
|
+
earning_code?: string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Display name of the mapped earning code at response time. Convenience snapshot
|
|
416
|
+
* for the mapping matrix; authoritative earning metadata lives in payroll, not
|
|
417
|
+
* this field.
|
|
418
|
+
*/
|
|
419
|
+
earning_display_name?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Display name of the payroll entity at response time. Convenience snapshot for
|
|
423
|
+
* the mapping matrix; authoritative entity data lives on payroll entities, not
|
|
424
|
+
* this field.
|
|
425
|
+
*/
|
|
426
|
+
entity_name?: string;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export declare namespace VariableCompensationPayoutTypes {
|
|
431
|
+
export {
|
|
432
|
+
type VariableCompensationPayoutTypeListResponse as VariableCompensationPayoutTypeListResponse,
|
|
433
|
+
type VariableCompensationPayoutTypeCreateResponse as VariableCompensationPayoutTypeCreateResponse,
|
|
434
|
+
type VariableCompensationPayoutTypeRetrieveResponse as VariableCompensationPayoutTypeRetrieveResponse,
|
|
435
|
+
type VariableCompensationPayoutTypeUpdateResponse as VariableCompensationPayoutTypeUpdateResponse,
|
|
436
|
+
type VariableCompensationPayoutTypeListResponsesPageCursorURL as VariableCompensationPayoutTypeListResponsesPageCursorURL,
|
|
437
|
+
type VariableCompensationPayoutTypeCreateParams as VariableCompensationPayoutTypeCreateParams,
|
|
438
|
+
type VariableCompensationPayoutTypeUpdateParams as VariableCompensationPayoutTypeUpdateParams,
|
|
439
|
+
};
|
|
440
|
+
}
|