@rippling/rippling-sdk 0.2.0-alpha.109 → 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 +69 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +69 -7
- package/client.d.ts.map +1 -1
- package/client.js +69 -3
- package/client.js.map +1 -1
- package/client.mjs +69 -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/index.d.mts +5 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +11 -1
- package/index.js.map +1 -1
- package/index.mjs +5 -0
- package/index.mjs.map +1 -1
- 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/composition.d.mts +21 -0
- package/lib/manifest/composition.d.mts.map +1 -0
- package/lib/manifest/composition.d.ts +21 -0
- package/lib/manifest/composition.d.ts.map +1 -0
- package/lib/manifest/composition.js +103 -0
- package/lib/manifest/composition.js.map +1 -0
- package/lib/manifest/composition.mjs +99 -0
- package/lib/manifest/composition.mjs.map +1 -0
- package/lib/manifest/definitions/_object-records.d.mts +23 -0
- package/lib/manifest/definitions/_object-records.d.mts.map +1 -0
- package/lib/manifest/definitions/_object-records.d.ts +23 -0
- package/lib/manifest/definitions/_object-records.d.ts.map +1 -0
- package/lib/manifest/definitions/_object-records.js +153 -0
- package/lib/manifest/definitions/_object-records.js.map +1 -0
- package/lib/manifest/definitions/_object-records.mjs +149 -0
- package/lib/manifest/definitions/_object-records.mjs.map +1 -0
- package/lib/manifest/definitions/action.d.mts +7 -0
- package/lib/manifest/definitions/action.d.mts.map +1 -0
- package/lib/manifest/definitions/action.d.ts +7 -0
- package/lib/manifest/definitions/action.d.ts.map +1 -0
- package/lib/manifest/definitions/action.js +25 -0
- package/lib/manifest/definitions/action.js.map +1 -0
- package/lib/manifest/definitions/action.mjs +22 -0
- package/lib/manifest/definitions/action.mjs.map +1 -0
- package/lib/manifest/definitions/agent.d.mts +51 -0
- package/lib/manifest/definitions/agent.d.mts.map +1 -0
- package/lib/manifest/definitions/agent.d.ts +51 -0
- package/lib/manifest/definitions/agent.d.ts.map +1 -0
- package/lib/manifest/definitions/agent.js +65 -0
- package/lib/manifest/definitions/agent.js.map +1 -0
- package/lib/manifest/definitions/agent.mjs +59 -0
- package/lib/manifest/definitions/agent.mjs.map +1 -0
- package/lib/manifest/definitions/app.d.mts +3 -0
- package/lib/manifest/definitions/app.d.mts.map +1 -0
- package/lib/manifest/definitions/app.d.ts +3 -0
- package/lib/manifest/definitions/app.d.ts.map +1 -0
- package/lib/manifest/definitions/app.js +14 -0
- package/lib/manifest/definitions/app.js.map +1 -0
- package/lib/manifest/definitions/app.mjs +11 -0
- package/lib/manifest/definitions/app.mjs.map +1 -0
- package/lib/manifest/definitions/category.d.mts +9 -0
- package/lib/manifest/definitions/category.d.mts.map +1 -0
- package/lib/manifest/definitions/category.d.ts +9 -0
- package/lib/manifest/definitions/category.d.ts.map +1 -0
- package/lib/manifest/definitions/category.js +27 -0
- package/lib/manifest/definitions/category.js.map +1 -0
- package/lib/manifest/definitions/category.mjs +23 -0
- package/lib/manifest/definitions/category.mjs.map +1 -0
- package/lib/manifest/definitions/component.d.mts +101 -0
- package/lib/manifest/definitions/component.d.mts.map +1 -0
- package/lib/manifest/definitions/component.d.ts +101 -0
- package/lib/manifest/definitions/component.d.ts.map +1 -0
- package/lib/manifest/definitions/component.js +106 -0
- package/lib/manifest/definitions/component.js.map +1 -0
- package/lib/manifest/definitions/component.mjs +97 -0
- package/lib/manifest/definitions/component.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.mts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.d.ts +13 -0
- package/lib/manifest/definitions/custom-field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field-section.js +15 -0
- package/lib/manifest/definitions/custom-field-section.js.map +1 -0
- package/lib/manifest/definitions/custom-field-section.mjs +12 -0
- package/lib/manifest/definitions/custom-field-section.mjs.map +1 -0
- package/lib/manifest/definitions/custom-field.d.mts +10 -0
- package/lib/manifest/definitions/custom-field.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-field.d.ts +10 -0
- package/lib/manifest/definitions/custom-field.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-field.js +18 -0
- package/lib/manifest/definitions/custom-field.js.map +1 -0
- package/lib/manifest/definitions/custom-field.mjs +15 -0
- package/lib/manifest/definitions/custom-field.mjs.map +1 -0
- package/lib/manifest/definitions/custom-object.d.mts +162 -0
- package/lib/manifest/definitions/custom-object.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-object.d.ts +162 -0
- package/lib/manifest/definitions/custom-object.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-object.js +412 -0
- package/lib/manifest/definitions/custom-object.js.map +1 -0
- package/lib/manifest/definitions/custom-object.mjs +386 -0
- package/lib/manifest/definitions/custom-object.mjs.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.mts +8 -0
- package/lib/manifest/definitions/custom-skill.d.mts.map +1 -0
- package/lib/manifest/definitions/custom-skill.d.ts +8 -0
- package/lib/manifest/definitions/custom-skill.d.ts.map +1 -0
- package/lib/manifest/definitions/custom-skill.js +15 -0
- package/lib/manifest/definitions/custom-skill.js.map +1 -0
- package/lib/manifest/definitions/custom-skill.mjs +12 -0
- package/lib/manifest/definitions/custom-skill.mjs.map +1 -0
- package/lib/manifest/definitions/field-section.d.mts +7 -0
- package/lib/manifest/definitions/field-section.d.mts.map +1 -0
- package/lib/manifest/definitions/field-section.d.ts +7 -0
- package/lib/manifest/definitions/field-section.d.ts.map +1 -0
- package/lib/manifest/definitions/field-section.js +16 -0
- package/lib/manifest/definitions/field-section.js.map +1 -0
- package/lib/manifest/definitions/field-section.mjs +13 -0
- package/lib/manifest/definitions/field-section.mjs.map +1 -0
- package/lib/manifest/definitions/field.d.mts +38 -0
- package/lib/manifest/definitions/field.d.mts.map +1 -0
- package/lib/manifest/definitions/field.d.ts +38 -0
- package/lib/manifest/definitions/field.d.ts.map +1 -0
- package/lib/manifest/definitions/field.js +50 -0
- package/lib/manifest/definitions/field.js.map +1 -0
- package/lib/manifest/definitions/field.mjs +45 -0
- package/lib/manifest/definitions/field.mjs.map +1 -0
- package/lib/manifest/definitions/function.d.mts +61 -0
- package/lib/manifest/definitions/function.d.mts.map +1 -0
- package/lib/manifest/definitions/function.d.ts +61 -0
- package/lib/manifest/definitions/function.d.ts.map +1 -0
- package/lib/manifest/definitions/function.js +79 -0
- package/lib/manifest/definitions/function.js.map +1 -0
- package/lib/manifest/definitions/function.mjs +73 -0
- package/lib/manifest/definitions/function.mjs.map +1 -0
- package/lib/manifest/definitions/index.d.mts +22 -0
- package/lib/manifest/definitions/index.d.mts.map +1 -0
- package/lib/manifest/definitions/index.d.ts +22 -0
- package/lib/manifest/definitions/index.d.ts.map +1 -0
- package/lib/manifest/definitions/index.js +64 -0
- package/lib/manifest/definitions/index.js.map +1 -0
- package/lib/manifest/definitions/index.mjs +22 -0
- package/lib/manifest/definitions/index.mjs.map +1 -0
- package/lib/manifest/definitions/list-view.d.mts +9 -0
- package/lib/manifest/definitions/list-view.d.mts.map +1 -0
- package/lib/manifest/definitions/list-view.d.ts +9 -0
- package/lib/manifest/definitions/list-view.d.ts.map +1 -0
- package/lib/manifest/definitions/list-view.js +25 -0
- package/lib/manifest/definitions/list-view.js.map +1 -0
- package/lib/manifest/definitions/list-view.mjs +22 -0
- package/lib/manifest/definitions/list-view.mjs.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.mts +13 -0
- package/lib/manifest/definitions/object-search-config.d.mts.map +1 -0
- package/lib/manifest/definitions/object-search-config.d.ts +13 -0
- package/lib/manifest/definitions/object-search-config.d.ts.map +1 -0
- package/lib/manifest/definitions/object-search-config.js +25 -0
- package/lib/manifest/definitions/object-search-config.js.map +1 -0
- package/lib/manifest/definitions/object-search-config.mjs +22 -0
- package/lib/manifest/definitions/object-search-config.mjs.map +1 -0
- package/lib/manifest/definitions/object-settings.d.mts +24 -0
- package/lib/manifest/definitions/object-settings.d.mts.map +1 -0
- package/lib/manifest/definitions/object-settings.d.ts +24 -0
- package/lib/manifest/definitions/object-settings.d.ts.map +1 -0
- package/lib/manifest/definitions/object-settings.js +32 -0
- package/lib/manifest/definitions/object-settings.js.map +1 -0
- package/lib/manifest/definitions/object-settings.mjs +29 -0
- package/lib/manifest/definitions/object-settings.mjs.map +1 -0
- package/lib/manifest/definitions/page-layout.d.mts +21 -0
- package/lib/manifest/definitions/page-layout.d.mts.map +1 -0
- package/lib/manifest/definitions/page-layout.d.ts +21 -0
- package/lib/manifest/definitions/page-layout.d.ts.map +1 -0
- package/lib/manifest/definitions/page-layout.js +155 -0
- package/lib/manifest/definitions/page-layout.js.map +1 -0
- package/lib/manifest/definitions/page-layout.mjs +152 -0
- package/lib/manifest/definitions/page-layout.mjs.map +1 -0
- package/lib/manifest/definitions/page.d.mts +8 -0
- package/lib/manifest/definitions/page.d.mts.map +1 -0
- package/lib/manifest/definitions/page.d.ts +8 -0
- package/lib/manifest/definitions/page.d.ts.map +1 -0
- package/lib/manifest/definitions/page.js +15 -0
- package/lib/manifest/definitions/page.js.map +1 -0
- package/lib/manifest/definitions/page.mjs +12 -0
- package/lib/manifest/definitions/page.mjs.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.mts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts +24 -0
- package/lib/manifest/definitions/record-triggered-flow.d.ts.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.js +28 -0
- package/lib/manifest/definitions/record-triggered-flow.js.map +1 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs +25 -0
- package/lib/manifest/definitions/record-triggered-flow.mjs.map +1 -0
- package/lib/manifest/definitions/validation.d.mts +8 -0
- package/lib/manifest/definitions/validation.d.mts.map +1 -0
- package/lib/manifest/definitions/validation.d.ts +8 -0
- package/lib/manifest/definitions/validation.d.ts.map +1 -0
- package/lib/manifest/definitions/validation.js +24 -0
- package/lib/manifest/definitions/validation.js.map +1 -0
- package/lib/manifest/definitions/validation.mjs +21 -0
- package/lib/manifest/definitions/validation.mjs.map +1 -0
- package/lib/manifest/definitions/workflow.d.mts +10 -0
- package/lib/manifest/definitions/workflow.d.mts.map +1 -0
- package/lib/manifest/definitions/workflow.d.ts +10 -0
- package/lib/manifest/definitions/workflow.d.ts.map +1 -0
- package/lib/manifest/definitions/workflow.js +33 -0
- package/lib/manifest/definitions/workflow.js.map +1 -0
- package/lib/manifest/definitions/workflow.mjs +29 -0
- package/lib/manifest/definitions/workflow.mjs.map +1 -0
- package/lib/manifest/index.d.mts +3 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +3 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +4 -0
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +3 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/package-manifest.d.mts +17 -0
- package/lib/manifest/package-manifest.d.mts.map +1 -0
- package/lib/manifest/package-manifest.d.ts +17 -0
- package/lib/manifest/package-manifest.d.ts.map +1 -0
- package/lib/manifest/package-manifest.js +26 -0
- package/lib/manifest/package-manifest.js.map +1 -0
- package/lib/manifest/package-manifest.mjs +23 -0
- package/lib/manifest/package-manifest.mjs.map +1 -0
- 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 +180 -17
- package/src/core/platform/custom-objects/manager.ts +65 -42
- package/src/core/platform/custom-objects.ts +3 -0
- package/src/index.ts +17 -0
- package/src/lib/manifest/acp-agent.ts +7 -1
- package/src/lib/manifest/composition.ts +133 -0
- package/src/lib/manifest/definitions/README.md +89 -0
- package/src/lib/manifest/definitions/_object-records.ts +225 -0
- package/src/lib/manifest/definitions/action.ts +31 -0
- package/src/lib/manifest/definitions/agent.ts +149 -0
- package/src/lib/manifest/definitions/app.ts +12 -0
- package/src/lib/manifest/definitions/category.ts +35 -0
- package/src/lib/manifest/definitions/component.ts +241 -0
- package/src/lib/manifest/definitions/custom-field-section.ts +39 -0
- package/src/lib/manifest/definitions/custom-field.ts +32 -0
- package/src/lib/manifest/definitions/custom-object.ts +791 -0
- package/src/lib/manifest/definitions/custom-skill.ts +28 -0
- package/src/lib/manifest/definitions/field-section.ts +31 -0
- package/src/lib/manifest/definitions/field.ts +119 -0
- package/src/lib/manifest/definitions/function.ts +198 -0
- package/src/lib/manifest/definitions/index.ts +91 -0
- package/src/lib/manifest/definitions/list-view.ts +48 -0
- package/src/lib/manifest/definitions/object-search-config.ts +44 -0
- package/src/lib/manifest/definitions/object-settings.ts +61 -0
- package/src/lib/manifest/definitions/page-layout.ts +218 -0
- package/src/lib/manifest/definitions/page.ts +28 -0
- package/src/lib/manifest/definitions/record-triggered-flow.ts +71 -0
- package/src/lib/manifest/definitions/validation.ts +46 -0
- package/src/lib/manifest/definitions/workflow.ts +62 -0
- package/src/lib/manifest/index.ts +4 -0
- package/src/lib/manifest/package-manifest.ts +40 -0
- 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
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { defineComponent, withApiName, registeredComponent, type ComponentDefinition } from './component';
|
|
2
|
+
import { CustomObjectPageLayout, type CustomObjectPageLayoutProps } from '../custom-object-page-layout';
|
|
3
|
+
import type { CustomObjectFieldSection } from '../custom-object-field-section';
|
|
4
|
+
import type { Field } from '../field';
|
|
5
|
+
import {
|
|
6
|
+
manifestObject,
|
|
7
|
+
manifestField,
|
|
8
|
+
manifestSection,
|
|
9
|
+
type ObjectReference,
|
|
10
|
+
type DefinitionFieldReference,
|
|
11
|
+
type SectionReference,
|
|
12
|
+
scopedDefinition,
|
|
13
|
+
type ObjectScoped,
|
|
14
|
+
} from './custom-object';
|
|
15
|
+
|
|
16
|
+
export type PageLayoutOptions<O extends ObjectReference> = LayoutInput<
|
|
17
|
+
O,
|
|
18
|
+
Omit<CustomObjectPageLayoutProps, 'layoutId'>
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export type DefinedPageLayout<O extends ObjectReference> = ObjectScoped<
|
|
22
|
+
O,
|
|
23
|
+
Omit<CustomObjectPageLayout, Mutations> & {
|
|
24
|
+
setTitleField(field: DefinitionFieldReference<O>): DefinedPageLayout<O>;
|
|
25
|
+
setDescriptionField(field: DefinitionFieldReference<O>): DefinedPageLayout<O>;
|
|
26
|
+
removeSection(
|
|
27
|
+
section: SectionReference<O> | string,
|
|
28
|
+
options?:
|
|
29
|
+
| import('../custom-object-page-layout').RemovePageLayoutSectionOptions
|
|
30
|
+
| import('../custom-object-page-layout').RemoveSystemPageLayoutSectionOptions,
|
|
31
|
+
): DefinedPageLayout<O>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<
|
|
34
|
+
Mutations,
|
|
35
|
+
'setTitleField' | 'setDescriptionField' | 'removeSection'
|
|
36
|
+
>]: CustomObjectPageLayout[K] extends (...args: infer A) => unknown ?
|
|
37
|
+
(...args: LayoutInput<O, A>) => DefinedPageLayout<O>
|
|
38
|
+
: never;
|
|
39
|
+
}
|
|
40
|
+
>;
|
|
41
|
+
|
|
42
|
+
export function definePageLayout<O extends ObjectReference>(
|
|
43
|
+
object: O,
|
|
44
|
+
props: PageLayoutOptions<NoInfer<O>>,
|
|
45
|
+
): DefinedPageLayout<O> {
|
|
46
|
+
const candidates = new Map<object, { field?: string; sections?: Set<string> }>();
|
|
47
|
+
// Adapt explicit references and delegate every layout operation to the existing implementation.
|
|
48
|
+
const adapt = (value: unknown, key?: string): any => {
|
|
49
|
+
if (key != null && opaque.has(key)) return value;
|
|
50
|
+
if (isSectionReference(value)) {
|
|
51
|
+
const sections = candidates.get(value)?.sections ?? new Set<string>();
|
|
52
|
+
sections.add(value.getSectionId());
|
|
53
|
+
candidates.set(value, { sections });
|
|
54
|
+
return manifestSection(object, value as SectionReference<O>);
|
|
55
|
+
}
|
|
56
|
+
if (
|
|
57
|
+
isFieldReference(value) ||
|
|
58
|
+
(value != null && typeof value === 'object' && 'objectApiName' in value && 'apiName' in value)
|
|
59
|
+
) {
|
|
60
|
+
const field = manifestField(object, value as DefinitionFieldReference<O>);
|
|
61
|
+
if (registeredComponent(value) != null) candidates.set(value, { field: field.getApiName() });
|
|
62
|
+
return key != null && headerFields.has(key) ? field.getApiName() : field;
|
|
63
|
+
}
|
|
64
|
+
if (Array.isArray(value)) return value.map((item) => adapt(item));
|
|
65
|
+
if (value != null && typeof value === 'object') {
|
|
66
|
+
const input = value as Record<string, any>;
|
|
67
|
+
const result = Object.fromEntries(
|
|
68
|
+
Object.entries(input).map(([name, item]) => [
|
|
69
|
+
name,
|
|
70
|
+
input['type'] === 'fields_section' && name === 'section' ?
|
|
71
|
+
manifestSection(object, item as SectionReference<O>)
|
|
72
|
+
: adapt(item, name),
|
|
73
|
+
]),
|
|
74
|
+
);
|
|
75
|
+
if (input['type'] === 'fields_section' && typeof input['section'] === 'object') {
|
|
76
|
+
const section = input['section'] as CustomObjectFieldSection;
|
|
77
|
+
const sections = candidates.get(section)?.sections ?? new Set<string>();
|
|
78
|
+
sections.add(input['key'] ?? section.getSectionId());
|
|
79
|
+
candidates.set(section, { sections });
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
return value;
|
|
84
|
+
};
|
|
85
|
+
const adapted = adapt(props) as CustomObjectPageLayoutProps;
|
|
86
|
+
if (adapted.tabEdits != null && adapted.tabEdits.tabsOrder === undefined) {
|
|
87
|
+
adapted.tabEdits.tabsOrder = [
|
|
88
|
+
...new Set([
|
|
89
|
+
...(adapted.tabEdits.newTabs ?? []).map((tab) => tab.key),
|
|
90
|
+
...Object.entries(adapted.tabEdits.systemTabEdits ?? {})
|
|
91
|
+
.filter(([, tab]) => !tab.deleted)
|
|
92
|
+
.map(([key]) => key),
|
|
93
|
+
]),
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
const layout = withApiName(
|
|
97
|
+
new CustomObjectPageLayout(manifestObject(object), {
|
|
98
|
+
...adapted,
|
|
99
|
+
layoutId: props.apiName,
|
|
100
|
+
}),
|
|
101
|
+
props.apiName,
|
|
102
|
+
);
|
|
103
|
+
for (const name of Object.getOwnPropertyNames(CustomObjectPageLayout.prototype)) {
|
|
104
|
+
if (!/^(add|remove|set)[A-Z]/.test(name)) continue;
|
|
105
|
+
const method = (layout as any)[name].bind(layout);
|
|
106
|
+
(layout as any)[name] = (...args: unknown[]) => {
|
|
107
|
+
if (/^(add|remove)Fields?$/.test(name)) {
|
|
108
|
+
const options = args[1];
|
|
109
|
+
if (
|
|
110
|
+
options != null &&
|
|
111
|
+
typeof options === 'object' &&
|
|
112
|
+
'section' in options &&
|
|
113
|
+
typeof options.section === 'string'
|
|
114
|
+
) {
|
|
115
|
+
args[1] = {
|
|
116
|
+
...options,
|
|
117
|
+
section: manifestSection(object, options.section as SectionReference<O>),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
method(...args.map((arg) => adapt(arg)));
|
|
122
|
+
return layout;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
// Only currently serialized structural references count; removed fields/sections do not become roots.
|
|
126
|
+
dependencies.set(layout, () => {
|
|
127
|
+
const config = layout.toDict();
|
|
128
|
+
const fields = new Set<string>();
|
|
129
|
+
const sections = new Set<string>();
|
|
130
|
+
const header = config['header_edits'] ?? {};
|
|
131
|
+
for (const name of [
|
|
132
|
+
header.newTitleField,
|
|
133
|
+
header.newDescriptionField,
|
|
134
|
+
...(header.newFields ?? []).map((f: any) => f.rqlName),
|
|
135
|
+
...Object.values(header.systemFieldEdits ?? {}).map((f: any) => f.newRqlField),
|
|
136
|
+
])
|
|
137
|
+
if (typeof name === 'string') fields.add(name);
|
|
138
|
+
const collectSection = (section: any) => {
|
|
139
|
+
if (section.type !== 'fields_section') return;
|
|
140
|
+
sections.add(section.key);
|
|
141
|
+
for (const field of section.fields ?? []) fields.add(field.fieldRqlName);
|
|
142
|
+
};
|
|
143
|
+
const tabs = config['tab_edits'] ?? {};
|
|
144
|
+
for (const tab of tabs.newTabs ?? []) for (const section of tab.sections ?? []) collectSection(section);
|
|
145
|
+
for (const tab of Object.values(tabs.systemTabEdits ?? {}) as any[]) {
|
|
146
|
+
if (tab.deleted) continue;
|
|
147
|
+
for (const section of tab.newSections ?? []) collectSection(section);
|
|
148
|
+
for (const [key, section] of Object.entries(tab.systemSectionEdits ?? {}) as [string, any][]) {
|
|
149
|
+
if (section.deleted) continue;
|
|
150
|
+
sections.add(key);
|
|
151
|
+
for (const field of section.newFields ?? []) fields.add(field.fieldRqlName);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return [...candidates]
|
|
155
|
+
.filter(([, ref]) =>
|
|
156
|
+
ref.field != null ?
|
|
157
|
+
fields.has(ref.field)
|
|
158
|
+
: [...(ref.sections ?? [])].some((key) => sections.has(key)),
|
|
159
|
+
)
|
|
160
|
+
.map(([definition]) => definition);
|
|
161
|
+
});
|
|
162
|
+
return pageLayoutComponent.register(
|
|
163
|
+
scopedDefinition(object, layout) as unknown as DefinedPageLayout<O>,
|
|
164
|
+
object,
|
|
165
|
+
props,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function isFieldReference(value: unknown): value is Field {
|
|
170
|
+
return (
|
|
171
|
+
value != null &&
|
|
172
|
+
typeof value === 'object' &&
|
|
173
|
+
'getApiName' in value &&
|
|
174
|
+
typeof value.getApiName === 'function' &&
|
|
175
|
+
'getCustomObjectApiName' in value &&
|
|
176
|
+
typeof value.getCustomObjectApiName === 'function'
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function isSectionReference(value: unknown): value is CustomObjectFieldSection {
|
|
181
|
+
return (
|
|
182
|
+
value != null &&
|
|
183
|
+
typeof value === 'object' &&
|
|
184
|
+
'getSectionId' in value &&
|
|
185
|
+
typeof value.getSectionId === 'function' &&
|
|
186
|
+
'getModelApiName' in value &&
|
|
187
|
+
typeof value.getModelApiName === 'function'
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
type LayoutInput<O extends ObjectReference, T> = T extends CustomObjectFieldSection ? SectionReference<O>
|
|
192
|
+
: T extends Field ? DefinitionFieldReference<O>
|
|
193
|
+
: T extends readonly unknown[] ? { [K in keyof T]: LayoutInput<O, T[K]> }
|
|
194
|
+
: T extends object ?
|
|
195
|
+
{
|
|
196
|
+
[K in keyof T]: K extends 'defaultValue' | 'visibilityConditions' | 'inputMapping' ? T[K]
|
|
197
|
+
: K extends 'newRqlField' | 'newTitleField' | 'newDescriptionField' | 'rqlName' ?
|
|
198
|
+
T[K] | DefinitionFieldReference<O>
|
|
199
|
+
: LayoutInput<O, T[K]>;
|
|
200
|
+
}
|
|
201
|
+
: T;
|
|
202
|
+
|
|
203
|
+
type Mutations = Extract<keyof CustomObjectPageLayout, `add${string}` | `remove${string}` | `set${string}`>;
|
|
204
|
+
|
|
205
|
+
const dependencies = new WeakMap<object, () => object[]>();
|
|
206
|
+
|
|
207
|
+
const opaque = new Set(['defaultValue', 'visibilityConditions', 'inputMapping']);
|
|
208
|
+
|
|
209
|
+
const headerFields = new Set(['newRqlField', 'newTitleField', 'newDescriptionField', 'rqlName']);
|
|
210
|
+
|
|
211
|
+
const pageLayoutComponent: ComponentDefinition<typeof definePageLayout> = defineComponent({
|
|
212
|
+
type: 'CUSTOM_OBJECT_PAGE_LAYOUT',
|
|
213
|
+
define: definePageLayout,
|
|
214
|
+
references: (definition, object) => () => [
|
|
215
|
+
object,
|
|
216
|
+
...(dependencies.get(definition)?.() ?? []).filter((reference) => registeredComponent(reference) != null),
|
|
217
|
+
],
|
|
218
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineComponent,
|
|
3
|
+
withApiName,
|
|
4
|
+
detachedManifestScope,
|
|
5
|
+
validateCustomApiName,
|
|
6
|
+
type ComponentDefinition,
|
|
7
|
+
} from './component';
|
|
8
|
+
import { ManifestFunction } from '../manifest-function';
|
|
9
|
+
import { SduiPage, type SduiPageProps } from '../sdui-page';
|
|
10
|
+
|
|
11
|
+
export type DefinePageProps = Omit<SduiPageProps, 'sduiPageId' | 'apiName' | 'function'> & {
|
|
12
|
+
apiName: `${string}__c`;
|
|
13
|
+
function: ManifestFunction;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function definePage(props: DefinePageProps): SduiPage {
|
|
17
|
+
validateCustomApiName(props.apiName);
|
|
18
|
+
return pageComponent.register(
|
|
19
|
+
withApiName(new SduiPage(detachedManifestScope, { ...props, sduiPageId: props.apiName }), props.apiName),
|
|
20
|
+
props,
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const pageComponent: ComponentDefinition<typeof definePage> = defineComponent({
|
|
25
|
+
type: 'SDUI_PAGE',
|
|
26
|
+
define: definePage,
|
|
27
|
+
references: (_definition, props) => [props.function],
|
|
28
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent, withApiName, validateCustomApiName, type ComponentDefinition } from './component';
|
|
2
|
+
import {
|
|
3
|
+
fieldReferences,
|
|
4
|
+
type ObjectScoped,
|
|
5
|
+
manifestObject,
|
|
6
|
+
manifestField,
|
|
7
|
+
type ObjectReference,
|
|
8
|
+
type DefinitionFieldReference,
|
|
9
|
+
} from './custom-object';
|
|
10
|
+
import type { Field } from '../field';
|
|
11
|
+
import type { AnyCustomObjectDefinition, FieldValue } from '../../../core/platform/custom-objects/types';
|
|
12
|
+
import { Rule, type RuleProps, type RuleAction } from '../rule';
|
|
13
|
+
|
|
14
|
+
/** Flow actions accept shared writable field definitions as well as existing manifest fields. */
|
|
15
|
+
export type DefinedRuleAction<TObject extends ObjectReference> =
|
|
16
|
+
| (Omit<RuleAction, 'targetField'> & { targetField: ObjectScoped<TObject, Field> })
|
|
17
|
+
| (TObject extends AnyCustomObjectDefinition ?
|
|
18
|
+
{
|
|
19
|
+
[K in keyof TObject['fields']]: TypedRuleAction<TObject['fields'][K]>;
|
|
20
|
+
}[keyof TObject['fields']]
|
|
21
|
+
: never);
|
|
22
|
+
|
|
23
|
+
export type DefineRecordTriggeredFlowProps<TObject extends ObjectReference> = Omit<
|
|
24
|
+
RuleProps,
|
|
25
|
+
'flowId' | 'apiName' | 'actions'
|
|
26
|
+
> & {
|
|
27
|
+
apiName: `${string}__c`;
|
|
28
|
+
actions?: readonly DefinedRuleAction<NoInfer<TObject>>[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export function defineRecordTriggeredFlow<TObject extends ObjectReference>(
|
|
32
|
+
object: TObject,
|
|
33
|
+
props: DefineRecordTriggeredFlowProps<TObject>,
|
|
34
|
+
): Rule {
|
|
35
|
+
validateCustomApiName(props.apiName);
|
|
36
|
+
const { actions: inputActions, ...rest } = props;
|
|
37
|
+
const actions = inputActions?.map((action) => ({
|
|
38
|
+
...action,
|
|
39
|
+
targetField: manifestField(object, action.targetField as DefinitionFieldReference<TObject>),
|
|
40
|
+
}));
|
|
41
|
+
return recordTriggeredFlowComponent.register(
|
|
42
|
+
withApiName(
|
|
43
|
+
new Rule(manifestObject(object), {
|
|
44
|
+
...rest,
|
|
45
|
+
flowId: rest.apiName,
|
|
46
|
+
...(actions != null ? { actions } : {}),
|
|
47
|
+
}),
|
|
48
|
+
rest.apiName,
|
|
49
|
+
),
|
|
50
|
+
object,
|
|
51
|
+
props,
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type TypedRuleAction<TField> =
|
|
56
|
+
TField extends { writable: true } ?
|
|
57
|
+
{
|
|
58
|
+
targetField: TField;
|
|
59
|
+
fixedValue?: FieldValue<TField>;
|
|
60
|
+
rqlFormula?: string;
|
|
61
|
+
}
|
|
62
|
+
: never;
|
|
63
|
+
|
|
64
|
+
const recordTriggeredFlowComponent: ComponentDefinition<typeof defineRecordTriggeredFlow> = defineComponent({
|
|
65
|
+
type: 'CUSTOM_OBJECT_RECORD_TRIGGERED_FLOW',
|
|
66
|
+
define: defineRecordTriggeredFlow,
|
|
67
|
+
references: (_definition, object, props) => [
|
|
68
|
+
object,
|
|
69
|
+
...(props.actions ?? []).flatMap((action) => fieldReferences(object, action.targetField)),
|
|
70
|
+
],
|
|
71
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent, withApiName, validateCustomApiName, type ComponentDefinition } from './component';
|
|
2
|
+
import {
|
|
3
|
+
fieldReferences,
|
|
4
|
+
manifestObject,
|
|
5
|
+
manifestField,
|
|
6
|
+
type ObjectReference,
|
|
7
|
+
type DefinitionFieldReference,
|
|
8
|
+
} from './custom-object';
|
|
9
|
+
import { Validation, type ValidationProps } from '../validation';
|
|
10
|
+
|
|
11
|
+
export type DefineValidationProps<TObject extends ObjectReference> = Omit<
|
|
12
|
+
ValidationProps,
|
|
13
|
+
'ruleId' | 'apiName' | 'fieldRef'
|
|
14
|
+
> & {
|
|
15
|
+
apiName: `${string}__c`;
|
|
16
|
+
fieldRef?: NoInfer<DefinitionFieldReference<TObject>>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export function defineValidation<TObject extends ObjectReference>(
|
|
20
|
+
object: TObject,
|
|
21
|
+
props: DefineValidationProps<TObject>,
|
|
22
|
+
): Validation {
|
|
23
|
+
validateCustomApiName(props.apiName);
|
|
24
|
+
const { fieldRef, ...rest } = props;
|
|
25
|
+
return validationComponent.register(
|
|
26
|
+
withApiName(
|
|
27
|
+
new Validation(manifestObject(object), {
|
|
28
|
+
...rest,
|
|
29
|
+
ruleId: rest.apiName,
|
|
30
|
+
...(fieldRef != null ? { fieldRef: manifestField(object, fieldRef) } : {}),
|
|
31
|
+
}),
|
|
32
|
+
rest.apiName,
|
|
33
|
+
),
|
|
34
|
+
object,
|
|
35
|
+
props,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const validationComponent: ComponentDefinition<typeof defineValidation> = defineComponent({
|
|
40
|
+
type: 'CUSTOM_OBJECT_VALIDATION_RULE',
|
|
41
|
+
define: defineValidation,
|
|
42
|
+
references: (_definition, object, props) => [
|
|
43
|
+
object,
|
|
44
|
+
...(props.fieldRef == null ? [] : fieldReferences(object, props.fieldRef)),
|
|
45
|
+
],
|
|
46
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
detachedManifestScope,
|
|
3
|
+
defineComponent,
|
|
4
|
+
withApiName,
|
|
5
|
+
validateCustomApiName,
|
|
6
|
+
type ComponentDefinition,
|
|
7
|
+
} from './component';
|
|
8
|
+
import { Workflow, type WorkflowProps, type WorkflowNode, type WorkflowGraph } from '../workflow';
|
|
9
|
+
import type { WorkflowActionPayloads } from '../workflow/actions';
|
|
10
|
+
import type { ManifestFunction } from '../manifest-function';
|
|
11
|
+
|
|
12
|
+
export type DefineWorkflowProps = Omit<WorkflowProps, 'definitionId' | 'apiName'> & {
|
|
13
|
+
apiName: `${string}__c`;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** An explicit graph reference includes its function in the manifest and keeps the wire graph unchanged. */
|
|
17
|
+
export function workflowFunction(
|
|
18
|
+
definition: ManifestFunction,
|
|
19
|
+
payload: Omit<WorkflowActionPayloads['RunFunction'], 'function_id'>,
|
|
20
|
+
options: Omit<WorkflowNode, 'config_id' | 'payload' | 'processing_context'> = {},
|
|
21
|
+
): WorkflowNode {
|
|
22
|
+
const node: ReferencedNode = {
|
|
23
|
+
...options,
|
|
24
|
+
config_id: 'RunFunction',
|
|
25
|
+
payload: { ...payload, function_id: definition.getApiName() },
|
|
26
|
+
processing_context: { function_context: { function_api_name: definition.getApiName() } },
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(node, nodeFunction, { value: definition, enumerable: true });
|
|
29
|
+
return node;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function defineWorkflow(props: DefineWorkflowProps): Workflow {
|
|
33
|
+
validateCustomApiName(props.apiName);
|
|
34
|
+
return workflowComponent.register(
|
|
35
|
+
withApiName(
|
|
36
|
+
new Workflow(detachedManifestScope, { ...props, definitionId: props.apiName }),
|
|
37
|
+
props.apiName,
|
|
38
|
+
),
|
|
39
|
+
props,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const nodeFunction = Symbol.for('@rippling/sdk/workflow-node-function/v1');
|
|
44
|
+
|
|
45
|
+
type ReferencedNode = WorkflowNode & { readonly [nodeFunction]?: ManifestFunction };
|
|
46
|
+
|
|
47
|
+
const graphFunctions = (graph: WorkflowGraph | undefined): ManifestFunction[] =>
|
|
48
|
+
Object.values(graph?.nodes ?? {}).flatMap((node: ReferencedNode) =>
|
|
49
|
+
node[nodeFunction] == null ? [] : [node[nodeFunction]],
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const workflowComponent: ComponentDefinition<typeof defineWorkflow> = defineComponent({
|
|
53
|
+
type: 'WORKFLOW_DEFINITION',
|
|
54
|
+
define: defineWorkflow,
|
|
55
|
+
references:
|
|
56
|
+
(_definition, { function: fn, graph, functionsInferredGraph }) =>
|
|
57
|
+
() => [
|
|
58
|
+
...(fn == null || typeof fn === 'string' ? [] : [fn]),
|
|
59
|
+
...graphFunctions(graph),
|
|
60
|
+
...graphFunctions(functionsInferredGraph),
|
|
61
|
+
],
|
|
62
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { BuiltManifest } from './manifest-builder';
|
|
2
|
+
|
|
3
|
+
/** Publisher-owned package information, independent of component identities. */
|
|
4
|
+
export interface PackageInformation {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: 'managed' | 'unmanaged';
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Package information and a reference to the project's source manifest. */
|
|
12
|
+
export interface PackageManifest {
|
|
13
|
+
package: PackageInformation;
|
|
14
|
+
version: string;
|
|
15
|
+
manifest: Readonly<BuiltManifest>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Define package information around an existing manifest without compiling its sources. */
|
|
19
|
+
export function definePackageManifest(input: PackageManifest): Readonly<PackageManifest> {
|
|
20
|
+
if (!/^[a-z][a-z0-9_]{0,99}$/.test(input.package.key))
|
|
21
|
+
throw new Error(
|
|
22
|
+
'Package key must start with a lowercase letter and contain only lowercase letters, digits, or underscores (maximum 100 characters).',
|
|
23
|
+
);
|
|
24
|
+
if (input.package.key.includes('rippling'))
|
|
25
|
+
throw new Error('Package key cannot contain the reserved name rippling.');
|
|
26
|
+
if (!input.package.name.trim()) throw new Error('Package name is required.');
|
|
27
|
+
if (input.package.type !== 'managed' && input.package.type !== 'unmanaged')
|
|
28
|
+
throw new Error('Package type must be managed or unmanaged.');
|
|
29
|
+
if (!/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(input.version))
|
|
30
|
+
throw new Error('Package version must be major.minor.patch.');
|
|
31
|
+
if (input.manifest.metadata == null || !Array.isArray(input.manifest.components))
|
|
32
|
+
throw new Error('Package manifest requires metadata and components.');
|
|
33
|
+
if (input.manifest.components_to_delete != null && input.manifest.components_to_delete.length > 0)
|
|
34
|
+
throw new Error('Package snapshots cannot contain component deletions.');
|
|
35
|
+
return Object.freeze({
|
|
36
|
+
package: Object.freeze({ ...input.package }),
|
|
37
|
+
version: input.version,
|
|
38
|
+
manifest: input.manifest,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -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
|
|