@rippling/rippling-sdk 0.2.0-alpha.84 → 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,240 +0,0 @@
|
|
|
1
|
-
import type { WorkflowRecordChangeTrigger } from "../../../../lib/manifest/workflow.mjs";
|
|
2
|
-
import type { AnyCustomObjectDefinition, FieldNames, LookupReference } from "../../custom-objects/types.mjs";
|
|
3
|
-
import type { ManifestRegistration } from "./types.mjs";
|
|
4
|
-
import type { StandardManifestFieldName, TypedManifestFieldName } from "./field-resolution.mjs";
|
|
5
|
-
/** Category bucket used to validate and render typed manifest-condition operands. */
|
|
6
|
-
export type ManifestConditionCategory = 'string' | 'number' | 'boolean' | 'lookup' | 'unsupported';
|
|
7
|
-
/**
|
|
8
|
-
* Input target accepted by manifest-side typed custom-object helpers.
|
|
9
|
-
*
|
|
10
|
-
* These helpers can operate either on the structural definition itself or on the
|
|
11
|
-
* manifest registration produced from that definition.
|
|
12
|
-
*
|
|
13
|
-
* @typeParam TDefinition - Typed custom-object definition being targeted.
|
|
14
|
-
*/
|
|
15
|
-
export type ManifestCustomObjectTarget<TDefinition extends AnyCustomObjectDefinition> = TDefinition | ManifestRegistration<TDefinition>;
|
|
16
|
-
/**
|
|
17
|
-
* One rendered manifest-condition fragment.
|
|
18
|
-
*
|
|
19
|
-
* The fragment text intentionally stays opaque so callers compose conditions via
|
|
20
|
-
* helper functions instead of splicing strings manually.
|
|
21
|
-
*/
|
|
22
|
-
export interface ManifestConditionFragment {
|
|
23
|
-
readonly text: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Typed field token used by manifest-condition helpers.
|
|
27
|
-
*
|
|
28
|
-
* @typeParam TFieldName - Logical field name or standard field name represented by this token.
|
|
29
|
-
* @typeParam TCategory - Comparable category enforced for values compared against this field.
|
|
30
|
-
*/
|
|
31
|
-
export interface ManifestConditionFieldToken<TFieldName extends string = string, TCategory extends ManifestConditionCategory = ManifestConditionCategory> {
|
|
32
|
-
readonly kind: 'field';
|
|
33
|
-
readonly fieldName: TFieldName;
|
|
34
|
-
readonly apiName: string;
|
|
35
|
-
readonly category: TCategory;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Typed function token used by manifest-condition helpers.
|
|
39
|
-
*
|
|
40
|
-
* @typeParam TCategory - Comparable category yielded by this function token.
|
|
41
|
-
*/
|
|
42
|
-
export interface ManifestConditionFunctionToken<TCategory extends ManifestConditionCategory = ManifestConditionCategory> {
|
|
43
|
-
readonly kind: 'function';
|
|
44
|
-
readonly text: string;
|
|
45
|
-
readonly category: TCategory;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Callback-or-fragment input accepted by higher-level manifest helpers.
|
|
49
|
-
*
|
|
50
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
51
|
-
*/
|
|
52
|
-
export type ManifestConditionInput<TDefinition extends AnyCustomObjectDefinition> = ManifestConditionFragment | ((helpers: ManifestConditionHelpers<TDefinition>) => ManifestConditionFragment);
|
|
53
|
-
type ComparableTokenByCategory<TCategory extends ManifestConditionCategory> = ManifestConditionFieldToken<string, TCategory> | ManifestConditionFunctionToken<TCategory>;
|
|
54
|
-
type ScalarComparableInput<TCategory extends ManifestConditionCategory> = TCategory extends 'string' ? string | null | ComparableTokenByCategory<'string'> : TCategory extends 'number' ? number | null | ComparableTokenByCategory<'number'> : TCategory extends 'boolean' ? boolean | null | ComparableTokenByCategory<'boolean'> : TCategory extends 'lookup' ? string | LookupReference | null | ComparableTokenByCategory<'lookup'> : never;
|
|
55
|
-
type ArrayComparableInput<TCategory extends ManifestConditionCategory> = TCategory extends 'string' ? readonly string[] : TCategory extends 'number' ? readonly number[] : TCategory extends 'boolean' ? readonly boolean[] : TCategory extends 'lookup' ? readonly (string | LookupReference)[] : never;
|
|
56
|
-
type StandardManifestConditionCategory<TFieldName extends string> = TFieldName extends 'owner_role' | 'created_by' | 'last_modified_by' ? 'lookup' : 'string';
|
|
57
|
-
type ManifestConditionCategoryByFieldKind<TKind extends string> = TKind extends ('text' | 'long-text' | 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'time' | 'select' | 'radio' | 'formula-text' | 'formula-date' | 'formula-url') ? 'string' : TKind extends ('number' | 'currency' | 'percentage' | 'formula-number' | 'formula-currency' | 'formula-percentage') ? 'number' : TKind extends 'boolean' | 'formula-boolean' ? 'boolean' : TKind extends 'lookup' | 'parent-child' ? 'lookup' : 'unsupported';
|
|
58
|
-
type CustomManifestConditionFieldCategoryMap<TDefinition extends AnyCustomObjectDefinition> = {
|
|
59
|
-
readonly [K in FieldNames<TDefinition>]: TDefinition['fields'][K] extends ({
|
|
60
|
-
kind: infer TKind extends string;
|
|
61
|
-
}) ? ManifestConditionCategoryByFieldKind<TKind> : 'unsupported';
|
|
62
|
-
};
|
|
63
|
-
type ManifestConditionFieldCategoryMap<TDefinition extends AnyCustomObjectDefinition> = {
|
|
64
|
-
readonly [K in StandardManifestFieldName<TDefinition>]: StandardManifestConditionCategory<K>;
|
|
65
|
-
} & CustomManifestConditionFieldCategoryMap<TDefinition>;
|
|
66
|
-
/**
|
|
67
|
-
* Category inferred for one manifest-condition field name.
|
|
68
|
-
*
|
|
69
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field.
|
|
70
|
-
* @typeParam TFieldName - Standard or logical field name whose category should be inferred.
|
|
71
|
-
*/
|
|
72
|
-
export type ManifestConditionFieldCategory<TDefinition extends AnyCustomObjectDefinition, TFieldName extends TypedManifestFieldName<TDefinition>> = TFieldName extends keyof ManifestConditionFieldCategoryMap<TDefinition> ? ManifestConditionFieldCategoryMap<TDefinition>[TFieldName] : 'unsupported';
|
|
73
|
-
/**
|
|
74
|
-
* Typed field-token scope exposed on manifest-condition helpers.
|
|
75
|
-
*
|
|
76
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
77
|
-
*/
|
|
78
|
-
export type ManifestConditionFieldScope<TDefinition extends AnyCustomObjectDefinition> = {
|
|
79
|
-
readonly [K in TypedManifestFieldName<TDefinition>]: ManifestConditionFieldToken<K, ManifestConditionFieldCategory<TDefinition, K>>;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Field-scoped comparator helper returned by {@link ManifestConditionHelpers.where}.
|
|
83
|
-
*
|
|
84
|
-
* This is the higher-order condition authoring path for callers that want to
|
|
85
|
-
* pick a field once and then author one or more comparisons against it.
|
|
86
|
-
*
|
|
87
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
88
|
-
* @typeParam TFieldName - Logical or standard field name bound to this comparator.
|
|
89
|
-
*/
|
|
90
|
-
export interface ManifestConditionFieldComparator<TDefinition extends AnyCustomObjectDefinition, TFieldName extends TypedManifestFieldName<TDefinition>> {
|
|
91
|
-
/** Typed field token bound to this comparator. */
|
|
92
|
-
readonly field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>;
|
|
93
|
-
/** Builds an equality comparison fragment against the bound field. */
|
|
94
|
-
eq(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
95
|
-
/** Builds an inequality comparison fragment against the bound field. */
|
|
96
|
-
ne(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
97
|
-
/** Builds a less-than comparison fragment against the bound field. */
|
|
98
|
-
lt(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
99
|
-
/** Builds a less-than-or-equal comparison fragment against the bound field. */
|
|
100
|
-
lte(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
101
|
-
/** Builds a greater-than comparison fragment against the bound field. */
|
|
102
|
-
gt(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
103
|
-
/** Builds a greater-than-or-equal comparison fragment against the bound field. */
|
|
104
|
-
gte(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
105
|
-
/** Builds an `IN [...]` comparison fragment against the bound field. */
|
|
106
|
-
in(values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
107
|
-
/** Builds a `NOT_IN [...]` comparison fragment against the bound field. */
|
|
108
|
-
notIn(values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
109
|
-
/** Builds a null-check equality fragment against the bound field. */
|
|
110
|
-
isNull(): ManifestConditionFragment;
|
|
111
|
-
/** Builds a non-null inequality fragment against the bound field. */
|
|
112
|
-
isNotNull(): ManifestConditionFragment;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Main helper surface for typed manifest conditions and formulas.
|
|
116
|
-
*
|
|
117
|
-
* The helpers intentionally produce small immutable fragments that can be reused
|
|
118
|
-
* across list views, validations, workflow triggers, and rules.
|
|
119
|
-
*
|
|
120
|
-
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
121
|
-
*/
|
|
122
|
-
export interface ManifestConditionHelpers<TDefinition extends AnyCustomObjectDefinition> {
|
|
123
|
-
/** Definition that owns the helper field namespace. */
|
|
124
|
-
readonly definition: TDefinition;
|
|
125
|
-
/** Object-specific field-token scope keyed by standard and logical field names. */
|
|
126
|
-
readonly fields: ManifestConditionFieldScope<TDefinition>;
|
|
127
|
-
/** Returns one typed field token by name. */
|
|
128
|
-
field<TFieldName extends TypedManifestFieldName<TDefinition>>(fieldName: TFieldName): ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>;
|
|
129
|
-
/** Returns a higher-order comparator helper bound to one field name. */
|
|
130
|
-
where<TFieldName extends TypedManifestFieldName<TDefinition>>(fieldName: TFieldName): ManifestConditionFieldComparator<TDefinition, TFieldName>;
|
|
131
|
-
/** Returns the `TODAY()` manifest function token for date-style comparisons. */
|
|
132
|
-
today(): ManifestConditionFunctionToken<'string'>;
|
|
133
|
-
/** Builds an equality comparison fragment. */
|
|
134
|
-
eq<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
135
|
-
/** Builds an inequality comparison fragment. */
|
|
136
|
-
ne<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
137
|
-
/** Builds a less-than comparison fragment. */
|
|
138
|
-
lt<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
139
|
-
/** Builds a less-than-or-equal comparison fragment. */
|
|
140
|
-
lte<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
141
|
-
/** Builds a greater-than comparison fragment. */
|
|
142
|
-
gt<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
143
|
-
/** Builds a greater-than-or-equal comparison fragment. */
|
|
144
|
-
gte<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
145
|
-
/** Builds an `IN [...]` comparison fragment. */
|
|
146
|
-
in<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
147
|
-
/** Builds a `NOT_IN [...]` comparison fragment. */
|
|
148
|
-
notIn<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
149
|
-
/** Builds a null-check equality fragment. */
|
|
150
|
-
isNull<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
151
|
-
/** Builds a non-null inequality fragment. */
|
|
152
|
-
isNotNull<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
153
|
-
/** Builds an `AND` composition fragment. */
|
|
154
|
-
and(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
155
|
-
/** Alias for `and(...)` used when callers want a more declarative composition name. */
|
|
156
|
-
all(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
157
|
-
/** Builds an `OR` composition fragment. */
|
|
158
|
-
or(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
159
|
-
/** Alias for `or(...)` used when callers want a more declarative composition name. */
|
|
160
|
-
any(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
161
|
-
/** Builds a `NOT` composition fragment. */
|
|
162
|
-
not(fragment: ManifestConditionFragment): ManifestConditionFragment;
|
|
163
|
-
/** Negates `or(...)` across all fragments. */
|
|
164
|
-
none(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
165
|
-
/** Wraps one pre-authored manifest condition/formula string as an explicit escape hatch. */
|
|
166
|
-
raw(text: string): ManifestConditionFragment;
|
|
167
|
-
/** Renders one fragment to its final manifest string form. */
|
|
168
|
-
render(fragment: ManifestConditionFragment): string;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Typed lifecycle-event composer for one custom object.
|
|
172
|
-
*
|
|
173
|
-
* The builder keeps workflow concepts separate from custom objects while still
|
|
174
|
-
* preserving the object's type information through the lifecycle chain.
|
|
175
|
-
*
|
|
176
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle is being targeted.
|
|
177
|
-
* @typeParam TOperation - Workflow record-change operation selected for this trigger.
|
|
178
|
-
*/
|
|
179
|
-
export interface TypedCustomObjectLifecycleTriggerBuilder<TDefinition extends AnyCustomObjectDefinition, TOperation extends WorkflowRecordChangeTrigger['record_change_operation_type']> {
|
|
180
|
-
/** Typed custom-object definition that owns this lifecycle trigger. */
|
|
181
|
-
readonly definition: TDefinition;
|
|
182
|
-
/** Selected record-change operation for this lifecycle trigger. */
|
|
183
|
-
readonly operation: TOperation;
|
|
184
|
-
/** Adds an RQL guard to the lifecycle trigger. */
|
|
185
|
-
when(condition: ManifestConditionInput<TDefinition>): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, TOperation>;
|
|
186
|
-
/** Materializes the lifecycle builder into the low-level workflow trigger shape. */
|
|
187
|
-
build(): WorkflowRecordChangeTrigger;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Typed lifecycle helper namespace for one custom object.
|
|
191
|
-
*
|
|
192
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle events should be exposed.
|
|
193
|
-
*/
|
|
194
|
-
export interface TypedCustomObjectLifecycle<TDefinition extends AnyCustomObjectDefinition> {
|
|
195
|
-
/** Typed custom-object definition that owns this lifecycle namespace. */
|
|
196
|
-
readonly definition: TDefinition;
|
|
197
|
-
/** Builds a workflow trigger for record creation. */
|
|
198
|
-
onCreate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_CREATE'>;
|
|
199
|
-
/** Builds a workflow trigger for record updates. */
|
|
200
|
-
onUpdate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_UPDATE'>;
|
|
201
|
-
/** Builds a workflow trigger for record deletion. */
|
|
202
|
-
onDelete(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_DELETE'>;
|
|
203
|
-
/** Builds a workflow trigger for record creation or update. */
|
|
204
|
-
onCreateOrUpdate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_CREATE_OR_UPDATE'>;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Creates typed manifest-condition helpers for one custom object target.
|
|
208
|
-
*
|
|
209
|
-
* The resulting helper family can be reused anywhere the manifest expects an
|
|
210
|
-
* RQL-like object condition or formula string: list-view filters, validation
|
|
211
|
-
* formulas, workflow guards, and rule conditions.
|
|
212
|
-
*
|
|
213
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
214
|
-
* @returns Immutable field-aware manifest-condition helper surface.
|
|
215
|
-
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
216
|
-
*/
|
|
217
|
-
export declare function createManifestConditionHelpers<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>): ManifestConditionHelpers<TDefinition>;
|
|
218
|
-
/**
|
|
219
|
-
* Resolves one manifest-condition input into final manifest string text.
|
|
220
|
-
*
|
|
221
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
222
|
-
* @param input - Condition fragment or helper callback to resolve.
|
|
223
|
-
* @returns Final manifest condition/formula string.
|
|
224
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the helper field namespace.
|
|
225
|
-
*/
|
|
226
|
-
export declare function resolveManifestConditionInput<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>, input: ManifestConditionInput<TDefinition>): string;
|
|
227
|
-
/**
|
|
228
|
-
* Creates the typed lifecycle helper namespace for one custom object.
|
|
229
|
-
*
|
|
230
|
-
* The lifecycle helper keeps workflows and custom objects as separate concepts
|
|
231
|
-
* while exposing the custom object's record lifecycle as a fluent, typed join
|
|
232
|
-
* point for workflow composition.
|
|
233
|
-
*
|
|
234
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
235
|
-
* @returns Immutable lifecycle helper namespace for that custom object.
|
|
236
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle events should be exposed.
|
|
237
|
-
*/
|
|
238
|
-
export declare function customObjectLifecycle<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>): TypedCustomObjectLifecycle<TDefinition>;
|
|
239
|
-
export {};
|
|
240
|
-
//# sourceMappingURL=conditions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.mts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,8CAA0C;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,eAAe,EAAE,uCAAmC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAgB;A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|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import type { WorkflowRecordChangeTrigger } from "../../../../lib/manifest/workflow.js";
|
|
2
|
-
import type { AnyCustomObjectDefinition, FieldNames, LookupReference } from "../../custom-objects/types.js";
|
|
3
|
-
import type { ManifestRegistration } from "./types.js";
|
|
4
|
-
import type { StandardManifestFieldName, TypedManifestFieldName } from "./field-resolution.js";
|
|
5
|
-
/** Category bucket used to validate and render typed manifest-condition operands. */
|
|
6
|
-
export type ManifestConditionCategory = 'string' | 'number' | 'boolean' | 'lookup' | 'unsupported';
|
|
7
|
-
/**
|
|
8
|
-
* Input target accepted by manifest-side typed custom-object helpers.
|
|
9
|
-
*
|
|
10
|
-
* These helpers can operate either on the structural definition itself or on the
|
|
11
|
-
* manifest registration produced from that definition.
|
|
12
|
-
*
|
|
13
|
-
* @typeParam TDefinition - Typed custom-object definition being targeted.
|
|
14
|
-
*/
|
|
15
|
-
export type ManifestCustomObjectTarget<TDefinition extends AnyCustomObjectDefinition> = TDefinition | ManifestRegistration<TDefinition>;
|
|
16
|
-
/**
|
|
17
|
-
* One rendered manifest-condition fragment.
|
|
18
|
-
*
|
|
19
|
-
* The fragment text intentionally stays opaque so callers compose conditions via
|
|
20
|
-
* helper functions instead of splicing strings manually.
|
|
21
|
-
*/
|
|
22
|
-
export interface ManifestConditionFragment {
|
|
23
|
-
readonly text: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Typed field token used by manifest-condition helpers.
|
|
27
|
-
*
|
|
28
|
-
* @typeParam TFieldName - Logical field name or standard field name represented by this token.
|
|
29
|
-
* @typeParam TCategory - Comparable category enforced for values compared against this field.
|
|
30
|
-
*/
|
|
31
|
-
export interface ManifestConditionFieldToken<TFieldName extends string = string, TCategory extends ManifestConditionCategory = ManifestConditionCategory> {
|
|
32
|
-
readonly kind: 'field';
|
|
33
|
-
readonly fieldName: TFieldName;
|
|
34
|
-
readonly apiName: string;
|
|
35
|
-
readonly category: TCategory;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Typed function token used by manifest-condition helpers.
|
|
39
|
-
*
|
|
40
|
-
* @typeParam TCategory - Comparable category yielded by this function token.
|
|
41
|
-
*/
|
|
42
|
-
export interface ManifestConditionFunctionToken<TCategory extends ManifestConditionCategory = ManifestConditionCategory> {
|
|
43
|
-
readonly kind: 'function';
|
|
44
|
-
readonly text: string;
|
|
45
|
-
readonly category: TCategory;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Callback-or-fragment input accepted by higher-level manifest helpers.
|
|
49
|
-
*
|
|
50
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
51
|
-
*/
|
|
52
|
-
export type ManifestConditionInput<TDefinition extends AnyCustomObjectDefinition> = ManifestConditionFragment | ((helpers: ManifestConditionHelpers<TDefinition>) => ManifestConditionFragment);
|
|
53
|
-
type ComparableTokenByCategory<TCategory extends ManifestConditionCategory> = ManifestConditionFieldToken<string, TCategory> | ManifestConditionFunctionToken<TCategory>;
|
|
54
|
-
type ScalarComparableInput<TCategory extends ManifestConditionCategory> = TCategory extends 'string' ? string | null | ComparableTokenByCategory<'string'> : TCategory extends 'number' ? number | null | ComparableTokenByCategory<'number'> : TCategory extends 'boolean' ? boolean | null | ComparableTokenByCategory<'boolean'> : TCategory extends 'lookup' ? string | LookupReference | null | ComparableTokenByCategory<'lookup'> : never;
|
|
55
|
-
type ArrayComparableInput<TCategory extends ManifestConditionCategory> = TCategory extends 'string' ? readonly string[] : TCategory extends 'number' ? readonly number[] : TCategory extends 'boolean' ? readonly boolean[] : TCategory extends 'lookup' ? readonly (string | LookupReference)[] : never;
|
|
56
|
-
type StandardManifestConditionCategory<TFieldName extends string> = TFieldName extends 'owner_role' | 'created_by' | 'last_modified_by' ? 'lookup' : 'string';
|
|
57
|
-
type ManifestConditionCategoryByFieldKind<TKind extends string> = TKind extends ('text' | 'long-text' | 'email' | 'url' | 'phone' | 'date' | 'datetime' | 'time' | 'select' | 'radio' | 'formula-text' | 'formula-date' | 'formula-url') ? 'string' : TKind extends ('number' | 'currency' | 'percentage' | 'formula-number' | 'formula-currency' | 'formula-percentage') ? 'number' : TKind extends 'boolean' | 'formula-boolean' ? 'boolean' : TKind extends 'lookup' | 'parent-child' ? 'lookup' : 'unsupported';
|
|
58
|
-
type CustomManifestConditionFieldCategoryMap<TDefinition extends AnyCustomObjectDefinition> = {
|
|
59
|
-
readonly [K in FieldNames<TDefinition>]: TDefinition['fields'][K] extends ({
|
|
60
|
-
kind: infer TKind extends string;
|
|
61
|
-
}) ? ManifestConditionCategoryByFieldKind<TKind> : 'unsupported';
|
|
62
|
-
};
|
|
63
|
-
type ManifestConditionFieldCategoryMap<TDefinition extends AnyCustomObjectDefinition> = {
|
|
64
|
-
readonly [K in StandardManifestFieldName<TDefinition>]: StandardManifestConditionCategory<K>;
|
|
65
|
-
} & CustomManifestConditionFieldCategoryMap<TDefinition>;
|
|
66
|
-
/**
|
|
67
|
-
* Category inferred for one manifest-condition field name.
|
|
68
|
-
*
|
|
69
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field.
|
|
70
|
-
* @typeParam TFieldName - Standard or logical field name whose category should be inferred.
|
|
71
|
-
*/
|
|
72
|
-
export type ManifestConditionFieldCategory<TDefinition extends AnyCustomObjectDefinition, TFieldName extends TypedManifestFieldName<TDefinition>> = TFieldName extends keyof ManifestConditionFieldCategoryMap<TDefinition> ? ManifestConditionFieldCategoryMap<TDefinition>[TFieldName] : 'unsupported';
|
|
73
|
-
/**
|
|
74
|
-
* Typed field-token scope exposed on manifest-condition helpers.
|
|
75
|
-
*
|
|
76
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
77
|
-
*/
|
|
78
|
-
export type ManifestConditionFieldScope<TDefinition extends AnyCustomObjectDefinition> = {
|
|
79
|
-
readonly [K in TypedManifestFieldName<TDefinition>]: ManifestConditionFieldToken<K, ManifestConditionFieldCategory<TDefinition, K>>;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Field-scoped comparator helper returned by {@link ManifestConditionHelpers.where}.
|
|
83
|
-
*
|
|
84
|
-
* This is the higher-order condition authoring path for callers that want to
|
|
85
|
-
* pick a field once and then author one or more comparisons against it.
|
|
86
|
-
*
|
|
87
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the field namespace.
|
|
88
|
-
* @typeParam TFieldName - Logical or standard field name bound to this comparator.
|
|
89
|
-
*/
|
|
90
|
-
export interface ManifestConditionFieldComparator<TDefinition extends AnyCustomObjectDefinition, TFieldName extends TypedManifestFieldName<TDefinition>> {
|
|
91
|
-
/** Typed field token bound to this comparator. */
|
|
92
|
-
readonly field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>;
|
|
93
|
-
/** Builds an equality comparison fragment against the bound field. */
|
|
94
|
-
eq(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
95
|
-
/** Builds an inequality comparison fragment against the bound field. */
|
|
96
|
-
ne(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
97
|
-
/** Builds a less-than comparison fragment against the bound field. */
|
|
98
|
-
lt(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
99
|
-
/** Builds a less-than-or-equal comparison fragment against the bound field. */
|
|
100
|
-
lte(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
101
|
-
/** Builds a greater-than comparison fragment against the bound field. */
|
|
102
|
-
gt(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
103
|
-
/** Builds a greater-than-or-equal comparison fragment against the bound field. */
|
|
104
|
-
gte(value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
105
|
-
/** Builds an `IN [...]` comparison fragment against the bound field. */
|
|
106
|
-
in(values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
107
|
-
/** Builds a `NOT_IN [...]` comparison fragment against the bound field. */
|
|
108
|
-
notIn(values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
109
|
-
/** Builds a null-check equality fragment against the bound field. */
|
|
110
|
-
isNull(): ManifestConditionFragment;
|
|
111
|
-
/** Builds a non-null inequality fragment against the bound field. */
|
|
112
|
-
isNotNull(): ManifestConditionFragment;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Main helper surface for typed manifest conditions and formulas.
|
|
116
|
-
*
|
|
117
|
-
* The helpers intentionally produce small immutable fragments that can be reused
|
|
118
|
-
* across list views, validations, workflow triggers, and rules.
|
|
119
|
-
*
|
|
120
|
-
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
121
|
-
*/
|
|
122
|
-
export interface ManifestConditionHelpers<TDefinition extends AnyCustomObjectDefinition> {
|
|
123
|
-
/** Definition that owns the helper field namespace. */
|
|
124
|
-
readonly definition: TDefinition;
|
|
125
|
-
/** Object-specific field-token scope keyed by standard and logical field names. */
|
|
126
|
-
readonly fields: ManifestConditionFieldScope<TDefinition>;
|
|
127
|
-
/** Returns one typed field token by name. */
|
|
128
|
-
field<TFieldName extends TypedManifestFieldName<TDefinition>>(fieldName: TFieldName): ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>;
|
|
129
|
-
/** Returns a higher-order comparator helper bound to one field name. */
|
|
130
|
-
where<TFieldName extends TypedManifestFieldName<TDefinition>>(fieldName: TFieldName): ManifestConditionFieldComparator<TDefinition, TFieldName>;
|
|
131
|
-
/** Returns the `TODAY()` manifest function token for date-style comparisons. */
|
|
132
|
-
today(): ManifestConditionFunctionToken<'string'>;
|
|
133
|
-
/** Builds an equality comparison fragment. */
|
|
134
|
-
eq<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
135
|
-
/** Builds an inequality comparison fragment. */
|
|
136
|
-
ne<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
137
|
-
/** Builds a less-than comparison fragment. */
|
|
138
|
-
lt<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
139
|
-
/** Builds a less-than-or-equal comparison fragment. */
|
|
140
|
-
lte<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
141
|
-
/** Builds a greater-than comparison fragment. */
|
|
142
|
-
gt<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
143
|
-
/** Builds a greater-than-or-equal comparison fragment. */
|
|
144
|
-
gte<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, value: ScalarComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
145
|
-
/** Builds an `IN [...]` comparison fragment. */
|
|
146
|
-
in<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
147
|
-
/** Builds a `NOT_IN [...]` comparison fragment. */
|
|
148
|
-
notIn<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>, values: ArrayComparableInput<ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
149
|
-
/** Builds a null-check equality fragment. */
|
|
150
|
-
isNull<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
151
|
-
/** Builds a non-null inequality fragment. */
|
|
152
|
-
isNotNull<TFieldName extends TypedManifestFieldName<TDefinition>>(field: ManifestConditionFieldToken<TFieldName, ManifestConditionFieldCategory<TDefinition, TFieldName>>): ManifestConditionFragment;
|
|
153
|
-
/** Builds an `AND` composition fragment. */
|
|
154
|
-
and(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
155
|
-
/** Alias for `and(...)` used when callers want a more declarative composition name. */
|
|
156
|
-
all(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
157
|
-
/** Builds an `OR` composition fragment. */
|
|
158
|
-
or(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
159
|
-
/** Alias for `or(...)` used when callers want a more declarative composition name. */
|
|
160
|
-
any(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
161
|
-
/** Builds a `NOT` composition fragment. */
|
|
162
|
-
not(fragment: ManifestConditionFragment): ManifestConditionFragment;
|
|
163
|
-
/** Negates `or(...)` across all fragments. */
|
|
164
|
-
none(...fragments: readonly ManifestConditionFragment[]): ManifestConditionFragment;
|
|
165
|
-
/** Wraps one pre-authored manifest condition/formula string as an explicit escape hatch. */
|
|
166
|
-
raw(text: string): ManifestConditionFragment;
|
|
167
|
-
/** Renders one fragment to its final manifest string form. */
|
|
168
|
-
render(fragment: ManifestConditionFragment): string;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Typed lifecycle-event composer for one custom object.
|
|
172
|
-
*
|
|
173
|
-
* The builder keeps workflow concepts separate from custom objects while still
|
|
174
|
-
* preserving the object's type information through the lifecycle chain.
|
|
175
|
-
*
|
|
176
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle is being targeted.
|
|
177
|
-
* @typeParam TOperation - Workflow record-change operation selected for this trigger.
|
|
178
|
-
*/
|
|
179
|
-
export interface TypedCustomObjectLifecycleTriggerBuilder<TDefinition extends AnyCustomObjectDefinition, TOperation extends WorkflowRecordChangeTrigger['record_change_operation_type']> {
|
|
180
|
-
/** Typed custom-object definition that owns this lifecycle trigger. */
|
|
181
|
-
readonly definition: TDefinition;
|
|
182
|
-
/** Selected record-change operation for this lifecycle trigger. */
|
|
183
|
-
readonly operation: TOperation;
|
|
184
|
-
/** Adds an RQL guard to the lifecycle trigger. */
|
|
185
|
-
when(condition: ManifestConditionInput<TDefinition>): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, TOperation>;
|
|
186
|
-
/** Materializes the lifecycle builder into the low-level workflow trigger shape. */
|
|
187
|
-
build(): WorkflowRecordChangeTrigger;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Typed lifecycle helper namespace for one custom object.
|
|
191
|
-
*
|
|
192
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle events should be exposed.
|
|
193
|
-
*/
|
|
194
|
-
export interface TypedCustomObjectLifecycle<TDefinition extends AnyCustomObjectDefinition> {
|
|
195
|
-
/** Typed custom-object definition that owns this lifecycle namespace. */
|
|
196
|
-
readonly definition: TDefinition;
|
|
197
|
-
/** Builds a workflow trigger for record creation. */
|
|
198
|
-
onCreate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_CREATE'>;
|
|
199
|
-
/** Builds a workflow trigger for record updates. */
|
|
200
|
-
onUpdate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_UPDATE'>;
|
|
201
|
-
/** Builds a workflow trigger for record deletion. */
|
|
202
|
-
onDelete(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_DELETE'>;
|
|
203
|
-
/** Builds a workflow trigger for record creation or update. */
|
|
204
|
-
onCreateOrUpdate(): TypedCustomObjectLifecycleTriggerBuilder<TDefinition, 'RECORD_CHANGE_OPERATION_TYPE_CREATE_OR_UPDATE'>;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Creates typed manifest-condition helpers for one custom object target.
|
|
208
|
-
*
|
|
209
|
-
* The resulting helper family can be reused anywhere the manifest expects an
|
|
210
|
-
* RQL-like object condition or formula string: list-view filters, validation
|
|
211
|
-
* formulas, workflow guards, and rule conditions.
|
|
212
|
-
*
|
|
213
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
214
|
-
* @returns Immutable field-aware manifest-condition helper surface.
|
|
215
|
-
* @typeParam TDefinition - Typed custom-object definition whose field namespace should be enforced.
|
|
216
|
-
*/
|
|
217
|
-
export declare function createManifestConditionHelpers<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>): ManifestConditionHelpers<TDefinition>;
|
|
218
|
-
/**
|
|
219
|
-
* Resolves one manifest-condition input into final manifest string text.
|
|
220
|
-
*
|
|
221
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
222
|
-
* @param input - Condition fragment or helper callback to resolve.
|
|
223
|
-
* @returns Final manifest condition/formula string.
|
|
224
|
-
* @typeParam TDefinition - Typed custom-object definition that owns the helper field namespace.
|
|
225
|
-
*/
|
|
226
|
-
export declare function resolveManifestConditionInput<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>, input: ManifestConditionInput<TDefinition>): string;
|
|
227
|
-
/**
|
|
228
|
-
* Creates the typed lifecycle helper namespace for one custom object.
|
|
229
|
-
*
|
|
230
|
-
* The lifecycle helper keeps workflows and custom objects as separate concepts
|
|
231
|
-
* while exposing the custom object's record lifecycle as a fluent, typed join
|
|
232
|
-
* point for workflow composition.
|
|
233
|
-
*
|
|
234
|
-
* @param target - Typed custom-object definition or manifest registration.
|
|
235
|
-
* @returns Immutable lifecycle helper namespace for that custom object.
|
|
236
|
-
* @typeParam TDefinition - Typed custom-object definition whose lifecycle events should be exposed.
|
|
237
|
-
*/
|
|
238
|
-
export declare function customObjectLifecycle<TDefinition extends AnyCustomObjectDefinition>(target: ManifestCustomObjectTarget<TDefinition>): TypedCustomObjectLifecycle<TDefinition>;
|
|
239
|
-
export {};
|
|
240
|
-
//# sourceMappingURL=conditions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../src/core/platform/manifest/custom-objects/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,6CAA0C;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,UAAU,EAAE,eAAe,EAAE,sCAAmC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAgB;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,8BAA2B;AAc5F,qFAAqF;AACrF,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEnG;;;;;;;GAOG;AACH,MAAM,MAAM,0BAA0B,CAAC,WAAW,SAAS,yBAAyB,IAChF,WAAW,GACX,oBAAoB,CAAC,WAAW,CAAC,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,I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