@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,248 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed custom-object schema definitions for the field service dispatch example.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
date,
|
|
7
|
+
datetime,
|
|
8
|
+
defineCustomObject,
|
|
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 field service dispatch example. */
|
|
20
|
+
export const FIELD_SERVICE_CATEGORY = 'field_service';
|
|
21
|
+
|
|
22
|
+
/** Customer-site schema used by assets and work orders. */
|
|
23
|
+
export const siteDefinition = defineCustomObject({
|
|
24
|
+
name: 'fs_customer_site',
|
|
25
|
+
displayName: 'Customer site',
|
|
26
|
+
pluralLabel: 'Customer sites',
|
|
27
|
+
category: FIELD_SERVICE_CATEGORY,
|
|
28
|
+
description: 'Customer location with service tier and access notes',
|
|
29
|
+
sections: {
|
|
30
|
+
site: section('Site', { sectionId: 'sec_fs_site' }),
|
|
31
|
+
},
|
|
32
|
+
fields: {
|
|
33
|
+
account_name: text({
|
|
34
|
+
displayName: 'Account name',
|
|
35
|
+
description: 'Customer account or property group',
|
|
36
|
+
required: true,
|
|
37
|
+
maxLength: 160,
|
|
38
|
+
section: 'site',
|
|
39
|
+
}),
|
|
40
|
+
service_address: longText({
|
|
41
|
+
displayName: 'Service address',
|
|
42
|
+
description: 'Address, gate code, and arrival instructions',
|
|
43
|
+
maxLength: 3000,
|
|
44
|
+
section: 'site',
|
|
45
|
+
}),
|
|
46
|
+
service_tier: radio({
|
|
47
|
+
displayName: 'Service tier',
|
|
48
|
+
description: 'SLA tier for dispatch prioritization',
|
|
49
|
+
options: ['Standard', 'Premium', 'Critical 24x7'],
|
|
50
|
+
required: true,
|
|
51
|
+
section: 'site',
|
|
52
|
+
}),
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/** Installed-asset schema tied to a customer site. */
|
|
57
|
+
export const assetDefinition = defineCustomObject({
|
|
58
|
+
name: 'fs_asset',
|
|
59
|
+
displayName: 'Asset',
|
|
60
|
+
pluralLabel: 'Assets',
|
|
61
|
+
category: FIELD_SERVICE_CATEGORY,
|
|
62
|
+
description: 'Installed equipment maintained at a customer site',
|
|
63
|
+
sections: {
|
|
64
|
+
asset: section('Asset', { sectionId: 'sec_fs_asset' }),
|
|
65
|
+
},
|
|
66
|
+
fields: {
|
|
67
|
+
customer_site_ref: parentChild(siteDefinition, {
|
|
68
|
+
displayName: 'Customer site',
|
|
69
|
+
description: 'Site where this asset is installed',
|
|
70
|
+
relatedDataLabel: 'Assets',
|
|
71
|
+
parentChildType: 'PRIMARY',
|
|
72
|
+
enableParentOwnerInheritance: false,
|
|
73
|
+
section: 'asset',
|
|
74
|
+
}),
|
|
75
|
+
serial_number: text({
|
|
76
|
+
displayName: 'Serial number',
|
|
77
|
+
description: 'Manufacturer serial number',
|
|
78
|
+
maxLength: 80,
|
|
79
|
+
section: 'asset',
|
|
80
|
+
}),
|
|
81
|
+
asset_type: radio({
|
|
82
|
+
displayName: 'Asset type',
|
|
83
|
+
description: 'Equipment category',
|
|
84
|
+
options: ['HVAC', 'Generator', 'Security', 'Network', 'Kitchen equipment', 'Other'],
|
|
85
|
+
required: true,
|
|
86
|
+
section: 'asset',
|
|
87
|
+
}),
|
|
88
|
+
warranty_end: date({
|
|
89
|
+
displayName: 'Warranty end',
|
|
90
|
+
description: 'Warranty expiration date',
|
|
91
|
+
section: 'asset',
|
|
92
|
+
}),
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/** Work-order schema tied to a customer site and optional asset. */
|
|
97
|
+
export const workOrderDefinition = defineCustomObject({
|
|
98
|
+
name: 'fs_work_order',
|
|
99
|
+
displayName: 'Work order',
|
|
100
|
+
pluralLabel: 'Work orders',
|
|
101
|
+
category: FIELD_SERVICE_CATEGORY,
|
|
102
|
+
description: 'Dispatch job with schedule, priority, and status',
|
|
103
|
+
sections: {
|
|
104
|
+
work_order: section('Work order', { sectionId: 'sec_fs_work_order' }),
|
|
105
|
+
},
|
|
106
|
+
fields: {
|
|
107
|
+
customer_site_ref: parentChild(siteDefinition, {
|
|
108
|
+
displayName: 'Customer site',
|
|
109
|
+
description: 'Site receiving service',
|
|
110
|
+
relatedDataLabel: 'Work orders',
|
|
111
|
+
parentChildType: 'PRIMARY',
|
|
112
|
+
enableParentOwnerInheritance: false,
|
|
113
|
+
section: 'work_order',
|
|
114
|
+
}),
|
|
115
|
+
asset_ref: lookup(assetDefinition, {
|
|
116
|
+
displayName: 'Asset',
|
|
117
|
+
description: 'Optional installed asset being serviced',
|
|
118
|
+
relatedDataLabel: 'Work orders',
|
|
119
|
+
section: 'work_order',
|
|
120
|
+
}),
|
|
121
|
+
priority: radio({
|
|
122
|
+
displayName: 'Priority',
|
|
123
|
+
description: 'Dispatch priority',
|
|
124
|
+
options: ['Low', 'Normal', 'High', 'Emergency'],
|
|
125
|
+
required: true,
|
|
126
|
+
section: 'work_order',
|
|
127
|
+
}),
|
|
128
|
+
status: radio({
|
|
129
|
+
displayName: 'Status',
|
|
130
|
+
description: 'Current dispatch status',
|
|
131
|
+
options: ['New', 'Scheduled', 'In progress', 'Blocked', 'Complete', 'Cancelled'],
|
|
132
|
+
required: true,
|
|
133
|
+
section: 'work_order',
|
|
134
|
+
}),
|
|
135
|
+
scheduled_start: datetime({
|
|
136
|
+
displayName: 'Scheduled start',
|
|
137
|
+
description: 'Planned arrival window start',
|
|
138
|
+
section: 'work_order',
|
|
139
|
+
}),
|
|
140
|
+
scheduled_end: datetime({
|
|
141
|
+
displayName: 'Scheduled end',
|
|
142
|
+
description: 'Planned arrival window end',
|
|
143
|
+
section: 'work_order',
|
|
144
|
+
}),
|
|
145
|
+
problem_summary: longText({
|
|
146
|
+
displayName: 'Problem summary',
|
|
147
|
+
description: 'Customer-reported issue and triage notes',
|
|
148
|
+
maxLength: 6000,
|
|
149
|
+
section: 'work_order',
|
|
150
|
+
}),
|
|
151
|
+
dispatch_label: formula.text({
|
|
152
|
+
displayName: 'Dispatch label',
|
|
153
|
+
description: 'Compact board label',
|
|
154
|
+
formula: "CONCATENATE(priority__c, ' - ', status__c)",
|
|
155
|
+
maxLength: 240,
|
|
156
|
+
section: 'work_order',
|
|
157
|
+
}),
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
/** Task schema tied to a parent work order. */
|
|
162
|
+
export const taskDefinition = defineCustomObject({
|
|
163
|
+
name: 'fs_task',
|
|
164
|
+
displayName: 'Task',
|
|
165
|
+
pluralLabel: 'Tasks',
|
|
166
|
+
category: FIELD_SERVICE_CATEGORY,
|
|
167
|
+
description: 'Work order task with labor estimate and completion state',
|
|
168
|
+
sections: {
|
|
169
|
+
task: section('Task', { sectionId: 'sec_fs_task' }),
|
|
170
|
+
},
|
|
171
|
+
fields: {
|
|
172
|
+
work_order_ref: parentChild(workOrderDefinition, {
|
|
173
|
+
displayName: 'Work order',
|
|
174
|
+
description: 'Work order this task belongs to',
|
|
175
|
+
relatedDataLabel: 'Tasks',
|
|
176
|
+
parentChildType: 'PRIMARY',
|
|
177
|
+
enableParentOwnerInheritance: true,
|
|
178
|
+
section: 'task',
|
|
179
|
+
}),
|
|
180
|
+
task_type: radio({
|
|
181
|
+
displayName: 'Task type',
|
|
182
|
+
description: 'Type of work required',
|
|
183
|
+
options: ['Inspect', 'Repair', 'Replace', 'Calibrate', 'Clean', 'Customer walkthrough'],
|
|
184
|
+
required: true,
|
|
185
|
+
section: 'task',
|
|
186
|
+
}),
|
|
187
|
+
status: radio({
|
|
188
|
+
displayName: 'Status',
|
|
189
|
+
description: 'Task status',
|
|
190
|
+
options: ['Open', 'In progress', 'Blocked', 'Done'],
|
|
191
|
+
required: true,
|
|
192
|
+
section: 'task',
|
|
193
|
+
}),
|
|
194
|
+
estimated_hours: number({
|
|
195
|
+
displayName: 'Estimated hours',
|
|
196
|
+
description: 'Labor estimate for this task',
|
|
197
|
+
decimalPlaces: 2,
|
|
198
|
+
section: 'task',
|
|
199
|
+
}),
|
|
200
|
+
completed_at: datetime({
|
|
201
|
+
displayName: 'Completed at',
|
|
202
|
+
description: 'Completion timestamp',
|
|
203
|
+
section: 'task',
|
|
204
|
+
}),
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
/** Part-usage schema tied to a parent task. */
|
|
209
|
+
export const partUsageDefinition = defineCustomObject({
|
|
210
|
+
name: 'fs_part_usage',
|
|
211
|
+
displayName: 'Part usage',
|
|
212
|
+
pluralLabel: 'Part usage',
|
|
213
|
+
category: FIELD_SERVICE_CATEGORY,
|
|
214
|
+
description: 'Part consumed while completing a task',
|
|
215
|
+
sections: {
|
|
216
|
+
part_usage: section('Part usage', { sectionId: 'sec_fs_part_usage' }),
|
|
217
|
+
},
|
|
218
|
+
fields: {
|
|
219
|
+
task_ref: parentChild(taskDefinition, {
|
|
220
|
+
displayName: 'Task',
|
|
221
|
+
description: 'Task that consumed this part',
|
|
222
|
+
relatedDataLabel: 'Parts used',
|
|
223
|
+
parentChildType: 'PRIMARY',
|
|
224
|
+
enableParentOwnerInheritance: true,
|
|
225
|
+
section: 'part_usage',
|
|
226
|
+
}),
|
|
227
|
+
sku: text({
|
|
228
|
+
displayName: 'SKU',
|
|
229
|
+
description: 'Inventory SKU or part number',
|
|
230
|
+
maxLength: 80,
|
|
231
|
+
required: true,
|
|
232
|
+
section: 'part_usage',
|
|
233
|
+
}),
|
|
234
|
+
quantity: number({
|
|
235
|
+
displayName: 'Quantity',
|
|
236
|
+
description: 'Quantity consumed',
|
|
237
|
+
decimalPlaces: 2,
|
|
238
|
+
required: true,
|
|
239
|
+
section: 'part_usage',
|
|
240
|
+
}),
|
|
241
|
+
unit_cost_cents: number({
|
|
242
|
+
displayName: 'Unit cost (cents)',
|
|
243
|
+
description: 'Unit material cost in cents',
|
|
244
|
+
decimalPlaces: 0,
|
|
245
|
+
section: 'part_usage',
|
|
246
|
+
}),
|
|
247
|
+
},
|
|
248
|
+
});
|