@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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EtB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -0,0 +1,23 @@
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.WorkerPayrollRecords = 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
+ * Payroll runs for the company
10
+ */
11
+ class WorkerPayrollRecords extends resource_1.APIResource {
12
+ /**
13
+ * A list of worker-payroll-records for a payroll run. Supports filtering by worker
14
+ * via `filter=worker_id in ('<id1>', '<id2>')`.
15
+ *
16
+ * - Requires: `Global Payroll`
17
+ */
18
+ list(runID, query = {}, options) {
19
+ return this._client.getAPIList((0, path_1.path) `/payroll-runs/${runID}/worker-payroll-records/`, (pagination_1.PageCursorURL), { query, ...options });
20
+ }
21
+ }
22
+ exports.WorkerPayrollRecords = WorkerPayrollRecords;
23
+ //# sourceMappingURL=worker-payroll-records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-payroll-records.js","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAAmE;AAEnE,uDAAiD;AAEjD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAa,EACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,iBAAiB,KAAK,0BAA0B,EACpD,CAAA,0BAA8C,CAAA,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAlBD,oDAkBC"}
@@ -0,0 +1,19 @@
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
+ * Payroll runs for the company
7
+ */
8
+ export class WorkerPayrollRecords extends APIResource {
9
+ /**
10
+ * A list of worker-payroll-records for a payroll run. Supports filtering by worker
11
+ * via `filter=worker_id in ('<id1>', '<id2>')`.
12
+ *
13
+ * - Requires: `Global Payroll`
14
+ */
15
+ list(runID, query = {}, options) {
16
+ return this._client.getAPIList(path `/payroll-runs/${runID}/worker-payroll-records/`, (PageCursorURL), { query, ...options });
17
+ }
18
+ }
19
+ //# sourceMappingURL=worker-payroll-records.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker-payroll-records.mjs","sourceRoot":"","sources":["../../src/resources/payroll-runs/worker-payroll-records.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;OAKG;IACH,IAAI,CACF,KAAa,EACb,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,iBAAiB,KAAK,0BAA0B,EACpD,CAAA,aAA8C,CAAA,EAC9C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -1,195 +1,2 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import * as BusinessPartnersAPI from "./business-partners.mjs";
3
- import { APIPromise } from "../core/api-promise.mjs";
4
- import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
5
- import { RequestOptions } from "../internal/request-options.mjs";
6
- /**
7
- * Payroll runs for the company
8
- */
9
- export declare class PayrollRuns extends APIResource {
10
- /**
11
- * A list of payroll-runs.
12
- *
13
- * - Requires: `Payroll API`
14
- * - Sortable fields: `check_date`
15
- */
16
- list(query?: PayrollRunListParams | null | undefined, options?: RequestOptions): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse>;
17
- /**
18
- * Retrieve a specific payroll-run
19
- */
20
- retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse>;
21
- }
22
- export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
23
- /**
24
- * V2 DTO representing a single payroll run.
25
- *
26
- * Used by:
27
- * - GET /payroll-runs/ (list)
28
- * - GET /payroll-runs/{id} (retrieve)
29
- */
30
- export interface PayrollRunListResponse {
31
- /**
32
- * Unique identifier for the payroll run.
33
- */
34
- id?: string;
35
- /**
36
- * Deadline for approving the payroll run.
37
- */
38
- approval_deadline?: string;
39
- /**
40
- * Timestamp when the run was approved.
41
- */
42
- approved_at?: string;
43
- /**
44
- * Date the paycheck is issued.
45
- */
46
- check_date?: string;
47
- /**
48
- * Identifier linking this payroll run to the company's legal entity in the HRIS
49
- * system.
50
- */
51
- company_entity_id?: string;
52
- /**
53
- * ISO country code where the payroll run applies.
54
- */
55
- country_code?: string;
56
- /**
57
- * Date funds are debited from the company's account.
58
- */
59
- debit_date?: string;
60
- /**
61
- * Deadline after which the run is locked for changes.
62
- */
63
- lock_deadline?: string;
64
- /**
65
- * Timestamp when the run was marked as paid.
66
- */
67
- paid_at?: string;
68
- /**
69
- * Pay period details for this run.
70
- */
71
- pay_period?: PayrollRunListResponse.PayPeriod;
72
- /**
73
- * Payment method used (e.g. WIRE, ACH).
74
- */
75
- payment_type?: string;
76
- /**
77
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
78
- */
79
- run_state?: string;
80
- /**
81
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
82
- */
83
- run_type?: string;
84
- /**
85
- * Human-readable title of the payroll run.
86
- */
87
- title?: string;
88
- }
89
- export declare namespace PayrollRunListResponse {
90
- /**
91
- * Pay period details for this run.
92
- */
93
- interface PayPeriod {
94
- /**
95
- * End date of the pay period.
96
- */
97
- end_date?: string;
98
- /**
99
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
100
- */
101
- pay_frequency?: string;
102
- /**
103
- * Start date of the pay period.
104
- */
105
- start_date?: string;
106
- }
107
- }
108
- /**
109
- * Meta information for the response.
110
- */
111
- export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
112
- /**
113
- * Unique identifier for the payroll run.
114
- */
115
- id?: string;
116
- /**
117
- * Deadline for approving the payroll run.
118
- */
119
- approval_deadline?: string;
120
- /**
121
- * Timestamp when the run was approved.
122
- */
123
- approved_at?: string;
124
- /**
125
- * Date the paycheck is issued.
126
- */
127
- check_date?: string;
128
- /**
129
- * Identifier linking this payroll run to the company's legal entity in the HRIS
130
- * system.
131
- */
132
- company_entity_id?: string;
133
- /**
134
- * ISO country code where the payroll run applies.
135
- */
136
- country_code?: string;
137
- /**
138
- * Date funds are debited from the company's account.
139
- */
140
- debit_date?: string;
141
- /**
142
- * Deadline after which the run is locked for changes.
143
- */
144
- lock_deadline?: string;
145
- /**
146
- * Timestamp when the run was marked as paid.
147
- */
148
- paid_at?: string;
149
- /**
150
- * Pay period details for this run.
151
- */
152
- pay_period?: PayrollRunRetrieveResponse.PayPeriod;
153
- /**
154
- * Payment method used (e.g. WIRE, ACH).
155
- */
156
- payment_type?: string;
157
- /**
158
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
159
- */
160
- run_state?: string;
161
- /**
162
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
163
- */
164
- run_type?: string;
165
- /**
166
- * Human-readable title of the payroll run.
167
- */
168
- title?: string;
169
- }
170
- export declare namespace PayrollRunRetrieveResponse {
171
- /**
172
- * Pay period details for this run.
173
- */
174
- interface PayPeriod {
175
- /**
176
- * End date of the pay period.
177
- */
178
- end_date?: string;
179
- /**
180
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
181
- */
182
- pay_frequency?: string;
183
- /**
184
- * Start date of the pay period.
185
- */
186
- start_date?: string;
187
- }
188
- }
189
- export interface PayrollRunListParams {
190
- order_by?: string;
191
- }
192
- export declare namespace PayrollRuns {
193
- export { type PayrollRunListResponse as PayrollRunListResponse, type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse, type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL, type PayrollRunListParams as PayrollRunListParams, };
194
- }
1
+ export * from "./payroll-runs/index.mjs";
195
2
  //# sourceMappingURL=payroll-runs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payroll-runs.d.mts","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,sBAAsB,CAAC;IAO5E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG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M,CAAC;IAE3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC,SAAS,CAAC;IAElD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
