@rippling/rippling-sdk 0.2.0-alpha.60 → 0.2.0-alpha.62

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 (60) hide show
  1. package/client.d.mts +6 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +6 -0
  4. package/client.d.ts.map +1 -1
  5. package/client.js +6 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +6 -0
  8. package/client.mjs.map +1 -1
  9. package/examples/manifest/dental-practice-management/dental-practice-management.ts +5 -6
  10. package/examples/manifest/field-service-dispatch/field-service-dispatch.ts +530 -0
  11. package/examples/manifest/grant-program-management/grant-program-management.ts +594 -0
  12. package/examples/manifest/gym-membership-management/gym-membership-management.ts +5 -6
  13. package/examples/manifest/procurement-approval-hub/procurement-approval-hub.ts +554 -0
  14. package/examples/manifest/simple-todo-app/simple-todo-app.ts +1 -3
  15. package/lib/manifest/index.d.mts +1 -1
  16. package/lib/manifest/index.d.mts.map +1 -1
  17. package/lib/manifest/index.d.ts +1 -1
  18. package/lib/manifest/index.d.ts.map +1 -1
  19. package/lib/manifest/index.js.map +1 -1
  20. package/lib/manifest/index.mjs.map +1 -1
  21. package/lib/manifest/manifest-function.d.mts +7 -4
  22. package/lib/manifest/manifest-function.d.mts.map +1 -1
  23. package/lib/manifest/manifest-function.d.ts +7 -4
  24. package/lib/manifest/manifest-function.d.ts.map +1 -1
  25. package/lib/manifest/manifest-function.js +11 -7
  26. package/lib/manifest/manifest-function.js.map +1 -1
  27. package/lib/manifest/manifest-function.mjs +10 -7
  28. package/lib/manifest/manifest-function.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/resources/device-orders.d.mts +147 -0
  31. package/resources/device-orders.d.mts.map +1 -0
  32. package/resources/device-orders.d.ts +147 -0
  33. package/resources/device-orders.d.ts.map +1 -0
  34. package/resources/device-orders.js +34 -0
  35. package/resources/device-orders.js.map +1 -0
  36. package/resources/device-orders.mjs +30 -0
  37. package/resources/device-orders.mjs.map +1 -0
  38. package/resources/index.d.mts +1 -0
  39. package/resources/index.d.mts.map +1 -1
  40. package/resources/index.d.ts +1 -0
  41. package/resources/index.d.ts.map +1 -1
  42. package/resources/index.js +4 -2
  43. package/resources/index.js.map +1 -1
  44. package/resources/index.mjs +1 -0
  45. package/resources/index.mjs.map +1 -1
  46. package/resources/job-assignments.d.mts +12 -12
  47. package/resources/job-assignments.d.mts.map +1 -1
  48. package/resources/job-assignments.d.ts +12 -12
  49. package/resources/job-assignments.d.ts.map +1 -1
  50. package/src/client.ts +22 -0
  51. package/src/lib/manifest/index.ts +1 -0
  52. package/src/lib/manifest/manifest-function.ts +18 -8
  53. package/src/resources/device-orders.ts +200 -0
  54. package/src/resources/index.ts +8 -0
  55. package/src/resources/job-assignments.ts +12 -12
  56. package/src/version.ts +1 -1
  57. package/version.d.mts +1 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/version.mjs +1 -1
