@rippling/rippling-sdk 0.2.0-alpha.35 → 0.2.0-alpha.37

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 (149) hide show
  1. package/client.d.mts +13 -1
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +13 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +13 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +13 -1
  8. package/client.mjs.map +1 -1
  9. package/examples/.keep +4 -0
  10. package/examples/manifest/dental-practice-management/dental-practice-management.ts +638 -0
  11. package/examples/manifest/dental-practice-management/manifest.json +1870 -0
  12. package/examples/manifest/gym-membership-management/gym-membership-management.ts +746 -0
  13. package/examples/manifest/gym-membership-management/manifest.json +1975 -0
  14. package/examples/sdui/sdui-crud-todo/rippling-function.ts +367 -0
  15. package/examples/sdui/sdui-crud-todo/sdui-crud-todo.ts +282 -0
  16. package/examples/sdui/sdui-showcase/rippling-function.ts +381 -0
  17. package/examples/sdui/sdui-showcase/sdui-showcase.ts +351 -0
  18. package/examples/sdui/sdui-tab-multi-view/rippling-function.ts +1061 -0
  19. package/examples/sdui/sdui-tab-multi-view/sdui-tab-multi-view.ts +924 -0
  20. package/examples/sdui/vote/rippling-function.ts +330 -0
  21. package/examples/sdui/vote/vote.ts +298 -0
  22. package/internal/utils/log.d.mts.map +1 -1
  23. package/internal/utils/log.d.ts.map +1 -1
  24. package/internal/utils/log.js +2 -0
  25. package/internal/utils/log.js.map +1 -1
  26. package/internal/utils/log.mjs +2 -0
  27. package/internal/utils/log.mjs.map +1 -1
  28. package/lib/manifest/custom-object-field-section.d.mts +4 -0
  29. package/lib/manifest/custom-object-field-section.d.mts.map +1 -1
  30. package/lib/manifest/custom-object-field-section.d.ts +4 -0
  31. package/lib/manifest/custom-object-field-section.d.ts.map +1 -1
  32. package/lib/manifest/custom-object-field-section.js +6 -0
  33. package/lib/manifest/custom-object-field-section.js.map +1 -1
  34. package/lib/manifest/custom-object-field-section.mjs +6 -0
  35. package/lib/manifest/custom-object-field-section.mjs.map +1 -1
  36. package/lib/manifest/custom-object-page-layout.d.mts +21 -13
  37. package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
  38. package/lib/manifest/custom-object-page-layout.d.ts +21 -13
  39. package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
  40. package/lib/manifest/custom-object-page-layout.js +119 -9
  41. package/lib/manifest/custom-object-page-layout.js.map +1 -1
  42. package/lib/manifest/custom-object-page-layout.mjs +119 -9
  43. package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
  44. package/lib/manifest/field.d.mts +5 -1
  45. package/lib/manifest/field.d.mts.map +1 -1
  46. package/lib/manifest/field.d.ts +5 -1
  47. package/lib/manifest/field.d.ts.map +1 -1
  48. package/lib/manifest/field.js +8 -0
  49. package/lib/manifest/field.js.map +1 -1
  50. package/lib/manifest/field.mjs +8 -0
  51. package/lib/manifest/field.mjs.map +1 -1
  52. package/lib/manifest/index.d.mts +1 -1
  53. package/lib/manifest/index.d.mts.map +1 -1
  54. package/lib/manifest/index.d.ts +1 -1
  55. package/lib/manifest/index.d.ts.map +1 -1
  56. package/lib/manifest/index.js.map +1 -1
  57. package/lib/manifest/index.mjs.map +1 -1
  58. package/package.json +11 -1
  59. package/resources/company-legal-entities.d.mts +180 -0
  60. package/resources/company-legal-entities.d.mts.map +1 -0
  61. package/resources/company-legal-entities.d.ts +180 -0
  62. package/resources/company-legal-entities.d.ts.map +1 -0
  63. package/resources/company-legal-entities.js +30 -0
  64. package/resources/company-legal-entities.js.map +1 -0
  65. package/resources/company-legal-entities.mjs +26 -0
  66. package/resources/company-legal-entities.mjs.map +1 -0
  67. package/resources/company-legal-entity-workers.d.mts +79 -0
  68. package/resources/company-legal-entity-workers.d.mts.map +1 -0
  69. package/resources/company-legal-entity-workers.d.ts +79 -0
  70. package/resources/company-legal-entity-workers.d.ts.map +1 -0
  71. package/resources/company-legal-entity-workers.js +30 -0
  72. package/resources/company-legal-entity-workers.js.map +1 -0
  73. package/resources/company-legal-entity-workers.mjs +26 -0
  74. package/resources/company-legal-entity-workers.mjs.map +1 -0
  75. package/resources/earning-types.d.mts +1 -6
  76. package/resources/earning-types.d.mts.map +1 -1
  77. package/resources/earning-types.d.ts +1 -6
  78. package/resources/earning-types.d.ts.map +1 -1
  79. package/resources/earning-types.js +1 -1
  80. package/resources/earning-types.mjs +1 -1
  81. package/resources/earnings-inputs.d.mts +1 -1
  82. package/resources/earnings-inputs.d.ts +1 -1
  83. package/resources/earnings-inputs.js +1 -1
  84. package/resources/earnings-inputs.mjs +1 -1
  85. package/resources/index.d.mts +3 -1
  86. package/resources/index.d.mts.map +1 -1
  87. package/resources/index.d.ts +3 -1
  88. package/resources/index.d.ts.map +1 -1
  89. package/resources/index.js +7 -3
  90. package/resources/index.js.map +1 -1
  91. package/resources/index.mjs +3 -1
  92. package/resources/index.mjs.map +1 -1
  93. package/resources/legal-entities.d.mts +1 -1
  94. package/resources/legal-entities.d.mts.map +1 -1
  95. package/resources/legal-entities.d.ts +1 -1
  96. package/resources/legal-entities.d.ts.map +1 -1
  97. package/resources/payroll-runs/index.d.mts +3 -0
  98. package/resources/payroll-runs/index.d.mts.map +1 -0
  99. package/resources/payroll-runs/index.d.ts +3 -0
  100. package/resources/payroll-runs/index.d.ts.map +1 -0
  101. package/resources/payroll-runs/index.js +9 -0
  102. package/resources/payroll-runs/index.js.map +1 -0
  103. package/resources/payroll-runs/index.mjs +4 -0
  104. package/resources/payroll-runs/index.mjs.map +1 -0
  105. package/resources/payroll-runs/payroll-runs.d.mts +199 -0
  106. package/resources/payroll-runs/payroll-runs.d.mts.map +1 -0
  107. package/resources/payroll-runs/payroll-runs.d.ts +199 -0
  108. package/resources/payroll-runs/payroll-runs.d.ts.map +1 -0
  109. package/resources/payroll-runs/payroll-runs.js +40 -0
  110. package/resources/payroll-runs/payroll-runs.js.map +1 -0
  111. package/resources/payroll-runs/payroll-runs.mjs +35 -0
  112. package/resources/payroll-runs/payroll-runs.mjs.map +1 -0
  113. package/resources/payroll-runs/worker-payroll-records.d.mts +200 -0
  114. package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -0
  115. package/resources/payroll-runs/worker-payroll-records.d.ts +200 -0
  116. package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -0
  117. package/resources/payroll-runs/worker-payroll-records.js +23 -0
  118. package/resources/payroll-runs/worker-payroll-records.js.map +1 -0
  119. package/resources/payroll-runs/worker-payroll-records.mjs +19 -0
  120. package/resources/payroll-runs/worker-payroll-records.mjs.map +1 -0
  121. package/resources/payroll-runs.d.mts +1 -194
  122. package/resources/payroll-runs.d.mts.map +1 -1
  123. package/resources/payroll-runs.d.ts +1 -194
  124. package/resources/payroll-runs.d.ts.map +1 -1
  125. package/resources/payroll-runs.js +2 -28
  126. package/resources/payroll-runs.js.map +1 -1
  127. package/resources/payroll-runs.mjs +1 -26
  128. package/resources/payroll-runs.mjs.map +1 -1
  129. package/src/client.ts +47 -7
  130. package/src/internal/utils/log.ts +2 -0
  131. package/src/lib/manifest/custom-object-field-section.ts +7 -0
  132. package/src/lib/manifest/custom-object-page-layout.ts +220 -18
  133. package/src/lib/manifest/field.ts +9 -1
  134. package/src/lib/manifest/index.ts +2 -0
  135. package/src/resources/company-legal-entities.ts +237 -0
  136. package/src/resources/company-legal-entity-workers.ts +115 -0
  137. package/src/resources/earning-types.ts +1 -7
  138. package/src/resources/earnings-inputs.ts +1 -1
  139. package/src/resources/index.ts +15 -1
  140. package/src/resources/legal-entities.ts +1 -1
  141. package/src/resources/payroll-runs/index.ts +15 -0
  142. package/src/resources/payroll-runs/payroll-runs.ts +270 -0
  143. package/src/resources/payroll-runs/worker-payroll-records.ts +255 -0
  144. package/src/resources/payroll-runs.ts +1 -249
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. package/version.mjs +1 -1
@@ -1,251 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import * as BusinessPartnersAPI from './business-partners';
5
- import { APIPromise } from '../core/api-promise';
6
- import { PageCursorURL, PagePromise } from '../core/pagination';
7
- import { RequestOptions } from '../internal/request-options';
8
- import { path } from '../internal/utils/path';
9
-
10
- /**
11
- * Payroll runs for the company
12
- */
13
- export class PayrollRuns extends APIResource {
14
- /**
15
- * A list of payroll-runs.
16
- *
17
- * - Requires: `Payroll API`
18
- * - Sortable fields: `check_date`
19
- */
20
- list(
21
- query: PayrollRunListParams | null | undefined = {},
22
- options?: RequestOptions,
23
- ): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse> {
24
- return this._client.getAPIList('/payroll-runs/', PageCursorURL<PayrollRunListResponse>, {
25
- query,
26
- ...options,
27
- });
28
- }
29
-
30
- /**
31
- * Retrieve a specific payroll-run
32
- */
33
- retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse> {
34
- return this._client.get(path`/payroll-runs/${id}/`, options);
35
- }
36
- }
37
-
38
- export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
39
-
40
- /**
41
- * V2 DTO representing a single payroll run.
42
- *
43
- * Used by:
44
- * - GET /payroll-runs/ (list)
45
- * - GET /payroll-runs/{id} (retrieve)
46
- */
47
- export interface PayrollRunListResponse {
48
- /**
49
- * Unique identifier for the payroll run.
50
- */
51
- id?: string;
52
-
53
- /**
54
- * Deadline for approving the payroll run.
55
- */
56
- approval_deadline?: string;
57
-
58
- /**
59
- * Timestamp when the run was approved.
60
- */
61
- approved_at?: string;
62
-
63
- /**
64
- * Date the paycheck is issued.
65
- */
66
- check_date?: string;
67
-
68
- /**
69
- * Identifier linking this payroll run to the company's legal entity in the HRIS
70
- * system.
71
- */
72
- company_entity_id?: string;
73
-
74
- /**
75
- * ISO country code where the payroll run applies.
76
- */
77
- country_code?: string;
78
-
79
- /**
80
- * Date funds are debited from the company's account.
81
- */
82
- debit_date?: string;
83
-
84
- /**
85
- * Deadline after which the run is locked for changes.
86
- */
87
- lock_deadline?: string;
88
-
89
- /**
90
- * Timestamp when the run was marked as paid.
91
- */
92
- paid_at?: string;
93
-
94
- /**
95
- * Pay period details for this run.
96
- */
97
- pay_period?: PayrollRunListResponse.PayPeriod;
98
-
99
- /**
100
- * Payment method used (e.g. WIRE, ACH).
101
- */
102
- payment_type?: string;
103
-
104
- /**
105
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
106
- */
107
- run_state?: string;
108
-
109
- /**
110
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
111
- */
112
- run_type?: string;
113
-
114
- /**
115
- * Human-readable title of the payroll run.
116
- */
117
- title?: string;
118
- }
119
-
120
- export namespace PayrollRunListResponse {
121
- /**
122
- * Pay period details for this run.
123
- */
124
- export interface PayPeriod {
125
- /**
126
- * End date of the pay period.
127
- */
128
- end_date?: string;
129
-
130
- /**
131
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
132
- */
133
- pay_frequency?: string;
134
-
135
- /**
136
- * Start date of the pay period.
137
- */
138
- start_date?: string;
139
- }
140
- }
141
-
142
- /**
143
- * Meta information for the response.
144
- */
145
- export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
146
- /**
147
- * Unique identifier for the payroll run.
148
- */
149
- id?: string;
150
-
151
- /**
152
- * Deadline for approving the payroll run.
153
- */
154
- approval_deadline?: string;
155
-
156
- /**
157
- * Timestamp when the run was approved.
158
- */
159
- approved_at?: string;
160
-
161
- /**
162
- * Date the paycheck is issued.
163
- */
164
- check_date?: string;
165
-
166
- /**
167
- * Identifier linking this payroll run to the company's legal entity in the HRIS
168
- * system.
169
- */
170
- company_entity_id?: string;
171
-
172
- /**
173
- * ISO country code where the payroll run applies.
174
- */
175
- country_code?: string;
176
-
177
- /**
178
- * Date funds are debited from the company's account.
179
- */
180
- debit_date?: string;
181
-
182
- /**
183
- * Deadline after which the run is locked for changes.
184
- */
185
- lock_deadline?: string;
186
-
187
- /**
188
- * Timestamp when the run was marked as paid.
189
- */
190
- paid_at?: string;
191
-
192
- /**
193
- * Pay period details for this run.
194
- */
195
- pay_period?: PayrollRunRetrieveResponse.PayPeriod;
196
-
197
- /**
198
- * Payment method used (e.g. WIRE, ACH).
199
- */
200
- payment_type?: string;
201
-
202
- /**
203
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
204
- */
205
- run_state?: string;
206
-
207
- /**
208
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
209
- */
210
- run_type?: string;
211
-
212
- /**
213
- * Human-readable title of the payroll run.
214
- */
215
- title?: string;
216
- }
217
-
218
- export namespace PayrollRunRetrieveResponse {
219
- /**
220
- * Pay period details for this run.
221
- */
222
- export interface PayPeriod {
223
- /**
224
- * End date of the pay period.
225
- */
226
- end_date?: string;
227
-
228
- /**
229
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
230
- */
231
- pay_frequency?: string;
232
-
233
- /**
234
- * Start date of the pay period.
235
- */
236
- start_date?: string;
237
- }
238
- }
239
-
240
- export interface PayrollRunListParams {
241
- order_by?: string;
242
- }
243
-
244
- export declare namespace PayrollRuns {
245
- export {
246
- type PayrollRunListResponse as PayrollRunListResponse,
247
- type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse,
248
- type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL,
249
- type PayrollRunListParams as PayrollRunListParams,
250
- };
251
- }
3
+ export * from './payroll-runs/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.35'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.37'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.35";
1
+ export declare const VERSION = "0.2.0-alpha.37";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.35";
1
+ export declare const VERSION = "0.2.0-alpha.37";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0-alpha.35'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.37'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0-alpha.35'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.37'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map