1
+ {"version":3,"file":"payroll-runs.d.mts","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":""}
@@ -1,195 +1,2 @@
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
- * Payroll runs for the company
8
- */
9
- export declare class PayrollRuns extends APIResource {
10
- /**
11
- * A list of payroll-runs.
12
- *
13
- * - Requires: `Payroll API`
14
- * - Sortable fields: `check_date`
15
- */
16
- list(query?: PayrollRunListParams | null | undefined, options?: RequestOptions): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse>;
17
- /**
18
- * Retrieve a specific payroll-run
19
- */
20
- retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse>;
21
- }
22
- export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
23
- /**
24
- * V2 DTO representing a single payroll run.
25
- *
26
- * Used by:
27
- * - GET /payroll-runs/ (list)
28
- * - GET /payroll-runs/{id} (retrieve)
29
- */
30
- export interface PayrollRunListResponse {
31
- /**
32
- * Unique identifier for the payroll run.
33
- */
34
- id?: string;
35
- /**
36
- * Deadline for approving the payroll run.
37
- */
38
- approval_deadline?: string;
39
- /**
40
- * Timestamp when the run was approved.
41
- */
42
- approved_at?: string;
43
- /**
44
- * Date the paycheck is issued.
45
- */
46
- check_date?: string;
47
- /**
48
- * Identifier linking this payroll run to the company's legal entity in the HRIS
49
- * system.
50
- */
51
- company_entity_id?: string;
52
- /**
53
- * ISO country code where the payroll run applies.
54
- */
55
- country_code?: string;
56
- /**
57
- * Date funds are debited from the company's account.
58
- */
59
- debit_date?: string;
60
- /**
61
- * Deadline after which the run is locked for changes.
62
- */
63
- lock_deadline?: string;
64
- /**
65
- * Timestamp when the run was marked as paid.
66
- */
67
- paid_at?: string;
68
- /**
69
- * Pay period details for this run.
70
- */
71
- pay_period?: PayrollRunListResponse.PayPeriod;
72
- /**
73
- * Payment method used (e.g. WIRE, ACH).
74
- */
75
- payment_type?: string;
76
- /**
77
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
78
- */
79
- run_state?: string;
80
- /**
81
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
82
- */
83
- run_type?: string;
84
- /**
85
- * Human-readable title of the payroll run.
86
- */
87
- title?: string;
88
- }
89
- export declare namespace PayrollRunListResponse {
90
- /**
91
- * Pay period details for this run.
92
- */
93
- interface PayPeriod {
94
- /**
95
- * End date of the pay period.
96
- */
97
- end_date?: string;
98
- /**
99
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
100
- */
101
- pay_frequency?: string;
102
- /**
103
- * Start date of the pay period.
104
- */
105
- start_date?: string;
106
- }
107
- }
108
- /**
109
- * Meta information for the response.
110
- */
111
- export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
112
- /**
113
- * Unique identifier for the payroll run.
114
- */
115
- id?: string;
116
- /**
117
- * Deadline for approving the payroll run.
118
- */
119
- approval_deadline?: string;
120
- /**
121
- * Timestamp when the run was approved.
122
- */
123
- approved_at?: string;
124
- /**
125
- * Date the paycheck is issued.
126
- */
127
- check_date?: string;
128
- /**
129
- * Identifier linking this payroll run to the company's legal entity in the HRIS
130
- * system.
131
- */
132
- company_entity_id?: string;
133
- /**
134
- * ISO country code where the payroll run applies.
135
- */
136
- country_code?: string;
137
- /**
138
- * Date funds are debited from the company's account.
139
- */
140
- debit_date?: string;
141
- /**
142
- * Deadline after which the run is locked for changes.
143
- */
144
- lock_deadline?: string;
145
- /**
146
- * Timestamp when the run was marked as paid.
147
- */
148
- paid_at?: string;
149
- /**
150
- * Pay period details for this run.
151
- */
152
- pay_period?: PayrollRunRetrieveResponse.PayPeriod;
153
- /**
154
- * Payment method used (e.g. WIRE, ACH).
155
- */
156
- payment_type?: string;
157
- /**
158
- * Current state of the run (e.g. DRAFT, PAID, APPROVED).
159
- */
160
- run_state?: string;
161
- /**
162
- * Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
163
- */
164
- run_type?: string;
165
- /**
166
- * Human-readable title of the payroll run.
167
- */
168
- title?: string;
169
- }
170
- export declare namespace PayrollRunRetrieveResponse {
171
- /**
172
- * Pay period details for this run.
173
- */
174
- interface PayPeriod {
175
- /**
176
- * End date of the pay period.
177
- */
178
- end_date?: string;
179
- /**
180
- * Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
181
- */
182
- pay_frequency?: string;
183
- /**
184
- * Start date of the pay period.
185
- */
186
- start_date?: string;
187
- }
188
- }
189
- export interface PayrollRunListParams {
190
- order_by?: string;
191
- }
192
- export declare namespace PayrollRuns {
193
- export { type PayrollRunListResponse as PayrollRunListResponse, type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse, type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL, type PayrollRunListParams as PayrollRunListParams, };
194
- }
1
+ export * from "./payroll-runs/index.js";
195
2
  //# sourceMappingURL=payroll-runs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payroll-runs.d.ts","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,WAAW,EAAE;OAC9B,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,sBAAsB,CAAC;IAO5E;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGvF;AAED,MAAM,MAAM,oCAAoC,GAAG,aAAa,CAAC,sBAAsB,CAAC,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,MAAM,CAAC;IAEpB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC,SAAS,CAAC;IAElD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