@@ -0,0 +1,200 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Device orders (new device shipments, retrievals, etc.) for company workers
13
+ */
14
+ export class DeviceOrders extends APIResource {
15
+ /**
16
+ * A list of device orders.
17
+ *
18
+ * - Requires: `API Tier 2`
19
+ * - Filterable fields: `worker_id`, `status`
20
+ * - Expandable fields: `worker`
21
+ * - Sortable fields: `id`, `created_at`, `updated_at`
22
+ */
23
+ list(
24
+ query: DeviceOrderListParams | null | undefined = {},
25
+ options?: RequestOptions,
26
+ ): PagePromise<DeviceOrderListResponsesPageCursorURL, DeviceOrderListResponse> {
27
+ return this._client.getAPIList('/device-orders/', PageCursorURL<DeviceOrderListResponse>, {
28
+ query,
29
+ ...options,
30
+ });
31
+ }
32
+
33
+ /**
34
+ * Retrieve a specific device order
35
+ */
36
+ retrieve(
37
+ id: string,
38
+ query: DeviceOrderRetrieveParams | null | undefined = {},
39
+ options?: RequestOptions,
40
+ ): APIPromise<DeviceOrderRetrieveResponse> {
41
+ return this._client.get(path`/device-orders/${id}/`, { query, ...options });
42
+ }
43
+ }
44
+
45
+ export type DeviceOrderListResponsesPageCursorURL = PageCursorURL<DeviceOrderListResponse>;
46
+
47
+ export interface DeviceOrderListResponse {
48
+ /**
49
+ * Identifier field
50
+ */
51
+ id: string;
52
+
53
+ /**
54
+ * Record creation date
55
+ */
56
+ created_at: string;
57
+
58
+ /**
59
+ * Record update date
60
+ */
61
+ updated_at: string;
62
+
63
+ /**
64
+ * True when a cancellation has been requested but not yet completed.
65
+ */
66
+ cancel_requested?: boolean;
67
+
68
+ /**
69
+ * When the order reached a terminal state (COMPLETED, FAILED, or CANCELED).
70
+ */
71
+ completed_at?: string;
72
+
73
+ /**
74
+ * The type of hardware order, as reported by the underlying inventory order (for
75
+ * example: New Device Order, Warehouse Return, Warehouse Order, Add Existing
76
+ * Device, Assign Device, Empty Order, or Sell Device).
77
+ */
78
+ order_type?: string;
79
+
80
+ /**
81
+ * The ID of the role that requested the order (often an IT admin). Null if
82
+ * system-created.
83
+ */
84
+ requested_by_id?: string;
85
+
86
+ /**
87
+ * The order lifecycle state (InventoryFlowState): CREATED, RUNNING, COMPLETED,
88
+ * FAILED, CANCELING, CANCELED.
89
+ */
90
+ status?: string;
91
+
92
+ /**
93
+ * The warehouse / vendor provider servicing the order (e.g. CDW, INGRAMMICRO,
94
+ * TD_SYNNEX, GROWRK).
95
+ */
96
+ warehouse_provider?: string;
97
+
98
+ /**
99
+ * The worker the order is for.
100
+ *
101
+ * Expandable field
102
+ */
103
+ worker?: WorkersAPI.Worker;
104
+
105
+ /**
106
+ * The ID of the worker the order is for (the recipient). Null if unassigned.
107
+ */
108
+ worker_id?: string;
109
+ }
110
+
111
+ /**
112
+ * Meta information for the response.
113
+ */
114
+ export interface DeviceOrderRetrieveResponse extends BusinessPartnersAPI.Meta {
115
+ /**
116
+ * Identifier field
117
+ */
118
+ id: string;
119
+
120
+ /**
121
+ * Record creation date
122
+ */
123
+ created_at: string;
124
+
125
+ /**
126
+ * Record update date
127
+ */
128
+ updated_at: string;
129
+
130
+ /**
131
+ * True when a cancellation has been requested but not yet completed.
132
+ */
133
+ cancel_requested?: boolean;
134
+
135
+ /**
136
+ * When the order reached a terminal state (COMPLETED, FAILED, or CANCELED).
137
+ */
138
+ completed_at?: string;
139
+
140
+ /**
141
+ * The type of hardware order, as reported by the underlying inventory order (for
142
+ * example: New Device Order, Warehouse Return, Warehouse Order, Add Existing
143
+ * Device, Assign Device, Empty Order, or Sell Device).
144
+ */
145
+ order_type?: string;
146
+
147
+ /**
148
+ * The ID of the role that requested the order (often an IT admin). Null if
149
+ * system-created.
150
+ */
151
+ requested_by_id?: string;
152
+
153
+ /**
154
+ * The order lifecycle state (InventoryFlowState): CREATED, RUNNING, COMPLETED,
155
+ * FAILED, CANCELING, CANCELED.
156
+ */
157
+ status?: string;
158
+
159
+ /**
160
+ * The warehouse / vendor provider servicing the order (e.g. CDW, INGRAMMICRO,
161
+ * TD_SYNNEX, GROWRK).
162
+ */
163
+ warehouse_provider?: string;
164
+
165
+ /**
166
+ * The worker the order is for.
167
+ *
168
+ * Expandable field
169
+ */
170
+ worker?: WorkersAPI.Worker;
171
+
172
+ /**
173
+ * The ID of the worker the order is for (the recipient). Null if unassigned.
174
+ */
175
+ worker_id?: string;
176
+ }
177
+
178
+ export interface DeviceOrderListParams {
179
+ cursor?: string;
180
+
181
+ expand?: string;
182
+
183
+ filter?: string;
184
+
185
+ order_by?: string;
186
+ }
187
+
188
+ export interface DeviceOrderRetrieveParams {
189
+ expand?: string;
190
+ }
191
+
192
+ export declare namespace DeviceOrders {
193
+ export {
194
+ type DeviceOrderListResponse as DeviceOrderListResponse,
195
+ type DeviceOrderRetrieveResponse as DeviceOrderRetrieveResponse,
196
+ type DeviceOrderListResponsesPageCursorURL as DeviceOrderListResponsesPageCursorURL,
197
+ type DeviceOrderListParams as DeviceOrderListParams,
198
+ type DeviceOrderRetrieveParams as DeviceOrderRetrieveParams,
199
+ };
200
+ }
@@ -140,6 +140,14 @@ export {
140
140
  type DepartmentUpdateParams,
141
141
  type DepartmentsPageCursorURL,
142
142
  } from './departments';
