@rippling/rippling-sdk 0.2.0-alpha.112 → 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.
Files changed (123) hide show
  1. package/client.d.mts +18 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +18 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +18 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +18 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
  10. package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
  11. package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
  12. package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
  13. package/lib/manifest/definitions/canvas-instance.js +31 -0
  14. package/lib/manifest/definitions/canvas-instance.js.map +1 -0
  15. package/lib/manifest/definitions/canvas-instance.mjs +28 -0
  16. package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
  17. package/lib/manifest/definitions/index.d.mts +1 -0
  18. package/lib/manifest/definitions/index.d.mts.map +1 -1
  19. package/lib/manifest/definitions/index.d.ts +1 -0
  20. package/lib/manifest/definitions/index.d.ts.map +1 -1
  21. package/lib/manifest/definitions/index.js +3 -1
  22. package/lib/manifest/definitions/index.js.map +1 -1
  23. package/lib/manifest/definitions/index.mjs +1 -0
  24. package/lib/manifest/definitions/index.mjs.map +1 -1
  25. package/lib/manifest/manifest-builder.d.mts +1 -1
  26. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  27. package/lib/manifest/manifest-builder.d.ts +1 -1
  28. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  29. package/lib/manifest/manifest-builder.js.map +1 -1
  30. package/lib/manifest/manifest-builder.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/resources/custom-objects/custom-objects.d.mts +4 -0
  33. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  34. package/resources/custom-objects/custom-objects.d.ts +4 -0
  35. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  36. package/resources/custom-objects/custom-objects.js +4 -0
  37. package/resources/custom-objects/custom-objects.js.map +1 -1
  38. package/resources/custom-objects/custom-objects.mjs +4 -0
  39. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  40. package/resources/custom-objects/index.d.mts +1 -0
  41. package/resources/custom-objects/index.d.mts.map +1 -1
  42. package/resources/custom-objects/index.d.ts +1 -0
  43. package/resources/custom-objects/index.d.ts.map +1 -1
  44. package/resources/custom-objects/index.js +3 -1
  45. package/resources/custom-objects/index.js.map +1 -1
  46. package/resources/custom-objects/index.mjs +1 -0
  47. package/resources/custom-objects/index.mjs.map +1 -1
  48. package/resources/custom-objects/record-actions.d.mts +98 -0
  49. package/resources/custom-objects/record-actions.d.mts.map +1 -0
  50. package/resources/custom-objects/record-actions.d.ts +98 -0
  51. package/resources/custom-objects/record-actions.d.ts.map +1 -0
  52. package/resources/custom-objects/record-actions.js +58 -0
  53. package/resources/custom-objects/record-actions.js.map +1 -0
  54. package/resources/custom-objects/record-actions.mjs +54 -0
  55. package/resources/custom-objects/record-actions.mjs.map +1 -0
  56. package/resources/earnings-inputs.d.mts +14 -2
  57. package/resources/earnings-inputs.d.mts.map +1 -1
  58. package/resources/earnings-inputs.d.ts +14 -2
  59. package/resources/earnings-inputs.d.ts.map +1 -1
  60. package/resources/earnings-inputs.js +14 -2
  61. package/resources/earnings-inputs.js.map +1 -1
  62. package/resources/earnings-inputs.mjs +14 -2
  63. package/resources/earnings-inputs.mjs.map +1 -1
  64. package/resources/index.d.mts +3 -0
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +3 -0
  67. package/resources/index.d.ts.map +1 -1
  68. package/resources/index.js +8 -2
  69. package/resources/index.js.map +1 -1
  70. package/resources/index.mjs +3 -0
  71. package/resources/index.mjs.map +1 -1
  72. package/resources/record-detail-related-records.d.mts +60 -30
  73. package/resources/record-detail-related-records.d.mts.map +1 -1
  74. package/resources/record-detail-related-records.d.ts +60 -30
  75. package/resources/record-detail-related-records.d.ts.map +1 -1
  76. package/resources/record-details.d.mts +120 -60
  77. package/resources/record-details.d.mts.map +1 -1
  78. package/resources/record-details.d.ts +120 -60
  79. package/resources/record-details.d.ts.map +1 -1
  80. package/resources/scheduled-payout-labels.d.mts +267 -0
  81. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  82. package/resources/scheduled-payout-labels.d.ts +267 -0
  83. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  84. package/resources/scheduled-payout-labels.js +151 -0
  85. package/resources/scheduled-payout-labels.js.map +1 -0
  86. package/resources/scheduled-payout-labels.mjs +147 -0
  87. package/resources/scheduled-payout-labels.mjs.map +1 -0
  88. package/resources/scheduled-payout-types.d.mts +680 -0
  89. package/resources/scheduled-payout-types.d.mts.map +1 -0
  90. package/resources/scheduled-payout-types.d.ts +680 -0
  91. package/resources/scheduled-payout-types.d.ts.map +1 -0
  92. package/resources/scheduled-payout-types.js +546 -0
  93. package/resources/scheduled-payout-types.js.map +1 -0
  94. package/resources/scheduled-payout-types.mjs +542 -0
  95. package/resources/scheduled-payout-types.mjs.map +1 -0
  96. package/resources/scheduled-payouts.d.mts +1590 -0
  97. package/resources/scheduled-payouts.d.mts.map +1 -0
  98. package/resources/scheduled-payouts.d.ts +1590 -0
  99. package/resources/scheduled-payouts.d.ts.map +1 -0
  100. package/resources/scheduled-payouts.js +584 -0
  101. package/resources/scheduled-payouts.js.map +1 -0
  102. package/resources/scheduled-payouts.mjs +580 -0
  103. package/resources/scheduled-payouts.mjs.map +1 -0
  104. package/src/client.ts +84 -0
  105. package/src/lib/manifest/definitions/README.md +3 -1
  106. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  107. package/src/lib/manifest/definitions/index.ts +17 -0
  108. package/src/lib/manifest/manifest-builder.ts +1 -0
  109. package/src/resources/custom-objects/custom-objects.ts +16 -0
  110. package/src/resources/custom-objects/index.ts +6 -0
  111. package/src/resources/custom-objects/record-actions.ts +125 -0
  112. package/src/resources/earnings-inputs.ts +14 -2
  113. package/src/resources/index.ts +33 -0
  114. package/src/resources/record-detail-related-records.ts +60 -30
  115. package/src/resources/record-details.ts +120 -60
  116. package/src/resources/scheduled-payout-labels.ts +373 -0
  117. package/src/resources/scheduled-payout-types.ts +755 -0
  118. package/src/resources/scheduled-payouts.ts +1949 -0
  119. package/src/version.ts +1 -1
  120. package/version.d.mts +1 -1
  121. package/version.d.ts +1 -1
  122. package/version.js +1 -1
  123. package/version.mjs +1 -1
