@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.
Files changed (145) hide show
  1. package/client.d.mts +20 -2
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +20 -2
  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 +4 -1
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +4 -1
  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-reference-options.d.mts +18 -19
  73. package/resources/record-detail-reference-options.d.mts.map +1 -1
  74. package/resources/record-detail-reference-options.d.ts +18 -19
  75. package/resources/record-detail-reference-options.d.ts.map +1 -1
  76. package/resources/record-detail-reference-options.js +13 -13
  77. package/resources/record-detail-reference-options.mjs +13 -13
  78. package/resources/record-detail-related-records.d.mts +293 -204
  79. package/resources/record-detail-related-records.d.mts.map +1 -1
  80. package/resources/record-detail-related-records.d.ts +293 -204
  81. package/resources/record-detail-related-records.d.ts.map +1 -1
  82. package/resources/record-detail-related-records.js +3 -3
  83. package/resources/record-detail-related-records.mjs +3 -3
  84. package/resources/record-details.d.mts +1676 -222
  85. package/resources/record-details.d.mts.map +1 -1
  86. package/resources/record-details.d.ts +1676 -222
  87. package/resources/record-details.d.ts.map +1 -1
  88. package/resources/record-details.js +76 -6
  89. package/resources/record-details.js.map +1 -1
  90. package/resources/record-details.mjs +76 -6
  91. package/resources/record-details.mjs.map +1 -1
  92. package/resources/scheduled-payout-labels.d.mts +267 -0
  93. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  94. package/resources/scheduled-payout-labels.d.ts +267 -0
  95. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  96. package/resources/scheduled-payout-labels.js +151 -0
  97. package/resources/scheduled-payout-labels.js.map +1 -0
  98. package/resources/scheduled-payout-labels.mjs +147 -0
  99. package/resources/scheduled-payout-labels.mjs.map +1 -0
  100. package/resources/scheduled-payout-types.d.mts +680 -0
  101. package/resources/scheduled-payout-types.d.mts.map +1 -0
  102. package/resources/scheduled-payout-types.d.ts +680 -0
  103. package/resources/scheduled-payout-types.d.ts.map +1 -0
  104. package/resources/scheduled-payout-types.js +546 -0
  105. package/resources/scheduled-payout-types.js.map +1 -0
  106. package/resources/scheduled-payout-types.mjs +542 -0
  107. package/resources/scheduled-payout-types.mjs.map +1 -0
  108. package/resources/scheduled-payouts.d.mts +1590 -0
  109. package/resources/scheduled-payouts.d.mts.map +1 -0
  110. package/resources/scheduled-payouts.d.ts +1590 -0
  111. package/resources/scheduled-payouts.d.ts.map +1 -0
  112. package/resources/scheduled-payouts.js +584 -0
  113. package/resources/scheduled-payouts.js.map +1 -0
  114. package/resources/scheduled-payouts.mjs +580 -0
  115. package/resources/scheduled-payouts.mjs.map +1 -0
  116. package/resources/worker-changes.d.mts +65 -10
  117. package/resources/worker-changes.d.mts.map +1 -1
  118. package/resources/worker-changes.d.ts +65 -10
  119. package/resources/worker-changes.d.ts.map +1 -1
  120. package/resources/worker-changes.js +3 -0
  121. package/resources/worker-changes.js.map +1 -1
  122. package/resources/worker-changes.mjs +3 -0
  123. package/resources/worker-changes.mjs.map +1 -1
  124. package/src/client.ts +88 -0
  125. package/src/lib/manifest/definitions/README.md +3 -1
  126. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  127. package/src/lib/manifest/definitions/index.ts +17 -0
  128. package/src/lib/manifest/manifest-builder.ts +1 -0
  129. package/src/resources/custom-objects/custom-objects.ts +16 -0
  130. package/src/resources/custom-objects/index.ts +6 -0
  131. package/src/resources/custom-objects/record-actions.ts +125 -0
  132. package/src/resources/earnings-inputs.ts +14 -2
  133. package/src/resources/index.ts +35 -0
  134. package/src/resources/record-detail-reference-options.ts +18 -19
  135. package/src/resources/record-detail-related-records.ts +298 -191
  136. package/src/resources/record-details.ts +2031 -209
  137. package/src/resources/scheduled-payout-labels.ts +373 -0
  138. package/src/resources/scheduled-payout-types.ts +755 -0
  139. package/src/resources/scheduled-payouts.ts +1949 -0
  140. package/src/resources/worker-changes.ts +71 -10
  141. package/src/version.ts +1 -1
  142. package/version.d.mts +1 -1
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
  145. package/version.mjs +1 -1
