@rippling/rippling-sdk 0.2.0-alpha.110 → 0.2.0-alpha.112
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 +58 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +58 -7
- package/client.d.ts.map +1 -1
- package/client.js +54 -3
- package/client.js.map +1 -1
- package/client.mjs +54 -3
- package/client.mjs.map +1 -1
- package/core/platform/custom-objects/manager.d.mts +43 -23
- package/core/platform/custom-objects/manager.d.mts.map +1 -1
- package/core/platform/custom-objects/manager.d.ts +43 -23
- package/core/platform/custom-objects/manager.d.ts.map +1 -1
- package/core/platform/custom-objects/manager.js +21 -17
- package/core/platform/custom-objects/manager.js.map +1 -1
- package/core/platform/custom-objects/manager.mjs +21 -17
- package/core/platform/custom-objects/manager.mjs.map +1 -1
- package/core/platform/custom-objects.d.mts +1 -1
- package/core/platform/custom-objects.d.mts.map +1 -1
- package/core/platform/custom-objects.d.ts +1 -1
- package/core/platform/custom-objects.d.ts.map +1 -1
- package/core/platform/custom-objects.js.map +1 -1
- package/core/platform/custom-objects.mjs.map +1 -1
- package/examples/manifest/acp-agent/acp-agent.ts +27 -23
- package/lib/manifest/acp-agent.d.mts +1 -1
- package/lib/manifest/acp-agent.d.mts.map +1 -1
- package/lib/manifest/acp-agent.d.ts +1 -1
- package/lib/manifest/acp-agent.d.ts.map +1 -1
- package/lib/manifest/acp-agent.js +6 -0
- package/lib/manifest/acp-agent.js.map +1 -1
- package/lib/manifest/acp-agent.mjs +6 -0
- package/lib/manifest/acp-agent.mjs.map +1 -1
- package/lib/manifest/definitions/_object-records.d.mts.map +1 -1
- package/lib/manifest/definitions/_object-records.d.ts.map +1 -1
- package/lib/manifest/definitions/_object-records.js +10 -8
- package/lib/manifest/definitions/_object-records.js.map +1 -1
- package/lib/manifest/definitions/_object-records.mjs +10 -8
- package/lib/manifest/definitions/_object-records.mjs.map +1 -1
- package/lib/manifest/definitions/custom-object.d.mts +10 -10
- package/lib/manifest/definitions/custom-object.d.mts.map +1 -1
- package/lib/manifest/definitions/custom-object.d.ts +10 -10
- package/lib/manifest/definitions/custom-object.d.ts.map +1 -1
- package/lib/manifest/definitions/custom-object.js.map +1 -1
- package/lib/manifest/definitions/custom-object.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/activity-log.d.mts +1 -1
- package/resources/activity-log.d.ts +1 -1
- package/resources/activity-log.js +1 -1
- package/resources/activity-log.mjs +1 -1
- package/resources/agents/sessions/messages.d.mts +10 -1
- package/resources/agents/sessions/messages.d.mts.map +1 -1
- package/resources/agents/sessions/messages.d.ts +10 -1
- package/resources/agents/sessions/messages.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.d.mts +30 -3
- package/resources/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/agents/sessions/sessions.d.ts +30 -3
- package/resources/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.js.map +1 -1
- package/resources/agents/sessions/sessions.mjs.map +1 -1
- package/resources/bills.d.mts +1343 -0
- package/resources/bills.d.mts.map +1 -0
- package/resources/bills.d.ts +1343 -0
- package/resources/bills.d.ts.map +1 -0
- package/resources/bills.js +214 -0
- package/resources/bills.js.map +1 -0
- package/resources/bills.mjs +210 -0
- package/resources/bills.mjs.map +1 -0
- package/resources/card-transactions.d.mts +607 -49
- package/resources/card-transactions.d.mts.map +1 -1
- package/resources/card-transactions.d.ts +607 -49
- package/resources/card-transactions.d.ts.map +1 -1
- package/resources/card-transactions.js +73 -12
- package/resources/card-transactions.js.map +1 -1
- package/resources/card-transactions.mjs +73 -12
- package/resources/card-transactions.mjs.map +1 -1
- package/resources/custom-objects/custom-objects.d.mts +39 -3
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +39 -3
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js +38 -2
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs +38 -2
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +44 -0
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +44 -0
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/custom-objects/fields.js +44 -0
- package/resources/custom-objects/fields.js.map +1 -1
- package/resources/custom-objects/fields.mjs +44 -0
- package/resources/custom-objects/fields.mjs.map +1 -1
- package/resources/custom-objects/index.d.mts +2 -1
- package/resources/custom-objects/index.d.mts.map +1 -1
- package/resources/custom-objects/index.d.ts +2 -1
- package/resources/custom-objects/index.d.ts.map +1 -1
- package/resources/custom-objects/index.js +5 -3
- package/resources/custom-objects/index.js.map +1 -1
- package/resources/custom-objects/index.mjs +2 -1
- package/resources/custom-objects/index.mjs.map +1 -1
- package/resources/custom-objects/list-views/capabilities.d.mts +63 -0
- package/resources/custom-objects/list-views/capabilities.d.mts.map +1 -0
- package/resources/custom-objects/list-views/capabilities.d.ts +63 -0
- package/resources/custom-objects/list-views/capabilities.d.ts.map +1 -0
- package/resources/custom-objects/list-views/capabilities.js +48 -0
- package/resources/custom-objects/list-views/capabilities.js.map +1 -0
- package/resources/custom-objects/list-views/capabilities.mjs +44 -0
- package/resources/custom-objects/list-views/capabilities.mjs.map +1 -0
- package/resources/custom-objects/list-views/default.d.mts +69 -0
- package/resources/custom-objects/list-views/default.d.mts.map +1 -0
- package/resources/custom-objects/list-views/default.d.ts +69 -0
- package/resources/custom-objects/list-views/default.d.ts.map +1 -0
- package/resources/custom-objects/list-views/default.js +59 -0
- package/resources/custom-objects/list-views/default.js.map +1 -0
- package/resources/custom-objects/list-views/default.mjs +55 -0
- package/resources/custom-objects/list-views/default.mjs.map +1 -0
- package/resources/custom-objects/list-views/index.d.mts +4 -0
- package/resources/custom-objects/list-views/index.d.mts.map +1 -0
- package/resources/custom-objects/list-views/index.d.ts +4 -0
- package/resources/custom-objects/list-views/index.d.ts.map +1 -0
- package/resources/custom-objects/list-views/index.js +11 -0
- package/resources/custom-objects/list-views/index.js.map +1 -0
- package/resources/custom-objects/list-views/index.mjs +5 -0
- package/resources/custom-objects/list-views/index.mjs.map +1 -0
- package/resources/custom-objects/list-views/list-views.d.mts +806 -0
- package/resources/custom-objects/list-views/list-views.d.mts.map +1 -0
- package/resources/custom-objects/list-views/list-views.d.ts +806 -0
- package/resources/custom-objects/list-views/list-views.d.ts.map +1 -0
- package/resources/custom-objects/list-views/list-views.js +314 -0
- package/resources/custom-objects/list-views/list-views.js.map +1 -0
- package/resources/custom-objects/list-views/list-views.mjs +309 -0
- package/resources/custom-objects/list-views/list-views.mjs.map +1 -0
- package/resources/custom-objects/list-views.d.mts +2 -0
- package/resources/custom-objects/list-views.d.mts.map +1 -0
- package/resources/custom-objects/list-views.d.ts +2 -0
- package/resources/custom-objects/list-views.d.ts.map +1 -0
- package/resources/custom-objects/list-views.js +6 -0
- package/resources/custom-objects/list-views.js.map +1 -0
- package/resources/custom-objects/list-views.mjs +3 -0
- package/resources/custom-objects/list-views.mjs.map +1 -0
- package/resources/custom-objects/records/capabilities.d.mts +61 -0
- package/resources/custom-objects/records/capabilities.d.mts.map +1 -0
- package/resources/custom-objects/records/capabilities.d.ts +61 -0
- package/resources/custom-objects/records/capabilities.d.ts.map +1 -0
- package/resources/custom-objects/records/capabilities.js +47 -0
- package/resources/custom-objects/records/capabilities.js.map +1 -0
- package/resources/custom-objects/records/capabilities.mjs +43 -0
- package/resources/custom-objects/records/capabilities.mjs.map +1 -0
- package/resources/custom-objects/records/index.d.mts +3 -0
- package/resources/custom-objects/records/index.d.mts.map +1 -0
- package/resources/custom-objects/records/index.d.ts +3 -0
- package/resources/custom-objects/records/index.d.ts.map +1 -0
- package/resources/custom-objects/records/index.js +9 -0
- package/resources/custom-objects/records/index.js.map +1 -0
- package/resources/custom-objects/records/index.mjs +4 -0
- package/resources/custom-objects/records/index.mjs.map +1 -0
- package/resources/custom-objects/records/records.d.mts +787 -0
- package/resources/custom-objects/records/records.d.mts.map +1 -0
- package/resources/custom-objects/records/records.d.ts +787 -0
- package/resources/custom-objects/records/records.d.ts.map +1 -0
- package/resources/custom-objects/records/records.js +543 -0
- package/resources/custom-objects/records/records.js.map +1 -0
- package/resources/custom-objects/records/records.mjs +538 -0
- package/resources/custom-objects/records/records.mjs.map +1 -0
- package/resources/custom-objects/records.d.mts +1 -561
- package/resources/custom-objects/records.d.mts.map +1 -1
- package/resources/custom-objects/records.d.ts +1 -561
- package/resources/custom-objects/records.d.ts.map +1 -1
- package/resources/custom-objects/records.js +2 -444
- package/resources/custom-objects/records.js.map +1 -1
- package/resources/custom-objects/records.mjs +1 -442
- package/resources/custom-objects/records.mjs.map +1 -1
- package/resources/devices.d.mts +2 -2
- package/resources/devices.d.mts.map +1 -1
- package/resources/devices.d.ts +2 -2
- package/resources/devices.d.ts.map +1 -1
- package/resources/draft-transitions.d.mts +241 -307
- package/resources/draft-transitions.d.mts.map +1 -1
- package/resources/draft-transitions.d.ts +241 -307
- package/resources/draft-transitions.d.ts.map +1 -1
- package/resources/draft-transitions.js +49 -23
- package/resources/draft-transitions.js.map +1 -1
- package/resources/draft-transitions.mjs +49 -23
- package/resources/draft-transitions.mjs.map +1 -1
- package/resources/employee-documents.d.mts +2 -2
- package/resources/employee-documents.d.ts +2 -2
- package/resources/{spend-categories.d.mts → finance-categories.d.mts} +21 -18
- package/resources/finance-categories.d.mts.map +1 -0
- package/resources/{spend-categories.d.ts → finance-categories.d.ts} +21 -18
- package/resources/finance-categories.d.ts.map +1 -0
- package/resources/{spend-categories.js → finance-categories.js} +14 -11
- package/resources/finance-categories.js.map +1 -0
- package/resources/{spend-categories.mjs → finance-categories.mjs} +12 -9
- package/resources/finance-categories.mjs.map +1 -0
- package/resources/finance-vendors.d.mts +154 -0
- package/resources/finance-vendors.d.mts.map +1 -0
- package/resources/finance-vendors.d.ts +154 -0
- package/resources/finance-vendors.d.ts.map +1 -0
- package/resources/finance-vendors.js +87 -0
- package/resources/finance-vendors.js.map +1 -0
- package/resources/finance-vendors.mjs +83 -0
- package/resources/finance-vendors.mjs.map +1 -0
- package/resources/functions/executions.d.mts +4 -1
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +4 -1
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js +4 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs +4 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +192 -4
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +192 -4
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +72 -4
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +72 -4
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/hire-requirements.d.mts +98 -9
- package/resources/hire-requirements.d.mts.map +1 -1
- package/resources/hire-requirements.d.ts +98 -9
- package/resources/hire-requirements.d.ts.map +1 -1
- package/resources/hire-requirements.js +23 -4
- package/resources/hire-requirements.js.map +1 -1
- package/resources/hire-requirements.mjs +23 -4
- package/resources/hire-requirements.mjs.map +1 -1
- package/resources/hires.d.mts +1636 -510
- package/resources/hires.d.mts.map +1 -1
- package/resources/hires.d.ts +1636 -510
- package/resources/hires.d.ts.map +1 -1
- package/resources/hires.js +10 -4
- package/resources/hires.js.map +1 -1
- package/resources/hires.mjs +10 -4
- package/resources/hires.mjs.map +1 -1
- package/resources/index.d.mts +11 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +21 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -1
- package/resources/index.mjs.map +1 -1
- package/resources/leave-requests.d.mts +11 -2
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +11 -2
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +11 -2
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +11 -2
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/object-categories.d.mts +2 -1
- package/resources/object-categories.d.mts.map +1 -1
- package/resources/object-categories.d.ts +2 -1
- package/resources/object-categories.d.ts.map +1 -1
- package/resources/object-categories.js +2 -1
- package/resources/object-categories.js.map +1 -1
- package/resources/object-categories.mjs +2 -1
- package/resources/object-categories.mjs.map +1 -1
- package/resources/package-components/extract.d.mts +121 -0
- package/resources/package-components/extract.d.mts.map +1 -0
- package/resources/package-components/extract.d.ts +121 -0
- package/resources/package-components/extract.d.ts.map +1 -0
- package/resources/package-components/extract.js +69 -0
- package/resources/package-components/extract.js.map +1 -0
- package/resources/package-components/extract.mjs +65 -0
- package/resources/package-components/extract.mjs.map +1 -0
- package/resources/package-components/index.d.mts +4 -0
- package/resources/package-components/index.d.mts.map +1 -0
- package/resources/package-components/index.d.ts +4 -0
- package/resources/package-components/index.d.ts.map +1 -0
- package/resources/package-components/index.js +11 -0
- package/resources/package-components/index.js.map +1 -0
- package/resources/package-components/index.mjs +5 -0
- package/resources/package-components/index.mjs.map +1 -0
- package/resources/package-components/package-components.d.mts +99 -0
- package/resources/package-components/package-components.d.mts.map +1 -0
- package/resources/package-components/package-components.d.ts +99 -0
- package/resources/package-components/package-components.d.ts.map +1 -0
- package/resources/package-components/package-components.js +63 -0
- package/resources/package-components/package-components.js.map +1 -0
- package/resources/package-components/package-components.mjs +58 -0
- package/resources/package-components/package-components.mjs.map +1 -0
- package/resources/package-components/types.d.mts +56 -0
- package/resources/package-components/types.d.mts.map +1 -0
- package/resources/package-components/types.d.ts +56 -0
- package/resources/package-components/types.d.ts.map +1 -0
- package/resources/package-components/types.js +40 -0
- package/resources/package-components/types.js.map +1 -0
- package/resources/package-components/types.mjs +36 -0
- package/resources/package-components/types.mjs.map +1 -0
- package/resources/package-components.d.mts +2 -0
- package/resources/package-components.d.mts.map +1 -0
- package/resources/package-components.d.ts +2 -0
- package/resources/package-components.d.ts.map +1 -0
- package/resources/package-components.js +6 -0
- package/resources/package-components.js.map +1 -0
- package/resources/package-components.mjs +3 -0
- package/resources/package-components.mjs.map +1 -0
- package/resources/package-installs.d.mts +96 -9
- package/resources/package-installs.d.mts.map +1 -1
- package/resources/package-installs.d.ts +96 -9
- package/resources/package-installs.d.ts.map +1 -1
- package/resources/package-installs.js +20 -3
- package/resources/package-installs.js.map +1 -1
- package/resources/package-installs.mjs +20 -3
- package/resources/package-installs.mjs.map +1 -1
- package/resources/package-managed-installs.d.mts +104 -7
- package/resources/package-managed-installs.d.mts.map +1 -1
- package/resources/package-managed-installs.d.ts +104 -7
- package/resources/package-managed-installs.d.ts.map +1 -1
- package/resources/package-managed-installs.js +22 -3
- package/resources/package-managed-installs.js.map +1 -1
- package/resources/package-managed-installs.mjs +22 -3
- package/resources/package-managed-installs.mjs.map +1 -1
- package/resources/package-manifests/index.d.mts +4 -0
- package/resources/package-manifests/index.d.mts.map +1 -0
- package/resources/package-manifests/index.d.ts +4 -0
- package/resources/package-manifests/index.d.ts.map +1 -0
- package/resources/package-manifests/index.js +11 -0
- package/resources/package-manifests/index.js.map +1 -0
- package/resources/package-manifests/index.mjs +5 -0
- package/resources/package-manifests/index.mjs.map +1 -0
- package/resources/package-manifests/package-manifests.d.mts +14 -0
- package/resources/package-manifests/package-manifests.d.mts.map +1 -0
- package/resources/package-manifests/package-manifests.d.ts +14 -0
- package/resources/package-manifests/package-manifests.d.ts.map +1 -0
- package/resources/package-manifests/package-manifests.js +21 -0
- package/resources/package-manifests/package-manifests.js.map +1 -0
- package/resources/package-manifests/package-manifests.mjs +16 -0
- package/resources/package-manifests/package-manifests.mjs.map +1 -0
- package/resources/package-manifests/packages/index.d.mts +3 -0
- package/resources/package-manifests/packages/index.d.mts.map +1 -0
- package/resources/package-manifests/packages/index.d.ts +3 -0
- package/resources/package-manifests/packages/index.d.ts.map +1 -0
- package/resources/package-manifests/packages/index.js +9 -0
- package/resources/package-manifests/packages/index.js.map +1 -0
- package/resources/package-manifests/packages/index.mjs +4 -0
- package/resources/package-manifests/packages/index.mjs.map +1 -0
- package/resources/package-manifests/packages/packages.d.mts +10 -0
- package/resources/package-manifests/packages/packages.d.mts.map +1 -0
- package/resources/package-manifests/packages/packages.d.ts +10 -0
- package/resources/package-manifests/packages/packages.d.ts.map +1 -0
- package/resources/package-manifests/packages/packages.js +17 -0
- package/resources/package-manifests/packages/packages.js.map +1 -0
- package/resources/package-manifests/packages/packages.mjs +12 -0
- package/resources/package-manifests/packages/packages.mjs.map +1 -0
- package/resources/package-manifests/packages/versions.d.mts +199 -0
- package/resources/package-manifests/packages/versions.d.mts.map +1 -0
- package/resources/package-manifests/packages/versions.d.ts +199 -0
- package/resources/package-manifests/packages/versions.d.ts.map +1 -0
- package/resources/package-manifests/packages/versions.js +68 -0
- package/resources/package-manifests/packages/versions.js.map +1 -0
- package/resources/package-manifests/packages/versions.mjs +64 -0
- package/resources/package-manifests/packages/versions.mjs.map +1 -0
- package/resources/package-manifests/packages.d.mts +2 -0
- package/resources/package-manifests/packages.d.mts.map +1 -0
- package/resources/package-manifests/packages.d.ts +2 -0
- package/resources/package-manifests/packages.d.ts.map +1 -0
- package/resources/package-manifests/packages.js +6 -0
- package/resources/package-manifests/packages.js.map +1 -0
- package/resources/package-manifests/packages.mjs +3 -0
- package/resources/package-manifests/packages.mjs.map +1 -0
- package/resources/package-manifests/versions.d.mts +84 -0
- package/resources/package-manifests/versions.d.mts.map +1 -0
- package/resources/package-manifests/versions.d.ts +84 -0
- package/resources/package-manifests/versions.d.ts.map +1 -0
- package/resources/package-manifests/versions.js +44 -0
- package/resources/package-manifests/versions.js.map +1 -0
- package/resources/package-manifests/versions.mjs +40 -0
- package/resources/package-manifests/versions.mjs.map +1 -0
- package/resources/package-manifests.d.mts +2 -0
- package/resources/package-manifests.d.mts.map +1 -0
- package/resources/package-manifests.d.ts +2 -0
- package/resources/package-manifests.d.ts.map +1 -0
- package/resources/package-manifests.js +6 -0
- package/resources/package-manifests.js.map +1 -0
- package/resources/package-manifests.mjs +3 -0
- package/resources/package-manifests.mjs.map +1 -0
- package/resources/package-versions/package-versions.d.mts +104 -14
- package/resources/package-versions/package-versions.d.mts.map +1 -1
- package/resources/package-versions/package-versions.d.ts +104 -14
- package/resources/package-versions/package-versions.d.ts.map +1 -1
- package/resources/package-versions/package-versions.js +30 -9
- package/resources/package-versions/package-versions.js.map +1 -1
- package/resources/package-versions/package-versions.mjs +30 -9
- package/resources/package-versions/package-versions.mjs.map +1 -1
- package/resources/package-versions/publish.d.mts +40 -4
- package/resources/package-versions/publish.d.mts.map +1 -1
- package/resources/package-versions/publish.d.ts +40 -4
- package/resources/package-versions/publish.d.ts.map +1 -1
- package/resources/package-versions/publish.js +8 -2
- package/resources/package-versions/publish.js.map +1 -1
- package/resources/package-versions/publish.mjs +8 -2
- package/resources/package-versions/publish.mjs.map +1 -1
- package/resources/packages/next-versions.d.mts +40 -4
- package/resources/packages/next-versions.d.mts.map +1 -1
- package/resources/packages/next-versions.d.ts +40 -4
- package/resources/packages/next-versions.d.ts.map +1 -1
- package/resources/packages/next-versions.js +8 -2
- package/resources/packages/next-versions.js.map +1 -1
- package/resources/packages/next-versions.mjs +8 -2
- package/resources/packages/next-versions.mjs.map +1 -1
- package/resources/packages/versions.d.mts +80 -9
- package/resources/packages/versions.d.mts.map +1 -1
- package/resources/packages/versions.d.ts +80 -9
- package/resources/packages/versions.d.ts.map +1 -1
- package/resources/packages/versions.js +16 -5
- package/resources/packages/versions.js.map +1 -1
- package/resources/packages/versions.mjs +16 -5
- package/resources/packages/versions.mjs.map +1 -1
- package/resources/payroll-runs/off-cycle.d.mts +17 -9
- package/resources/payroll-runs/off-cycle.d.mts.map +1 -1
- package/resources/payroll-runs/off-cycle.d.ts +17 -9
- package/resources/payroll-runs/off-cycle.d.ts.map +1 -1
- package/resources/payroll-runs/off-cycle.js +9 -5
- package/resources/payroll-runs/off-cycle.js.map +1 -1
- package/resources/payroll-runs/off-cycle.mjs +9 -5
- package/resources/payroll-runs/off-cycle.mjs.map +1 -1
- package/resources/permissions/index.d.mts +3 -0
- package/resources/permissions/index.d.mts.map +1 -0
- package/resources/permissions/index.d.ts +3 -0
- package/resources/permissions/index.d.ts.map +1 -0
- package/resources/permissions/index.js +9 -0
- package/resources/permissions/index.js.map +1 -0
- package/resources/permissions/index.mjs +4 -0
- package/resources/permissions/index.mjs.map +1 -0
- package/resources/permissions/permission-profiles.d.mts +43 -0
- package/resources/permissions/permission-profiles.d.mts.map +1 -0
- package/resources/permissions/permission-profiles.d.ts +43 -0
- package/resources/permissions/permission-profiles.d.ts.map +1 -0
- package/resources/permissions/permission-profiles.js +36 -0
- package/resources/permissions/permission-profiles.js.map +1 -0
- package/resources/permissions/permission-profiles.mjs +32 -0
- package/resources/permissions/permission-profiles.mjs.map +1 -0
- package/resources/permissions/permissions.d.mts +10 -0
- package/resources/permissions/permissions.d.mts.map +1 -0
- package/resources/permissions/permissions.d.ts +10 -0
- package/resources/permissions/permissions.d.ts.map +1 -0
- package/resources/permissions/permissions.js +17 -0
- package/resources/permissions/permissions.js.map +1 -0
- package/resources/permissions/permissions.mjs +12 -0
- package/resources/permissions/permissions.mjs.map +1 -0
- package/resources/permissions.d.mts +2 -0
- package/resources/permissions.d.mts.map +1 -0
- package/resources/permissions.d.ts +2 -0
- package/resources/permissions.d.ts.map +1 -0
- package/resources/permissions.js +6 -0
- package/resources/permissions.js.map +1 -0
- package/resources/permissions.mjs +3 -0
- package/resources/permissions.mjs.map +1 -0
- package/resources/record-detail-reference-options.d.mts +110 -0
- package/resources/record-detail-reference-options.d.mts.map +1 -0
- package/resources/record-detail-reference-options.d.ts +110 -0
- package/resources/record-detail-reference-options.d.ts.map +1 -0
- package/resources/record-detail-reference-options.js +54 -0
- package/resources/record-detail-reference-options.js.map +1 -0
- package/resources/record-detail-reference-options.mjs +50 -0
- package/resources/record-detail-reference-options.mjs.map +1 -0
- package/resources/record-detail-related-records.d.mts +1129 -0
- package/resources/record-detail-related-records.d.mts.map +1 -0
- package/resources/record-detail-related-records.d.ts +1129 -0
- package/resources/record-detail-related-records.d.ts.map +1 -0
- package/resources/record-detail-related-records.js +49 -0
- package/resources/record-detail-related-records.js.map +1 -0
- package/resources/record-detail-related-records.mjs +45 -0
- package/resources/record-detail-related-records.mjs.map +1 -0
- package/resources/record-details.d.mts +2621 -0
- package/resources/record-details.d.mts.map +1 -0
- package/resources/record-details.d.ts +2621 -0
- package/resources/record-details.d.ts.map +1 -0
- package/resources/record-details.js +141 -0
- package/resources/record-details.js.map +1 -0
- package/resources/record-details.mjs +137 -0
- package/resources/record-details.mjs.map +1 -0
- package/resources/reimbursements.d.mts +2158 -90
- package/resources/reimbursements.d.mts.map +1 -1
- package/resources/reimbursements.d.ts +2158 -90
- package/resources/reimbursements.d.ts.map +1 -1
- package/resources/reimbursements.js +306 -16
- package/resources/reimbursements.js.map +1 -1
- package/resources/reimbursements.mjs +306 -16
- package/resources/reimbursements.mjs.map +1 -1
- package/resources/report-runs.d.mts +2 -1
- package/resources/report-runs.d.mts.map +1 -1
- package/resources/report-runs.d.ts +2 -1
- package/resources/report-runs.d.ts.map +1 -1
- package/resources/report-runs.js +2 -1
- package/resources/report-runs.js.map +1 -1
- package/resources/report-runs.mjs +2 -1
- package/resources/report-runs.mjs.map +1 -1
- package/resources/sandboxes.d.mts +20 -624
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +20 -624
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +5 -60
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +5 -60
- package/resources/sandboxes.mjs.map +1 -1
- 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 +160 -17
- package/src/core/platform/custom-objects/manager.ts +65 -42
- package/src/core/platform/custom-objects.ts +3 -0
- package/src/lib/manifest/acp-agent.ts +7 -1
- package/src/lib/manifest/definitions/_object-records.ts +17 -10
- package/src/lib/manifest/definitions/custom-object.ts +14 -9
- package/src/resources/activity-log.ts +1 -1
- package/src/resources/agents/sessions/messages.ts +10 -1
- package/src/resources/agents/sessions/sessions.ts +30 -3
- package/src/resources/bills.ts +1660 -0
- package/src/resources/card-transactions.ts +742 -49
- package/src/resources/custom-objects/custom-objects.ts +62 -2
- package/src/resources/custom-objects/fields.ts +44 -0
- package/src/resources/custom-objects/index.ts +13 -1
- package/src/resources/custom-objects/list-views/capabilities.ts +72 -0
- package/src/resources/custom-objects/list-views/default.ts +87 -0
- package/src/resources/custom-objects/list-views/index.ts +15 -0
- package/src/resources/custom-objects/list-views/list-views.ts +973 -0
- package/src/resources/custom-objects/list-views.ts +3 -0
- package/src/resources/custom-objects/records/capabilities.ts +73 -0
- package/src/resources/custom-objects/records/index.ts +21 -0
- package/src/resources/custom-objects/records/records.ts +955 -0
- package/src/resources/custom-objects/records.ts +1 -703
- package/src/resources/devices.ts +2 -0
- package/src/resources/draft-transitions.ts +276 -347
- package/src/resources/employee-documents.ts +2 -2
- package/src/resources/{spend-categories.ts → finance-categories.ts} +26 -23
- package/src/resources/finance-vendors.ts +191 -0
- package/src/resources/functions/executions.ts +4 -1
- package/src/resources/functions/functions.ts +216 -4
- package/src/resources/hire-requirements.ts +107 -9
- package/src/resources/hires.ts +1768 -539
- package/src/resources/index.ts +53 -7
- package/src/resources/leave-requests.ts +11 -2
- package/src/resources/object-categories.ts +2 -1
- package/src/resources/package-components/extract.ts +139 -0
- package/src/resources/package-components/index.ts +10 -0
- package/src/resources/package-components/package-components.ts +134 -0
- package/src/resources/package-components/types.ts +64 -0
- package/src/resources/package-components.ts +3 -0
- package/src/resources/package-installs.ts +120 -9
- package/src/resources/package-managed-installs.ts +146 -7
- package/src/resources/package-manifests/index.ts +5 -0
- package/src/resources/package-manifests/package-manifests.ts +21 -0
- package/src/resources/package-manifests/packages/index.ts +4 -0
- package/src/resources/package-manifests/packages/packages.ts +19 -0
- package/src/resources/package-manifests/packages/versions.ts +237 -0
- package/src/resources/package-manifests/packages.ts +3 -0
- package/src/resources/package-manifests/versions.ts +96 -0
- package/src/resources/package-manifests.ts +3 -0
- package/src/resources/package-versions/package-versions.ts +117 -14
- package/src/resources/package-versions/publish.ts +46 -4
- package/src/resources/packages/next-versions.ts +46 -4
- package/src/resources/packages/versions.ts +92 -9
- package/src/resources/payroll-runs/off-cycle.ts +17 -9
- package/src/resources/permissions/index.ts +4 -0
- package/src/resources/permissions/permission-profiles.ts +50 -0
- package/src/resources/permissions/permissions.ts +20 -0
- package/src/resources/permissions.ts +3 -0
- package/src/resources/record-detail-reference-options.ts +141 -0
- package/src/resources/record-detail-related-records.ts +1457 -0
- package/src/resources/record-details.ts +3316 -0
- package/src/resources/reimbursements.ts +2591 -126
- package/src/resources/report-runs.ts +2 -1
- package/src/resources/sandboxes.ts +48 -742
- 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
- package/resources/spend-categories.d.mts.map +0 -1
- package/resources/spend-categories.d.ts.map +0 -1
- package/resources/spend-categories.js.map +0 -1
- package/resources/spend-categories.mjs.map +0 -1
package/src/client.ts
CHANGED
|
@@ -55,6 +55,14 @@ import {
|
|
|
55
55
|
BackgroundCheckCandidateUpdateResponse,
|
|
56
56
|
BackgroundCheckCandidates,
|
|
57
57
|
} from './resources/background-check-candidates';
|
|
58
|
+
import {
|
|
59
|
+
BillListParams,
|
|
60
|
+
BillListResponse,
|
|
61
|
+
BillListResponsesPageCursorURL,
|
|
62
|
+
BillRetrieveParams,
|
|
63
|
+
BillRetrieveResponse,
|
|
64
|
+
Bills,
|
|
65
|
+
} from './resources/bills';
|
|
58
66
|
import {
|
|
59
67
|
BreakPolicies,
|
|
60
68
|
BreakPolicyListParams,
|
|
@@ -115,6 +123,7 @@ import {
|
|
|
115
123
|
CardTransactionListParams,
|
|
116
124
|
CardTransactionListResponse,
|
|
117
125
|
CardTransactionListResponsesPageCursorURL,
|
|
126
|
+
CardTransactionRetrieveParams,
|
|
118
127
|
CardTransactionRetrieveResponse,
|
|
119
128
|
CardTransactions,
|
|
120
129
|
} from './resources/card-transactions';
|
|
@@ -264,6 +273,20 @@ import {
|
|
|
264
273
|
Entitlements,
|
|
265
274
|
} from './resources/entitlements';
|
|
266
275
|
import { FileCreateParams, FileCreateResponse, FileRetrieveResponse, Files } from './resources/files';
|
|
276
|
+
import {
|
|
277
|
+
FinanceCategories,
|
|
278
|
+
FinanceCategoryListParams,
|
|
279
|
+
FinanceCategoryListResponse,
|
|
280
|
+
FinanceCategoryListResponsesPageCursorURL,
|
|
281
|
+
FinanceCategoryRetrieveResponse,
|
|
282
|
+
} from './resources/finance-categories';
|
|
283
|
+
import {
|
|
284
|
+
FinanceVendorListParams,
|
|
285
|
+
FinanceVendorListResponse,
|
|
286
|
+
FinanceVendorListResponsesPageCursorURL,
|
|
287
|
+
FinanceVendorRetrieveResponse,
|
|
288
|
+
FinanceVendors,
|
|
289
|
+
} from './resources/finance-vendors';
|
|
267
290
|
import {
|
|
268
291
|
HeadcountPositionListParams,
|
|
269
292
|
HeadcountPositionListResponse,
|
|
@@ -517,11 +540,33 @@ import {
|
|
|
517
540
|
PlatformCapabilityListResponse,
|
|
518
541
|
PlatformCapabilityListResponsesPageCursorURL,
|
|
519
542
|
} from './resources/platform-capabilities';
|
|
543
|
+
import {
|
|
544
|
+
RecordDetailReferenceOptionListParams,
|
|
545
|
+
RecordDetailReferenceOptionListResponse,
|
|
546
|
+
RecordDetailReferenceOptionListResponsesPageCursorURL,
|
|
547
|
+
RecordDetailReferenceOptions,
|
|
548
|
+
} from './resources/record-detail-reference-options';
|
|
549
|
+
import {
|
|
550
|
+
RecordDetailRelatedRecordListParams,
|
|
551
|
+
RecordDetailRelatedRecordListResponse,
|
|
552
|
+
RecordDetailRelatedRecordListResponsesPageCursorURL,
|
|
553
|
+
RecordDetailRelatedRecords,
|
|
554
|
+
} from './resources/record-detail-related-records';
|
|
555
|
+
import {
|
|
556
|
+
RecordDetailRetrieveCreateParams,
|
|
557
|
+
RecordDetailRetrieveCreateResponse,
|
|
558
|
+
RecordDetailRetrieveParams,
|
|
559
|
+
RecordDetailRetrieveResponse,
|
|
560
|
+
RecordDetails,
|
|
561
|
+
} from './resources/record-details';
|
|
520
562
|
import {
|
|
521
563
|
ReimbursementListParams,
|
|
522
564
|
ReimbursementListResponse,
|
|
523
565
|
ReimbursementListResponsesPageCursorURL,
|
|
566
|
+
ReimbursementRetrieveParams,
|
|
524
567
|
ReimbursementRetrieveResponse,
|
|
568
|
+
ReimbursementUpdateParams,
|
|
569
|
+
ReimbursementUpdateResponse,
|
|
525
570
|
Reimbursements,
|
|
526
571
|
} from './resources/reimbursements';
|
|
527
572
|
import {
|
|
@@ -618,13 +663,6 @@ import {
|
|
|
618
663
|
SoftwareDeploymentUpdateResponse,
|
|
619
664
|
SoftwareDeployments,
|
|
620
665
|
} from './resources/software-deployments';
|
|
621
|
-
import {
|
|
622
|
-
SpendCategories,
|
|
623
|
-
SpendCategoryListParams,
|
|
624
|
-
SpendCategoryListResponse,
|
|
625
|
-
SpendCategoryListResponsesPageCursorURL,
|
|
626
|
-
SpendCategoryRetrieveResponse,
|
|
627
|
-
} from './resources/spend-categories';
|
|
628
666
|
import { SSOMe, SSOMeListParams, SSOMeResource } from './resources/sso-me';
|
|
629
667
|
import {
|
|
630
668
|
Team,
|
|
@@ -816,6 +854,13 @@ import {
|
|
|
816
854
|
MetadataExtractParams,
|
|
817
855
|
MetadataExtractResponse,
|
|
818
856
|
} from './resources/metadata/metadata';
|
|
857
|
+
import {
|
|
858
|
+
PackageComponentListParams,
|
|
859
|
+
PackageComponentListResponse,
|
|
860
|
+
PackageComponentListResponsesPageCursorURL,
|
|
861
|
+
PackageComponents,
|
|
862
|
+
} from './resources/package-components/package-components';
|
|
863
|
+
import { PackageManifests } from './resources/package-manifests/package-manifests';
|
|
819
864
|
import {
|
|
820
865
|
PackageVersionRetrieveResponse,
|
|
821
866
|
PackageVersionUpdateParams,
|
|
@@ -840,6 +885,7 @@ import {
|
|
|
840
885
|
PayrollRunRetrieveResponse,
|
|
841
886
|
PayrollRuns,
|
|
842
887
|
} from './resources/payroll-runs/payroll-runs';
|
|
888
|
+
import { Permissions } from './resources/permissions/permissions';
|
|
843
889
|
import { ReportRetrieveResponse, Reports } from './resources/reports/reports';
|
|
844
890
|
import {
|
|
845
891
|
Supergroup,
|
|
@@ -1756,6 +1802,10 @@ export class RipplingSDK {
|
|
|
1756
1802
|
* Candidates who have been submitted for background check screening
|
|
1757
1803
|
*/
|
|
1758
1804
|
backgroundCheckCandidates: API.BackgroundCheckCandidates = new API.BackgroundCheckCandidates(this);
|
|
1805
|
+
/**
|
|
1806
|
+
* Vendor bills, including invoice and payment details
|
|
1807
|
+
*/
|
|
1808
|
+
bills: API.Bills = new API.Bills(this);
|
|
1759
1809
|
/**
|
|
1760
1810
|
* Break types configured by the company for time tracking
|
|
1761
1811
|
*/
|
|
@@ -1776,6 +1826,9 @@ export class RipplingSDK {
|
|
|
1776
1826
|
* An application by a candidate to a specific job requisition
|
|
1777
1827
|
*/
|
|
1778
1828
|
candidateApplications: API.CandidateApplications = new API.CandidateApplications(this);
|
|
1829
|
+
/**
|
|
1830
|
+
* Finance card transactions (posted charges) and authorizations (pending holds)
|
|
1831
|
+
*/
|
|
1779
1832
|
cardTransactions: API.CardTransactions = new API.CardTransactions(this);
|
|
1780
1833
|
/**
|
|
1781
1834
|
* Legal entities registered by the company
|
|
@@ -1794,6 +1847,18 @@ export class RipplingSDK {
|
|
|
1794
1847
|
* Custom fields defined by the company
|
|
1795
1848
|
*/
|
|
1796
1849
|
customFields: API.CustomFields = new API.CustomFields(this);
|
|
1850
|
+
/**
|
|
1851
|
+
* Custom object datarows defined by the company
|
|
1852
|
+
*/
|
|
1853
|
+
recordDetails: API.RecordDetails = new API.RecordDetails(this);
|
|
1854
|
+
/**
|
|
1855
|
+
* Custom object datarows defined by the company
|
|
1856
|
+
*/
|
|
1857
|
+
recordDetailReferenceOptions: API.RecordDetailReferenceOptions = new API.RecordDetailReferenceOptions(this);
|
|
1858
|
+
/**
|
|
1859
|
+
* Custom object datarows defined by the company
|
|
1860
|
+
*/
|
|
1861
|
+
recordDetailRelatedRecords: API.RecordDetailRelatedRecords = new API.RecordDetailRelatedRecords(this);
|
|
1797
1862
|
customPages: API.CustomPages = new API.CustomPages(this);
|
|
1798
1863
|
customSettings: API.CustomSettings = new API.CustomSettings(this);
|
|
1799
1864
|
/**
|
|
@@ -1840,6 +1905,14 @@ export class RipplingSDK {
|
|
|
1840
1905
|
* Generate presigned URLs to upload files to Rippling storage
|
|
1841
1906
|
*/
|
|
1842
1907
|
files: API.Files = new API.Files(this);
|
|
1908
|
+
/**
|
|
1909
|
+
* Categories used to classify Finance transaction line items
|
|
1910
|
+
*/
|
|
1911
|
+
financeCategories: API.FinanceCategories = new API.FinanceCategories(this);
|
|
1912
|
+
/**
|
|
1913
|
+
* Vendors in the company's Finance directory
|
|
1914
|
+
*/
|
|
1915
|
+
financeVendors: API.FinanceVendors = new API.FinanceVendors(this);
|
|
1843
1916
|
/**
|
|
1844
1917
|
* Headcount allocations for the company
|
|
1845
1918
|
*/
|
|
@@ -1892,6 +1965,10 @@ export class RipplingSDK {
|
|
|
1892
1965
|
* Author, publish, and install Unity Packages V2 packages
|
|
1893
1966
|
*/
|
|
1894
1967
|
packages: API.Packages = new API.Packages(this);
|
|
1968
|
+
/**
|
|
1969
|
+
* Author, publish, and install Unity Packages V2 packages
|
|
1970
|
+
*/
|
|
1971
|
+
packageComponents: API.PackageComponents = new API.PackageComponents(this);
|
|
1895
1972
|
/**
|
|
1896
1973
|
* Author, publish, and install Unity Packages V2 packages
|
|
1897
1974
|
*/
|
|
@@ -1900,6 +1977,7 @@ export class RipplingSDK {
|
|
|
1900
1977
|
* Author, publish, and install Unity Packages V2 packages
|
|
1901
1978
|
*/
|
|
1902
1979
|
packageManagedInstalls: API.PackageManagedInstalls = new API.PackageManagedInstalls(this);
|
|
1980
|
+
packageManifests: API.PackageManifests = new API.PackageManifests(this);
|
|
1903
1981
|
/**
|
|
1904
1982
|
* Author, publish, and install Unity Packages V2 packages
|
|
1905
1983
|
*/
|
|
@@ -1930,10 +2008,14 @@ export class RipplingSDK {
|
|
|
1930
2008
|
* Payroll runs for the company
|
|
1931
2009
|
*/
|
|
1932
2010
|
payrollRuns: API.PayrollRuns = new API.PayrollRuns(this);
|
|
2011
|
+
permissions: API.Permissions = new API.Permissions(this);
|
|
1933
2012
|
/**
|
|
1934
2013
|
* Custom objects defined by the company
|
|
1935
2014
|
*/
|
|
1936
2015
|
platformCapabilities: API.PlatformCapabilities = new API.PlatformCapabilities(this);
|
|
2016
|
+
/**
|
|
2017
|
+
* Expense reimbursements, including mileage and per diem
|
|
2018
|
+
*/
|
|
1937
2019
|
reimbursements: API.Reimbursements = new API.Reimbursements(this);
|
|
1938
2020
|
/**
|
|
1939
2021
|
* Report data for company
|
|
@@ -1967,7 +2049,6 @@ export class RipplingSDK {
|
|
|
1967
2049
|
* Software deployed to company devices
|
|
1968
2050
|
*/
|
|
1969
2051
|
softwareDeployments: API.SoftwareDeployments = new API.SoftwareDeployments(this);
|
|
1970
|
-
spendCategories: API.SpendCategories = new API.SpendCategories(this);
|
|
1971
2052
|
/**
|
|
1972
2053
|
* Job titles used by the company
|
|
1973
2054
|
*/
|
|
@@ -2063,6 +2144,7 @@ RipplingSDK.ActivityLog = ActivityLog;
|
|
|
2063
2144
|
RipplingSDK.Agents = Agents;
|
|
2064
2145
|
RipplingSDK.AppUsers = AppUsers;
|
|
2065
2146
|
RipplingSDK.BackgroundCheckCandidates = BackgroundCheckCandidates;
|
|
2147
|
+
RipplingSDK.Bills = Bills;
|
|
2066
2148
|
RipplingSDK.BreakPolicies = BreakPolicies;
|
|
2067
2149
|
RipplingSDK.BreakTypes = BreakTypes;
|
|
2068
2150
|
RipplingSDK.BusinessStructurePaths = BusinessStructurePaths;
|
|
@@ -2074,6 +2156,9 @@ RipplingSDK.CompanyLegalEntityWorkers = CompanyLegalEntityWorkers;
|
|
|
2074
2156
|
RipplingSDK.CompensationBandsDetails = CompensationBandsDetails;
|
|
2075
2157
|
RipplingSDK.CustomApps = CustomApps;
|
|
2076
2158
|
RipplingSDK.CustomFields = CustomFields;
|
|
2159
|
+
RipplingSDK.RecordDetails = RecordDetails;
|
|
2160
|
+
RipplingSDK.RecordDetailReferenceOptions = RecordDetailReferenceOptions;
|
|
2161
|
+
RipplingSDK.RecordDetailRelatedRecords = RecordDetailRelatedRecords;
|
|
2077
2162
|
RipplingSDK.CustomPages = CustomPages;
|
|
2078
2163
|
RipplingSDK.CustomSettings = CustomSettings;
|
|
2079
2164
|
RipplingSDK.DeveloperProgramApplication = DeveloperProgramApplication;
|
|
@@ -2087,6 +2172,8 @@ RipplingSDK.EarningsInputs = EarningsInputs;
|
|
|
2087
2172
|
RipplingSDK.EmployeeDocuments = EmployeeDocuments;
|
|
2088
2173
|
RipplingSDK.Entitlements = Entitlements;
|
|
2089
2174
|
RipplingSDK.Files = Files;
|
|
2175
|
+
RipplingSDK.FinanceCategories = FinanceCategories;
|
|
2176
|
+
RipplingSDK.FinanceVendors = FinanceVendors;
|
|
2090
2177
|
RipplingSDK.HeadcountPositions = HeadcountPositions;
|
|
2091
2178
|
RipplingSDK.HeadcountPriorities = HeadcountPriorities;
|
|
2092
2179
|
RipplingSDK.Hires = Hires;
|
|
@@ -2100,8 +2187,10 @@ RipplingSDK.ListingSubmissions = ListingSubmissions;
|
|
|
2100
2187
|
RipplingSDK.ListingTransitions = ListingTransitions;
|
|
2101
2188
|
RipplingSDK.LocationFactors = LocationFactors;
|
|
2102
2189
|
RipplingSDK.Packages = Packages;
|
|
2190
|
+
RipplingSDK.PackageComponents = PackageComponents;
|
|
2103
2191
|
RipplingSDK.PackageInstalls = PackageInstalls;
|
|
2104
2192
|
RipplingSDK.PackageManagedInstalls = PackageManagedInstalls;
|
|
2193
|
+
RipplingSDK.PackageManifests = PackageManifests;
|
|
2105
2194
|
RipplingSDK.PackageSandboxLinks = PackageSandboxLinks;
|
|
2106
2195
|
RipplingSDK.PackageUninstalls = PackageUninstalls;
|
|
2107
2196
|
RipplingSDK.PackageUpgrades = PackageUpgrades;
|
|
@@ -2109,6 +2198,7 @@ RipplingSDK.PackageVersions = PackageVersions;
|
|
|
2109
2198
|
RipplingSDK.PackageVersionComponentUpdates = PackageVersionComponentUpdates;
|
|
2110
2199
|
RipplingSDK.PayrollPaymentModeChanges = PayrollPaymentModeChanges;
|
|
2111
2200
|
RipplingSDK.PayrollRuns = PayrollRuns;
|
|
2201
|
+
RipplingSDK.Permissions = Permissions;
|
|
2112
2202
|
RipplingSDK.PlatformCapabilities = PlatformCapabilities;
|
|
2113
2203
|
RipplingSDK.Reimbursements = Reimbursements;
|
|
2114
2204
|
RipplingSDK.Reports = Reports;
|
|
@@ -2119,7 +2209,6 @@ RipplingSDK.ScheduledJobAssignments = ScheduledJobAssignments;
|
|
|
2119
2209
|
RipplingSDK.Shiftassignments = Shiftassignments;
|
|
2120
2210
|
RipplingSDK.Sites = Sites;
|
|
2121
2211
|
RipplingSDK.SoftwareDeployments = SoftwareDeployments;
|
|
2122
|
-
RipplingSDK.SpendCategories = SpendCategories;
|
|
2123
2212
|
RipplingSDK.Titles = Titles;
|
|
2124
2213
|
RipplingSDK.Unassignedshifts = Unassignedshifts;
|
|
2125
2214
|
RipplingSDK.VariableCompensationPayouts = VariableCompensationPayouts;
|
|
@@ -2485,6 +2574,15 @@ export declare namespace RipplingSDK {
|
|
|
2485
2574
|
type BackgroundCheckCandidateUpdateParams as BackgroundCheckCandidateUpdateParams,
|
|
2486
2575
|
};
|
|
2487
2576
|
|
|
2577
|
+
export {
|
|
2578
|
+
Bills as Bills,
|
|
2579
|
+
type BillListResponse as BillListResponse,
|
|
2580
|
+
type BillRetrieveResponse as BillRetrieveResponse,
|
|
2581
|
+
type BillListResponsesPageCursorURL as BillListResponsesPageCursorURL,
|
|
2582
|
+
type BillListParams as BillListParams,
|
|
2583
|
+
type BillRetrieveParams as BillRetrieveParams,
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2488
2586
|
export {
|
|
2489
2587
|
BreakPolicies as BreakPolicies,
|
|
2490
2588
|
type BreakPolicyListResponse as BreakPolicyListResponse,
|
|
@@ -2533,6 +2631,7 @@ export declare namespace RipplingSDK {
|
|
|
2533
2631
|
type CardTransactionRetrieveResponse as CardTransactionRetrieveResponse,
|
|
2534
2632
|
type CardTransactionListResponsesPageCursorURL as CardTransactionListResponsesPageCursorURL,
|
|
2535
2633
|
type CardTransactionListParams as CardTransactionListParams,
|
|
2634
|
+
type CardTransactionRetrieveParams as CardTransactionRetrieveParams,
|
|
2536
2635
|
};
|
|
2537
2636
|
|
|
2538
2637
|
export {
|
|
@@ -2578,6 +2677,28 @@ export declare namespace RipplingSDK {
|
|
|
2578
2677
|
type CustomFieldListParams as CustomFieldListParams,
|
|
2579
2678
|
};
|
|
2580
2679
|
|
|
2680
|
+
export {
|
|
2681
|
+
RecordDetails as RecordDetails,
|
|
2682
|
+
type RecordDetailRetrieveResponse as RecordDetailRetrieveResponse,
|
|
2683
|
+
type RecordDetailRetrieveCreateResponse as RecordDetailRetrieveCreateResponse,
|
|
2684
|
+
type RecordDetailRetrieveParams as RecordDetailRetrieveParams,
|
|
2685
|
+
type RecordDetailRetrieveCreateParams as RecordDetailRetrieveCreateParams,
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
export {
|
|
2689
|
+
RecordDetailReferenceOptions as RecordDetailReferenceOptions,
|
|
2690
|
+
type RecordDetailReferenceOptionListResponse as RecordDetailReferenceOptionListResponse,
|
|
2691
|
+
type RecordDetailReferenceOptionListResponsesPageCursorURL as RecordDetailReferenceOptionListResponsesPageCursorURL,
|
|
2692
|
+
type RecordDetailReferenceOptionListParams as RecordDetailReferenceOptionListParams,
|
|
2693
|
+
};
|
|
2694
|
+
|
|
2695
|
+
export {
|
|
2696
|
+
RecordDetailRelatedRecords as RecordDetailRelatedRecords,
|
|
2697
|
+
type RecordDetailRelatedRecordListResponse as RecordDetailRelatedRecordListResponse,
|
|
2698
|
+
type RecordDetailRelatedRecordListResponsesPageCursorURL as RecordDetailRelatedRecordListResponsesPageCursorURL,
|
|
2699
|
+
type RecordDetailRelatedRecordListParams as RecordDetailRelatedRecordListParams,
|
|
2700
|
+
};
|
|
2701
|
+
|
|
2581
2702
|
export {
|
|
2582
2703
|
CustomPages as CustomPages,
|
|
2583
2704
|
type CustomPageListResponse as CustomPageListResponse,
|
|
@@ -2682,6 +2803,22 @@ export declare namespace RipplingSDK {
|
|
|
2682
2803
|
type FileCreateParams as FileCreateParams,
|
|
2683
2804
|
};
|
|
2684
2805
|
|
|
2806
|
+
export {
|
|
2807
|
+
FinanceCategories as FinanceCategories,
|
|
2808
|
+
type FinanceCategoryListResponse as FinanceCategoryListResponse,
|
|
2809
|
+
type FinanceCategoryRetrieveResponse as FinanceCategoryRetrieveResponse,
|
|
2810
|
+
type FinanceCategoryListResponsesPageCursorURL as FinanceCategoryListResponsesPageCursorURL,
|
|
2811
|
+
type FinanceCategoryListParams as FinanceCategoryListParams,
|
|
2812
|
+
};
|
|
2813
|
+
|
|
2814
|
+
export {
|
|
2815
|
+
FinanceVendors as FinanceVendors,
|
|
2816
|
+
type FinanceVendorListResponse as FinanceVendorListResponse,
|
|
2817
|
+
type FinanceVendorRetrieveResponse as FinanceVendorRetrieveResponse,
|
|
2818
|
+
type FinanceVendorListResponsesPageCursorURL as FinanceVendorListResponsesPageCursorURL,
|
|
2819
|
+
type FinanceVendorListParams as FinanceVendorListParams,
|
|
2820
|
+
};
|
|
2821
|
+
|
|
2685
2822
|
export {
|
|
2686
2823
|
HeadcountPositions as HeadcountPositions,
|
|
2687
2824
|
type HeadcountPositionListResponse as HeadcountPositionListResponse,
|
|
@@ -2799,6 +2936,13 @@ export declare namespace RipplingSDK {
|
|
|
2799
2936
|
type PackageUpdateParams as PackageUpdateParams,
|
|
2800
2937
|
};
|
|
2801
2938
|
|
|
2939
|
+
export {
|
|
2940
|
+
PackageComponents as PackageComponents,
|
|
2941
|
+
type PackageComponentListResponse as PackageComponentListResponse,
|
|
2942
|
+
type PackageComponentListResponsesPageCursorURL as PackageComponentListResponsesPageCursorURL,
|
|
2943
|
+
type PackageComponentListParams as PackageComponentListParams,
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2802
2946
|
export {
|
|
2803
2947
|
PackageInstalls as PackageInstalls,
|
|
2804
2948
|
type PackageInstallCreateResponse as PackageInstallCreateResponse,
|
|
@@ -2813,6 +2957,8 @@ export declare namespace RipplingSDK {
|
|
|
2813
2957
|
type PackageManagedInstallCreateParams as PackageManagedInstallCreateParams,
|
|
2814
2958
|
};
|
|
2815
2959
|
|
|
2960
|
+
export { PackageManifests as PackageManifests };
|
|
2961
|
+
|
|
2816
2962
|
export {
|
|
2817
2963
|
PackageSandboxLinks as PackageSandboxLinks,
|
|
2818
2964
|
type PackageSandboxLinkCreateResponse as PackageSandboxLinkCreateResponse,
|
|
@@ -2862,6 +3008,8 @@ export declare namespace RipplingSDK {
|
|
|
2862
3008
|
type PayrollRunListParams as PayrollRunListParams,
|
|
2863
3009
|
};
|
|
2864
3010
|
|
|
3011
|
+
export { Permissions as Permissions };
|
|
3012
|
+
|
|
2865
3013
|
export {
|
|
2866
3014
|
PlatformCapabilities as PlatformCapabilities,
|
|
2867
3015
|
type PlatformCapabilityListResponse as PlatformCapabilityListResponse,
|
|
@@ -2872,8 +3020,11 @@ export declare namespace RipplingSDK {
|
|
|
2872
3020
|
Reimbursements as Reimbursements,
|
|
2873
3021
|
type ReimbursementListResponse as ReimbursementListResponse,
|
|
2874
3022
|
type ReimbursementRetrieveResponse as ReimbursementRetrieveResponse,
|
|
3023
|
+
type ReimbursementUpdateResponse as ReimbursementUpdateResponse,
|
|
2875
3024
|
type ReimbursementListResponsesPageCursorURL as ReimbursementListResponsesPageCursorURL,
|
|
2876
3025
|
type ReimbursementListParams as ReimbursementListParams,
|
|
3026
|
+
type ReimbursementRetrieveParams as ReimbursementRetrieveParams,
|
|
3027
|
+
type ReimbursementUpdateParams as ReimbursementUpdateParams,
|
|
2877
3028
|
};
|
|
2878
3029
|
|
|
2879
3030
|
export { Reports as Reports, type ReportRetrieveResponse as ReportRetrieveResponse };
|
|
@@ -2961,14 +3112,6 @@ export declare namespace RipplingSDK {
|
|
|
2961
3112
|
type SoftwareDeploymentUpdateParams as SoftwareDeploymentUpdateParams,
|
|
2962
3113
|
};
|
|
2963
3114
|
|
|
2964
|
-
export {
|
|
2965
|
-
SpendCategories as SpendCategories,
|
|
2966
|
-
type SpendCategoryListResponse as SpendCategoryListResponse,
|
|
2967
|
-
type SpendCategoryRetrieveResponse as SpendCategoryRetrieveResponse,
|
|
2968
|
-
type SpendCategoryListResponsesPageCursorURL as SpendCategoryListResponsesPageCursorURL,
|
|
2969
|
-
type SpendCategoryListParams as SpendCategoryListParams,
|
|
2970
|
-
};
|
|
2971
|
-
|
|
2972
3115
|
export {
|
|
2973
3116
|
Titles as Titles,
|
|
2974
3117
|
type TitleListResponse as TitleListResponse,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
CustomObjectDataRow,
|
|
3
|
-
RecordBulkCreateResponse,
|
|
4
|
-
RecordBulkUpdateResponse,
|
|
5
|
-
RecordCreateResponse,
|
|
6
3
|
RecordQueryParams,
|
|
7
4
|
RecordQueryResponse,
|
|
8
|
-
RecordUpdateResponse,
|
|
9
5
|
} from '../../../resources/custom-objects/records';
|
|
10
6
|
import { validateCreateInput, validateUpdateInput, type ValidationIssue } from './validation';
|
|
11
7
|
import type {
|
|
@@ -17,6 +13,19 @@ import type {
|
|
|
17
13
|
UpdateInput,
|
|
18
14
|
} from './types';
|
|
19
15
|
|
|
16
|
+
/** Successful write receipt when read access does not permit returning the record. */
|
|
17
|
+
export interface CustomObjectRecordWriteReceipt {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** A readable wire-level record or an ID-only write receipt. */
|
|
22
|
+
export type CustomObjectRecordWriteResult = CustomObjectDataRow | CustomObjectRecordWriteReceipt;
|
|
23
|
+
|
|
24
|
+
/** A readable logical-key record or an ID-only write receipt. Check for `name` before reading record fields. */
|
|
25
|
+
export type TypedRecordWriteResult<TDefinition extends AnyCustomObjectDefinition> =
|
|
26
|
+
| RecordShape<TDefinition>
|
|
27
|
+
| CustomObjectRecordWriteReceipt;
|
|
28
|
+
|
|
20
29
|
/**
|
|
21
30
|
* Minimal records-resource surface consumed by {@link CustomObjectManager}.
|
|
22
31
|
*
|
|
@@ -25,28 +34,31 @@ import type {
|
|
|
25
34
|
* exposing the same methods.
|
|
26
35
|
*/
|
|
27
36
|
export interface CustomObjectRecordsClient {
|
|
28
|
-
create(
|
|
37
|
+
create(
|
|
38
|
+
customObjectApiName: string,
|
|
39
|
+
body: Record<string, unknown>,
|
|
40
|
+
): Promise<{ data?: CustomObjectRecordWriteResult }>;
|
|
29
41
|
retrieve(customObjectApiName: string, recordId: string): Promise<CustomObjectDataRow>;
|
|
30
42
|
retrieveByExternalID(customObjectApiName: string, externalID: string): Promise<CustomObjectDataRow>;
|
|
31
43
|
update(
|
|
32
44
|
customObjectApiName: string,
|
|
33
45
|
recordId: string,
|
|
34
46
|
body: Record<string, unknown>,
|
|
35
|
-
): Promise<
|
|
47
|
+
): Promise<{ data?: CustomObjectRecordWriteResult }>;
|
|
36
48
|
delete(customObjectApiName: string, recordId: string): Promise<void>;
|
|
37
49
|
query(customObjectApiName: string, params: RecordQueryParams): Promise<RecordQueryResponse>;
|
|
38
50
|
bulkCreate(
|
|
39
51
|
customObjectApiName: string,
|
|
40
52
|
body: { all_or_nothing?: boolean; rows_to_write: Array<{ [key: string]: unknown }> },
|
|
41
|
-
): Promise<
|
|
53
|
+
): Promise<{ data?: CustomObjectRecordWriteResult[] }>;
|
|
42
54
|
bulkUpdate(
|
|
43
55
|
customObjectApiName: string,
|
|
44
|
-
body: { all_or_nothing?: boolean; rows_to_update: Array<{ [key: string]: unknown }> },
|
|
45
|
-
): Promise<
|
|
56
|
+
body: { all_or_nothing?: boolean; rows_to_update: Array<{ id: string; [key: string]: unknown }> },
|
|
57
|
+
): Promise<{ data?: CustomObjectRecordWriteResult[] }>;
|
|
46
58
|
bulkDelete(
|
|
47
59
|
customObjectApiName: string,
|
|
48
60
|
body: { all_or_nothing?: boolean; rows_to_delete: string[] },
|
|
49
|
-
): Promise<
|
|
61
|
+
): Promise<unknown>;
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
/** Minimal SDK-shaped wrapper accepted by {@link CustomObjectManager.fromSDK}. */
|
|
@@ -77,7 +89,7 @@ export interface CustomObjectRecordBulkUpdateRequest {
|
|
|
77
89
|
/** Whether the backend should reject the entire batch if any row fails. */
|
|
78
90
|
readonly allOrNothing?: boolean;
|
|
79
91
|
/** Wire-level rows to update, including each record id. */
|
|
80
|
-
readonly rowsToUpdate: readonly
|
|
92
|
+
readonly rowsToUpdate: readonly { id: string; [key: string]: unknown }[];
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
/** Adapter request for batch deletes. */
|
|
@@ -96,32 +108,32 @@ export interface CustomObjectRecordBulkDeleteRequest {
|
|
|
96
108
|
* backend client.
|
|
97
109
|
*/
|
|
98
110
|
export interface CustomObjectRecordAdapter {
|
|
99
|
-
/** Creates one
|
|
100
|
-
create(customObjectApiName: string, body: Record<string, unknown>): Promise<
|
|
111
|
+
/** Creates one record, returning readable fields or an ID-only receipt. */
|
|
112
|
+
create(customObjectApiName: string, body: Record<string, unknown>): Promise<CustomObjectRecordWriteResult>;
|
|
101
113
|
/** Retrieves one wire-level record by id. */
|
|
102
114
|
retrieve(customObjectApiName: string, recordId: string): Promise<CustomObjectDataRow>;
|
|
103
115
|
/** Retrieves one wire-level record by external id. */
|
|
104
116
|
retrieveByExternalID(customObjectApiName: string, externalID: string): Promise<CustomObjectDataRow>;
|
|
105
|
-
/** Updates one
|
|
117
|
+
/** Updates one record, returning readable fields or an ID-only receipt. */
|
|
106
118
|
update(
|
|
107
119
|
customObjectApiName: string,
|
|
108
120
|
recordId: string,
|
|
109
121
|
body: Record<string, unknown>,
|
|
110
|
-
): Promise<
|
|
122
|
+
): Promise<CustomObjectRecordWriteResult>;
|
|
111
123
|
/** Deletes one wire-level record. */
|
|
112
124
|
delete(customObjectApiName: string, recordId: string): Promise<void>;
|
|
113
125
|
/** Runs a backend query and returns raw rows. */
|
|
114
126
|
query(customObjectApiName: string, params: RecordQueryParams): Promise<CustomObjectRecordQueryResponse>;
|
|
115
|
-
/** Creates many
|
|
127
|
+
/** Creates many records, returning readable fields or ID-only receipts in response order. */
|
|
116
128
|
bulkCreate(
|
|
117
129
|
customObjectApiName: string,
|
|
118
130
|
request: CustomObjectRecordBulkCreateRequest,
|
|
119
|
-
): Promise<readonly
|
|
120
|
-
/** Updates many
|
|
131
|
+
): Promise<readonly CustomObjectRecordWriteResult[]>;
|
|
132
|
+
/** Updates many records, returning readable fields or ID-only receipts in response order. */
|
|
121
133
|
bulkUpdate(
|
|
122
134
|
customObjectApiName: string,
|
|
123
135
|
request: CustomObjectRecordBulkUpdateRequest,
|
|
124
|
-
): Promise<readonly
|
|
136
|
+
): Promise<readonly CustomObjectRecordWriteResult[]>;
|
|
125
137
|
/** Deletes many wire-level rows. */
|
|
126
138
|
bulkDelete(customObjectApiName: string, request: CustomObjectRecordBulkDeleteRequest): Promise<void>;
|
|
127
139
|
}
|
|
@@ -240,23 +252,31 @@ function isObject(value: unknown): value is Record<string, unknown> {
|
|
|
240
252
|
}
|
|
241
253
|
|
|
242
254
|
/**
|
|
243
|
-
* Requires a create/update response to contain
|
|
255
|
+
* Requires a create/update response to contain a record or ID-only receipt.
|
|
244
256
|
*
|
|
245
257
|
* @param customObjectApiName - Custom-object API name involved in the operation.
|
|
246
258
|
* @param operation - Human-readable operation name for error messages.
|
|
247
|
-
* @param row - Optional
|
|
248
|
-
* @returns Required
|
|
249
|
-
* @throws Error when the backend response is missing the
|
|
259
|
+
* @param row - Optional write result returned by the backend.
|
|
260
|
+
* @returns Required write result.
|
|
261
|
+
* @throws Error when the backend response is missing the write result.
|
|
250
262
|
*/
|
|
251
|
-
function
|
|
263
|
+
function requireSingleWriteResult(
|
|
252
264
|
customObjectApiName: string,
|
|
253
265
|
operation: string,
|
|
254
|
-
row:
|
|
255
|
-
):
|
|
266
|
+
row: CustomObjectRecordWriteResult | undefined,
|
|
267
|
+
): CustomObjectRecordWriteResult {
|
|
256
268
|
if (row != null) return row;
|
|
257
269
|
throw new Error(`Expected ${operation} on ${customObjectApiName} to return a record payload.`);
|
|
258
270
|
}
|
|
259
271
|
|
|
272
|
+
/** Decode readable fields only when the write returned a record rather than a receipt. */
|
|
273
|
+
function deserializeWriteResult<TDefinition extends AnyCustomObjectDefinition>(
|
|
274
|
+
definition: TDefinition,
|
|
275
|
+
result: CustomObjectRecordWriteResult,
|
|
276
|
+
): TypedRecordWriteResult<TDefinition> {
|
|
277
|
+
return 'name' in result ? deserializeRecord(definition, result) : { id: result.id };
|
|
278
|
+
}
|
|
279
|
+
|
|
260
280
|
/**
|
|
261
281
|
* Normalizes a lookup-or-file value into the wire-level id string expected by the REST API.
|
|
262
282
|
*
|
|
@@ -501,7 +521,7 @@ export function createCustomObjectRecordAdapter(
|
|
|
501
521
|
return {
|
|
502
522
|
async create(customObjectApiName, body) {
|
|
503
523
|
const response = await records.create(customObjectApiName, body);
|
|
504
|
-
return
|
|
524
|
+
return requireSingleWriteResult(customObjectApiName, 'create', response.data);
|
|
505
525
|
},
|
|
506
526
|
retrieve(customObjectApiName, recordId) {
|
|
507
527
|
return records.retrieve(customObjectApiName, recordId);
|
|
@@ -511,7 +531,7 @@ export function createCustomObjectRecordAdapter(
|
|
|
511
531
|
},
|
|
512
532
|
async update(customObjectApiName, recordId, body) {
|
|
513
533
|
const response = await records.update(customObjectApiName, recordId, body);
|
|
514
|
-
return
|
|
534
|
+
return requireSingleWriteResult(customObjectApiName, 'update', response.data);
|
|
515
535
|
},
|
|
516
536
|
delete(customObjectApiName, recordId) {
|
|
517
537
|
return records.delete(customObjectApiName, recordId);
|
|
@@ -537,8 +557,8 @@ export function createCustomObjectRecordAdapter(
|
|
|
537
557
|
});
|
|
538
558
|
return response.data ?? [];
|
|
539
559
|
},
|
|
540
|
-
bulkDelete(customObjectApiName, request) {
|
|
541
|
-
|
|
560
|
+
async bulkDelete(customObjectApiName, request) {
|
|
561
|
+
await records.bulkDelete(customObjectApiName, {
|
|
542
562
|
...(request.allOrNothing != null ? { all_or_nothing: request.allOrNothing } : {}),
|
|
543
563
|
rows_to_delete: [...request.rowsToDelete],
|
|
544
564
|
});
|
|
@@ -725,15 +745,15 @@ export class TypedCustomObjectRecordManager<TDefinition extends AnyCustomObjectD
|
|
|
725
745
|
* Creates one typed record after local schema validation.
|
|
726
746
|
*
|
|
727
747
|
* @param input - Typed logical create payload.
|
|
728
|
-
* @returns Created typed record.
|
|
748
|
+
* @returns Created typed record, or an ID-only receipt when read access is unavailable.
|
|
729
749
|
*/
|
|
730
|
-
async create(input: CreateInput<TDefinition>): Promise<
|
|
750
|
+
async create(input: CreateInput<TDefinition>): Promise<TypedRecordWriteResult<TDefinition>> {
|
|
731
751
|
assertValidCreatePayload(this.definition, input);
|
|
732
752
|
const row = await this.adapter.create(
|
|
733
753
|
this.definition.apiName,
|
|
734
754
|
serializeRecordInput(this.definition, input),
|
|
735
755
|
);
|
|
736
|
-
return
|
|
756
|
+
return deserializeWriteResult(this.definition, row);
|
|
737
757
|
}
|
|
738
758
|
|
|
739
759
|
/**
|
|
@@ -741,18 +761,18 @@ export class TypedCustomObjectRecordManager<TDefinition extends AnyCustomObjectD
|
|
|
741
761
|
*
|
|
742
762
|
* @param rows - Typed logical create payloads.
|
|
743
763
|
* @param options - Batch-write options forwarded to the adapter.
|
|
744
|
-
* @returns
|
|
764
|
+
* @returns Typed records or ID-only receipts in backend response order.
|
|
745
765
|
*/
|
|
746
766
|
async createMany(
|
|
747
767
|
rows: readonly CreateInput<TDefinition>[],
|
|
748
768
|
options: TypedBatchWriteOptions = {},
|
|
749
|
-
): Promise<readonly
|
|
769
|
+
): Promise<readonly TypedRecordWriteResult<TDefinition>[]> {
|
|
750
770
|
assertValidCreateBatch(this.definition, rows);
|
|
751
771
|
const created = await this.adapter.bulkCreate(this.definition.apiName, {
|
|
752
772
|
...(options.allOrNothing != null ? { allOrNothing: options.allOrNothing } : {}),
|
|
753
773
|
rowsToWrite: rows.map((row) => serializeRecordInput(this.definition, row)),
|
|
754
774
|
});
|
|
755
|
-
return created.map((row) =>
|
|
775
|
+
return created.map((row) => deserializeWriteResult(this.definition, row));
|
|
756
776
|
}
|
|
757
777
|
|
|
758
778
|
/**
|
|
@@ -782,16 +802,19 @@ export class TypedCustomObjectRecordManager<TDefinition extends AnyCustomObjectD
|
|
|
782
802
|
*
|
|
783
803
|
* @param recordId - Backend record id to update.
|
|
784
804
|
* @param patch - Typed logical update payload.
|
|
785
|
-
* @returns Updated typed record.
|
|
805
|
+
* @returns Updated typed record, or an ID-only receipt when read access is unavailable.
|
|
786
806
|
*/
|
|
787
|
-
async update(
|
|
807
|
+
async update(
|
|
808
|
+
recordId: string,
|
|
809
|
+
patch: UpdateInput<TDefinition>,
|
|
810
|
+
): Promise<TypedRecordWriteResult<TDefinition>> {
|
|
788
811
|
assertValidUpdatePayload(this.definition, patch);
|
|
789
812
|
const row = await this.adapter.update(
|
|
790
813
|
this.definition.apiName,
|
|
791
814
|
recordId,
|
|
792
815
|
serializeRecordInput(this.definition, patch),
|
|
793
816
|
);
|
|
794
|
-
return
|
|
817
|
+
return deserializeWriteResult(this.definition, row);
|
|
795
818
|
}
|
|
796
819
|
|
|
797
820
|
/**
|
|
@@ -799,12 +822,12 @@ export class TypedCustomObjectRecordManager<TDefinition extends AnyCustomObjectD
|
|
|
799
822
|
*
|
|
800
823
|
* @param rows - Typed update payloads, each including a backend record id.
|
|
801
824
|
* @param options - Batch-write options forwarded to the adapter.
|
|
802
|
-
* @returns
|
|
825
|
+
* @returns Typed records or ID-only receipts in backend response order.
|
|
803
826
|
*/
|
|
804
827
|
async updateMany(
|
|
805
828
|
rows: readonly TypedBulkUpdateInput<TDefinition>[],
|
|
806
829
|
options: TypedBatchWriteOptions = {},
|
|
807
|
-
): Promise<readonly
|
|
830
|
+
): Promise<readonly TypedRecordWriteResult<TDefinition>[]> {
|
|
808
831
|
assertValidUpdateBatch(this.definition, rows);
|
|
809
832
|
const updated = await this.adapter.bulkUpdate(this.definition.apiName, {
|
|
810
833
|
...(options.allOrNothing != null ? { allOrNothing: options.allOrNothing } : {}),
|
|
@@ -813,7 +836,7 @@ export class TypedCustomObjectRecordManager<TDefinition extends AnyCustomObjectD
|
|
|
813
836
|
return { id, ...serializeRecordInput(this.definition, patch) };
|
|
814
837
|
}),
|
|
815
838
|
});
|
|
816
|
-
return updated.map((row) =>
|
|
839
|
+
return updated.map((row) => deserializeWriteResult(this.definition, row));
|
|
817
840
|
}
|
|
818
841
|
|
|
819
842
|
/**
|
|
@@ -239,6 +239,8 @@ export type {
|
|
|
239
239
|
CustomObjectRecordBulkDeleteRequest,
|
|
240
240
|
CustomObjectRecordBulkUpdateRequest,
|
|
241
241
|
CustomObjectRecordQueryResponse,
|
|
242
|
+
CustomObjectRecordWriteReceipt,
|
|
243
|
+
CustomObjectRecordWriteResult,
|
|
242
244
|
CustomObjectRecordsClient,
|
|
243
245
|
InMemoryCustomObjectRecordAdapterOptions,
|
|
244
246
|
TypedBatchWriteOptions,
|
|
@@ -246,6 +248,7 @@ export type {
|
|
|
246
248
|
TypedRecordPage,
|
|
247
249
|
TypedRecordPageOptions,
|
|
248
250
|
TypedRecordQueryOptions,
|
|
251
|
+
TypedRecordWriteResult,
|
|
249
252
|
} from './custom-objects/manager';
|
|
250
253
|
|
|
251
254
|
/** Typed record-manager utilities for CRUD, batch operations, and records-resource/in-memory adapters. */
|