@rippling/rippling-sdk 0.2.0-alpha.82 → 0.2.0-alpha.83
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,269 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed custom-object schema definitions for the grant program management example.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
date,
|
|
7
|
+
defineCustomObject,
|
|
8
|
+
email,
|
|
9
|
+
formula,
|
|
10
|
+
longText,
|
|
11
|
+
lookup,
|
|
12
|
+
number,
|
|
13
|
+
parentChild,
|
|
14
|
+
radio,
|
|
15
|
+
section,
|
|
16
|
+
text,
|
|
17
|
+
} from '@rippling/rippling-sdk/core/platform/custom-objects';
|
|
18
|
+
|
|
19
|
+
/** Logical category shared by the grant program management example. */
|
|
20
|
+
export const GRANTS_CATEGORY = 'grants';
|
|
21
|
+
|
|
22
|
+
/** Funding-program schema used by grant cycles. */
|
|
23
|
+
export const programDefinition = defineCustomObject({
|
|
24
|
+
name: 'gpm_program',
|
|
25
|
+
displayName: 'Program',
|
|
26
|
+
pluralLabel: 'Programs',
|
|
27
|
+
category: GRANTS_CATEGORY,
|
|
28
|
+
description: 'Funding program with annual budget and focus area',
|
|
29
|
+
sections: {
|
|
30
|
+
program: section('Program', { sectionId: 'sec_gpm_program' }),
|
|
31
|
+
},
|
|
32
|
+
fields: {
|
|
33
|
+
focus_area: radio({
|
|
34
|
+
displayName: 'Focus area',
|
|
35
|
+
description: 'Program focus area',
|
|
36
|
+
options: ['Education', 'Workforce', 'Climate', 'Health', 'Housing', 'Community safety'],
|
|
37
|
+
required: true,
|
|
38
|
+
section: 'program',
|
|
39
|
+
}),
|
|
40
|
+
annual_budget_cents: number({
|
|
41
|
+
displayName: 'Annual budget (cents)',
|
|
42
|
+
description: 'Annual funding budget in cents',
|
|
43
|
+
decimalPlaces: 0,
|
|
44
|
+
section: 'program',
|
|
45
|
+
}),
|
|
46
|
+
guidelines: longText({
|
|
47
|
+
displayName: 'Guidelines',
|
|
48
|
+
description: 'Eligibility and operating guidelines',
|
|
49
|
+
maxLength: 8000,
|
|
50
|
+
section: 'program',
|
|
51
|
+
}),
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
/** Grant-cycle schema tied to a parent program. */
|
|
56
|
+
export const grantDefinition = defineCustomObject({
|
|
57
|
+
name: 'gpm_grant',
|
|
58
|
+
displayName: 'Grant',
|
|
59
|
+
pluralLabel: 'Grants',
|
|
60
|
+
category: GRANTS_CATEGORY,
|
|
61
|
+
description: 'Grant cycle under a funding program',
|
|
62
|
+
sections: {
|
|
63
|
+
grant: section('Grant', { sectionId: 'sec_gpm_grant' }),
|
|
64
|
+
},
|
|
65
|
+
fields: {
|
|
66
|
+
program_ref: parentChild(programDefinition, {
|
|
67
|
+
displayName: 'Program',
|
|
68
|
+
description: 'Program this grant belongs to',
|
|
69
|
+
relatedDataLabel: 'Grants',
|
|
70
|
+
parentChildType: 'PRIMARY',
|
|
71
|
+
enableParentOwnerInheritance: false,
|
|
72
|
+
section: 'grant',
|
|
73
|
+
}),
|
|
74
|
+
status: radio({
|
|
75
|
+
displayName: 'Status',
|
|
76
|
+
description: 'Grant cycle status',
|
|
77
|
+
options: ['Planning', 'Open', 'Review', 'Awarded', 'Closed'],
|
|
78
|
+
required: true,
|
|
79
|
+
section: 'grant',
|
|
80
|
+
}),
|
|
81
|
+
open_date: date({
|
|
82
|
+
displayName: 'Open date',
|
|
83
|
+
description: 'Application open date',
|
|
84
|
+
section: 'grant',
|
|
85
|
+
}),
|
|
86
|
+
close_date: date({
|
|
87
|
+
displayName: 'Close date',
|
|
88
|
+
description: 'Application close date',
|
|
89
|
+
section: 'grant',
|
|
90
|
+
}),
|
|
91
|
+
award_budget_cents: number({
|
|
92
|
+
displayName: 'Award budget (cents)',
|
|
93
|
+
description: 'Budget allocated to this grant cycle',
|
|
94
|
+
decimalPlaces: 0,
|
|
95
|
+
section: 'grant',
|
|
96
|
+
}),
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/** Applicant schema used by applications. */
|
|
101
|
+
export const applicantDefinition = defineCustomObject({
|
|
102
|
+
name: 'gpm_applicant',
|
|
103
|
+
displayName: 'Applicant',
|
|
104
|
+
pluralLabel: 'Applicants',
|
|
105
|
+
category: GRANTS_CATEGORY,
|
|
106
|
+
description: 'Applicant organization and contact details',
|
|
107
|
+
sections: {
|
|
108
|
+
applicant: section('Applicant', { sectionId: 'sec_gpm_applicant' }),
|
|
109
|
+
},
|
|
110
|
+
fields: {
|
|
111
|
+
legal_name: text({
|
|
112
|
+
displayName: 'Legal name',
|
|
113
|
+
description: 'Applicant organization legal name',
|
|
114
|
+
maxLength: 200,
|
|
115
|
+
required: true,
|
|
116
|
+
section: 'applicant',
|
|
117
|
+
}),
|
|
118
|
+
applicant_type: radio({
|
|
119
|
+
displayName: 'Applicant type',
|
|
120
|
+
description: 'Applicant organization type',
|
|
121
|
+
options: ['Nonprofit', 'School', 'Government', 'Small business', 'Community group'],
|
|
122
|
+
required: true,
|
|
123
|
+
section: 'applicant',
|
|
124
|
+
}),
|
|
125
|
+
contact_email: email({
|
|
126
|
+
displayName: 'Contact email',
|
|
127
|
+
description: 'Primary applicant contact email',
|
|
128
|
+
section: 'applicant',
|
|
129
|
+
}),
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
/** Application schema tied to a grant and applicant. */
|
|
134
|
+
export const applicationDefinition = defineCustomObject({
|
|
135
|
+
name: 'gpm_application',
|
|
136
|
+
displayName: 'Application',
|
|
137
|
+
pluralLabel: 'Applications',
|
|
138
|
+
category: GRANTS_CATEGORY,
|
|
139
|
+
description: 'Application submitted by an applicant for a grant',
|
|
140
|
+
sections: {
|
|
141
|
+
application: section('Application', { sectionId: 'sec_gpm_application' }),
|
|
142
|
+
},
|
|
143
|
+
fields: {
|
|
144
|
+
grant_ref: parentChild(grantDefinition, {
|
|
145
|
+
displayName: 'Grant',
|
|
146
|
+
description: 'Grant cycle this application targets',
|
|
147
|
+
relatedDataLabel: 'Applications',
|
|
148
|
+
parentChildType: 'PRIMARY',
|
|
149
|
+
enableParentOwnerInheritance: false,
|
|
150
|
+
section: 'application',
|
|
151
|
+
}),
|
|
152
|
+
applicant_ref: lookup(applicantDefinition, {
|
|
153
|
+
displayName: 'Applicant',
|
|
154
|
+
description: 'Applicant submitting this request',
|
|
155
|
+
relatedDataLabel: 'Applications',
|
|
156
|
+
required: true,
|
|
157
|
+
section: 'application',
|
|
158
|
+
}),
|
|
159
|
+
status: radio({
|
|
160
|
+
displayName: 'Status',
|
|
161
|
+
description: 'Application review state',
|
|
162
|
+
options: ['Draft', 'Submitted', 'Eligibility review', 'Panel review', 'Awarded', 'Declined'],
|
|
163
|
+
required: true,
|
|
164
|
+
section: 'application',
|
|
165
|
+
}),
|
|
166
|
+
requested_amount_cents: number({
|
|
167
|
+
displayName: 'Requested amount (cents)',
|
|
168
|
+
description: 'Requested funding amount in cents',
|
|
169
|
+
decimalPlaces: 0,
|
|
170
|
+
required: true,
|
|
171
|
+
section: 'application',
|
|
172
|
+
}),
|
|
173
|
+
review_score: number({
|
|
174
|
+
displayName: 'Review score',
|
|
175
|
+
description: 'Panel score from 0 to 100',
|
|
176
|
+
decimalPlaces: 2,
|
|
177
|
+
section: 'application',
|
|
178
|
+
}),
|
|
179
|
+
proposal_summary: longText({
|
|
180
|
+
displayName: 'Proposal summary',
|
|
181
|
+
description: 'Program plan and impact narrative',
|
|
182
|
+
maxLength: 8000,
|
|
183
|
+
section: 'application',
|
|
184
|
+
}),
|
|
185
|
+
review_label: formula.text({
|
|
186
|
+
displayName: 'Review label',
|
|
187
|
+
description: 'Review queue label',
|
|
188
|
+
formula: "CONCATENATE(status__c, ' - score ', review_score__c)",
|
|
189
|
+
maxLength: 240,
|
|
190
|
+
section: 'application',
|
|
191
|
+
}),
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
/** Milestone schema tied to a parent application. */
|
|
196
|
+
export const milestoneDefinition = defineCustomObject({
|
|
197
|
+
name: 'gpm_milestone',
|
|
198
|
+
displayName: 'Milestone',
|
|
199
|
+
pluralLabel: 'Milestones',
|
|
200
|
+
category: GRANTS_CATEGORY,
|
|
201
|
+
description: 'Deliverable or report due for an awarded application',
|
|
202
|
+
sections: {
|
|
203
|
+
milestone: section('Milestone', { sectionId: 'sec_gpm_milestone' }),
|
|
204
|
+
},
|
|
205
|
+
fields: {
|
|
206
|
+
application_ref: parentChild(applicationDefinition, {
|
|
207
|
+
displayName: 'Application',
|
|
208
|
+
description: 'Application this milestone belongs to',
|
|
209
|
+
relatedDataLabel: 'Milestones',
|
|
210
|
+
parentChildType: 'PRIMARY',
|
|
211
|
+
enableParentOwnerInheritance: true,
|
|
212
|
+
section: 'milestone',
|
|
213
|
+
}),
|
|
214
|
+
due_date: date({
|
|
215
|
+
displayName: 'Due date',
|
|
216
|
+
description: 'Milestone due date',
|
|
217
|
+
required: true,
|
|
218
|
+
section: 'milestone',
|
|
219
|
+
}),
|
|
220
|
+
status: radio({
|
|
221
|
+
displayName: 'Status',
|
|
222
|
+
description: 'Milestone status',
|
|
223
|
+
options: ['Not started', 'In progress', 'Submitted', 'Accepted', 'Late'],
|
|
224
|
+
required: true,
|
|
225
|
+
section: 'milestone',
|
|
226
|
+
}),
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
/** Disbursement schema tied to a parent application. */
|
|
231
|
+
export const disbursementDefinition = defineCustomObject({
|
|
232
|
+
name: 'gpm_disbursement',
|
|
233
|
+
displayName: 'Disbursement',
|
|
234
|
+
pluralLabel: 'Disbursements',
|
|
235
|
+
category: GRANTS_CATEGORY,
|
|
236
|
+
description: 'Payment tranche tied to an awarded application',
|
|
237
|
+
sections: {
|
|
238
|
+
disbursement: section('Disbursement', { sectionId: 'sec_gpm_disbursement' }),
|
|
239
|
+
},
|
|
240
|
+
fields: {
|
|
241
|
+
application_ref: parentChild(applicationDefinition, {
|
|
242
|
+
displayName: 'Application',
|
|
243
|
+
description: 'Application funded by this disbursement',
|
|
244
|
+
relatedDataLabel: 'Disbursements',
|
|
245
|
+
parentChildType: 'PRIMARY',
|
|
246
|
+
enableParentOwnerInheritance: true,
|
|
247
|
+
section: 'disbursement',
|
|
248
|
+
}),
|
|
249
|
+
amount_cents: number({
|
|
250
|
+
displayName: 'Amount (cents)',
|
|
251
|
+
description: 'Disbursement amount in cents',
|
|
252
|
+
decimalPlaces: 0,
|
|
253
|
+
required: true,
|
|
254
|
+
section: 'disbursement',
|
|
255
|
+
}),
|
|
256
|
+
status: radio({
|
|
257
|
+
displayName: 'Status',
|
|
258
|
+
description: 'Disbursement status',
|
|
259
|
+
options: ['Scheduled', 'Approved', 'Paid', 'Held', 'Cancelled'],
|
|
260
|
+
required: true,
|
|
261
|
+
section: 'disbursement',
|
|
262
|
+
}),
|
|
263
|
+
disbursement_date: date({
|
|
264
|
+
displayName: 'Disbursement date',
|
|
265
|
+
description: 'Scheduled or actual payment date',
|
|
266
|
+
section: 'disbursement',
|
|
267
|
+
}),
|
|
268
|
+
},
|
|
269
|
+
});
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import { FunctionContext, FunctionResponse
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionContext, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
+
import {
|
|
3
|
+
handleTypedObjectListPageEvent,
|
|
4
|
+
type TypedObjectListPageInput,
|
|
5
|
+
type TypedObjectListPageOutput,
|
|
6
|
+
} from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
7
|
+
import { enrollmentDefinition } from '../schema';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
export type Input = TypedObjectListPageInput;
|
|
10
|
+
|
|
11
|
+
export type Output = TypedObjectListPageOutput;
|
|
5
12
|
|
|
6
13
|
export async function onRipplingEvent(
|
|
7
|
-
event:
|
|
14
|
+
event: Input,
|
|
8
15
|
context: FunctionContext,
|
|
9
|
-
): Promise<FunctionResponse
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (action === 'init') {
|
|
13
|
-
const spec = render({
|
|
14
|
-
root: ObjectListView({
|
|
15
|
-
props: { objectApiName: OBJECT },
|
|
16
|
-
}),
|
|
17
|
-
state: {},
|
|
18
|
-
});
|
|
19
|
-
return new FunctionResponse({
|
|
20
|
-
body: { spec: JSON.stringify(spec) },
|
|
21
|
-
statusCode: 200,
|
|
22
|
-
headers: {},
|
|
23
|
-
message: '',
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return new FunctionResponse({ body: {}, statusCode: 200, headers: {}, message: '' });
|
|
16
|
+
): Promise<FunctionResponse<Output>> {
|
|
17
|
+
return handleTypedObjectListPageEvent(event, context, enrollmentDefinition);
|
|
28
18
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import { FunctionContext, FunctionResponse
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionContext, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
+
import {
|
|
3
|
+
handleTypedObjectListPageEvent,
|
|
4
|
+
type TypedObjectListPageInput,
|
|
5
|
+
type TypedObjectListPageOutput,
|
|
6
|
+
} from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
7
|
+
import { memberDefinition } from '../schema';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
export type Input = TypedObjectListPageInput;
|
|
10
|
+
|
|
11
|
+
export type Output = TypedObjectListPageOutput;
|
|
5
12
|
|
|
6
13
|
export async function onRipplingEvent(
|
|
7
|
-
event:
|
|
14
|
+
event: Input,
|
|
8
15
|
context: FunctionContext,
|
|
9
|
-
): Promise<FunctionResponse
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (action === 'init') {
|
|
13
|
-
const spec = render({
|
|
14
|
-
root: ObjectListView({
|
|
15
|
-
props: { objectApiName: OBJECT },
|
|
16
|
-
}),
|
|
17
|
-
state: {},
|
|
18
|
-
});
|
|
19
|
-
return new FunctionResponse({
|
|
20
|
-
body: { spec: JSON.stringify(spec) },
|
|
21
|
-
statusCode: 200,
|
|
22
|
-
headers: {},
|
|
23
|
-
message: '',
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return new FunctionResponse({ body: {}, statusCode: 200, headers: {}, message: '' });
|
|
16
|
+
): Promise<FunctionResponse<Output>> {
|
|
17
|
+
return handleTypedObjectListPageEvent(event, context, memberDefinition);
|
|
28
18
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import { FunctionContext, FunctionResponse
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionContext, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
+
import {
|
|
3
|
+
handleTypedObjectListPageEvent,
|
|
4
|
+
type TypedObjectListPageInput,
|
|
5
|
+
type TypedObjectListPageOutput,
|
|
6
|
+
} from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
7
|
+
import { sessionDefinition } from '../schema';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
export type Input = TypedObjectListPageInput;
|
|
10
|
+
|
|
11
|
+
export type Output = TypedObjectListPageOutput;
|
|
5
12
|
|
|
6
13
|
export async function onRipplingEvent(
|
|
7
|
-
event:
|
|
14
|
+
event: Input,
|
|
8
15
|
context: FunctionContext,
|
|
9
|
-
): Promise<FunctionResponse
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (action === 'init') {
|
|
13
|
-
const spec = render({
|
|
14
|
-
root: ObjectListView({
|
|
15
|
-
props: { objectApiName: OBJECT },
|
|
16
|
-
}),
|
|
17
|
-
state: {},
|
|
18
|
-
});
|
|
19
|
-
return new FunctionResponse({
|
|
20
|
-
body: { spec: JSON.stringify(spec) },
|
|
21
|
-
statusCode: 200,
|
|
22
|
-
headers: {},
|
|
23
|
-
message: '',
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return new FunctionResponse({ body: {}, statusCode: 200, headers: {}, message: '' });
|
|
16
|
+
): Promise<FunctionResponse<Output>> {
|
|
17
|
+
return handleTypedObjectListPageEvent(event, context, sessionDefinition);
|
|
28
18
|
}
|
|
@@ -1,28 +1,18 @@
|
|
|
1
|
-
import { FunctionContext, FunctionResponse
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionContext, FunctionResponse } from '@rippling/rippling-sdk';
|
|
2
|
+
import {
|
|
3
|
+
handleTypedObjectListPageEvent,
|
|
4
|
+
type TypedObjectListPageInput,
|
|
5
|
+
type TypedObjectListPageOutput,
|
|
6
|
+
} from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
7
|
+
import { trainerDefinition } from '../schema';
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
export type Input = TypedObjectListPageInput;
|
|
10
|
+
|
|
11
|
+
export type Output = TypedObjectListPageOutput;
|
|
5
12
|
|
|
6
13
|
export async function onRipplingEvent(
|
|
7
|
-
event:
|
|
14
|
+
event: Input,
|
|
8
15
|
context: FunctionContext,
|
|
9
|
-
): Promise<FunctionResponse
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (action === 'init') {
|
|
13
|
-
const spec = render({
|
|
14
|
-
root: ObjectListView({
|
|
15
|
-
props: { objectApiName: OBJECT },
|
|
16
|
-
}),
|
|
17
|
-
state: {},
|
|
18
|
-
});
|
|
19
|
-
return new FunctionResponse({
|
|
20
|
-
body: { spec: JSON.stringify(spec) },
|
|
21
|
-
statusCode: 200,
|
|
22
|
-
headers: {},
|
|
23
|
-
message: '',
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return new FunctionResponse({ body: {}, statusCode: 200, headers: {}, message: '' });
|
|
16
|
+
): Promise<FunctionResponse<Output>> {
|
|
17
|
+
return handleTypedObjectListPageEvent(event, context, trainerDefinition);
|
|
28
18
|
}
|