@rippling/rippling-sdk 0.2.0-alpha.112 → 0.2.0-alpha.114
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 +41 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +41 -8
- package/client.d.ts.map +1 -1
- package/client.js +35 -0
- package/client.js.map +1 -1
- package/client.mjs +35 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/app.d.mts +20 -1
- package/lib/manifest/app.d.mts.map +1 -1
- package/lib/manifest/app.d.ts +20 -1
- package/lib/manifest/app.d.ts.map +1 -1
- package/lib/manifest/app.js +50 -0
- package/lib/manifest/app.js.map +1 -1
- package/lib/manifest/app.mjs +51 -1
- package/lib/manifest/app.mjs.map +1 -1
- package/lib/manifest/composition.d.mts +3 -0
- package/lib/manifest/composition.d.mts.map +1 -1
- package/lib/manifest/composition.d.ts +3 -0
- package/lib/manifest/composition.d.ts.map +1 -1
- package/lib/manifest/composition.js.map +1 -1
- package/lib/manifest/composition.mjs.map +1 -1
- package/lib/manifest/definitions/app.js +4 -1
- package/lib/manifest/definitions/app.js.map +1 -1
- package/lib/manifest/definitions/app.mjs +4 -1
- package/lib/manifest/definitions/app.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/function.d.mts.map +1 -1
- package/lib/manifest/definitions/function.d.ts.map +1 -1
- package/lib/manifest/definitions/function.js +1 -0
- package/lib/manifest/definitions/function.js.map +1 -1
- package/lib/manifest/definitions/function.mjs +1 -0
- package/lib/manifest/definitions/function.mjs.map +1 -1
- package/lib/manifest/definitions/group.d.mts +64 -0
- package/lib/manifest/definitions/group.d.mts.map +1 -0
- package/lib/manifest/definitions/group.d.ts +64 -0
- package/lib/manifest/definitions/group.d.ts.map +1 -0
- package/lib/manifest/definitions/group.js +57 -0
- package/lib/manifest/definitions/group.js.map +1 -0
- package/lib/manifest/definitions/group.mjs +50 -0
- package/lib/manifest/definitions/group.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +5 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +5 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +9 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +3 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/definitions/saved-super-group.d.mts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.d.ts +12 -0
- package/lib/manifest/definitions/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/definitions/saved-super-group.js +26 -0
- package/lib/manifest/definitions/saved-super-group.js.map +1 -0
- package/lib/manifest/definitions/saved-super-group.mjs +21 -0
- package/lib/manifest/definitions/saved-super-group.mjs.map +1 -0
- package/lib/manifest/existing-manifest-context.d.mts +3 -0
- package/lib/manifest/existing-manifest-context.d.mts.map +1 -1
- package/lib/manifest/existing-manifest-context.d.ts +3 -0
- package/lib/manifest/existing-manifest-context.d.ts.map +1 -1
- package/lib/manifest/existing-manifest-context.js +15 -0
- package/lib/manifest/existing-manifest-context.js.map +1 -1
- package/lib/manifest/existing-manifest-context.mjs +15 -0
- package/lib/manifest/existing-manifest-context.mjs.map +1 -1
- package/lib/manifest/group.d.mts +83 -0
- package/lib/manifest/group.d.mts.map +1 -0
- package/lib/manifest/group.d.ts +83 -0
- package/lib/manifest/group.d.ts.map +1 -0
- package/lib/manifest/group.js +207 -0
- package/lib/manifest/group.js.map +1 -0
- package/lib/manifest/group.mjs +203 -0
- package/lib/manifest/group.mjs.map +1 -0
- package/lib/manifest/index.d.mts +2 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -0
- package/lib/manifest/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/lib/manifest/manifest-function.d.mts +16 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -1
- package/lib/manifest/manifest-function.d.ts +16 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -1
- package/lib/manifest/manifest-function.js +67 -0
- package/lib/manifest/manifest-function.js.map +1 -1
- package/lib/manifest/manifest-function.mjs +68 -1
- package/lib/manifest/manifest-function.mjs.map +1 -1
- package/lib/manifest/saved-super-group.d.mts +43 -0
- package/lib/manifest/saved-super-group.d.mts.map +1 -0
- package/lib/manifest/saved-super-group.d.ts +43 -0
- package/lib/manifest/saved-super-group.d.ts.map +1 -0
- package/lib/manifest/saved-super-group.js +136 -0
- package/lib/manifest/saved-super-group.js.map +1 -0
- package/lib/manifest/saved-super-group.mjs +132 -0
- package/lib/manifest/saved-super-group.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/application-submissions.d.mts +261 -0
- package/resources/application-submissions.d.mts.map +1 -0
- package/resources/application-submissions.d.ts +261 -0
- package/resources/application-submissions.d.ts.map +1 -0
- package/resources/application-submissions.js +112 -0
- package/resources/application-submissions.js.map +1 -0
- package/resources/application-submissions.mjs +108 -0
- package/resources/application-submissions.mjs.map +1 -0
- package/resources/bills.d.mts +913 -12
- package/resources/bills.d.mts.map +1 -1
- package/resources/bills.d.ts +913 -12
- package/resources/bills.d.ts.map +1 -1
- package/resources/bills.js +221 -0
- package/resources/bills.js.map +1 -1
- package/resources/bills.mjs +221 -0
- package/resources/bills.mjs.map +1 -1
- package/resources/candidate-applications.d.mts +247 -9
- package/resources/candidate-applications.d.mts.map +1 -1
- package/resources/candidate-applications.d.ts +247 -9
- package/resources/candidate-applications.d.ts.map +1 -1
- package/resources/candidate-applications.js +37 -5
- package/resources/candidate-applications.js.map +1 -1
- package/resources/candidate-applications.mjs +37 -5
- package/resources/candidate-applications.mjs.map +1 -1
- package/resources/card-transactions.d.mts +1580 -30
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +1580 -30
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +404 -4
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +404 -4
- package/resources/card-transactions.mjs.map +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 +9 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-posts.d.mts +345 -0
- package/resources/job-posts.d.mts.map +1 -0
- package/resources/job-posts.d.ts +345 -0
- package/resources/job-posts.d.ts.map +1 -0
- package/resources/job-posts.js +110 -0
- package/resources/job-posts.js.map +1 -0
- package/resources/job-posts.mjs +106 -0
- package/resources/job-posts.mjs.map +1 -0
- package/resources/job-requisitions.d.mts +96 -4
- package/resources/job-requisitions.d.mts.map +1 -1
- package/resources/job-requisitions.d.ts +96 -4
- package/resources/job-requisitions.d.ts.map +1 -1
- package/resources/job-requisitions.js +64 -3
- package/resources/job-requisitions.js.map +1 -1
- package/resources/job-requisitions.mjs +64 -3
- package/resources/job-requisitions.mjs.map +1 -1
- package/resources/record-detail-related-records.d.mts +60 -30
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +60 -30
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-details.d.mts +120 -60
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +120 -60
- package/resources/record-details.d.ts.map +1 -1
- package/resources/reimbursements.d.mts +1106 -64
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +1106 -64
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +208 -0
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +208 -0
- package/resources/reimbursements.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 +1588 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1588 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +582 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +578 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/src/client.ts +150 -0
- package/src/lib/manifest/app.ts +72 -2
- package/src/lib/manifest/composition.ts +8 -2
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/app.ts +4 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/function.ts +1 -0
- package/src/lib/manifest/definitions/group.ts +159 -0
- package/src/lib/manifest/definitions/index.ts +42 -0
- package/src/lib/manifest/definitions/saved-super-group.ts +28 -0
- package/src/lib/manifest/existing-manifest-context.ts +24 -0
- package/src/lib/manifest/group.ts +282 -0
- package/src/lib/manifest/index.ts +16 -0
- package/src/lib/manifest/manifest-builder.ts +2 -0
- package/src/lib/manifest/manifest-function.ts +91 -1
- package/src/lib/manifest/saved-super-group.ts +171 -0
- package/src/resources/application-submissions.ts +315 -0
- package/src/resources/bills.ts +1085 -12
- package/src/resources/candidate-applications.ts +282 -9
- package/src/resources/card-transactions.ts +1874 -32
- 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 +57 -0
- package/src/resources/job-posts.ts +415 -0
- package/src/resources/job-requisitions.ts +110 -3
- package/src/resources/record-detail-related-records.ts +60 -30
- package/src/resources/record-details.ts +120 -60
- package/src/resources/reimbursements.ts +1299 -63
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1947 -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,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"}
|