143
+ export {
144
+ DeviceOrders,
145
+ type DeviceOrderListResponse,
146
+ type DeviceOrderRetrieveResponse,
147
+ type DeviceOrderListParams,
148
+ type DeviceOrderRetrieveParams,
149
+ type DeviceOrderListResponsesPageCursorURL,
150
+ } from './device-orders';
143
151
  export { DraftHires, type DraftHireCreateResponse, type DraftHireCreateParams } from './draft-hires';
144
152
  export {
145
153
  EarningTypes,
@@ -256,7 +256,8 @@ export interface JobAssignmentCreateParams {
256
256
 
257
257
  /**
258
258
  * Date and time the change becomes effective (ISO 8601 format, e.g.,
259
- * 2025-11-07T17:00:00.000+00:00).
259
+ * 2025-11-07T17:00:00.000+00:00); defaults to current time in UTC if not provided.
260
+ * job_pay_rate_effective_from is ignored if this field is provided.
260
261
  */
261
262
  effective_from?: string;
262
263
 
@@ -267,15 +268,14 @@ export interface JobAssignmentCreateParams {
267
268
  job_pay_rate?: number;
268
269
 
269
270
  /**
270
- * Reason for setting, updating, or resetting the pay rate for the job assigned to
271
- * the worker.
271
+ * This field is deprecated and will be removed in a future version, use the new
272
+ * change_reason field instead.
272
273
  */
273
274
  job_pay_rate_change_reason?: string;
274
275
 
275
276
  /**
276
- * Date and time the pay rate becomes effective (ISO 8601 format
277
- * YYYY-MM-DDTHH:mm:ss.sssZ, e.g., 2025-11-07T17:00:00.000+00:00); defaults to
278
- * current time in UTC if not provided.
277
+ * This field is deprecated and will be removed in a future version, use the new
278
+ * effective_from field instead.
279
279
  */
280
280
  job_pay_rate_effective_from?: string;
281
281
  }
@@ -302,7 +302,8 @@ export interface JobAssignmentUpdateParams {
302
302
 
303
303
  /**
304
304
  * Date and time the change becomes effective (ISO 8601 format, e.g.,
305
- * 2025-11-07T17:00:00.000+00:00).
305
+ * 2025-11-07T17:00:00.000+00:00); defaults to current time in UTC if not provided.
306
+ * job_pay_rate_effective_from is ignored if this field is provided.
306
307
  */
307
308
  effective_from?: string;
308
309
 
@@ -313,15 +314,14 @@ export interface JobAssignmentUpdateParams {
313
314
  job_pay_rate?: number;
314
315
 
315
316
  /**
316
- * Reason for setting, updating, or resetting the pay rate for the job assigned to
317
- * the worker.
317
+ * This field is deprecated and will be removed in a future version, use the new
318
+ * change_reason field instead.
318
319
  */
319
320
  job_pay_rate_change_reason?: string;
320
321
 
321
322
  /**
322
- * Date and time the pay rate becomes effective (ISO 8601 format
323
- * YYYY-MM-DDTHH:mm:ss.sssZ, e.g., 2025-11-07T17:00:00.000+00:00); defaults to
324
- * current time in UTC if not provided.
323
+ * This field is deprecated and will be removed in a future version, use the new
324
+ * effective_from field instead.
325
325
  */
326
326
  job_pay_rate_effective_from?: string;
327
327
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.60'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.62'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.60";
1
+ export declare const VERSION = "0.2.0-alpha.62";
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.60";
1
+ export declare const VERSION = "0.2.0-alpha.62";
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.60'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.62'; // 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.60'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.62'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map