@@ -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,O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ACrG,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -0,0 +1,151 @@
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.ScheduledPayoutLabels = 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
+ /**
9
+ * Compensation associated with workers
10
+ */
11
+ class ScheduledPayoutLabels extends resource_1.APIResource {
12
+ /**
13
+ * List payout source and group labels. Paginated with limit and cursor. Filter
14
+ * with string equality joined by and on client and external_id, for example
15
+ * filter=client eq 'CUSTOM' and external_id eq 'award-1'.
16
+ *
17
+ * - Requires: `Internal Testing`
18
+ *
19
+ * @example HTTP
20
+ * Representative request and response shapes.
21
+ * ```
22
+ * GET /scheduled-payout-labels/?limit=0&cursor=cursor&filter=filter HTTP/1.1
23
+ * Host: rest.ripplingapis.com
24
+ * Accept: application/json
25
+ * Rippling-Api-Version: 2024-08-01
26
+ *
27
+ * HTTP/1.1 200 OK
28
+ * Content-Type: application/json
29
+ *
30
+ * {
31
+ * "__meta": {
32
+ * "redacted_fields": [
33
+ * {
34
+ * "name": "date_of_birth",
35
+ * "reason": "Insufficient entitlements"
36
+ * }
37
+ * ]
38
+ * },
39
+ * "results": [
40
+ * {
41
+ * "id": "string",
42
+ * "client": "VC_PLAN_CYCLE",
43
+ * "external_id": "string",
44
+ * "name": "string"
45
+ * }
46
+ * ],
47
+ * "next_link": "string"
48
+ * }
49
+ * ```
50
+ */
51
+ list(query = {}, options) {
52
+ return this._client.getAPIList('/scheduled-payout-labels/', (pagination_1.PageCursorURL), { query, ...options });
53
+ }
54
+ /**
55
+ * Get or create a source or group label. Identity is (client, external_id).
56
+ * Returns 200 with the new label, or with the existing label (keeping its name)
57
+ * when the identity exists. client must be CUSTOM; labels owned by Rippling
58
+ * systems return 400. Labels are permanent and cannot be deleted.
59
+ *
60
+ * @example HTTP
61
+ * Representative request and response shapes.
62
+ * ```
63
+ * POST /scheduled-payout-labels/ HTTP/1.1
64
+ * Host: rest.ripplingapis.com
65
+ * Content-Type: application/json
66
+ * Accept: application/json
67
+ * Rippling-Api-Version: 2024-08-01
68
+ *
69
+ * {
70
+ * "client": "VC_PLAN_CYCLE",
71
+ * "external_id": "external_id",
72
+ * "name": "name"
73
+ * }
74
+ *
75
+ * HTTP/1.1 200 OK
76
+ * Content-Type: application/json
77
+ *
78
+ * {
79
+ * "id": "string",
80
+ * "client": "VC_PLAN_CYCLE",
81
+ * "external_id": "string",
82
+ * "name": "string"
83
+ * }
84
+ * ```
85
+ */
86
+ create(body, options) {
87
+ return this._client.post('/scheduled-payout-labels/', { body, ...options });
88
+ }
89
+ /**
90
+ * Retrieve a specific payout source or group label.
91
+ *
92
+ * @example HTTP
93
+ * Representative request and response shapes.
94
+ * ```
95
+ * GET /scheduled-payout-labels/{id}/ HTTP/1.1
96
+ * Host: rest.ripplingapis.com
97
+ * Accept: application/json
98
+ * Rippling-Api-Version: 2024-08-01
99
+ *
100
+ * HTTP/1.1 200 OK
101
+ * Content-Type: application/json
102
+ *
103
+ * {
104
+ * "__meta": {
105
+ * "redacted_fields": [
106
+ * {}
107
+ * ]
108
+ * }
109
+ * }
110
+ * ```
111
+ */
112
+ retrieve(id, options) {
113
+ return this._client.get((0, path_1.path) `/scheduled-payout-labels/${id}/`, options);
114
+ }
115
+ /**
116
+ * Rename a label. Only name is writable. client and external_id are optional; when
117
+ * sent they must match the label at this ID, otherwise the request returns 400.
118
+ * Only CUSTOM labels can be renamed.
119
+ *
120
+ * @example HTTP
121
+ * Representative request and response shapes.
122
+ * ```
123
+ * PATCH /scheduled-payout-labels/{id}/ HTTP/1.1
124
+ * Host: rest.ripplingapis.com
125
+ * Content-Type: application/json
126
+ * Accept: application/json
127
+ * Rippling-Api-Version: 2024-08-01
128
+ *
129
+ * {
130
+ * "client": "VC_PLAN_CYCLE",
131
+ * "external_id": "external_id",
132
+ * "name": "name"
133
+ * }
134
+ *
135
+ * HTTP/1.1 200 OK
136
+ * Content-Type: application/json
137
+ *
138
+ * {
139
+ * "id": "string",
140
+ * "client": "VC_PLAN_CYCLE",
141
+ * "external_id": "string",
142
+ * "name": "string"
143
+ * }
144
+ * ```
145
+ */
146
+ update(id, body, options) {
147
+ return this._client.patch((0, path_1.path) `/scheduled-payout-labels/${id}/`, { body, ...options });
148
+ }
149
+ }
150
+ exports.ScheduledPayoutLabels = ScheduledPayoutLabels;
151
+ //# sourceMappingURL=scheduled-payout-labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payout-labels.js","sourceRoot":"","sources":["../src/resources/scheduled-payout-labels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2BAA2B,EAC3B,CAAA,0BAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA3JD,sDA2JC"}
@@ -0,0 +1,147 @@
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
+ /**
6
+ * Compensation associated with workers
7
+ */
8
+ export class ScheduledPayoutLabels extends APIResource {
9
+ /**
10
+ * List payout source and group labels. Paginated with limit and cursor. Filter
11
+ * with string equality joined by and on client and external_id, for example
12
+ * filter=client eq 'CUSTOM' and external_id eq 'award-1'.
13
+ *
14
+ * - Requires: `Internal Testing`
15
+ *
16
+ * @example HTTP
17
+ * Representative request and response shapes.
18
+ * ```
19
+ * GET /scheduled-payout-labels/?limit=0&cursor=cursor&filter=filter HTTP/1.1
20
+ * Host: rest.ripplingapis.com
21
+ * Accept: application/json
22
+ * Rippling-Api-Version: 2024-08-01
23
+ *
24
+ * HTTP/1.1 200 OK
25
+ * Content-Type: application/json
26
+ *
27
+ * {
28
+ * "__meta": {
29
+ * "redacted_fields": [
30
+ * {
31
+ * "name": "date_of_birth",
32
+ * "reason": "Insufficient entitlements"
33
+ * }
34
+ * ]
35
+ * },
36
+ * "results": [
37
+ * {
38
+ * "id": "string",
39
+ * "client": "VC_PLAN_CYCLE",
40
+ * "external_id": "string",
41
+ * "name": "string"
42
+ * }
43
+ * ],
44
+ * "next_link": "string"
45
+ * }
46
+ * ```
47
+ */
48
+ list(query = {}, options) {
49
+ return this._client.getAPIList('/scheduled-payout-labels/', (PageCursorURL), { query, ...options });
50
+ }
51
+ /**
52
+ * Get or create a source or group label. Identity is (client, external_id).
53
+ * Returns 200 with the new label, or with the existing label (keeping its name)
54
+ * when the identity exists. client must be CUSTOM; labels owned by Rippling
55
+ * systems return 400. Labels are permanent and cannot be deleted.
56
+ *
57
+ * @example HTTP
58
+ * Representative request and response shapes.
59
+ * ```
60
+ * POST /scheduled-payout-labels/ HTTP/1.1
61
+ * Host: rest.ripplingapis.com
62
+ * Content-Type: application/json
63
+ * Accept: application/json
64
+ * Rippling-Api-Version: 2024-08-01
65
+ *
66
+ * {
67
+ * "client": "VC_PLAN_CYCLE",
68
+ * "external_id": "external_id",
69
+ * "name": "name"
70
+ * }
71
+ *
72
+ * HTTP/1.1 200 OK
73
+ * Content-Type: application/json
74
+ *
75
+ * {
76
+ * "id": "string",
77
+ * "client": "VC_PLAN_CYCLE",
78
+ * "external_id": "string",
79
+ * "name": "string"
80
+ * }
81
+ * ```
82
+ */
83
+ create(body, options) {
84
+ return this._client.post('/scheduled-payout-labels/', { body, ...options });
85
+ }
86
+ /**
87
+ * Retrieve a specific payout source or group label.
88
+ *
89
+ * @example HTTP
90
+ * Representative request and response shapes.
91
+ * ```
92
+ * GET /scheduled-payout-labels/{id}/ HTTP/1.1
93
+ * Host: rest.ripplingapis.com
94
+ * Accept: application/json
95
+ * Rippling-Api-Version: 2024-08-01
96
+ *
97
+ * HTTP/1.1 200 OK
98
+ * Content-Type: application/json
99
+ *
100
+ * {
101
+ * "__meta": {
102
+ * "redacted_fields": [
103
+ * {}
104
+ * ]
105
+ * }
106
+ * }
107
+ * ```
108
+ */
109
+ retrieve(id, options) {
110
+ return this._client.get(path `/scheduled-payout-labels/${id}/`, options);
111
+ }
112
+ /**
113
+ * Rename a label. Only name is writable. client and external_id are optional; when
114
+ * sent they must match the label at this ID, otherwise the request returns 400.
115
+ * Only CUSTOM labels can be renamed.
116
+ *
117
+ * @example HTTP
118
+ * Representative request and response shapes.
119
+ * ```
120
+ * PATCH /scheduled-payout-labels/{id}/ HTTP/1.1
121
+ * Host: rest.ripplingapis.com
122
+ * Content-Type: application/json
123
+ * Accept: application/json
124
+ * Rippling-Api-Version: 2024-08-01
125
+ *
126
+ * {
127
+ * "client": "VC_PLAN_CYCLE",
128
+ * "external_id": "external_id",
129
+ * "name": "name"
130
+ * }
131
+ *
132
+ * HTTP/1.1 200 OK
133
+ * Content-Type: application/json
134
+ *
135
+ * {
136
+ * "id": "string",
137
+ * "client": "VC_PLAN_CYCLE",
138
+ * "external_id": "string",
139
+ * "name": "string"
140
+ * }
141
+ * ```
142
+ */
143
+ update(id, body, options) {
144
+ return this._client.patch(path `/scheduled-payout-labels/${id}/`, { body, ...options });
145
+ }
146
+ }
147
+ //# sourceMappingURL=scheduled-payout-labels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payout-labels.mjs","sourceRoot":"","sources":["../src/resources/scheduled-payout-labels.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;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,2BAA2B,EAC3B,CAAA,aAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}