1
+ {"version":3,"file":"payroll-runs.d.ts","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":""}
@@ -1,32 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.PayrollRuns = 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
- * Payroll runs for the company
10
- */
11
- class PayrollRuns extends resource_1.APIResource {
12
- /**
13
- * A list of payroll-runs.
14
- *
15
- * - Requires: `Payroll API`
16
- * - Sortable fields: `check_date`
17
- */
18
- list(query = {}, options) {
19
- return this._client.getAPIList('/payroll-runs/', (pagination_1.PageCursorURL), {
20
- query,
21
- ...options,
22
- });
23
- }
24
- /**
25
- * Retrieve a specific payroll-run
26
- */
27
- retrieve(id, options) {
28
- return this._client.get((0, path_1.path) `/payroll-runs/${id}/`, options);
29
- }
30
- }
31
- exports.PayrollRuns = PayrollRuns;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./payroll-runs/index.js"), exports);
32
6
  //# sourceMappingURL=payroll-runs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payroll-runs.js","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;OAKG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,0BAAqC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAvBD,kCAuBC"}
1
+ {"version":3,"file":"payroll-runs.js","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAAqC"}
@@ -1,28 +1,3 @@
1
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
- * Payroll runs for the company
7
- */
8
- export class PayrollRuns extends APIResource {
9
- /**
10
- * A list of payroll-runs.
11
- *
12
- * - Requires: `Payroll API`
13
- * - Sortable fields: `check_date`
14
- */
15
- list(query = {}, options) {
16
- return this._client.getAPIList('/payroll-runs/', (PageCursorURL), {
17
- query,
18
- ...options,
19
- });
20
- }
21
- /**
22
- * Retrieve a specific payroll-run
23
- */
24
- retrieve(id, options) {
25
- return this._client.get(path `/payroll-runs/${id}/`, options);
26
- }
27
- }
2
+ export * from "./payroll-runs/index.mjs";
28
3
  //# sourceMappingURL=payroll-runs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"payroll-runs.mjs","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,aAAa,EAAe;OAE9B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;OAKG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,aAAqC,CAAA,EAAE;YACtF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
