@rippling/rippling-sdk 0.2.0-alpha.110 → 0.2.0-alpha.111
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 +111 -0
- package/resources/record-detail-reference-options.d.mts.map +1 -0
- package/resources/record-detail-reference-options.d.ts +111 -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 +1070 -0
- package/resources/record-detail-related-records.d.mts.map +1 -0
- package/resources/record-detail-related-records.d.ts +1070 -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 +1227 -0
- package/resources/record-details.d.mts.map +1 -0
- package/resources/record-details.d.ts +1227 -0
- package/resources/record-details.d.ts.map +1 -0
- package/resources/record-details.js +71 -0
- package/resources/record-details.js.map +1 -0
- package/resources/record-details.mjs +67 -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/src/client.ts +156 -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 +51 -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 +142 -0
- package/src/resources/record-detail-related-records.ts +1380 -0
- package/src/resources/record-details.ts +1554 -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/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
|
@@ -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. */
|
|
@@ -35,7 +35,7 @@ export type ACPAgentEventKey = BusinessEventKey;
|
|
|
35
35
|
|
|
36
36
|
/** Initialization properties for {@link ACPAgent}. */
|
|
37
37
|
export interface ACPAgentProps {
|
|
38
|
-
/** Company-scoped API name
|
|
38
|
+
/** Company-scoped API name ending in `__c`. */
|
|
39
39
|
apiName: string;
|
|
40
40
|
/** Display name shown in Rippling. */
|
|
41
41
|
name: string;
|
|
@@ -76,6 +76,12 @@ export class ACPAgent {
|
|
|
76
76
|
private _entrypoint: string;
|
|
77
77
|
|
|
78
78
|
constructor(scope: ManifestScope, props: ACPAgentProps, sourceAgentId = props.apiName) {
|
|
79
|
+
if (!props.apiName.endsWith('__c')) {
|
|
80
|
+
throw new Error('Company ACP agent apiName must end with __c.');
|
|
81
|
+
}
|
|
82
|
+
if (!/^[a-z][a-z0-9_]{1,80}(?:__c)?$/.test(props.apiName)) {
|
|
83
|
+
throw new Error('ACP agent apiName must be a lowercase system name starting with a letter.');
|
|
84
|
+
}
|
|
79
85
|
if (props.identityMode !== 'runner') {
|
|
80
86
|
throw new Error('ACP agents support only runner identity.');
|
|
81
87
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCustomObjectRecordAdapter,
|
|
3
3
|
CustomObjectRecordValidationError,
|
|
4
|
+
type CustomObjectRecordWriteResult,
|
|
5
|
+
type TypedRecordWriteResult,
|
|
4
6
|
} from '../../../core/platform/custom-objects/manager';
|
|
5
7
|
import {
|
|
6
8
|
validateCreateInput,
|
|
@@ -152,6 +154,8 @@ export function createObjectRecords<D extends AnyCustomObjectDefinition>(
|
|
|
152
154
|
): Readonly<ObjectRecords<D>> {
|
|
153
155
|
const adapter = (ctx: ObjectRecordsContext) => createCustomObjectRecordAdapter(ctx.customObjects.records);
|
|
154
156
|
const decode = (row: CustomObjectDataRow) => decodeRecord(definition, row);
|
|
157
|
+
const decodeWrite = (result: CustomObjectRecordWriteResult): TypedRecordWriteResult<D> =>
|
|
158
|
+
'name' in result ? decode(result) : { id: result.id };
|
|
155
159
|
const serializeBatch = (rows: readonly Record<string, unknown>[], operation: 'create' | 'update') => {
|
|
156
160
|
const issues = rows.flatMap((row, index) => {
|
|
157
161
|
if (row == null || typeof row !== 'object' || Array.isArray(row))
|
|
@@ -173,11 +177,7 @@ export function createObjectRecords<D extends AnyCustomObjectDefinition>(
|
|
|
173
177
|
operation === 'create' ? 'bulk-create' : 'bulk-update',
|
|
174
178
|
issues,
|
|
175
179
|
);
|
|
176
|
-
return rows.map((row) =>
|
|
177
|
-
operation === 'create' ?
|
|
178
|
-
serializeInput(definition, row)
|
|
179
|
-
: { id: row['id'], ...serializeInput(definition, row) },
|
|
180
|
-
);
|
|
180
|
+
return rows.map((row) => serializeInput(definition, row));
|
|
181
181
|
};
|
|
182
182
|
const query = async (ctx: ObjectRecordsContext, options: Parameters<ObjectRecords<D>['query']>[1]) => {
|
|
183
183
|
const page = await adapter(ctx).query(definition.apiName, options ?? {});
|
|
@@ -186,11 +186,13 @@ export function createObjectRecords<D extends AnyCustomObjectDefinition>(
|
|
|
186
186
|
return Object.freeze<ObjectRecords<D>>({
|
|
187
187
|
async create(ctx, input) {
|
|
188
188
|
assertObjectInput(definition, input, 'create');
|
|
189
|
-
return
|
|
189
|
+
return decodeWrite(await adapter(ctx).create(definition.apiName, serializeInput(definition, input)));
|
|
190
190
|
},
|
|
191
191
|
async createMany(ctx, rows, options) {
|
|
192
192
|
const rowsToWrite = serializeBatch(rows, 'create');
|
|
193
|
-
return (await adapter(ctx).bulkCreate(definition.apiName, { ...options, rowsToWrite })).map(
|
|
193
|
+
return (await adapter(ctx).bulkCreate(definition.apiName, { ...options, rowsToWrite })).map(
|
|
194
|
+
decodeWrite,
|
|
195
|
+
);
|
|
194
196
|
},
|
|
195
197
|
async get(ctx, recordID) {
|
|
196
198
|
return decode(await adapter(ctx).retrieve(definition.apiName, recordID));
|
|
@@ -200,13 +202,18 @@ export function createObjectRecords<D extends AnyCustomObjectDefinition>(
|
|
|
200
202
|
},
|
|
201
203
|
async update(ctx, recordID, patch) {
|
|
202
204
|
assertObjectInput(definition, patch, 'update');
|
|
203
|
-
return
|
|
205
|
+
return decodeWrite(
|
|
204
206
|
await adapter(ctx).update(definition.apiName, recordID, serializeInput(definition, patch)),
|
|
205
207
|
);
|
|
206
208
|
},
|
|
207
209
|
async updateMany(ctx, rows, options) {
|
|
208
|
-
const rowsToUpdate = serializeBatch(rows, 'update')
|
|
209
|
-
|
|
210
|
+
const rowsToUpdate = serializeBatch(rows, 'update').map((patch, index) => ({
|
|
211
|
+
id: rows[index]!.id,
|
|
212
|
+
...patch,
|
|
213
|
+
}));
|
|
214
|
+
return (await adapter(ctx).bulkUpdate(definition.apiName, { ...options, rowsToUpdate })).map(
|
|
215
|
+
decodeWrite,
|
|
216
|
+
);
|
|
210
217
|
},
|
|
211
218
|
delete: (ctx, recordID) => adapter(ctx).delete(definition.apiName, recordID),
|
|
212
219
|
deleteMany: (ctx, recordIDs, options) =>
|
|
@@ -24,6 +24,7 @@ import type {
|
|
|
24
24
|
TypedRecordPageOptions,
|
|
25
25
|
TypedRecordQueryOptions,
|
|
26
26
|
TypedRecordPage,
|
|
27
|
+
TypedRecordWriteResult,
|
|
27
28
|
} from '../../../core/platform/custom-objects/manager';
|
|
28
29
|
import {
|
|
29
30
|
createRqlHelpers,
|
|
@@ -120,22 +121,26 @@ export type ObjectRecordListOptions<D extends AnyCustomObjectDefinition> = Typed
|
|
|
120
121
|
where?: ObjectFilter<D['apiName']>;
|
|
121
122
|
};
|
|
122
123
|
|
|
123
|
-
/** Typed record operations;
|
|
124
|
+
/** Typed record operations; writes return readable records or ID-only receipts. Supply an authenticated client at each call. */
|
|
124
125
|
export interface ObjectRecords<D extends AnyCustomObjectDefinition> {
|
|
125
|
-
create(ctx: ObjectRecordsContext, input: ObjectCreateInput<D>): Promise<
|
|
126
|
+
create(ctx: ObjectRecordsContext, input: ObjectCreateInput<D>): Promise<TypedRecordWriteResult<D>>;
|
|
126
127
|
createMany(
|
|
127
128
|
ctx: ObjectRecordsContext,
|
|
128
129
|
rows: readonly ObjectCreateInput<D>[],
|
|
129
130
|
options?: TypedBatchWriteOptions,
|
|
130
|
-
): Promise<readonly
|
|
131
|
+
): Promise<readonly TypedRecordWriteResult<D>[]>;
|
|
131
132
|
get(ctx: ObjectRecordsContext, recordID: string): Promise<RecordShape<D>>;
|
|
132
133
|
getByExternalID(ctx: ObjectRecordsContext, externalID: string): Promise<RecordShape<D>>;
|
|
133
|
-
update(
|
|
134
|
+
update(
|
|
135
|
+
ctx: ObjectRecordsContext,
|
|
136
|
+
recordID: string,
|
|
137
|
+
patch: ObjectUpdateInput<D>,
|
|
138
|
+
): Promise<TypedRecordWriteResult<D>>;
|
|
134
139
|
updateMany(
|
|
135
140
|
ctx: ObjectRecordsContext,
|
|
136
141
|
rows: readonly ObjectBulkUpdateInput<D>[],
|
|
137
142
|
options?: TypedBatchWriteOptions,
|
|
138
|
-
): Promise<readonly
|
|
143
|
+
): Promise<readonly TypedRecordWriteResult<D>[]>;
|
|
139
144
|
delete(ctx: ObjectRecordsContext, recordID: string): Promise<void>;
|
|
140
145
|
deleteMany(
|
|
141
146
|
ctx: ObjectRecordsContext,
|
|
@@ -169,18 +174,18 @@ export interface CustomObjectOperations<D extends AnyCustomObjectDefinition> {
|
|
|
169
174
|
|
|
170
175
|
/** The same operations with the authenticated client supplied by client.objects(definition). */
|
|
171
176
|
export interface ObjectClient<D extends AnyCustomObjectDefinition> {
|
|
172
|
-
create(input: ObjectCreateInput<D>): Promise<
|
|
177
|
+
create(input: ObjectCreateInput<D>): Promise<TypedRecordWriteResult<D>>;
|
|
173
178
|
createMany(
|
|
174
179
|
rows: readonly ObjectCreateInput<D>[],
|
|
175
180
|
options?: TypedBatchWriteOptions,
|
|
176
|
-
): Promise<readonly
|
|
181
|
+
): Promise<readonly TypedRecordWriteResult<D>[]>;
|
|
177
182
|
get(recordID: string): Promise<RecordShape<D>>;
|
|
178
183
|
getByExternalID(externalID: string): Promise<RecordShape<D>>;
|
|
179
|
-
update(recordID: string, patch: ObjectUpdateInput<D>): Promise<
|
|
184
|
+
update(recordID: string, patch: ObjectUpdateInput<D>): Promise<TypedRecordWriteResult<D>>;
|
|
180
185
|
updateMany(
|
|
181
186
|
rows: readonly ObjectBulkUpdateInput<D>[],
|
|
182
187
|
options?: TypedBatchWriteOptions,
|
|
183
|
-
): Promise<readonly
|
|
188
|
+
): Promise<readonly TypedRecordWriteResult<D>[]>;
|
|
184
189
|
delete(recordID: string): Promise<void>;
|
|
185
190
|
deleteMany(recordIDs: readonly string[], options?: TypedBatchWriteOptions): Promise<void>;
|
|
186
191
|
list(options?: ObjectRecordListOptions<D>): Promise<TypedRecordPage<D>>;
|
|
@@ -21,7 +21,7 @@ export class ActivityLog extends APIResource {
|
|
|
21
21
|
* installation receives 403. The targets.id filter does not match GROUP or
|
|
22
22
|
* SPOKE_USER targets.
|
|
23
23
|
*
|
|
24
|
-
* - Requires: `Activity Log Platform API`
|
|
24
|
+
* - Requires one of: `Activity Log Platform API`, `API Tier 1`
|
|
25
25
|
* - Filterable fields: `occurred_at`, `event_type`, `worker_id`, `targets.id`,
|
|
26
26
|
* `source_app_handle`
|
|
27
27
|
* - Expandable fields: `worker`
|
|
@@ -102,7 +102,16 @@ export interface MessageCreateResponse {
|
|
|
102
102
|
session_resume_receipt?: MessageCreateResponse.SessionResumeReceipt;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* The status of the session
|
|
105
|
+
* The status of the session. Possible values: `awaiting_approval`: someone else
|
|
106
|
+
* requested this session on your behalf, and it is waiting for your approval
|
|
107
|
+
* before it starts; `active`: the agent is running; `idle`: the session is open
|
|
108
|
+
* and waiting for more work; `waiting_on_user`: the agent is waiting for user
|
|
109
|
+
* input; `suspended`: the session is paused; `completed`: the session finished
|
|
110
|
+
* successfully; `ended`: the session was explicitly ended; `failed`: execution
|
|
111
|
+
* failed or the approval request expired or became invalid before execution;
|
|
112
|
+
* `cancelled`: execution was cancelled or the approval request was rejected or
|
|
113
|
+
* cancelled. The Platform API does not support requesting delegated execution or
|
|
114
|
+
* managing approvals.
|
|
106
115
|
*/
|
|
107
116
|
status?: string;
|
|
108
117
|
|
|
@@ -194,7 +194,16 @@ export interface SessionCreateResponse {
|
|
|
194
194
|
session_resume_receipt?: SessionCreateResponse.SessionResumeReceipt;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
* The status of the session
|
|
197
|
+
* The status of the session. Possible values: `awaiting_approval`: someone else
|
|
198
|
+
* requested this session on your behalf, and it is waiting for your approval
|
|
199
|
+
* before it starts; `active`: the agent is running; `idle`: the session is open
|
|
200
|
+
* and waiting for more work; `waiting_on_user`: the agent is waiting for user
|
|
201
|
+
* input; `suspended`: the session is paused; `completed`: the session finished
|
|
202
|
+
* successfully; `ended`: the session was explicitly ended; `failed`: execution
|
|
203
|
+
* failed or the approval request expired or became invalid before execution;
|
|
204
|
+
* `cancelled`: execution was cancelled or the approval request was rejected or
|
|
205
|
+
* cancelled. The Platform API does not support requesting delegated execution or
|
|
206
|
+
* managing approvals.
|
|
198
207
|
*/
|
|
199
208
|
status?: string;
|
|
200
209
|
|
|
@@ -264,7 +273,16 @@ export interface SessionListResponse {
|
|
|
264
273
|
session_resume_receipt?: SessionListResponse.SessionResumeReceipt;
|
|
265
274
|
|
|
266
275
|
/**
|
|
267
|
-
* The status of the session
|
|
276
|
+
* The status of the session. Possible values: `awaiting_approval`: someone else
|
|
277
|
+
* requested this session on your behalf, and it is waiting for your approval
|
|
278
|
+
* before it starts; `active`: the agent is running; `idle`: the session is open
|
|
279
|
+
* and waiting for more work; `waiting_on_user`: the agent is waiting for user
|
|
280
|
+
* input; `suspended`: the session is paused; `completed`: the session finished
|
|
281
|
+
* successfully; `ended`: the session was explicitly ended; `failed`: execution
|
|
282
|
+
* failed or the approval request expired or became invalid before execution;
|
|
283
|
+
* `cancelled`: execution was cancelled or the approval request was rejected or
|
|
284
|
+
* cancelled. The Platform API does not support requesting delegated execution or
|
|
285
|
+
* managing approvals.
|
|
268
286
|
*/
|
|
269
287
|
status?: string;
|
|
270
288
|
|
|
@@ -334,7 +352,16 @@ export interface SessionRetrieveResponse {
|
|
|
334
352
|
session_resume_receipt?: SessionRetrieveResponse.SessionResumeReceipt;
|
|
335
353
|
|
|
336
354
|
/**
|
|
337
|
-
* The status of the session
|
|
355
|
+
* The status of the session. Possible values: `awaiting_approval`: someone else
|
|
356
|
+
* requested this session on your behalf, and it is waiting for your approval
|
|
357
|
+
* before it starts; `active`: the agent is running; `idle`: the session is open
|
|
358
|
+
* and waiting for more work; `waiting_on_user`: the agent is waiting for user
|
|
359
|
+
* input; `suspended`: the session is paused; `completed`: the session finished
|
|
360
|
+
* successfully; `ended`: the session was explicitly ended; `failed`: execution
|
|
361
|
+
* failed or the approval request expired or became invalid before execution;
|
|
362
|
+
* `cancelled`: execution was cancelled or the approval request was rejected or
|
|
363
|
+
* cancelled. The Platform API does not support requesting delegated execution or
|
|
364
|
+
* managing approvals.
|
|
338
365
|
*/
|
|
339
366
|
status?: string;
|
|
340
367
|
|