@rippling/rippling-sdk 0.2.0-alpha.33 → 0.2.0-alpha.35
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 +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +17 -0
- package/client.js.map +1 -1
- package/client.mjs +17 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/lib/manifest/_helpers.d.mts +91 -0
- package/lib/manifest/_helpers.d.mts.map +1 -0
- package/lib/manifest/_helpers.d.ts +91 -0
- package/lib/manifest/_helpers.d.ts.map +1 -0
- package/lib/manifest/_helpers.js +65 -0
- package/lib/manifest/_helpers.js.map +1 -0
- package/lib/manifest/_helpers.mjs +61 -0
- package/lib/manifest/_helpers.mjs.map +1 -0
- package/lib/manifest/app.d.mts +113 -0
- package/lib/manifest/app.d.mts.map +1 -0
- package/lib/manifest/app.d.ts +113 -0
- package/lib/manifest/app.d.ts.map +1 -0
- package/lib/manifest/app.js +95 -0
- package/lib/manifest/app.js.map +1 -0
- package/lib/manifest/app.mjs +91 -0
- package/lib/manifest/app.mjs.map +1 -0
- package/lib/manifest/category.d.mts +79 -0
- package/lib/manifest/category.d.mts.map +1 -0
- package/lib/manifest/category.d.ts +79 -0
- package/lib/manifest/category.d.ts.map +1 -0
- package/lib/manifest/category.js +72 -0
- package/lib/manifest/category.js.map +1 -0
- package/lib/manifest/category.mjs +68 -0
- package/lib/manifest/category.mjs.map +1 -0
- package/lib/manifest/custom-object-field-section.d.mts +71 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -0
- package/lib/manifest/custom-object-field-section.d.ts +71 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -0
- package/lib/manifest/custom-object-field-section.js +69 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -0
- package/lib/manifest/custom-object-field-section.mjs +65 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.mts +318 -0
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -0
- package/lib/manifest/custom-object-page-layout.d.ts +318 -0
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -0
- package/lib/manifest/custom-object-page-layout.js +158 -0
- package/lib/manifest/custom-object-page-layout.js.map +1 -0
- package/lib/manifest/custom-object-page-layout.mjs +154 -0
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -0
- package/lib/manifest/custom-object.d.mts +165 -0
- package/lib/manifest/custom-object.d.mts.map +1 -0
- package/lib/manifest/custom-object.d.ts +165 -0
- package/lib/manifest/custom-object.d.ts.map +1 -0
- package/lib/manifest/custom-object.js +254 -0
- package/lib/manifest/custom-object.js.map +1 -0
- package/lib/manifest/custom-object.mjs +250 -0
- package/lib/manifest/custom-object.mjs.map +1 -0
- package/lib/manifest/field.d.mts +487 -0
- package/lib/manifest/field.d.mts.map +1 -0
- package/lib/manifest/field.d.ts +487 -0
- package/lib/manifest/field.d.ts.map +1 -0
- package/lib/manifest/field.js +461 -0
- package/lib/manifest/field.js.map +1 -0
- package/lib/manifest/field.mjs +438 -0
- package/lib/manifest/field.mjs.map +1 -0
- package/lib/manifest/index.d.mts +15 -0
- package/lib/manifest/index.d.mts.map +1 -0
- package/lib/manifest/index.d.ts +15 -0
- package/lib/manifest/index.d.ts.map +1 -0
- package/lib/manifest/index.js +53 -0
- package/lib/manifest/index.js.map +1 -0
- package/lib/manifest/index.mjs +18 -0
- package/lib/manifest/index.mjs.map +1 -0
- package/lib/manifest/list-view.d.mts +138 -0
- package/lib/manifest/list-view.d.mts.map +1 -0
- package/lib/manifest/list-view.d.ts +138 -0
- package/lib/manifest/list-view.d.ts.map +1 -0
- package/lib/manifest/list-view.js +109 -0
- package/lib/manifest/list-view.js.map +1 -0
- package/lib/manifest/list-view.mjs +105 -0
- package/lib/manifest/list-view.mjs.map +1 -0
- package/lib/manifest/manifest-builder.d.mts +110 -0
- package/lib/manifest/manifest-builder.d.mts.map +1 -0
- package/lib/manifest/manifest-builder.d.ts +110 -0
- package/lib/manifest/manifest-builder.d.ts.map +1 -0
- package/lib/manifest/manifest-builder.js +91 -0
- package/lib/manifest/manifest-builder.js.map +1 -0
- package/lib/manifest/manifest-builder.mjs +87 -0
- package/lib/manifest/manifest-builder.mjs.map +1 -0
- package/lib/manifest/manifest-function.d.mts +119 -0
- package/lib/manifest/manifest-function.d.mts.map +1 -0
- package/lib/manifest/manifest-function.d.ts +119 -0
- package/lib/manifest/manifest-function.d.ts.map +1 -0
- package/lib/manifest/manifest-function.js +85 -0
- package/lib/manifest/manifest-function.js.map +1 -0
- package/lib/manifest/manifest-function.mjs +81 -0
- package/lib/manifest/manifest-function.mjs.map +1 -0
- package/lib/manifest/rule.d.mts +128 -0
- package/lib/manifest/rule.d.mts.map +1 -0
- package/lib/manifest/rule.d.ts +128 -0
- package/lib/manifest/rule.d.ts.map +1 -0
- package/lib/manifest/rule.js +105 -0
- package/lib/manifest/rule.js.map +1 -0
- package/lib/manifest/rule.mjs +101 -0
- package/lib/manifest/rule.mjs.map +1 -0
- package/lib/manifest/sdui-page.d.mts +89 -0
- package/lib/manifest/sdui-page.d.mts.map +1 -0
- package/lib/manifest/sdui-page.d.ts +89 -0
- package/lib/manifest/sdui-page.d.ts.map +1 -0
- package/lib/manifest/sdui-page.js +83 -0
- package/lib/manifest/sdui-page.js.map +1 -0
- package/lib/manifest/sdui-page.mjs +79 -0
- package/lib/manifest/sdui-page.mjs.map +1 -0
- package/lib/manifest/validation.d.mts +116 -0
- package/lib/manifest/validation.d.mts.map +1 -0
- package/lib/manifest/validation.d.ts +116 -0
- package/lib/manifest/validation.d.ts.map +1 -0
- package/lib/manifest/validation.js +83 -0
- package/lib/manifest/validation.js.map +1 -0
- package/lib/manifest/validation.mjs +79 -0
- package/lib/manifest/validation.mjs.map +1 -0
- package/lib/sdui/actions.d.mts +25 -0
- package/lib/sdui/actions.d.mts.map +1 -0
- package/lib/sdui/actions.d.ts +25 -0
- package/lib/sdui/actions.d.ts.map +1 -0
- package/lib/sdui/actions.js +53 -0
- package/lib/sdui/actions.js.map +1 -0
- package/lib/sdui/actions.mjs +42 -0
- package/lib/sdui/actions.mjs.map +1 -0
- package/lib/sdui/component.d.mts +41 -0
- package/lib/sdui/component.d.mts.map +1 -0
- package/lib/sdui/component.d.ts +41 -0
- package/lib/sdui/component.d.ts.map +1 -0
- package/lib/sdui/component.js +95 -0
- package/lib/sdui/component.js.map +1 -0
- package/lib/sdui/component.mjs +91 -0
- package/lib/sdui/component.mjs.map +1 -0
- package/lib/sdui/components.d.mts +149 -0
- package/lib/sdui/components.d.mts.map +1 -0
- package/lib/sdui/components.d.ts +149 -0
- package/lib/sdui/components.d.ts.map +1 -0
- package/lib/sdui/components.js +303 -0
- package/lib/sdui/components.js.map +1 -0
- package/lib/sdui/components.mjs +298 -0
- package/lib/sdui/components.mjs.map +1 -0
- package/lib/sdui/conditions.d.mts +25 -0
- package/lib/sdui/conditions.d.mts.map +1 -0
- package/lib/sdui/conditions.d.ts +25 -0
- package/lib/sdui/conditions.d.ts.map +1 -0
- package/lib/sdui/conditions.js +47 -0
- package/lib/sdui/conditions.js.map +1 -0
- package/lib/sdui/conditions.mjs +35 -0
- package/lib/sdui/conditions.mjs.map +1 -0
- package/lib/sdui/directives.d.mts +18 -0
- package/lib/sdui/directives.d.mts.map +1 -0
- package/lib/sdui/directives.d.ts +18 -0
- package/lib/sdui/directives.d.ts.map +1 -0
- package/lib/sdui/directives.js +28 -0
- package/lib/sdui/directives.js.map +1 -0
- package/lib/sdui/directives.mjs +21 -0
- package/lib/sdui/directives.mjs.map +1 -0
- package/lib/sdui/index.d.mts +362 -0
- package/lib/sdui/index.d.mts.map +1 -0
- package/lib/sdui/index.d.ts +362 -0
- package/lib/sdui/index.d.ts.map +1 -0
- package/lib/sdui/index.js +375 -0
- package/lib/sdui/index.js.map +1 -0
- package/lib/sdui/index.mjs +199 -0
- package/lib/sdui/index.mjs.map +1 -0
- package/lib/sdui/props.d.mts +12 -0
- package/lib/sdui/props.d.mts.map +1 -0
- package/lib/sdui/props.d.ts +12 -0
- package/lib/sdui/props.d.ts.map +1 -0
- package/lib/sdui/props.js +25 -0
- package/lib/sdui/props.js.map +1 -0
- package/lib/sdui/props.mjs +21 -0
- package/lib/sdui/props.mjs.map +1 -0
- package/lib/sdui/render.d.mts +23 -0
- package/lib/sdui/render.d.mts.map +1 -0
- package/lib/sdui/render.d.ts +23 -0
- package/lib/sdui/render.d.ts.map +1 -0
- package/lib/sdui/render.js +40 -0
- package/lib/sdui/render.js.map +1 -0
- package/lib/sdui/render.mjs +37 -0
- package/lib/sdui/render.mjs.map +1 -0
- package/lib/sdui/state.d.mts +22 -0
- package/lib/sdui/state.d.mts.map +1 -0
- package/lib/sdui/state.d.ts +22 -0
- package/lib/sdui/state.d.ts.map +1 -0
- package/lib/sdui/state.js +57 -0
- package/lib/sdui/state.js.map +1 -0
- package/lib/sdui/state.mjs +53 -0
- package/lib/sdui/state.mjs.map +1 -0
- package/package.json +11 -1
- package/resources/draft-hires.d.mts +26 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +26 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/earnings-inputs.d.mts +99 -1
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +99 -1
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +6 -0
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +6 -0
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/files.d.mts +164 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +164 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +25 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +21 -0
- package/resources/files.mjs.map +1 -0
- package/resources/headcount-positions.d.mts +2 -2
- package/resources/headcount-positions.d.mts.map +1 -1
- package/resources/headcount-positions.d.ts +2 -2
- package/resources/headcount-positions.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/location-factors.d.mts +2 -2
- package/resources/location-factors.d.mts.map +1 -1
- package/resources/location-factors.d.ts +2 -2
- package/resources/location-factors.d.ts.map +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/workers.d.mts +2 -2
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +2 -2
- package/resources/workers.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/internal/types.ts +6 -8
- package/src/lib/manifest/_helpers.ts +164 -0
- package/src/lib/manifest/app.ts +163 -0
- package/src/lib/manifest/category.ts +100 -0
- package/src/lib/manifest/custom-object-field-section.ts +93 -0
- package/src/lib/manifest/custom-object-page-layout.ts +427 -0
- package/src/lib/manifest/custom-object.ts +360 -0
- package/src/lib/manifest/field.ts +822 -0
- package/src/lib/manifest/index.ts +114 -0
- package/src/lib/manifest/list-view.ts +183 -0
- package/src/lib/manifest/manifest-builder.ts +140 -0
- package/src/lib/manifest/manifest-function.ts +151 -0
- package/src/lib/manifest/rule.ts +191 -0
- package/src/lib/manifest/sdui-page.ts +118 -0
- package/src/lib/manifest/validation.ts +150 -0
- package/src/lib/sdui/actions.ts +58 -0
- package/src/lib/sdui/component.ts +122 -0
- package/src/lib/sdui/components.ts +308 -0
- package/src/lib/sdui/conditions.ts +59 -0
- package/src/lib/sdui/directives.ts +42 -0
- package/src/lib/sdui/index.ts +365 -0
- package/src/lib/sdui/props.ts +32 -0
- package/src/lib/sdui/render.ts +58 -0
- package/src/lib/sdui/state.ts +60 -0
- package/src/resources/draft-hires.ts +31 -0
- package/src/resources/earnings-inputs.ts +127 -0
- package/src/resources/files.ts +203 -0
- package/src/resources/headcount-positions.ts +2 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/legal-entities.ts +1 -0
- package/src/resources/location-factors.ts +2 -0
- package/src/resources/shared.ts +1 -0
- package/src/resources/workers.ts +2 -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
|
@@ -12,6 +12,10 @@ export declare class EarningsInputs extends APIResource {
|
|
|
12
12
|
* - Requires: `Payroll API`
|
|
13
13
|
*/
|
|
14
14
|
list(options?: RequestOptions): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new earnings-input
|
|
17
|
+
*/
|
|
18
|
+
create(body?: EarningsInputCreateParams | null | undefined, options?: RequestOptions): APIPromise<EarningsInputCreateResponse>;
|
|
15
19
|
/**
|
|
16
20
|
* Delete a earnings-input
|
|
17
21
|
*/
|
|
@@ -70,7 +74,101 @@ export interface EarningsInputListResponse {
|
|
|
70
74
|
*/
|
|
71
75
|
worker_id?: string;
|
|
72
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* V2 DTO representing an external earnings input record.
|
|
79
|
+
*
|
|
80
|
+
* Used by:
|
|
81
|
+
* - GET /earnings-inputs/ (list)
|
|
82
|
+
*/
|
|
83
|
+
export interface EarningsInputCreateResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier for the earnings input.
|
|
86
|
+
*/
|
|
87
|
+
id?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Earning amount as a string-encoded decimal.
|
|
90
|
+
*/
|
|
91
|
+
amount?: string;
|
|
92
|
+
/**
|
|
93
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
94
|
+
*/
|
|
95
|
+
assignment_type?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
98
|
+
*/
|
|
99
|
+
earning_code?: string;
|
|
100
|
+
/**
|
|
101
|
+
* External reference identifier for this earning.
|
|
102
|
+
*/
|
|
103
|
+
external_id?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
106
|
+
*/
|
|
107
|
+
hours?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The pay period basis date for this earning.
|
|
110
|
+
*/
|
|
111
|
+
pay_period_basis_date?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
114
|
+
*/
|
|
115
|
+
run_id?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
118
|
+
*/
|
|
119
|
+
status?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Time tracking labels associated with this earning.
|
|
122
|
+
*/
|
|
123
|
+
time_labels?: Array<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Identifier of the worker (role ID).
|
|
126
|
+
*/
|
|
127
|
+
worker_id?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface EarningsInputCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* Earning amount as a string-encoded decimal.
|
|
132
|
+
*/
|
|
133
|
+
amount?: string;
|
|
134
|
+
/**
|
|
135
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
136
|
+
*/
|
|
137
|
+
assignment_type?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
140
|
+
*/
|
|
141
|
+
earning_code?: string;
|
|
142
|
+
/**
|
|
143
|
+
* External reference identifier for this earning.
|
|
144
|
+
*/
|
|
145
|
+
external_id?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
148
|
+
*/
|
|
149
|
+
hours?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The pay period basis date for this earning.
|
|
152
|
+
*/
|
|
153
|
+
pay_period_basis_date?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
156
|
+
*/
|
|
157
|
+
run_id?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
160
|
+
*/
|
|
161
|
+
status?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Time tracking labels associated with this earning.
|
|
164
|
+
*/
|
|
165
|
+
time_labels?: Array<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Identifier of the worker (role ID).
|
|
168
|
+
*/
|
|
169
|
+
worker_id?: string;
|
|
170
|
+
}
|
|
73
171
|
export declare namespace EarningsInputs {
|
|
74
|
-
export { type EarningsInputListResponse as EarningsInputListResponse, type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL, };
|
|
172
|
+
export { type EarningsInputListResponse as EarningsInputListResponse, type EarningsInputCreateResponse as EarningsInputCreateResponse, type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL, type EarningsInputCreateParams as EarningsInputCreateParams, };
|
|
75
173
|
}
|
|
76
174
|
//# sourceMappingURL=earnings-inputs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earnings-inputs.d.mts","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAE9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,IAAI,CACF,OAAO,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|
13
13
|
*/
|
|
14
14
|
list(options?: RequestOptions): PagePromise<EarningsInputListResponsesPageCursorURL, EarningsInputListResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new earnings-input
|
|
17
|
+
*/
|
|
18
|
+
create(body?: EarningsInputCreateParams | null | undefined, options?: RequestOptions): APIPromise<EarningsInputCreateResponse>;
|
|
15
19
|
/**
|
|
16
20
|
* Delete a earnings-input
|
|
17
21
|
*/
|
|
@@ -70,7 +74,101 @@ export interface EarningsInputListResponse {
|
|
|
70
74
|
*/
|
|
71
75
|
worker_id?: string;
|
|
72
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* V2 DTO representing an external earnings input record.
|
|
79
|
+
*
|
|
80
|
+
* Used by:
|
|
81
|
+
* - GET /earnings-inputs/ (list)
|
|
82
|
+
*/
|
|
83
|
+
export interface EarningsInputCreateResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Unique identifier for the earnings input.
|
|
86
|
+
*/
|
|
87
|
+
id?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Earning amount as a string-encoded decimal.
|
|
90
|
+
*/
|
|
91
|
+
amount?: string;
|
|
92
|
+
/**
|
|
93
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
94
|
+
*/
|
|
95
|
+
assignment_type?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
98
|
+
*/
|
|
99
|
+
earning_code?: string;
|
|
100
|
+
/**
|
|
101
|
+
* External reference identifier for this earning.
|
|
102
|
+
*/
|
|
103
|
+
external_id?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
106
|
+
*/
|
|
107
|
+
hours?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The pay period basis date for this earning.
|
|
110
|
+
*/
|
|
111
|
+
pay_period_basis_date?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
114
|
+
*/
|
|
115
|
+
run_id?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
118
|
+
*/
|
|
119
|
+
status?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Time tracking labels associated with this earning.
|
|
122
|
+
*/
|
|
123
|
+
time_labels?: Array<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Identifier of the worker (role ID).
|
|
126
|
+
*/
|
|
127
|
+
worker_id?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface EarningsInputCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* Earning amount as a string-encoded decimal.
|
|
132
|
+
*/
|
|
133
|
+
amount?: string;
|
|
134
|
+
/**
|
|
135
|
+
* How the earning is assigned (e.g. BY_PAY_PERIOD).
|
|
136
|
+
*/
|
|
137
|
+
assignment_type?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Code identifying the earning type (e.g. regular_salary).
|
|
140
|
+
*/
|
|
141
|
+
earning_code?: string;
|
|
142
|
+
/**
|
|
143
|
+
* External reference identifier for this earning.
|
|
144
|
+
*/
|
|
145
|
+
external_id?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Hours associated with this earning as a string-encoded decimal.
|
|
148
|
+
*/
|
|
149
|
+
hours?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The pay period basis date for this earning.
|
|
152
|
+
*/
|
|
153
|
+
pay_period_basis_date?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Identifier of the payroll run this earning is assigned to, if any.
|
|
156
|
+
*/
|
|
157
|
+
run_id?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Current status of the earnings input (e.g. UNASSIGNED, ASSIGNED).
|
|
160
|
+
*/
|
|
161
|
+
status?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Time tracking labels associated with this earning.
|
|
164
|
+
*/
|
|
165
|
+
time_labels?: Array<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Identifier of the worker (role ID).
|
|
168
|
+
*/
|
|
169
|
+
worker_id?: string;
|
|
170
|
+
}
|
|
73
171
|
export declare namespace EarningsInputs {
|
|
74
|
-
export { type EarningsInputListResponse as EarningsInputListResponse, type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL, };
|
|
172
|
+
export { type EarningsInputListResponse as EarningsInputListResponse, type EarningsInputCreateResponse as EarningsInputCreateResponse, type EarningsInputListResponsesPageCursorURL as EarningsInputListResponsesPageCursorURL, type EarningsInputCreateParams as EarningsInputCreateParams, };
|
|
75
173
|
}
|
|
76
174
|
//# sourceMappingURL=earnings-inputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earnings-inputs.d.ts","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAE9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uCAAuC,EAAE,yBAAyB,CAAC;IAIlF;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,MAAM,uCAAuC,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAE/F;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAA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CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -18,6 +18,12 @@ class EarningsInputs extends resource_1.APIResource {
|
|
|
18
18
|
list(options) {
|
|
19
19
|
return this._client.getAPIList('/earnings-inputs/', (pagination_1.PageCursorURL), options);
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a new earnings-input
|
|
23
|
+
*/
|
|
24
|
+
create(body = {}, options) {
|
|
25
|
+
return this._client.post('/earnings-inputs/', { body, ...options });
|
|
26
|
+
}
|
|
21
27
|
/**
|
|
22
28
|
* Delete a earnings-input
|
|
23
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earnings-inputs.js","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;OAIG;IACH,IAAI,CACF,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,C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AC;CACF;AA/BD,wCA+BC"}
|
|
@@ -15,6 +15,12 @@ export class EarningsInputs extends APIResource {
|
|
|
15
15
|
list(options) {
|
|
16
16
|
return this._client.getAPIList('/earnings-inputs/', (PageCursorURL), options);
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Create a new earnings-input
|
|
20
|
+
*/
|
|
21
|
+
create(body = {}, options) {
|
|
22
|
+
return this._client.post('/earnings-inputs/', { body, ...options });
|
|
23
|
+
}
|
|
18
24
|
/**
|
|
19
25
|
* Delete a earnings-input
|
|
20
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"earnings-inputs.mjs","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,aAAa,EAAe;OAC9B,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,IAAI,CACF,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,aAAwC,CAAA,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,EAAE,GAAG,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"earnings-inputs.mjs","sourceRoot":"","sources":["../src/resources/earnings-inputs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,aAAa,EAAe;OAC9B,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,IAAI,CACF,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,aAAwC,CAAA,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,EAAE,GAAG,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,164 @@
|
|
|
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 { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Generate presigned URLs to upload files to Rippling storage
|
|
7
|
+
*/
|
|
8
|
+
export declare class Files extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a specific file
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<FileRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new file
|
|
15
|
+
*/
|
|
16
|
+
create(body: FileCreateParams, options?: RequestOptions): APIPromise<FileCreateResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Meta information for the response.
|
|
20
|
+
*/
|
|
21
|
+
export interface FileRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque identifier for this file
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
28
|
+
*/
|
|
29
|
+
status: string;
|
|
30
|
+
/**
|
|
31
|
+
* MIME type supplied by the client at create time
|
|
32
|
+
*/
|
|
33
|
+
content_type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable label for the file
|
|
36
|
+
*/
|
|
37
|
+
display_name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
40
|
+
* binary
|
|
41
|
+
*/
|
|
42
|
+
upload_fields?: unknown;
|
|
43
|
+
/**
|
|
44
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
45
|
+
* in the create response.
|
|
46
|
+
*/
|
|
47
|
+
upload_url?: string;
|
|
48
|
+
/**
|
|
49
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
50
|
+
*/
|
|
51
|
+
url_data?: FileRetrieveResponse.URLData;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace FileRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
56
|
+
*/
|
|
57
|
+
interface URLData {
|
|
58
|
+
/**
|
|
59
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
60
|
+
*/
|
|
61
|
+
preview_url?: string;
|
|
62
|
+
/**
|
|
63
|
+
* S3 URL where the file is accessible after upload
|
|
64
|
+
*/
|
|
65
|
+
s3_url?: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Response DTO for `POST /files/` and `GET /files/{id}`.
|
|
70
|
+
*/
|
|
71
|
+
export interface FileCreateResponse {
|
|
72
|
+
/**
|
|
73
|
+
* Opaque identifier for this file
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
/**
|
|
77
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
78
|
+
*/
|
|
79
|
+
status: string;
|
|
80
|
+
/**
|
|
81
|
+
* MIME type supplied by the client at create time
|
|
82
|
+
*/
|
|
83
|
+
content_type?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Human-readable label for the file
|
|
86
|
+
*/
|
|
87
|
+
display_name?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
90
|
+
* binary
|
|
91
|
+
*/
|
|
92
|
+
upload_fields?: unknown;
|
|
93
|
+
/**
|
|
94
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
95
|
+
* in the create response.
|
|
96
|
+
*/
|
|
97
|
+
upload_url?: string;
|
|
98
|
+
/**
|
|
99
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
100
|
+
*/
|
|
101
|
+
url_data?: FileCreateResponse.URLData;
|
|
102
|
+
}
|
|
103
|
+
export declare namespace FileCreateResponse {
|
|
104
|
+
/**
|
|
105
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
106
|
+
*/
|
|
107
|
+
interface URLData {
|
|
108
|
+
/**
|
|
109
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
110
|
+
*/
|
|
111
|
+
preview_url?: string;
|
|
112
|
+
/**
|
|
113
|
+
* S3 URL where the file is accessible after upload
|
|
114
|
+
*/
|
|
115
|
+
s3_url?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export interface FileCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
121
|
+
*/
|
|
122
|
+
status: string;
|
|
123
|
+
/**
|
|
124
|
+
* MIME type supplied by the client at create time
|
|
125
|
+
*/
|
|
126
|
+
content_type?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Human-readable label for the file
|
|
129
|
+
*/
|
|
130
|
+
display_name?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
133
|
+
* binary
|
|
134
|
+
*/
|
|
135
|
+
upload_fields?: unknown;
|
|
136
|
+
/**
|
|
137
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
138
|
+
* in the create response.
|
|
139
|
+
*/
|
|
140
|
+
upload_url?: string;
|
|
141
|
+
/**
|
|
142
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
143
|
+
*/
|
|
144
|
+
url_data?: FileCreateParams.URLData;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace FileCreateParams {
|
|
147
|
+
/**
|
|
148
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
149
|
+
*/
|
|
150
|
+
interface URLData {
|
|
151
|
+
/**
|
|
152
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
153
|
+
*/
|
|
154
|
+
preview_url?: string;
|
|
155
|
+
/**
|
|
156
|
+
* S3 URL where the file is accessible after upload
|
|
157
|
+
*/
|
|
158
|
+
s3_url?: string;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Files {
|
|
162
|
+
export { type FileRetrieveResponse as FileRetrieveResponse, type FileCreateResponse as FileCreateResponse, type FileCreateParams as FileCreateParams, };
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=files.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAA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AAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;CACrC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,164 @@
|
|
|
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 { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Generate presigned URLs to upload files to Rippling storage
|
|
7
|
+
*/
|
|
8
|
+
export declare class Files extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve a specific file
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<FileRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new file
|
|
15
|
+
*/
|
|
16
|
+
create(body: FileCreateParams, options?: RequestOptions): APIPromise<FileCreateResponse>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Meta information for the response.
|
|
20
|
+
*/
|
|
21
|
+
export interface FileRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque identifier for this file
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
28
|
+
*/
|
|
29
|
+
status: string;
|
|
30
|
+
/**
|
|
31
|
+
* MIME type supplied by the client at create time
|
|
32
|
+
*/
|
|
33
|
+
content_type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable label for the file
|
|
36
|
+
*/
|
|
37
|
+
display_name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
40
|
+
* binary
|
|
41
|
+
*/
|
|
42
|
+
upload_fields?: unknown;
|
|
43
|
+
/**
|
|
44
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
45
|
+
* in the create response.
|
|
46
|
+
*/
|
|
47
|
+
upload_url?: string;
|
|
48
|
+
/**
|
|
49
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
50
|
+
*/
|
|
51
|
+
url_data?: FileRetrieveResponse.URLData;
|
|
52
|
+
}
|
|
53
|
+
export declare namespace FileRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
56
|
+
*/
|
|
57
|
+
interface URLData {
|
|
58
|
+
/**
|
|
59
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
60
|
+
*/
|
|
61
|
+
preview_url?: string;
|
|
62
|
+
/**
|
|
63
|
+
* S3 URL where the file is accessible after upload
|
|
64
|
+
*/
|
|
65
|
+
s3_url?: string;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Response DTO for `POST /files/` and `GET /files/{id}`.
|
|
70
|
+
*/
|
|
71
|
+
export interface FileCreateResponse {
|
|
72
|
+
/**
|
|
73
|
+
* Opaque identifier for this file
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
/**
|
|
77
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
78
|
+
*/
|
|
79
|
+
status: string;
|
|
80
|
+
/**
|
|
81
|
+
* MIME type supplied by the client at create time
|
|
82
|
+
*/
|
|
83
|
+
content_type?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Human-readable label for the file
|
|
86
|
+
*/
|
|
87
|
+
display_name?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
90
|
+
* binary
|
|
91
|
+
*/
|
|
92
|
+
upload_fields?: unknown;
|
|
93
|
+
/**
|
|
94
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
95
|
+
* in the create response.
|
|
96
|
+
*/
|
|
97
|
+
upload_url?: string;
|
|
98
|
+
/**
|
|
99
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
100
|
+
*/
|
|
101
|
+
url_data?: FileCreateResponse.URLData;
|
|
102
|
+
}
|
|
103
|
+
export declare namespace FileCreateResponse {
|
|
104
|
+
/**
|
|
105
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
106
|
+
*/
|
|
107
|
+
interface URLData {
|
|
108
|
+
/**
|
|
109
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
110
|
+
*/
|
|
111
|
+
preview_url?: string;
|
|
112
|
+
/**
|
|
113
|
+
* S3 URL where the file is accessible after upload
|
|
114
|
+
*/
|
|
115
|
+
s3_url?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export interface FileCreateParams {
|
|
119
|
+
/**
|
|
120
|
+
* Lifecycle status: awaiting_upload | uploaded | active | infected
|
|
121
|
+
*/
|
|
122
|
+
status: string;
|
|
123
|
+
/**
|
|
124
|
+
* MIME type supplied by the client at create time
|
|
125
|
+
*/
|
|
126
|
+
content_type?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Human-readable label for the file
|
|
129
|
+
*/
|
|
130
|
+
display_name?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Required form fields to include in the multipart POST to S3 alongside the file
|
|
133
|
+
* binary
|
|
134
|
+
*/
|
|
135
|
+
upload_fields?: unknown;
|
|
136
|
+
/**
|
|
137
|
+
* S3 endpoint URL — POST your multipart form here to upload the file. Present only
|
|
138
|
+
* in the create response.
|
|
139
|
+
*/
|
|
140
|
+
upload_url?: string;
|
|
141
|
+
/**
|
|
142
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
143
|
+
*/
|
|
144
|
+
url_data?: FileCreateParams.URLData;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace FileCreateParams {
|
|
147
|
+
/**
|
|
148
|
+
* URLs for accessing the uploaded file after a successful upload
|
|
149
|
+
*/
|
|
150
|
+
interface URLData {
|
|
151
|
+
/**
|
|
152
|
+
* CDN URL for previewing the uploaded file after upload completes
|
|
153
|
+
*/
|
|
154
|
+
preview_url?: string;
|
|
155
|
+
/**
|
|
156
|
+
* S3 URL where the file is accessible after upload
|
|
157
|
+
*/
|
|
158
|
+
s3_url?: string;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export declare namespace Files {
|
|
162
|
+
export { type FileRetrieveResponse as FileRetrieveResponse, type FileCreateResponse as FileCreateResponse, type FileCreateParams as FileCreateParams, };
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAA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AAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC;CACrC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.Files = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Generate presigned URLs to upload files to Rippling storage
|
|
9
|
+
*/
|
|
10
|
+
class Files extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a specific file
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id, options) {
|
|
15
|
+
return this._client.get((0, path_1.path) `/files/${id}/`, options);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a new file
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/files/', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Files = Files;
|
|
25
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../src/resources/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AAdD,sBAcC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Generate presigned URLs to upload files to Rippling storage
|
|
6
|
+
*/
|
|
7
|
+
export class Files extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a specific file
|
|
10
|
+
*/
|
|
11
|
+
retrieve(id, options) {
|
|
12
|
+
return this._client.get(path `/files/${id}/`, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create a new file
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/files/', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=files.mjs.map
|