export type CommonTraversalOps = { /** * Don't terminate chain if current resource or field has an error associated * with, by default resource or field error will be thrown. If field has error * and no value, error will be thrown anyway, because this is the reason * traversal is terminated. * */ ignoreError?: true; }; export type CommonFieldTraverseOps = { /** * Valid only if {@link assertFieldType} is defined and equal to 'Input', * 'Service' or 'Output'. By default, if field is not found, and corresponding * field list is locked, call will fail with exception. * */ allowPermanentAbsence?: true; /** Will not mark current context as unstable, if field is not found. */ stableIfNotFound?: true; }; export type FieldType = "Input" | "Output" | "Service" | "OTW" | "Dynamic" | "MTW"; export interface ResourceType { readonly name: string; readonly version: string; } export type ResourceTraversalOps = CommonTraversalOps & { /** * Assert resource type of the resource the fields points to. Call will fail * with exception if this assertion is not fulfilled. * */ assertResourceType?: ResourceType | ResourceType[]; }; export type GetFieldStep = CommonFieldTraverseOps & { /** Field name */ field: string; /** Field must exist, if this option is set, instead error will be thrown */ errorIfFieldNotFound?: true; /** Field must be assigned a value, if this option is set, instead error will be thrown */ errorIfFieldNotSet?: true; /** * Assert field type. * Call will fail with exception if this assertion is not fulfilled. * The information about expectedFieldType is also used for stability * calculation and field absence error generation, so it is always a good * ide to specify it. * */ assertFieldType?: FieldType; }; export type FieldTraversalStep = GetFieldStep & ResourceTraversalOps; //# sourceMappingURL=traversal_ops.d.ts.map