@rippling/rippling-sdk 0.2.0-alpha.82 → 0.2.0-alpha.84
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 +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/platform/custom-objects/category.d.mts +125 -0
- package/core/platform/custom-objects/category.d.mts.map +1 -0
- package/core/platform/custom-objects/category.d.ts +125 -0
- package/core/platform/custom-objects/category.d.ts.map +1 -0
- package/core/platform/custom-objects/category.js +188 -0
- package/core/platform/custom-objects/category.js.map +1 -0
- package/core/platform/custom-objects/category.mjs +178 -0
- package/core/platform/custom-objects/category.mjs.map +1 -0
- package/core/platform/custom-objects/definition.d.mts +147 -0
- package/core/platform/custom-objects/definition.d.mts.map +1 -0
- package/core/platform/custom-objects/definition.d.ts +147 -0
- package/core/platform/custom-objects/definition.d.ts.map +1 -0
- package/core/platform/custom-objects/definition.js +200 -0
- package/core/platform/custom-objects/definition.js.map +1 -0
- package/core/platform/custom-objects/definition.mjs +190 -0
- package/core/platform/custom-objects/definition.mjs.map +1 -0
- package/core/platform/custom-objects/fields.d.mts +302 -0
- package/core/platform/custom-objects/fields.d.mts.map +1 -0
- package/core/platform/custom-objects/fields.d.ts +302 -0
- package/core/platform/custom-objects/fields.d.ts.map +1 -0
- package/core/platform/custom-objects/fields.js +369 -0
- package/core/platform/custom-objects/fields.js.map +1 -0
- package/core/platform/custom-objects/fields.mjs +347 -0
- package/core/platform/custom-objects/fields.mjs.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.mts +42 -0
- package/core/platform/custom-objects/function-runtime.d.mts.map +1 -0
- package/core/platform/custom-objects/function-runtime.d.ts +42 -0
- package/core/platform/custom-objects/function-runtime.d.ts.map +1 -0
- package/core/platform/custom-objects/function-runtime.js +38 -0
- package/core/platform/custom-objects/function-runtime.js.map +1 -0
- package/core/platform/custom-objects/function-runtime.mjs +35 -0
- package/core/platform/custom-objects/function-runtime.mjs.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.mts +83 -0
- package/core/platform/custom-objects/lifecycle.d.mts.map +1 -0
- package/core/platform/custom-objects/lifecycle.d.ts +83 -0
- package/core/platform/custom-objects/lifecycle.d.ts.map +1 -0
- package/core/platform/custom-objects/lifecycle.js +372 -0
- package/core/platform/custom-objects/lifecycle.js.map +1 -0
- package/core/platform/custom-objects/lifecycle.mjs +367 -0
- package/core/platform/custom-objects/lifecycle.mjs.map +1 -0
- package/core/platform/custom-objects/manager.d.mts +354 -0
- package/core/platform/custom-objects/manager.d.mts.map +1 -0
- package/core/platform/custom-objects/manager.d.ts +354 -0
- package/core/platform/custom-objects/manager.d.ts.map +1 -0
- package/core/platform/custom-objects/manager.js +646 -0
- package/core/platform/custom-objects/manager.js.map +1 -0
- package/core/platform/custom-objects/manager.mjs +637 -0
- package/core/platform/custom-objects/manager.mjs.map +1 -0
- package/core/platform/custom-objects/provisioning.d.mts +138 -0
- package/core/platform/custom-objects/provisioning.d.mts.map +1 -0
- package/core/platform/custom-objects/provisioning.d.ts +138 -0
- package/core/platform/custom-objects/provisioning.d.ts.map +1 -0
- package/core/platform/custom-objects/provisioning.js +455 -0
- package/core/platform/custom-objects/provisioning.js.map +1 -0
- package/core/platform/custom-objects/provisioning.mjs +447 -0
- package/core/platform/custom-objects/provisioning.mjs.map +1 -0
- package/core/platform/custom-objects/rql.d.mts +122 -0
- package/core/platform/custom-objects/rql.d.mts.map +1 -0
- package/core/platform/custom-objects/rql.d.ts +122 -0
- package/core/platform/custom-objects/rql.d.ts.map +1 -0
- package/core/platform/custom-objects/rql.js +225 -0
- package/core/platform/custom-objects/rql.js.map +1 -0
- package/core/platform/custom-objects/rql.mjs +222 -0
- package/core/platform/custom-objects/rql.mjs.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.mts +203 -0
- package/core/platform/custom-objects/schema-manager.d.mts.map +1 -0
- package/core/platform/custom-objects/schema-manager.d.ts +203 -0
- package/core/platform/custom-objects/schema-manager.d.ts.map +1 -0
- package/core/platform/custom-objects/schema-manager.js +256 -0
- package/core/platform/custom-objects/schema-manager.js.map +1 -0
- package/core/platform/custom-objects/schema-manager.mjs +249 -0
- package/core/platform/custom-objects/schema-manager.mjs.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.mts +157 -0
- package/core/platform/custom-objects/typed-rql.d.mts.map +1 -0
- package/core/platform/custom-objects/typed-rql.d.ts +157 -0
- package/core/platform/custom-objects/typed-rql.d.ts.map +1 -0
- package/core/platform/custom-objects/typed-rql.js +583 -0
- package/core/platform/custom-objects/typed-rql.js.map +1 -0
- package/core/platform/custom-objects/typed-rql.mjs +580 -0
- package/core/platform/custom-objects/typed-rql.mjs.map +1 -0
- package/core/platform/custom-objects/types.d.mts +549 -0
- package/core/platform/custom-objects/types.d.mts.map +1 -0
- package/core/platform/custom-objects/types.d.ts +549 -0
- package/core/platform/custom-objects/types.d.ts.map +1 -0
- package/core/platform/custom-objects/types.js +20 -0
- package/core/platform/custom-objects/types.js.map +1 -0
- package/core/platform/custom-objects/types.mjs +17 -0
- package/core/platform/custom-objects/types.mjs.map +1 -0
- package/core/platform/custom-objects/validation.d.mts +97 -0
- package/core/platform/custom-objects/validation.d.mts.map +1 -0
- package/core/platform/custom-objects/validation.d.ts +97 -0
- package/core/platform/custom-objects/validation.d.ts.map +1 -0
- package/core/platform/custom-objects/validation.js +477 -0
- package/core/platform/custom-objects/validation.js.map +1 -0
- package/core/platform/custom-objects/validation.mjs +465 -0
- package/core/platform/custom-objects/validation.mjs.map +1 -0
- package/core/platform/custom-objects.d.mts +67 -0
- package/core/platform/custom-objects.d.mts.map +1 -0
- package/core/platform/custom-objects.d.ts +67 -0
- package/core/platform/custom-objects.d.ts.map +1 -0
- package/core/platform/custom-objects.js +118 -0
- package/core/platform/custom-objects.js.map +1 -0
- package/core/platform/custom-objects.mjs +45 -0
- package/core/platform/custom-objects.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/action.d.mts +58 -0
- package/core/platform/manifest/custom-objects/action.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/action.d.ts +58 -0
- package/core/platform/manifest/custom-objects/action.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/action.js +44 -0
- package/core/platform/manifest/custom-objects/action.js.map +1 -0
- package/core/platform/manifest/custom-objects/action.mjs +40 -0
- package/core/platform/manifest/custom-objects/action.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/conditions.d.mts +240 -0
- package/core/platform/manifest/custom-objects/conditions.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/conditions.d.ts +240 -0
- package/core/platform/manifest/custom-objects/conditions.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/conditions.js +326 -0
- package/core/platform/manifest/custom-objects/conditions.js.map +1 -0
- package/core/platform/manifest/custom-objects/conditions.mjs +321 -0
- package/core/platform/manifest/custom-objects/conditions.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/existing.d.mts +87 -0
- package/core/platform/manifest/custom-objects/existing.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/existing.d.ts +87 -0
- package/core/platform/manifest/custom-objects/existing.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/existing.js +113 -0
- package/core/platform/manifest/custom-objects/existing.js.map +1 -0
- package/core/platform/manifest/custom-objects/existing.mjs +109 -0
- package/core/platform/manifest/custom-objects/existing.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/field-resolution.d.mts +48 -0
- package/core/platform/manifest/custom-objects/field-resolution.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/field-resolution.d.ts +48 -0
- package/core/platform/manifest/custom-objects/field-resolution.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/field-resolution.js +61 -0
- package/core/platform/manifest/custom-objects/field-resolution.js.map +1 -0
- package/core/platform/manifest/custom-objects/field-resolution.mjs +58 -0
- package/core/platform/manifest/custom-objects/field-resolution.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/function-file.d.mts +87 -0
- package/core/platform/manifest/custom-objects/function-file.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/function-file.d.ts +87 -0
- package/core/platform/manifest/custom-objects/function-file.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/function-file.js +76 -0
- package/core/platform/manifest/custom-objects/function-file.js.map +1 -0
- package/core/platform/manifest/custom-objects/function-file.mjs +69 -0
- package/core/platform/manifest/custom-objects/function-file.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/list-view.d.mts +65 -0
- package/core/platform/manifest/custom-objects/list-view.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/list-view.d.ts +65 -0
- package/core/platform/manifest/custom-objects/list-view.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/list-view.js +33 -0
- package/core/platform/manifest/custom-objects/list-view.js.map +1 -0
- package/core/platform/manifest/custom-objects/list-view.mjs +30 -0
- package/core/platform/manifest/custom-objects/list-view.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/object-list-page.d.mts +43 -0
- package/core/platform/manifest/custom-objects/object-list-page.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/object-list-page.d.ts +43 -0
- package/core/platform/manifest/custom-objects/object-list-page.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/object-list-page.js +54 -0
- package/core/platform/manifest/custom-objects/object-list-page.js.map +1 -0
- package/core/platform/manifest/custom-objects/object-list-page.mjs +50 -0
- package/core/platform/manifest/custom-objects/object-list-page.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/page-layout.d.mts +142 -0
- package/core/platform/manifest/custom-objects/page-layout.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/page-layout.d.ts +142 -0
- package/core/platform/manifest/custom-objects/page-layout.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/page-layout.js +184 -0
- package/core/platform/manifest/custom-objects/page-layout.js.map +1 -0
- package/core/platform/manifest/custom-objects/page-layout.mjs +180 -0
- package/core/platform/manifest/custom-objects/page-layout.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/register.d.mts +87 -0
- package/core/platform/manifest/custom-objects/register.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/register.d.ts +87 -0
- package/core/platform/manifest/custom-objects/register.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/register.js +395 -0
- package/core/platform/manifest/custom-objects/register.js.map +1 -0
- package/core/platform/manifest/custom-objects/register.mjs +391 -0
- package/core/platform/manifest/custom-objects/register.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/rule.d.mts +113 -0
- package/core/platform/manifest/custom-objects/rule.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/rule.d.ts +113 -0
- package/core/platform/manifest/custom-objects/rule.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/rule.js +49 -0
- package/core/platform/manifest/custom-objects/rule.js.map +1 -0
- package/core/platform/manifest/custom-objects/rule.mjs +45 -0
- package/core/platform/manifest/custom-objects/rule.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/sdui-page.d.mts +214 -0
- package/core/platform/manifest/custom-objects/sdui-page.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/sdui-page.d.ts +214 -0
- package/core/platform/manifest/custom-objects/sdui-page.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/sdui-page.js +194 -0
- package/core/platform/manifest/custom-objects/sdui-page.js.map +1 -0
- package/core/platform/manifest/custom-objects/sdui-page.mjs +182 -0
- package/core/platform/manifest/custom-objects/sdui-page.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/typed-condition.d.mts +28 -0
- package/core/platform/manifest/custom-objects/typed-condition.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/typed-condition.d.ts +28 -0
- package/core/platform/manifest/custom-objects/typed-condition.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/typed-condition.js +434 -0
- package/core/platform/manifest/custom-objects/typed-condition.js.map +1 -0
- package/core/platform/manifest/custom-objects/typed-condition.mjs +431 -0
- package/core/platform/manifest/custom-objects/typed-condition.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/types.d.mts +29 -0
- package/core/platform/manifest/custom-objects/types.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/types.d.ts +29 -0
- package/core/platform/manifest/custom-objects/types.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/types.js +3 -0
- package/core/platform/manifest/custom-objects/types.js.map +1 -0
- package/core/platform/manifest/custom-objects/types.mjs +2 -0
- package/core/platform/manifest/custom-objects/types.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/validation.d.mts +44 -0
- package/core/platform/manifest/custom-objects/validation.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/validation.d.ts +44 -0
- package/core/platform/manifest/custom-objects/validation.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/validation.js +30 -0
- package/core/platform/manifest/custom-objects/validation.js.map +1 -0
- package/core/platform/manifest/custom-objects/validation.mjs +27 -0
- package/core/platform/manifest/custom-objects/validation.mjs.map +1 -0
- package/core/platform/manifest/custom-objects/workflow.d.mts +47 -0
- package/core/platform/manifest/custom-objects/workflow.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects/workflow.d.ts +47 -0
- package/core/platform/manifest/custom-objects/workflow.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects/workflow.js +38 -0
- package/core/platform/manifest/custom-objects/workflow.js.map +1 -0
- package/core/platform/manifest/custom-objects/workflow.mjs +34 -0
- package/core/platform/manifest/custom-objects/workflow.mjs.map +1 -0
- package/core/platform/manifest/custom-objects.d.mts +85 -0
- package/core/platform/manifest/custom-objects.d.mts.map +1 -0
- package/core/platform/manifest/custom-objects.d.ts +85 -0
- package/core/platform/manifest/custom-objects.d.ts.map +1 -0
- package/core/platform/manifest/custom-objects.js +84 -0
- package/core/platform/manifest/custom-objects.js.map +1 -0
- package/core/platform/manifest/custom-objects.mjs +55 -0
- package/core/platform/manifest/custom-objects.mjs.map +1 -0
- package/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +26 -44
- package/examples/manifest/custom-object-creation-workflow/functions/intake-request-created.ts +20 -0
- package/examples/manifest/custom-object-creation-workflow/schema.ts +29 -0
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +142 -470
- package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +13 -23
- package/examples/manifest/dental-practice-management/functions/complete-visit.ts +32 -55
- package/examples/manifest/dental-practice-management/functions/operatory-list.ts +13 -23
- package/examples/manifest/dental-practice-management/functions/patient-list.ts +13 -23
- package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +13 -23
- package/examples/manifest/dental-practice-management/schema.ts +298 -0
- package/examples/manifest/existing-manifest-mutations/existing-manifest-mutations.ts +68 -23
- package/examples/manifest/field-service-dispatch/field-service-dispatch.ts +102 -375
- package/examples/manifest/field-service-dispatch/schema.ts +248 -0
- package/examples/manifest/grant-program-management/grant-program-management.ts +125 -419
- package/examples/manifest/grant-program-management/schema.ts +269 -0
- package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +13 -23
- package/examples/manifest/gym-membership-management/functions/member-list.ts +13 -23
- package/examples/manifest/gym-membership-management/functions/today-schedule.ts +13 -23
- package/examples/manifest/gym-membership-management/functions/trainer-list.ts +13 -23
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +92 -442
- package/examples/manifest/gym-membership-management/schema.ts +266 -0
- package/examples/manifest/procurement-approval-hub/functions/route-purchase-request.ts +20 -0
- package/examples/manifest/procurement-approval-hub/procurement-approval-hub.ts +122 -408
- package/examples/manifest/procurement-approval-hub/schema.ts +256 -0
- package/examples/manifest/simple-todo-app/functions/mark-done.ts +16 -12
- package/examples/manifest/simple-todo-app/functions/todo-list.ts +13 -23
- package/examples/manifest/simple-todo-app/schema.ts +60 -0
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +40 -109
- package/examples/manifest/todo-app-without-object-list-view/functions/todo-page.ts +166 -193
- package/examples/manifest/todo-app-without-object-list-view/schema.ts +28 -0
- package/examples/manifest/todo-app-without-object-list-view/todo-app-without-object-list-view.ts +24 -47
- package/package.json +7 -13
- package/resources/custom-objects/custom-objects.d.mts +7 -0
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +7 -0
- package/resources/custom-objects/custom-objects.d.ts.map +1 -1
- package/resources/custom-objects/custom-objects.js.map +1 -1
- package/resources/custom-objects/custom-objects.mjs.map +1 -1
- package/resources/custom-objects/fields.d.mts +170 -15
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +170 -15
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/leave-program-evaluations.d.mts +510 -3
- package/resources/leave-program-evaluations.d.mts.map +1 -1
- package/resources/leave-program-evaluations.d.ts +510 -3
- package/resources/leave-program-evaluations.d.ts.map +1 -1
- package/resources/levels.d.mts +64 -2
- package/resources/levels.d.mts.map +1 -1
- package/resources/levels.d.ts +64 -2
- package/resources/levels.d.ts.map +1 -1
- package/resources/levels.js +22 -0
- package/resources/levels.js.map +1 -1
- package/resources/levels.mjs +22 -0
- package/resources/levels.mjs.map +1 -1
- package/resources/tracks.d.mts +45 -1
- package/resources/tracks.d.mts.map +1 -1
- package/resources/tracks.d.ts +45 -1
- package/resources/tracks.d.ts.map +1 -1
- package/resources/tracks.js +22 -0
- package/resources/tracks.js.map +1 -1
- package/resources/tracks.mjs +22 -0
- package/resources/tracks.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/core/platform/README.md +20 -0
- package/src/core/platform/custom-objects/category.ts +294 -0
- package/src/core/platform/custom-objects/definition.ts +373 -0
- package/src/core/platform/custom-objects/fields.ts +653 -0
- package/src/core/platform/custom-objects/function-runtime.ts +76 -0
- package/src/core/platform/custom-objects/lifecycle.ts +557 -0
- package/src/core/platform/custom-objects/manager.ts +959 -0
- package/src/core/platform/custom-objects/provisioning.ts +672 -0
- package/src/core/platform/custom-objects/rql.ts +375 -0
- package/src/core/platform/custom-objects/schema-manager.ts +351 -0
- package/src/core/platform/custom-objects/typed-rql.ts +1273 -0
- package/src/core/platform/custom-objects/types.ts +753 -0
- package/src/core/platform/custom-objects/validation.ts +573 -0
- package/src/core/platform/custom-objects.ts +269 -0
- package/src/core/platform/manifest/README.md +26 -0
- package/src/core/platform/manifest/custom-objects/action.ts +87 -0
- package/src/core/platform/manifest/custom-objects/conditions.ts +762 -0
- package/src/core/platform/manifest/custom-objects/existing.ts +221 -0
- package/src/core/platform/manifest/custom-objects/field-resolution.ts +116 -0
- package/src/core/platform/manifest/custom-objects/function-file.ts +149 -0
- package/src/core/platform/manifest/custom-objects/list-view.ts +95 -0
- package/src/core/platform/manifest/custom-objects/object-list-page.ts +87 -0
- package/src/core/platform/manifest/custom-objects/page-layout.ts +380 -0
- package/src/core/platform/manifest/custom-objects/register.ts +555 -0
- package/src/core/platform/manifest/custom-objects/rule.ts +192 -0
- package/src/core/platform/manifest/custom-objects/sdui-page.ts +515 -0
- package/src/core/platform/manifest/custom-objects/typed-condition.ts +617 -0
- package/src/core/platform/manifest/custom-objects/types.ts +92 -0
- package/src/core/platform/manifest/custom-objects/validation.ts +70 -0
- package/src/core/platform/manifest/custom-objects/workflow.ts +71 -0
- package/src/core/platform/manifest/custom-objects.ts +203 -0
- package/src/pebble-sdui-web-custom-apps-shim.d.ts +3 -0
- package/src/resources/custom-objects/custom-objects.ts +8 -0
- package/src/resources/custom-objects/fields.ts +239 -14
- package/src/resources/index.ts +4 -0
- package/src/resources/leave-program-evaluations.ts +610 -3
- package/src/resources/levels.ts +93 -1
- package/src/resources/tracks.ts +70 -0
- package/src/tsconfig.json +1 -1
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,oCAAiC;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,sCAAmC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,8BAA2B;AAElE,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAgB;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAqB;AAG3D;;;;GAIG;AACH,KAAK,wBAAwB,CAAC,WAAW,SAAS,yBAAyB,IAAI,IAAI,CACjF,eAAe,EACf,YAAY,GAAG,UAAU,GAAG,OAAO,CACpC,GAAG;IACF,iFAAiF;IACjF,QAAQ,CAAC,WAAW,EAAE,sBAAsB,CAAC,WAAW,CAAC,CAAC;CAC3D,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,CAAC,WAAW,SAAS,yBAAyB,IAC1E,CAAC,wBAAwB,CAAC,WAAW,CAAC,GAAG;IACvC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;CACtD,CAAC,GACF,CAAC,wBAAwB,CAAC,WAAW,CAAC,GAAG;IACvC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,kEAAkE;IAClE,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;CACxB,CAAC,CAAC;AAEP;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,SAAS,yBAAyB,EACjF,YAAY,EAAE,oBAAoB,CAAC,WAAW,CAAC,EAC/C,KAAK,EAAE,oBAAoB,CAAC,WAAW,CAAC,GACvC,UAAU,CAeZ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineTypedValidation = defineTypedValidation;
|
|
4
|
+
const manifest_1 = require("../../../../lib/manifest.js");
|
|
5
|
+
const field_resolution_1 = require("./field-resolution.js");
|
|
6
|
+
const conditions_1 = require("./conditions.js");
|
|
7
|
+
/**
|
|
8
|
+
* Defines a validation rule using typed field names and manifest-condition fragments.
|
|
9
|
+
*
|
|
10
|
+
* @param registration - Manifest registration produced from the typed object definition.
|
|
11
|
+
* @param props - Typed validation properties.
|
|
12
|
+
* @returns Low-level validation manifest instance.
|
|
13
|
+
* @throws {Error} When `level` is `'FIELD'` but no `field` is provided, or when `field` is provided for a record-level validation.
|
|
14
|
+
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
15
|
+
*/
|
|
16
|
+
function defineTypedValidation(registration, props) {
|
|
17
|
+
const { whenInvalid, field, ...rest } = props;
|
|
18
|
+
if (rest.level === 'FIELD' && field == null) {
|
|
19
|
+
throw new Error('defineTypedValidation(...): field is required when level is FIELD.');
|
|
20
|
+
}
|
|
21
|
+
if (rest.level === 'RECORD' && field != null) {
|
|
22
|
+
throw new Error('defineTypedValidation(...): field must be omitted when level is RECORD.');
|
|
23
|
+
}
|
|
24
|
+
return new manifest_1.Validation(registration.object, {
|
|
25
|
+
...rest,
|
|
26
|
+
rqlFormula: (0, conditions_1.resolveManifestConditionInput)(registration, whenInvalid),
|
|
27
|
+
...(field != null ? { fieldRef: (0, field_resolution_1.resolveTypedManifestField)(registration, field) } : {}),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/validation.ts"],"names":[],"mappings":";;AAmDA,sDAkBC;AArED,0DAA4E;AAG5E,4DAA+D;AAG/D,gDAA6D;AAoC7D;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,YAA+C,EAC/C,KAAwC;IAExC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;IACxF,CAAC;IACD,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;IAC7F,CAAC;IAED,OAAO,IAAI,qBAAU,CAAC,YAAY,CAAC,MAAM,EAAE;QACzC,GAAG,IAAI;QACP,UAAU,EAAE,IAAA,0CAA6B,EAAC,YAAY,EAAE,WAAW,CAAC;QACpE,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAA,4CAAyB,EAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACvF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Validation } from "../../../../lib/manifest.mjs";
|
|
2
|
+
import { resolveTypedManifestField } from "./field-resolution.mjs";
|
|
3
|
+
import { resolveManifestConditionInput } from "./conditions.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Defines a validation rule using typed field names and manifest-condition fragments.
|
|
6
|
+
*
|
|
7
|
+
* @param registration - Manifest registration produced from the typed object definition.
|
|
8
|
+
* @param props - Typed validation properties.
|
|
9
|
+
* @returns Low-level validation manifest instance.
|
|
10
|
+
* @throws {Error} When `level` is `'FIELD'` but no `field` is provided, or when `field` is provided for a record-level validation.
|
|
11
|
+
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
12
|
+
*/
|
|
13
|
+
export function defineTypedValidation(registration, props) {
|
|
14
|
+
const { whenInvalid, field, ...rest } = props;
|
|
15
|
+
if (rest.level === 'FIELD' && field == null) {
|
|
16
|
+
throw new Error('defineTypedValidation(...): field is required when level is FIELD.');
|
|
17
|
+
}
|
|
18
|
+
if (rest.level === 'RECORD' && field != null) {
|
|
19
|
+
throw new Error('defineTypedValidation(...): field must be omitted when level is RECORD.');
|
|
20
|
+
}
|
|
21
|
+
return new Validation(registration.object, {
|
|
22
|
+
...rest,
|
|
23
|
+
rqlFormula: resolveManifestConditionInput(registration, whenInvalid),
|
|
24
|
+
...(field != null ? { fieldRef: resolveTypedManifestField(registration, field) } : {}),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=validation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.mjs","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwB,qCAAiC;AAG5E,OAAO,EAAE,yBAAyB,EAAE,+BAA2B;AAG/D,OAAO,EAAE,6BAA6B,EAAE,yBAAqB;AAoC7D;;;;;;;;GAQG;AACH,MAAM,UAAU,qBAAqB,CACnC,YAA+C,EAC/C,KAAwC;IAExC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE9C,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAC;IACxF,CAAC;IACD,IAAI,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;IAC7F,CAAC;IAED,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,EAAE;QACzC,GAAG,IAAI;QACP,UAAU,EAAE,6BAA6B,CAAC,YAAY,EAAE,WAAW,CAAC;QACpE,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,yBAAyB,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACvF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Workflow, type WorkflowProps } from "../../../../lib/manifest.mjs";
|
|
2
|
+
import type { ManifestScope } from "../../../../lib/manifest/manifest-builder.mjs";
|
|
3
|
+
import type { WorkflowTrigger } from "../../../../lib/manifest/workflow.mjs";
|
|
4
|
+
import type { AnyCustomObjectDefinition } from "../../custom-objects/types.mjs";
|
|
5
|
+
import type { TypedCustomObjectLifecycleTriggerBuilder } from "./conditions.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Workflow-trigger inputs accepted by {@link defineTypedWorkflow}.
|
|
8
|
+
*
|
|
9
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
10
|
+
*/
|
|
11
|
+
export type TypedWorkflowTriggerInput<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> = WorkflowTrigger | TypedCustomObjectLifecycleTriggerBuilder<TDefinition, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Initialization properties for {@link defineTypedWorkflow}.
|
|
14
|
+
*
|
|
15
|
+
* The helper keeps the low-level workflow manifest class intact while allowing
|
|
16
|
+
* typed custom-object lifecycle builders to flow directly into the final
|
|
17
|
+
* workflow authoring step.
|
|
18
|
+
*
|
|
19
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
20
|
+
*/
|
|
21
|
+
export interface TypedWorkflowProps<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> extends Omit<WorkflowProps, 'trigger'> {
|
|
22
|
+
/** Workflow trigger authored either as a low-level trigger object or a typed lifecycle builder. */
|
|
23
|
+
readonly trigger: TypedWorkflowTriggerInput<TDefinition>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Resolves a typed workflow-trigger input into the low-level manifest trigger shape.
|
|
27
|
+
*
|
|
28
|
+
* @param trigger - Workflow trigger input to resolve.
|
|
29
|
+
* @returns Low-level workflow trigger consumed by {@link Workflow}.
|
|
30
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveTypedWorkflowTrigger<TDefinition extends AnyCustomObjectDefinition>(trigger: TypedWorkflowTriggerInput<TDefinition>): WorkflowTrigger;
|
|
33
|
+
/**
|
|
34
|
+
* Defines a workflow while accepting typed custom-object lifecycle trigger builders.
|
|
35
|
+
*
|
|
36
|
+
* Prefer {@link defineTypedWorkflowFromFunctionFile} for the common colocated-
|
|
37
|
+
* handler path. Use this lower-level explicit form when the backing function is
|
|
38
|
+
* already defined separately or when the caller wants to pass a fully built
|
|
39
|
+
* low-level trigger object.
|
|
40
|
+
*
|
|
41
|
+
* @param scope - Manifest scope that should own the workflow.
|
|
42
|
+
* @param props - Workflow properties with a typed or low-level trigger.
|
|
43
|
+
* @returns Low-level workflow manifest instance.
|
|
44
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
45
|
+
*/
|
|
46
|
+
export declare function defineTypedWorkflow<TDefinition extends AnyCustomObjectDefinition>(scope: ManifestScope, props: TypedWorkflowProps<TDefinition>): Workflow;
|
|
47
|
+
//# sourceMappingURL=workflow.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.mts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,qCAAiC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,sDAAkD;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,8CAA0C;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,uCAAmC;AAC5E,OAAO,KAAK,EAAE,wCAAwC,EAAE,yBAAqB;AAE7E;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,CACnC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB,IACvE,eAAe,GAAG,wCAAwC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAEjF;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB,CAAC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB,CAC3G,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACtC,mGAAmG;IACnG,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;CAC1D;AAQD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,SAAS,yBAAyB,EACvF,OAAO,EAAE,yBAAyB,CAAC,WAAW,CAAC,GAC9C,eAAe,CAEjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,SAAS,yBAAyB,EAC/E,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,GACrC,QAAQ,CAKV"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Workflow, type WorkflowProps } from "../../../../lib/manifest.js";
|
|
2
|
+
import type { ManifestScope } from "../../../../lib/manifest/manifest-builder.js";
|
|
3
|
+
import type { WorkflowTrigger } from "../../../../lib/manifest/workflow.js";
|
|
4
|
+
import type { AnyCustomObjectDefinition } from "../../custom-objects/types.js";
|
|
5
|
+
import type { TypedCustomObjectLifecycleTriggerBuilder } from "./conditions.js";
|
|
6
|
+
/**
|
|
7
|
+
* Workflow-trigger inputs accepted by {@link defineTypedWorkflow}.
|
|
8
|
+
*
|
|
9
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
10
|
+
*/
|
|
11
|
+
export type TypedWorkflowTriggerInput<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> = WorkflowTrigger | TypedCustomObjectLifecycleTriggerBuilder<TDefinition, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Initialization properties for {@link defineTypedWorkflow}.
|
|
14
|
+
*
|
|
15
|
+
* The helper keeps the low-level workflow manifest class intact while allowing
|
|
16
|
+
* typed custom-object lifecycle builders to flow directly into the final
|
|
17
|
+
* workflow authoring step.
|
|
18
|
+
*
|
|
19
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
20
|
+
*/
|
|
21
|
+
export interface TypedWorkflowProps<TDefinition extends AnyCustomObjectDefinition = AnyCustomObjectDefinition> extends Omit<WorkflowProps, 'trigger'> {
|
|
22
|
+
/** Workflow trigger authored either as a low-level trigger object or a typed lifecycle builder. */
|
|
23
|
+
readonly trigger: TypedWorkflowTriggerInput<TDefinition>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Resolves a typed workflow-trigger input into the low-level manifest trigger shape.
|
|
27
|
+
*
|
|
28
|
+
* @param trigger - Workflow trigger input to resolve.
|
|
29
|
+
* @returns Low-level workflow trigger consumed by {@link Workflow}.
|
|
30
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveTypedWorkflowTrigger<TDefinition extends AnyCustomObjectDefinition>(trigger: TypedWorkflowTriggerInput<TDefinition>): WorkflowTrigger;
|
|
33
|
+
/**
|
|
34
|
+
* Defines a workflow while accepting typed custom-object lifecycle trigger builders.
|
|
35
|
+
*
|
|
36
|
+
* Prefer {@link defineTypedWorkflowFromFunctionFile} for the common colocated-
|
|
37
|
+
* handler path. Use this lower-level explicit form when the backing function is
|
|
38
|
+
* already defined separately or when the caller wants to pass a fully built
|
|
39
|
+
* low-level trigger object.
|
|
40
|
+
*
|
|
41
|
+
* @param scope - Manifest scope that should own the workflow.
|
|
42
|
+
* @param props - Workflow properties with a typed or low-level trigger.
|
|
43
|
+
* @returns Low-level workflow manifest instance.
|
|
44
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
45
|
+
*/
|
|
46
|
+
export declare function defineTypedWorkflow<TDefinition extends AnyCustomObjectDefinition>(scope: ManifestScope, props: TypedWorkflowProps<TDefinition>): Workflow;
|
|
47
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,oCAAiC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,qDAAkD;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,6CAA0C;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,sCAAmC;AAC5E,OAAO,KAAK,EAAE,wCAAwC,EAAE,wBAAqB;AAE7E;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,CACnC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB,IACvE,eAAe,GAAG,wCAAwC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;AAEjF;;;;;;;;GAQG;AACH,MAAM,WAAW,kBAAkB,CAAC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB,CAC3G,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IACtC,mGAAmG;IACnG,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;CAC1D;AAQD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,WAAW,SAAS,yBAAyB,EACvF,OAAO,EAAE,yBAAyB,CAAC,WAAW,CAAC,GAC9C,eAAe,CAEjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,SAAS,yBAAyB,EAC/E,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,kBAAkB,CAAC,WAAW,CAAC,GACrC,QAAQ,CAKV"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveTypedWorkflowTrigger = resolveTypedWorkflowTrigger;
|
|
4
|
+
exports.defineTypedWorkflow = defineTypedWorkflow;
|
|
5
|
+
const manifest_1 = require("../../../../lib/manifest.js");
|
|
6
|
+
function isTypedLifecycleTriggerBuilder(value) {
|
|
7
|
+
return typeof value === 'object' && value != null && 'build' in value && typeof value.build === 'function';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolves a typed workflow-trigger input into the low-level manifest trigger shape.
|
|
11
|
+
*
|
|
12
|
+
* @param trigger - Workflow trigger input to resolve.
|
|
13
|
+
* @returns Low-level workflow trigger consumed by {@link Workflow}.
|
|
14
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
15
|
+
*/
|
|
16
|
+
function resolveTypedWorkflowTrigger(trigger) {
|
|
17
|
+
return isTypedLifecycleTriggerBuilder(trigger) ? trigger.build() : trigger;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Defines a workflow while accepting typed custom-object lifecycle trigger builders.
|
|
21
|
+
*
|
|
22
|
+
* Prefer {@link defineTypedWorkflowFromFunctionFile} for the common colocated-
|
|
23
|
+
* handler path. Use this lower-level explicit form when the backing function is
|
|
24
|
+
* already defined separately or when the caller wants to pass a fully built
|
|
25
|
+
* low-level trigger object.
|
|
26
|
+
*
|
|
27
|
+
* @param scope - Manifest scope that should own the workflow.
|
|
28
|
+
* @param props - Workflow properties with a typed or low-level trigger.
|
|
29
|
+
* @returns Low-level workflow manifest instance.
|
|
30
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
31
|
+
*/
|
|
32
|
+
function defineTypedWorkflow(scope, props) {
|
|
33
|
+
return new manifest_1.Workflow(scope, {
|
|
34
|
+
...props,
|
|
35
|
+
trigger: resolveTypedWorkflowTrigger(props.trigger),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/workflow.ts"],"names":[],"mappings":";;AA2CA,kEAIC;AAeD,kDAQC;AAtED,0DAAwE;AA8BxE,SAAS,8BAA8B,CACrC,KAA6C;IAE7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU,CAAC;AAC7G,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,2BAA2B,CACzC,OAA+C;IAE/C,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,mBAAmB,CACjC,KAAoB,EACpB,KAAsC;IAEtC,OAAO,IAAI,mBAAQ,CAAC,KAAK,EAAE;QACzB,GAAG,KAAK;QACR,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,OAAO,CAAC;KACpD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Workflow } from "../../../../lib/manifest.mjs";
|
|
2
|
+
function isTypedLifecycleTriggerBuilder(value) {
|
|
3
|
+
return typeof value === 'object' && value != null && 'build' in value && typeof value.build === 'function';
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Resolves a typed workflow-trigger input into the low-level manifest trigger shape.
|
|
7
|
+
*
|
|
8
|
+
* @param trigger - Workflow trigger input to resolve.
|
|
9
|
+
* @returns Low-level workflow trigger consumed by {@link Workflow}.
|
|
10
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
11
|
+
*/
|
|
12
|
+
export function resolveTypedWorkflowTrigger(trigger) {
|
|
13
|
+
return isTypedLifecycleTriggerBuilder(trigger) ? trigger.build() : trigger;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Defines a workflow while accepting typed custom-object lifecycle trigger builders.
|
|
17
|
+
*
|
|
18
|
+
* Prefer {@link defineTypedWorkflowFromFunctionFile} for the common colocated-
|
|
19
|
+
* handler path. Use this lower-level explicit form when the backing function is
|
|
20
|
+
* already defined separately or when the caller wants to pass a fully built
|
|
21
|
+
* low-level trigger object.
|
|
22
|
+
*
|
|
23
|
+
* @param scope - Manifest scope that should own the workflow.
|
|
24
|
+
* @param props - Workflow properties with a typed or low-level trigger.
|
|
25
|
+
* @returns Low-level workflow manifest instance.
|
|
26
|
+
* @typeParam TDefinition - Typed custom-object definition carried by lifecycle-trigger builders.
|
|
27
|
+
*/
|
|
28
|
+
export function defineTypedWorkflow(scope, props) {
|
|
29
|
+
return new Workflow(scope, {
|
|
30
|
+
...props,
|
|
31
|
+
trigger: resolveTypedWorkflowTrigger(props.trigger),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=workflow.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.mjs","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAsB,qCAAiC;AA8BxE,SAAS,8BAA8B,CACrC,KAA6C;IAE7C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU,CAAC;AAC7G,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAA+C;IAE/C,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAoB,EACpB,KAAsC;IAEtC,OAAO,IAAI,QAAQ,CAAC,KAAK,EAAE;QACzB,GAAG,KAAK;QACR,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,OAAO,CAAC;KACpD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public manifest-integration surface for typed custom objects.
|
|
3
|
+
*
|
|
4
|
+
* Import this module when you want to materialize typed custom-object
|
|
5
|
+
* definitions into low-level manifest classes or use manifest-specific helpers
|
|
6
|
+
* such as typed list views and page layouts.
|
|
7
|
+
*
|
|
8
|
+
* Relationship to the rest of the SDK:
|
|
9
|
+
*
|
|
10
|
+
* ```text
|
|
11
|
+
* core/platform/custom-objects
|
|
12
|
+
* |
|
|
13
|
+
* v
|
|
14
|
+
* core/platform/manifest/custom-objects
|
|
15
|
+
* |
|
|
16
|
+
* v
|
|
17
|
+
* lib/manifest
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The implementation lives under `core/platform/manifest/custom-objects/`, but
|
|
21
|
+
* this file is the stable public entrypoint that consumers should import from:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
/** Manifest-registration result and field-class mapping types used by the typed manifest adapters. */
|
|
28
|
+
export type { ManifestFieldForDefinition, ManifestRegistration } from "./custom-objects/types.mjs";
|
|
29
|
+
/** Manifest-bridge options and tuple types used when materializing typed schemas. */
|
|
30
|
+
export type { ManifestRegistrationTuple, RegisterManifestCustomObjectOptions, RegisterManifestCustomObjectsOptions, } from "./custom-objects/register.mjs";
|
|
31
|
+
/** Bridges that convert typed schemas into the existing manifest class model. */
|
|
32
|
+
export { registerManifestCustomObject, registerManifestCustomObjects } from "./custom-objects/register.mjs";
|
|
33
|
+
/** Source-file loading props and result types for typed workflow/action wiring plus SDUI page wiring. */
|
|
34
|
+
export type { ManifestFunctionFileSource, ManifestFunctionFromFileProps, SduiPageFromFunctionFileProps, SduiPageFromFunctionFileResult, TypedWorkflowFromFunctionFileProps, TypedWorkflowFromFunctionFileResult, } from "./custom-objects/function-file.mjs";
|
|
35
|
+
/** Helpers that wire one colocated handler file into a typed workflow or SDUI page plus backing manifest function. */
|
|
36
|
+
export { defineSduiPageFromFunctionFile, defineTypedWorkflowFromFunctionFile, } from "./custom-objects/function-file.mjs";
|
|
37
|
+
/** Shared manifest field-name types used by typed list-view and page-layout helpers. */
|
|
38
|
+
export type { StandardManifestFieldName, TypedManifestFieldInput, TypedManifestFieldName, } from "./custom-objects/field-resolution.mjs";
|
|
39
|
+
/** Shared field resolver used by typed manifest helpers. */
|
|
40
|
+
export { resolveTypedManifestField } from "./custom-objects/field-resolution.mjs";
|
|
41
|
+
/** Typed manifest-condition fragments, field tokens, lifecycle builders, and helper inputs. */
|
|
42
|
+
export type { ManifestConditionCategory, ManifestConditionFieldCategory, ManifestConditionFieldScope, ManifestConditionFieldToken, ManifestConditionFragment, ManifestConditionFunctionToken, ManifestConditionHelpers, ManifestConditionInput, ManifestCustomObjectTarget, TypedCustomObjectLifecycle, TypedCustomObjectLifecycleTriggerBuilder, } from "./custom-objects/conditions.mjs";
|
|
43
|
+
/** Typed manifest-condition and custom-object lifecycle helper families. */
|
|
44
|
+
export { createManifestConditionHelpers, customObjectLifecycle } from "./custom-objects/conditions.mjs";
|
|
45
|
+
/** Parsed-string typed manifest-condition field-name types. */
|
|
46
|
+
export type { ParsedConditionFieldName, ParsedConditionStandardFieldName, } from "./custom-objects/typed-condition.mjs";
|
|
47
|
+
/** Parsed-string manifest-condition compiler for the typed custom-object lane. */
|
|
48
|
+
export { typedCondition } from "./custom-objects/typed-condition.mjs";
|
|
49
|
+
/** Typed list-view field names and props for manifest custom-object registrations. */
|
|
50
|
+
export type { StandardListViewFieldName, TypedListViewDefProps, TypedListViewFieldInput, TypedListViewFieldName, } from "./custom-objects/list-view.mjs";
|
|
51
|
+
/** Typed list-view helper with object-specific field-name IntelliSense. */
|
|
52
|
+
export { defineTypedListView } from "./custom-objects/list-view.mjs";
|
|
53
|
+
/** Typed page-layout field-array types for manifest custom-object registrations. */
|
|
54
|
+
export type { TypedBasicPageLayoutProps, TypedCustomObjectPageLayoutProps, TypedFieldsSection, TypedPageLayoutSection, TypedPageLayoutTab, TypedSectionField, TypedSectionFieldInput, TypedSystemSectionEdit, TypedSystemTabEdit, TypedTabEdits, TypedTabWithSections, } from "./custom-objects/page-layout.mjs";
|
|
55
|
+
/** Typed page-layout helpers with object-specific field-name IntelliSense for common field arrays and basic layouts. */
|
|
56
|
+
export { defineBasicTypedPageLayout, defineTypedPageLayout } from "./custom-objects/page-layout.mjs";
|
|
57
|
+
/** Typed validation helper properties. */
|
|
58
|
+
export type { TypedValidationProps } from "./custom-objects/validation.mjs";
|
|
59
|
+
/** Typed validation helper that accepts manifest-condition fragments and typed fields. */
|
|
60
|
+
export { defineTypedValidation } from "./custom-objects/validation.mjs";
|
|
61
|
+
/** Typed rule-action values, helpers, and rule properties. */
|
|
62
|
+
export type { TypedRuleAction, TypedRuleFieldSetter, TypedRuleFixedValue, TypedRuleHelpers, TypedRuleProps, } from "./custom-objects/rule.mjs";
|
|
63
|
+
/** Typed rule-action helpers and record-triggered rule helper. */
|
|
64
|
+
export { createTypedRuleHelpers, defineTypedRule } from "./custom-objects/rule.mjs";
|
|
65
|
+
/** Typed workflow helper properties and trigger inputs. */
|
|
66
|
+
export type { TypedWorkflowProps, TypedWorkflowTriggerInput } from "./custom-objects/workflow.mjs";
|
|
67
|
+
/** Typed workflow helper that accepts lifecycle-trigger builders. */
|
|
68
|
+
export { defineTypedWorkflow, resolveTypedWorkflowTrigger } from "./custom-objects/workflow.mjs";
|
|
69
|
+
/** Typed custom-object action helper props and file-wiring result types. */
|
|
70
|
+
export type { TypedCustomObjectActionFromFunctionFileProps, TypedCustomObjectActionFromFunctionFileResult, TypedCustomObjectActionProps, } from "./custom-objects/action.mjs";
|
|
71
|
+
/** Typed custom-object action helpers. Prefer the file-backed helper for the common one-action/one-handler path. */
|
|
72
|
+
export { defineTypedCustomObjectAction, defineTypedCustomObjectActionFromFunctionFile, } from "./custom-objects/action.mjs";
|
|
73
|
+
/** Standard input/output types for init-only custom-object object-list page functions. */
|
|
74
|
+
export type { TypedObjectListPageInput, TypedObjectListPageOutput } from "./custom-objects/object-list-page.mjs";
|
|
75
|
+
/** Helper that renders the standard ObjectListView-backed SDUI page-function response. */
|
|
76
|
+
export { handleTypedObjectListPageEvent } from "./custom-objects/object-list-page.mjs";
|
|
77
|
+
/** Shared output unions and payload shapes for stateful SDUI page functions. */
|
|
78
|
+
export type { TypedSduiMutationTriggerOptions, TypedSduiPageActionName, TypedSduiPageActionParams, TypedSduiPageErrorOutput, TypedSduiPageHandlerArgs, TypedSduiPageHandlerOptions, TypedSduiPageOutput, TypedSduiPageSpecOutput, TypedSduiStateAssignments, TypedSduiStatePath, TypedSduiStatePathForValue, TypedSduiStatePathValue, } from "./custom-objects/sdui-page.mjs";
|
|
79
|
+
/** Stateful SDUI action-dispatch helpers. Prefer `defineTypedSduiPageHandlerFor(...)` for the default authoring path and keep `defineTypedSduiPageHandler(...)` as the more explicit escape hatch. */
|
|
80
|
+
export { createTypedSduiMutationTrigger, defineTypedSduiPageHandler, defineTypedSduiPageHandlerFor, defineTypedSduiStateAssignments, resolveTypedSduiStatePath, } from "./custom-objects/sdui-page.mjs";
|
|
81
|
+
/** Existing-manifest rebinding option and result types for typed custom-object extensions. */
|
|
82
|
+
export type { BindExistingManifestCustomObjectOptions, BindExistingManifestCustomObjectsOptions, ExistingManifestRegistration, ExistingManifestRegistrationTuple, } from "./custom-objects/existing.mjs";
|
|
83
|
+
/** Existing-manifest rebinding helpers for the typed custom-object lane. */
|
|
84
|
+
export { bindExistingManifestCustomObject, bindExistingManifestCustomObjects, } from "./custom-objects/existing.mjs";
|
|
85
|
+
//# sourceMappingURL=custom-objects.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.d.mts","sourceRoot":"","sources":["../../../src/core/platform/manifest/custom-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,sGAAsG;AACtG,YAAY,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,mCAA+B;AAE/F,qFAAqF;AACrF,YAAY,EACV,yBAAyB,EACzB,mCAAmC,EACnC,oCAAoC,GACrC,sCAAkC;AAEnC,iFAAiF;AACjF,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,sCAAkC;AAExG,yGAAyG;AACzG,YAAY,EACV,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EAC9B,kCAAkC,EAClC,mCAAmC,GACpC,2CAAuC;AAExC,sHAAsH;AACtH,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,GACpC,2CAAuC;AAExC,wFAAwF;AACxF,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,GACvB,8CAA0C;AAE3C,4DAA4D;AAC5D,OAAO,EAAE,yBAAyB,EAAE,8CAA0C;AAE9E,+FAA+F;AAC/F,YAAY,EACV,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,wCAAwC,GACzC,wCAAoC;AAErC,4EAA4E;AAC5E,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,wCAAoC;AAEpG,+DAA+D;AAC/D,YAAY,EACV,wBAAwB,EACxB,gCAAgC,GACjC,6CAAyC;AAE1C,kFAAkF;AAClF,OAAO,EAAE,cAAc,EAAE,6CAAyC;AAElE,sFAAsF;AACtF,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,GACvB,uCAAmC;AAEpC,2EAA2E;AAC3E,OAAO,EAAE,mBAAmB,EAAE,uCAAmC;AAEjE,oFAAoF;AACpF,YAAY,EACV,yBAAyB,EACzB,gCAAgC,EAChC,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,GACrB,yCAAqC;AAEtC,wHAAwH;AACxH,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,yCAAqC;AAEjG,0CAA0C;AAC1C,YAAY,EAAE,oBAAoB,EAAE,wCAAoC;AAExE,0FAA0F;AAC1F,OAAO,EAAE,qBAAqB,EAAE,wCAAoC;AAEpE,8DAA8D;AAC9D,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,kCAA8B;AAE/B,kEAAkE;AAClE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,kCAA8B;AAEhF,2DAA2D;AAC3D,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,sCAAkC;AAE/F,qEAAqE;AACrE,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,sCAAkC;AAE7F,4EAA4E;AAC5E,YAAY,EACV,4CAA4C,EAC5C,6CAA6C,EAC7C,4BAA4B,GAC7B,oCAAgC;AAEjC,oHAAoH;AACpH,OAAO,EACL,6BAA6B,EAC7B,6CAA6C,GAC9C,oCAAgC;AAEjC,0FAA0F;AAC1F,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,8CAA0C;AAE7G,0FAA0F;AAC1F,OAAO,EAAE,8BAA8B,EAAE,8CAA0C;AAEnF,gFAAgF;AAChF,YAAY,EACV,+BAA+B,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,mBAAmB,EACnB,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,GACxB,uCAAmC;AAEpC,sMAAsM;AACtM,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,yBAAyB,GAC1B,uCAAmC;AAEpC,8FAA8F;AAC9F,YAAY,EACV,uCAAuC,EACvC,wCAAwC,EACxC,4BAA4B,EAC5B,iCAAiC,GAClC,sCAAkC;AAEnC,4EAA4E;AAC5E,OAAO,EACL,gCAAgC,EAChC,iCAAiC,GAClC,sCAAkC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public manifest-integration surface for typed custom objects.
|
|
3
|
+
*
|
|
4
|
+
* Import this module when you want to materialize typed custom-object
|
|
5
|
+
* definitions into low-level manifest classes or use manifest-specific helpers
|
|
6
|
+
* such as typed list views and page layouts.
|
|
7
|
+
*
|
|
8
|
+
* Relationship to the rest of the SDK:
|
|
9
|
+
*
|
|
10
|
+
* ```text
|
|
11
|
+
* core/platform/custom-objects
|
|
12
|
+
* |
|
|
13
|
+
* v
|
|
14
|
+
* core/platform/manifest/custom-objects
|
|
15
|
+
* |
|
|
16
|
+
* v
|
|
17
|
+
* lib/manifest
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The implementation lives under `core/platform/manifest/custom-objects/`, but
|
|
21
|
+
* this file is the stable public entrypoint that consumers should import from:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
/** Manifest-registration result and field-class mapping types used by the typed manifest adapters. */
|
|
28
|
+
export type { ManifestFieldForDefinition, ManifestRegistration } from "./custom-objects/types.js";
|
|
29
|
+
/** Manifest-bridge options and tuple types used when materializing typed schemas. */
|
|
30
|
+
export type { ManifestRegistrationTuple, RegisterManifestCustomObjectOptions, RegisterManifestCustomObjectsOptions, } from "./custom-objects/register.js";
|
|
31
|
+
/** Bridges that convert typed schemas into the existing manifest class model. */
|
|
32
|
+
export { registerManifestCustomObject, registerManifestCustomObjects } from "./custom-objects/register.js";
|
|
33
|
+
/** Source-file loading props and result types for typed workflow/action wiring plus SDUI page wiring. */
|
|
34
|
+
export type { ManifestFunctionFileSource, ManifestFunctionFromFileProps, SduiPageFromFunctionFileProps, SduiPageFromFunctionFileResult, TypedWorkflowFromFunctionFileProps, TypedWorkflowFromFunctionFileResult, } from "./custom-objects/function-file.js";
|
|
35
|
+
/** Helpers that wire one colocated handler file into a typed workflow or SDUI page plus backing manifest function. */
|
|
36
|
+
export { defineSduiPageFromFunctionFile, defineTypedWorkflowFromFunctionFile, } from "./custom-objects/function-file.js";
|
|
37
|
+
/** Shared manifest field-name types used by typed list-view and page-layout helpers. */
|
|
38
|
+
export type { StandardManifestFieldName, TypedManifestFieldInput, TypedManifestFieldName, } from "./custom-objects/field-resolution.js";
|
|
39
|
+
/** Shared field resolver used by typed manifest helpers. */
|
|
40
|
+
export { resolveTypedManifestField } from "./custom-objects/field-resolution.js";
|
|
41
|
+
/** Typed manifest-condition fragments, field tokens, lifecycle builders, and helper inputs. */
|
|
42
|
+
export type { ManifestConditionCategory, ManifestConditionFieldCategory, ManifestConditionFieldScope, ManifestConditionFieldToken, ManifestConditionFragment, ManifestConditionFunctionToken, ManifestConditionHelpers, ManifestConditionInput, ManifestCustomObjectTarget, TypedCustomObjectLifecycle, TypedCustomObjectLifecycleTriggerBuilder, } from "./custom-objects/conditions.js";
|
|
43
|
+
/** Typed manifest-condition and custom-object lifecycle helper families. */
|
|
44
|
+
export { createManifestConditionHelpers, customObjectLifecycle } from "./custom-objects/conditions.js";
|
|
45
|
+
/** Parsed-string typed manifest-condition field-name types. */
|
|
46
|
+
export type { ParsedConditionFieldName, ParsedConditionStandardFieldName, } from "./custom-objects/typed-condition.js";
|
|
47
|
+
/** Parsed-string manifest-condition compiler for the typed custom-object lane. */
|
|
48
|
+
export { typedCondition } from "./custom-objects/typed-condition.js";
|
|
49
|
+
/** Typed list-view field names and props for manifest custom-object registrations. */
|
|
50
|
+
export type { StandardListViewFieldName, TypedListViewDefProps, TypedListViewFieldInput, TypedListViewFieldName, } from "./custom-objects/list-view.js";
|
|
51
|
+
/** Typed list-view helper with object-specific field-name IntelliSense. */
|
|
52
|
+
export { defineTypedListView } from "./custom-objects/list-view.js";
|
|
53
|
+
/** Typed page-layout field-array types for manifest custom-object registrations. */
|
|
54
|
+
export type { TypedBasicPageLayoutProps, TypedCustomObjectPageLayoutProps, TypedFieldsSection, TypedPageLayoutSection, TypedPageLayoutTab, TypedSectionField, TypedSectionFieldInput, TypedSystemSectionEdit, TypedSystemTabEdit, TypedTabEdits, TypedTabWithSections, } from "./custom-objects/page-layout.js";
|
|
55
|
+
/** Typed page-layout helpers with object-specific field-name IntelliSense for common field arrays and basic layouts. */
|
|
56
|
+
export { defineBasicTypedPageLayout, defineTypedPageLayout } from "./custom-objects/page-layout.js";
|
|
57
|
+
/** Typed validation helper properties. */
|
|
58
|
+
export type { TypedValidationProps } from "./custom-objects/validation.js";
|
|
59
|
+
/** Typed validation helper that accepts manifest-condition fragments and typed fields. */
|
|
60
|
+
export { defineTypedValidation } from "./custom-objects/validation.js";
|
|
61
|
+
/** Typed rule-action values, helpers, and rule properties. */
|
|
62
|
+
export type { TypedRuleAction, TypedRuleFieldSetter, TypedRuleFixedValue, TypedRuleHelpers, TypedRuleProps, } from "./custom-objects/rule.js";
|
|
63
|
+
/** Typed rule-action helpers and record-triggered rule helper. */
|
|
64
|
+
export { createTypedRuleHelpers, defineTypedRule } from "./custom-objects/rule.js";
|
|
65
|
+
/** Typed workflow helper properties and trigger inputs. */
|
|
66
|
+
export type { TypedWorkflowProps, TypedWorkflowTriggerInput } from "./custom-objects/workflow.js";
|
|
67
|
+
/** Typed workflow helper that accepts lifecycle-trigger builders. */
|
|
68
|
+
export { defineTypedWorkflow, resolveTypedWorkflowTrigger } from "./custom-objects/workflow.js";
|
|
69
|
+
/** Typed custom-object action helper props and file-wiring result types. */
|
|
70
|
+
export type { TypedCustomObjectActionFromFunctionFileProps, TypedCustomObjectActionFromFunctionFileResult, TypedCustomObjectActionProps, } from "./custom-objects/action.js";
|
|
71
|
+
/** Typed custom-object action helpers. Prefer the file-backed helper for the common one-action/one-handler path. */
|
|
72
|
+
export { defineTypedCustomObjectAction, defineTypedCustomObjectActionFromFunctionFile, } from "./custom-objects/action.js";
|
|
73
|
+
/** Standard input/output types for init-only custom-object object-list page functions. */
|
|
74
|
+
export type { TypedObjectListPageInput, TypedObjectListPageOutput } from "./custom-objects/object-list-page.js";
|
|
75
|
+
/** Helper that renders the standard ObjectListView-backed SDUI page-function response. */
|
|
76
|
+
export { handleTypedObjectListPageEvent } from "./custom-objects/object-list-page.js";
|
|
77
|
+
/** Shared output unions and payload shapes for stateful SDUI page functions. */
|
|
78
|
+
export type { TypedSduiMutationTriggerOptions, TypedSduiPageActionName, TypedSduiPageActionParams, TypedSduiPageErrorOutput, TypedSduiPageHandlerArgs, TypedSduiPageHandlerOptions, TypedSduiPageOutput, TypedSduiPageSpecOutput, TypedSduiStateAssignments, TypedSduiStatePath, TypedSduiStatePathForValue, TypedSduiStatePathValue, } from "./custom-objects/sdui-page.js";
|
|
79
|
+
/** Stateful SDUI action-dispatch helpers. Prefer `defineTypedSduiPageHandlerFor(...)` for the default authoring path and keep `defineTypedSduiPageHandler(...)` as the more explicit escape hatch. */
|
|
80
|
+
export { createTypedSduiMutationTrigger, defineTypedSduiPageHandler, defineTypedSduiPageHandlerFor, defineTypedSduiStateAssignments, resolveTypedSduiStatePath, } from "./custom-objects/sdui-page.js";
|
|
81
|
+
/** Existing-manifest rebinding option and result types for typed custom-object extensions. */
|
|
82
|
+
export type { BindExistingManifestCustomObjectOptions, BindExistingManifestCustomObjectsOptions, ExistingManifestRegistration, ExistingManifestRegistrationTuple, } from "./custom-objects/existing.js";
|
|
83
|
+
/** Existing-manifest rebinding helpers for the typed custom-object lane. */
|
|
84
|
+
export { bindExistingManifestCustomObject, bindExistingManifestCustomObjects, } from "./custom-objects/existing.js";
|
|
85
|
+
//# sourceMappingURL=custom-objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.d.ts","sourceRoot":"","sources":["../../../src/core/platform/manifest/custom-objects.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public manifest-integration surface for typed custom objects.
|
|
4
|
+
*
|
|
5
|
+
* Import this module when you want to materialize typed custom-object
|
|
6
|
+
* definitions into low-level manifest classes or use manifest-specific helpers
|
|
7
|
+
* such as typed list views and page layouts.
|
|
8
|
+
*
|
|
9
|
+
* Relationship to the rest of the SDK:
|
|
10
|
+
*
|
|
11
|
+
* ```text
|
|
12
|
+
* core/platform/custom-objects
|
|
13
|
+
* |
|
|
14
|
+
* v
|
|
15
|
+
* core/platform/manifest/custom-objects
|
|
16
|
+
* |
|
|
17
|
+
* v
|
|
18
|
+
* lib/manifest
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* The implementation lives under `core/platform/manifest/custom-objects/`, but
|
|
22
|
+
* this file is the stable public entrypoint that consumers should import from:
|
|
23
|
+
*
|
|
24
|
+
* ```ts
|
|
25
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.bindExistingManifestCustomObjects = exports.bindExistingManifestCustomObject = exports.resolveTypedSduiStatePath = exports.defineTypedSduiStateAssignments = exports.defineTypedSduiPageHandlerFor = exports.defineTypedSduiPageHandler = exports.createTypedSduiMutationTrigger = exports.handleTypedObjectListPageEvent = exports.defineTypedCustomObjectActionFromFunctionFile = exports.defineTypedCustomObjectAction = exports.resolveTypedWorkflowTrigger = exports.defineTypedWorkflow = exports.defineTypedRule = exports.createTypedRuleHelpers = exports.defineTypedValidation = exports.defineTypedPageLayout = exports.defineBasicTypedPageLayout = exports.defineTypedListView = exports.typedCondition = exports.customObjectLifecycle = exports.createManifestConditionHelpers = exports.resolveTypedManifestField = exports.defineTypedWorkflowFromFunctionFile = exports.defineSduiPageFromFunctionFile = exports.registerManifestCustomObjects = exports.registerManifestCustomObject = void 0;
|
|
30
|
+
/** Bridges that convert typed schemas into the existing manifest class model. */
|
|
31
|
+
var register_1 = require("./custom-objects/register.js");
|
|
32
|
+
Object.defineProperty(exports, "registerManifestCustomObject", { enumerable: true, get: function () { return register_1.registerManifestCustomObject; } });
|
|
33
|
+
Object.defineProperty(exports, "registerManifestCustomObjects", { enumerable: true, get: function () { return register_1.registerManifestCustomObjects; } });
|
|
34
|
+
/** Helpers that wire one colocated handler file into a typed workflow or SDUI page plus backing manifest function. */
|
|
35
|
+
var function_file_1 = require("./custom-objects/function-file.js");
|
|
36
|
+
Object.defineProperty(exports, "defineSduiPageFromFunctionFile", { enumerable: true, get: function () { return function_file_1.defineSduiPageFromFunctionFile; } });
|
|
37
|
+
Object.defineProperty(exports, "defineTypedWorkflowFromFunctionFile", { enumerable: true, get: function () { return function_file_1.defineTypedWorkflowFromFunctionFile; } });
|
|
38
|
+
/** Shared field resolver used by typed manifest helpers. */
|
|
39
|
+
var field_resolution_1 = require("./custom-objects/field-resolution.js");
|
|
40
|
+
Object.defineProperty(exports, "resolveTypedManifestField", { enumerable: true, get: function () { return field_resolution_1.resolveTypedManifestField; } });
|
|
41
|
+
/** Typed manifest-condition and custom-object lifecycle helper families. */
|
|
42
|
+
var conditions_1 = require("./custom-objects/conditions.js");
|
|
43
|
+
Object.defineProperty(exports, "createManifestConditionHelpers", { enumerable: true, get: function () { return conditions_1.createManifestConditionHelpers; } });
|
|
44
|
+
Object.defineProperty(exports, "customObjectLifecycle", { enumerable: true, get: function () { return conditions_1.customObjectLifecycle; } });
|
|
45
|
+
/** Parsed-string manifest-condition compiler for the typed custom-object lane. */
|
|
46
|
+
var typed_condition_1 = require("./custom-objects/typed-condition.js");
|
|
47
|
+
Object.defineProperty(exports, "typedCondition", { enumerable: true, get: function () { return typed_condition_1.typedCondition; } });
|
|
48
|
+
/** Typed list-view helper with object-specific field-name IntelliSense. */
|
|
49
|
+
var list_view_1 = require("./custom-objects/list-view.js");
|
|
50
|
+
Object.defineProperty(exports, "defineTypedListView", { enumerable: true, get: function () { return list_view_1.defineTypedListView; } });
|
|
51
|
+
/** Typed page-layout helpers with object-specific field-name IntelliSense for common field arrays and basic layouts. */
|
|
52
|
+
var page_layout_1 = require("./custom-objects/page-layout.js");
|
|
53
|
+
Object.defineProperty(exports, "defineBasicTypedPageLayout", { enumerable: true, get: function () { return page_layout_1.defineBasicTypedPageLayout; } });
|
|
54
|
+
Object.defineProperty(exports, "defineTypedPageLayout", { enumerable: true, get: function () { return page_layout_1.defineTypedPageLayout; } });
|
|
55
|
+
/** Typed validation helper that accepts manifest-condition fragments and typed fields. */
|
|
56
|
+
var validation_1 = require("./custom-objects/validation.js");
|
|
57
|
+
Object.defineProperty(exports, "defineTypedValidation", { enumerable: true, get: function () { return validation_1.defineTypedValidation; } });
|
|
58
|
+
/** Typed rule-action helpers and record-triggered rule helper. */
|
|
59
|
+
var rule_1 = require("./custom-objects/rule.js");
|
|
60
|
+
Object.defineProperty(exports, "createTypedRuleHelpers", { enumerable: true, get: function () { return rule_1.createTypedRuleHelpers; } });
|
|
61
|
+
Object.defineProperty(exports, "defineTypedRule", { enumerable: true, get: function () { return rule_1.defineTypedRule; } });
|
|
62
|
+
/** Typed workflow helper that accepts lifecycle-trigger builders. */
|
|
63
|
+
var workflow_1 = require("./custom-objects/workflow.js");
|
|
64
|
+
Object.defineProperty(exports, "defineTypedWorkflow", { enumerable: true, get: function () { return workflow_1.defineTypedWorkflow; } });
|
|
65
|
+
Object.defineProperty(exports, "resolveTypedWorkflowTrigger", { enumerable: true, get: function () { return workflow_1.resolveTypedWorkflowTrigger; } });
|
|
66
|
+
/** Typed custom-object action helpers. Prefer the file-backed helper for the common one-action/one-handler path. */
|
|
67
|
+
var action_1 = require("./custom-objects/action.js");
|
|
68
|
+
Object.defineProperty(exports, "defineTypedCustomObjectAction", { enumerable: true, get: function () { return action_1.defineTypedCustomObjectAction; } });
|
|
69
|
+
Object.defineProperty(exports, "defineTypedCustomObjectActionFromFunctionFile", { enumerable: true, get: function () { return action_1.defineTypedCustomObjectActionFromFunctionFile; } });
|
|
70
|
+
/** Helper that renders the standard ObjectListView-backed SDUI page-function response. */
|
|
71
|
+
var object_list_page_1 = require("./custom-objects/object-list-page.js");
|
|
72
|
+
Object.defineProperty(exports, "handleTypedObjectListPageEvent", { enumerable: true, get: function () { return object_list_page_1.handleTypedObjectListPageEvent; } });
|
|
73
|
+
/** Stateful SDUI action-dispatch helpers. Prefer `defineTypedSduiPageHandlerFor(...)` for the default authoring path and keep `defineTypedSduiPageHandler(...)` as the more explicit escape hatch. */
|
|
74
|
+
var sdui_page_1 = require("./custom-objects/sdui-page.js");
|
|
75
|
+
Object.defineProperty(exports, "createTypedSduiMutationTrigger", { enumerable: true, get: function () { return sdui_page_1.createTypedSduiMutationTrigger; } });
|
|
76
|
+
Object.defineProperty(exports, "defineTypedSduiPageHandler", { enumerable: true, get: function () { return sdui_page_1.defineTypedSduiPageHandler; } });
|
|
77
|
+
Object.defineProperty(exports, "defineTypedSduiPageHandlerFor", { enumerable: true, get: function () { return sdui_page_1.defineTypedSduiPageHandlerFor; } });
|
|
78
|
+
Object.defineProperty(exports, "defineTypedSduiStateAssignments", { enumerable: true, get: function () { return sdui_page_1.defineTypedSduiStateAssignments; } });
|
|
79
|
+
Object.defineProperty(exports, "resolveTypedSduiStatePath", { enumerable: true, get: function () { return sdui_page_1.resolveTypedSduiStatePath; } });
|
|
80
|
+
/** Existing-manifest rebinding helpers for the typed custom-object lane. */
|
|
81
|
+
var existing_1 = require("./custom-objects/existing.js");
|
|
82
|
+
Object.defineProperty(exports, "bindExistingManifestCustomObject", { enumerable: true, get: function () { return existing_1.bindExistingManifestCustomObject; } });
|
|
83
|
+
Object.defineProperty(exports, "bindExistingManifestCustomObjects", { enumerable: true, get: function () { return existing_1.bindExistingManifestCustomObjects; } });
|
|
84
|
+
//# sourceMappingURL=custom-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.js","sourceRoot":"","sources":["../../../src/core/platform/manifest/custom-objects.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;;;AAYH,iFAAiF;AACjF,yDAAwG;AAA/F,wHAAA,4BAA4B,OAAA;AAAE,yHAAA,6BAA6B,OAAA;AAYpE,sHAAsH;AACtH,mEAGwC;AAFtC,+HAAA,8BAA8B,OAAA;AAC9B,oIAAA,mCAAmC,OAAA;AAUrC,4DAA4D;AAC5D,yEAA8E;AAArE,6HAAA,yBAAyB,OAAA;AAiBlC,4EAA4E;AAC5E,6DAAoG;AAA3F,4HAAA,8BAA8B,OAAA;AAAE,mHAAA,qBAAqB,OAAA;AAQ9D,kFAAkF;AAClF,uEAAkE;AAAzD,iHAAA,cAAc,OAAA;AAUvB,2EAA2E;AAC3E,2DAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAiB5B,wHAAwH;AACxH,+DAAiG;AAAxF,yHAAA,0BAA0B,OAAA;AAAE,oHAAA,qBAAqB,OAAA;AAK1D,0FAA0F;AAC1F,6DAAoE;AAA3D,mHAAA,qBAAqB,OAAA;AAW9B,kEAAkE;AAClE,iDAAgF;AAAvE,8GAAA,sBAAsB,OAAA;AAAE,uGAAA,eAAe,OAAA;AAKhD,qEAAqE;AACrE,yDAA6F;AAApF,+GAAA,mBAAmB,OAAA;AAAE,uHAAA,2BAA2B,OAAA;AASzD,oHAAoH;AACpH,qDAGiC;AAF/B,uHAAA,6BAA6B,OAAA;AAC7B,uIAAA,6CAA6C,OAAA;AAM/C,0FAA0F;AAC1F,yEAAmF;AAA1E,kIAAA,8BAA8B,OAAA;AAkBvC,sMAAsM;AACtM,2DAMoC;AALlC,2HAAA,8BAA8B,OAAA;AAC9B,uHAAA,0BAA0B,OAAA;AAC1B,0HAAA,6BAA6B,OAAA;AAC7B,4HAAA,+BAA+B,OAAA;AAC/B,sHAAA,yBAAyB,OAAA;AAW3B,4EAA4E;AAC5E,yDAGmC;AAFjC,4HAAA,gCAAgC,OAAA;AAChC,6HAAA,iCAAiC,OAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public manifest-integration surface for typed custom objects.
|
|
3
|
+
*
|
|
4
|
+
* Import this module when you want to materialize typed custom-object
|
|
5
|
+
* definitions into low-level manifest classes or use manifest-specific helpers
|
|
6
|
+
* such as typed list views and page layouts.
|
|
7
|
+
*
|
|
8
|
+
* Relationship to the rest of the SDK:
|
|
9
|
+
*
|
|
10
|
+
* ```text
|
|
11
|
+
* core/platform/custom-objects
|
|
12
|
+
* |
|
|
13
|
+
* v
|
|
14
|
+
* core/platform/manifest/custom-objects
|
|
15
|
+
* |
|
|
16
|
+
* v
|
|
17
|
+
* lib/manifest
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The implementation lives under `core/platform/manifest/custom-objects/`, but
|
|
21
|
+
* this file is the stable public entrypoint that consumers should import from:
|
|
22
|
+
*
|
|
23
|
+
* ```ts
|
|
24
|
+
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
/** Bridges that convert typed schemas into the existing manifest class model. */
|
|
28
|
+
export { registerManifestCustomObject, registerManifestCustomObjects } from "./custom-objects/register.mjs";
|
|
29
|
+
/** Helpers that wire one colocated handler file into a typed workflow or SDUI page plus backing manifest function. */
|
|
30
|
+
export { defineSduiPageFromFunctionFile, defineTypedWorkflowFromFunctionFile, } from "./custom-objects/function-file.mjs";
|
|
31
|
+
/** Shared field resolver used by typed manifest helpers. */
|
|
32
|
+
export { resolveTypedManifestField } from "./custom-objects/field-resolution.mjs";
|
|
33
|
+
/** Typed manifest-condition and custom-object lifecycle helper families. */
|
|
34
|
+
export { createManifestConditionHelpers, customObjectLifecycle } from "./custom-objects/conditions.mjs";
|
|
35
|
+
/** Parsed-string manifest-condition compiler for the typed custom-object lane. */
|
|
36
|
+
export { typedCondition } from "./custom-objects/typed-condition.mjs";
|
|
37
|
+
/** Typed list-view helper with object-specific field-name IntelliSense. */
|
|
38
|
+
export { defineTypedListView } from "./custom-objects/list-view.mjs";
|
|
39
|
+
/** Typed page-layout helpers with object-specific field-name IntelliSense for common field arrays and basic layouts. */
|
|
40
|
+
export { defineBasicTypedPageLayout, defineTypedPageLayout } from "./custom-objects/page-layout.mjs";
|
|
41
|
+
/** Typed validation helper that accepts manifest-condition fragments and typed fields. */
|
|
42
|
+
export { defineTypedValidation } from "./custom-objects/validation.mjs";
|
|
43
|
+
/** Typed rule-action helpers and record-triggered rule helper. */
|
|
44
|
+
export { createTypedRuleHelpers, defineTypedRule } from "./custom-objects/rule.mjs";
|
|
45
|
+
/** Typed workflow helper that accepts lifecycle-trigger builders. */
|
|
46
|
+
export { defineTypedWorkflow, resolveTypedWorkflowTrigger } from "./custom-objects/workflow.mjs";
|
|
47
|
+
/** Typed custom-object action helpers. Prefer the file-backed helper for the common one-action/one-handler path. */
|
|
48
|
+
export { defineTypedCustomObjectAction, defineTypedCustomObjectActionFromFunctionFile, } from "./custom-objects/action.mjs";
|
|
49
|
+
/** Helper that renders the standard ObjectListView-backed SDUI page-function response. */
|
|
50
|
+
export { handleTypedObjectListPageEvent } from "./custom-objects/object-list-page.mjs";
|
|
51
|
+
/** Stateful SDUI action-dispatch helpers. Prefer `defineTypedSduiPageHandlerFor(...)` for the default authoring path and keep `defineTypedSduiPageHandler(...)` as the more explicit escape hatch. */
|
|
52
|
+
export { createTypedSduiMutationTrigger, defineTypedSduiPageHandler, defineTypedSduiPageHandlerFor, defineTypedSduiStateAssignments, resolveTypedSduiStatePath, } from "./custom-objects/sdui-page.mjs";
|
|
53
|
+
/** Existing-manifest rebinding helpers for the typed custom-object lane. */
|
|
54
|
+
export { bindExistingManifestCustomObject, bindExistingManifestCustomObjects, } from "./custom-objects/existing.mjs";
|
|
55
|
+
//# sourceMappingURL=custom-objects.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-objects.mjs","sourceRoot":"","sources":["../../../src/core/platform/manifest/custom-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAYH,iFAAiF;AACjF,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,sCAAkC;AAYxG,sHAAsH;AACtH,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,GACpC,2CAAuC;AASxC,4DAA4D;AAC5D,OAAO,EAAE,yBAAyB,EAAE,8CAA0C;AAiB9E,4EAA4E;AAC5E,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,wCAAoC;AAQpG,kFAAkF;AAClF,OAAO,EAAE,cAAc,EAAE,6CAAyC;AAUlE,2EAA2E;AAC3E,OAAO,EAAE,mBAAmB,EAAE,uCAAmC;AAiBjE,wHAAwH;AACxH,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,yCAAqC;AAKjG,0FAA0F;AAC1F,OAAO,EAAE,qBAAqB,EAAE,wCAAoC;AAWpE,kEAAkE;AAClE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,kCAA8B;AAKhF,qEAAqE;AACrE,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,sCAAkC;AAS7F,oHAAoH;AACpH,OAAO,EACL,6BAA6B,EAC7B,6CAA6C,GAC9C,oCAAgC;AAKjC,0FAA0F;AAC1F,OAAO,EAAE,8BAA8B,EAAE,8CAA0C;AAkBnF,sMAAsM;AACtM,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,+BAA+B,EAC/B,yBAAyB,GAC1B,uCAAmC;AAUpC,4EAA4E;AAC5E,OAAO,EACL,gCAAgC,EAChC,iCAAiC,GAClC,sCAAkC"}
|