1
+ {"version":3,"file":"payroll-runs.mjs","sourceRoot":"","sources":["../src/resources/payroll-runs.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -51,6 +51,20 @@ import {
51
51
  Candidates,
52
52
  } from './resources/candidates';
53
53
  import { Companies, CompaniesPageCursorURL, Company, CompanyListParams } from './resources/companies';
54
+ import {
55
+ CompanyLegalEntities,
56
+ CompanyLegalEntityListParams,
57
+ CompanyLegalEntityListResponse,
58
+ CompanyLegalEntityListResponsesPageCursorURL,
59
+ CompanyLegalEntityRetrieveResponse,
60
+ } from './resources/company-legal-entities';
61
+ import {
62
+ CompanyLegalEntityWorkerListParams,
63
+ CompanyLegalEntityWorkerListResponse,
64
+ CompanyLegalEntityWorkerListResponsesPageCursorURL,
65
+ CompanyLegalEntityWorkerRetrieveResponse,
66
+ CompanyLegalEntityWorkers,
67
+ } from './resources/company-legal-entity-workers';
54
68
  import {
55
69
  CompensationBandsDetailListParams,
56
70
  CompensationBandsDetailListResponse,
@@ -298,13 +312,6 @@ import {
298
312
  ObjectCategoryCreateParams,
299
313
  ObjectCategoryUpdateParams,
300
314
  } from './resources/object-categories';
301
- import {
302
- PayrollRunListParams,
303
- PayrollRunListResponse,
304
- PayrollRunListResponsesPageCursorURL,
305
- PayrollRunRetrieveResponse,
306
- PayrollRuns,
307
- } from './resources/payroll-runs';
308
315
  import {
309
316
  PlatformCapabilities,
310
317
  PlatformCapabilityListResponse,
@@ -471,6 +478,13 @@ import {
471
478
  MetadataListResponse,
472
479
  MetadataListResponsesPageCursorURL,
473
480
  } from './resources/metadata/metadata';
481
+ import {
482
+ PayrollRunListParams,
483
+ PayrollRunListResponse,
484
+ PayrollRunListResponsesPageCursorURL,
485
+ PayrollRunRetrieveResponse,
486
+ PayrollRuns,
487
+ } from './resources/payroll-runs/payroll-runs';
474
488
  import { ReportRetrieveResponse, Reports } from './resources/reports/reports';
475
489
  import {
476
490
  Supergroup,
@@ -1344,6 +1358,14 @@ export class RipplingSDK {
1344
1358
  * An application by a candidate to a specific job requisition
1345
1359
  */
1346
1360
  candidateApplications: API.CandidateApplications = new API.CandidateApplications(this);
1361
+ /**
1362
+ * Legal entities registered by the company
1363
+ */
1364
+ companyLegalEntities: API.CompanyLegalEntities = new API.CompanyLegalEntities(this);
1365
+ /**
1366
+ * Workers who work or have worked at the company
1367
+ */
1368
+ companyLegalEntityWorkers: API.CompanyLegalEntityWorkers = new API.CompanyLegalEntityWorkers(this);
1347
1369
  /**
1348
1370
  * Compensation bands details associated with workers
1349
1371
  */
@@ -1481,6 +1503,8 @@ RipplingSDK.JobAssignments = JobAssignments;
1481
1503
  RipplingSDK.JobPayRateExceptions = JobPayRateExceptions;
1482
1504
  RipplingSDK.Candidates = Candidates;
1483
1505
  RipplingSDK.CandidateApplications = CandidateApplications;
1506
+ RipplingSDK.CompanyLegalEntities = CompanyLegalEntities;
1507
+ RipplingSDK.CompanyLegalEntityWorkers = CompanyLegalEntityWorkers;
1484
1508
  RipplingSDK.CompensationBandsDetails = CompensationBandsDetails;
1485
1509
  RipplingSDK.CustomApps = CustomApps;
1486
1510
  RipplingSDK.CustomFields = CustomFields;
@@ -1823,6 +1847,22 @@ export declare namespace RipplingSDK {
1823
1847
  type CandidateApplicationListParams as CandidateApplicationListParams,
1824
1848
  };
1825
1849
 
1850
+ export {
1851
+ CompanyLegalEntities as CompanyLegalEntities,
1852
+ type CompanyLegalEntityListResponse as CompanyLegalEntityListResponse,
1853
+ type CompanyLegalEntityRetrieveResponse as CompanyLegalEntityRetrieveResponse,
1854
+ type CompanyLegalEntityListResponsesPageCursorURL as CompanyLegalEntityListResponsesPageCursorURL,
1855
+ type CompanyLegalEntityListParams as CompanyLegalEntityListParams,
1856
+ };
1857
+
1858
+ export {
1859
+ CompanyLegalEntityWorkers as CompanyLegalEntityWorkers,
1860
+ type CompanyLegalEntityWorkerListResponse as CompanyLegalEntityWorkerListResponse,
1861
+ type CompanyLegalEntityWorkerRetrieveResponse as CompanyLegalEntityWorkerRetrieveResponse,
1862
+ type CompanyLegalEntityWorkerListResponsesPageCursorURL as CompanyLegalEntityWorkerListResponsesPageCursorURL,
1863
+ type CompanyLegalEntityWorkerListParams as CompanyLegalEntityWorkerListParams,
1864
+ };
1865
+
1826
1866
  export {
1827
1867
  CompensationBandsDetails as CompensationBandsDetails,
1828
1868
  type CompensationBandsDetailListResponse as CompensationBandsDetailListResponse,
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
107
107
  name,
108
108
  (
109
109
  name.toLowerCase() === 'authorization' ||
110
+ name.toLowerCase() === 'api-key' ||
111
+ name.toLowerCase() === 'x-api-key' ||
110
112
  name.toLowerCase() === 'cookie' ||
111
113
  name.toLowerCase() === 'set-cookie'
112
114
  ) ?
@@ -70,6 +70,13 @@ export class CustomObjectFieldSection {
70
70
  return this._sectionId;
71
71
  }
72
72
 
73
+ /**
74
+ * Returns the display name of this field section.
75
+ */
76
+ getName(): string {
77
+ return this._name;
78
+ }
79
+
73
80
  /**
74
81
  * Returns the api_name of the custom object this section belongs to.
75
82
  */