@rippling/rippling-sdk 0.2.0-alpha.83 → 0.2.0-alpha.85
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/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +44 -26
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +470 -142
- package/examples/manifest/dental-practice-management/functions/chair-schedule.ts +23 -13
- package/examples/manifest/dental-practice-management/functions/complete-visit.ts +55 -32
- package/examples/manifest/dental-practice-management/functions/operatory-list.ts +23 -13
- package/examples/manifest/dental-practice-management/functions/patient-list.ts +23 -13
- package/examples/manifest/dental-practice-management/functions/treatment-plan-list.ts +23 -13
- package/examples/manifest/existing-manifest-mutations/existing-manifest-mutations.ts +23 -68
- package/examples/manifest/field-service-dispatch/field-service-dispatch.ts +375 -102
- package/examples/manifest/grant-program-management/grant-program-management.ts +419 -125
- package/examples/manifest/gym-membership-management/functions/check-in-desk.ts +23 -13
- package/examples/manifest/gym-membership-management/functions/member-list.ts +23 -13
- package/examples/manifest/gym-membership-management/functions/today-schedule.ts +23 -13
- package/examples/manifest/gym-membership-management/functions/trainer-list.ts +23 -13
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +442 -92
- package/examples/manifest/procurement-approval-hub/procurement-approval-hub.ts +408 -122
- package/examples/manifest/simple-todo-app/functions/mark-done.ts +12 -16
- package/examples/manifest/simple-todo-app/functions/todo-list.ts +23 -13
- package/examples/manifest/simple-todo-app/simple-todo-app.ts +109 -40
- package/examples/manifest/todo-app-without-object-list-view/functions/todo-page.ts +193 -166
- package/examples/manifest/todo-app-without-object-list-view/todo-app-without-object-list-view.ts +47 -24
- package/package.json +13 -7
- package/resources/custom-objects/custom-objects.d.mts +0 -7
- package/resources/custom-objects/custom-objects.d.mts.map +1 -1
- package/resources/custom-objects/custom-objects.d.ts +0 -7
- 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 +14 -128
- package/resources/custom-objects/fields.d.mts.map +1 -1
- package/resources/custom-objects/fields.d.ts +14 -128
- package/resources/custom-objects/fields.d.ts.map +1 -1
- package/src/resources/custom-objects/custom-objects.ts +0 -8
- package/src/resources/custom-objects/fields.ts +13 -191
- 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/core/platform/custom-objects/category.d.mts +0 -125
- package/core/platform/custom-objects/category.d.mts.map +0 -1
- package/core/platform/custom-objects/category.d.ts +0 -125
- package/core/platform/custom-objects/category.d.ts.map +0 -1
- package/core/platform/custom-objects/category.js +0 -188
- package/core/platform/custom-objects/category.js.map +0 -1
- package/core/platform/custom-objects/category.mjs +0 -178
- package/core/platform/custom-objects/category.mjs.map +0 -1
- package/core/platform/custom-objects/definition.d.mts +0 -147
- package/core/platform/custom-objects/definition.d.mts.map +0 -1
- package/core/platform/custom-objects/definition.d.ts +0 -147
- package/core/platform/custom-objects/definition.d.ts.map +0 -1
- package/core/platform/custom-objects/definition.js +0 -200
- package/core/platform/custom-objects/definition.js.map +0 -1
- package/core/platform/custom-objects/definition.mjs +0 -190
- package/core/platform/custom-objects/definition.mjs.map +0 -1
- package/core/platform/custom-objects/fields.d.mts +0 -302
- package/core/platform/custom-objects/fields.d.mts.map +0 -1
- package/core/platform/custom-objects/fields.d.ts +0 -302
- package/core/platform/custom-objects/fields.d.ts.map +0 -1
- package/core/platform/custom-objects/fields.js +0 -369
- package/core/platform/custom-objects/fields.js.map +0 -1
- package/core/platform/custom-objects/fields.mjs +0 -347
- package/core/platform/custom-objects/fields.mjs.map +0 -1
- package/core/platform/custom-objects/function-runtime.d.mts +0 -42
- package/core/platform/custom-objects/function-runtime.d.mts.map +0 -1
- package/core/platform/custom-objects/function-runtime.d.ts +0 -42
- package/core/platform/custom-objects/function-runtime.d.ts.map +0 -1
- package/core/platform/custom-objects/function-runtime.js +0 -38
- package/core/platform/custom-objects/function-runtime.js.map +0 -1
- package/core/platform/custom-objects/function-runtime.mjs +0 -35
- package/core/platform/custom-objects/function-runtime.mjs.map +0 -1
- package/core/platform/custom-objects/lifecycle.d.mts +0 -83
- package/core/platform/custom-objects/lifecycle.d.mts.map +0 -1
- package/core/platform/custom-objects/lifecycle.d.ts +0 -83
- package/core/platform/custom-objects/lifecycle.d.ts.map +0 -1
- package/core/platform/custom-objects/lifecycle.js +0 -372
- package/core/platform/custom-objects/lifecycle.js.map +0 -1
- package/core/platform/custom-objects/lifecycle.mjs +0 -367
- package/core/platform/custom-objects/lifecycle.mjs.map +0 -1
- package/core/platform/custom-objects/manager.d.mts +0 -354
- package/core/platform/custom-objects/manager.d.mts.map +0 -1
- package/core/platform/custom-objects/manager.d.ts +0 -354
- package/core/platform/custom-objects/manager.d.ts.map +0 -1
- package/core/platform/custom-objects/manager.js +0 -646
- package/core/platform/custom-objects/manager.js.map +0 -1
- package/core/platform/custom-objects/manager.mjs +0 -637
- package/core/platform/custom-objects/manager.mjs.map +0 -1
- package/core/platform/custom-objects/provisioning.d.mts +0 -138
- package/core/platform/custom-objects/provisioning.d.mts.map +0 -1
- package/core/platform/custom-objects/provisioning.d.ts +0 -138
- package/core/platform/custom-objects/provisioning.d.ts.map +0 -1
- package/core/platform/custom-objects/provisioning.js +0 -455
- package/core/platform/custom-objects/provisioning.js.map +0 -1
- package/core/platform/custom-objects/provisioning.mjs +0 -447
- package/core/platform/custom-objects/provisioning.mjs.map +0 -1
- package/core/platform/custom-objects/rql.d.mts +0 -122
- package/core/platform/custom-objects/rql.d.mts.map +0 -1
- package/core/platform/custom-objects/rql.d.ts +0 -122
- package/core/platform/custom-objects/rql.d.ts.map +0 -1
- package/core/platform/custom-objects/rql.js +0 -225
- package/core/platform/custom-objects/rql.js.map +0 -1
- package/core/platform/custom-objects/rql.mjs +0 -222
- package/core/platform/custom-objects/rql.mjs.map +0 -1
- package/core/platform/custom-objects/schema-manager.d.mts +0 -203
- package/core/platform/custom-objects/schema-manager.d.mts.map +0 -1
- package/core/platform/custom-objects/schema-manager.d.ts +0 -203
- package/core/platform/custom-objects/schema-manager.d.ts.map +0 -1
- package/core/platform/custom-objects/schema-manager.js +0 -256
- package/core/platform/custom-objects/schema-manager.js.map +0 -1
- package/core/platform/custom-objects/schema-manager.mjs +0 -249
- package/core/platform/custom-objects/schema-manager.mjs.map +0 -1
- package/core/platform/custom-objects/typed-rql.d.mts +0 -157
- package/core/platform/custom-objects/typed-rql.d.mts.map +0 -1
- package/core/platform/custom-objects/typed-rql.d.ts +0 -157
- package/core/platform/custom-objects/typed-rql.d.ts.map +0 -1
- package/core/platform/custom-objects/typed-rql.js +0 -583
- package/core/platform/custom-objects/typed-rql.js.map +0 -1
- package/core/platform/custom-objects/typed-rql.mjs +0 -580
- package/core/platform/custom-objects/typed-rql.mjs.map +0 -1
- package/core/platform/custom-objects/types.d.mts +0 -549
- package/core/platform/custom-objects/types.d.mts.map +0 -1
- package/core/platform/custom-objects/types.d.ts +0 -549
- package/core/platform/custom-objects/types.d.ts.map +0 -1
- package/core/platform/custom-objects/types.js +0 -20
- package/core/platform/custom-objects/types.js.map +0 -1
- package/core/platform/custom-objects/types.mjs +0 -17
- package/core/platform/custom-objects/types.mjs.map +0 -1
- package/core/platform/custom-objects/validation.d.mts +0 -97
- package/core/platform/custom-objects/validation.d.mts.map +0 -1
- package/core/platform/custom-objects/validation.d.ts +0 -97
- package/core/platform/custom-objects/validation.d.ts.map +0 -1
- package/core/platform/custom-objects/validation.js +0 -477
- package/core/platform/custom-objects/validation.js.map +0 -1
- package/core/platform/custom-objects/validation.mjs +0 -465
- package/core/platform/custom-objects/validation.mjs.map +0 -1
- package/core/platform/custom-objects.d.mts +0 -67
- package/core/platform/custom-objects.d.mts.map +0 -1
- package/core/platform/custom-objects.d.ts +0 -67
- package/core/platform/custom-objects.d.ts.map +0 -1
- package/core/platform/custom-objects.js +0 -118
- package/core/platform/custom-objects.js.map +0 -1
- package/core/platform/custom-objects.mjs +0 -45
- package/core/platform/custom-objects.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/action.d.mts +0 -58
- package/core/platform/manifest/custom-objects/action.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/action.d.ts +0 -58
- package/core/platform/manifest/custom-objects/action.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/action.js +0 -44
- package/core/platform/manifest/custom-objects/action.js.map +0 -1
- package/core/platform/manifest/custom-objects/action.mjs +0 -40
- package/core/platform/manifest/custom-objects/action.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/conditions.d.mts +0 -240
- package/core/platform/manifest/custom-objects/conditions.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/conditions.d.ts +0 -240
- package/core/platform/manifest/custom-objects/conditions.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/conditions.js +0 -326
- package/core/platform/manifest/custom-objects/conditions.js.map +0 -1
- package/core/platform/manifest/custom-objects/conditions.mjs +0 -321
- package/core/platform/manifest/custom-objects/conditions.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/existing.d.mts +0 -87
- package/core/platform/manifest/custom-objects/existing.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/existing.d.ts +0 -87
- package/core/platform/manifest/custom-objects/existing.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/existing.js +0 -113
- package/core/platform/manifest/custom-objects/existing.js.map +0 -1
- package/core/platform/manifest/custom-objects/existing.mjs +0 -109
- package/core/platform/manifest/custom-objects/existing.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/field-resolution.d.mts +0 -48
- package/core/platform/manifest/custom-objects/field-resolution.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/field-resolution.d.ts +0 -48
- package/core/platform/manifest/custom-objects/field-resolution.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/field-resolution.js +0 -61
- package/core/platform/manifest/custom-objects/field-resolution.js.map +0 -1
- package/core/platform/manifest/custom-objects/field-resolution.mjs +0 -58
- package/core/platform/manifest/custom-objects/field-resolution.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/function-file.d.mts +0 -87
- package/core/platform/manifest/custom-objects/function-file.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/function-file.d.ts +0 -87
- package/core/platform/manifest/custom-objects/function-file.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/function-file.js +0 -76
- package/core/platform/manifest/custom-objects/function-file.js.map +0 -1
- package/core/platform/manifest/custom-objects/function-file.mjs +0 -69
- package/core/platform/manifest/custom-objects/function-file.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/list-view.d.mts +0 -65
- package/core/platform/manifest/custom-objects/list-view.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/list-view.d.ts +0 -65
- package/core/platform/manifest/custom-objects/list-view.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/list-view.js +0 -33
- package/core/platform/manifest/custom-objects/list-view.js.map +0 -1
- package/core/platform/manifest/custom-objects/list-view.mjs +0 -30
- package/core/platform/manifest/custom-objects/list-view.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/object-list-page.d.mts +0 -43
- package/core/platform/manifest/custom-objects/object-list-page.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/object-list-page.d.ts +0 -43
- package/core/platform/manifest/custom-objects/object-list-page.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/object-list-page.js +0 -54
- package/core/platform/manifest/custom-objects/object-list-page.js.map +0 -1
- package/core/platform/manifest/custom-objects/object-list-page.mjs +0 -50
- package/core/platform/manifest/custom-objects/object-list-page.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/page-layout.d.mts +0 -142
- package/core/platform/manifest/custom-objects/page-layout.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/page-layout.d.ts +0 -142
- package/core/platform/manifest/custom-objects/page-layout.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/page-layout.js +0 -184
- package/core/platform/manifest/custom-objects/page-layout.js.map +0 -1
- package/core/platform/manifest/custom-objects/page-layout.mjs +0 -180
- package/core/platform/manifest/custom-objects/page-layout.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/register.d.mts +0 -87
- package/core/platform/manifest/custom-objects/register.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/register.d.ts +0 -87
- package/core/platform/manifest/custom-objects/register.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/register.js +0 -395
- package/core/platform/manifest/custom-objects/register.js.map +0 -1
- package/core/platform/manifest/custom-objects/register.mjs +0 -391
- package/core/platform/manifest/custom-objects/register.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/rule.d.mts +0 -113
- package/core/platform/manifest/custom-objects/rule.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/rule.d.ts +0 -113
- package/core/platform/manifest/custom-objects/rule.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/rule.js +0 -49
- package/core/platform/manifest/custom-objects/rule.js.map +0 -1
- package/core/platform/manifest/custom-objects/rule.mjs +0 -45
- package/core/platform/manifest/custom-objects/rule.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/sdui-page.d.mts +0 -214
- package/core/platform/manifest/custom-objects/sdui-page.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/sdui-page.d.ts +0 -214
- package/core/platform/manifest/custom-objects/sdui-page.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/sdui-page.js +0 -194
- package/core/platform/manifest/custom-objects/sdui-page.js.map +0 -1
- package/core/platform/manifest/custom-objects/sdui-page.mjs +0 -182
- package/core/platform/manifest/custom-objects/sdui-page.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/typed-condition.d.mts +0 -28
- package/core/platform/manifest/custom-objects/typed-condition.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/typed-condition.d.ts +0 -28
- package/core/platform/manifest/custom-objects/typed-condition.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/typed-condition.js +0 -434
- package/core/platform/manifest/custom-objects/typed-condition.js.map +0 -1
- package/core/platform/manifest/custom-objects/typed-condition.mjs +0 -431
- package/core/platform/manifest/custom-objects/typed-condition.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/types.d.mts +0 -29
- package/core/platform/manifest/custom-objects/types.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/types.d.ts +0 -29
- package/core/platform/manifest/custom-objects/types.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/types.js +0 -3
- package/core/platform/manifest/custom-objects/types.js.map +0 -1
- package/core/platform/manifest/custom-objects/types.mjs +0 -2
- package/core/platform/manifest/custom-objects/types.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/validation.d.mts +0 -44
- package/core/platform/manifest/custom-objects/validation.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/validation.d.ts +0 -44
- package/core/platform/manifest/custom-objects/validation.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/validation.js +0 -30
- package/core/platform/manifest/custom-objects/validation.js.map +0 -1
- package/core/platform/manifest/custom-objects/validation.mjs +0 -27
- package/core/platform/manifest/custom-objects/validation.mjs.map +0 -1
- package/core/platform/manifest/custom-objects/workflow.d.mts +0 -47
- package/core/platform/manifest/custom-objects/workflow.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects/workflow.d.ts +0 -47
- package/core/platform/manifest/custom-objects/workflow.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects/workflow.js +0 -38
- package/core/platform/manifest/custom-objects/workflow.js.map +0 -1
- package/core/platform/manifest/custom-objects/workflow.mjs +0 -34
- package/core/platform/manifest/custom-objects/workflow.mjs.map +0 -1
- package/core/platform/manifest/custom-objects.d.mts +0 -85
- package/core/platform/manifest/custom-objects.d.mts.map +0 -1
- package/core/platform/manifest/custom-objects.d.ts +0 -85
- package/core/platform/manifest/custom-objects.d.ts.map +0 -1
- package/core/platform/manifest/custom-objects.js +0 -84
- package/core/platform/manifest/custom-objects.js.map +0 -1
- package/core/platform/manifest/custom-objects.mjs +0 -55
- package/core/platform/manifest/custom-objects.mjs.map +0 -1
- package/examples/manifest/custom-object-creation-workflow/functions/intake-request-created.ts +0 -20
- package/examples/manifest/custom-object-creation-workflow/schema.ts +0 -29
- package/examples/manifest/dental-practice-management/schema.ts +0 -298
- package/examples/manifest/field-service-dispatch/schema.ts +0 -248
- package/examples/manifest/grant-program-management/schema.ts +0 -269
- package/examples/manifest/gym-membership-management/schema.ts +0 -266
- package/examples/manifest/procurement-approval-hub/functions/route-purchase-request.ts +0 -20
- package/examples/manifest/procurement-approval-hub/schema.ts +0 -256
- package/examples/manifest/simple-todo-app/schema.ts +0 -60
- package/examples/manifest/todo-app-without-object-list-view/schema.ts +0 -28
- package/src/core/platform/README.md +0 -20
- package/src/core/platform/custom-objects/category.ts +0 -294
- package/src/core/platform/custom-objects/definition.ts +0 -373
- package/src/core/platform/custom-objects/fields.ts +0 -653
- package/src/core/platform/custom-objects/function-runtime.ts +0 -76
- package/src/core/platform/custom-objects/lifecycle.ts +0 -557
- package/src/core/platform/custom-objects/manager.ts +0 -959
- package/src/core/platform/custom-objects/provisioning.ts +0 -672
- package/src/core/platform/custom-objects/rql.ts +0 -375
- package/src/core/platform/custom-objects/schema-manager.ts +0 -351
- package/src/core/platform/custom-objects/typed-rql.ts +0 -1273
- package/src/core/platform/custom-objects/types.ts +0 -753
- package/src/core/platform/custom-objects/validation.ts +0 -573
- package/src/core/platform/custom-objects.ts +0 -269
- package/src/core/platform/manifest/README.md +0 -26
- package/src/core/platform/manifest/custom-objects/action.ts +0 -87
- package/src/core/platform/manifest/custom-objects/conditions.ts +0 -762
- package/src/core/platform/manifest/custom-objects/existing.ts +0 -221
- package/src/core/platform/manifest/custom-objects/field-resolution.ts +0 -116
- package/src/core/platform/manifest/custom-objects/function-file.ts +0 -149
- package/src/core/platform/manifest/custom-objects/list-view.ts +0 -95
- package/src/core/platform/manifest/custom-objects/object-list-page.ts +0 -87
- package/src/core/platform/manifest/custom-objects/page-layout.ts +0 -380
- package/src/core/platform/manifest/custom-objects/register.ts +0 -555
- package/src/core/platform/manifest/custom-objects/rule.ts +0 -192
- package/src/core/platform/manifest/custom-objects/sdui-page.ts +0 -515
- package/src/core/platform/manifest/custom-objects/typed-condition.ts +0 -617
- package/src/core/platform/manifest/custom-objects/types.ts +0 -92
- package/src/core/platform/manifest/custom-objects/validation.ts +0 -70
- package/src/core/platform/manifest/custom-objects/workflow.ts +0 -71
- package/src/core/platform/manifest/custom-objects.ts +0 -203
- package/src/pebble-sdui-web-custom-apps-shim.d.ts +0 -3
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public custom-object authoring surface for the Rippling TypeScript SDK.
|
|
3
|
-
*
|
|
4
|
-
* Import this module when you want a TypeScript-first, structural definition
|
|
5
|
-
* layer for custom objects that can be reused across manifests, functions,
|
|
6
|
-
* validators, tests, and agent-authored code.
|
|
7
|
-
*
|
|
8
|
-
* The implementation lives under `core/platform/custom-objects/`, but this file
|
|
9
|
-
* is the stable public entrypoint that consumers should import from:
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* import { defineCustomObject, text } from '@rippling/rippling-sdk/core/platform/custom-objects';
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* Manifest-specific adapters for typed custom objects live under:
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { registerManifestCustomObject } from '@rippling/rippling-sdk/core/platform/manifest/custom-objects';
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/** Section-definition helper and foundational schema types. */
|
|
23
|
-
export { section } from './custom-objects/types';
|
|
24
|
-
|
|
25
|
-
/** Type-level contracts derived from typed custom-object definitions. */
|
|
26
|
-
export type {
|
|
27
|
-
AnyCustomObjectDefinition,
|
|
28
|
-
AnyFieldDefinition,
|
|
29
|
-
CategoryApiName,
|
|
30
|
-
CreateInput,
|
|
31
|
-
CustomFieldApiName,
|
|
32
|
-
CustomObjectApiName,
|
|
33
|
-
CustomObjectDefinition,
|
|
34
|
-
CustomObjectIdentity,
|
|
35
|
-
CustomRecordFields,
|
|
36
|
-
FieldDefinitions,
|
|
37
|
-
FieldNames,
|
|
38
|
-
FieldValue,
|
|
39
|
-
FileReference,
|
|
40
|
-
FormulaFieldDefinition,
|
|
41
|
-
FormulaFieldKind,
|
|
42
|
-
FormulaValueByKind,
|
|
43
|
-
LogicalCategoryName,
|
|
44
|
-
LogicalCustomFieldName,
|
|
45
|
-
LogicalCustomObjectName,
|
|
46
|
-
LookupFieldDefinition,
|
|
47
|
-
LookupReference,
|
|
48
|
-
LookupTarget,
|
|
49
|
-
NameFieldDefinition,
|
|
50
|
-
NativeModelTarget,
|
|
51
|
-
OptionalWritableFieldNames,
|
|
52
|
-
ParentChildFieldDefinition,
|
|
53
|
-
ReadonlyFieldNames,
|
|
54
|
-
RecordShape,
|
|
55
|
-
RequiredWritableFieldNames,
|
|
56
|
-
ResolvedFieldDefinition,
|
|
57
|
-
SectionDefinition,
|
|
58
|
-
SectionDefinitions,
|
|
59
|
-
StandardCreateFields,
|
|
60
|
-
StandardRecordFields,
|
|
61
|
-
TargetApiName,
|
|
62
|
-
UpdateInput,
|
|
63
|
-
WritableFieldNames,
|
|
64
|
-
} from './custom-objects/types';
|
|
65
|
-
|
|
66
|
-
/** Field factories and reusable schema fragments. */
|
|
67
|
-
export {
|
|
68
|
-
boolean,
|
|
69
|
-
currency,
|
|
70
|
-
date,
|
|
71
|
-
datetime,
|
|
72
|
-
email,
|
|
73
|
-
file,
|
|
74
|
-
formula,
|
|
75
|
-
longText,
|
|
76
|
-
lookup,
|
|
77
|
-
nativeModel,
|
|
78
|
-
number,
|
|
79
|
-
parentChild,
|
|
80
|
-
percentage,
|
|
81
|
-
phone,
|
|
82
|
-
radio,
|
|
83
|
-
sections,
|
|
84
|
-
select,
|
|
85
|
-
text,
|
|
86
|
-
time,
|
|
87
|
-
url,
|
|
88
|
-
} from './custom-objects/fields';
|
|
89
|
-
|
|
90
|
-
/** Immutable definition helpers for creating and extending schemas. */
|
|
91
|
-
export {
|
|
92
|
-
defineCustomObject,
|
|
93
|
-
extendCustomObject,
|
|
94
|
-
fieldNames,
|
|
95
|
-
getFieldDefinition,
|
|
96
|
-
isWritableField,
|
|
97
|
-
toCustomCategoryApiName,
|
|
98
|
-
toCustomFieldApiName,
|
|
99
|
-
toCustomObjectApiName,
|
|
100
|
-
} from './custom-objects/definition';
|
|
101
|
-
|
|
102
|
-
/** Runtime validation result types for schema and record checks. */
|
|
103
|
-
export type { ValidationIssue, ValidationResult } from './custom-objects/validation';
|
|
104
|
-
|
|
105
|
-
/** Runtime validation and typed-record helpers. */
|
|
106
|
-
export {
|
|
107
|
-
asTypedRecord,
|
|
108
|
-
assertValidCreateInput,
|
|
109
|
-
assertValidUpdateInput,
|
|
110
|
-
getRecordValue,
|
|
111
|
-
validateCreateInput,
|
|
112
|
-
validateCustomObjectDefinition,
|
|
113
|
-
validateLogicalCategoryName,
|
|
114
|
-
validateLogicalCustomFieldName,
|
|
115
|
-
validateLogicalCustomObjectName,
|
|
116
|
-
validateUpdateInput,
|
|
117
|
-
} from './custom-objects/validation';
|
|
118
|
-
|
|
119
|
-
/** Typed RQL helper types for custom-object query and formula authoring. */
|
|
120
|
-
export type {
|
|
121
|
-
CustomObjectRqlHelpers,
|
|
122
|
-
RqlComparableValue,
|
|
123
|
-
RqlFieldName,
|
|
124
|
-
RqlFieldScope,
|
|
125
|
-
RqlFieldToken,
|
|
126
|
-
RqlFragment,
|
|
127
|
-
RqlInterpolation,
|
|
128
|
-
RqlValue,
|
|
129
|
-
StandardRqlFieldName,
|
|
130
|
-
} from './custom-objects/rql';
|
|
131
|
-
|
|
132
|
-
/** Typed parsed-string RQL field-name types for custom-object query authoring. */
|
|
133
|
-
export type { ParsedRqlFieldName, ParsedRqlStandardFieldName } from './custom-objects/typed-rql';
|
|
134
|
-
|
|
135
|
-
/** Typed RQL helper factories for custom-object query authoring. */
|
|
136
|
-
export { createRqlHelpers } from './custom-objects/rql';
|
|
137
|
-
|
|
138
|
-
/** Parsed-string RQL compiler that validates logical field names and value types. */
|
|
139
|
-
export { typedRql } from './custom-objects/typed-rql';
|
|
140
|
-
|
|
141
|
-
/** Typed category-definition and lifecycle types for custom-object metadata. */
|
|
142
|
-
export type {
|
|
143
|
-
CustomObjectCategoryDefinition,
|
|
144
|
-
CustomObjectCategoryLifecycleAction,
|
|
145
|
-
CustomObjectCategoryMutationOptions,
|
|
146
|
-
ProvisionedCustomObjectCategory,
|
|
147
|
-
ReconciledCustomObjectCategory,
|
|
148
|
-
} from './custom-objects/category';
|
|
149
|
-
|
|
150
|
-
/** Typed category-definition helpers for custom-object metadata. */
|
|
151
|
-
export {
|
|
152
|
-
buildObjectCategoryCreateParams,
|
|
153
|
-
buildObjectCategoryUpdateParams,
|
|
154
|
-
defineCustomObjectCategory,
|
|
155
|
-
deleteCustomObjectCategoryDefinition,
|
|
156
|
-
provisionCustomObjectCategoryDefinition,
|
|
157
|
-
provisionCustomObjectCategoryDefinitions,
|
|
158
|
-
reconcileCustomObjectCategoryDefinition,
|
|
159
|
-
reconcileCustomObjectCategoryDefinitions,
|
|
160
|
-
} from './custom-objects/category';
|
|
161
|
-
|
|
162
|
-
/** Provisioning result and option types for the REST custom-object helpers. */
|
|
163
|
-
export type {
|
|
164
|
-
ProvisionCustomObjectOptions,
|
|
165
|
-
ProvisionCustomObjectsOptions,
|
|
166
|
-
ProvisionableFieldParams,
|
|
167
|
-
ProvisionedCustomObject,
|
|
168
|
-
} from './custom-objects/provisioning';
|
|
169
|
-
|
|
170
|
-
/** Helpers that compile typed schemas into low-level REST custom-object payloads. */
|
|
171
|
-
export {
|
|
172
|
-
buildCustomObjectCreateParams,
|
|
173
|
-
buildCustomObjectNameFieldDetails,
|
|
174
|
-
buildCustomObjectUpdateParams,
|
|
175
|
-
buildProvisionableFieldParams,
|
|
176
|
-
provisionCustomObjectDefinition,
|
|
177
|
-
provisionCustomObjectDefinitions,
|
|
178
|
-
} from './custom-objects/provisioning';
|
|
179
|
-
|
|
180
|
-
/** Schema-lifecycle types for reconciling typed definitions with remote metadata. */
|
|
181
|
-
export type {
|
|
182
|
-
CustomObjectLifecycleAction,
|
|
183
|
-
ReconcileCustomObjectDefinitionOptions,
|
|
184
|
-
ReconcileCustomObjectDefinitionsOptions,
|
|
185
|
-
ReconciledCustomObject,
|
|
186
|
-
ReconciledCustomObjectField,
|
|
187
|
-
} from './custom-objects/lifecycle';
|
|
188
|
-
|
|
189
|
-
/** Schema-lifecycle helpers for reconciling typed definitions with remote metadata. */
|
|
190
|
-
export {
|
|
191
|
-
deleteCustomObjectDefinition,
|
|
192
|
-
reconcileCustomObjectDefinition,
|
|
193
|
-
reconcileCustomObjectDefinitions,
|
|
194
|
-
} from './custom-objects/lifecycle';
|
|
195
|
-
|
|
196
|
-
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
197
|
-
export type {} from './custom-objects/schema-manager';
|
|
198
|
-
|
|
199
|
-
/** Typed schema-manager classes that bind definitions to a specific SDK client. */
|
|
200
|
-
export {
|
|
201
|
-
COSchemaManager,
|
|
202
|
-
CustomObjectSchemaManager,
|
|
203
|
-
TypedCustomObjectCategoryManager,
|
|
204
|
-
TypedCustomObjectSchemaManager,
|
|
205
|
-
} from './custom-objects/schema-manager';
|
|
206
|
-
|
|
207
|
-
/** Low-level typed field-metadata payloads used by the generated REST resources. */
|
|
208
|
-
export type {
|
|
209
|
-
ChoiceCustomObjectFieldDataType,
|
|
210
|
-
CurrencyCustomObjectFieldDataType,
|
|
211
|
-
CustomObjectFieldDataType,
|
|
212
|
-
CustomObjectFieldDerivedAggregationFilter,
|
|
213
|
-
CustomObjectFieldDerivedAggregatedField,
|
|
214
|
-
CustomObjectFieldFormulaAttrMetas,
|
|
215
|
-
CustomObjectFieldRqlDefinition,
|
|
216
|
-
CustomObjectFieldSection,
|
|
217
|
-
CustomObjectFieldSectionConfig,
|
|
218
|
-
CustomObjectFieldType,
|
|
219
|
-
CustomObjectNameFieldDetails,
|
|
220
|
-
DateCustomObjectFieldDataType,
|
|
221
|
-
DatetimeCustomObjectFieldDataType,
|
|
222
|
-
EmailCustomObjectFieldDataType,
|
|
223
|
-
FileCustomObjectFieldDataType,
|
|
224
|
-
LongTextCustomObjectFieldDataType,
|
|
225
|
-
NumberCustomObjectFieldDataType,
|
|
226
|
-
PercentageCustomObjectFieldDataType,
|
|
227
|
-
PhoneNumberCustomObjectFieldDataType,
|
|
228
|
-
ReferenceCustomObjectFieldDataType,
|
|
229
|
-
TextCustomObjectFieldDataType,
|
|
230
|
-
TimeCustomObjectFieldDataType,
|
|
231
|
-
URLCustomObjectFieldDataType,
|
|
232
|
-
} from '../../resources/custom-objects/fields';
|
|
233
|
-
|
|
234
|
-
/** Typed record-manager adapter, error, and pagination types. */
|
|
235
|
-
export type {
|
|
236
|
-
CustomObjectManagerOptions,
|
|
237
|
-
CustomObjectRecordAdapter,
|
|
238
|
-
CustomObjectRecordBulkCreateRequest,
|
|
239
|
-
CustomObjectRecordBulkDeleteRequest,
|
|
240
|
-
CustomObjectRecordBulkUpdateRequest,
|
|
241
|
-
CustomObjectRecordQueryResponse,
|
|
242
|
-
CustomObjectRecordsClient,
|
|
243
|
-
InMemoryCustomObjectRecordAdapterOptions,
|
|
244
|
-
TypedBatchWriteOptions,
|
|
245
|
-
TypedBulkUpdateInput,
|
|
246
|
-
TypedRecordPage,
|
|
247
|
-
TypedRecordPageOptions,
|
|
248
|
-
TypedRecordQueryOptions,
|
|
249
|
-
} from './custom-objects/manager';
|
|
250
|
-
|
|
251
|
-
/** Typed record-manager utilities for CRUD, batch operations, and records-resource/in-memory adapters. */
|
|
252
|
-
export {
|
|
253
|
-
COManager,
|
|
254
|
-
CustomObjectManager,
|
|
255
|
-
CustomObjectRecordValidationError,
|
|
256
|
-
InMemoryCustomObjectRecordAdapter,
|
|
257
|
-
TypedCustomObjectRecordManager,
|
|
258
|
-
createCustomObjectRecordAdapter,
|
|
259
|
-
} from './custom-objects/manager';
|
|
260
|
-
|
|
261
|
-
/** Shared function-runtime bootstrap types for custom-object-backed handlers. */
|
|
262
|
-
export type {
|
|
263
|
-
CreateCustomObjectFunctionRuntimeOptions,
|
|
264
|
-
CustomObjectFunctionRuntime,
|
|
265
|
-
CustomObjectFunctionRuntimeClient,
|
|
266
|
-
} from './custom-objects/function-runtime';
|
|
267
|
-
|
|
268
|
-
/** Small bootstrap helper that creates one SDK client plus typed record managers for a function invocation. */
|
|
269
|
-
export { createCustomObjectFunctionRuntime } from './custom-objects/function-runtime';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# `core/platform/manifest`
|
|
2
|
-
|
|
3
|
-
This directory holds public manifest-integration adapters for higher-level platform abstractions.
|
|
4
|
-
|
|
5
|
-
Use this layer when code is primarily about translating typed platform/domain definitions into low-level `lib/manifest` classes rather than defining the domain model itself.
|
|
6
|
-
|
|
7
|
-
Rule of thumb:
|
|
8
|
-
|
|
9
|
-
- if code owns schema semantics, validation, provisioning, lifecycle, records, or query typing, it belongs in `core/platform/<domain>/`
|
|
10
|
-
- if code primarily produces `lib/manifest` components or manifest-specific typed authoring helpers, it belongs in `core/platform/manifest/<domain>/`
|
|
11
|
-
|
|
12
|
-
For example:
|
|
13
|
-
|
|
14
|
-
- `core/platform/custom-objects/*` owns typed custom-object schema and runtime helpers
|
|
15
|
-
- `core/platform/manifest/custom-objects/*` owns manifest registration, typed conditions, typed validations/rules/workflows, typed list-view helpers, typed page-layout helpers, function wiring helpers, and manifest field-resolution helpers for those custom-object definitions
|
|
16
|
-
|
|
17
|
-
Current author-facing golden paths in this manifest layer:
|
|
18
|
-
|
|
19
|
-
The custom-object review path should read top-down: registration/conditions/rules/workflows/actions/existing-manifest rebinding first, then the SDUI helper family as an additive UI-specific lane.
|
|
20
|
-
|
|
21
|
-
- use `defineTypedWorkflowFromFunctionFile(...)` when one workflow owns one colocated function file and you want the handler loaded from disk plus wired into the workflow in one step
|
|
22
|
-
- use `defineTypedCustomObjectActionFromFunctionFile(...)` when one custom-object action owns one colocated function file and you want the action plus `ManifestFunction` created together
|
|
23
|
-
- use `bindExistingManifestCustomObject(...)` when extending an existing manifest through the typed custom-object lane instead of manually loading raw object, field, section, layout, and action classes
|
|
24
|
-
- treat raw `lib/manifest` field/section construction as the explicit escape hatch when an existing-manifest mutation needs to create brand-new manifest components that do not yet have a dedicated typed helper
|
|
25
|
-
- use `defineTypedRule(..., { actions: (rules) => [...] })` as the default rule-authoring path, and keep `createTypedRuleHelpers(...)` as the more explicit escape hatch when a caller wants to reuse one helper namespace across multiple rules
|
|
26
|
-
- use `createManifestConditionHelpers(...)` callback inputs for typed conditions, prefer `c.where('field_name').eq(...)` plus `c.all(...)` / `c.any(...)` / `c.none(...)` for the higher-order condition path, use `typedCondition(...)` when a bounded parsed-string condition is clearer, and keep `c.raw(...)` as the explicit escape hatch for unsupported condition snippets
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CustomObjectAction,
|
|
3
|
-
type CustomObjectActionProps,
|
|
4
|
-
type ManifestFunction,
|
|
5
|
-
} from '../../../../lib/manifest';
|
|
6
|
-
import type { ManifestScope } from '../../../../lib/manifest/manifest-builder';
|
|
7
|
-
import type { AnyCustomObjectDefinition } from '../../custom-objects/types';
|
|
8
|
-
import { defineManifestFunctionFromFile, type ManifestFunctionFromFileProps } from './function-file';
|
|
9
|
-
import type { ManifestRegistration } from './types';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Initialization properties for {@link defineTypedCustomObjectAction}.
|
|
13
|
-
*
|
|
14
|
-
* @typeParam TDefinition - Typed custom-object definition whose object action is being authored.
|
|
15
|
-
*/
|
|
16
|
-
export interface TypedCustomObjectActionProps<TDefinition extends AnyCustomObjectDefinition>
|
|
17
|
-
extends Omit<CustomObjectActionProps, 'function'> {
|
|
18
|
-
/** Existing manifest function invoked by this action. */
|
|
19
|
-
readonly function: ManifestFunction;
|
|
20
|
-
/** Phantom type anchor that keeps the props definition-scoped in editor hover/help. */
|
|
21
|
-
readonly __typedActionDefinition__?: TDefinition;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Initialization properties for {@link defineTypedCustomObjectActionFromFunctionFile}.
|
|
26
|
-
*
|
|
27
|
-
* @typeParam TDefinition - Typed custom-object definition whose object action is being authored.
|
|
28
|
-
*/
|
|
29
|
-
export interface TypedCustomObjectActionFromFunctionFileProps<TDefinition extends AnyCustomObjectDefinition>
|
|
30
|
-
extends Omit<TypedCustomObjectActionProps<TDefinition>, 'function'> {
|
|
31
|
-
/** Function metadata and source-file location for the action handler. */
|
|
32
|
-
readonly function: ManifestFunctionFromFileProps;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** Result returned by {@link defineTypedCustomObjectActionFromFunctionFile}. */
|
|
36
|
-
export interface TypedCustomObjectActionFromFunctionFileResult {
|
|
37
|
-
/** Manifest function created from the provided source file. */
|
|
38
|
-
readonly function: ManifestFunction;
|
|
39
|
-
/** Custom-object action wired to the created manifest function. */
|
|
40
|
-
readonly action: CustomObjectAction;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Defines one custom-object action for a typed manifest registration.
|
|
45
|
-
*
|
|
46
|
-
* Prefer {@link defineTypedCustomObjectActionFromFunctionFile} for the common
|
|
47
|
-
* colocated-handler path. Use this lower-level form when the backing manifest
|
|
48
|
-
* function already exists separately and you only need to wire the action.
|
|
49
|
-
*
|
|
50
|
-
* @param registration - Manifest registration produced from the typed object definition.
|
|
51
|
-
* @param props - Action metadata plus the backing manifest function.
|
|
52
|
-
* @returns Low-level custom-object action manifest instance.
|
|
53
|
-
* @typeParam TDefinition - Typed custom-object definition whose action is being authored.
|
|
54
|
-
*/
|
|
55
|
-
export function defineTypedCustomObjectAction<TDefinition extends AnyCustomObjectDefinition>(
|
|
56
|
-
registration: ManifestRegistration<TDefinition>,
|
|
57
|
-
props: TypedCustomObjectActionProps<TDefinition>,
|
|
58
|
-
): CustomObjectAction {
|
|
59
|
-
return new CustomObjectAction(registration.object, props);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Defines one custom-object action and its backing manifest function from a source file.
|
|
64
|
-
*
|
|
65
|
-
* This is the intended golden path when one custom-object action owns one
|
|
66
|
-
* colocated handler file.
|
|
67
|
-
*
|
|
68
|
-
* @param registration - Manifest registration produced from the typed object definition.
|
|
69
|
-
* @param props - Action metadata plus the function source-file location.
|
|
70
|
-
* @returns Created manifest function plus the action wired to it.
|
|
71
|
-
* @typeParam TDefinition - Typed custom-object definition whose action is being authored.
|
|
72
|
-
*/
|
|
73
|
-
export function defineTypedCustomObjectActionFromFunctionFile<TDefinition extends AnyCustomObjectDefinition>(
|
|
74
|
-
scope: ManifestScope,
|
|
75
|
-
registration: ManifestRegistration<TDefinition>,
|
|
76
|
-
props: TypedCustomObjectActionFromFunctionFileProps<TDefinition>,
|
|
77
|
-
): TypedCustomObjectActionFromFunctionFileResult {
|
|
78
|
-
const { function: functionProps, ...actionProps } = props;
|
|
79
|
-
const createdFunction = defineManifestFunctionFromFile(scope, functionProps);
|
|
80
|
-
return {
|
|
81
|
-
function: createdFunction,
|
|
82
|
-
action: defineTypedCustomObjectAction(registration, {
|
|
83
|
-
...actionProps,
|
|
84
|
-
function: createdFunction,
|
|
85
|
-
}),
|
|
86
|
-
};
|
|
87
|
-
}
|