@@ -0,0 +1,267 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as BusinessPartnersAPI from "./business-partners.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
+ /**
7
+ * Compensation associated with workers
8
+ */
9
+ export declare class ScheduledPayoutLabels extends APIResource {
10
+ /**
11
+ * List payout source and group labels. Paginated with limit and cursor. Filter
12
+ * with string equality joined by and on client and external_id, for example
13
+ * filter=client eq 'CUSTOM' and external_id eq 'award-1'.
14
+ *
15
+ * - Requires: `Internal Testing`
16
+ *
17
+ * @example HTTP
18
+ * Representative request and response shapes.
19
+ * ```
20
+ * GET /scheduled-payout-labels/?limit=0&cursor=cursor&filter=filter 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
+ * "client": "VC_PLAN_CYCLE",
41
+ * "external_id": "string",
42
+ * "name": "string"
43
+ * }
44
+ * ],
45
+ * "next_link": "string"
46
+ * }
47
+ * ```
48
+ */
49
+ list(query?: ScheduledPayoutLabelListParams | null | undefined, options?: RequestOptions): PagePromise<ScheduledPayoutLabelListResponsesPageCursorURL, ScheduledPayoutLabelListResponse>;
50
+ /**
51
+ * Get or create a source or group label. Identity is (client, external_id).
52
+ * Returns 200 with the new label, or with the existing label (keeping its name)
53
+ * when the identity exists. client must be CUSTOM; labels owned by Rippling
54
+ * systems return 400. Labels are permanent and cannot be deleted.
55
+ *
56
+ * @example HTTP
57
+ * Representative request and response shapes.
58
+ * ```
59
+ * POST /scheduled-payout-labels/ HTTP/1.1
60
+ * Host: rest.ripplingapis.com
61
+ * Content-Type: application/json
62
+ * Accept: application/json
63
+ * Rippling-Api-Version: 2024-08-01
64
+ *
65
+ * {
66
+ * "client": "VC_PLAN_CYCLE",
67
+ * "external_id": "external_id",
68
+ * "name": "name"
69
+ * }
70
+ *
71
+ * HTTP/1.1 200 OK
72
+ * Content-Type: application/json
73
+ *
74
+ * {
75
+ * "id": "string",
76
+ * "client": "VC_PLAN_CYCLE",
77
+ * "external_id": "string",
78
+ * "name": "string"
79
+ * }
80
+ * ```
81
+ */
82
+ create(body: ScheduledPayoutLabelCreateParams, options?: RequestOptions): APIPromise<ScheduledPayoutLabelCreateResponse>;
83
+ /**
84
+ * Retrieve a specific payout source or group label.
85
+ *
86
+ * @example HTTP
87
+ * Representative request and response shapes.
88
+ * ```
89
+ * GET /scheduled-payout-labels/{id}/ HTTP/1.1
90
+ * Host: rest.ripplingapis.com
91
+ * Accept: application/json
92
+ * Rippling-Api-Version: 2024-08-01
93
+ *
94
+ * HTTP/1.1 200 OK
95
+ * Content-Type: application/json
96
+ *
97
+ * {
98
+ * "__meta": {
99
+ * "redacted_fields": [
100
+ * {}
101
+ * ]
102
+ * }
103
+ * }
104
+ * ```
105
+ */
106
+ retrieve(id: string, options?: RequestOptions): APIPromise<ScheduledPayoutLabelRetrieveResponse>;
107
+ /**
108
+ * Rename a label. Only name is writable. client and external_id are optional; when
109
+ * sent they must match the label at this ID, otherwise the request returns 400.
110
+ * Only CUSTOM labels can be renamed.
111
+ *
112
+ * @example HTTP
113
+ * Representative request and response shapes.
114
+ * ```
115
+ * PATCH /scheduled-payout-labels/{id}/ HTTP/1.1
116
+ * Host: rest.ripplingapis.com
117
+ * Content-Type: application/json
118
+ * Accept: application/json
119
+ * Rippling-Api-Version: 2024-08-01
120
+ *
121
+ * {
122
+ * "client": "VC_PLAN_CYCLE",
123
+ * "external_id": "external_id",
124
+ * "name": "name"
125
+ * }
126
+ *
127
+ * HTTP/1.1 200 OK
128
+ * Content-Type: application/json
129
+ *
130
+ * {
131
+ * "id": "string",
132
+ * "client": "VC_PLAN_CYCLE",
133
+ * "external_id": "string",
134
+ * "name": "string"
135
+ * }
136
+ * ```
137
+ */
138
+ update(id: string, body: ScheduledPayoutLabelUpdateParams, options?: RequestOptions): APIPromise<ScheduledPayoutLabelUpdateResponse>;
139
+ }
140
+ export type ScheduledPayoutLabelListResponsesPageCursorURL = PageCursorURL<ScheduledPayoutLabelListResponse>;
141
+ export interface ScheduledPayoutLabelListResponse {
142
+ /**
143
+ * Unique identifier of the payout label.
144
+ */
145
+ id: string;
146
+ /**
147
+ * System that owns the label; together with external_id it is the label identity.
148
+ * Same values as the payout client.
149
+ */
150
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
151
+ /**
152
+ * External identifier unique per company and client.
153
+ */
154
+ external_id: string;
155
+ /**
156
+ * Display name of the label.
157
+ */
158
+ name: string;
159
+ }
160
+ export interface ScheduledPayoutLabelCreateResponse {
161
+ /**
162
+ * Unique identifier of the payout label.
163
+ */
164
+ id: string;
165
+ /**
166
+ * System that owns the label; together with external_id it is the label identity.
167
+ * Same values as the payout client.
168
+ */
169
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
170
+ /**
171
+ * External identifier unique per company and client.
172
+ */
173
+ external_id: string;
174
+ /**
175
+ * Display name of the label.
176
+ */
177
+ name: string;
178
+ }
179
+ /**
180
+ * Meta information for the response.
181
+ */
182
+ export interface ScheduledPayoutLabelRetrieveResponse extends BusinessPartnersAPI.Meta {
183
+ /**
184
+ * Unique identifier of the payout label.
185
+ */
186
+ id: string;
187
+ /**
188
+ * System that owns the label; together with external_id it is the label identity.
189
+ * Same values as the payout client.
190
+ */
191
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
192
+ /**
193
+ * External identifier unique per company and client.
194
+ */
195
+ external_id: string;
196
+ /**
197
+ * Display name of the label.
198
+ */
199
+ name: string;
200
+ }
201
+ export interface ScheduledPayoutLabelUpdateResponse {
202
+ /**
203
+ * Unique identifier of the payout label.
204
+ */
205
+ id: string;
206
+ /**
207
+ * System that owns the label; together with external_id it is the label identity.
208
+ * Same values as the payout client.
209
+ */
210
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
211
+ /**
212
+ * External identifier unique per company and client.
213
+ */
214
+ external_id: string;
215
+ /**
216
+ * Display name of the label.
217
+ */
218
+ name: string;
219
+ }
220
+ export interface ScheduledPayoutLabelListParams {
221
+ /**
222
+ * Opaque pagination cursor from the previous page's next_link.
223
+ */
224
+ cursor?: string;
225
+ /**
226
+ * String equality filters joined by and. Supported fields: client, external_id.
227
+ */
228
+ filter?: string;
229
+ /**
230
+ * Page size. Defaults to 50. Maximum 100.
231
+ */
232
+ limit?: number;
233
+ }
234
+ export interface ScheduledPayoutLabelCreateParams {
235
+ /**
236
+ * System that owns the label; together with external_id it is the label identity.
237
+ * Same values as the payout client.
238
+ */
239
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
240
+ /**
241
+ * External identifier unique per company and client.
242
+ */
243
+ external_id: string;
244
+ /**
245
+ * Display name of the label.
246
+ */
247
+ name: string;
248
+ }
249
+ export interface ScheduledPayoutLabelUpdateParams {
250
+ /**
251
+ * System that owns the label; together with external_id it is the label identity.
252
+ * Same values as the payout client.
253
+ */
254
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
255
+ /**
256
+ * External identifier unique per company and client.
257
+ */
258
+ external_id: string;
259
+ /**
260
+ * Display name of the label.
261
+ */
262
+ name: string;
263
+ }
264
+ export declare namespace ScheduledPayoutLabels {
265
+ export { type ScheduledPayoutLabelListResponse as ScheduledPayoutLabelListResponse, type ScheduledPayoutLabelCreateResponse as ScheduledPayoutLabelCreateResponse, type ScheduledPayoutLabelRetrieveResponse as ScheduledPayoutLabelRetrieveResponse, type ScheduledPayoutLabelUpdateResponse as ScheduledPayoutLabelUpdateResponse, type ScheduledPayoutLabelListResponsesPageCursorURL as ScheduledPayoutLabelListResponsesPageCursorURL, type ScheduledPayoutLabelListParams as ScheduledPayoutLabelListParams, type ScheduledPayoutLabelCreateParams as ScheduledPayoutLabelCreateParams, type ScheduledPayoutLabelUpdateParams as ScheduledPayoutLabelUpdateParams, };
266
+ }
267
+ //# sourceMappingURL=scheduled-payout-labels.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payout-labels.d.mts","sourceRoot":"","sources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AwB,GACxB,gBAAgB,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,MAAM,EACF,eAAe,GACf,sBAAsB,GACtB,QAAQ,GACR,eAAe,GACf,cAAc,GACd,wBAAwB,GACxB,gBAAgB,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -0,0 +1,267 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as BusinessPartnersAPI from "./business-partners.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { PageCursorURL, PagePromise } from "../core/pagination.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
+ /**
7
+ * Compensation associated with workers
8
+ */
9
+ export declare class ScheduledPayoutLabels extends APIResource {
10
+ /**
11
+ * List payout source and group labels. Paginated with limit and cursor. Filter
12
+ * with string equality joined by and on client and external_id, for example
13
+ * filter=client eq 'CUSTOM' and external_id eq 'award-1'.
14
+ *
15
+ * - Requires: `Internal Testing`
16
+ *
17
+ * @example HTTP
18
+ * Representative request and response shapes.
19
+ * ```
20
+ * GET /scheduled-payout-labels/?limit=0&cursor=cursor&filter=filter 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
+ * "client": "VC_PLAN_CYCLE",
41
+ * "external_id": "string",
42
+ * "name": "string"
43
+ * }
44
+ * ],
45
+ * "next_link": "string"
46
+ * }
47
+ * ```
48
+ */
49
+ list(query?: ScheduledPayoutLabelListParams | null | undefined, options?: RequestOptions): PagePromise<ScheduledPayoutLabelListResponsesPageCursorURL, ScheduledPayoutLabelListResponse>;
50
+ /**
51
+ * Get or create a source or group label. Identity is (client, external_id).
52
+ * Returns 200 with the new label, or with the existing label (keeping its name)
53
+ * when the identity exists. client must be CUSTOM; labels owned by Rippling
54
+ * systems return 400. Labels are permanent and cannot be deleted.
55
+ *
56
+ * @example HTTP
57
+ * Representative request and response shapes.
58
+ * ```
59
+ * POST /scheduled-payout-labels/ HTTP/1.1
60
+ * Host: rest.ripplingapis.com
61
+ * Content-Type: application/json
62
+ * Accept: application/json
63
+ * Rippling-Api-Version: 2024-08-01
64
+ *
65
+ * {
66
+ * "client": "VC_PLAN_CYCLE",
67
+ * "external_id": "external_id",
68
+ * "name": "name"
69
+ * }
70
+ *
71
+ * HTTP/1.1 200 OK
72
+ * Content-Type: application/json
73
+ *
74
+ * {
75
+ * "id": "string",
76
+ * "client": "VC_PLAN_CYCLE",
77
+ * "external_id": "string",
78
+ * "name": "string"
79
+ * }
80
+ * ```
81
+ */
82
+ create(body: ScheduledPayoutLabelCreateParams, options?: RequestOptions): APIPromise<ScheduledPayoutLabelCreateResponse>;
83
+ /**
84
+ * Retrieve a specific payout source or group label.
85
+ *
86
+ * @example HTTP
87
+ * Representative request and response shapes.
88
+ * ```
89
+ * GET /scheduled-payout-labels/{id}/ HTTP/1.1
90
+ * Host: rest.ripplingapis.com
91
+ * Accept: application/json
92
+ * Rippling-Api-Version: 2024-08-01
93
+ *
94
+ * HTTP/1.1 200 OK
95
+ * Content-Type: application/json
96
+ *
97
+ * {
98
+ * "__meta": {
99
+ * "redacted_fields": [
100
+ * {}
101
+ * ]
102
+ * }
103
+ * }
104
+ * ```
105
+ */
106
+ retrieve(id: string, options?: RequestOptions): APIPromise<ScheduledPayoutLabelRetrieveResponse>;
107
+ /**
108
+ * Rename a label. Only name is writable. client and external_id are optional; when
109
+ * sent they must match the label at this ID, otherwise the request returns 400.
110
+ * Only CUSTOM labels can be renamed.
111
+ *
112
+ * @example HTTP
113
+ * Representative request and response shapes.
114
+ * ```
115
+ * PATCH /scheduled-payout-labels/{id}/ HTTP/1.1
116
+ * Host: rest.ripplingapis.com
117
+ * Content-Type: application/json
118
+ * Accept: application/json
119
+ * Rippling-Api-Version: 2024-08-01
120
+ *
121
+ * {
122
+ * "client": "VC_PLAN_CYCLE",
123
+ * "external_id": "external_id",
124
+ * "name": "name"
125
+ * }
126
+ *
127
+ * HTTP/1.1 200 OK
128
+ * Content-Type: application/json
129
+ *
130
+ * {
131
+ * "id": "string",
132
+ * "client": "VC_PLAN_CYCLE",
133
+ * "external_id": "string",
134
+ * "name": "string"
135
+ * }
136
+ * ```
137
+ */
138
+ update(id: string, body: ScheduledPayoutLabelUpdateParams, options?: RequestOptions): APIPromise<ScheduledPayoutLabelUpdateResponse>;
139
+ }
140
+ export type ScheduledPayoutLabelListResponsesPageCursorURL = PageCursorURL<ScheduledPayoutLabelListResponse>;
141
+ export interface ScheduledPayoutLabelListResponse {
142
+ /**
143
+ * Unique identifier of the payout label.
144
+ */
145
+ id: string;
146
+ /**
147
+ * System that owns the label; together with external_id it is the label identity.
148
+ * Same values as the payout client.
149
+ */
150
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
151
+ /**
152
+ * External identifier unique per company and client.
153
+ */
154
+ external_id: string;
155
+ /**
156
+ * Display name of the label.
157
+ */
158
+ name: string;
159
+ }
160
+ export interface ScheduledPayoutLabelCreateResponse {
161
+ /**
162
+ * Unique identifier of the payout label.
163
+ */
164
+ id: string;
165
+ /**
166
+ * System that owns the label; together with external_id it is the label identity.
167
+ * Same values as the payout client.
168
+ */
169
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
170
+ /**
171
+ * External identifier unique per company and client.
172
+ */
173
+ external_id: string;
174
+ /**
175
+ * Display name of the label.
176
+ */
177
+ name: string;
178
+ }
179
+ /**
180
+ * Meta information for the response.
181
+ */
182
+ export interface ScheduledPayoutLabelRetrieveResponse extends BusinessPartnersAPI.Meta {
183
+ /**
184
+ * Unique identifier of the payout label.
185
+ */
186
+ id: string;
187
+ /**
188
+ * System that owns the label; together with external_id it is the label identity.
189
+ * Same values as the payout client.
190
+ */
191
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
192
+ /**
193
+ * External identifier unique per company and client.
194
+ */
195
+ external_id: string;
196
+ /**
197
+ * Display name of the label.
198
+ */
199
+ name: string;
200
+ }
201
+ export interface ScheduledPayoutLabelUpdateResponse {
202
+ /**
203
+ * Unique identifier of the payout label.
204
+ */
205
+ id: string;
206
+ /**
207
+ * System that owns the label; together with external_id it is the label identity.
208
+ * Same values as the payout client.
209
+ */
210
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
211
+ /**
212
+ * External identifier unique per company and client.
213
+ */
214
+ external_id: string;
215
+ /**
216
+ * Display name of the label.
217
+ */
218
+ name: string;
219
+ }
220
+ export interface ScheduledPayoutLabelListParams {
221
+ /**
222
+ * Opaque pagination cursor from the previous page's next_link.
223
+ */
224
+ cursor?: string;
225
+ /**
226
+ * String equality filters joined by and. Supported fields: client, external_id.
227
+ */
228
+ filter?: string;
229
+ /**
230
+ * Page size. Defaults to 50. Maximum 100.
231
+ */
232
+ limit?: number;
233
+ }
234
+ export interface ScheduledPayoutLabelCreateParams {
235
+ /**
236
+ * System that owns the label; together with external_id it is the label identity.
237
+ * Same values as the payout client.
238
+ */
239
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
240
+ /**
241
+ * External identifier unique per company and client.
242
+ */
243
+ external_id: string;
244
+ /**
245
+ * Display name of the label.
246
+ */
247
+ name: string;
248
+ }
249
+ export interface ScheduledPayoutLabelUpdateParams {
250
+ /**
251
+ * System that owns the label; together with external_id it is the label identity.
252
+ * Same values as the payout client.
253
+ */
254
+ client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION' | 'NEW_HIRE_AGENT';
255
+ /**
256
+ * External identifier unique per company and client.
257
+ */
258
+ external_id: string;
259
+ /**
260
+ * Display name of the label.
261
+ */
262
+ name: string;
263
+ }
264
+ export declare namespace ScheduledPayoutLabels {
265
+ export { type ScheduledPayoutLabelListResponse as ScheduledPayoutLabelListResponse, type ScheduledPayoutLabelCreateResponse as ScheduledPayoutLabelCreateResponse, type ScheduledPayoutLabelRetrieveResponse as ScheduledPayoutLabelRetrieveResponse, type ScheduledPayoutLabelUpdateResponse as ScheduledPayoutLabelUpdateResponse, type ScheduledPayoutLabelListResponsesPageCursorURL as ScheduledPayoutLabelListResponsesPageCursorURL, type ScheduledPayoutLabelListParams as ScheduledPayoutLabelListParams, type ScheduledPayoutLabelCreateParams as ScheduledPayoutLabelCreateParams, type ScheduledPayoutLabelUpdateParams as ScheduledPayoutLabelUpdateParams, };
266
+ }
267
+ //# sourceMappingURL=scheduled-payout-labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payout-labels.d.ts","sourceRoot":"","sources":["../src/resources/scheduled-payout-labels.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;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,IAAI,CACF,KAAK,GAAE,8BAA8B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,gCAAgC,CAAC;IAQhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oCAAoC,CAAC;IAIhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM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