@rippling/rippling-sdk 0.2.0-alpha.111 → 0.2.0-alpha.113
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 +20 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -2
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
- package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
- package/lib/manifest/definitions/canvas-instance.js +31 -0
- package/lib/manifest/definitions/canvas-instance.js.map +1 -0
- package/lib/manifest/definitions/canvas-instance.mjs +28 -0
- package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +1 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -1
- package/lib/manifest/definitions/index.d.ts +1 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -1
- package/lib/manifest/definitions/index.js +3 -1
- package/lib/manifest/definitions/index.js.map +1 -1
- package/lib/manifest/definitions/index.mjs +1 -0
- package/lib/manifest/definitions/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/custom-objects/custom-objects.d.mts +4 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +4 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +4 -0
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +4 -0
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +1 -0
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +1 -0
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +3 -1
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +1 -0
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/record-actions.d.mts +98 -0
- package/resources/custom-objects/record-actions.d.mts.map +1 -0
- package/resources/custom-objects/record-actions.d.ts +98 -0
- package/resources/custom-objects/record-actions.d.ts.map +1 -0
- package/resources/custom-objects/record-actions.js +58 -0
- package/resources/custom-objects/record-actions.js.map +1 -0
- package/resources/custom-objects/record-actions.mjs +54 -0
- package/resources/custom-objects/record-actions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +14 -2
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +14 -2
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/earnings-inputs.js +14 -2
- package/resources/earnings-inputs.js.map +1 -1
- package/resources/earnings-inputs.mjs +14 -2
- package/resources/earnings-inputs.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/record-detail-reference-options.d.mts +18 -19
- package/resources/record-detail-reference-options.d.mts.map +1 -1
- package/resources/record-detail-reference-options.d.ts +18 -19
- package/resources/record-detail-reference-options.d.ts.map +1 -1
- package/resources/record-detail-reference-options.js +13 -13
- package/resources/record-detail-reference-options.mjs +13 -13
- package/resources/record-detail-related-records.d.mts +293 -204
- package/resources/record-detail-related-records.d.mts.map +1 -1
- package/resources/record-detail-related-records.d.ts +293 -204
- package/resources/record-detail-related-records.d.ts.map +1 -1
- package/resources/record-detail-related-records.js +3 -3
- package/resources/record-detail-related-records.mjs +3 -3
- package/resources/record-details.d.mts +1676 -222
- package/resources/record-details.d.mts.map +1 -1
- package/resources/record-details.d.ts +1676 -222
- package/resources/record-details.d.ts.map +1 -1
- package/resources/record-details.js +76 -6
- package/resources/record-details.js.map +1 -1
- package/resources/record-details.mjs +76 -6
- package/resources/record-details.mjs.map +1 -1
- package/resources/scheduled-payout-labels.d.mts +267 -0
- package/resources/scheduled-payout-labels.d.mts.map +1 -0
- package/resources/scheduled-payout-labels.d.ts +267 -0
- package/resources/scheduled-payout-labels.d.ts.map +1 -0
- package/resources/scheduled-payout-labels.js +151 -0
- package/resources/scheduled-payout-labels.js.map +1 -0
- package/resources/scheduled-payout-labels.mjs +147 -0
- package/resources/scheduled-payout-labels.mjs.map +1 -0
- package/resources/scheduled-payout-types.d.mts +680 -0
- package/resources/scheduled-payout-types.d.mts.map +1 -0
- package/resources/scheduled-payout-types.d.ts +680 -0
- package/resources/scheduled-payout-types.d.ts.map +1 -0
- package/resources/scheduled-payout-types.js +546 -0
- package/resources/scheduled-payout-types.js.map +1 -0
- package/resources/scheduled-payout-types.mjs +542 -0
- package/resources/scheduled-payout-types.mjs.map +1 -0
- package/resources/scheduled-payouts.d.mts +1590 -0
- package/resources/scheduled-payouts.d.mts.map +1 -0
- package/resources/scheduled-payouts.d.ts +1590 -0
- package/resources/scheduled-payouts.d.ts.map +1 -0
- package/resources/scheduled-payouts.js +584 -0
- package/resources/scheduled-payouts.js.map +1 -0
- package/resources/scheduled-payouts.mjs +580 -0
- package/resources/scheduled-payouts.mjs.map +1 -0
- package/resources/worker-changes.d.mts +65 -10
- package/resources/worker-changes.d.mts.map +1 -1
- package/resources/worker-changes.d.ts +65 -10
- package/resources/worker-changes.d.ts.map +1 -1
- package/resources/worker-changes.js +3 -0
- package/resources/worker-changes.js.map +1 -1
- package/resources/worker-changes.mjs +3 -0
- package/resources/worker-changes.mjs.map +1 -1
- package/src/client.ts +88 -0
- package/src/lib/manifest/definitions/README.md +3 -1
- package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
- package/src/lib/manifest/definitions/index.ts +17 -0
- package/src/lib/manifest/manifest-builder.ts +1 -0
- package/src/resources/custom-objects/custom-objects.ts +16 -0
- package/src/resources/custom-objects/index.ts +6 -0
- package/src/resources/custom-objects/record-actions.ts +125 -0
- package/src/resources/earnings-inputs.ts +14 -2
- package/src/resources/index.ts +35 -0
- package/src/resources/record-detail-reference-options.ts +18 -19
- package/src/resources/record-detail-related-records.ts +298 -191
- package/src/resources/record-details.ts +2031 -209
- package/src/resources/scheduled-payout-labels.ts +373 -0
- package/src/resources/scheduled-payout-types.ts +755 -0
- package/src/resources/scheduled-payouts.ts +1949 -0
- package/src/resources/worker-changes.ts +71 -10
- 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
|
@@ -149,6 +149,9 @@ export declare class WorkerChanges extends APIResource {
|
|
|
149
149
|
* "event_type": "HIRE",
|
|
150
150
|
* "import_type": "INITIAL",
|
|
151
151
|
* "reason_code": "string",
|
|
152
|
+
* "change_note": "string",
|
|
153
|
+
* "requested_on": "string",
|
|
154
|
+
* "requested_on_source": "APPROVAL_REQUEST_SUBMITTED",
|
|
152
155
|
* "changes": [
|
|
153
156
|
* {}
|
|
154
157
|
* ]
|
|
@@ -227,6 +230,14 @@ export interface WorkerChangeListResponse {
|
|
|
227
230
|
* The worker affected by this change.
|
|
228
231
|
*/
|
|
229
232
|
worker_id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Free-text explanation of the change, separate from the company-configured
|
|
235
|
+
* reason_code label. Older records may contain a summary of the change instead of
|
|
236
|
+
* an author-written note. Null when no explanation or field changes are available,
|
|
237
|
+
* the caller cannot access the source transition, or access to every underlying
|
|
238
|
+
* changed field cannot be verified.
|
|
239
|
+
*/
|
|
240
|
+
change_note?: string;
|
|
230
241
|
/**
|
|
231
242
|
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
232
243
|
* requested.
|
|
@@ -244,15 +255,32 @@ export interface WorkerChangeListResponse {
|
|
|
244
255
|
*/
|
|
245
256
|
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
246
257
|
/**
|
|
247
|
-
*
|
|
258
|
+
* Company-configured transition reason label (e.g. 'Promotion', 'Market
|
|
259
|
+
* adjustment'). Preserves the configured spelling and capitalization. Populated
|
|
248
260
|
* only when the company has configured transition reasons and the change went
|
|
249
|
-
* through a role transition with one selected. Null
|
|
261
|
+
* through a role transition with one selected. Null when the caller cannot access
|
|
262
|
+
* the source transition, or no reason was recorded. Reason filters match only
|
|
263
|
+
* labels the caller can access.
|
|
250
264
|
*/
|
|
251
265
|
reason_code?: string;
|
|
252
266
|
/**
|
|
253
267
|
* For amendments or undos, the id of the worker-change event being modified.
|
|
254
268
|
*/
|
|
255
269
|
referenced_transaction_id?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Best available request timestamp in UTC. requested_on_source distinguishes
|
|
272
|
+
* approval submission from request or transition creation time. Null when no
|
|
273
|
+
* request source is known. Independent of applied_on, which remains the
|
|
274
|
+
* incremental polling and cursor axis.
|
|
275
|
+
*/
|
|
276
|
+
requested_on?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Source of requested_on. APPROVAL_REQUEST_SUBMITTED is persisted approval
|
|
279
|
+
* submission time; TRANSITION_CREATED and SCHEDULED_CHANGE_CREATED are
|
|
280
|
+
* record-creation proxies, not confirmed submission times. Null when requested_on
|
|
281
|
+
* is null.
|
|
282
|
+
*/
|
|
283
|
+
requested_on_source?: 'APPROVAL_REQUEST_SUBMITTED' | 'TRANSITION_CREATED' | 'SCHEDULED_CHANGE_CREATED';
|
|
256
284
|
/**
|
|
257
285
|
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
258
286
|
* is requested. Includes terminated employees.
|
|
@@ -285,9 +313,10 @@ export declare namespace WorkerChangeListResponse {
|
|
|
285
313
|
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
286
314
|
/**
|
|
287
315
|
* Value before the change, rendered as a display string (locale- and
|
|
288
|
-
* currency-formatted per the activity-log convention).
|
|
289
|
-
*
|
|
290
|
-
*
|
|
316
|
+
* currency-formatted per the activity-log convention). Phone extensions and
|
|
317
|
+
* country-only address changes are preserved. Null when display_type is REDACTED.
|
|
318
|
+
* Typed JSON values are tracked as a future addition; consult value_type to
|
|
319
|
+
* interpret the rendering.
|
|
291
320
|
*/
|
|
292
321
|
from_value?: string;
|
|
293
322
|
/**
|
|
@@ -342,6 +371,14 @@ export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
342
371
|
* The worker affected by this change.
|
|
343
372
|
*/
|
|
344
373
|
worker_id: string;
|
|
374
|
+
/**
|
|
375
|
+
* Free-text explanation of the change, separate from the company-configured
|
|
376
|
+
* reason_code label. Older records may contain a summary of the change instead of
|
|
377
|
+
* an author-written note. Null when no explanation or field changes are available,
|
|
378
|
+
* the caller cannot access the source transition, or access to every underlying
|
|
379
|
+
* changed field cannot be verified.
|
|
380
|
+
*/
|
|
381
|
+
change_note?: string;
|
|
345
382
|
/**
|
|
346
383
|
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
347
384
|
* requested.
|
|
@@ -359,15 +396,32 @@ export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
359
396
|
*/
|
|
360
397
|
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
361
398
|
/**
|
|
362
|
-
*
|
|
399
|
+
* Company-configured transition reason label (e.g. 'Promotion', 'Market
|
|
400
|
+
* adjustment'). Preserves the configured spelling and capitalization. Populated
|
|
363
401
|
* only when the company has configured transition reasons and the change went
|
|
364
|
-
* through a role transition with one selected. Null
|
|
402
|
+
* through a role transition with one selected. Null when the caller cannot access
|
|
403
|
+
* the source transition, or no reason was recorded. Reason filters match only
|
|
404
|
+
* labels the caller can access.
|
|
365
405
|
*/
|
|
366
406
|
reason_code?: string;
|
|
367
407
|
/**
|
|
368
408
|
* For amendments or undos, the id of the worker-change event being modified.
|
|
369
409
|
*/
|
|
370
410
|
referenced_transaction_id?: string;
|
|
411
|
+
/**
|
|
412
|
+
* Best available request timestamp in UTC. requested_on_source distinguishes
|
|
413
|
+
* approval submission from request or transition creation time. Null when no
|
|
414
|
+
* request source is known. Independent of applied_on, which remains the
|
|
415
|
+
* incremental polling and cursor axis.
|
|
416
|
+
*/
|
|
417
|
+
requested_on?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Source of requested_on. APPROVAL_REQUEST_SUBMITTED is persisted approval
|
|
420
|
+
* submission time; TRANSITION_CREATED and SCHEDULED_CHANGE_CREATED are
|
|
421
|
+
* record-creation proxies, not confirmed submission times. Null when requested_on
|
|
422
|
+
* is null.
|
|
423
|
+
*/
|
|
424
|
+
requested_on_source?: 'APPROVAL_REQUEST_SUBMITTED' | 'TRANSITION_CREATED' | 'SCHEDULED_CHANGE_CREATED';
|
|
371
425
|
/**
|
|
372
426
|
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
373
427
|
* is requested. Includes terminated employees.
|
|
@@ -400,9 +454,10 @@ export declare namespace WorkerChangeRetrieveResponse {
|
|
|
400
454
|
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
401
455
|
/**
|
|
402
456
|
* Value before the change, rendered as a display string (locale- and
|
|
403
|
-
* currency-formatted per the activity-log convention).
|
|
404
|
-
*
|
|
405
|
-
*
|
|
457
|
+
* currency-formatted per the activity-log convention). Phone extensions and
|
|
458
|
+
* country-only address changes are preserved. Null when display_type is REDACTED.
|
|
459
|
+
* Typed JSON values are tracked as a future addition; consult value_type to
|
|
460
|
+
* interpret the rendering.
|
|
406
461
|
*/
|
|
407
462
|
from_value?: string;
|
|
408
463
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.d.mts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"worker-changes.d.mts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwJG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,wBAAwB,CAAC;IAOhF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,0BAA0B,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D,CAAC;CACH"}
|
|
@@ -149,6 +149,9 @@ export declare class WorkerChanges extends APIResource {
|
|
|
149
149
|
* "event_type": "HIRE",
|
|
150
150
|
* "import_type": "INITIAL",
|
|
151
151
|
* "reason_code": "string",
|
|
152
|
+
* "change_note": "string",
|
|
153
|
+
* "requested_on": "string",
|
|
154
|
+
* "requested_on_source": "APPROVAL_REQUEST_SUBMITTED",
|
|
152
155
|
* "changes": [
|
|
153
156
|
* {}
|
|
154
157
|
* ]
|
|
@@ -227,6 +230,14 @@ export interface WorkerChangeListResponse {
|
|
|
227
230
|
* The worker affected by this change.
|
|
228
231
|
*/
|
|
229
232
|
worker_id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Free-text explanation of the change, separate from the company-configured
|
|
235
|
+
* reason_code label. Older records may contain a summary of the change instead of
|
|
236
|
+
* an author-written note. Null when no explanation or field changes are available,
|
|
237
|
+
* the caller cannot access the source transition, or access to every underlying
|
|
238
|
+
* changed field cannot be verified.
|
|
239
|
+
*/
|
|
240
|
+
change_note?: string;
|
|
230
241
|
/**
|
|
231
242
|
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
232
243
|
* requested.
|
|
@@ -244,15 +255,32 @@ export interface WorkerChangeListResponse {
|
|
|
244
255
|
*/
|
|
245
256
|
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
246
257
|
/**
|
|
247
|
-
*
|
|
258
|
+
* Company-configured transition reason label (e.g. 'Promotion', 'Market
|
|
259
|
+
* adjustment'). Preserves the configured spelling and capitalization. Populated
|
|
248
260
|
* only when the company has configured transition reasons and the change went
|
|
249
|
-
* through a role transition with one selected. Null
|
|
261
|
+
* through a role transition with one selected. Null when the caller cannot access
|
|
262
|
+
* the source transition, or no reason was recorded. Reason filters match only
|
|
263
|
+
* labels the caller can access.
|
|
250
264
|
*/
|
|
251
265
|
reason_code?: string;
|
|
252
266
|
/**
|
|
253
267
|
* For amendments or undos, the id of the worker-change event being modified.
|
|
254
268
|
*/
|
|
255
269
|
referenced_transaction_id?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Best available request timestamp in UTC. requested_on_source distinguishes
|
|
272
|
+
* approval submission from request or transition creation time. Null when no
|
|
273
|
+
* request source is known. Independent of applied_on, which remains the
|
|
274
|
+
* incremental polling and cursor axis.
|
|
275
|
+
*/
|
|
276
|
+
requested_on?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Source of requested_on. APPROVAL_REQUEST_SUBMITTED is persisted approval
|
|
279
|
+
* submission time; TRANSITION_CREATED and SCHEDULED_CHANGE_CREATED are
|
|
280
|
+
* record-creation proxies, not confirmed submission times. Null when requested_on
|
|
281
|
+
* is null.
|
|
282
|
+
*/
|
|
283
|
+
requested_on_source?: 'APPROVAL_REQUEST_SUBMITTED' | 'TRANSITION_CREATED' | 'SCHEDULED_CHANGE_CREATED';
|
|
256
284
|
/**
|
|
257
285
|
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
258
286
|
* is requested. Includes terminated employees.
|
|
@@ -285,9 +313,10 @@ export declare namespace WorkerChangeListResponse {
|
|
|
285
313
|
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
286
314
|
/**
|
|
287
315
|
* Value before the change, rendered as a display string (locale- and
|
|
288
|
-
* currency-formatted per the activity-log convention).
|
|
289
|
-
*
|
|
290
|
-
*
|
|
316
|
+
* currency-formatted per the activity-log convention). Phone extensions and
|
|
317
|
+
* country-only address changes are preserved. Null when display_type is REDACTED.
|
|
318
|
+
* Typed JSON values are tracked as a future addition; consult value_type to
|
|
319
|
+
* interpret the rendering.
|
|
291
320
|
*/
|
|
292
321
|
from_value?: string;
|
|
293
322
|
/**
|
|
@@ -342,6 +371,14 @@ export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
342
371
|
* The worker affected by this change.
|
|
343
372
|
*/
|
|
344
373
|
worker_id: string;
|
|
374
|
+
/**
|
|
375
|
+
* Free-text explanation of the change, separate from the company-configured
|
|
376
|
+
* reason_code label. Older records may contain a summary of the change instead of
|
|
377
|
+
* an author-written note. Null when no explanation or field changes are available,
|
|
378
|
+
* the caller cannot access the source transition, or access to every underlying
|
|
379
|
+
* changed field cannot be verified.
|
|
380
|
+
*/
|
|
381
|
+
change_note?: string;
|
|
345
382
|
/**
|
|
346
383
|
* The actor as the current Worker DTO. Returned only when expand=changed_by is
|
|
347
384
|
* requested.
|
|
@@ -359,15 +396,32 @@ export interface WorkerChangeRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
359
396
|
*/
|
|
360
397
|
import_type?: 'INITIAL' | 'HISTORICAL';
|
|
361
398
|
/**
|
|
362
|
-
*
|
|
399
|
+
* Company-configured transition reason label (e.g. 'Promotion', 'Market
|
|
400
|
+
* adjustment'). Preserves the configured spelling and capitalization. Populated
|
|
363
401
|
* only when the company has configured transition reasons and the change went
|
|
364
|
-
* through a role transition with one selected. Null
|
|
402
|
+
* through a role transition with one selected. Null when the caller cannot access
|
|
403
|
+
* the source transition, or no reason was recorded. Reason filters match only
|
|
404
|
+
* labels the caller can access.
|
|
365
405
|
*/
|
|
366
406
|
reason_code?: string;
|
|
367
407
|
/**
|
|
368
408
|
* For amendments or undos, the id of the worker-change event being modified.
|
|
369
409
|
*/
|
|
370
410
|
referenced_transaction_id?: string;
|
|
411
|
+
/**
|
|
412
|
+
* Best available request timestamp in UTC. requested_on_source distinguishes
|
|
413
|
+
* approval submission from request or transition creation time. Null when no
|
|
414
|
+
* request source is known. Independent of applied_on, which remains the
|
|
415
|
+
* incremental polling and cursor axis.
|
|
416
|
+
*/
|
|
417
|
+
requested_on?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Source of requested_on. APPROVAL_REQUEST_SUBMITTED is persisted approval
|
|
420
|
+
* submission time; TRANSITION_CREATED and SCHEDULED_CHANGE_CREATED are
|
|
421
|
+
* record-creation proxies, not confirmed submission times. Null when requested_on
|
|
422
|
+
* is null.
|
|
423
|
+
*/
|
|
424
|
+
requested_on_source?: 'APPROVAL_REQUEST_SUBMITTED' | 'TRANSITION_CREATED' | 'SCHEDULED_CHANGE_CREATED';
|
|
371
425
|
/**
|
|
372
426
|
* The affected worker as the current Worker DTO. Returned only when expand=worker
|
|
373
427
|
* is requested. Includes terminated employees.
|
|
@@ -400,9 +454,10 @@ export declare namespace WorkerChangeRetrieveResponse {
|
|
|
400
454
|
value_type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'CURRENCY' | 'ENUM' | 'REFERENCE';
|
|
401
455
|
/**
|
|
402
456
|
* Value before the change, rendered as a display string (locale- and
|
|
403
|
-
* currency-formatted per the activity-log convention).
|
|
404
|
-
*
|
|
405
|
-
*
|
|
457
|
+
* currency-formatted per the activity-log convention). Phone extensions and
|
|
458
|
+
* country-only address changes are preserved. Null when display_type is REDACTED.
|
|
459
|
+
* Typed JSON values are tracked as a future addition; consult value_type to
|
|
460
|
+
* interpret the rendering.
|
|
406
461
|
*/
|
|
407
462
|
from_value?: string;
|
|
408
463
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.d.ts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"worker-changes.d.ts","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO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MG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -150,6 +150,9 @@ class WorkerChanges extends resource_1.APIResource {
|
|
|
150
150
|
* "event_type": "HIRE",
|
|
151
151
|
* "import_type": "INITIAL",
|
|
152
152
|
* "reason_code": "string",
|
|
153
|
+
* "change_note": "string",
|
|
154
|
+
* "requested_on": "string",
|
|
155
|
+
* "requested_on_source": "APPROVAL_REQUEST_SUBMITTED",
|
|
153
156
|
* "changes": [
|
|
154
157
|
* {}
|
|
155
158
|
* ]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.js","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"worker-changes.js","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwJG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,0BAAuC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAlMD,sCAkMC"}
|
|
@@ -147,6 +147,9 @@ export class WorkerChanges extends APIResource {
|
|
|
147
147
|
* "event_type": "HIRE",
|
|
148
148
|
* "import_type": "INITIAL",
|
|
149
149
|
* "reason_code": "string",
|
|
150
|
+
* "change_note": "string",
|
|
151
|
+
* "requested_on": "string",
|
|
152
|
+
* "requested_on_source": "APPROVAL_REQUEST_SUBMITTED",
|
|
150
153
|
* "changes": [
|
|
151
154
|
* {}
|
|
152
155
|
* ]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker-changes.mjs","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"worker-changes.mjs","sourceRoot":"","sources":["../src/resources/worker-changes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwJG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,aAAuC,CAAA,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,EAAU,EACV,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -553,6 +553,8 @@ import {
|
|
|
553
553
|
RecordDetailRelatedRecords,
|
|
554
554
|
} from './resources/record-detail-related-records';
|
|
555
555
|
import {
|
|
556
|
+
RecordDetailRetrieveCreateParams,
|
|
557
|
+
RecordDetailRetrieveCreateResponse,
|
|
556
558
|
RecordDetailRetrieveParams,
|
|
557
559
|
RecordDetailRetrieveResponse,
|
|
558
560
|
RecordDetails,
|
|
@@ -590,6 +592,39 @@ import {
|
|
|
590
592
|
ScheduledJobAssignmentRetrieveResponse,
|
|
591
593
|
ScheduledJobAssignments,
|
|
592
594
|
} from './resources/scheduled-job-assignments';
|
|
595
|
+
import {
|
|
596
|
+
ScheduledPayoutLabelCreateParams,
|
|
597
|
+
ScheduledPayoutLabelCreateResponse,
|
|
598
|
+
ScheduledPayoutLabelListParams,
|
|
599
|
+
ScheduledPayoutLabelListResponse,
|
|
600
|
+
ScheduledPayoutLabelListResponsesPageCursorURL,
|
|
601
|
+
ScheduledPayoutLabelRetrieveResponse,
|
|
602
|
+
ScheduledPayoutLabelUpdateParams,
|
|
603
|
+
ScheduledPayoutLabelUpdateResponse,
|
|
604
|
+
ScheduledPayoutLabels,
|
|
605
|
+
} from './resources/scheduled-payout-labels';
|
|
606
|
+
import {
|
|
607
|
+
ScheduledPayoutTypeCreateParams,
|
|
608
|
+
ScheduledPayoutTypeCreateResponse,
|
|
609
|
+
ScheduledPayoutTypeListParams,
|
|
610
|
+
ScheduledPayoutTypeListResponse,
|
|
611
|
+
ScheduledPayoutTypeListResponsesPageCursorURL,
|
|
612
|
+
ScheduledPayoutTypeRetrieveResponse,
|
|
613
|
+
ScheduledPayoutTypeUpdateParams,
|
|
614
|
+
ScheduledPayoutTypeUpdateResponse,
|
|
615
|
+
ScheduledPayoutTypes,
|
|
616
|
+
} from './resources/scheduled-payout-types';
|
|
617
|
+
import {
|
|
618
|
+
ScheduledPayoutCancelParams,
|
|
619
|
+
ScheduledPayoutCancelResponse,
|
|
620
|
+
ScheduledPayoutCreateParams,
|
|
621
|
+
ScheduledPayoutCreateResponse,
|
|
622
|
+
ScheduledPayoutListParams,
|
|
623
|
+
ScheduledPayoutListResponse,
|
|
624
|
+
ScheduledPayoutListResponsesPageCursorURL,
|
|
625
|
+
ScheduledPayoutRetrieveResponse,
|
|
626
|
+
ScheduledPayouts,
|
|
627
|
+
} from './resources/scheduled-payouts';
|
|
593
628
|
import {
|
|
594
629
|
ScheduleCreateParams,
|
|
595
630
|
ScheduleCreateResponse,
|
|
@@ -2035,6 +2070,18 @@ export class RipplingSDK {
|
|
|
2035
2070
|
* Job related information for the company
|
|
2036
2071
|
*/
|
|
2037
2072
|
scheduledJobAssignments: API.ScheduledJobAssignments = new API.ScheduledJobAssignments(this);
|
|
2073
|
+
/**
|
|
2074
|
+
* Compensation associated with workers
|
|
2075
|
+
*/
|
|
2076
|
+
scheduledPayouts: API.ScheduledPayouts = new API.ScheduledPayouts(this);
|
|
2077
|
+
/**
|
|
2078
|
+
* Compensation associated with workers
|
|
2079
|
+
*/
|
|
2080
|
+
scheduledPayoutLabels: API.ScheduledPayoutLabels = new API.ScheduledPayoutLabels(this);
|
|
2081
|
+
/**
|
|
2082
|
+
* Compensation associated with workers
|
|
2083
|
+
*/
|
|
2084
|
+
scheduledPayoutTypes: API.ScheduledPayoutTypes = new API.ScheduledPayoutTypes(this);
|
|
2038
2085
|
/**
|
|
2039
2086
|
* Shift assignments assigned to workers
|
|
2040
2087
|
*/
|
|
@@ -2204,6 +2251,9 @@ RipplingSDK.ReportRuns = ReportRuns;
|
|
|
2204
2251
|
RipplingSDK.Sandboxes = Sandboxes;
|
|
2205
2252
|
RipplingSDK.Schedules = Schedules;
|
|
2206
2253
|
RipplingSDK.ScheduledJobAssignments = ScheduledJobAssignments;
|
|
2254
|
+
RipplingSDK.ScheduledPayouts = ScheduledPayouts;
|
|
2255
|
+
RipplingSDK.ScheduledPayoutLabels = ScheduledPayoutLabels;
|
|
2256
|
+
RipplingSDK.ScheduledPayoutTypes = ScheduledPayoutTypes;
|
|
2207
2257
|
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
2208
2258
|
RipplingSDK.Sites = Sites;
|
|
2209
2259
|
RipplingSDK.SoftwareDeployments = SoftwareDeployments;
|
|
@@ -2678,7 +2728,9 @@ export declare namespace RipplingSDK {
|
|
|
2678
2728
|
export {
|
|
2679
2729
|
RecordDetails as RecordDetails,
|
|
2680
2730
|
type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse,
|
|
2731
|
+
type RecordDetailRetrieveCreateResponse as RecordDetailRetrieveCreateResponse,
|
|
2681
2732
|
type RecordDetailRetrieveParams as RecordDetailRetrieveParams,
|
|
2733
|
+
type RecordDetailRetrieveCreateParams as RecordDetailRetrieveCreateParams,
|
|
2682
2734
|
};
|
|
2683
2735
|
|
|
2684
2736
|
export {
|
|
@@ -3064,6 +3116,42 @@ export declare namespace RipplingSDK {
|
|
|
3064
3116
|
type ScheduledJobAssignmentListParams as ScheduledJobAssignmentListParams,
|
|
3065
3117
|
};
|
|
3066
3118
|
|
|
3119
|
+
export {
|
|
3120
|
+
ScheduledPayouts as ScheduledPayouts,
|
|
3121
|
+
type ScheduledPayoutListResponse as ScheduledPayoutListResponse,
|
|
3122
|
+
type ScheduledPayoutCreateResponse as ScheduledPayoutCreateResponse,
|
|
3123
|
+
type ScheduledPayoutRetrieveResponse as ScheduledPayoutRetrieveResponse,
|
|
3124
|
+
type ScheduledPayoutCancelResponse as ScheduledPayoutCancelResponse,
|
|
3125
|
+
type ScheduledPayoutListResponsesPageCursorURL as ScheduledPayoutListResponsesPageCursorURL,
|
|
3126
|
+
type ScheduledPayoutListParams as ScheduledPayoutListParams,
|
|
3127
|
+
type ScheduledPayoutCreateParams as ScheduledPayoutCreateParams,
|
|
3128
|
+
type ScheduledPayoutCancelParams as ScheduledPayoutCancelParams,
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
export {
|
|
3132
|
+
ScheduledPayoutLabels as ScheduledPayoutLabels,
|
|
3133
|
+
type ScheduledPayoutLabelListResponse as ScheduledPayoutLabelListResponse,
|
|
3134
|
+
type ScheduledPayoutLabelCreateResponse as ScheduledPayoutLabelCreateResponse,
|
|
3135
|
+
type ScheduledPayoutLabelRetrieveResponse as ScheduledPayoutLabelRetrieveResponse,
|
|
3136
|
+
type ScheduledPayoutLabelUpdateResponse as ScheduledPayoutLabelUpdateResponse,
|
|
3137
|
+
type ScheduledPayoutLabelListResponsesPageCursorURL as ScheduledPayoutLabelListResponsesPageCursorURL,
|
|
3138
|
+
type ScheduledPayoutLabelListParams as ScheduledPayoutLabelListParams,
|
|
3139
|
+
type ScheduledPayoutLabelCreateParams as ScheduledPayoutLabelCreateParams,
|
|
3140
|
+
type ScheduledPayoutLabelUpdateParams as ScheduledPayoutLabelUpdateParams,
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
export {
|
|
3144
|
+
ScheduledPayoutTypes as ScheduledPayoutTypes,
|
|
3145
|
+
type ScheduledPayoutTypeListResponse as ScheduledPayoutTypeListResponse,
|
|
3146
|
+
type ScheduledPayoutTypeCreateResponse as ScheduledPayoutTypeCreateResponse,
|
|
3147
|
+
type ScheduledPayoutTypeRetrieveResponse as ScheduledPayoutTypeRetrieveResponse,
|
|
3148
|
+
type ScheduledPayoutTypeUpdateResponse as ScheduledPayoutTypeUpdateResponse,
|
|
3149
|
+
type ScheduledPayoutTypeListResponsesPageCursorURL as ScheduledPayoutTypeListResponsesPageCursorURL,
|
|
3150
|
+
type ScheduledPayoutTypeListParams as ScheduledPayoutTypeListParams,
|
|
3151
|
+
type ScheduledPayoutTypeCreateParams as ScheduledPayoutTypeCreateParams,
|
|
3152
|
+
type ScheduledPayoutTypeUpdateParams as ScheduledPayoutTypeUpdateParams,
|
|
3153
|
+
};
|
|
3154
|
+
|
|
3067
3155
|
export {
|
|
3068
3156
|
Shiftassignments as Shiftassignments,
|
|
3069
3157
|
type ShiftassignmentListResponse as ShiftassignmentListResponse,
|
|
@@ -56,11 +56,13 @@ Definition-based record writes accept `null` for optional writable custom fields
|
|
|
56
56
|
|
|
57
57
|
`defineManifest` collects dependencies declared by the component's `references` hook, such as an app's pages and their rendering functions. Include other desired children as roots: listing an object does not include every view or action created for it. Raw strings and opaque JSON do not create dependencies.
|
|
58
58
|
|
|
59
|
+
`defineCanvasInstance` accepts Canvas components, actions, and variables in the backend wire format. Grid positions, event handlers, property metadata, media references, and versions are typed; property values and extra grid fields remain JSON because they vary by widget. Each component requires a nested `gridProperties.position`. Media entries must include the source `s3_bucket` and `s3_key` required for installation. For a `ripplingFunction` action, use `properties.values.functionApiName` rather than `functionId`, and pass the matching `defineFunction` definitions in `functions` (or include them as manifest roots). Use `sourceId` only to preserve the source ID of an extracted config; Canvas identity is its API name. Custom App Canvas page references are not supported by `defineApp`.
|
|
60
|
+
|
|
59
61
|
New custom objects require at least one list view, including objects included through lookup dependencies. Add their views as explicit roots.
|
|
60
62
|
|
|
61
63
|
Composition snapshots the existing `{ metadata, components }` wire format. Identical serialized keys are deduplicated; different configs with the same key are rejected. Fields and layouts use object-scoped names; native fields and sections use model-scoped names. Custom-object sections, actions, views, validations, and record-triggered flows require names unique across objects because their backend lookups or installation maps are company-scoped. Authored metadata replaces generated defaults, and base/extended objects share generated layouts.
|
|
62
64
|
|
|
63
|
-
Supply complete API names: objects, categories, nested field and section keys, actions, validations, record-triggered flows, workflows, pages, custom skills, and ACP agents require `__c`. The helpers validate names rather than adding suffixes. Category string references also use the complete API name. Native sections require `__cfs`; native fields require `__cfv2`. Employee custom fields use `applicableGroupId` for an existing applicability group. Owner permissions are created by the backend when it installs the object.
|
|
65
|
+
Supply complete API names: objects, categories, nested field and section keys, actions, validations, record-triggered flows, workflows, pages, Canvas instances, custom skills, and ACP agents require `__c`. The helpers validate names rather than adding suffixes. Category string references also use the complete API name. Native sections require `__cfs`; native fields require `__cfv2`. Employee custom fields use `applicableGroupId` for an existing applicability group. Owner permissions are created by the backend when it installs the object.
|
|
64
66
|
|
|
65
67
|
Definitions with file sources require `compileManifest(manifest, readSource)` or `rippling project export` before JSON serialization. Source files are read only at compilation, unchanged; export does not bundle local imports. `fn.setCode(...)` and `agent.setSource(...)` replace file sources for subsequent manifests. Previously composed manifests keep their source snapshots.
|
|
66
68
|
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent, validateCustomApiName, type ComponentDefinition } from './component';
|
|
2
|
+
import type { JsonValue } from '../custom-object-page-layout';
|
|
3
|
+
import type { DefinedFunction } from './function';
|
|
4
|
+
|
|
5
|
+
type CanvasGridFields = {
|
|
6
|
+
x?: number;
|
|
7
|
+
y?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
defaultWidth?: number;
|
|
11
|
+
defaultHeight?: number;
|
|
12
|
+
previousWidth?: number;
|
|
13
|
+
previousHeight?: number;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
disableVerticalResize?: boolean;
|
|
17
|
+
} & Record<string, JsonValue>;
|
|
18
|
+
|
|
19
|
+
export type CanvasGridPosition = CanvasGridFields & { x: number; y: number; width: number; height: number };
|
|
20
|
+
|
|
21
|
+
export type CanvasGridProperties = CanvasGridFields & { position: CanvasGridPosition };
|
|
22
|
+
|
|
23
|
+
export type CanvasPropertyMeta = { isExpression?: boolean } & Record<string, JsonValue>;
|
|
24
|
+
|
|
25
|
+
export type CanvasEventHandler = {
|
|
26
|
+
event: string;
|
|
27
|
+
type: string;
|
|
28
|
+
properties: Record<string, JsonValue>;
|
|
29
|
+
} & Record<string, JsonValue>;
|
|
30
|
+
|
|
31
|
+
export type CanvasPropertyValues = {
|
|
32
|
+
eventHandlers?: CanvasEventHandler[] | null;
|
|
33
|
+
} & Record<string, JsonValue>;
|
|
34
|
+
|
|
35
|
+
export type CanvasProperties = {
|
|
36
|
+
values?: CanvasPropertyValues | null;
|
|
37
|
+
meta?: Record<string, CanvasPropertyMeta | null> | null;
|
|
38
|
+
} & Record<string, JsonValue>;
|
|
39
|
+
|
|
40
|
+
export type CanvasActionProperties = CanvasProperties & {
|
|
41
|
+
values?: (CanvasPropertyValues & { functionApiName?: string | null }) | null;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type CanvasMedia = {
|
|
45
|
+
name: string;
|
|
46
|
+
mime_type: string;
|
|
47
|
+
s3_bucket: string;
|
|
48
|
+
s3_key: string;
|
|
49
|
+
/** Decimal string or number; numeric strings are validated by the server during installation. */
|
|
50
|
+
aspect_ratio?: `${number}` | number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type CanvasVersion = { major: number; minor: number };
|
|
54
|
+
|
|
55
|
+
export type CanvasComponent = {
|
|
56
|
+
uuid: string;
|
|
57
|
+
slug: string;
|
|
58
|
+
type: string;
|
|
59
|
+
gridProperties: CanvasGridProperties;
|
|
60
|
+
properties?: CanvasProperties;
|
|
61
|
+
parentComponent?: string | null;
|
|
62
|
+
layoutContainer?: string | null;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type CanvasAction = {
|
|
66
|
+
uuid: string;
|
|
67
|
+
slug: string;
|
|
68
|
+
type: string;
|
|
69
|
+
properties?: CanvasActionProperties;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type CanvasVariable = {
|
|
73
|
+
uuid: string;
|
|
74
|
+
slug: string;
|
|
75
|
+
type?: string;
|
|
76
|
+
name?: string | null;
|
|
77
|
+
description?: string | null;
|
|
78
|
+
value?: string | null;
|
|
79
|
+
properties: CanvasProperties;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export interface DefineCanvasInstanceProps {
|
|
83
|
+
apiName: `${string}__c`;
|
|
84
|
+
name: string | null;
|
|
85
|
+
components: CanvasComponent[];
|
|
86
|
+
actions?: CanvasAction[] | null;
|
|
87
|
+
canvasActions?: CanvasAction[] | null;
|
|
88
|
+
variables?: CanvasVariable[] | null;
|
|
89
|
+
media?: Record<string, CanvasMedia> | null;
|
|
90
|
+
version?: CanvasVersion | null;
|
|
91
|
+
/** Source ID from an extracted config; never used as the Canvas identity. */
|
|
92
|
+
sourceId?: string | null;
|
|
93
|
+
/** Function definitions referenced by actions, included in the manifest. */
|
|
94
|
+
functions?: readonly DefinedFunction<any, any>[];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface DefinedCanvasInstance {
|
|
98
|
+
readonly apiName: string;
|
|
99
|
+
toDict(): {
|
|
100
|
+
type: 'CANVAS_INSTANCE';
|
|
101
|
+
api_name: string;
|
|
102
|
+
identity_format_version: 2;
|
|
103
|
+
name: string | null;
|
|
104
|
+
components: CanvasComponent[];
|
|
105
|
+
actions?: CanvasAction[] | null;
|
|
106
|
+
canvas_actions?: CanvasAction[] | null;
|
|
107
|
+
variables?: CanvasVariable[] | null;
|
|
108
|
+
media?: Record<string, CanvasMedia> | null;
|
|
109
|
+
version?: CanvasVersion | null;
|
|
110
|
+
obj_id?: string | null;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Defines Canvas metadata. Nested components and actions use the backend's wire format. */
|
|
115
|
+
export function defineCanvasInstance(props: DefineCanvasInstanceProps): DefinedCanvasInstance {
|
|
116
|
+
const { apiName } = props;
|
|
117
|
+
validateCustomApiName(apiName);
|
|
118
|
+
return canvasInstanceComponent.register(
|
|
119
|
+
{
|
|
120
|
+
apiName,
|
|
121
|
+
toDict: () => ({
|
|
122
|
+
type: 'CANVAS_INSTANCE' as const,
|
|
123
|
+
api_name: apiName,
|
|
124
|
+
identity_format_version: 2 as const,
|
|
125
|
+
name: props.name,
|
|
126
|
+
components: props.components,
|
|
127
|
+
...(props.actions === undefined ? {} : { actions: props.actions }),
|
|
128
|
+
...(props.canvasActions === undefined ? {} : { canvas_actions: props.canvasActions }),
|
|
129
|
+
...(props.variables === undefined ? {} : { variables: props.variables }),
|
|
130
|
+
...(props.media === undefined ? {} : { media: props.media }),
|
|
131
|
+
...(props.version === undefined ? {} : { version: props.version }),
|
|
132
|
+
...(props.sourceId === undefined ? {} : { obj_id: props.sourceId }),
|
|
133
|
+
}),
|
|
134
|
+
},
|
|
135
|
+
props,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const canvasInstanceComponent: ComponentDefinition<typeof defineCanvasInstance> = defineComponent({
|
|
140
|
+
type: 'CANVAS_INSTANCE',
|
|
141
|
+
define: defineCanvasInstance,
|
|
142
|
+
references: (_definition, props) => () => props.functions ?? [],
|
|
143
|
+
});
|