@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
package/resources/levels.d.ts
CHANGED
|
@@ -16,10 +16,22 @@ export declare class Levels extends APIResource {
|
|
|
16
16
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
17
17
|
*/
|
|
18
18
|
list(query?: LevelListParams | null | undefined, options?: RequestOptions): PagePromise<LevelsPageCursorURL, Level>;
|
|
19
|
+
/**
|
|
20
|
+
* Create a new level
|
|
21
|
+
*/
|
|
22
|
+
create(body: LevelCreateParams, options?: RequestOptions): APIPromise<Level>;
|
|
19
23
|
/**
|
|
20
24
|
* Retrieve a specific level
|
|
21
25
|
*/
|
|
22
26
|
retrieve(id: string, query?: LevelRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LevelRetrieveResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Update a specific level.
|
|
29
|
+
*/
|
|
30
|
+
update(id: string, body?: LevelUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Level>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete a level
|
|
33
|
+
*/
|
|
34
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
23
35
|
}
|
|
24
36
|
export type LevelsPageCursorURL = PageCursorURL<Level>;
|
|
25
37
|
export interface Level {
|
|
@@ -43,6 +55,10 @@ export interface Level {
|
|
|
43
55
|
* The description of the level.
|
|
44
56
|
*/
|
|
45
57
|
description?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The experience requirements for the level.
|
|
60
|
+
*/
|
|
61
|
+
experience_requirements?: string;
|
|
46
62
|
/**
|
|
47
63
|
* Global level is used to track the seniority of levels. The higher up a level is
|
|
48
64
|
* placed on the page, the more senior and higher-ranked the level. Global level is
|
|
@@ -65,6 +81,10 @@ export interface Level {
|
|
|
65
81
|
* The rank of the level within its track.
|
|
66
82
|
*/
|
|
67
83
|
rank?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The scope of responsibilities for the level.
|
|
86
|
+
*/
|
|
87
|
+
scope_of_responsibilities?: string;
|
|
68
88
|
/**
|
|
69
89
|
* The track associated with the level, if it's not a global level.
|
|
70
90
|
*
|
|
@@ -72,7 +92,8 @@ export interface Level {
|
|
|
72
92
|
*/
|
|
73
93
|
track?: TracksAPI.Track;
|
|
74
94
|
/**
|
|
75
|
-
* The track associated with the level
|
|
95
|
+
* The track associated with the level. Required during creation and cannot be
|
|
96
|
+
* changed through this API.
|
|
76
97
|
*/
|
|
77
98
|
track_id?: string;
|
|
78
99
|
}
|
|
@@ -86,10 +107,51 @@ export interface LevelListParams {
|
|
|
86
107
|
expand?: string;
|
|
87
108
|
order_by?: string;
|
|
88
109
|
}
|
|
110
|
+
export interface LevelCreateParams {
|
|
111
|
+
/**
|
|
112
|
+
* The name of the level. Must be unique within the company or organization.
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
/**
|
|
116
|
+
* The track associated with the level. Required during creation and cannot be
|
|
117
|
+
* changed through this API.
|
|
118
|
+
*/
|
|
119
|
+
track_id: string;
|
|
120
|
+
/**
|
|
121
|
+
* The description of the level.
|
|
122
|
+
*/
|
|
123
|
+
description?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The experience requirements for the level.
|
|
126
|
+
*/
|
|
127
|
+
experience_requirements?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The scope of responsibilities for the level.
|
|
130
|
+
*/
|
|
131
|
+
scope_of_responsibilities?: string;
|
|
132
|
+
}
|
|
89
133
|
export interface LevelRetrieveParams {
|
|
90
134
|
expand?: string;
|
|
91
135
|
}
|
|
136
|
+
export interface LevelUpdateParams {
|
|
137
|
+
/**
|
|
138
|
+
* The description of the level.
|
|
139
|
+
*/
|
|
140
|
+
description?: string;
|
|
141
|
+
/**
|
|
142
|
+
* The experience requirements for the level.
|
|
143
|
+
*/
|
|
144
|
+
experience_requirements?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the level. Must be unique within the company or organization.
|
|
147
|
+
*/
|
|
148
|
+
name?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The scope of responsibilities for the level.
|
|
151
|
+
*/
|
|
152
|
+
scope_of_responsibilities?: string;
|
|
153
|
+
}
|
|
92
154
|
export declare namespace Levels {
|
|
93
|
-
export { type Level as Level, type LevelRetrieveResponse as LevelRetrieveResponse, type LevelsPageCursorURL as LevelsPageCursorURL, type LevelListParams as LevelListParams, type LevelRetrieveParams as LevelRetrieveParams, };
|
|
155
|
+
export { type Level as Level, type LevelRetrieveResponse as LevelRetrieveResponse, type LevelsPageCursorURL as LevelsPageCursorURL, type LevelListParams as LevelListParams, type LevelCreateParams as LevelCreateParams, type LevelRetrieveParams as LevelRetrieveParams, type LevelUpdateParams as LevelUpdateParams, };
|
|
94
156
|
}
|
|
95
157
|
//# sourceMappingURL=levels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"levels.d.ts","sourceRoot":"","sources":["../src/resources/levels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;
|
|
1
|
+
{"version":3,"file":"levels.d.ts","sourceRoot":"","sources":["../src/resources/levels.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAEhE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mBAAmB,EAAE,KAAK,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|
|
|
4
4
|
exports.Levels = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Levels and tracks used by the company for workers
|
|
@@ -19,12 +20,33 @@ class Levels extends resource_1.APIResource {
|
|
|
19
20
|
list(query = {}, options) {
|
|
20
21
|
return this._client.getAPIList('/levels/', (pagination_1.PageCursorURL), { query, ...options });
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a new level
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/levels/', { body, ...options });
|
|
28
|
+
}
|
|
22
29
|
/**
|
|
23
30
|
* Retrieve a specific level
|
|
24
31
|
*/
|
|
25
32
|
retrieve(id, query = {}, options) {
|
|
26
33
|
return this._client.get((0, path_1.path) `/levels/${id}/`, { query, ...options });
|
|
27
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Update a specific level.
|
|
37
|
+
*/
|
|
38
|
+
update(id, body = {}, options) {
|
|
39
|
+
return this._client.patch((0, path_1.path) `/levels/${id}/`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Delete a level
|
|
43
|
+
*/
|
|
44
|
+
delete(id, options) {
|
|
45
|
+
return this._client.delete((0, path_1.path) `/levels/${id}/`, {
|
|
46
|
+
...options,
|
|
47
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
28
50
|
}
|
|
29
51
|
exports.Levels = Levels;
|
|
30
52
|
//# sourceMappingURL=levels.js.map
|
package/resources/levels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"levels.js","sourceRoot":"","sources":["../src/resources/levels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAE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AC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AArDD,wBAqDC"}
|
package/resources/levels.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Levels and tracks used by the company for workers
|
|
@@ -16,11 +17,32 @@ export class Levels extends APIResource {
|
|
|
16
17
|
list(query = {}, options) {
|
|
17
18
|
return this._client.getAPIList('/levels/', (PageCursorURL), { query, ...options });
|
|
18
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a new level
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/levels/', { body, ...options });
|
|
25
|
+
}
|
|
19
26
|
/**
|
|
20
27
|
* Retrieve a specific level
|
|
21
28
|
*/
|
|
22
29
|
retrieve(id, query = {}, options) {
|
|
23
30
|
return this._client.get(path `/levels/${id}/`, { query, ...options });
|
|
24
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Update a specific level.
|
|
34
|
+
*/
|
|
35
|
+
update(id, body = {}, options) {
|
|
36
|
+
return this._client.patch(path `/levels/${id}/`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Delete a level
|
|
40
|
+
*/
|
|
41
|
+
delete(id, options) {
|
|
42
|
+
return this._client.delete(path `/levels/${id}/`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
25
47
|
}
|
|
26
48
|
//# sourceMappingURL=levels.mjs.map
|
package/resources/levels.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"levels.mjs","sourceRoot":"","sources":["../src/resources/levels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;
|
|
1
|
+
{"version":3,"file":"levels.mjs","sourceRoot":"","sources":["../src/resources/levels.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;OAMG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,aAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/tracks.d.mts
CHANGED
|
@@ -14,10 +14,22 @@ export declare class Tracks extends APIResource {
|
|
|
14
14
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
15
|
*/
|
|
16
16
|
list(query?: TrackListParams | null | undefined, options?: RequestOptions): PagePromise<TracksPageCursorURL, Track>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a new track
|
|
19
|
+
*/
|
|
20
|
+
create(body: TrackCreateParams, options?: RequestOptions): APIPromise<Track>;
|
|
17
21
|
/**
|
|
18
22
|
* Retrieve a specific track
|
|
19
23
|
*/
|
|
20
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<TrackRetrieveResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update a specific track.
|
|
27
|
+
*/
|
|
28
|
+
update(id: string, body?: TrackUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Track>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a track
|
|
31
|
+
*/
|
|
32
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
21
33
|
}
|
|
22
34
|
export type TracksPageCursorURL = PageCursorURL<Track>;
|
|
23
35
|
export interface Track {
|
|
@@ -37,6 +49,18 @@ export interface Track {
|
|
|
37
49
|
* Record update date
|
|
38
50
|
*/
|
|
39
51
|
updated_at: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether this is the company's default track.
|
|
54
|
+
*/
|
|
55
|
+
is_default?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The one-based horizontal display order of the track.
|
|
58
|
+
*/
|
|
59
|
+
order?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The highest global level occupied by this track. Empty tracks return null.
|
|
62
|
+
*/
|
|
63
|
+
start_global_level?: number;
|
|
40
64
|
}
|
|
41
65
|
/**
|
|
42
66
|
* Meta information for the response.
|
|
@@ -47,7 +71,27 @@ export interface TrackListParams {
|
|
|
47
71
|
cursor?: string;
|
|
48
72
|
order_by?: string;
|
|
49
73
|
}
|
|
74
|
+
export interface TrackCreateParams {
|
|
75
|
+
/**
|
|
76
|
+
* The name of the track. Must be unique within the company or organization.
|
|
77
|
+
*/
|
|
78
|
+
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* The one-based horizontal display order of the track.
|
|
81
|
+
*/
|
|
82
|
+
order?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface TrackUpdateParams {
|
|
85
|
+
/**
|
|
86
|
+
* The name of the track. Must be unique within the company or organization.
|
|
87
|
+
*/
|
|
88
|
+
name?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The one-based horizontal display order of the track.
|
|
91
|
+
*/
|
|
92
|
+
order?: number;
|
|
93
|
+
}
|
|
50
94
|
export declare namespace Tracks {
|
|
51
|
-
export { type Track as Track, type TrackRetrieveResponse as TrackRetrieveResponse, type TracksPageCursorURL as TracksPageCursorURL, type TrackListParams as TrackListParams, };
|
|
95
|
+
export { type Track as Track, type TrackRetrieveResponse as TrackRetrieveResponse, type TracksPageCursorURL as TracksPageCursorURL, type TrackListParams as TrackListParams, type TrackCreateParams as TrackCreateParams, type TrackUpdateParams as TrackUpdateParams, };
|
|
52
96
|
}
|
|
53
97
|
//# sourceMappingURL=tracks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracks.d.mts","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":"AAEA,OAAO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OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,mBAAmB,CAAC,IAAI,EAAE,KAAK;CAAG;AAEjF,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/tracks.d.ts
CHANGED
|
@@ -14,10 +14,22 @@ export declare class Tracks extends APIResource {
|
|
|
14
14
|
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
15
15
|
*/
|
|
16
16
|
list(query?: TrackListParams | null | undefined, options?: RequestOptions): PagePromise<TracksPageCursorURL, Track>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a new track
|
|
19
|
+
*/
|
|
20
|
+
create(body: TrackCreateParams, options?: RequestOptions): APIPromise<Track>;
|
|
17
21
|
/**
|
|
18
22
|
* Retrieve a specific track
|
|
19
23
|
*/
|
|
20
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<TrackRetrieveResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update a specific track.
|
|
27
|
+
*/
|
|
28
|
+
update(id: string, body?: TrackUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Track>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete a track
|
|
31
|
+
*/
|
|
32
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
21
33
|
}
|
|
22
34
|
export type TracksPageCursorURL = PageCursorURL<Track>;
|
|
23
35
|
export interface Track {
|
|
@@ -37,6 +49,18 @@ export interface Track {
|
|
|
37
49
|
* Record update date
|
|
38
50
|
*/
|
|
39
51
|
updated_at: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether this is the company's default track.
|
|
54
|
+
*/
|
|
55
|
+
is_default?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The one-based horizontal display order of the track.
|
|
58
|
+
*/
|
|
59
|
+
order?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The highest global level occupied by this track. Empty tracks return null.
|
|
62
|
+
*/
|
|
63
|
+
start_global_level?: number;
|
|
40
64
|
}
|
|
41
65
|
/**
|
|
42
66
|
* Meta information for the response.
|
|
@@ -47,7 +71,27 @@ export interface TrackListParams {
|
|
|
47
71
|
cursor?: string;
|
|
48
72
|
order_by?: string;
|
|
49
73
|
}
|
|
74
|
+
export interface TrackCreateParams {
|
|
75
|
+
/**
|
|
76
|
+
* The name of the track. Must be unique within the company or organization.
|
|
77
|
+
*/
|
|
78
|
+
name: string;
|
|
79
|
+
/**
|
|
80
|
+
* The one-based horizontal display order of the track.
|
|
81
|
+
*/
|
|
82
|
+
order?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface TrackUpdateParams {
|
|
85
|
+
/**
|
|
86
|
+
* The name of the track. Must be unique within the company or organization.
|
|
87
|
+
*/
|
|
88
|
+
name?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The one-based horizontal display order of the track.
|
|
91
|
+
*/
|
|
92
|
+
order?: number;
|
|
93
|
+
}
|
|
50
94
|
export declare namespace Tracks {
|
|
51
|
-
export { type Track as Track, type TrackRetrieveResponse as TrackRetrieveResponse, type TracksPageCursorURL as TracksPageCursorURL, type TrackListParams as TrackListParams, };
|
|
95
|
+
export { type Track as Track, type TrackRetrieveResponse as TrackRetrieveResponse, type TracksPageCursorURL as TracksPageCursorURL, type TrackListParams as TrackListParams, type TrackCreateParams as TrackCreateParams, type TrackUpdateParams as TrackUpdateParams, };
|
|
52
96
|
}
|
|
53
97
|
//# sourceMappingURL=tracks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracks.d.ts","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;
|
|
1
|
+
{"version":3,"file":"tracks.d.ts","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAEhE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,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;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/tracks.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Tracks = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
9
10
|
* Levels and tracks used by the company for workers
|
|
@@ -18,12 +19,33 @@ class Tracks extends resource_1.APIResource {
|
|
|
18
19
|
list(query = {}, options) {
|
|
19
20
|
return this._client.getAPIList('/tracks/', (pagination_1.PageCursorURL), { query, ...options });
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new track
|
|
24
|
+
*/
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this._client.post('/tracks/', { body, ...options });
|
|
27
|
+
}
|
|
21
28
|
/**
|
|
22
29
|
* Retrieve a specific track
|
|
23
30
|
*/
|
|
24
31
|
retrieve(id, options) {
|
|
25
32
|
return this._client.get((0, path_1.path) `/tracks/${id}/`, options);
|
|
26
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Update a specific track.
|
|
36
|
+
*/
|
|
37
|
+
update(id, body = {}, options) {
|
|
38
|
+
return this._client.patch((0, path_1.path) `/tracks/${id}/`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete a track
|
|
42
|
+
*/
|
|
43
|
+
delete(id, options) {
|
|
44
|
+
return this._client.delete((0, path_1.path) `/tracks/${id}/`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
27
49
|
}
|
|
28
50
|
exports.Tracks = Tracks;
|
|
29
51
|
//# sourceMappingURL=tracks.js.map
|
package/resources/tracks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracks.js","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;
|
|
1
|
+
{"version":3,"file":"tracks.js","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAChE,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,0BAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,EAAE,GAAG,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAhDD,wBAgDC"}
|
package/resources/tracks.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Levels and tracks used by the company for workers
|
|
@@ -15,11 +16,32 @@ export class Tracks extends APIResource {
|
|
|
15
16
|
list(query = {}, options) {
|
|
16
17
|
return this._client.getAPIList('/tracks/', (PageCursorURL), { query, ...options });
|
|
17
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a new track
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/tracks/', { body, ...options });
|
|
24
|
+
}
|
|
18
25
|
/**
|
|
19
26
|
* Retrieve a specific track
|
|
20
27
|
*/
|
|
21
28
|
retrieve(id, options) {
|
|
22
29
|
return this._client.get(path `/tracks/${id}/`, options);
|
|
23
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Update a specific track.
|
|
33
|
+
*/
|
|
34
|
+
update(id, body = {}, options) {
|
|
35
|
+
return this._client.patch(path `/tracks/${id}/`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Delete a track
|
|
39
|
+
*/
|
|
40
|
+
delete(id, options) {
|
|
41
|
+
return this._client.delete(path `/tracks/${id}/`, {
|
|
42
|
+
...options,
|
|
43
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
24
46
|
}
|
|
25
47
|
//# sourceMappingURL=tracks.mjs.map
|
package/resources/tracks.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracks.mjs","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;
|
|
1
|
+
{"version":3,"file":"tracks.mjs","sourceRoot":"","sources":["../src/resources/tracks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,aAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,EAAE,GAAG,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -350,9 +350,11 @@ import {
|
|
|
350
350
|
} from './resources/legal-entities';
|
|
351
351
|
import {
|
|
352
352
|
Level,
|
|
353
|
+
LevelCreateParams,
|
|
353
354
|
LevelListParams,
|
|
354
355
|
LevelRetrieveParams,
|
|
355
356
|
LevelRetrieveResponse,
|
|
357
|
+
LevelUpdateParams,
|
|
356
358
|
Levels,
|
|
357
359
|
LevelsPageCursorURL,
|
|
358
360
|
} from './resources/levels';
|
|
@@ -488,8 +490,10 @@ import {
|
|
|
488
490
|
} from './resources/titles';
|
|
489
491
|
import {
|
|
490
492
|
Track,
|
|
493
|
+
TrackCreateParams,
|
|
491
494
|
TrackListParams,
|
|
492
495
|
TrackRetrieveResponse,
|
|
496
|
+
TrackUpdateParams,
|
|
493
497
|
Tracks,
|
|
494
498
|
TracksPageCursorURL,
|
|
495
499
|
} from './resources/tracks';
|
|
@@ -1841,7 +1845,9 @@ export declare namespace RipplingSDK {
|
|
|
1841
1845
|
type LevelRetrieveResponse as LevelRetrieveResponse,
|
|
1842
1846
|
type LevelsPageCursorURL as LevelsPageCursorURL,
|
|
1843
1847
|
type LevelListParams as LevelListParams,
|
|
1848
|
+
type LevelCreateParams as LevelCreateParams,
|
|
1844
1849
|
type LevelRetrieveParams as LevelRetrieveParams,
|
|
1850
|
+
type LevelUpdateParams as LevelUpdateParams,
|
|
1845
1851
|
};
|
|
1846
1852
|
|
|
1847
1853
|
export {
|
|
@@ -1917,6 +1923,8 @@ export declare namespace RipplingSDK {
|
|
|
1917
1923
|
type TrackRetrieveResponse as TrackRetrieveResponse,
|
|
1918
1924
|
type TracksPageCursorURL as TracksPageCursorURL,
|
|
1919
1925
|
type TrackListParams as TrackListParams,
|
|
1926
|
+
type TrackCreateParams as TrackCreateParams,
|
|
1927
|
+
type TrackUpdateParams as TrackUpdateParams,
|
|
1920
1928
|
};
|
|
1921
1929
|
|
|
1922
1930
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# `core/platform`
|
|
2
|
+
|
|
3
|
+
This directory holds public, higher-level platform abstractions that sit above the generated REST resources and above low-level manifest classes.
|
|
4
|
+
|
|
5
|
+
Use this layer for SDK capabilities that are:
|
|
6
|
+
|
|
7
|
+
- public and stable enough to be imported by SDK consumers
|
|
8
|
+
- opinionated or cross-cutting rather than raw transport wrappers
|
|
9
|
+
- centered on platform concepts such as custom objects, typed schemas, lifecycle helpers, record managers, or query helpers
|
|
10
|
+
|
|
11
|
+
In practice, the layering is:
|
|
12
|
+
|
|
13
|
+
- `src/resources/*` — generated REST resources and DTOs
|
|
14
|
+
- `src/lib/manifest/*` — low-level manifest authoring classes
|
|
15
|
+
- `src/core/platform/*` — higher-level typed/platform abstractions built on top of those surfaces
|
|
16
|
+
|
|
17
|
+
Current structure:
|
|
18
|
+
|
|
19
|
+
- `custom-objects/` — typed custom-object domain model, validation, provisioning, lifecycle, records, and RQL helpers
|
|
20
|
+
- `manifest/` — typed adapters that materialize platform-domain definitions into low-level manifest authoring surfaces
|